Hi all,
I am trying to use an external voltage reference in conjunction with the VREFHI and VREFLO pins to scale the ADC input on an F28035 microcontroller to 2.5V. I am using a TL431 shunt regulator as the voltage reference and I am using the following configuration procedure for the ADC.
EALLOW;
AdcRegs.ADCCTL1.bit.ADCREFSEL = 1; // Used to select external reference
AdcRegs.ADCCTL1.bit.ADCBGPWD = 1; // Power up band gap
AdcRegs.ADCCTL1.bit.ADCREFPWD = 1; // Power up reference
AdcRegs.ADCCTL1.bit.ADCPWDN = 1; // Power up rest of ADC
AdcRegs.ADCCTL1.bit.ADCENABLE = 1; // Enable ADC
DSP28x_usDelay(1000); // Delay before converting ADC channels
This is followed by additional settings like the ACQPS, channel select settings, etc.
I expect since I set the ADCREFSEL register to 1 that the microcontroller should be using the external 2.5V ratiometric reference. However what I see is that the scale for the ADCRESULT register is scaled to the internal reference. Is there some sort of register I am setting incorrectly? Based on the ADC documentation for the microcontroller I can't find any errors or issues with my start up procedure. Any advice or guidance would be appreciated. Thanks!