|
Project 7
3-Axis Accelerometer Sensor Module
|
Neff Site |
This module provides access to the ADC. More...
Go to the source code of this file.
Macros | |
| #define | ADC_PORT PORTA |
| #define | ADC_MODULE ADCA |
| #define | ADC_REFCTRL_gc ADC_REFSEL_AREFA_gc |
Functions | |
| void | adc_init (void) |
| Initializes the ADC module. More... | |
| uint16_t | adc_read_adc1 (void) |
| Read ADC1. More... | |
| uint16_t | adc_read_adc2 (void) |
| Read ADC2. More... | |
| uint16_t | adc_read_adc3 (void) |
| Read ADC3. More... | |
| uint16_t | adc_read_adc4 (void) |
| Read ADC4. More... | |
This module provides access to the ADC.
This module provides high level access to the Analog-to-Digital Converter. It uses optionally AREFA as external reference and connects ADC1, ADC2, ADC3 and ADC4 with Channel 0, 1, 2 and 3. The module uses single-ended inputs the the resolution of the conversion is 12 bits.
| #define ADC_MODULE ADCA |
| #define ADC_PORT PORTA |
| #define ADC_REFCTRL_gc ADC_REFSEL_AREFA_gc |
| void adc_init | ( | void | ) |
Initializes the ADC module.
| uint16_t adc_read_adc1 | ( | void | ) |
Read ADC1.
Start the conversion for line ADC1 and return the result.
| uint16_t adc_read_adc2 | ( | void | ) |
Read ADC2.
Start the conversion for line ADC2 and return the result.
| uint16_t adc_read_adc3 | ( | void | ) |
Read ADC3.
Start the conversion for line ADC3 and return the result.
| uint16_t adc_read_adc4 | ( | void | ) |
Read ADC4.
Start the conversion for line ADC4 and return the result.
| Contact |
Generated by
1.8.13
|