English
Language : 

HD64F3039F18 Datasheet, PDF (432/710 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer H8 Family / H8/300H Series
Section 12 Smart Card Interface
(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 line 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 next transfer data has been completed.
Figure 12.5 Relation Between Transmit Operation and Internal Registers
Serial Data Reception
Data reception in Smart Card mode uses the same processing procedure as for the normal SCI.
Figure 12.6 shows an example of the transmission processing flow.
[1] Perform Smart Card interface mode initialization as described above in Initialization.
[2] Check that the ORER flag and PER flag in SSR are cleared to 0. If either flag is set, perform
the appropriate receive error processing, 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] When receiving data continuously, clear the RDRF flag to 0 and go back to step [2].
[6] To end reception, clear the RE bit to 0.
Rev.3.00 Mar. 26, 2007 Page 408 of 682
REJ09B0353-0300