APPENDIX A LIST OF I/O REGISTERS
AP-22
EPSON
S1C17704 TECHNICAL MANUAL
0x5200–0x5214
P Port & Port MUX
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
P0 Port Input
Data Register
(P0_IN)
0x5200
(8 bits)
D7–0
P0IN[7:0]
P0[7:0] port input data
1 1 (H)
0 0 (L)
×
R
P0 Port Output
Data Register
(P0_OUT)
0x5201
(8 bits)
D7–0
P0OUT[7:0]
P0[7:0] port output data
1 1 (H)
0 0 (L)
0
R/W
P0 Port
I/O Direction
Control Register
(P0_IO)
0x5202
(8 bits)
D7–0
P0IO[7:0]
P0[7:0] port I/O direction select
1 Output
0 Input
0
R/W
P0 Port Pull-up
Control Register
(P0_PU)
0x5203
(8 bits)
D7–0
P0PU[7:0]
P0[7:0] port pull-up enable
1 Enable
0 Disable
1
(0xff)
R/W
P0 Port Schmitt
Trigger Control
Register
(P0_SM)
0x5204
(8 bits)
D7–0
P0SM[7:0]
P0[7:0] port Schmitt trigger input
enable
1 Enable
(Schmitt)
0 Disable
(CMOS)
1
(0xff)
R/W
P0 Port
Interrupt Mask
Register
(P0_IMSK)
0x5205
(8 bits)
D7–0
P0IE[7:0]
P0[7:0] port interrupt enable
1 Enable
0 Disable
0
R/W
P0 Port
Interrupt Edge
Select Register
(P0_EDGE)
0x5206
(8 bits)
D7–0
P0EDGE[7:0]
P0[7:0] port interrupt edge select
1 Falling edge 0 Rising edge
0
R/W
P0 Port
Interrupt Flag
Register
(P0_IFLG)
0x5207
(8 bits)
D7–0
P0IF[7:0]
P0[7:0] port interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
P0 Port
Chattering
Filter Control
Register
(P0_CHAT)
0x5208
(8 bits)
D7
–
reserved
–
–
–
0 when being read.
D6–4
P0CF2[2:0]
P0[7:4] chattering filter time
P0CF2[2:0]
Filter time
0
R/W
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
16384/f
PCLK
8192/f
PCLK
4096/f
PCLK
2048/f
PCLK
1024/f
PCLK
512/f
PCLK
256/f
PCLK
None
0x0
R/W
D3
–
reserved
–
–
–
0 when being read.
D2–0
P0CF1[2:0]
P0[3:0] chattering filter time
P0CF1[2:0]
Filter time
0x0
R/W
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
16384/f
PCLK
8192/f
PCLK
4096/f
PCLK
2048/f
PCLK
1024/f
PCLK
512/f
PCLK
256/f
PCLK
None
P0 Port Key-
Entry Reset
Configuration
Register
(P0_KRST)
0x5209
(8 bits)
D7–2
–
reserved
–
–
–
0 when being read.
D1–0
P0KRST[1:0]
P0 port key-entry reset
configuration
P0KRST[1:0]
Configuration
0x0
R/W
0x3
0x2
0x1
0x0
P0[3:0] = 0
P0[2:0] = 0
P0[1:0] = 0
Disable
P1 Port Input
Data Register
(P1_IN)
0x5210
(8 bits)
D7–0
P1IN[7:0]
P1[7:0] port input data
1 1 (H)
0 0 (L)
×
R
P1 Port Output
Data Register
(P1_OUT)
0x5211
(8 bits)
D7–0
P1OUT[7:0]
P1[7:0] port output data
1 1 (H)
0 0 (L)
0
R/W
P1 Port
I/O Direction
Control Register
(P1_IO)
0x5212
(8 bits)
D7–0
P1IO[7:0]
P1[7:0] port I/O direction select
1 Output
0 Input
0
R/W
P1 Port Pull-up
Control Register
(P1_PU)
0x5213
(8 bits)
D7–0
P1PU[7:0]
P1[7:0] port pull-up enable
1 Enable
0 Disable
1
(0xff)
R/W
P1 Port Schmitt
Trigger Control
Register
(P1_SM)
0x5214
(8 bits)
D7–0
P1SM[7:0]
P1[7:0] port Schmitt trigger input
enable
1 Enable
(Schmitt)
0 Disable
(CMOS)
1
(0xff)
R/W
Содержание S1C17704
Страница 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Страница 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...