
Enhanced Queued Analog-to-Digital Converter (EQADC)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
1161
2. Configure the
Section 25.5.2.7, EQADC CFIFO Control Registers (EQADC_CFCR)
a) Write “1” to CFINV5 in EQADC_FCR2. This will invalidate the contents of CFIFO5.
b) Set MODE5 to Continuous-Scan Software Trigger mode in EQADC_CFCR2.
3. To transfer a command, write it to EQADC CFIFO Push Register 5 (EQADC_CFPR5) with
Message Tag = 0b0101. Refer to
Section 25.5.2.5, EQADC CFIFO Push Registers
4. Up to four commands can be queued in CFIFO5. Check the CFCTR5 status in EQADC_FISR5
before pushing another command to avoid overflowing the CFIFO. Refer to
EQADC FIFO and Interrupt Status Registers (EQADC_FISR)
.
5. When the EQADC receives a conversion result for RFIFO5, it generates an interrupt request.
RFIFO Pop Register 5 (EQADC_RFPR5) can be popped to read the result. Refer to
Section 25.5.2.6, EQADC Result FIFO Pop Registers (EQADC_RFPR)
.
25.7.4
Modifying queues
More CQueues may be needed than the six supported by the EQADC. These additional CQueues can be
supported by interrupting command transfers from a configured CFIFO, even if it is TRIGGERED and
transferring, modifying the corresponding CQueue in the RAM or associating another CQueue to it, and
restarting the CFIFO. More details on disabling a CFIFO are described in
1. Determine the resumption conditions when later resuming the scan of the CQueue at the point
before it was modified.
a) Change MODEx in
Section 25.5.2.7, EQADC CFIFO Control Registers (EQADC_CFCR)
, to
Section 25.6.4.6.1, Disabled Mode
, for a description of what happens when
MODEx is changed to Disabled.
b) Poll CFSx until it becomes IDLE in
Section 25.5.2.12, EQADC CFIFO Status Register
Section 25.5.2.10, EQADC CFIFO Transfer Counter Registers
, for later resuming the scan of the queue. The TC_CFx provides the point
of resumption.
d) Since all result data may not have being stored in the appropriate RFIFO at the time MODEx
is changed to disable, wait for all expected results to be stored in the RFIFO/RQueue before
reconfiguring the DMAC to work with the modified RQueue. The number of results that must
return can be estimated from the TC_CFx value obtained above.
2. Disable the DMAC from responding to the DMA request generated by CFFFx and RFDFx in
Section 25.5.2.9, EQADC FIFO and Interrupt Status Registers (EQADC_FISR)
.
3. Write “0x0000” to the TC_CFx field.
4. Load the new configuration and conversion commands into RAM. Configure the DMAC to
support the new CQueue/RQueue, but do not configure it yet to respond to DMA requests from
CFIFOx/RFIFOx.
5. If necessary, modify
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...