
V PeRiPheRaL MoDuLes 3 (inteRFaCe): GeneRaL-PuRPose seRiaL inteRFaCe (eFsio)
s1C33L17 teChniCaL ManuaL
ePson
V-1-3
V
EFSIO
V.1.1.3 setting interface Mode and transfer Mode
The interface type and transfer mode of the serial interface can be set using SMDx[1:0] (D[1:0]/0x300Bx3), IR-
MDx[1:0] (D[1:0]/0x300Bx4), and 7816MD1[1:0] (D[1:0]/0x300B1A) individually for each channel as shown in
Table V.1.1.3.1 below.
sMDx[1:0]: Serial I/F Ch.x Transfer Mode Select Bits in the Serial I/F Ch.x Control Register (D[1:0]/0x300Bx3)
iRMDx[1:0]: Serial I/F Ch.x Interface Mode Select Bits in the Serial I/F Ch.x IrDA Register (D[1:0]/0x300Bx4)
7816MD1[1:0]: Serial I/F Ch.1 ISO7816 Mode Select Bits in the Serial I/F Ch.1 ISO87816 Mode Control
Register (D[1:0]/0x300B1A)
Table V.1.1.3.1 Mode Settings
iRMDx[1:0]
00
10
00
sMDx[1:0]
11
00
11
00
11
10
11
10
01
00
transfer mode
ISO7816 (T = 1) mode, asynchronous
ISO7816 (T = 1) mode, clock-sync
ISO7816 (T = 0) mode, asynchronous
ISO7816 (T = 0) mode, clock-sync
8-bit asynchronous mode (IrDA I/F)
7-bit asynchronous mode (IrDA I/F)
8-bit asynchronous mode (normal I/F)
7-bit asynchronous mode (normal I/F)
Clock-synchronized slave mode
Clock-synchronized master mode
Reserved
Other
interface mode
ISO7816 mode (Ch.1 only)
IrDA mode
Normal mode
7816MD1[1:0]
10
01
00
support Ch.
Ch.1
Ch.0
Ch.1
–
At initial reset, 7816MD1[1:0] (D[1:0]/0x300B1A) is set to 0b00, SMDx[1:0] (D[1:0]/0x300Bx3) and IRMDx[1:0]
(D[1:0]/0x300Bx4) become indeterminate, so be sure to initialize it in the software.
When using the IrDA interface, set the transfer mode for the asynchronous 7-bit or asynchronous 8-bit mode.
The input/output pins are configured differently, depending on the transfer mode. The pin configuration in each
mode is shown in Table V.1.1.3.2.
Table V.1.1.3.2 Pin Configuration by Transfer Mode
sinx
Data input
soutx
Data output
transfer mode
8-bit asynchronous mode
7-bit asynchronous mode
Clock-synchronized slave mode
Clock-synchronized master mode
ISO7816
#sCLKx
Clock input/P port
Clock input
Clock output
#sRDYx
P port
Ready output
Ready input
P port
All four pins are used in the clock-synchronized mode.
In the asynchronous mode, since #SRDYx is unused, the #SRDYx pin can be used as an I/O (P) port. In addition,
when an external clock is not used, the #SCLKx pin can also be used as an I/O port.
The ISO7816 mode (Ch.1) does not use #SRDY1, so this pin can be used as an I/O (P) port.
The I/O control and data registers for the I/O ports used in the serial interface can be used as general-purpose read/
write registers.