Instructions

236Libraries
© 2013 Conrad Electronic
values pointer to the 16-Bit array (0-7)
cnt number of values that are copied into the array
5.4.2.5 ADC_SetInput
ADC Functions
Syntax
void ADC_SetInput(byte indx, byte inp1, byte inp2, byte gain);
Sub ADC_Enable(indx As Byte, inp1 As Byte, inp2 As Byte, gain As Byte)
Description
The ADC sequencer in the AVR32 can carry up to 8 AD conversion at a time. The function
ADC_SetInput defines the ADC inputs between a differential measurement is carried out. If you want
to measure only one input, one define ADC_GND as the second input. In addition, a GAIN factor can
be defined.
Even if a measurement between an input and ADC_GND delivers only positive values??, one bit of
the ADC resolution still remains reserved for the sign.
Parameter
indx index for conversion (0-7)
inp1 first AD input (0-15)
inp2 second AD input (0-15)
gain GAIN factor
GAIN Table
Definition
Meaning
ADC_SHG_1
gain factor 1
ADC_SHG_2
gain factor 2
ADC_SHG_4
gain factor 4
ADC_SHG_8
gain factor 8
ADC_SHG_16
gain factor 16
ADC_SHG_32
gain factor 32
ADC_SHG_64
gain factor 64
5.4.2.6 ADC_Start
ADC Functions
Syntax
void ADC_Start(void);