Datasheet

Table Of Contents
example in 8-bit mode, only the eight lower bits will be considered. In addition, in differential mode, the
eighth bit will be considered as the sign bit, even if the ninth bit is zero.
The INTFLAG.WINMON interrupt flag is set when either the conversion result matches the window
monitor condition, when the Window Comparator Counter is not zero in case of accumulation with
CTRLB.WINSS=1.
45.6.2.13 Offset and Gain Correction
Inherent gain and offset errors affect the absolute accuracy of the ADC.
The offset error is defined as the deviation of the actual ADC transfer function from an ideal straight line
at zero input voltage. The offset error cancellation is handled by the Offset Correction register
(OFFSETCORR). The offset correction value is subtracted from the converted data before writing the
Result register (RESULT).
The gain error is defined as the deviation of the last output step’s midpoint from the ideal straight line,
after compensating for offset error. The gain error cancellation is handled by the Gain Correction register
(GAINCORR).
To correct these two errors, the Digital Correction Logic Enabled bit in the Control B register
(CTRLB.CORREN) must be set.
Offset and gain error compensation results are both calculated according to:
Result = Conversionvalue+ OFFSETCORR GAINCORR
The correction will introduce a latency of 13 CLK_ADC clock cycles. In free running mode this latency is
introduced on the first conversion only, since its duration is always less than the propagation delay. In
single conversion mode this latency is introduced for each conversion.
Figure 45-8.  ADC Timing Correction Enabled
START
CONV0 CONV1 CONV2 CONV3
CORR0 CORR1 CORR2 CORR3
45.6.3 Additional Features
45.6.3.1 Device Temperature Measurement
The device provides two temperature sensors (TSENSP and TSENSC, respectively) at different locations
in the die, controlled by the SUPC - Supply Controller. The output voltages from the sensors, V
TP
and
V
TC
, can be sampled by the ADC.
The respective temperature sensor selection is dependent on the configuration of SUPC:
If the SUPC is not in on-demand mode (SUPC.VREF.ONDEMAND=0), and if SUPC.VREF.TSEN=1
and SUPC.VREF.VREFOE=0, the temperature sensor is selected by writing to the Temperature
SAM D5x/E5x Family Data Sheet
ADC – Analog-to-Digital Converter
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1595