Go to Post A Mentor is.. A person you can talk to anything about and trust them to not throw it back in your face in any way shape or form and who will help you as much as they can to deal with the problems and situations in life... - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-08-2004, 18:10
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
USART ContRX vs SingRX

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.
__________________
1139 Alumni
  #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.
  #3   Spotlight this post!  
Unread 30-08-2004, 19:52
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: USART ContRX vs SingRX

Quote:
Originally Posted by Kevin Watson
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
Whoa thanks!!! I never even bothered reading that document. I looked at it once and assumed is was jsut a less specific version of the 18f8520 manual. There is alot of good stuff in there!!
__________________
1139 Alumni
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EduBot and USART ports Dave... Programming 13 01-02-2004 00:02


All times are GMT -5. The time now is 03:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi