
ML51/ML54/ML56
Sep. 01, 2020
Page
504
of 719
Rev 2.00
ML
51
/ML
54
/ML
5
6 S
E
RI
E
S
TECHNI
CA
L
RE
F
E
R
E
NC
E
M
A
NU
A
L
ML51/M
L54
/M
L56
Series
Tec
hnical Reference
Manual
6.10.4 Operating Modes
Smart Card Mode
6.10.4.1
The Smart Card Interface controller supports activation, cold reset, warm reset and deactivation
sequence by software control. The activation, cold reset, warm reset and deactivation and sequence
are shown as follows.
SC Interface Connection
The SC interface connection is shown in Figure 15.3-1
1. SC_CLK / UART2_TXD : SC clock pin (output from MCU)
2. SC_DAT / UART2_RXD : SC data pin (bi-directional)
3. SC_RST: SC reset pin (output from MCU, firmware assigned GPIO)
4. SC_PWR: SC power pin (output from MCU, firmware assigned GPIO)
5. *: SC_PWR is used for power control function to turn ON/OFF the power for Smart Card.
Do
not
use SC_PWR as the direct power supply for Smart Card.
6. SC_CD: SC card detect pin (input to MCU, detect card by a card insert mechanism)
SC_CLK
SC_DAT
SC_RST
SC_PWR
SC_CD
MCU
SC
PORT
I/O
PORT
SC_CLK
SC_DAT
SC_RST
SC_PWR
Smart Card
Card Detect
Mechanism
SC Power Control Circuit
Figure 6.10-2 SC Interface Connection
Activation and Cold Reset
The activation and cold reset sequence is shown in Figure 15.3-2
1.
Set SC_RST to low by software programming to ‘0’
2.
Set SC_PWR at high level by software programming to ‘1’ before timing T1 and SC_DAT at
high level (reception mode)
by software programming to ‘1’ period of timing T1.
3.
Enable SC_CLK clock by programming CLKKEEP (SCCR2[1]) to ‘1’ after timing T1.
4. De-
assert SC_RST to high by software programming to ‘1’ after timing T2.
5. Smart Card host controller read the card ATR period of timing T3.