Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/10/02 19:03
Read: times


 
#22841 - RE: Timer and Char Input
If you wait more than 1 character period between tests of RI, you will lose characters. Move the serial basics (get character, store in ring buffer, set flag if desired, get out) to an ISR where they belong. Testing serial in the main loop has always been and will always be a bad idea. It depends on the other parts of the main loop not growing slow i.e. something depeends - not on the function but - on the implementation of other processes which is very bad practice.

Have fun,

Erik

List of 10 messages in thread
TopicAuthorDate
Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      

Back to Subject List