5.2.5.10.1 Input-Output Transfer Functions

The ADC can be configured to operate in the following input voltage modes:

  • Single-ended—ADC_CCR.DIFFx = 0. This is the default mode after a reset.
  • Differential—ADC_CCR.DIFFx = 1 (see the figure Analog Full Scale Ranges in Single-ended/Differential Applications). In Differential mode, the ADC requires differential input signals with a VDD/2 common mode voltage (refer to the section “Electrical Characteristics”).

The following equations give the unsigned ADC input-output transfer function in each mode (see Note). With signed conversions (see ADC_EMR.SIGNMODE), subtract 2047 from the ADC_LCDR.LDATA value given below.

In the formulae below, REFP = ADVREFP, REFN = GNDIN33.

Single-ended mode:

ADC_LCDR.LDATA=ADxREFNREFPREFN×212

Differential mode:

ADC_LCDR.LDATA=1+ADxADx+1REFPREFN×211

If ADC_MR.ANACH is set, the parameters defined in ADC_CCR are applied to all channels.

The following table gives the internal positive and negative ADC inputs assignment with respect to the programmed mode (ADC_CCR.DIFFx).

For example, if Differential mode is required on channel 0, input pins AD0 and AD1 are used. In this case, only channel 0 must be enabled by writing a 1 to ADC_CHER.CH0.

Figure 5-8. Analog Full Scale Ranges in Single-ended/Differential Applications
Table 5-1. Input Pins and Channel Numbers in Single-ended and Differential Modes
Internal ADC Inputs (VIN+, VIN-)Channel Numbers
Single-ended ModeDifferential ModeSingle-ended ModeDifferential Mode
AD0, GNDIN33AD0, AD1CH0CH0
AD1, GNDIN33CH1
AD2, GNDIN33AD2, AD3CH2CH2
AD3, GNDIN33CH3
AD4, GNDIN33AD4, AD5CH4CH4
AD5, GNDIN33CH5
AD6, GNDIN33AD6, AD7CH6CH6
AD7, GNDIN33CH7
AD8, GNDIN33AD8, AD9CH8CH8
AD9, GNDIN33CH9
AD10, GNDIN33AD10, AD11CH10CH10
AD11, GNDIN33CH11
AD12, GNDIN33AD12, AD13CH12CH12
AD13, GNDIN33CH13
AD14, GNDIN33AD14, AD15CH14CH14
AD15, GNDIN33CH15
Not availableNot available
Not available