![Freescale Semiconductor MC9S12ZVM series Reference Manual Download Page 548](http://html1.mh-extra.com/html/freescale-semiconductor/mc9s12zvm-series/mc9s12zvm-series_reference-manual_2330602548.webp)
Chapter 14 Pulse Width Modulator with Fault Protection (PMF15B6CV3)
MC9S12ZVM Family Reference Manual Rev. 1.3
548
Freescale Semiconductor
Figure 14-80. Edge-Aligned PWM Value Loading
Figure 14-81. Edge-Aligned Modulus Loading
14.4.12.5 Reload Overrun Flag
If a LDOK bit was not set before the PWM reload event, then the related reload overrun error flag is set
(PMFROIFx). If the PWM reload overrun interrupt enable bit PMFROIE
x
is set, the PMFROIF
x
flag
generates a CPU interrupt request allowing software to handle the error condition.
Figure 14-82. PMFROIF Reload Overrun Interrupt Request
UP ONLY
PWM
LDFQ[3:0] = 0000 = RELOAD EVERY CYCLE
COUNTERER
LDOK = 1
MODULUS = 3
PWM VALUE = 1
PWMRF = 1
0
3
2
1
1
3
2
1
0
3
1
1
0
3
1
1
UP ONLY
PWM
LDFQ[3:0] = 0000 = RELOAD EVERY CYCLE
LDOK = 1
MODULUS = 3
PWM VALUE = 2
PWMRF = 1
COUNTERER
1
4
2
1
1
2
2
1
0
1
2
1
V
DD
CPU INTERRUPT
PWM RELOAD
REQUEST
D
Q
CLK
CLR
WRITE 1 TO PMFROIF
RESET
PMFROIF
PMFROIE