Datasheet

MC9S08QG8 and MC9S08QG4 Data Sheet, Rev. 5
Freescale Semiconductor 227
Chapter 16
Timer/Pulse-Width Modulator (S08TPMV2)
16.1 Introduction
Figure 16-1 shows the MC9S08QG8/4 block diagram with the TPM highlighted.
16.1.1 ACMP/TPM Configuration Information
The ACMP module can be configured to connect the output of the analog comparator to TPM input capture
channel 0 by setting ACIC in SOPT2. With ACIC set, the TPMCH0 pin is not available externally
regardless of the configuration of the TPM module.
16.1.2 MTIM/TPM Configuration Information
The external clock for the TPM module, TPMCLK, is selected by setting CLKS[B:A] = 1:1 in TPMSC,
which selects the TCLK pin input. The TCLK input on PTA5 can be enabled as external clock inputs to
both the MTIM and TPM modules simultaneously.