Hello,
I am currently using the eZ430RF2500T. I have connected the 7th pin i.e. analog input 4 as given in the user guide. I have connected a berg pin to the 7th pin of the board, soldered it and then connected it to a external voltage.
Here is my code-
ADC10AE0 |= 0x10;
ADC10CTL1 = INCH_4;
ADC10CTL0 = SREF_1 + ADC10SHT_3 + REFON + ADC10ON ;
__delay_cycles(240);
ADC10CTL0 |= ENC + ADC10SC; // Sampling and conversion start
results[0] = ADC10MEM;
I have set the external voltage as 1V. So accordingly i should get a value of 2AA at the ADC10MEM.
But i am getting random values.
Can someone please help me as i am not able to narrow down on the problem.
Thank You.