View Single Post
  #2   Spotlight this post!  
Unread 30-08-2004, 19:07
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: USART ContRX vs SingRX

Quote:
Originally Posted by Rickertsen2
Does anybody know what this setting does? It doesn't seem to have any effect on anything. The only thing that i can think that it might do is change the behavior of what happens if a new byte is recieved before the register is cleared. The 18f8520 documentation is very little help on this.
The SREN/CREN bits are only used if the USART is configured for synchronous operation. If you're using it for synchronous operation, then the CREN bit enables the continuous reception of Rx data (i.e., Rx data will be continuously received and dumped to the RCREG register). If it's your desire to only read one word at a time, you'd want to enable the SREN bit, which will allow the USART to receive only one word and then shutdown any further reception of data. The PIC18C Reference Manual has more information than the data sheet.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org

Last edited by Kevin Watson : 30-08-2004 at 19:53. Reason: Ugly grammatical error.