MC9S08SG32E1JTGR FREESCALE [Freescale Semiconductor, Inc], MC9S08SG32E1JTGR Datasheet - Page 192

no-image

MC9S08SG32E1JTGR

Manufacturer Part Number
MC9S08SG32E1JTGR
Description
HCS08 Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Chapter 12 Modulo Timer (S08MTIMV1)
12.4.1
This section shows an example of the MTIM operation as the counter reaches a matching value from the
modulo register.
In the example of
prescaler is set to PS = %0010 or divide-by-4. The modulo value in the MTIMMOD register is set to $AA.
When the counter, MTIMCNT, reaches the modulo value of $AA, the counter overflows to $00 and
continues counting. The timer overflow flag, TOF, sets when the counter value changes from $AA to $00.
An MTIM overflow interrupt is generated when TOF is set, if TOIE = 1.
192
selected
clock source
MTIM clock
(PS=%0010)
MTIMCNT
TOF
MTIMMOD:
MTIM Operation Example
Figure
$A7
12-8, the selected clock source could be any of the five possible choices. The
Figure 12-8. MTIM counter overflow example
$A8
MC9S08SG32 Data Sheet, Rev. 7
$A9
$AA
$AA
$00
Freescale Semiconductor
$01

Related parts for MC9S08SG32E1JTGR