12 16-BiT PWM TiMeR (T16e)
12-10
Seiko epson Corporation
S1C17624/604/622/602/621 TeChniCal Manual
notes: • The clock generator (CLG) must be configured to supply PCLK to the peripheral modules be-
fore running the timer.
• Make sure the counter is halted before setting the count clock.
T16e Ch.
x
interrupt Mask Register (T16e_iMSK
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
T16e Ch.
x
interrupt Mask
Register
(T16e_iMSK
x
)
0x530a
(16 bits)
D15–2 –
reserved
–
–
–
0 when being read.
D1
CBie
Compare B interrupt enable
1 Enable
0 Disable
0
R/W
D0
Caie
Compare A interrupt enable
1 Enable
0 Disable
0
R/W
D[15:2] Reserved
D1
CBie: Compare B interrupt enable Bit
Enables or disables compare B match interrupts.
1 (R/W): Interrupt enabled
0 (R/W): Interrupt disabled (default)
Setting CBIE to 1 enables compare B interrupt requests to the ITC. Setting it to 0 disables interrupts.
D0
Caie: Compare a interrupt enable Bit
Enables or disables compare A match interrupts.
1 (R/W): Interrupt enabled
0 (R/W): Interrupt disabled (default)
Setting CAIE to 1 enables compare A interrupt requests to the ITC. Setting it to 0 disables interrupts.
T16e Ch.
x
interrupt Flag Register (T16e_iFlG
x
)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
T16e Ch.
x
interrupt Flag
Register
(T16e_iFlG
x
)
0x530c
(16 bits)
D15–2 –
reserved
–
–
–
0 when being read.
D1
CBiF
Compare B interrupt flag
1 Cause of
interrupt
occurred
0 Cause of
interrupt not
occurred
0
R/W Reset by writing 1.
D0
CaiF
Compare A interrupt flag
0
R/W
D[15:2] Reserved
D1
CBiF: Compare B interrupt Flag Bit
Indicates whether the cause of compare B interrupt has occurred or not.
1 (R):
Cause of interrupt has occurred
0 (R):
No cause of interrupt has occurred (default)
1 (W):
Flag is reset
0 (W):
Ignored
CBIF is a T16E interrupt flag that is set to 1 when the counter reaches the value set in the compare B
register. CBIF is reset by writing 1.
D0
CaiF: Compare a interrupt Flag Bit
Indicates whether the cause of compare A interrupt has occurred or not.
1 (R):
Cause of interrupt has occurred
0 (R):
No cause of interrupt has occurred (default)
1 (W):
Flag is reset
0 (W):
Ignored
CAIF is a T16E interrupt flag that is set to 1 when the counter reaches the value set in the compare A
register. CAIF is reset by writing 1.