APPENDIX A LIST OF I/O REGISTERS
AP-A-46
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16A5 Ch.0
Comparator/
Capture A Data
Register
(T16A_CCA0)
0x301186
(16 bits)
D15–0 CCA[15:0] Compare/capture A data
CCA15 = MSB
CCA0 = LSB
0x0 to 0xffff
0x0 R/W
T16A5 Ch.0
Comparator/
Capture B Data
Register
(T16A_CCB0)
0x301188
(16 bits)
D15–0 CCB[15:0] Compare/capture B data
CCB15 = MSB
CCB0 = LSB
0x0 to 0xffff
0x0 R/W
T16A5 Ch.0
Comparator/
Capture
Interrupt Enable
Register
(T16A_IEN0)
0x30118a
(16 bits)
D15–6 –
reserved
–
–
–
0 when being read.
D5
CAPBOWIE Capture B overwrite interrupt enable 1 Enable
0 Disable
0
R/W
D4
CAPAOWIE Capture A overwrite interrupt enable 1 Enable
0 Disable
0
R/W
D3
CAPBIE
Capture B interrupt enable
1 Enable
0 Disable
0
R/W
D2
CAPAIE
Capture A interrupt enable
1 Enable
0 Disable
0
R/W
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
T16A5 Ch.0
Comparator/
Capture
Interrupt Flag
Register
(T16A_IFLG0)
0x30118c
(16 bits)
D15–6 –
reserved
–
–
–
0 when being read.
D5
CAPBOWIF Capture B overwrite interrupt flag 1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
D4
CAPAOWIF Capture A overwrite interrupt flag
0
R/W
D3
CAPBIF
Capture B interrupt flag
0
R/W
D2
CAPAIF
Capture A interrupt flag
0
R/W
D1
CBIF
Compare B interrupt flag
0
R/W
D0
CAIF
Compare A interrupt flag
0
R/W
0x301190–0x30119c
16-bit PWM Timer (T16A5) Ch.1
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16A5 Ch.1
Counter Control
Register
(T16A_CTL1)
0x301190
(16 bits)
D15–14 –
reserved
–
–
–
0 when being read.
D13–12 DMASEL
[1:0]
DMAC channel select
DMASEL[1:0] DMAC channel 0x1 R/W
0x3
0x2
0x1
0x0
Ch.4/5
Ch.2/3
Ch.4/5
Ch.2/3
D11–8 CLKS[3:0] Counter clock (division ratio)
select
CLKS[3:0]
Division ratio
0x0 R/W Source clock =
PCLK1
0xf
0xe
0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
External clock
1/16384
1/8192
1/4096
1/2048
1/1024
1/512
1/256
1/128
1/64
1/32
1/16
1/8
1/4
1/2
1/1
D7
BUSY
Register writing status
1 Busy
0 Idle
0
R
D6
–
reserved
–
–
–
0 when being read.
D5–4 T16SEL
[1:0]
Counter select
T16SEL[1:0] Counter channel 0x1 R/W
0x3
0x2
0x1
0x0
Ch.1
Ch.0
Ch.1
Ch.0
D3
CBUFEN
Compare buffer enable
1 Enable
0 Disable
0
R/W
D2
TMMD
Count mode select
1 One-shot
0 Repeat
0
R/W
D1
PRESET
Counter reset
1 Reset
0 Ignored
0
W 0 when being read.
D0
PRUN
Counter run/stop control
1 Run
0 Stop
0
R/W
T16A5 Ch.1
Counter Data
Register
(T16A_TC1)
0x301192
(16 bits)
D15–0 T16ATC
[15:0]
Counter data
T16ATC15 = MSB
T16ATC0 = LSB
0x0 to 0xffff
0x0
R