Chapter 30 Periodic Interrupt Timer (PIT)
MPC5602P Microcontroller Reference Manual, Rev. 4
792
Freescale Semiconductor
30.3.2.2
Timer Load Value Register
n
(LDVAL
n
)
These registers select the timeout period for the timer interrupts.
30.3.2.3
Current Timer Value Register
n
(CVAL
n
)
These registers indicate the current timer position.
Table 30-2. PITMCR field descriptions
Field
Description
MDIS
Module Disable
Used to disable the module clock. This bit should be enabled before any other setup is done.
0: Clock for PIT Timers is enabled
1: Clock for PIT Timers is disabled (default)
FRZ
Freeze
Allows the timers to be stopped when the device enters debug mode.
0: Timers continue to run in debug mode.
1: Timers are stopped in debug mode.
Address: Channel Base + 0x0000
LDVAL0 = PI 0x0100
LDVAL1 = PI 0x0110
LDVAL2 = PI 0x0120
LDVAL3 = PI 0x0130
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R TSV
31
TSV
30
TSV
29
TSV
28
TSV
27
TSV
26
TSV
25
TSV
24
TSV
23
TSV
22
TSV
21
TSV
20
TSV
19
TSV
18
TSV
17
TSV
16
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 TSV
15
TSV
14
TSV
13
TSV
12
TSV
11
TSV
10
TSV
9
TSV
8
TSV7 TSV6 TSV5 TSV4 TSV3 TSV2 TSV1 TSV0
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 30-3. Timer Load Value Register
n
(LDVAL
n
)
Table 30-3. LDVAL
n
field descriptions
Field
Description
TSV
n
Time Start Value Bits
These bits set the timer start value. The timer will count down until it reaches 0, then it will generate
an interrupt and load this register value again. Writing a new value to this register will not restart
the timer, instead the value will be loaded once the timer expires. To abort the current cycle and
start a timer period with the new value, the timer must be disabled and enabled again (see