Programmable Interrupt Timers (PIT0–PIT1)
22-5
Freescale Semiconductor
MCF52235 ColdFire® Integrated Microcontroller Reference Manual, Rev. 6
22.2.3
PIT Count Register (PCNTRn)
The 16-bit, read-only PCNTR
n
contains the counter value. Reading the 16-bit counter with two 8-bit reads
is not guaranteed coherent. Writing to PCNTR
n
has no effect, and write cycles are terminated normally.
22.3
Functional Description
This section describes the PIT functional operation.
22.3.1
Set-and-Forget Timer Operation
This mode of operation is selected when the RLD bit in the PCSR register is set.
When PIT counter reaches a count of 0x0000, PIF flag is set in PCSR
n
. The value in the modulus register
loads into the counter, and the counter begins decrementing toward 0x0000. If the PCSR
n
[PIE] bit is set,
the PIF flag issues an interrupt request to the CPU.
When the PCSR
n
[OVW] bit is set, the counter can be directly initialized by writing to PMR
n
without
having to wait for the count to reach 0x0000.
Table 22-4. PMRn Field Descriptions
Field
Description
15–0
PM
Timer modulus. The value of this register is loaded into the PIT counter when the count reaches zero and the
PCSRn[RLD] bit is set. However, if PCSRn[OVW] is set, the value written to this field is immediately loaded into the
counter. Reading this field returns the value written.
IPSBAR
Offset:
0x15_0004 (PCNTR0)
0x16_0004 (PCNTR
1
)
Access: User read only
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
PC
W
Reset
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Figure 22-4. PIT Count Register (PCNTRn)
Table 22-5. PCNTRn Field Descriptions
Field
Description
15–0
PC
Counter value. Reading this field with two 8-bit reads is not guaranteed coherent. Writing to PCNTRn has no effect,
and write cycles are terminated normally.
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:MCF52234CVM60,
MCF52235CVM60