![NXP Semiconductors SAFE ASSURE Qorivva MPC5601P Reference Manual Download Page 583](http://html.mh-extra.com/html/nxp-semiconductors/safe-assure-qorivva-mpc5601p/safe-assure-qorivva-mpc5601p_reference-manual_1721898583.webp)
Chapter 23 Analog-to-Digital Converter (ADC)
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
583
B starts followed by conversion of the channels D-E. This sequence repeats itself till the
MCR[NSTART] bit is cleared by software.
At the end of each conversion an End Of Conversion interrupt is issued (if enabled by the corresponding
mask bit) and at the end of the conversion sequence an End Of Chain interrupt is issued (if enabled by the
corresponding mask bit in the IMR register).
23.3.1.4
Injected channel conversion
A conversion chain can be injected into the ongoing normal conversion by configuring the Injected
Conversion Mask Registers (JCMR). As with normal conversion, each channel can be selected
individually. This injected conversion (which can occur only in One Shot mode) interrupts the normal
conversion (which can be in One Shot or Scan mode). When an injected conversion is inserted, ongoing
normal channel conversion is aborted and the injected channel request is processed. After the last channel
in the injected chain is converted, normal conversion resumes from the channel at which the normal
conversion was aborted, as shown in
Figure 23-3. Injected sample/conversion sequence
The injected conversion can be started using two options:
•
By software setting the MCR[JSTART]; the current conversion is suspended and the injected chain
is converted. At the end of the chain, the JSTART bit in the MSR is reset and the normal chain
conversion is resumed.
•
By an internal trigger signal from the PIT when MCR[JTRGEN] is set; a programmed event
(rising/falling edge depending on MCR[JEDGE]) on the signal coming from PIT or CTU starts the
injected conversion by setting the MSR[JSTART]. At the end of the chain, the MSR[JSTART] is
cleared and the normal conversion chain is resumed.
The MSR[JSTART] is automatically set when the Injected conversion starts. At the same time the
MCR[JSTART] is reset, allowing the software to program a new start of conversion. In that case the new
requested conversion starts after the running injected conversion is completed.
At the end of each injected conversion, an End Of Injected Conversion (JEOC) interrupt is issued (if
enabled by the IMR[MSKJEOC]) and at the end of the sequence an End Of Injected Chain (JECH)
interrupt is issued (if enabled by the IMR[MSKJEOC]).
The ongoing channel conversion is interrupted and the injected
conversion chain is processed first. After the injected chain is
converted the normal chain conversion resumes from the channel at
which normal conversion was aborted.
Injected conversion of channels I and J
Normal conversion resumes from
the last aborted channel.
Sample B
Convert B
Sample C
Sample D
Convert D
Sample E
Convert E
Convert C
Sample C
Abort C
Sample I
Sample J
Convert J
Sample C
Convert C
Convert I