Chapter 31 System Timer Module (STM)
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
801
31.5.2.2
STM Count Register (STM_CNT)
The STM Count Register (STM_CNT) holds the timer count value.
Address: Base + 0x0000
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R
CPS[7:0]
0
0
0
0
0
0
FRZ
TEN
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 31-1. STM Control Register (STM_CR)
Table 31-2. STM_CR field descriptions
Field
Description
CPS[7:0]
Counter Prescaler
Selects the clock divide value for the prescaler (1 - 256).
0x00 Divide system clock by 1.
0x01 Divide system clock by 2.
...
0xFF Divide system clock by 256.
FRZ
Freeze
Allows the timer counter to be stopped when the device enters debug mode.
0 STM counter continues to run in debug mode.
1 STM counter is stopped in debug mode.
TEN
Timer Counter Enabled
0 Counter is disabled.
1 Counter is enabled.
Address: Base + 0x0004
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
CNT
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R
CNT
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 31-2. STM Count Register (STM_CNT)