Analog-to-Digital Converter (ADC)
MPC5606S Microcontroller Reference Manual, Rev. 7
134
Freescale Semiconductor
Figure 5-3. Injected sample/conversion sequence
The injected conversion can be started by software setting the JSTART bit in the MCR; 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.
The JSTART status bit in the MSR is automatically set when the injected conversion starts. At the same
time the JSTART bit in the MCR 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 corresponding mask bit) and at the end of the sequence an End Of Injected Chain (JECH)
interrupt is issued (if enabled by the corresponding mask bit).
If the content of all the injected conversion mask registers is zero (that is, no channel is selected) the
interrupt JECH is immediately issued after the start of conversion.
Once started, injected chain conversion cannot be interrupted by any other conversion type (it can,
however, be aborted; see
Section 5.3.1.5, Abort conversion
5.3.1.5
Abort conversion
Two different abort functions are provided.
•
The user can abort the ongoing conversion by setting the ABORT bit in the MCR. The current
conversion is aborted and the conversion of the next channel of the chain is immediately started
(generating a new start pulse to the Analog ADC). In the case of an abort operation, the
NSTART/JSTART bit remains set and the ABORT bit is reset after the conversion of the next
channel starts. The EOC corresponding to the aborted channel is not generated. This behavior is
true for normal or triggered/injected conversion modes. If the last channel of a chain is aborted, the
end of chain is reported, generating an ECH interrupt.
•
It is also possible to abort the current chain conversion by setting the ABORTCHAIN bit in the
MCR. In that case the behavior of the ADC depends on the MODE bit. In fact, if scan mode is
disabled, the NSTART bit is automatically reset together with the ABORTCHAIN bit. Otherwise,
if the MODE bit is set to 1, a new chain conversion is started. The EOC of the current aborted
conversion is not generated but an ECH interrupt is generated to signal the end of the chain.
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
Содержание MPC5602S
Страница 76: ...Overview MPC5606S Microcontroller Reference Manual Rev 7 74 Freescale Semiconductor...
Страница 82: ...Memory Map MPC5606S Microcontroller Reference Manual Rev 7 80 Freescale Semiconductor...
Страница 112: ...Signal Description MPC5606S Microcontroller Reference Manual Rev 7 110 Freescale Semiconductor...
Страница 166: ...Analog to Digital Converter ADC MPC5606S Microcontroller Reference Manual Rev 7 164 Freescale Semiconductor...
Страница 182: ...Boot Assist Module BAM MPC5606S Microcontroller Reference Manual Rev 7 180 Freescale Semiconductor...
Страница 234: ...Clock Description MPC5606S Microcontroller Reference Manual Rev 7 232 Freescale Semiconductor...
Страница 286: ...Crossbar Switch XBAR MPC5606S Microcontroller Reference Manual Rev 7 284 Freescale Semiconductor...
Страница 470: ...e200z0h Core MPC5606S Microcontroller Reference Manual Rev 7 468 Freescale Semiconductor...
Страница 524: ...Enhanced Direct Memory Access eDMA MPC5606S Microcontroller Reference Manual Rev 7 522 Freescale Semiconductor...
Страница 546: ...Error Correction Status Module ECSM MPC5606S Microcontroller Reference Manual Rev 7 544 Freescale Semiconductor...
Страница 669: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 667...
Страница 670: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 668 Freescale Semiconductor...
Страница 716: ...FlexCAN MPC5606S Microcontroller Reference Manual Rev 7 714 Freescale Semiconductor...
Страница 882: ...LIN Controller LINFlex MPC5606S Microcontroller Reference Manual Rev 7 880 Freescale Semiconductor...
Страница 901: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 899...
Страница 902: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 900 Freescale Semiconductor...
Страница 955: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 953...
Страница 956: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 954 Freescale Semiconductor...
Страница 1072: ...Quad Serial Peripheral Interface QuadSPI MPC5606S Microcontroller Reference Manual Rev 7 1070 Freescale Semiconductor...
Страница 1096: ...Reset Generation Module MC_RGM MPC5606S Microcontroller Reference Manual Rev 7 1094 Freescale Semiconductor...
Страница 1106: ...Real Time Clock RTC API MPC5606S Microcontroller Reference Manual Rev 7 1104 Freescale Semiconductor...
Страница 1186: ...Stepper Stall Detect SSD MPC5606S Microcontroller Reference Manual Rev 7 1184 Freescale Semiconductor...
Страница 1213: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1211...
Страница 1214: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 1212 Freescale Semiconductor...
Страница 1238: ...Voltage Regulators and Power Supplies MPC5606S Microcontroller Reference Manual Rev 7 1236 Freescale Semiconductor...
Страница 1252: ...Wakeup Unit WKPU MPC5606S Microcontroller Reference Manual Rev 7 1250 Freescale Semiconductor...
Страница 1258: ...Registers Under Protection MPC5606S Microcontroller Reference Manual Rev 7 1256 Freescale Semiconductor...
Страница 1323: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1321...
Страница 1324: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 1322 Freescale Semiconductor...