Datasheet
MC9S08QG8 and MC9S08QG4 Data Sheet, Rev. 5
Freescale Semiconductor 181
Chapter 13
Modulo Timer (S08MTIMV1)
13.1 Introduction
The MTIM is a simple 8-bit timer with several software selectable clock sources and a programmable
interrupt.
The central component of the MTIM is the 8-bit counter, which can operate as a free-running counter or a
modulo counter. A timer overflow interrupt can be enabled to generate periodic interrupts for time-based
software loops.
Figure 13-1 shows the MC9S08QG8/4 block diagram with the MTIM highlighted.
13.1.1 MTIM/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 on PTA5 can be enabled as external clock inputs to
both the MTIM and TPM modules simultaneously.
