2006-12-12 07:01 PM
SCI Transmission complete interrupt problem
2006-12-12 07:01 PM
Hi,
I'm working with the ST72F264 micro. In my application I need to transmit a byte via the SCI and enable/disable external RS-422 driver. In order to disable the external driver I use the TC interrupt to know when the transmission is actually completed and disable the driver. Since the only way to clear the TC int is to transmit a byte I keep it always masked (write 0x2C to SCICR2 reg), when I want to transmit I make a read from the SCISR reg and write the data to the SCIDR and then un-mask the TC interrupt (write 0x6C to SCICR2 reg) in order to get the TC int when the actual data is out from the shift reg. The problem is that I never get the TC int, can someone help? Thanks.