In this example, the AFEC is configured as follows:
- AFEC frequency =
10 MHz
- VREFP = 3.253V
(refer to the Atmel SAMV71 Xplained Ultra User Guide, ref. 42408)
- Free Run mode OFF
(because averaging is used)
- Single-ended
(Differential is not possible with the existing
hardware)
- Single and Dual
Sample-and-Hold
- Channel 5 used
for the Single Sample-and-Hold mode
- Channel 2 and 8
used for the Dual Sample-and-Hold mode
- Channel Offset:
500mV (0x200) applied on converted channel