APPENDIX A LIST OF I/O REGISTERS
S1C17704 TECHNICAL MANUAL
EPSON
AP-23
0x5215–0x52a3
P Port & Port MUX
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
P1 Port
Interrupt Mask
Register
(P1_IMSK)
0x5215
(8 bits)
D7–0
P1IE[7:0]
P1[7:0] port interrupt enable
1 Enable
0 Disable
0
R/W
P1 Port
Interrupt Edge
Select Register
(P1_EDGE)
0x5216
(8 bits)
D7–0
P1EDGE[7:0]
P1[7:0] port interrupt edge select
1 Falling edge 0 Rising edge
0
R/W
P1 Port
Interrupt Flag
Register
(P1_IFLG)
0x5217
(8 bits)
D7–0
P1IF[7:0]
P1[7:0] port interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
P2 Port Input
Data Register
(P2_IN)
0x5220
(8 bits)
D7–0
P2IN[7:0]
P2[7:0] port input data
1 1 (H)
0 0 (L)
×
R
P2 Port Output
Data Register
(P2_OUT)
0x5221
(8 bits)
D7–0
P2OUT[7:0]
P2[7:0] port output data
1 1 (H)
0 0 (L)
0
R/W
P2 Port
I/O Direction
Control Register
(P2_IO)
0x5222
(8 bits)
D7–0
P2IO[7:0]
P2[7:0] port I/O direction select
1 Output
0 Input
0
R/W
P2 Port Pull-up
Control Register
(P2_PU)
0x5223
(8 bits)
D7–0
P2PU[7:0]
P2[7:0] port pull-up enable
1 Enable
0 Disable
1
(0xff)
R/W
P2 Port Schmitt
Trigger Control
Register
(P2_SM)
0x5224
(8 bits)
D7–0
P2SM[7:0]
P2[7:0] port Schmitt trigger input
enable
1 Enable
(Schmitt)
0 Disable
(CMOS)
1
(0xff)
R/W
P3 Port Input
Data Register
(P3_IN)
0x5230
(8 bits)
D7–4
–
reserved
–
–
–
0 when being read.
D3–0
P3IN[3:0]
P3[3:0] port input data
1 1 (H)
0 0 (L)
×
R
P3 Port Output
Data Register
(P3_OUT)
0x5231
(8 bits)
D7–4
–
reserved
–
–
–
0 when being read.
D3–0
P3OUT[3:0]
P3[3:0] port output data
1 1 (H)
0 0 (L)
0
R/W
P3 Port
I/O Direction
Control Register
(P3_IO)
0x5232
(8 bits)
D7–4
–
reserved
–
–
–
0 when being read.
D3–0
P3IO[3:0]
P3[3:0] port I/O direction select
1 Output
0 Input
0
R/W
P3 Port Pull-up
Control Register
(P3_PU)
0x5233
(8 bits)
D7–4
–
reserved
–
–
–
0 when being read.
D3–0
P3PU[3:0]
P3[3:0] port pull-up enable
1 Enable
0 Disable
1
(0xff)
R/W
P3 Port Schmitt
Trigger Control
Register
(P3_SM)
0x5234
(8 bits)
D7–4
–
reserved
–
–
–
0 when being read.
D3–0
P3SM[3:0]
P3[3:0] port Schmitt trigger input
enable
1 Enable
(Schmitt)
0 Disable
(CMOS)
1
(0xff)
R/W
P0 Port
Function Select
Register
(P0_PMUX)
0x52a0
(8 bits)
D7–6
–
reserved
–
–
–
0 when being read.
D5
P05MUX
P05 port function select
1 REMO
0 P05
0
R/W
D4
P04MUX
P04 port function select
1 REMI
0 P04
0
R/W
D3–0
–
reserved
–
–
–
0 when being read.
P1 Port
Function Select
Register
(P1_PMUX)
0x52a1
(8 bits)
D7
P17MUX
P17 port function select
1 #SPISS
0 P17
0
R/W
D6
–
reserved
–
–
–
0 when being read.
D5
P15MUX
P15 port function select
1 SCL
0 P15
0
R/W
D4
P14MUX
P14 port function select
1 SDA
0 P14
0
R/W
D3
P13MUX
P13 port function select
1 FOUT1
0 P13
0
R/W
D2–0
–
reserved
–
–
–
0 when being read.
P2 Port
Function Select
Register
(P2_PMUX)
0x52a2
(8 bits)
D7
P27MUX
P27 port function select
1 EXCL3
0 P27
0
R/W
D6
P26MUX
P26 port function select
1 TOUT
0 P26
0
R/W
D5
P25MUX
P25 port function select
1 SCLK
0 P25
0
R/W
D4
P24MUX
P24 port function select
1 SOUT
0 P24
0
R/W
D3
P23MUX
P23 port function select
1 SIN
0 P23
0
R/W
D2
P22MUX
P22 port function select
1 SPICLK
0 P22
0
R/W
D1
P21MUX
P21 port function select
1 SDO
0 P21
0
R/W
D0
P20MUX
P20 port function select
1 SDI
0 P20
0
R/W
P3 Port
Function Select
Register
(P3_PMUX)
0x52a3
(8 bits)
D7–4
–
reserved
–
–
–
0 when being read.
D3
P33MUX
P33 port function select
1 P33
0 DSIO
0
R/W
D2
P32MUX
P32 port function select
1 P32
0 DST2
0
R/W
D1
P31MUX
P31 port function select
1 P31
0 DCLK
0
R/W
D0
P30MUX
P30 port function select
1 FOUT3
0 P30
0
R/W
Summary of Contents for S1C17704
Page 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Page 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...