PWM Generators
MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1
Freescale Semiconductor 125
Figure 12-11. Edge-Aligned Modulus Loading
12.4.2 PWM Data Overflow and Underflow Conditions
The PWM value registers are 16-bit registers. Although the counter is only 12 bits, the user may write a
16-bit signed value to a PWM value register. As shown in Figure 12-4 and Figure 12-5, if the PWM value
is less than or equal to zero, the PWM will be inactive for the entire period. Conversely, if the PWM value
is greater than or equal to the timer modulus, the PWM will be active for the entire period. Refer to
Table 12-3.
NOTE
The terms “active” and “inactive” refer to the asserted and negated states
of the PWM signals and should not be confused with the high-impedance
state of the PWM pins.
Table 12-3. PWM Data Overflow and Underflow Conditions
PWMVALxH:PWMVALxL Condition PWM Value Used
$0000–$0FFF Normal Per register contents
$1000–$7FFF Overflow $FFF
$8000–$FFFF Underflow $000
LDOK = 1
MODULUS = 3
PWM VALUE = 2
LDOK = 1
MODULUS = 4
PWM VALUE = 2
LDOK = 1
MODULUS = 2
PWM VALUE = 2
UP-ONLY
COUNTER
PWM
LDFQ1:LDFQ0 = 00 (RELOAD EVERY CYCLE)
LDOK = 0
MODULUS = 1
PWM VALUE = 2
PWMF SET PWMF SET PWMF SET PWMF SET