131
CHAPTER 7 8-BIT PWM TIMER
7.4
8-bit PWM Timer Interrupts
The 8-bit PWM timer can generate an interrupt request when a match is detected
between the counter value and PWM compare register value for the interval timer
function. Interrupt requests are not generated for the PWM timer function.
8-bit PWM timer generates the IRQ2 as an interrupt request.
■
Interrupts for interval timer function
The counter starts to count up from "00
H
" on the selected count clock. When the counter value matches the
PWM compare register (COMR) value, the interrupt request flag bit (CNTR: TIR) is set to "1".
At this time, an interrupt request (IRQ2) to the CPU is generated if the interrupt request enable bit is
enabled (CNTR: TIE = "1"). Write "0" to the TIR bit in the interrupt processing routine to clear the
interrupt request.
The TIR bit is set to "1" when the counter value matches the set value, regardless of the value of the TIE
bit.
Reference:
The TIR bit is not set if the counter is stopped (CNTR: TPE = "0") at the same time as the counter value
matches the COMR register value.
An interrupt request is generated immediately if the TIR bit is "1" when the TIE bit is changed from
disabled to enabled ("0" --> "1").
■
Registers and vector tables for 8-bit PWM timer interrupts
See Section 3.4.2 "Interrupt Processing" for details on the interrupt operation.
Table 7.4-1 Registers and vector tables for 8-bit PWM timer interrupts
Interrupt
Interrupt level setting register
Vector table address
Register
Setting bits
Upper
Lower
8-bit PWM timer
IRQ2
ILR1 (007C
H
)
L21 (Bit 5)
L20 (Bit 4)
FFF6
H
FFF7
H
Содержание MB89950 Series
Страница 2: ......
Страница 3: ...FUJITSU LIMITED F2MC 8L 8 BIT MICROCONTROLLER MB89950 950A Series HARDWARE MANUAL ...
Страница 4: ......
Страница 10: ...vi ...
Страница 34: ...20 CHAPTER 2 HANDLING DEVICES ...
Страница 134: ...120 CHAPTER 6 WATCHDOG TIMER ...
Страница 236: ...222 CHAPTER 10 UART ...
Страница 276: ...262 CHAPTER 12 LCD CONTROLLER DRIVER ...
Страница 310: ...296 APPENDIX ...
Страница 311: ...297 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 316: ...302 INDEX ...
Страница 318: ......