Microcontrollers Data Sheet

PWM Operation in Wait Mode
MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1
Freescale Semiconductor 143
12.8 PWM Operation in Wait Mode
When the microcontroller is put in low-power wait mode via the WAIT instruction, all clocks to the PWM
module will continue to run. If an interrupt is issued from the PWM module (via a reload or a fault), the
microcontroller will exit wait mode.
Clearing the PWMEN bit before entering wait mode will reduce power consumption in wait mode because
the counter, prescaler divider, and LDFQ divider will no longer be clocked. In addition, power will be
reduced because the PWMs will no longer toggle.
12.9 Control Logic Block
This subsection provides a description of the control logic block.
12.9.1 PWM Counter Registers
The PWM counter registers (PCNTH and PCNTL) display the 12-bit up/down or up-only counter. When
the high byte of the counter is read, the lower byte is latched. PCNTL will hold this latched value until it is
read. See Figure 12-33 and Figure 12-34.
Address: $0026
Bit 7654321Bit 0
Read:0000Bit 11Bit 10Bit 9Bit 8
Write:
Reset:00000000
= Unimplemented
Figure 12-33. PWM Counter Register High (PCNTH)
Address: $0027
Bit 7654321Bit 0
Read: Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Write:
Reset:00000000
= Unimplemented
Figure 12-34. PWM Counter Register Low (PCNTL)