15 16-BIT PWM TIMER (T16A5)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
15-11
8.2 DMAC Channel Selection
Table 15.
DMASEL[1:0]
DMAC channels
0x3
Ch.4 and Ch.5
0x2
Ch.2 and Ch.3
0x1
Ch.4 and Ch.5
0x0
Ch.2 and Ch.3
(Default: 0x0/T16A5 Ch.0, 0x1/T16A5 Ch.1)
D[11:8] CLKS[3:0]: Counter Clock Select Bits
Selects the counter clock from the 15 different prescaler (PSC Ch.0) output clocks (PCLK1 division ra-
tio) and an external clock (T16A_EXCL_
x
input clock).
8.3 Counter Clock (PCLK1 Division Ratio) Selection
Table 15.
CLKS[3:0]
Division ratio
CLKS[3:0]
Division ratio
0xf
External clock
0x7
1/128
0xe
1/16384
0x6
1/64
0xd
1/8192
0x5
1/32
0xc
1/4096
0x4
1/16
0xb
1/2048
0x3
1/8
0xa
1/1024
0x2
1/4
0x9
1/512
0x1
1/2
0x8
1/256
0x0
1/1
(Default: 0x0)
Note: • Make sure the counter is halted before setting the count clock.
• When using an external clock, the external clock cycle must be at least two CPU operating
clock cycles.
D7
BUSY: Register Writing Status Bit
Indicates the T16A5 register writing status.
1 (R):
Busy
0 (R):
Idle (default)
BUSY goes 1 when data is written to the T16A_CTL
x
, T16A_CCA
x
, or T16A_CCB
x
register and it
reverts to 0 upon completion of the writing operation.
Note: Make sure that BUSY is set to 0 before writing to these registers.
D6
Reserved
D[5:4]
T16SEL[1:0]: Counter Select Bits
Selects the counter channel.
8.4 Counter Channel Selection
Table 15.
T16SEL[1:0]
Counter channel
0x3
Ch.1
0x2
Ch.0
0x1
Ch.1
0x0
Ch.0
(Default: 0x0/T16A5 Ch.0, 0x1/T16A5 Ch.1)
A timer channel (comparator/capture block) allows use of the counter in another channel. This enables
the comparator/capture blocks to compare and capture values of the same counter.
From the T16A_TC
x
register, values of the counter channel selected by T16SEL[1:0] are read out.
D3
CBUFEN: Compare Buffer Enable Bit
Enables or disables writing to the compare buffer.
1 (R/W): Enabled
0 (R/W): Disabled (default)
When CBUFEN is set to 1, compare data is written via the compare data buffer. The buffer contents are
loaded into the compare A and compare B registers by the compare B signal.