Hi,
According with your code, most of the initialization seems to be good. However, it doesn’t show the clock reference, as the ADC clock divisor is set to divide by 1, and, by spec, the ADC clock must be lees or equal to 4.5 MHz; besides, the PDN bit is not set on the code, which means that the ADC will not be operational, so, you should verify that.
Additionally, are you running the code on an infinite loop? Because the general recommendation is setting pins/clocks first and then, just launching the conversion and waiting for the competition on the infinite loop.
As complementary info, you could take a look at the following page:
http://www.ocfreaks.com/lpc2148-adc-programming-tutorial/
Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------