16 16-BIT PWM TIMERS (T16A3)
16-12
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
6.1 Clock Source and Division Ratio Settings
Table 16.
T16A
n
CLK.
CLKDIV[3:0] bits
T16A
n
CLK.CLKSRC[1:0] bits
0x0
0x1
0x2
0x3
OSC3B
OSC1
OSC3A
EXOSC/EXCL
m
0xf
1/32,768
1/1
1/32,768
1/1
0xe
1/16,384
1/16,384
0xd
1/8,192
1/8,192
0xc
1/4,096
1/4,096
0xb
1/2,048
1/2,048
0xa
1/1,024
1/1,024
0x9
1/512
F256
*
1/512
0x8
1/256
1/256
1/256
0x7
1/128
1/128
1/128
0x6
1/64
1/64
1/64
0x5
1/32
1/32
1/32
0x4
1/16
1/16
1/16
0x3
1/8
1/8
1/8
0x2
1/4
1/4
1/4
0x1
1/2
1/2
1/2
0x0
1/1
1/1
1/1
*
Regulated 256 Hz clock
(Note 1) The oscillator circuits/external input that are not supported in this IC cannot be
selected as the clock source.
(Note 2) When the T16A
n
CLK.CLKSRC[1:0] bits are set to 0x3, EXCL
m
is selected for the
channel with an event counter function or EXOSC is selected for other channels.
T16a3 Counter Ch.
n
Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
T16A
n
CTL
15–9 –
0x00
–
R
–
8
PRUN
0
H0
R/W
7
–
X
–
R
Read value is undefined.
6
HCM
0
H0
R/W –
5–4 CCABCNT[1:0]
0x0
H0
R/W
3
CBUFEN
0
H0
R/W
2
TRMD
0
H0
R/W
1
PRESET
0
H0
R/W
0
MODEN
0
H0
R/W
Bits 15–9 Reserved
Bit 8
PRun
This bit starts/stops counting.
1 (W):
Start counting
0 (W):
Stop counting
1 (R):
Counting
0 (R):
Idle
By writing 1 to this bit, the counter block starts count operations. However, the T16A
n
CTL.MODEN
bit must be set to 1 in conjunction with this bit or it must be set in advance. While the timer is run-
ning, writing 0 to this bit stops count operations. When the counter stops by the compare B signal in
one-shot mode, this bit is automatically cleared to 0.
Bit 7
Reserved
Bit 6
hCM
This bit sets T16A3 to half-clock mode.
1 (R/W): Enable (half-clock mode)
0 (R/W): Disable (normal clock mode)
For detailed information, refer to “TOUT Output Control, PWM waveform output and normal clock/
half-clock mode.”