APPENDIX A LIST OF PERIPHERAL CIRCUIT CONTROL REGISTERS
S1C17M20/M21/M22/M23/M24/M25
Seiko Epson Corporation
AP-A-15
TECHNICAL MANUAL (Rev. 1.0)
Address
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
M20/M23 M21/
M24
M22/
M25
24pin 32pin
0x4240 P4DAT
(P4 Port Data
Register)
15–11 –
0x00
–
R
–
–
–
–
–
10 P4OUT2
0
H0
R/W –
–
–
–
✓
9
P4OUT1
0
H0
R/W
–
–
–
✓
8
P4OUT0
0
H0
R/W
–
–
–
✓
7–3 –
0x00
–
R
–
–
–
–
–
2
P4IN2
0
H0
R
–
–
–
–
✓
1
P4IN1
0
H0
R
–
–
–
✓
0
P4IN0
0
H0
R
–
–
–
✓
0x4242 P4IOEN
(P4 Port Enable
Register)
15–11 –
0x00
–
R
–
–
–
–
–
10 P4IEN2
0
H0
R/W –
–
–
–
✓
9
P4IEN1
0
H0
R/W
–
–
–
✓
8
P4IEN0
0
H0
R/W
–
–
–
✓
7–3 –
0x00
–
R
–
–
–
–
–
2
P4OEN2
0
H0
R/W –
–
–
–
✓
1
P4OEN1
0
H0
R/W
–
–
–
✓
0
P4OEN0
0
H0
R/W
–
–
–
✓
0x4244 P4RCTL
(P4 Port Pull-up/down
Control Register)
15–11 –
0x00
–
R
–
–
–
–
–
10 P4PDPU2
0
H0
R/W –
–
–
–
✓
9
P4PDPU1
0
H0
R/W
–
–
–
✓
8
P4PDPU0
0
H0
R/W
–
–
–
✓
7–3 –
0x00
–
R
–
–
–
–
–
2
P4REN2
0
H0
R/W –
–
–
–
✓
1
P4REN1
0
H0
R/W
–
–
–
✓
0
P4REN0
0
H0
R/W
–
–
–
✓
0x4246 P4INTF
(P4 Port Interrupt
Flag Register)
15–8 –
0x00
–
R
–
–
–
–
–
7–3 –
0x00
–
R
–
–
–
–
2
P4IF2
0
H0
R/W Cleared
by writing
1.
–
–
–
✓
1
P4IF1
0
H0
R/W
–
–
–
✓
0
P4IF0
0
H0
R/W
–
–
–
✓
0x4248 P4INTCTL
(P4 Port Interrupt
Control Register)
15–11 –
0x00
–
R
–
–
–
–
–
10 P4EDGE2
0
H0
R/W –
–
–
–
✓
9
P4EDGE1
0
H0
R/W
–
–
–
✓
8
P4EDGE0
0
H0
R/W
–
–
–
✓
7–3 –
0x00
–
R
–
–
–
–
–
2
P4IE2
0
H0
R/W –
–
–
–
✓
1
P4IE1
0
H0
R/W
–
–
–
✓
0
P4IE0
0
H0
R/W
–
–
–
✓
0x424a P4CHATEN
(P4 Port Chattering
Filter Enable Register)
15–8 –
0x00
–
R
–
–
–
–
–
7–3 –
0x00
–
R
–
–
–
–
2
P4CHATEN2
0
H0
R/W –
–
–
–
✓
1
P4CHATEN1
0
H0
R/W
–
–
–
✓
0
P4CHATEN0
0
H0
R/W
–
–
–
✓
0x424c P4MODSEL
(P4 Port Mode Select
Register)
15–8 –
0x00
–
R
–
–
–
–
–
7–3 –
0x00
–
R
–
–
–
–
2
P4SEL2
0
H0
R/W –
–
–
–
✓
1
P4SEL1
0
H0
R/W
–
–
–
✓
0
P4SEL0
0
H0
R/W
–
–
–
✓
0x424e P4FNCSEL
(P4 Port Function
Select Register)
15–8 –
0x00
–
R
–
–
–
–
–
7–6 –
0x0
–
R
–
–
–
–
5–4 P42MUX[1:0]
0x0
H0
R/W –
–
–
–
✓
3–2 P41MUX[1:0]
0x0
H0
R/W
–
–
–
✓
1–0 P40MUX[1:0]
0x0
H0
R/W
–
–
–
✓