
Enhanced Queued Analog-to-Digital Converter (EQADC)
Freescale Semiconductor
27-117
PXR40 Microcontroller Reference Manual, Rev. 1
27.8.1.1
EQADC Initialization
The following steps provide an example about how to configure the EQADC controls and how to initialize
the on-chip ADCs. In this example, all conversion commands will be transferred through CFIFO0.
1.
Load all required configuration commands in the RAM in such way that they form a queue; this
data structure will be referred below as CQueue0.
shows an example of a CQueue able
to configure the on-chip ADCs at the same time. Although, this example uses the DMAC to store
commands in CFIFO0, configuration commands could have also been directly written to the
CFIFO0 push register.
2. Select source driving EQADC hardware trigger ports (ETRIG). Before proceeding to next step,
allow some time (minimum of two platform clocks - filter period is set to minimum after reset) so
that the logic level at the source is filtered and reaches the EQADC control logic.
NOTE
ETRIG ports could be driven by an external pin or by the output port of
other blocks in the device, such as timers. In order to avoid unexpected
triggering of CFIFOs in hardware trigger modes, the source driving the
ETRIG port must be selected and set to a known logic level before putting
the CFIFOs into the WAITING FOR TRIGGER state.
3.
Configure
Section 27.6.2.2, EQADC External Trigger Digital Filter Register (EQADC_ETDFR)
.
4.
Configure the DMAC to transfer data from CQueue0 to CFIFO0 in the EQADC.
5.
Configure
Section 27.6.2.6, EQADC Interrupt and DMA Control Registers (EQADC_IDCR)
a.
Set CFFS0 to configure the EQADC to generate a DMA request to load commands from
CQueue 0 to the CFIFO0.
b.
Set CFFE0 to enable the EQADC to generate a DMA request to transfer commands from
CQueue0 to CFIFO0; Command transfers from the RAM to the CFIFO0 will start immediately.
c.
Set EOQIE0 to enable the EQADC to generate an interrupt after transferring all of the
commands of CQueue0 through CFIFO0.
6.
Configure
Section 27.6.2.5, EQADC CFIFO Control Registers (EQADC_CFCR)
3
Software-triggered
CQueue
every 3.9 ms
3
Command triggered by
software strategy
4
Repetitive
angle-based
CQueue
every 625
s
7
Airflow read every 30
degrees at 8000 RPM
5
Slow repetitive
time-based CQueue
every 100 ms
10
Temperature sensors
Table 27-46. Application of Each CQueue (continued)
CQueue
Number
CQueue Type
Running Speed
Number of
Contiguous
Conversions
Example
Содержание PXR4030
Страница 1: ...PXR40 Microcontroller Reference Manual Devices Supported PXR4030 PXR4040 PXR40RM Rev 1 06 2011...
Страница 30: ...PXR40 Microcontroller Reference Manual Rev 1 Freescale Semiconductor xxx...
Страница 40: ...PXR40 Microcontroller Reference Manual Rev 1 xl Freescale Semiconductor...
Страница 66: ...Memory Map PXR40 Microcontroller Reference Manual Rev 1 2 4 Freescale Semiconductor...
Страница 120: ...Signal Descriptions 3 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 158: ...Power Management Controller PMC 5 26 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 182: ...Frequency Modulated Phase Locked Loop FMPLL 6 24 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 278: ...System Integration Unit SIU 7 96 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 280: ...System Information Module PXR40 Microcontroller Reference Manual Rev 1 8 2 Freescale Semiconductor...
Страница 300: ...Boot Assist Module BAM 9 20 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 346: ...Interrupts and Interrupt Controller INTC 10 46 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 352: ...General Purpose Static RAM SRAM 11 6 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 432: ...Core e200z7 Overview PXR40 Microcontroller Reference Manual Rev 1 13 44 Freescale Semiconductor...
Страница 460: ...Peripheral Bridge PBRIDGE 15 16 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 478: ...Memory Protection Unit MPU 16 18 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 496: ...Error Correction Status Module ECSM 17 18 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 524: ...Periodic Interrupt Timer PIT_RTI 20 12 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 740: ...FlexRay Communication Controller FLEXRAY 22 156 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 860: ...FlexCAN Module 24 50 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 928: ...Deserial Serial Peripheral Interface DSPI 25 68 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 982: ...Enhanced Serial Communication Interface eSCI 26 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1114: ...Enhanced Queued Analog to Digital Converter EQADC 27 132 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1167: ...Decimation Filter Freescale Semiconductor 28 53 PXR40 Microcontroller Reference Manual Rev 1...
Страница 1168: ...Decimation Filter 28 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1262: ...Enhanced Time Processing Unit eTPU2 29 94 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1399: ...Nexus Development Interface NDI Freescale Semiconductor 31 83 PXR40 Microcontroller Reference Manual Rev 1...
Страница 1400: ...Nexus Development Interface NDI 31 84 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...