
Enhanced Queued Analog-to-Digital Converter (eQADC)
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
19-109
19.5.1.1
Initialization of On-Chip ADCs and an External Device
The following steps provide an example of configuring the eQADC to initialize the on-chip ADCs and the
external device. In this example, commands are sent through CFIFO0.
1. Load all required configuration commands in the RAM in such way that they form a queue; this
data structure is referred to below as Queue0.
shows an example of a command queue
able to configure the on-chip ADCs and external device at the same time.
2. Configure
Section 19.3.2.2, “eQADC Null Message Send Format Register (EQADC_NMSFR)
.”
3. Configure
Section 19.3.2.12, “eQADC SSI Control Register (EQADC_SSICR)
,” to communicate
with the external device.
4. Enable the eQADC SSI by programming the ESSIE field the
Section 19.3.2.1, “eQADC Module
Configuration Register (EQADC_MCR)
a) Write 0b10 to ESSIE field to enable the eQADC SSI. FCK is free running but serial
transmissions are not started.
b) Wait until the external device becomes stable after reset.
c) Write 0b11 to ESSIE field to enable the eQADC SSI to start serial transmissions.
5. Configure the eDMA to transfer data from Queue0 to CFIFO0 in the eQADC.
6. Configure
Section 19.3.2.7, “eQADC Interrupt and eDMA Control Registers 0–5
a) Set CFFS0 to configure the eQADC to generate an eDMA request to load commands from
Queue0 to the CFIFO0.
b) Set CFFE0 to enable the eQADC to generate an eDMA request to transfer commands from
Queue0 to CFIFO0; Command transfers from the RAM to the CFIFO0 starts immediately.
c) Set EOQIE0 to enable the eQADC to generate an interrupt after transferring all of the
commands of Queue0 through CFIFO0.
7. Configure
Section 19.3.2.6, “eQADC CFIFO Control Registers 0–5 (EQADC_CFCRn)
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.
8. Because 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.
4
Repetitive
angle-based queue
Every 625
μ
s
7
Airflow read every 30
degrees at 8000 RPM
5
Slow repetitive
time-based queue
Every 100 ms
10
Temperature sensors
Table 19-56. Example Applications of Each Command Queue (continued)
Command
Queue Number
Queue Type
Running Speed
Number of
Contiguous
Conversions
Example
Содержание MPC5566
Страница 12: ...MPC5566 Microcontroller Reference Manual Devices Supported MPC5566 MPC5566 RM Rev 2 0 23 Apr 2008...
Страница 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Страница 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Страница 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Страница 331: ...System Integration Unit SIU MPC5566 Microcontroller Reference Manual Rev 2 6 128 Freescale Semiconductor...
Страница 343: ...Crossbar Switch XBAR MPC5566 Microcontroller Reference Manual Rev 2 7 12 Freescale Semiconductor...
Страница 361: ...Error Correction Status Module ECSM MPC5566 Microcontroller Reference Manual Rev 2 8 18 Freescale Semiconductor...
Страница 455: ...Interrupt Controller INTC MPC5566 Microcontroller Reference Manual Rev 2 10 42 Freescale Semiconductor...
Страница 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Страница 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Страница 679: ...Boot Assist Module BAM MPC5566 Microcontroller Reference Manual Rev 2 16 20 Freescale Semiconductor...
Страница 997: ...Deserial Serial Peripheral Interface DSPI MPC5566 Microcontroller Reference Manual Rev 2 20 72 Freescale Semiconductor...
Страница 1037: ...Enhanced Serial Communication Interface eSCI MPC5566 Microcontroller Reference Manual Rev 2 21 40 Freescale Semiconductor...
Страница 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Страница 1081: ...Voltage Regulator Controller VRC and POR Module MPC5566 Microcontroller Reference Manual Rev 2 23 8 Freescale Semiconductor...
Страница 1093: ...IEEE 1149 1 Test Access Port Controller JTAGC MPC5566 Microcontroller Reference Manual Rev 2 24 12 Freescale Semiconductor...
Страница 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...
Страница 1267: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 10...
Страница 1268: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 11...