English
Language : 

MC9S12E64CFUE Datasheet, PDF (349/606 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 11 Pulse Width Modulator with Fault Protection (PMF15B6CV2)
11.3.2.25 PMF Enable Control B Register (PMFENCB)
Module Base + 0x0028
7
6
5
4
3
2
R
0
0
0
0
0
PWMENB
W
Reset
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 11-31. PMF Enable Control B Register (PMFENCB)
1
LDOKB
0
Read anytime and write only if MTG is set.
0
PWMRIEB
0
Table 11-32. PMFENCB Field Descriptions
Field
Description
7
PWMENB
PWM Generator B Enable — If MTG is clear, this bit reads zero and cannot be written.
If MTG is set, this bit when set enables the PWM generator B and the PWM2 and PWM3 pins. When PWMENB
is clear, PWM generator B is disabled, and the PWM2 and PWM3 pins are in their inactive states unless the
OUTCTL2 and OUTCTL3 bits are set.
0 PWM generator B and PWM2–3 pins disabled unless the respective OUTCTL bit is set.
1 PWM generator B and PWM2–3 pins enabled.
1
LDOKB
Load Okay B — If MTG is clear, this bit reads zero and cannot be written.
If MTG is set, this bit loads the PRSCB bits, the PMFMODB register and the PWMVAL2–3 registers into a set of
buffers. The buffered prescaler divisor B, PWM counter modulus B value, PWM2–3 pulse widths take effect at
the next PWM reload.
Set LDOKB by reading it when it is logic zero and then writing a logic one to it. LDOKB is automatically cleared
after the new values are loaded, or can be manually cleared before a reload by writing a logic zero to it. Reset
clears LDOKB.
0 Do not load new modulus B, prescaler B, and PWM2–3 values.
1 Load prescaler B, modulus B, and PWM2–3 values.
Note: Do not set PWMENB bit before setting the LDOKB bit and do not clear the LDOKB bit at the same time as
setting the PWMENB bit.
0
PWMRIEB
PWM Reload Interrupt Enable B — If MTG is clear, this bit reads zero and cannot be written.
If MTG is set, this bit enables the PWMRFB flag to generate CPU interrupt requests.
0 PWMRFB CPU interrupt requests disabled
1 PWMRFB CPU interrupt requests enabled
MC9S12E128 Data Sheet, Rev. 1.07
Freescale Semiconductor
349