Mtim16 Modulo Register High (Mtim_Modh) - NXP Semiconductors MC9S08SU16 Reference Manual

Table of Contents

Advertisement

Field
These 8 read-only bits contain the current low byte value of the 16-bit counter. Writing has no effect on
this register. Reset clears the register to 0x00.

13.5.5 MTIM16 modulo register high (MTIM_MODH)

A value of 0x0000 in MODH:MODL puts the MTIM16 in free-running mode. Writing to
either MODH or MODL latches the value into a buffer and the latched buffers are
updated after the second byte writing. The updated values take effect and reload to the
MODH:MODL registers in the next MTIM16 counter cycle, except for the first writing
of modulo after a chip reset or in BDM mode. However, after a software reset, the
MODH:MODL takes effect at once even if it did not take effect before the reset. On the
first writing of MODH:MODL after chip reset, the counter is reset and the modulo takes
effect immediately. The latching mechanism may be manually reset by setting the TRST
bit of the SC register (whether BDM is active or not).
When BDM is active, the coherency mechanism is frozen so that the buffer latches
remain in the state they were in when the BDM became active, even if one or both halves
of the modulo register are written while BDM is active. Any writing to the modulo
registers bypasses the buffer latches and writes directly to the modulo register while
BDM is active, and also the counter is cleared at the same time.
Reading MODH:MODL returns the modulo values that are taking effect whenever in
normal run mode or in BDM mode.
Address: 8h base + 4h offset = Ch
Bit
7
Read
Write
Reset
0
Field
MODH
MTIM16 modulo (high byte)
These 8 read/write bits contain the modulo high byte value used to reset the counter and set TOF. Reset
sets the register to 0x00.
NXP Semiconductors
MTIM_CNTL field descriptions (continued)
6
5
0
0
MTIM_MODH field descriptions
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
Description
4
3
MODH
0
0
Description
Chapter 13 Modulo Timer (MTIM)
2
1
0
0
0
0
213

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents