Chapter 27
Timer/PWM Module (TPM)
27.1 Introduction
The TPM (Timer/PWM Module) is a two to eight channel timer which supports input
capture, output compare, and the generation of PWM signals to control electric motor and
power management applications. The counter, compare and capture registers are clocked
by an asynchronous clock that can remain enabled in low power modes.
27.1.1 TPM Philosophy
The TPM is built upon a very simple timer (HCS08 Timer PWM Module – TPM) used
for many years on Freescale's 8-bit microcontrollers. The TPM extends the functionality
to support operation in low power modes by clocking the counter, compare and capture
registers from an asynchronous clock that can remain functional in low power modes.
27.1.2 Features
The TPM features include:
• TPM clock mode is selectable
• Can increment on every edge of the asynchronous counter clock
• Can increment on rising edge of an external clock input synchronized to the
asynchronous counter clock
• Prescaler divide-by 1, 2, 4, 8, 16, 32, 64, or 128
• TPM includes a 16-bit counter
KL02 Sub-Family Reference Manual, Rev. 2.1, July 2013
Freescale Semiconductor, Inc.
409