![NXP Semiconductors MKL27Z128VFM4 Reference Manual Download Page 458](http://html1.mh-extra.com/html/nxp-semiconductors/mkl27z128vfm4/mkl27z128vfm4_reference-manual_1721847458.webp)
29.2 Introduction
The TPM (Timer/PWM Module) is a 2- to 8-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. An example of using the TPM with the
asynchronous DMA is described in
AN4631:Using the Asynchronous DMA features of
.
29.2.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.
29.2.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
• It can be a free-running counter or modulo counter
• The counting can be up or up-down
• Includes 6 channels that can be configured for input capture, output compare, edge-
aligned PWM mode, or center-aligned PWM mode
• In input capture mode the capture can occur on rising edges, falling edges or
both edges
Introduction
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
458
Freescale Semiconductor, Inc.