Download Print this page

Freescale Semiconductor MPC8313E PowerQUICC II Pro Family Reference Manual page 256

Integrated
Hide thumbs Also See for MPC8313E PowerQUICC II Pro:

Advertisement

System Configuration
Offset 0x10
0
R
W
Reset
Table 5-53
defines the bit fields of PTEVR.
Bits
Name
0–30
Write reserved, read = 0
31
PIF
Periodic interrupt flag bit. Used to indicate the periodic interrupt. Its asserted if the PIT issues an interrupt
after the SPMPIT counter counts to zero. This status bit should be cleared by software.
5.6.6
Functional Description
5.6.6.1
Periodic Interval Timer Unit
The PIT generates periodic interrupts for use with a real-time operating system or the application software.
It consists of a 32-bit down-counter which is decremented by a clock derived from the CSB clock or from
the PIT clock. The 32-bit counter decrements to zero when loaded with a initial value from the periodic
interval timer load register (PTLDR). After the timer reaches zero, PTEVR[PIF] is set and an interrupt is
generated if PTCNR[PIM] = 1. At the next count cycle, the value in the PTLDR[CLDV] is loaded into the
counter and the process repeats. When a new value is loaded into the PTLDR[CLDV], the PIT is updated,
the prescaler counter is reset, and the counter begins counting. Setting of PTEVR[PIF] generates an
interrupt, that remains pending until PTEVR[PIF] is cleared. If PTEVR[PIF] is set again before being
cleared, the interrupt remains pending until PTEVR[PIF] is cleared. Any write to the PTLDR[CLDV] stops
the current countdown and the count resumes with the new value in PTLDR[CLDV]. If PTCNR[CLEN]
= 0, the PIT cannot count and retains the old count value. PTCTR contain the PIT current value. The PIT
function can be disabled if needed.
Figure 5-38
shows the functional PIT block diagram.
PTCNR[CLIN]
PIT
Clock
System
Clocking
Figure 5-38. Periodic Interval Timer Functional Block Diagram
MPC8313E PowerQUICC™ II Pro Integrated Processor Family Reference Manual, Rev. 2
5-48
Figure 5-37. Periodic Interval Timer Event Register (PTEVR)
Table 5-53. PTEVR Bit Settings
PTPSR[PRSC]
Clock
32-Bit
Prescaler
Disable
PTCNR[CLEN]
All zeros
Description
PTCNR[PIM]
PTLDR[CLDV]
32-Bit
Counter
PTCTR[CNTV]
Access: w1c
PERIODIC
Interrupt
PTEVR[PIF]
Freescale Semiconductor
30
31
PIF
w1c

Advertisement

loading

This manual is also suitable for:

Mpc8313 powerquicc ii pro