hi,
i'm using empty bitfield project, writing to the registers, there is a problem with Adc modules it is giving max value of 900 when i short the adc pin to 3.3V.
SetVREF(ADC_ADCA, ADC_INTERNAL, ADC_VREF3P3);
AdcaRegs.ADCCTL2.bit.PRESCALE = 6; //set ADCCLK divider to /4
AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1; //power up the ADC
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
function used. what settings am i missing.