2 pit modulus register (pmrn), 3 pit count register (pcntrn), 2 pit modulus register (pmr – Motorola ColdFire MCF5281 User Manual

Page 365: 3 pit count register (pcntr, 2 pit modulus register (pmr n ), 3 pit count register (pcntr n )

Advertising
background image

Programmable Interrupt Timers (PIT0–PIT3)

Freescale Semiconductor

19-5

19.2.2

PIT Modulus Register (PMRn)

The 16-bit read/write PMRn contains the timer modulus value loaded into the PIT counter when the count
reaches 0x0000 and the PCSRn[RLD] bit is set.

When the PCSRn[OVW] bit is set, PMRn is transparent, and the value written to PMRn is immediately
loaded into the PIT counter. The prescaler counter is reset (0xFFFF) anytime a new value is loaded into
the PIT counter and also during reset. Reading the PMRn returns the value written in the modulus latch.
Reset initializes PMRn to 0xFFFF.

19.2.3

PIT Count Register (PCNTRn)

The 16-bit, read-only PCNTRn contains the counter value. Reading the 16-bit counter with two 8-bit reads
is not guaranteed coherent. Writing to PCNTRn has no effect, and write cycles are terminated normally.

1

RLD

Reload bit. The read/write reload bit enables loading the value of PMRn into PIT counter when the count reaches
0x0000.
0 Counter rolls over to 0xFFFF on count of 0x0000
1 Counter reloaded from PMRn on count of 0x0000

0

EN

PIT enable bit. Enables PIT operation. When PIT is disabled, counter and prescaler are held in a stopped state. This
bit is read anytime, write anytime.
0 PIT disabled
1 PIT enabled

IPSBAR

Offset:

0x15_0002 (PMR0)
0x16_0002 (PMR

1

)

0x17_0002 (PMR

2

)

0x18_0002 (PMR

3

)

Access: Supervisor

read/write

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

R

PM

W

Reset

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

Figure 19-3. PIT Modulus Register (PMRn)

Table 19-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.

Table 19-3. PCSRn Field Descriptions (continued)

Field

Description

MCF5282 and MCF5216 ColdFire Microcontroller User’s Manual, Rev. 3

Advertising
This manual is related to the following products: