----- 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
adc - simple adc sample doesn't work
Started by ●November 8, 2007