S1C62740 TECHNICAL HARDWARE
EPSON
I-17
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Memory Map)
Table 4.1.1(b) I/O memory map (D0H–DFH)
Address
Comment
Register
D3
D2
D1
D0
Name
Init
1
0
*1
D0H
K00
R
K03
K02
K01
K00
–
Input port (K00–K03)
High
Low
K01
K02
K03
*2
D1H
K10
R
0
K10
–
High
Low
0
*2
*5
D2H
DFK00
R/W
DFK03
DFK02
DFK01
DFK00
DFK01
DFK02
DFK03
1
DFK10
R
0
DFK10
–
1
0
D3H
*2
*5
D4H
R00
FOUT
R/W
R03
BZ
R02
BZ
R01
PTOVF
R00
FOUT
0
1
High
On
High
On
High
Off
High
Off
Low
Off
Low
Off
Low
On
Low
On
R01
PTOVF
R02
BZ
R03
BZ
D6H
IOC0
R
0
IOC2
IOC1
IOC0
–
0
Output
Input
IOC1
IOC2
0
*2
*5
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
*5
D8H
P00
P03
P02
P01
P00
–
High
Low
P01
P02
P03
*2
D9H
P10
P13
P12
P11
P10
–
High
Low
P11
P12
P13
*2
DAH
P20
P23
P22
P21
P20
–
High
Low
P21
P22
P23
*2
R/W
*7
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
R/W
P2 port function selection
Serial data input/output permutation
R
Unused
Serial interface status
Serial interface clock trigger
Unused
Input port (K10)
Unused
Input comparison register (K10)
Output port (R03)
Buzzer inverted output
Output port (R02)
Buzzer output
Output port (R01)
PTOVF output
Output port (R00)
FOUT output
Unused
I/O control register 2 (P20–P23)
I/O control register 1 (P10–P13)
I/O control register 0 (P00–P03)
SDP
DDH
SD0
SD3
SD2
SD1
SD0
–
SD1
SD2
SD3
R/W
DEH
SD4
SD7
SD6
SD5
SD4
–
SD5
SD6
SD7
R/W
DFH
OSCC
0
CLKCHG
OSCC
–
0
OSC3
On
OSC1
Off
CLKCHG
0
*5
R/W
Unused
CPU system clock switch
OSC3 oscillation On/Off
Input comparison register (K00–K03)
R/W
R
I/O port (P00–P03)
I/O port (P10–P13)
I/O port (P20–P23)
When P20–P23 is selected as SIO port, P20–
P23 registers will function as register only.
Serial interface clock mode selection
0: slave, 1: PTOVF, 2: CLK/2, 3: CLK
W
*2
Serial interface data (low-order 4 bits)
LSB
Serial interface data (high-order 4 bits)
MSB
R
*6