Pular para o conteúdo principal
Knowledgebase
Home
Renesas Brasil - Knowledgebase

Will an interruption generates right away if TXI interrupt is enable?

Latest Updated:05/27/2013

Question:

The user's manual: hardware states that the transmit data empty flag of the serial communications interface (SCI) is 1 when data is transferred from the TDR register to the TSR register. In the example of serial transmission flowchart, it seems that after data transmission is started, you wait for the generation of a TXI interrupt without even once writing data to the TDR.
If TXI interrupts are enabled while the TDR is empty, is an interrupt generated immediately?

Answer:

The initial value of the transmit data empty flag (TDRE) is 1.
If the transmit interrupt enable bit (TIE) is set to 1 in this state, a TXI interrupt is generated.
Write the first data in the TXI interrupt processing routine.
Suitable Products
RX62N, RX621
RX62T
RX610