English
Language : 

PXR40RM Datasheet, PDF (1100/1434 Pages) Freescale Semiconductor, Inc – PXR40 Microcontroller
Enhanced Queued Analog-to-Digital Converter (EQADC)
a. Write 0b0001 to the MODE0 field in EQADC_CFCR0 to program CFIFO0 for software
single-scan mode.
b. Write “1” to SSE0 to assert SSS0 and trigger CFIFO0.
7. Since CFIFO0 is in single-scan software mode and it is also the highest priority CFIFO, the EQADC
starts to transfer configuration commands to the on-chip ADCs and to the external device.
8. When all of the configuration commands have been transferred, CF0 in Section 27.6.2.7, EQADC
FIFO and Interrupt Status Registers (EQADC_FISR), will be set. The EQADC generates a End of
Queue interrupt. The initialization procedure is complete.
0x0
0x1
Command 0x2
Address 0x3
CQueue in
system memory
Configuration Command to CBuffer0 - Ex: Write ADC0_CR
Configuration Command to CBuffer0 - Ex: Write ADC_TSCR
Configuration Command to CBuffer1 - Ex: Write ADC1_CR
Configuration Command to CBuffer2 - Ex: Write to external device configuration register
Figure 27-73. Example of a CQueue Configuring the On-Chip ADCs/External Device
The initialization procedure described above does not generate ADC clocks that are in phase because the
timing at which the ADC0/1_EN bits, in the Section 27.6.3.1, ADC0/1 Control Registers (ADC0_CR and
ADC1_CR), are set is different. Below follows an example on how to simultaneously set these bits so that
in-phase ADC clocks are generated. In this example, ADC0/1_CLK are configured to the same frequency.
1. Push an ADC0_CR write configuration command in CFIFO0 that enables ADC0 (ADC0_EN=1)
and that sets the ADC0_CLK_PS to an appropriate value. For example, 0x80800801.
2. Push an ADC1_CR write configuration command in CFIFO1 that enables ADC1 (ADC1_EN=1)
and that sets the ADC1_CLK_PS to an appropriate value. For example, 0x82800801.
3. Configure CFIFO0 and CFIFO1 to single scan software trigger mode and simultaneously trigger
them by writing 0x04100410 to the EQADC_CFCR0 register - see Section 27.6.2.5, EQADC
CFIFO Control Registers (EQADC_CFCR).
27.8.1.2 Configuring EQADC for Applications
This section provides an example based on the applications in Table 27-46. The example describes how to
configure multiple CQueues to be used for those applications and provides a step-by-step procedure to
configure the EQADC and the associated CQueue structures. In the example, the “Fast hardware-triggered
CQueue”, described on the second row of Table 27-46, will have its commands transferred to CBuffer1;
the conversion commands will be executed by ADC1. The generated results will be returned to RFIFO3
before being transferred to the RQueues in the RAM by the DMAC.
27-118
PXR40 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor