
Enhanced Queued Analog-to-Digital Converter (eQADC)
MPC5566 Microcontroller Reference Manual, Rev. 2
19-110
Freescale Semiconductor
9. When all of the configuration commands are transferred, EQADC_FISR
n
[CF0] is set. Refer to
Section 19.3.2.8, “eQADC FIFO and Interrupt Status Registers 0–5 (EQADC_FISRn)
eQADC generates an end of queue interrupt. The initialization procedure is complete.
Figure 19-64. Example of a Command Queue Configuring the On-Chip ADCs/External Device
19.5.1.2
Configuring eQADC for Applications
This section provides an example based on the applications in
. The example describes how to
configure multiple command queues to be used for those applications and provides a step-by-step
procedure to configure the eQADC and the associated command queue structures. In the example, the
“Fast hardware-triggered command queue,” described on the second row of
, transfer its
commands to ADC1; the conversion commands are executed by ADC1. The generated results are returned
to RFIFO3 before being transferred to the result queues in the RAM by the eDMA.
NOTE
There is no fixed relationship between CFIFOs and RFIFOs with the same
number. The results of commands being transferred through CFIFO1 can be
returned to any RFIFO, regardless of its number. The destination of a result
is determined by the MESSAGE_TAG field of the command that requested
the result. Refer to
Section 19.4.1.2, “Message Format in eQADC
details.
Step One: Set up the command queues and result queues.
1. Load the RAM with configuration and conversion commands.
is an example of how
to set commands for command queue 1 .
a) Each trigger event causes four commands to be executed. When the eQADC detects the pause
bit asserted, it waits for another trigger to restart transferring commands from the CFIFO.
b) At the end of the command queue, the “EOQ” bit is asserted as shown in
c) Results are returned to RFIFO3 as specified in the MESSAGE_TAG field of commands.
2. Reserve memory space for storing results.
Configuration Command to ADC0—Ex: Write ADC0_CR
Command Queue in
0x0
0x1
0x2
0x3
System Memory
Configuration Command to ADC2—Ex: Write to external device configuration register
Configuration Command to ADC0—Ex: Write ADC_TSCR
Configuration Command to ADC1—Ex: Write ADC1_CR
Command
Address
Summary of Contents for MPC5566
Page 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Page 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Page 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Page 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Page 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Page 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Page 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...