Periodic Interrupt Timer (Pit) - Motorola MPC8260 PowerQUICC II User Manual

Motorola processor users manual
Table of Contents

Advertisement

timersclk for TMCNT (8,192 Hz)
Section 4.3.2.15, ÒTime Counter Register (TMCNT),Ó describes the time counter register.

4.1.4 Periodic Interrupt Timer (PIT)

The periodic interrupt timer consists of a 16-bit counter clocked by timersclk. The 16-bit
counter decrements to zero when loaded with a value from the periodic interrupt timer
count register (PITC); after the timer reaches zero, PISCR[PS] is set and an interrupt is
generated if PISCR[PIE] = 1. At the next input clock edge, the value in the PITC is loaded
into the counter and the process repeats. When a new value is loaded into the PITC, the PIT
is updated, the divider is reset, and the counter begins counting.
Setting PS creates a pending interrupt that remains pending until PS is cleared. If PS is set
again before being cleared, the interrupt remains pending until PS is cleared. Any write to
the PITC stops the current countdown and the count resumes with the new value in PITC.
If PTE = 0, the PIT cannot count and retains the old count value. The PIT is not affected by
reads. Figure 4-5 is a block diagram of the PIT.
PISCR[PTE]
timersclk
Clock
for PIT
Disable
MOTOROLA
Divide
by 8,192
Figure 4-4. TMCNT Block Diagram
PITC
16-Bit Modulus
Counter
Figure 4-5. PIT Block Diagram
Chapter 4. System Interface Unit (SIU)
Part II. ConÞguration and Reset
32-Bit Counter
=
32-Bit Register
PISCR[PS]
PISCR[PIE]
SEC
Interrupt
Alarm
Interrupt
PIT
Interrupt
4-5

Advertisement

Table of Contents
loading

Table of Contents