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.

ADC reference issues

Hi

I have a problem with my adc measurements, they are wokring but the register gets maxed out at 2.5V. According to documentation the highest voltage that can be measured should be 3.3V. The documentation is TMDSCNCD28377D_infosheet which under the hardware reference chapter describes how to set the switches to get 3V or 3.3V reference. I have tried out that and it hasnt worked. However the revision in this document is R1.1 i have R1.0 on my hardware perhaps someone knows about my problem or can link some documentation that covers the R1.0? I attach some important settings in my code perhaps its something wrong there.

CpuSysRegs.PCLKCR13.bit.ADC_A = 1;

AdcaRegs.ADCCTL2.bit.SIGNALMODE = 0;

AdcaRegs.ADCCTL2.bit.RESOLUTION = 0;

AdcaRegs.ADCCTL2.bit.PRESCALE = 10;

AdcaRegs.ADCCTL1.bit.ADCPWDNZ = 1;

DELAY_US(1000);

AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 5;

AdcaRegs.ADCSOC0CTL.bit.CHSEL = 2;

AdcaRegs.ADCSOC1CTL.bit.TRIGSEL = 7;

AdcaRegs.ADCSOC1CTL.bit.CHSEL = 1;

AdcaRegs.ADCSOC0CTL.bit.ACQPS = ACQUISITION_WINDOW;// (40clkcycs)

AdcaRegs.ADCSOC1CTL.bit.ACQPS = ACQUISITION_WINDOW; //(40clkcycs)

AdcaRegs.ADCINTSOCSEL1.bit.SOC0 = 0;

AdcaRegs.ADCINTSOCSEL1.bit.SOC1 = 0;

AdcaRegs.ADCSOCPRICTL.bit.SOCPRIORITY = 2;

/Kristoffer