16 16-BIT AUDIO PWM TIMER (T16P)
S1C33L26 TECHNICAL MANUAL
Seiko Epson Corporation
16-15
T16P Internal Clock Control Register (T16P_CLK)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16P Internal
Clock Control
Register
(T16P_CLK)
0x30120c
(16 bits)
D15–4 –
reserved
–
–
–
0 when being read.
D3–0 CLKDIV
[3:0]
Counter clock division ratio select
(Prescaler output clock)
CLKDIV[3:0]
Division ratio 0x0 R/W Source clock =
PCLK1
0xf–0xd
0xc
0xb
0xa
0x9
0x8
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
reserved
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
D[15:4] Reserved
D[3:0]
CLKDIV[3:0]: Counter Clock Division Ratio Select Bits
Selects the counter clock (PCLK1 division ratio) from the 13 different prescaler output clocks when an
internal clock is used.
6.4 Internal Clock (PCLK1 Division Ratio) Selection
Table 16.
CLKDIV[3:0]
Division ratio
CLKDIV[3:0]
Division ratio
0xf
Reserved
0x7
1/128
0xe
Reserved
0x6
1/64
0xd
Reserved
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)
Notes: • Make sure the counter is halted before setting the count clock.
• When T16P is set to fine mode, CLKDIV[3:0] is ineffective and PCLK1 is directly used as
the count clock.
T16P Interrupt Control Register (T16P_INT)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
T16P Interrupt
Control Register
(T16P_INT)
0x30120e
(16 bits)
D15–11 –
reserved
–
–
–
0 when being read.
D10
BUFEF
Buffer empty interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
X
R/W Reset by writing 1.
D9
INTBF
B match interrupt flag
0
R/W
D8
INTAF
A match interrupt flag
0
R/W
D7–3 –
reserved
–
–
–
0 when being read.
D2
INTBEEN
Buffer empty interrupt enable
1 Enable
0 Disable
0
R/W
D1
INTBEN
B match interrupt enable
1 Enable
0 Disable
0
R/W
D0
INTAEN
A match interrupt enable
1 Enable
0 Disable
0
R/W
D[15:11] Reserved
D10
BUFEF: Buffer Empty Interrupt Flag Bit
Indicates whether the cause of buffer empty interrupt has occurred or not. (Default: undefined)
1 (R):
Cause of interrupt has occurred
0 (R):
No cause of interrupt has occurred
1 (W):
Flag is reset
0 (W):
Ignored
BUFEF is a T16P interrupt flag that is set to 1 when the compare A buffer data is loaded into the com-
pare A register. BUFEF is reset by writing 1. Note, however, that the flag will be set to 1 again after
resetting if the compare A buffer is still empty. Therefore, write compare data to the compare A buffer
before resetting BUFEF.