DMA Timers (DTIM0–DTIM3)
MCF52277 Reference Manual, Rev. 1
28-8
Freescale Semiconductor
28.3
Functional Description
28.3.1
Prescaler
The prescaler clock input is selected from the internal bus clock (f
sys/2
divided by 1 or 16) or from the
corresponding timer input, DT
n
IN. DT
n
IN is synchronized to the internal bus clock, and the
synchronization delay is between two and three internal bus clocks. The corresponding DTMR
n
[CLK]
selects the clock input source. A programmable prescaler divides the clock input by values from 1 to 256.
The prescaler output is an input to the 32-bit counter, DTCN
n
.
28.3.2
Capture Mode
Each DMA timer has a 32-bit timer capture register (DTCR
n
) that latches the counter value when the
corresponding input capture edge detector senses a defined DT
n
IN transition. The capture edge bits
(DTMR
n
[CE]) select the type of transition that triggers the capture and sets the timer event register capture
event bit, DTER
n
[CAP]. If DTER
n
[CAP] and DTXMR
n
[DMAEN] are set, a DMA request is asserted. If
DTER
n
[CAP] is set and DTXMR
n
[DMAEN] is cleared, an interrupt is asserted.
28.3.3
Reference Compare
Each DMA timer can be configured to count up to a reference value, at which point DTER
n
[REF] is set.
If DTMR
n
[ORRI] is set and DTXMR
n
[DMAEN] is cleared, an interrupt is asserted. If DTMR
n
[ORRI]
and DTXMR
n
[DMAEN] are set, a DMA request is asserted. If the free run/restart bit DTMR
n
[FRR] is
set, a new count starts. If it is clear, the timer keeps running.
28.3.4
Output Mode
When a timer reaches the reference value selected by DTRR, it can send an output signal on DT
n
OUT.
DT
n
OUT can be an active-low pulse or a toggle of the current output, as selected by the DTMR
n
[OM] bit.
Address:
0x
FC07_00
0C
(
DTCN0
)
0x
FC07_400
C
(
DTCN1
)
0x
FC07_800
C
(
DTCN2
)
0x
FC07_C00
C
(
DTCN3
)
Access: User read/write
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
R
CNT (32-bit timer counter value count)
W
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Figure 28-7. DMA Timer Counters (DTCN
n
)
Table 28-7. DTCN
n
Field Descriptions
Field
Description
31–0
CNT
Timer counter. Can be read at anytime without affecting counting. Any write to this field clears it.
Содержание MCF52277
Страница 1: ...MCF52277 Reference Manual Devices Supported MCF52274 MCF52277 Document Number MCF52277RM Rev 1 04 2008...
Страница 22: ...MCF52277 Reference Manual Rev 1 Freescale Semiconductor xxii...
Страница 32: ...MCF52277 Reference Manual Rev 0 xxxii Freescale Semiconductor...
Страница 60: ...Signal Descriptions MCF52277 Reference Manual Rev 1 2 16 Freescale Semiconductor...
Страница 112: ...Enhanced Multiply Accumulate Unit EMAC MCF52277 Reference Manual Rev 1 4 20 Freescale Semiconductor...
Страница 128: ...Static RAM SRAM MCF52277 Reference Manual Rev 1 6 6 Freescale Semiconductor...
Страница 140: ...Clock Module MCF52277 Reference Manual Rev 1 7 12 Freescale Semiconductor...
Страница 172: ...Chip Configuration Module CCM MCF52277 Reference Manual Rev 1 9 16 Freescale Semiconductor...
Страница 180: ...Serial Boot Facility SBF MCF52277 Reference Manual Rev 1 10 8 Freescale Semiconductor...
Страница 188: ...Reset Controller Module MCF52277 Reference Manual Rev 1 11 8 Freescale Semiconductor...
Страница 210: ...Crossbar Switch XBS MCF52277 Reference Manual Rev 1 13 8 Freescale Semiconductor...
Страница 480: ...Liquid Crystal Display Controller LCDC MCF52277 Reference Manual Rev 1 21 44 Freescale Semiconductor...
Страница 510: ...Touchscreen Controller Analog to Digital Converter MCF52277 Reference Manual Rev 1 22 30 Freescale Semiconductor...
Страница 542: ...FlexCAN MCF52277 Reference Manual Rev 1 23 32 Freescale Semiconductor...
Страница 568: ...Pulse Width Modulation PWM Module MCF52277 Reference Manual Rev 1 24 26 Freescale Semiconductor...
Страница 640: ...Programmable Interrupt Timers PIT0 PIT1 MCF52277 Reference Manual Rev 1 27 8 Freescale Semiconductor...
Страница 690: ...DMA Serial Peripheral Interface DSPI MCF52277 Reference Manual Rev 1 29 40 Freescale Semiconductor...
Страница 724: ...UART Modules MCF52277 Reference Manual Rev 1 30 34 Freescale Semiconductor...
Страница 740: ...I2 C Interface MCF52277 Reference Manual Rev 1 31 16 Freescale Semiconductor...
Страница 790: ...Debug Module MCF52277 Reference Manual Rev 1 32 50 Freescale Semiconductor...