English
Language : 

MC9RS08KA2_08 Datasheet, PDF (92/136 Pages) Freescale Semiconductor, Inc – RS08 Microcontrollers
Modulo Timer (RS08MTIMV1)
Name
MTIMSC
MTIMCLK
MTIMCNT
MTIMMOD
Table 11-2. MTIM Register Summary
7
6
5
4
3
2
1
0
R TOF
0
0
0
0
0
TOIE
TSTP
W
TRST
R
0
0
CLKS
PS
W
R
COUNT
W
R
MOD
W
11.3.1 MTIM Status and Control Register (MTIMSC)
MTIMSC contains the overflow status flag and control bits which are used to configure the interrupt
enable, reset the counter, and stop the counter.
7
6
5
4
3
R
TOF
0
0
TOIE
TSTP
W
TRST
2
1
0
0
0
0
Reset:
0
0
0
1
0
0
0
0
Figure 11-3. MTIM Status and Control Register (MTIMSC)
Table 11-3. MTIMSC Field Descriptions
Field
7
TOF
6
TOIE
5
TRST
4
TSTP
Description
MTIM Overflow Flag — This read-only bit is set when the MTIM counter register overflows to $00 after reaching
the value in the MTIM modulo register. Clear TOF by reading the MTIMSC register while TOF is set, then writing
a 0 to TOF. TOF is also cleared when TRST is written to a 1 or when any value is written to the MTIMMOD
register.
0 MTIM counter has not reached the overflow value in the MTIM modulo register.
1 MTIM counter has reached the overflow value in the MTIM modulo register.
MTIM Overflow Interrupt Enable — This read/write bit enables MTIM overflow interrupts. If TOIE is set, then an
interrupt is generated when TOF = 1. Reset clears TOIE. Do not set TOIE if TOF = 1. Clear TOF first, then set
TOIE.
0 TOF interrupts are disabled. Use software polling.
1 TOF interrupts are enabled.
MTIM Counter Reset — When a 1 is written to this write-only bit, the MTIM counter register resets to $00 and
TOF is cleared. Reading this bit always returns 0.
0 No effect. MTIM counter remains at current state.
1 MTIM counter is reset to $00.
MTIM Counter Stop — When set, this read/write bit stops the MTIM counter at its current value. Counting
resumes from the current value when TSTP is cleared. Reset sets TSTP to prevent the MTIM from counting.
0 MTIM counter is active.
1 MTIM counter is stopped.
MC9RS08KA2 Series Data Sheet, Rev. 4
92
Freescale Semiconductor