Enhanced Queued Analog-to-Digital Converter (eQADC)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
31-76
Freescale Semiconductor
Preliminary
Step Two: Configure the eDMA to handle data transfers between the command/result queues in RAM and
the CFIFOs/RFIFOs in the eQADC.
1. For transferring, set the source address of the eDMA TCD
n
to point to the start address of
command queue 1. Set the destination address of the eDMA to point to EQADC_CFPR1. Refer to
Section 31.3.3.4, “eQADC CFIFO Push Registers 0–5 (EQADC_CFPRn)
.”
2. For receiving, set the source address of the eDMA TCD
n
to point to EQADC_RFPR3. Refer to
Section 31.3.3.5, “eQADC Result FIFO Pop Registers 0–5 (EQADC_RFPRn)
.” Set the destination
address of the eDMA to point to the starting address of result queue 1.
Step Three: Configure the eQADC control registers.
3. Configure
Section 31.3.3.7, “eQADC Interrupt and eDMA Control Registers 0–5
a) Set EOQIE1 to enable the End of Queue Interrupt request.
b) Set CFFS1 and RFDS3 to configure the eQADC to generate eDMA 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 eDMA requests. Command transfers
from the RAM to the CFIFO1 will start immediately.
Table 31-42. Example of Command Queue Commands
1
1
Fields LST, TSR, FMT, and CHANNEL_NUMBER are not shown for clarity. See
Section , “Conversion Command Message
Format for On-Chip ADC Operation
,” for details.
0
1
2 3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
EOQ
PA
U
S
E
RES
E
R
VED
ABOR
T
_ST
EB (0b1)
BN
CAL
MESSAGE
TAG
ADC COMMAND
CMD1
0
0
0
0
0
1
0
0b0011
Conversion Command
CMD2
0
0
0
0
0
1
0
0b0011
Conversion Command
CMD3
0
0
0
0
0
1
0
0b0011
Conversion Command
CMD4
0
1
0
0
0
1
0
0b0011
2
2
MESSAGE_TAG field is only defined for read configuration commands.
Configure peripheral device for next conversion sequence
CMD5
0
0
0
0
0
1
0
0b0011
Conversion Command
CMD6
0
0
0
0
0
1
0
0b0011
Conversion Command
CMD7
0
0
0
0
0
1
0
0b0011
Conversion Command
CMD8
0
1
0
0
0
1
0
0b0011
Configure peripheral device for next conversion sequence
etc
............
CMDEOQ
1
0
0
0
0
1
0
0b0011
EOQ Message
CFIFO Header
ADC Command