13 PWM & CAPTURE TIMER (T16E)
S1C17001 TECHNICAL MANUAL
EPSON
159
0x530c: PWM Timer Interrupt Flag Register (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) to 1
sets this to 1 when the counter matches the compare data B register setting during counting. A PWM &
capture timer interrupt request signal is output to the ITC at the same time. This interrupt request signal
sets the ITC PWM & capture timer interrupt flag to 1 and generates an interrupt if the ITC and S1C17
core interrupt conditions are satisfied.
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) to 1
sets this to 1 when the counter matches the compare data A register setting during counting. A PWM &
capture timer interrupt request signal is output to the ITC at the same time. This interrupt request signal
sets the ITC PWM & capture timer interrupt flag to 1 and generates an interrupt if the ITC and S1C17
core interrupt conditions are satisfied.
The following processes must be performed to manage the interrupt factor occurrence state using this
register.
1. Set the ITC PWM & capture timer interrupt trigger mode to level trigger mode.
2. Reset the T16E module interrupt flags CAIF and CBIF within the interrupt processing routine after
the interrupt occurs (this also resets the ITC interrupt flag).
CAIF and CBIF are reset by writing as 1.
Note: To prevent generating unnecessary interrupts, reset the corresponding CAIF or CBIF be-
fore permitting compare A or compare B interrupts from CAIE (D0/T16E_IMSK) or CBIE
(D1/T16E_IMSK).
Summary of Contents for S1C17001
Page 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Page 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...