Skip to main content
adib
Associate III
August 17, 2005
Question

Need help regarding SCI communication

  • August 17, 2005
  • 3 replies
  • 689 views
Posted on August 17, 2005 at 19:03

Need help regarding SCI communication

This topic has been closed for replies.

3 replies

adib
adibAuthor
Associate III
August 16, 2005
Posted on August 16, 2005 at 15:44

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?

wolfgang2399
Associate III
August 17, 2005
Posted on August 17, 2005 at 04:47

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

adib
adibAuthor
Associate III
August 17, 2005
Posted on August 17, 2005 at 19:03

Thanks!

I missed that....