I am attempting to use the 2.5v reference with the 10 bit AtoD in the 5247 device.
I setup the reference with this code:
REFCTL0 |= REFMSTR + REFVSEL_3 + REFON + REFOUT
and when I look at the register with the debugger its contents match this setup.
I select the reference in the ADC setup with this code:
ADC10MCTL0 = ADC10SREF_1 + ADC10INCH_4;
I am not seeing the reference voltage. I'm giving the channel an input of 1.57v and I'm getting 510 counts. My calculations show I should be getting 642 counts.
When I select Vcc as a reference (ADC10SREF_0), I get appropriate readings.
Is there some setup I have to do in addition to setting REFCTL0?