APPENDIX A LIST OF I/O REGISTERS
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
AP-A-45
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T8 Ch.7
Control Register
(T8_CTL7)
0x301176
(16 bits)
D15–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
T8 Ch.7
Interrupt
Control Register
(T8_INT7)
0x301178
(16 bits)
D15–9 –
reserved
–
–
–
0 when being read.
D8
T8IE
T8 interrupt enable
1 Enable
0 Disable
0
R/W
D7–1 –
reserved
–
–
–
0 when being read.
D0
T8IF
T8 interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
0x301180–0x30118c
16-bit PWM Timer (T16A5) Ch.0
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16A5 Ch.0
Counter Control
Register
(T16A_CTL0)
0x301180
(16 bits)
D15–14 –
reserved
–
–
–
0 when being read.
D13–12 DMASEL
[1:0]
DMAC channel select
DMASEL[1:0] DMAC channel 0x0 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 0x0 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.0
Counter Data
Register
(T16A_TC0)
0x301182
(16 bits)
D15–0 T16ATC
[15:0]
Counter data
T16ATC15 = MSB
T16ATC0 = LSB
0x0 to 0xffff
0x0
R
T16A5 Ch.0
Comparator/
Capture Control
Register
(T16A_CCCTL0)
0x301184
(16 bits)
D15–14 CAPBTRG
[1:0]
Capture B trigger select
CAPBTRG[1:0] Trigger edge
0x0 R/W
0x3
0x2
0x1
0x0
↑
and
↓
↓
↑
None
D13–12 TOUTBMD
[1:0]
TOUT B mode select
TOUTBMD[1:0]
Mode
0x0 R/W
0x3
0x2
0x1
0x0
cmp B:
↑
or
↓
cmp A:
↑
or
↓
cmp A:
↑
, B:
↓
Off
D11–10 –
reserved
–
–
–
0 when being read.
D9
TOUTBINV TOUT B invert
1 Invert
0 Normal
0
R/W
D8
CCBMD
T16A_CCB register mode select
1 Capture
0 Comparator
0
R/W
D7–6 CAPATRG
[1:0]
Capture A trigger select
CAPATRG[1:0] Trigger edge
0x0 R/W
0x3
0x2
0x1
0x0
↑
and
↓
↓
↑
None
D5–4 TOUTAMD
[1:0]
TOUT A mode select
TOUTAMD[1:0]
Mode
0x0 R/W
0x3
0x2
0x1
0x0
cmp B:
↑
or
↓
cmp A:
↑
or
↓
cmp A:
↑
, B:
↓
Off
D3–2 –
reserved
–
–
–
0 when being read.
D1
TOUTAINV TOUT A invert
1 Invert
0 Normal
0
R/W
D0
CCAMD
T16A_CCA register mode select
1 Capture
0 Comparator
0
R/W