Renesas H8/3067 Series User Manual page 585

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for H8/3067 Series:
Table of Contents

Advertisement

1. Data write
2. Transfer from TDR to TSR
3. Serial data output
In case of normal transmission: TEND flag is set
In case of transmit error:
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
TXI (TEND
interrupt)
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.
TDR
Data 1
Data 1
Data 1
Da
Db
Dc
Dd
De
Figure 14.7 Timing of TEND Flag Setting
Section 14 Smart Card Interface
TSR
(shift register)
Data 1
ERS flag is set
Steps 2 and 3 above are repeated until the
TEND flag is set.
Df
Dg
Dh
Dp
12.5 etu
11.0 etu
Rev. 4.00 Jan 26, 2006 page 561 of 938
Data remains in TDR
Data 1
I/O signal
output
DE
Guard time
When GM = 0
When GM = 1
REJ09B0276-0400

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3067H8/3066H8/3065H8/3067rf

Table of Contents