??? 12/03/04 17:23 Read: times |
#82474 - Mode 1 TI timing. Responding to: ???'s previous message |
It is the start of the stop bit. A snippet of my code for working out the turnaround delay length for different baudrates:
mov a,TH1 ;derive bit delay according to host baud cpl a ;115200,57600=1;38400,19200=3;9600=6 inc a ;4800=12;2400=24 rl a rl a rl a ;x8 add a,#5 ;plus another 10uS for luck... txx5: nop nop djnz ACC,txx5 ;x2us (eg 3x8x2=48us ~ 1 bit @ 19200) clr RI ;kill inevitable rx'd chara TH1 contains the baudrate timer constant - in this case for a 22.11...MHz crystal. Note the last instruction - essential for RS485 systems... (Apologies, I've previewed and it removes my TABs, making very difficult reading. Even spaces at new line starts are suppressed. Not sure how to sort this; perhaps someone can help?) Regards, Dave |
Topic | Author | Date |
THE TIME OF TI | 01/01/70 00:00 | |
Bitrate | 01/01/70 00:00 | |
interrupt-driven | 01/01/70 00:00 | |
Why interrupt driven? | 01/01/70 00:00 | |
UART Serial Port Interrupt | 01/01/70 00:00 | |
all the above | 01/01/70 00:00 | |
UART communication by UART interrupt | 01/01/70 00:00 | |
just TI=1 | 01/01/70 00:00 | |
serial interrupt in adc interrupt | 01/01/70 00:00 | |
start with something simple | 01/01/70 00:00 | |
misunderstand behaviour | 01/01/70 00:00 | |
See the examples | 01/01/70 00:00 | |
not has to, but can | 01/01/70 00:00 | |
The difference is | 01/01/70 00:00 | |
" | 01/01/70 00:00 | |
He's right | 01/01/70 00:00 | |
How the 8051 UART works | 01/01/70 00:00 | |
The TI-bit Set Time | 01/01/70 00:00 | |
no, at the middle | 01/01/70 00:00 | |
The Transmitter Part, Actually | 01/01/70 00:00 | |
Setting of TI | 01/01/70 00:00 | |
sometimes chip designers listen | 01/01/70 00:00 | |
So, Erik | 01/01/70 00:00 | |
where does it happen | 01/01/70 00:00 | |
Mode 1 TI timing. | 01/01/70 00:00 | |
How to post code | 01/01/70 00:00 | |
RS485 & bus turnaround![]() | 01/01/70 00:00 |