9 16-BIT TIMERS (T16)
S1C17F13 TeChniCal Manual
Seiko epson Corporation
9-5
(Rev. 1.0)
6.1 Clock Source and Division Ratio Settings
Table 9.
T16_
n
CLK.
CLKDIV[3:0] bits
T16_
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
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
(Note 1) The oscillation circuits/external input that are not supported in this IC cannot be
selected as the clock source.
(Note 2) When the T16_
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.
T16 Ch.
n
Mode Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
T16_
n
MOD
15–8 –
0x00
–
R
–
7–1 –
0x00
–
R
0
TRMD
0
H0
R/W
Bits 15–1 Reserved
Bit 0
TRMD
This bit selects the T16 operation mode.
1 (R/W): One-shot mode
0 (R/W): Repeat mode
For detailed information on the operation mode, refer to “Operations in One-shot Mode” and
“Operations in Repeat Mode.”
T16 Ch.
n
Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
T16_
n
CTL
15–9 –
0x00
–
R
–
8
PRUN
0
H0
R/W
7–2 –
0x00
–
R
1
PRESET
0
H0
R/W
0
MODEN
0
H0
R/W
Bits 15–9 Reserved
Bit 8
PRun
This bit starts/stops the timer.
1 (W):
Start timer
0 (W):
Stop timer
1 (R):
Timer is running
0 (R):
Timer is idle