![Freescale Semiconductor MC9S12ZVM series Reference Manual Download Page 552](http://html1.mh-extra.com/html/freescale-semiconductor/mc9s12zvm-series/mc9s12zvm-series_reference-manual_2330602552.webp)
Chapter 14 Pulse Width Modulator with Fault Protection (PMF15B6CV3)
MC9S12ZVM Family Reference Manual Rev. 1.3
552
Freescale Semiconductor
14.7
Interrupts
This section describes the interrupts generated by the PMF and their individual sources. Vector addresses
and interrupt priorities are defined at SoC-level.
14.8
Initialization and Application Information
14.8.1
Initialization
Initialize all registers; read, then set the related LDOK bit or global load OK before setting the PWMEN
bit. With LDOK set, setting PWMEN for the first time after reset immediately loads the PWM generator
thereby setting the PWMRF flag. PWMRF generates a CPU interrupt request if the PWMRIE bit is set. In
complementary channel operation with current-status correction selected, PWM value registers one, three,
and five control the outputs for the first PWM cycle.
NOTE
Even if LDOK is not set, setting PWMEN also sets the PWMRF flag. To
prevent a CPU interrupt request, clear the PWMRIE bit before setting
PWMEN.
Setting PWMEN for the first time after reset without first setting LDOK loads a prescaler divisor of one,
a PWM value of 0x0000, and an unknown modulus.
The PWM generator uses the last values loaded if PWMEN is cleared and then set while LDOK equals
zero.
Initializing the deadtime register, after setting PWMEN or OUTCTL
n
, can cause an improper deadtime
insertion. However, the deadtime can never be shorter than the specified value.
Table 14-44. PMF Interrupt Sources
Module Interrupt Sources
(Interrupt Vector)
Associated Flags
Local Enable
PMF reload A
PWMRFA
PMFENCA[PWMRIEA]
PMF reload B
(1)
1. If MTG=0: Interrupt mirrors PMF reload A interrupt
PWMRFB
PMFENCB[PWMRIEB]
PMF reload C
PWMRFC
PMFENCC[PWMRIEC]
PMF fault
PMFFIF[FIF0]
PMFFIF[FIF1]
PMFFIF[FIF2]
PMFFIF[FIF3]
PMFFIE[FIE0]
PMFFIE[FIE1]
PMFFIE[FIE2]
PMFFIE[FIE3]
PMF reload overrun
PMFROIF[PMFROIFA]
PMFROIF[PMFROIFB]
PMFROIF[PMFROIFC]
PMFROIE[PMFROIEA]
PMFROIE[PMFROIEB]
PMFROIE[PMFROIEC]