We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hii all.This time I'm struck with the ADC problem.My code is running successfully.I'm using a ready-made board of LPC2148 which has a potentiometer connected with its pin 13 of the MCU i.e., AD0.1.The potentiometer is used to supply various analog voltage to the pin 13. Now the problems are -- 1:->the result of the ADC conversion of a predefined voltage is not coming in the AD0DR1 register..but its coming in the global result register i.e., in the AD0GDR. I dont know why this is happening 2:->I'm sending the result of ADC conversion to P1.16 to P1.23 which has LED connection to it..and the pattern of LED blinking is rightfully going with the ADC result.If i power up the development board with a predefined analog volatage(say 2V) the result is coming accordingly..but now if i change the value of the potentiometer(say to 3V) then the new result isn't coming..and the result of 2V continues to blink at the LEDs.If I reset the board or switch on the board after switching it off then the right value of 3V is showing up..what should i do
Yes, I did suspect you did use a board. But in the original post, you only said "ready-made board" which might include a custom-designed board. And from what you say now, it is a customization based on a MCB2130.
What parts of the MCB2130 design did you drop? The MCB2130 has a strap J11 to select if VREF should be connected to +3.3V or not, so it does allow the use of a separate voltage reference.
One thing with the MCB2130 is that it is a bit "light" when it comes to filtering the Vref, Vdda and Vssa. It works fine if you have very little noise on the board. More filtering should be added if you have hardware that pulses high currents on the PCB.