2005-08-21 08:53 PM
Strange behaviour of SCI transmitter
2005-08-20 01:59 AM
Hi,
I am working with ST72F264 micro. The reset value of the SCISR register is 0xC0 which means that TDRE=1, TC=1. Without clearing the TDRE bit I write into the SCIDR register and it causes immediate SCI transmittion, but in the datasheet it says ''Note: Data will not be transferred to the shift register unless the TDRE bit is cleared.'' can anyone explain this behaviour ? Basically I want to get an interrupt when transmittion is complete TC=1 to disable my RS232 driver.2005-08-21 08:35 PM
Hi Gilat,
did you note that TDRE is cleared by a software sequence (an access to the SR register followed by a write to the DR register) ?2005-08-21 08:53 PM
Yes, I did note that but I didn't perform any access to the SR.
I added the SR to the watch window, maybe that's the reason?