hello,
im working with the LPCXpresso51u68 board, and trying to measure analog readings from a power supply,
the power supply in connected to A0 (on J8 analog in connector) on the LPC evaluation board.
the problem is - no mater what voltage i enter (between 0 and 5v), i get the same reading all the time.
i have tryied it with 2 other channels - A1 and A2, and the result is the same.
can you tell me what am i doing wrong?
i used the exmpale of the ADC for keil as a reference.
the relevant parts of my code are added here as a TXT file.
thank you
Omer.
Hi omer Tchernichovsky ,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
After reviewing the code, I've not found some wrong with it, so I'd like to know the more information, whether you can share the screenshot of ADC register and P0_30 IOCON register when debugging the demo.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------