Enhanced Queued Analog-to-Digital Converter (EQADC)
27-120
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
Step Two: Configure the DMAC to handle data transfers between the CQueues/RQueues in RAM and the
CFIFOs/RFIFOs in the EQADC.
1.
For transferring, set the source address of the DMAC to point to the start address of CQueue1. Set
the destination address of the DMAC to point to EQADC_CFPR1. Refer to
EQADC CFIFO Push Registers (EQADC_CFPR)
.
2.
For receiving, set the source address of the DMAC to point to EQADC_RFPR3. Refer to
Section 27.6.2.4, EQADC Result FIFO Pop Registers (EQADC_RFPR)
of the DMAC to point to the starting address of RQueue1.
Step Three: Configure the EQADC Control Registers.
3.
Configure
Section 27.6.2.6, EQADC Interrupt and DMA Control Registers (EQADC_IDCR)
a.
Set EOQIE1 to enable the End of Queue Interrupt request.
b.
Set CFFS1 and RFDS3 to configure the EQADC to generate DMA requests to push commands
into CFIFO1 and to pop result data from RFIF03.
c.
Set CFINV1 to invalidate the contents of CFIFO1.
d.
Set RFDE3 and CFFE1 to enable the EQADC to generate DMA requests. Command transfers
from the RAM to the CFIFO1 will start immediately.
e.
Set RFOIE3 to indicate if RFIFO3 overflows.
f.
Set CFUIE1 to indicate if CFIFO1 underflows.
4. Configure MODE1 to continuous-scan rising edge external trigger mode in
EQADC CFIFO Control Registers (EQADC_CFCR)
.
Step Four: Command transfer to ADCs and Result data reception.
When an external rising edge event occurs for CFIFO1, the EQADC automatically will begin
transferring commands from CFIFO1 when it becomes the highest priority CFIFO trying to send
commands to CBuffer1. The received results will be placed in RFIFO3 and then moved to RQueue1
by the DMAC.
27.8.2
EQADC/DMAC Interface
This section provides an overview about the EQADC/DMAC interface and general guidelines about how
the DMAC should be configured in order for it to correctly transfer data between the queues in system
memory and the EQADC FIFOs.
NOTE
Advanced DMACs provide more functionality then the ones discussed in
this section.
27.8.2.1
CQueue/CFIFO Transfers
In transfers involving CQueues and CFIFOs, the DMAC moves data from a queued source to a single
destination as showed in
. The location of the data to be moved is indicated by the source
Summary of Contents for PXR4030
Page 1: ...PXR40 Microcontroller Reference Manual Devices Supported PXR4030 PXR4040 PXR40RM Rev 1 06 2011...
Page 30: ...PXR40 Microcontroller Reference Manual Rev 1 Freescale Semiconductor xxx...
Page 40: ...PXR40 Microcontroller Reference Manual Rev 1 xl Freescale Semiconductor...
Page 66: ...Memory Map PXR40 Microcontroller Reference Manual Rev 1 2 4 Freescale Semiconductor...
Page 120: ...Signal Descriptions 3 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 860: ...FlexCAN Module 24 50 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 1167: ...Decimation Filter Freescale Semiconductor 28 53 PXR40 Microcontroller Reference Manual Rev 1...
Page 1168: ...Decimation Filter 28 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...