EasyManua.ls Logo

NXP Semiconductors MPC5606S - Functional Description

NXP Semiconductors MPC5606S
1344 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Analog-to-Digital Converter (ADC)
MPC5606S Microcontroller Reference Manual, Rev. 7
Freescale Semiconductor 131
5.3 Functional description
5.3.1 Analog channel conversion
Two conversion modes are available within the ADCDig:
Normal conversion
Injected conversion
5.3.1.1 Normal conversion
This is the normal conversion that the user programs by configuring the normal conversion mask registers
(NCMR). Each channel can be individually enabled by setting 1 in the corresponding field of NCMR
registers. Mask registers must be programmed before starting the conversion and cannot be changed until
the conversion of all the selected channels ends (NSTART bit in the Main Status Register (MSR) is reset).
5.3.1.2 Start of normal conversion
By programming the configuration bits in the Main Configuration Register (MCR), the normal conversion
can be started in two ways:
By software (TRGEN reset)—If the external trigger enable bit is reset, the conversion chain starts
when the NSTART bit in the MCR is set.
By trigger (TRGEN set)—An on-chip internal signal triggers an ADC conversion. The settings in
the MCR select how conversions are triggered based on these internal signals:
If the EDGLEV (edge/level selection) bit in the MCR is cleared, then when a rising/falling edge
(depending on the EDGE bit in MCR) is detected in the signal, the NSTART bit is set in the
MSR and the programmed conversion starts. EDGE = 0 selects a falling edge. EDGE = 1
selects a rising edge.
If the EDGLEV bit in the MCR is set, the conversion is started if and only if the NSTART bit
in the MCR is set and the programmed level on the trigger signal is detected. The level is
selected using the EDGE bit in the MCR. EDGE = 0 means that the start of conversion is
enabled if the signal is low. If EDGE
= 1, the start of conversion is enabled when the signal is
high.

Table of Contents

Related product manuals