00001 00006 #include "esos.h" 00007 #include "esos_pic24.h" 00008 #include "pic24_adc.h" 00009 00010 #define ADC1_BUFFER_SIZE 16 00011 00012 extern volatile uint16 au16_ADC1Buffer[ADC1_BUFFER_SIZE]; 00013 00014 // Uncomment the next line to setup this project for a 12-bit ADC 00015 #define USE_12BIT_ADC 00016 00017 #define NUM_ADC1_PINS 2 00018 00019 // Comment out unused pins 00020 #define ADC1_USE_AN0 00021 #define ADC1_USE_AN1 00022 //#define ADC1_USE_AN4 00023 //#define ADC1_USE_AN5 00024 //#define ADC1_USE_AN10 00025 //#define ADC1_USE_AN11 00026 //#define ADC1_USE_AN12 00027 00028 #define USE_ADC1_CHANNELS ADC_SCAN_AN0 + ADC_SCAN_AN1 00029 //#define USE_ADC1_CHANNELS ADC_SCAN_AN0 + ADC_SCAN_AN1 + ADC_SCAN_AN4 + ADC_SCAN_AN5 + ADC_SCAN_AN10 + ADC_SCAN_AN11 + ADC_SCAN_AN12 00030 00031 #include "adc1.h"