EasyManua.ls Logo

NXP Semiconductors PXN2020 - 22.3.2.2 Timer n Load Value Register (LDVALn); 22.3.2.3 Timer n Current Value Register (CVALn)

NXP Semiconductors PXN2020
1376 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Periodic Interrupt Timer (PIT)
PXN20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor 22-5
22.3.2.2 Timer n Load Value Register (LDVALn)
These registers select the timeout period for the timer interrupts. Changes to this value are visible
immediately.
22.3.2.3 Timer n Current Value Register (CVALn)
These registers indicate the current timer position.
Table 22-3. PITMCR Field Descriptions
Field Description
MDIS Module Disable. This is 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.
Offset: Channel_base + 0x0000
LDVAL1 = 0x0100
LDVAL2 = 0x0110
LDVAL3 = 0x0120
LDVAL4 = 0x0130
LDVAL5 = 0x0140
LDVAL6 = 0x0150
LDVAL7 = 0x0160
LDVAL8 = 0x0170
Access: User read/write
0123456789101112131415
R
TSV31 TSV30 TSV29 TSV28 TSV27 TSV26 TSV25 TSV24 TSV23 TSV22 TSV21 TSV20 TSV19 TSV18 TSV17 TSV16
W
Reset0000000000000000
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
R
TSV15 TSV14 TSV13 TSV12 TSV11 TSV10 TSV9 TSV8 TSV7 TSV6 TSV5 TSV4 TSV3 TSV2 TSV1 TSV0
W
Reset0000000000000000
Figure 22-3. Timer n Load Value Register (LDVALn)
Table 22-4. LDVALn Field Descriptions
Field Description
TSVn Time Start Value Bits. These bits set the timer start value. The timer counts down until it reaches 0. Then it
generates an interrupt and loads this register value again. Writing a new value to this register does not restart
the timer. Instead, the value is reloaded once the timer expires. To stop the current cycle and start a timer
period with the new value, the timer must be disabled and enabled again (see Figure 22-8).

Table of Contents

Related product manuals