??? 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... |
Topic | Author | Date |
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 |