I am attempting to write code for the ADC10 registers that contain gain and offset correction for improved accuracy. In the user manual, it says I should be using "CAL_25VREF_FACTOR" with the 2.5V reference however I cannot find a register by this name in the .h file. How do I use the calibration settings properly in CCS6.0.0 ?
CAL_ADC = CAL_25VREF_FACTOR * ADC10MEM0;
CAL_ADC = CAL_ADC / 0x8000;
CAL_ADC = CAL_ADC + CAL_ADC_OFFSET;
(CAL_ADC is just a variable I use to compute the accurate results)