Go to the source code of this file.
Defines | |
#define | A2D_H |
#define | ADC_PRESCALE 0x06 |
#define | ADC_PRESCALE_MASK 0x07 |
#define | ADC_REFERENCE 0x01 |
#define | ADC_REFERENCE_MASK 0xC0 |
#define | ADC_MUX_MASK 0x1F |
#define | ADC_CH_ADC0 0x00 |
#define | ADC_CH_ADC1 0x01 |
#define | ADC_CH_ADC2 0x02 |
#define | ADC_CH_ADC3 0x03 |
#define | ADC_CH_ADC4 0x04 |
#define | ADC_CH_ADC5 0x05 |
#define | ADC_CH_ADC6 0x06 |
#define | ADC_CH_ADC7 0x07 |
#define | ADC_CH_122V 0x1E |
#define | ADC_CH_AGND 0x1F |
#define | ADC_CH_0_0_DIFF10X 0x08 |
#define | ADC_CH_1_0_DIFF10X 0x09 |
#define | ADC_CH_0_0_DIFF200X 0x0A |
#define | ADC_CH_1_0_DIFF200X 0x0B |
#define | ADC_CH_2_2_DIFF10X 0x0C |
#define | ADC_CH_3_2_DIFF10X 0x0D |
#define | ADC_CH_2_2_DIFF200X 0x0E |
#define | ADC_CH_3_2_DIFF200X 0x0F |
#define | ADC_CH_0_1_DIFF1X 0x10 |
#define | ADC_CH_1_1_DIFF1X 0x11 |
#define | ADC_CH_2_1_DIFF1X 0x12 |
#define | ADC_CH_3_1_DIFF1X 0x13 |
#define | ADC_CH_4_1_DIFF1X 0x14 |
#define | ADC_CH_5_1_DIFF1X 0x15 |
#define | ADC_CH_6_1_DIFF1X 0x16 |
#define | ADC_CH_7_1_DIFF1X 0x17 |
#define | ADC_CH_0_2_DIFF1X 0x18 |
#define | ADC_CH_1_2_DIFF1X 0x19 |
#define | ADC_CH_2_2_DIFF1X 0x1A |
#define | ADC_CH_3_2_DIFF1X 0x1B |
#define | ADC_CH_4_2_DIFF1X 0x1C |
#define | ADC_CH_5_2_DIFF1X 0x1D |
Functions | |
void | a2dInit (void) |
void | a2dOff (void) |
void | a2dSetPrescaler (unsigned char prescale) |
void | a2dSetReference (unsigned char ref) |
unsigned short | a2dConvert10bit (unsigned char ch) |
unsigned char | a2dConvert8bit (unsigned char ch) |
|
Value: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 59 of file a2d.c. Referenced by a2dInit().
|
|
Definition at line 65 of file a2d.c. Referenced by a2dInit().
|