ATMEL: ADC Vref Configuration

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# ADC Vref Configuration
[ADC Macros]

Configure the Vref. More...

## Defines

#define | Enable_internal_vref() (ADMUX |= ((1<<REFS1)|(1<<REFS0)) )
#define | Enable_external_vref() (ADMUX &= ~((1<<REFS1)|(1<<REFS0)) )
#define | Enable_vcc_vref()

## Detailed Description

Configure the Vref.

## Define Documentation

#define Enable_internal_vref | ( |  | ) | (ADMUX |= ((1<<REFS1)|(1<<REFS0)) )

Definition at line 83 of file adc_drv.h.

#define Enable_external_vref | ( |  | ) | (ADMUX &= ~((1<<REFS1)|(1<<REFS0)) )

Definition at line 84 of file adc_drv.h.

#define Enable_vcc_vref | ( |  | ) |

Value:

    (ADMUX  &= ~(1<<REFS1),          \
                                                  ADMUX  |=  (1<<REFS0) )

Definition at line 85 of file adc_drv.h.