cancel
Showing results for 
Search instead for 
Did you mean: 

SCI Transmission complete interrupt problem

adib
Associate II
Posted on December 13, 2006 at 04:01

SCI Transmission complete interrupt problem

1 REPLY 1
adib
Associate II
Posted on December 13, 2006 at 04:01

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.