??? 04/19/09 01:42 Modified: 04/19/09 01:44 Read: times |
#164716 - TI and RI details... Responding to: ???'s previous message |
Chico said:
Kai, independently of DMX... in serial, if TI is set at the start of stop bit, means I need to wait the end of the stop bit every time I send a serial byte? Before I send another byte? No, the transmission of next byte isn't synchronized to the writing to the SBUF, but to the UART's bit time. So, even when immediately writing to the SBUF, after TI went high, the transmission of next byte is only started after the stop bit in progress was correctly sent, in full length. Chico said:
When receiving the RI flag is set as same as TI? On the start of the stop bit? No. There are UART modes where the RI flag is only set if a valid stop bit has arrived. This can only be verified after receiving the stop bit, of course. So, the RI flag is set at about half the stop bit time, correctly at 9/16 of bit time after the begin of stop bit. Kai |