8-Bit Pwm Timer Interrupts - Fujitsu Semiconductor Controller MB89950/950A Hardware Manual

F2mc-8l 8-bit microcontroller
Table of Contents

Advertisement

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.
I Interrupts for interval timer function
The counter starts to count up from "00
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").
I Registers and vector tables for 8-bit PWM timer interrupts
Table 7.4-1 Registers and vector tables for 8-bit PWM timer interrupts
8-bit PWM timer
See Section 3.4.2 "Interrupt Processing" for details on the interrupt operation.
Interrupt level setting register
Interrupt
Register
ILR1 (007C
IRQ2
H
" on the selected count clock. When the counter value matches the
H
Setting bits
)
L21 (Bit 5)
L20 (Bit 4)
CHAPTER 7 8-BIT PWM TIMER
Vector table address
Upper
Lower
FFF6
FFF7
H
H
131

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 seriesMb89950a series

Table of Contents