Electronic – Howe to do a sam3x single channel ADC conversion

adcarmatmelcortex-m3datasheet

I have a Sam3x (Arduino Due hardware, but I don't use the Arduino IDE or libraries, and I don't use the Atmel libraries, just the register interface in sam.h).

I have multiple pins configures as ADC pins. How can I do an AD conversion on one of these pins? The way the relevant datasheet chapter is written seems to suppose that I always want to do a conversion of ALL pins that are configured as input.

Datasheet http://www.atmel.com/images/atmel-11057-32-bit-cortex-m3-microcontroller-sam3x-sam3a_datasheet.pdf ADC starts at page 1317.

Best Answer

The user sequence register looks like it can support multiple conversions of a single input during the sequence, so this may serve your purpose. However, with Schmitt trigger inputs on the PIO I think maybe you are overly concerned (unless noise breakthrough from the unsampled analogues is your concern).