15 16-BIT PWM TIMERS (T16B)
S1C17M20/M21/M22/M23/M24/M25
Seiko Epson Corporation
15-23
TECHNICAL MANUAL (Rev. 1.0)
Table 15.6.1 Clock Source and Division Ratio Settings
T16BnCLK.
CLKDIV[3:0] bits
T16BnCLK.CLKSRC[2:0] bits
0x0
0x1
0x2
0x3
0x4
0x5
0x6
0x7
IOSC
OSC1
OSC3
EXOSC
EXCLn0
EXCLn1
EXCLn0
inverted
input
EXCLn1
inverted
input
0xf
1/32,768
1/1
1/32,768
1/1
1/1
1/1
1/1
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) The oscillator circuits/external inputs that are not supported in this IC cannot be selected as the clock source.
T16B Ch.
n
Counter Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
T16BnCTL
15–9 –
0x00
–
R
–
8
MAXBSY
0
H0
R
7–6 –
0x0
–
R
5–4 CNTMD[1:0]
0x0
H0
R/W
3
ONEST
0
H0
R/W
2
RUN
0
H0
R/W
1
PRESET
0
H0
R/W
0
MODEN
0
H0
R/W
Bits 15–9 Reserved
Bit 8
MAXBSY
This bit indicates whether data can be written to the T16B
n
MC register or not.
1 (R):
Busy status (cannot be written)
0 (R):
Idle (can be written)
While this bit is 1, the T16B
n
MC register is loading the MAX value. Data writing is prohibited during
this period.
Bits 7–6
Reserved
Bits 5–4
CNTMD[1:0]
These bits select the counter up/down mode. The count mode is configured with this selection and the
T16B
n
CTL.ONEST bit setting (see Table 15.6.2).
Bit 3
ONEST
This bit selects the counter repeat/one-shot mode. The count mode is configured with this selection
and the T16B
n
CTL.CNTMD[1:0] bit settings (see Table 15.6.2).