EmbeddedRelated.com
Forums
Memfault Beyond the Launch

adc - simple adc sample doesn't work

Started by klemen_dovrtel November 8, 2007
----- Original Message -----
From: "klemen_dovrtel"
To:
Sent: Tuesday, November 13, 2007 8:28 AM
Subject: [lpc2000] Re: adc - simple adc sample doesn't work
>
> I see that this code checks if the ad conversion is done in the AD0GDR
> register, but mine checks one of AD0DR registers.
>
> I tried your code. Now the program doesn't get stuck in while loop any
> more, but i get some strange AD reading. I get some strange random
> data (0, 141, 283, 1023...).

There must be something wrong, that code works OK for me and I get *very*
stable values with the input connected to the slider of a pot across Vcc and
ground.

Leon

An Engineer's Guide to the LPC2100 Series


Memfault Beyond the Launch