??? 05/29/10 13:41 Read: times |
#176298 - sometimes right, sometimes wrong Responding to: ???'s previous message |
This surely can't be right? If TI was set when starting to transmit, it would surely serve no useful purpose?
For the traditional derivatives TI is set at the stop bit; however, some newer derivatives (seen it, do not remember which) have added a double buffer for the transmit SBUF. Check the datasheet for your derivative. For double buffered derivatives, you can use the TI interrupt and some "keep track" code OR just enable reception and use the RI interrupt. Using the RI interrupt will, of course, remove the advantage of the double buffering. Now, enabling reception is required for multimaster apps, otherwise you have no means for collision detection. Master/slave setups work by collision avoidance. Erik |
Topic | Author | Date |
Receiving serial bytes on 80C320 UART | 01/01/70 00:00 | |
here | 01/01/70 00:00 | |
Thanks - excellent FAQ | 01/01/70 00:00 | |
"bible time" | 01/01/70 00:00 | |
Truly biblical! | 01/01/70 00:00 | |
My recommendation... | 01/01/70 00:00 | |
Useful ideas - but I don't want to change the hardware | 01/01/70 00:00 | |
You are absolutotally unconditionally confused | 01/01/70 00:00 | |
!RI or /RE | 01/01/70 00:00 | |
I'll re-answer the post above | 01/01/70 00:00 | |
Use previous advice and keep receiver enabled | 01/01/70 00:00 | |
This can't be right... | 01/01/70 00:00 | |
How to get it working | 01/01/70 00:00 | |
sometimes right, sometimes wrong | 01/01/70 00:00 | |
e-mailed to Steve, Craig --- forum FYI | 01/01/70 00:00 | |
We're getting there... | 01/01/70 00:00 | |
I believe you are corect.... | 01/01/70 00:00 | |
join the club | 01/01/70 00:00 | |
"No other way??" | 01/01/70 00:00 | |
in my (personal) opinion![]() | 01/01/70 00:00 | |
what is "other code" ? | 01/01/70 00:00 |