APPENDIX A I/O REGISTER LIST
S1C17001 TECHNICAL MANUAL
EPSON
323
0x5200–0x5216
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
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
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
Содержание S1C17001
Страница 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Страница 31: ...3 MEMORY MAP AND BUS CONTROL 22 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 185: ...14 8 BIT OSC1 TIMER T8OSC1 176 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 297: ...21 REMOTE CONTROLLER REMC 288 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 303: ...22 ON CHIP DEBUGGER DBG 294 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...