Mtim Counter Register (Mtimx_Cnt); Mtim Modulo Register (Mtimx_Mod); Functional Description - Freescale Semiconductor MC9S08PT60 Reference Manual

Table of Contents

Advertisement

Functional description

13.6.3 MTIM Counter Register (MTIMx_CNT)

MTIM_CNT is the read-only value of the current MTIM count of the 8-bit counter.
Address: Base address + 2h offset
Bit
7
Read
Write
Reset
0
Field
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 0x00.

13.6.4 MTIM Modulo Register (MTIMx_MOD)

Address: Base address + 3h offset
Bit
7
Read
Write
Reset
0
Field
MOD
MTIM Modulo
These eight read/write bits contain the modulo value used to reset the count and set TOF. A value of 0x00
puts the MTIM in free-running mode. Writing to MTIM_MOD resets the COUNT to 0x00 and clears TOF.
Reset sets the modulo to 0x00.
13.7 Functional description
The MTIM consists of a main 8-bit up-counter with an 8-bit modulo register, a clock
source selector, and a prescaler block with nine selectable values. The module also
contains software-selectable interrupt logic.
402
6
5
4
0
0
0
MTIMx_CNT field descriptions
6
5
4
0
0
0
MTIMx_MOD field descriptions
MC9S08PT60 Reference Manual, Rev. 4, 08/2014
3
2
COUNT
0
0
Description
3
2
MOD
0
0
Description
1
0
0
0
1
0
0
0
Freescale Semiconductor, Inc.

Advertisement

Table of Contents
loading

Table of Contents