Has anyone managed to setup the ADC in the Xmeag128A1 for single ended 12 bit operation. I would like to get 0 to 4096 bits. All of Atmels single ended examples are differential inputs which gives half the resolution.
The data sheets are not clear as to which registers to set. The ASF and example codes are different. The examples use two different drivers, ADC_driver.c and ADC.c. Not sure why.
Sample code would help.