Chapter 28 Analog-to-Digital Converter (ADC)
MPC5606BK Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
719
Example 28-2. Scan Mode (MODE = 1)
Channels A-B-C-D-E-F-G-H are present in the device where channels B-D-E are to be converted
in the Scan Mode. MODE = 1 is set for Scan Mode. Conversion starts from the channel B followed
by conversion of the channels D-E. At the end of conversion of channel E the scanning of channel
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).
28.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 Normal conversion, each channel can be individually selected.
This injected conversion (which can only occur 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 28-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 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.
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
Summary of Contents for MPC5605BK
Page 2: ...This page is intentionally left blank...
Page 20: ...MPC5606BK Microcontroller Reference Manual Rev 2 20 Freescale Semiconductor...
Page 103: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 103 Clocks and power...
Page 645: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 643 Timers...
Page 715: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 713 ADC system...
Page 787: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 787 Memory...
Page 893: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 893 Integrity...
Page 943: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 943 Debug...