Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | LPC2000 | LPC2148 Delay

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 )