Renesas F-ZTAT H8 Series Hardware Manual page 535

Hide thumbs Also See for F-ZTAT H8 Series:
Table of Contents

Advertisement

Smart Card Mode Register (SCMR): If the smart card follows the direct convention, clear the
SDIR and SINV bits to 0. If the smart card follows the indirect convention, set the SDIR and
SINV bits to 1. To use the smart card interface, set the SMIF bit to 1.
The register settings and examples of starting character waveforms are shown below for two smart
cards, one following the direct convention and one the inverse convention.
• Direct convention (SDIR = SINV = O/E = 0)
(Z)
A
Z
Ds
D0
In the direct convention, state Z corresponds to logic level 1, and state A to logic level 0.
Characters are transmitted and received LSB-first. In the example above the first character data
is H'3B. The parity bit is 1, following the even parity rule designated for smart cards.
• Inverse convention (SDIR = SINV = O/E = 1)
(Z)
A
Z
Ds
D7
In the inverse convention, state A corresponds to the logic level 1, and state Z to the logic level
0. Characters are transmitted and received MSB-first. In the example above the first character
data is H'3F. Following the even parity rule designated for smart cards, the parity bit logic
level is 0, corresponding to state Z.
In the H8/3052BF, the SINV bit inverts only the data bits D7 to D0. The parity bit is not inverted,
so the O/E bit in SMR must be set to odd parity mode. This applies in both transmitting and
receiving.
Z
A
Z
D1
D2
D3
Z
A
A
D6
D5
D4
Section 14 Smart Card Interface
Z
Z
A
D4
D5
D6
A
A
A
D3
D2
D1
Rev. 3.00 Mar 21, 2006 page 507 of 814
A
Z
(Z)
State
D7
Dp
A
Z
(Z)
State
D0
Dp
REJ09B0302-0300

Advertisement

Table of Contents
loading

Table of Contents