
Appendix A: I/O Register List
AP-26
EPSON
S1C17003 TECHNICAL MANUAL
0x5300–0x530c
PWM & Capture Timer
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
PWM Timer
Compare Data
A Register
(T16E_CA)
0x5300
(16 bits)
D15–0 T16ECA[15:0] Compare data A
T16ECA15 = MSB
T16ECA0 = LSB
0x0 to 0xffff
0x0 R/W
PWM Timer
Compare Data
B Register
(T16E_CB)
0x5302
(16 bits)
D15–0 T16ECB[15:0] Compare data B
T16ECB15 = MSB
T16ECB0 = LSB
0x0 to 0xffff
0x0 R/W
PWM Timer
Counter Data
Register
(T16E_TC)
0x5304
(16 bits)
D15–0 T16ETC[15:0] Counter data
T16ETC15 = MSB
T16ETC0 = LSB
0x0 to 0xffff
0x0 R/W
PWM Timer
Control Register
(T16E_CTL)
0x5306
(16 bits)
D15–9 –
reserved
–
0 when being read.
D8
INITOL
Internal output level
1 High
0 Low
0
R/W
D7
–
reserved
–
D6
SELFM
Fine mode select
1 Fine mode
0 Normal mode
0
R/W
D5
CBUFEN
Comparison buffer enable
1 Enable
0 Disable
0
R/W
D4
INVOUT
Inverse output
1 Invert
0 Normal
0
R/W
D3
CLKSEL
Input clock select
1 External
0 Internal
0
R/W
D2
OUTEN
Clock output enable
1 Enable
0 Disable
0
R/W
D1
T16ERST
Timer reset
1 Reset
0 Ignored
0
W 0 when being read.
D0
T16ERUN
Timer run/stop control
1 Run
0 Stop
0
R/W
PWM Timer
Input Clock
Select Register
(T16E_CLK)
0x5308
(16 bits)
D15–4 –
reserved
–
0 when being read.
D3–0 T16EDF[3:0] Timer input clock select
(Prescaler output clock)
T16EDF[3:0]
Clock
0x0 R/W
0xf
0xe
0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
reserved
PCLK1/16384
PCLK1/8192
PCLK1/4096
PCLK1/2048
PCLK1/1024
PCLK1/512
PCLK1/256
PCLK1/128
PCLK1/64
PCLK1/32
PCLK1/16
PCLK1/8
PCLK1/4
PCLK1/2
PCLK1/1
PWM Timer
Interrupt
Mask Register
(T16E_IMSK)
0x530a
(16 bits)
D15–2 –
reserved
–
0 when being read.
D1
CBIE
Compare B interrupt enable
1 Enable
0 Disable
0
R/W
D0
CAIE
Compare A interrupt enable
1 Enable
0 Disable
0
R/W
PWM Timer
Interrupt
Flag Register
(T16E_IFLG)
0x530c
(16 bits)
D15–2 –
reserved
–
0 when being read.
D1
CBIF
Compare B interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
D0
CAIF
Compare A interrupt flag
0
R/W