Datasheet

13.3.1 MTIM in wait mode
The MTIM continues to run in wait mode if enabled before executing the WAIT
instruction. Therefore, the MTIM can be used to bring the MCU out of wait mode if the
timer overflow interrupt is enabled. For lowest possible current consumption, the MTIM
must be stopped by software if not needed as an interrupt source during wait mode.
13.3.2 MTIM in stop mode
The MTIM is disabled in stop mode, regardless of the settings before executing the STOP
instruction. Therefore, the MTIM cannot be used as a wakeup source from stop modes.
If stop3 is exited with a reset, the MTIM will be put into its reset state. If stop3 is exited
with an interrupt, the MTIM continues from the state it was in when stop3 was entered. If
the counter was active upon entering stop3, the count will resume from the current value.
13.3.3 MTIM in active background mode
The MTIM suspends all counting until the microcontroller returns to normal user
operating mode. Counting resumes from the suspended value as long as an MTIM reset
did not occur, MTIM_SC[TRST] written to a 1 or MTIM_MOD written.
13.4 Block diagram
The block diagram for the modulo timer module is shown in the following figure.
BUSCLK
TCLK
SYNC
CLOCK
SOURCE
SELECT
PRESCALE
AND SELECT
DIVIDE BY
8-BIT COUNTER
(MTIM_CNT)
8-BIT MODULO
(MTIM_MOD)
8-BIT COMPARATOR
TRST
TSTP
CLKS
PS
XCLK
TOIE
MTIM_
INTERRU
PT
TOF
Figure 13-1. Modulo timer (MTIM) block diagram
Block diagram
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
386 Freescale Semiconductor, Inc.