This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F2800137: ADC issue with bitfield projects

Part Number: TMS320F2800137

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.