Datasheet

Chapter 12 Modulo Timer (S08MTIMV1)
MC9S08SG32 Data Sheet, Rev. 8
192 Freescale Semiconductor
12.3.3 MTIM Counter Register (MTIMCNT)
MTIMCNT is the read-only value of the current MTIM count of the 8-bit counter.
12.3.4 MTIM Modulo Register (MTIMMOD)
7 654 3 210
R COUNT
W
Reset: 0 0 0 0 0 0 0 0
Figure 12-6. MTIM Counter Register
Table 12-4. MTIM Counter Register Field Description
Field Description
7:0
COUNT
MTIM Count — These eight read-only bits contain the current value of the 8-bit counter. Writes have no effect to
this register. Reset clears the count to $00.
7 654 3 210
R
MOD
W
Reset: 0 0 0 0 0 0 0 0
Figure 12-7. MTIM Modulo Register
Table 12-5. MTIM Modulo Register Field Descriptions
Field Description
7:0
MOD
MTIM Modulo These eight read/write bits contain the modulo value used to reset the count and set TOF. A value
of $00 puts the MTIM in free-running mode. Writing to MTIMMOD resets the COUNT to $00 and clears TOF. Reset
sets the modulo to $00.