MOTOROLA
TIMER/RESET MODULE
MMC2001
9-12
REFERENCE MANUAL
Figure 9-12 PIT Block Diagram
9.6.1 PIT Operation
The PIT can be written at any time. The value written to the PIT data register (ITDR)
determines the modulus of the timer. Data read from the ITDR is the present value of
the modulus latch. The present counter value is read by reading the PIT alternate
data register (ITADR).
The counter is clocked at a fixed rate of 1/8192 seconds (~122
µ
s) which is derived
from the 32.768 kHz LOW_REFCLK divided by four.
NOTE
The internal count registers are clocked using the above divide-by-four
reference. In order to read and write these registers accurately via the
CPU core (which runs from the CPU_CLK), clock synchronization logic
is required internal to the PIT. This logic requires that the CPU clock
frequency (driven from HI_REFCLK) be greater than or equal to the
LOW_REFCLK clock that the counter clocks are derived from.
Figure 9-13 Starting a Count from an Off State
9.6.2 PIT as a “Set-and-Forget” Timer
This mode of operation is selected when the RLD bit in the PIT control/status register
(ITCSR) is set to a value of one. The counter is not directly writable from the module
data bus; instead, it gets its data from the modulus latch.
Interrupt
Count = 0
16-Bit Modulus Latch
MMC2001 Peripheral Data Bus
16-Bit Counter
8.192 kHz
Load Counter
(LOW_REFCLK/4)
0x0005
OSC
OSC/4
Counter
Modulus
0x0005
0x0003
0x0004
Freescale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..