LPC2148 read ADC value

hi…i have the olimex LPC2148 board. i have a light sensor connected to P1.20 and i’m trying to read the value from the ADC. my goal is to print the ADC value to the LCD and see the changes as the amount of light changes.

can someone help me with the code or give me steps on how to do it? i went through the LPC manual and it’s a bit vague. i don’t understand how the ADC channel is connected to the pin (and the device connected to the pin).

mike,

UW

You will find some ADC examples in the Yahoo LPC2000 group Files section.

Leon