Instructions

233 C-Control Pro IDE
© 2013 Conrad Electronic
5.4.2 AVR32Bit
The microcontroller has an Analog-to-Digital converter with a selectable resolution of 8/10/12 bits.
This means that measured voltages can be represented as whole numbers from -2048 to 2048, since
the AD-converter always works differential. In addition, an ADC preamplifier gain of 1, 2, 4, 8, 16, 32,
64 can be set by software.
The following reference voltage sources are available:
0,6 * VDDANA internal (0,6 * 3.3V = 1,98V)
internal reference voltage of 1V
two external reference voltage inputs, e.g. 2.048V generated by reference-voltage-IC
If "x" is a digital measurement value, calculate the corresponding voltage value "u" as follows:
The resolution depends on the configuration of the ADC.
Resolution
Maximal Value
8 Bit
-128 to +127
10 Bit
-512 to +511
12 Bit
-2048 to +2047
Formula for calculating the present ADC voltage:
u = x * reference voltage / resolution
5.4.2.1 ADC_Disable
ADC Functions
Syntax
void ADC_Disable(void);
Sub ADC_Disable()
Description
The function ADC_Disable turns off the A/D-Converter to reduce power consumption.
Parameter
None
5.4.2.2 ADC_Enable
ADC Functions
Syntax
void ADC_Enable(byte mode, dword speed, byte ref, byte input_cnt, char