APPENDIX A LIST OF I/O REGISTERS
S1C17704 TECHNICAL MANUAL
EPSON
AP-7
0x4220–0x4246
16-bit Timer
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
16-bit Timer
Ch.0 Input
Clock Select
Register
(T16_CLK0)
0x4220
(16 bits)
D15–4
–
reserved
–
–
–
0 when being read.
D3–0
DF[3:0]
Timer input clock select
(Prescaler output clock)
DF[3:0]
Clock
0x0
R/W
0xf
0xe
0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
reserved
PCLK•1/16384
PCLK•1/8192
PCLK•1/4096
PCLK•1/2048
PCLK•1/1024
PCLK•1/512
PCLK•1/256
PCLK•1/128
PCLK•1/64
PCLK•1/32
PCLK•1/16
PCLK•1/8
PCLK•1/4
PCLK•1/2
PCLK•1/1
16-bit Timer
Ch.0 Reload
Data Register
(T16_TR0)
0x4222
(16 bits)
D15–0
TR[15:0]
16-bit timer reload data
TR15 = MSB
TR0 = LSB
0x0 to 0xffff
0x0
R/W
16-bit Timer
Ch.0 Counter
Data Register
(T16_TC0)
0x4224
(16 bits)
D15–0
TC[15:0]
16-bit timer counter data
TC15 = MSB
TC0 = LSB
0x0 to 0xffff
0xffff
R
16-bit Timer
Ch.0 Control
Register
(T16_CTL0)
0x4226
(16 bits)
D15–11
–
reserved
–
–
–
0 when being read.
D10
CKACTV
External clock active level select
1 High
0 Low
1
R/W
D9–8
CKSL[1:0]
Input clock and pulse width
measurement mode select
CKSL[1:0]
Mode
0x0
R/W
0x3
0x2
0x1
0x0
reserved
Pulse width
External clock
Internal clock
D7–5
–
reserved
–
–
–
0 when being read.
D4
TRMD
Count mode select
1 One shot
0 Repeat
0
R/W
D3–2
–
reserved
–
–
–
0 when being read.
D1
PRESER
Timer reset
1 Reset
0 Ignored
0
W
D0
PRUN
Timer run/stop control
1 Run
0 Stop
0
R/W
16-bit Timer
Ch.1 Input
Clock Select
Register
(T16_CLK1)
0x4240
(16 bits)
D15–4
–
reserved
–
–
–
0 when being read.
D3–0
DF[3:0]
Timer input clock select
(Prescaler output clock)
DF[3:0]
Clock
0x0
R/W
0xf
0xe
0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
reserved
PCLK•1/16384
PCLK•1/8192
PCLK•1/4096
PCLK•1/2048
PCLK•1/1024
PCLK•1/512
PCLK•1/256
PCLK•1/128
PCLK•1/64
PCLK•1/32
PCLK•1/16
PCLK•1/8
PCLK•1/4
PCLK•1/2
PCLK•1/1
16-bit Timer
Ch.1 Reload
Data Register
(T16_TR1)
0x4242
(16 bits)
D15–0
TR[15:0]
16-bit timer reload data
TR15 = MSB
TR0 = LSB
0x0 to 0xffff
0x0
R/W
16-bit Timer
Ch.1 Counter
Data Register
(T16_TC1)
0x4244
(16 bits)
D15–0
TC[15:0]
16-bit timer counter data
TC15 = MSB
TC0 = LSB
0x0 to 0xffff
0xffff
R
16-bit Timer
Ch.1 Control
Register
(T16_CTL1)
0x4246
(16 bits)
D15–11
–
reserved
–
–
–
0 when being read.
D10
CKACTV
External clock active level select
1 High
0 Low
1
R/W
D9–8
CKSL[1:0]
Input clock and pulse width
measurement mode select
CKSL[1:0]
Mode
0x0
R/W
0x3
0x2
0x1
0x0
reserved
Pulse width
External clock
Internal clock
D7–5
–
reserved
–
–
–
0 when being read.
D4
TRMD
Count mode select
1 One shot
0 Repeat
0
R/W
D3–2
–
reserved
–
–
–
0 when being read.
D1
PRESER
Timer reset
1 Reset
0 Ignored
0
W
D0
PRUN
Timer run/stop control
1 Run
0 Stop
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 ...