Mtim16 Clock Configuration Register (Mtim_Clk) - NXP Semiconductors MC9S08SU16 Reference Manual

Table of Contents

Advertisement

Memory Map and Register Descriptions
Field
This bit is set when the MTIM16 counter register overflows to 0x0000 after reaching the value in the
MTIM16 modulo register. Clear TOF by reading the SC register while TOF is set and then by writing 0 to
TOF. Writing 1 has no effect. TOF is also cleared when 1 is written to TRST.
0
MTIM16 counter has not reached the overflow value in the MTIM16 modulo register.
1
MTIM16 counter has reached the overflow value in the MTIM16 modulo register.
6
MTIM16 overflow interrupt enable
TOIE
This read/write bit enables MTIM16 overflow interrupts. If TOIE is set, then an interrupt is generated when
TOF = 1. Reset clears TOIE. Do not set TOIE if TOF = 1; instead, clear TOF first, and then set TOIE.
0
TOF interrupts are disabled. Use software polling.
1
TOF interrupts are enabled.
5
MTIM16 counter reset
TRST
When 1 is written to this write-only bit, the MTIM16 counter register resets to 0x0000 and TOF is cleared.
Writing 1 to this bit also causes the modulo value to take effect at once. Reading this bit always returns 0.
0
No effect. MTIM16 counter remains in its current state.
1
MTIM16 counter is reset to 0x0000.
4
MTIM16 counter stop
TSTP
When set, this read/write bit stops the MTIM16 counter at its current value. Counting resumes from the
current value when TSTP is cleared. Reset sets TSTP to prevent the MTIM16 from counting.
0
MTIM16 counter is active.
1
MTIM16 counter is stopped.
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.

13.5.2 MTIM16 clock configuration register (MTIM_CLK)

This register contains the clock select bits (CLKS) and the prescaler select bits (PS).
Address: 8h base + 1h offset = 9h
Bit
7
Read
0
Write
Reset
0
Field
7–6
This field is reserved.
Reserved
This read-only field is reserved and always has the value 0.
210
MTIM_SC field descriptions (continued)
6
5
CLKS
0
0
MTIM_CLK field descriptions
Table continues on the next page...
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
Description
4
3
0
0
Description
2
1
PS
0
0
NXP Semiconductors
0
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents