Enhanced Queued Analog-to-Digital Converter (eQADC)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
18-111
9. When all of the configuration commands are transferred, EQADC_FISR
n
[CF0] is set. Refer to
Section 18.3.2.8, “eQADC FIFO and Interrupt Status Registers 0–5 (EQADC_FISRn)
eQADC generates a end of queue interrupt. The initialization procedure is complete.
Figure 18-64. Example of a Command Queue Configuring the On-Chip ADCs/External Device
18.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 18.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
command queue 1 commands should be set.
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
Содержание MPC5565
Страница 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Страница 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Страница 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Страница 325: ...Error Correction Status Module ECSM MPC5565 Microcontroller Reference Manual Rev 1 0 8 16 Freescale Semiconductor...
Страница 515: ...External Bus Interface EBI MPC5565 Microcontroller Reference Manual Rev 1 0 12 70 Freescale Semiconductor...
Страница 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Страница 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Страница 577: ...Boot Assist Module BAM MPC5565 Microcontroller Reference Manual Rev 1 0 15 18 Freescale Semiconductor...
Страница 895: ...Deserial Serial Peripheral Interface DSPI MPC5565 Microcontroller Reference Manual Rev 1 0 19 72 Freescale Semiconductor...
Страница 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Страница 1145: ...MPC5565 Register Map MPC5565 Microcontroller Reference Manual Rev 1 0 A 60 Freescale Semiconductor...
Страница 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...