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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/21/05 00:09
Read: times


 
#92018 - Polling
Responding to: ???'s previous message
Karthik Raja said:
... the UART ... will receive only occasionly. I am going to use UART by polling method ...

If you only ever need to receive a single character (eg, just a simple 1-character ACK/NAK), that shouldn't be a problem - as it can be held in the SBUF receive buffer.

But if there is any chance whatsoever that you might ever have to handle multiple received characters, you run the risk of losing some.

Interrupt-driven serial IO is really not that hard, and could well be easier than the convoluted polling code that might be necessary to be 100.0% certain that you absolutely never, ever, miss a received byte...



List of 5 messages in thread
TopicAuthorDate
using serial port(UART) without interrup            01/01/70 00:00      
   The Bible            01/01/70 00:00      
   why            01/01/70 00:00      
   Yes Tx and Rx are Seperate            01/01/70 00:00      
   Polling            01/01/70 00:00      

Back to Subject List