??? 05/19/06 18:51 Read: times |
#116703 - Jon, some small errors/oversights Responding to: ???'s previous message |
MATT: ignore this, it has nothing to do with your problem, as to that, this information is irrelevant!
Jon, I was in the "I do not want to start something new Friday afternoon" mode and decided to take a peek at your document. I found some small errors/oversights from "the bible": set TI. This occurs at the 10th divide-by-16 rollover after “write to SBUF. You make the common mistake of stating "the TI bit in SCON. When this bit is set we know that the last character has been transmitted". I know this is totally irrelevant for RS232, but for turning the bus when using RS485 this, and the RI timing, is probably the most common source of trouble. I did not check your "treatment" of RI, but here is the skinny: from "the bible": RI Receive interrupt flag. Set by hardware halfway through the stop bit time (I abbreviated) This together with TI timing shown above is extremely critical knowledge when doing RS485. Of course, it you want to take the position that your document is a RS-232 document ONLY, you can do so, but most 485 developers got their feet wet on 232 and then they goof on the above because something they "know" was not known. I made this maistake 10+ years ago and heve seen countless others make it since. Have a great weekend Erik |
Topic | Author | Date |
8051 UART trouble.... | 01/01/70 00:00 | |
of course you don't | 01/01/70 00:00 | |
Sorry | 01/01/70 00:00 | |
what? | 01/01/70 00:00 | |
He's not being facetious ... | 01/01/70 00:00 | |
I understand | 01/01/70 00:00 | |
Post the other code you tried | 01/01/70 00:00 | |
me stupid too | 01/01/70 00:00 | |
My guess | 01/01/70 00:00 | |
Introduction | 01/01/70 00:00 | |
Another link | 01/01/70 00:00 | |
Jon, some small errors/oversights | 01/01/70 00:00 | |
Note taken | 01/01/70 00:00 | |
A Suggestion | 01/01/70 00:00 | |
Even eaiser | 01/01/70 00:00 | |
try this | 01/01/70 00:00 | |
location, location, location | 01/01/70 00:00 | |
I saw you logged in a few minutes ago![]() | 01/01/70 00:00 |