2 dma timer extended mode registers (dtxmrn), 2 dma timer extended mode registers (dtxmr n, 2 dma timer extended mode registers (dtxmr n ) – Freescale Semiconductor ColdFire MCF52210 User Manual

Page 364

Advertising
background image

DMA Timers (DTIM0–DTIM3)

MCF52211 ColdFire® Integrated Microcontroller Reference Manual, Rev. 2

22-4

Freescale Semiconductor

22.2.2

DMA Timer Extended Mode Registers (DTXMRn)

The DTXMRn register programs DMA request and increment modes for the timers.

Table 22-2. DTMRn Field Descriptions

Field

Description

15–8

PS

Prescaler value. The prescaler is programmed to divide the clock input (internal bus clock/(16 or 1) or clock on
DTINn) by values from 1 (PS equals 0x00) to 256 (PS equals 0xFF).

7–6

CE

Capture edge.
00 Disable capture event output
01 Capture on rising edge only
10 Capture on falling edge only
11 Capture on any edge

5

OM

Output mode.
0 Active-low pulse for one internal bus clock cycle (-ns resolution at MHz).
1 Toggle output.

4

ORRI

Output reference request, interrupt enable. If ORRI is set when DTERn[REF] is set, a DMA request or an interrupt
occurs, depending on the value of DTXMRn[DMAEN] (DMA request if set, interrupt if cleared).
0 Disable DMA request or interrupt for reference reached (does not affect DMA request or interrupt on capture

function).

1 Enable DMA request or interrupt upon reaching the reference value.

3

FRR

Free run/restart
0 Free run. Timer count continues incrementing after reaching the reference value.
1 Restart. Timer count is reset immediately after reaching the reference value.

2–1

CLK

Input clock source for the timer
00 Stop count
01 Internal bus clock divided by 1
10 Internal bus clock divided by 16. This clock source is not synchronized with the timer; therefore, successive

time-outs may vary slightly.

11 DTINn pin (falling edge)

0

RST

Reset timer. Performs a software timer reset similar to an external reset, although other register values can be written
while RST is cleared. A transition of RST from 1 to 0 resets register values. The timer counter is not clocked unless
the timer is enabled.
0 Reset timer (software reset)
1 Enable timer

IPSBAR

Offset:

0x00_0402 (DTXMR0)
0x00_0442 (DTXMR1)
0x00_0482 (DTXMR2)
0x00_04C2 (DTXMR3)

Access: User read/write

7

6

5

4

3

2

1

0

R

DMAEN

HALTED

0

0

0

0

0

MODE16

W

Reset:

0

0

0

0

0

0

0

0

Figure 22-3. DTXMRn Registers

Advertising
This manual is related to the following products: