English
Language : 

HD64F38602R Datasheet, PDF (291/552 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer
Section 14 Serial Communication Interface 3 (SCI3, IrDA)
14.4.3 Data Transmission
Figure 14.5 shows an example of operation for transmission in asynchronous mode. In
transmission, the SCI3 operates as described below.
1. The SCI3 monitors the TDRE flag in SSR. If the flag is cleared to 0, the SCI3 recognizes that
data has been written to TDR, and transfers the data from TDR to TSR.
2. After transferring data from TDR to TSR, the SCI3 sets the TDRE flag to 1 and starts
transmission. If the TIE bit in SCR is set to 1 at this time, a TXI3 interrupt request is
generated. Continuous transmission is possible because the TXI3 interrupt routine writes next
transmit data to TDR before transmission of the current transmit data has been completed.
3. The SCI3 checks the TDRE flag at the timing for sending the stop bit.
4. If the TDRE flag is 0, the data is transferred from TDR to TSR, the stop bit is sent, and then
serial transmission of the next frame is started.
5. If the TDRE flag is 1, the TEND flag in SSR is set to 1, the stop bit is sent, and then the “mark
state” is entered, in which 1 is output. If the TEIE bit in SCR is set to 1 at this time, a TEI
interrupt request is generated.
6. Figure 14.6 shows a sample flowchart for transmission in asynchronous mode.
Serial
data
Start
bit
Transmit Parity Stop Start
data
bit bit bit
Transmit Parity Stop
data
bit bit
1 0 D0 D1
D7 0/1 1 0 D0 D1
D7 0/1 1
1 frame
1 frame
Mark
state
1
TDRE
TEND
LSI
TXI3 interrupt
operation request
User
generated
processing
TDRE flag
cleared to 0
Data written
to TDR
TXI3 interrupt request
generated
TEI3 interrupt request
generated
Figure 14.5 Example SCI3 Operation in Transmission in Asynchronous Mode
(8-Bit Data, Parity, One Stop Bit)
Rev. 3.00 May 15, 2007 Page 259 of 518
REJ09B0152-0300