English
Language : 

MC9S08SH32 Datasheet, PDF (239/328 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 16
Timer Pulse-Width Modulator (S08TPMV3)
16.1 Introduction
The TPM uses one input/output (I/O) pin per channel, TPMxCHn where x is the TPM number (for
example, 1 or 2) and n is the channel number (for example, 0–1). The TPM shares its I/O pins with
general-purpose I/O port pins (refer to the Pins and Connections chapter for more information).
All MC9S08SH32 Series MCUs have two TPM modules.
Figure 16-1 shows the MC9S08SH32 Series block diagram with the TPM modules highlighted.
16.1.1 TPM Configuration Information
The external clock for the MTIM module, TCLK, is selected by setting CLKS = 1:1 or 1:0 in MTIMCLK,
which selects the TCLK pin input. The TCLK input can be enabled as external clock inputs to both the
MTIM and TPM modules simultaneously.
.
16.1.2 TPM Pin Repositioning
The TPM modules pins, TPM1CHx and TPM2CHx can be repositioned under software control using
TxCHnPS bits in SOPT2 as shown in Table 16-1.
Table 16-1. TPM Position Options
TxCHxPS in SOPT2 Port Pin for TPM2CH1 Port Pin for TPM2CH0 Port Pin for TPM1CH1 Port Pin for TPM1CH0
0 (default)
1
PTB4
PTA7
PTA1
PTA6
PTB5
PTC1
PTA0
PTC0
MC9S08SH32 Series Data Sheet, Rev. 2
Freescale Semiconductor
239
PRELIMINARY