ADC.h

Go to the documentation of this file.
00001 /* This file has been prepared for Doxygen automatic documentation generation.*/
00028 #ifndef ADC_H
00029 #define ADC_H
00030 
00031 //******************************************************************************
00032 // ADC setup
00033 //******************************************************************************
00034 // 8MHz / (25x128) = 2500 samples/s/ch
00035 #define ADC_PRESCALER     0x07
00036 
00044 //******************************************************************************
00045 // Minimum supply voltage
00046 //******************************************************************************
00048 #define VIN_MIN               4400
00049 
00050 
00051 //******************************************************************************
00052 // Global variables
00053 //******************************************************************************
00054 extern __eeprom unsigned char VBAT_RANGE;   
00055 extern ADC_Status_t ADCS;
00056 
00057 
00058 //******************************************************************************
00059 // Function prototypes
00060 //******************************************************************************
00061 #pragma vector=ADC_vect
00062 __interrupt void ADC_ISR(void);
00063 
00064 unsigned int ScaleU(unsigned char setting, unsigned int data);
00065 unsigned int ScaleI(unsigned char setting, unsigned int data);
00066 void ADC_Wait(void);
00067 void ADC_Init(void);
00068 
00069 #endif // ADC_H
00070 

Generated on Tue Sep 4 19:17:55 2007 for AVR463 Charging NiMH Batteries with ATAVRBC100 by  doxygen 1.5.2