
S1C62740 TECHNICAL SOFTWARE
EPSON
II-49
CHAPTER 6: PERIPHERAL CIRCUITS (Serial Interface Circuit)
Serial Interface Circuit
6.10
I/O data memory of
the serial interface
circuit
The control registers of the serial interface circuit are shown in
Table 6.10.1.
Table 6.10.1 Control registers of serial interface circuit
Control of the serial
interface circuit
The S1C62740 has a synchronous clock type 8 bits serial interface
built-in.
Set P2 port as serial I/O port by PFS (DBHD3) setting.
PFS = "1": P2 port becomes serial I/O port.
PFS = "0": P2 port become general I/O port.
Serial data permutation
The serial data can be transmit for MSB or LSB first manner.
This setting can be done by register SDP (DBHD2).
SDP = "1": LSB first
SDP = "0": MSB first
Address
Comment
Register
D3
D2
D1
D0
Name
Init
1
0
*1
C1H
ISIO
R
0
ISIO
–
0
Yes
No
0
*2
*5
*4
C8H
EIPT
0
EIAD
EISIO
EIPT
0
Unused
Interrupt mask register (A/D converter)
Interrupt mask register (serial interface)
Interrupt mask register (programmable timer)
Enable
Mask
EISIO
EIAD
0
*2
*5
*7
R/W
Unused
Interrupt factor flag (serial interface)
R
DBH
SCS0
R/W
PFS
SDP
SCS1
SCS0
0
Serial I/F
LSB first
I/O port
MSB first
SCS1
PFS
*6
DCH
SCTRG
0
SCRUN
SCTRG
–
0
–
Run
Trigger
Stop
–
SCRUN
0
*2
*5
P2 port function selection
Serial data input/output permutation
Serial interface clock mode selection
0: slave, 1: PTOVF, 2: CLK/2, 3: CLK
R
Unused
Serial interface status
Serial interface clock trigger
SDP
DDH
SD0
SD3
SD2
SD1
SD0
–
SD1
SD2
SD3
R/W
DEH
SD4
SD7
SD6
SD5
SD4
–
SD5
SD6
SD7
R/W
W
*2
Serial interface data (low-order 4 bits)
LSB
Serial interface data (high-order 4 bits)
MSB
D7H
PUP0
R/W
0
PUP2
PUP1
PUP0
–
0
Unused
Pull up control register 2 (P20–P23)
Pull up control register 1 (P10–P13)
Pull up control register 0 (P00–P03)
On
Off
PUP1
PUP2
0
*2
*6
R
*5
*1 Initial value at the time of initial reset
*5 Constantly "0" when being read
*2 Not set in the circuit
*6 Refer to main manual
*3 Undefined
*7 Page switching in I/O memory is not necessary
*4 Reset (0) immediately after being read