147
CHAPTER 7 8-BIT PWM TIMER
7.5
Interrupt of 8-bit PWM Timer
An interrupt factor of an 8-bit PWM timer can be a match between the counter value and
the PWM compare register value while interval timer functions are operating. While the
PWM timer functions are enabled, an interrupt request does not occur.
■
Interrupts while Interval Timer Functions are Enabled
When the counter value is incremented from 00
H
using the selected count clock and matches the PWM
compare register (COMR) value, "1" is set to the corresponding interrupt request flag bit (CNTR: TIR).
At this time, if the bit to enable an interrupt request is enabled (CNTR: TIE = 1), an interrupt request
(IRQ9) to the CPU occurs. Write "0" to the TIR bit using the interrupt handling routine to clear the
interrupt request.
The TIR bit is set to "1" when the counter value matches the settings regardless of the value of the TIE bit.
Note:
When a match is found between the counter value and the COMR register value concurrently with the
stop of the counter (CNTR: TPE = 0), the TIR bit is not set.
When the TIR bit is "1", if the TIE bit is changed from disabled to enabled (changed from "0" to "1"),
an interrupt request occurs immediately.
■
Register and Vector Table Related to the Interrupts of an 8-bit PWM Timer
See Section "3.4.2 Steps in the Interrupt Operation
"
for interrupt operations.
Table 7.5-1 Register and Vector Table Related to the Interrupts of an 8-bit PWM Timer
Interrupt
name
Interrupt level setting register
Address of vector table
Register
Bits to be set
High-order
Low-order
IRQ9
ILR3(007D
H
)
L91(bit3)
L90(bit2)
FFE8
H
FFE9
H
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......