
13 PWM Timer (T16E)
S1C17003 TECHNICAL MANUAL
EPSON
13-19
T16E
0x530c: PWM Timer Interrupt Flag Registers (T16E_IFLG)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
PWM Timer
Interrupt
Flag Register
(T16E_IFLG)
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
Interrupt flag indicating the compare B interrupt factor occurrence status.
1(R):
Interrupt factor present
0(R):
No interrupt factor (default)
1(W):
Reset flag
0(W):
Disabled
CBIF is the interrupt flag corresponding to compare B interrupts. Setting CBIE (D1/T16E_IMSK
register) to 1 sets this to 1 when the counter matches the compare data B register setting during
counting. A PWM Timer interrupt request signal is output to the ITC at the same time. This interrupt
request signal generates an interrupt if the ITC and S1C17 core interrupt conditions are satisfied.
CBIF is reset by writing 1.
D0
CAIF: Compare A Interrupt Flag
Interrupt flag indicating the compare A interrupt factor occurrence status.
1(R):
Interrupt factor present
0(R):
No interrupt factor (default)
1(W):
Reset flag
0(W):
Disabled
CAIF is the interrupt flag corresponding to compare A interrupts. Setting CAIE (D0/T16E_IMSK
register) to 1 sets this to 1 when the counter matches the compare data A register setting during
counting. A PWM Timer interrupt request signal is output to the ITC at the same time. This interrupt
request signal generates an interrupt if the ITC and S1C17 core interrupt conditions are satisfied.
CAIF is reset by writing 1.
Note: To prevent interrupt recurrences, T16E module interrupt flags CAIF and CBIF must be reset
within the interrupt processing routine following a PWM Timer interrupt.
To prevent generating unnecessary interrupts, reset the corresponding CAIF or CBIF before
permitting compare A or compare B interrupts from CAIE (D0/T16E_IMSK register) or CBIE
(D1/T16E_IMSK register).