Renesas H8S/2319 series Hardware Manual page 531

Renesas 16-bit single-chip microcomputer
Table of Contents

Advertisement

Smart Card Mode Register (SCMR) Settings: The SDIR bit is cleared to 0 if the IC card is of
the direct convention type, and set to 1 if of the inverse convention type.
The SINV bit is cleared to 0 if the IC card is of the direct convention type, and set to 1 if of the
inverse convention type.
The SMIF bit is set to 1 when the smart card interface is used.
Examples of register settings and the waveform of the start character are shown below for the two
types of IC card (direct convention and inverse convention).
• Direct convention (SDIR = SINV = O/E = 0)
(Z)
A
Ds
With the direct convention type, the logic 1 level corresponds to state Z and the logic 0 level to
state A, and transfer is performed in LSB-first order. The start character data above is H'3B.
The parity bit is 1 since even parity is stipulated for the smart card.
• Inverse convention (SDIR = SINV = O/E = 1)
(Z)
A
Ds
With the inverse convention type, the logic 1 level corresponds to state A and the logic 0 level
to state Z, and transfer is performed in MSB-first order. The start character data above is H'3F.
The parity bit is 0, corresponding to state Z, since even parity is stipulated for the smart card.
With the chip, inversion specified by the SINV bit applies only to the data bits, D7 to D0. For
parity bit inversion, the O/E bit in SMR should be set to odd parity mode (the same applies to
both transmission and reception).
Z
Z
A
Z
D0
D1
D2
D3
Z
Z
A
A
D7
D6
D5
D4
Z
Z
A
A
D4
D5
D6
D7
A
A
A
A
D3
D2
D1
D0
Rev. 5.00, 12/03, page 501 of 1088
Z
(Z)
State
Dp
Z
(Z)
State
Dp

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2318 series

Table of Contents