BeRTOS
Defines
cfg_adc.h File Reference

Configuration file for the ADC module. More...

Go to the source code of this file.

Defines

#define ADC_LOG_LEVEL   LOG_LVL_INFO
 Module logging level.
#define ADC_LOG_FORMAT   LOG_FMT_VERBOSE
 Module logging format.
#define CONFIG_ADC_CLOCK   4800000UL
 Clock Frequency for ADC conversion.
#define CONFIG_ADC_STARTUP_TIME   20
 Minimum time for starting up a conversion [us].
#define CONFIG_ADC_SHTIME   834
 Minimum time for sample and hold [ns].
#define CONFIG_ADC_AVR_REF   ADC_AVR_AVCC
 ADC Voltage Reference.
#define CONFIG_ADC_AVR_DIVISOR   2
 ADC clock divisor from main crystal.
#define CONFIG_ADC_STROBE   0
 Enable ADC strobe for debugging ADC ISR.
#define CONFIG_ADC_SUT   ADC_SUT512
 Start up timer[s] = startup value / ADCClock [Hz].
#define CONFIG_ADC_STTLING   ADC_AST17
 Analog Settling Time[s] = settling value / ADCClock[Hz].
#define CONFIG_ADC_TRACKTIM   0
 Tracking Time[s] = (TRACKTIM + 1) / ADCClock[Hz].
#define CONFIG_ADC_TRANSFER   1
 Transfer Period[s] = (TRANSFER * 2 + 3) ADCClock[Hz].

Detailed Description

Configuration file for the ADC module.

Author:
Daniele Basile <asterix@develer.com>

Definition in file cfg_adc.h.


Define Documentation

#define CONFIG_ADC_CLOCK   4800000UL

Clock Frequency for ADC conversion.

This frequency will be rounded down to an integer submultiple of CPU_FREQ.

Definition at line 66 of file cfg_adc.h.

#define CONFIG_ADC_STTLING   ADC_AST17

Analog Settling Time[s] = settling value / ADCClock[Hz].

Definition at line 129 of file cfg_adc.h.

#define CONFIG_ADC_SUT   ADC_SUT512

Start up timer[s] = startup value / ADCClock [Hz].

Definition at line 120 of file cfg_adc.h.

#define CONFIG_ADC_TRACKTIM   0

Tracking Time[s] = (TRACKTIM + 1) / ADCClock[Hz].

Definition at line 138 of file cfg_adc.h.

#define CONFIG_ADC_TRANSFER   1

Transfer Period[s] = (TRANSFER * 2 + 3) ADCClock[Hz].

Definition at line 147 of file cfg_adc.h.