Discussion group dedicated to the Philips LPC2000 family of ARM MCUs
LPC2148 Delay - kaushikraja1986 - Nov 5 9:55:43 2009
I'm a newbie here and struggling with a ADC code.I'm using AD0.1(the analog input to pin
13) for the analog input.My problem is that I'm getting the value at the global register
not at result register of the AD0.1...and second of all that if i give any value at run
time that is after powering up the microcontroller i'm getting the result of the initial
value with which I'm powering the board but if i change the value to anything i'm not
getting the new result instead the old one prevails.I'm using a development board of
LPC2148 from Robokits and sending my ADC result to P1.16-P1.23 which have LED connection
in them.
I'm using a pot already in the pot to give the analog input.
Plz help..as I need it urgently
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: LPC2148 Delay - rtstofer - Nov 5 10:28:06 2009
--- In l...@yahoogroups.com, "kaushikraja1986"
wrote:
>
> I'm a newbie here and struggling with a ADC code.I'm using AD0.1(the analog input to pin
13) for the analog input.My problem is that I'm getting the value at the global register
not at result register of the AD0.1...and second of all that if i give any value at run
time that is after powering up the microcontroller i'm getting the result of the initial
value with which I'm powering the board but if i change the value to anything i'm not
getting the new result instead the old one prevails.I'm using a development board of
LPC2148 from Robokits and sending my ADC result to P1.16-P1.23 which have LED connection
in them.
>
> I'm using a pot already in the pot to give the analog input.
>
> Plz help..as I need it urgently
>
You should probably post your code.
You can get outstanding LPC2148 demo code at www.jcwren.com/arm If you look in the adc
subdirectory of the project, you will see how to initialize and read ADC0_3 so all you
have to do is make a couple of changes. Beware of the PCLK frequency when you look at
adcInit().
Richard
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com ) Re: LPC2148 Delay - kaushikraja1986 - Nov 5 10:43:00 2009
--- In l...@yahoogroups.com, "rtstofer"
wrote:
>
> --- In l...@yahoogroups.com, "kaushikraja1986" wrote:
> >
> > I'm a newbie here and struggling with a ADC code.I'm using AD0.1(the analog input to
pin 13) for the analog input.My problem is that I'm getting the value at the global
register not at result register of the AD0.1...and second of all that if i give any value
at run time that is after powering up the microcontroller i'm getting the result of the
initial value with which I'm powering the board but if i change the value to anything i'm
not getting the new result instead the old one prevails.I'm using a development board of
LPC2148 from Robokits and sending my ADC result to P1.16-P1.23 which have LED connection
in them.
> >
> > I'm using a pot already in the pot to give the analog input.
> >
> > Plz help..as I need it urgently
> >
> You should probably post your code.
>
> You can get outstanding LPC2148 demo code at www.jcwren.com/arm If you look in the adc
subdirectory of the project, you will see how to initialize and read ADC0_3 so all you
have to do is make a couple of changes. Beware of the PCLK frequency when you look at
adcInit().
>
> Richard
>
thank you Richard for ur reply...but i have already solved the problem..I'm currently
working on ADC..and facing some problem there...i have already sent a request to post my
query.
------------------------------------
______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )