English
Language : 

3069RF-ZTAT Datasheet, PDF (554/1003 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER
1. Data write
TDR
Data 1
TSR
(shift register)
2. Transfer from TDR to TSR
3. Serial data output
Data 1
Data 1
Data 1
Data remains in TDR
Data 1
I/O signal
output
In case of normal transmission: TEND flag is set
In case of transmit error:
ERS flag is set
Steps 2 and 3 above are repeated until the
TEND flag is set.
Note: When the ERS flag is set, it should be cleared until transfer of the last bit (D7 in LSB-first
transmission, D0 in MSB-first transmission) of the retransmit data to be transmitted next has
been completed.
Figure 14.6 Relation Between Transmit Operation and Internal Registers
I/O data
Ds Da Db Dc Dd De Df Dg Dh Dp
DE
TXI (TEND
interrupt)
12.5 etu
Guard time
When GM = 0
11.0 etu
When GM = 1
Figure 14.7 Timing of TEND Flag Setting
Receiving Serial Data: Data reception in smart card mode uses the same processing procedure as
for the normal SCI. Figure 14.8 shows a sample reception processing flowchart.
1. Perform smart card interface mode initialization as described in Initialization above.
2. Check that the ORER flag and PER flag are cleared to 0 in SSR. If either is set, perform the
appropriate receive error handling, then clear both the ORER and the PER flag to 0.
3. Repeat steps 2 and 3 until it can be confirmed that the RDRF flag is set to 1.
4. Read the receive data from RDR.
5. To continue receiving data, clear the RDRF flag to 0 and go back to step 2.
6. To end reception, clear the RE bit to 0.
Rev. 5.0, 09/04, page 532 of 978