![Freescale Semiconductor MPC5632M Manual Download Page 1097](http://html.mh-extra.com/html/freescale-semiconductor/mpc5632m/mpc5632m_manual_23306591097.webp)
MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
1097
Preliminary—Subject to Change Without Notice
24.7
Initialization/Application Information
24.7.1
Multiple Queues Control Setup Example
This section provides an example of how to configure multiple CQueues.
describes how each
CQueue can be used for a different application. Also documented in this section are general guidelines on
how to initialize the on-chip ADCs and the external device, and how to configure the CQueues and the
EQADC.
24.7.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 and the external device. 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 and external device 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 system 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 SoC, such as timers. Refer to the SoC guide for details. In order to avoid
unexpected triggering of CFIFOs in hardware trigger modes, the source driving the
Table 24-39. Application of Each CQueue
CQueue
Number
CQueue Type
Running Speed
Number of
Contiguous
Conversions
Example
0
Very fast burst
time-based CQueue
every 2
μ
s for 200
μ
s;
pause for 300
μ
s and then
repeat
2
Injector current profiling
1
Fast
hardware-triggered
CQueue
every 900
μ
s
3
Current sensing of PWM
controlled actuators
2
Fast repetitive
time-based CQueue
every 2 ms
8
Throttle position
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