Datasheet

MC9RS08KA2 Series Data Sheet, Rev. 4
Freescale Semiconductor 89
Chapter 11
Modulo Timer (RS08MTIMV1)
11.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 that 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.
The TCLK input is connected to the PTA2 pin of the MC9RS08KA2 Series. The XCLK input is connected
to the ICSFFCLK clock divided by two, where the ICSFFCLK is the fixed-frequency internal reference
clock from the ICS module.
Figure 11-1 shows the MC9RS08KA2 Series block diagram with the MTIM highlighted.
Figure 11-1. MC9RS08KA2 Series Block Diagram Highlighting MTIM Block and Pin
RS08 CORE
USER RAM — 63 BYTES
NOTES:
(1) Pins are software configurable with pullup/pulldown device if input port.
(2) Integrated pullup device enabled if reset enabled (RSTPE=1).
(3) These pins are not available in 6-pin package
POWER AND
PTA
V
SS
V
DD
INTERNAL CLOCK
SOURCE
BDC
RS08 SYSTEM CONTROL
RTI
CPU
COP
WAKEUP LVD
RESET AND STOP WAKEUP
MODES OF OPERATION
POWER MANAGEMENT
5-BIT KEYBOARD
INTERRUPT MODULE
PTA0/KBIP0/ACMP+
(1)
PTA1/KBIP1/ACMP-
(1)
PTA2/KBIP2/TCLK/RESET/V
PP
(1),( 2)
PTA3/ACMPO/BKGD/MS
ANALOG COMPARATOR
MODULE
MODULO TIMER
MODULE
PTA4/KBIP4
(1),(3)
PTA5/KBIP5
(1), (3)
INTERNAL REGULATOR
(KBI)
5
TCLK
ACMP-
ACMP+
ACMPO
(ICS)
(ACMP)
(MTIM)
USER
FLASH
MC9RS08KA2 — 2048 BYTES
MC9RS08KA1 — 1024 BYTES