2005-08-17 10:03 AM
Need help regarding SCI communication
2005-08-16 06:44 AM
Hi,
I am using ST72F264 micro with SCI communication. In my application I need to enable my RS232 transceiver while transmitting and disable it when transmission is complete. It is possible to get an interrupt when the content of the TDR register is transferred into the shift register but I need to know when the shift register finished to disable the RS232 driver. Does anyone know a way to get an interrupt when the shift register finishes?2005-08-16 07:47 PM
Hi Gilat,
what about the TC-flag? (chapter 11.5.7 of the datasheet) Bit 6 = TC Transmission complete.This bit is set by hardware when transmission of a
frame containing Data is complete. An interrupt is
generated if TCIE=1 in the SCICR2 register. It is
cleared by a software sequence (an access to the
SCISR register followed by a write to the SCIDR
register).
0: Transmission is not complete
1: Transmission is complete
Note: TC is not set after the transmission of a Preamble
or a Break.Regards WoRo
2005-08-17 10:03 AM
Thanks!
I missed that....