Datasheet

Table Of Contents
Section 17 Serial Communications Interface 3 (SCI3, IrDA)
Rev. 2.00 Jul. 04, 2007 Page 391 of 692
REJ09B0309-0200
17.5.3 Serial Data Transmission
Figure 17.10 shows an example of SCI3 operation for transmission in clock synchronous mode. In
serial transmission, the SCI3 operates as described below.
1. The SCI3 monitors the TDRE flag in SSR, and if the flag is 0, the SCI3 recognizes that data
has been written to TDR, and transfers the data from TDR to TSR.
2. 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.
3. 8-bit data is sent from the TXD3 pin synchronized with the output clock when output clock
mode has been specified, and synchronized with the input clock when use of an external clock
has been specified. Serial data is transmitted sequentially from the LSB (bit 0), from the TXD3
pin.
4. The SCI3 checks the TDRE flag at the timing for sending the MSB (bit 7).
5. If the TDRE flag is cleared to 0, data is transferred from TDR to TSR, and serial transmission
of the next frame is started.
6. If the TDRE flag is set to 1, the TEND flag in SSR is set to 1, and the TDRE flag maintains
the output state of the last bit. If the TEIE bit in SCR is set to 1 at this time, a TEI3 is
generated.
7. The SCK3 pin is fixed high.
Serial
clock
Serial
data
Bit 1Bit 0 Bit 7 Bit 0
1 frame 1 frame
Bit 1 Bit 6
Bit 7
TDRE
TEND
LSI
operation
User
processing
TXI3 interrupt request
generated
Data written
to TDR
TDRE flag
cleared
to 0
TXI3 interrupt
request
generated
TEI3 interrupt request
generated
Figure 17.10 Example of SCI3 Operation in Transmission in Clock Synchronous Mode