16#define referenceVoltage 2.5
void startAdcConv()
Start the ADC conversion'(s), gets called when end interrupt of ISR_TA0(void) is reached.
double convertAdc2Voltage(int R1, int R2, int adcReading)
Convert the adc reading to a voltage before voltage divider.
volatile unsigned int adcResults[NUM_CHANNELS]
void setupAdc()
Setup ADC, get called in startup from main(), Shortest samling rate, with 2.5V reference,...