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

Sponsor

controlSUITE™ software
Comprehensive.
Intuitive.
Optimized.

Real-world software for real-time control. Details Here!

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | LPC2000 | using LPC2148 ADC in power down mode

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

using LPC2148 ADC in power down mode - Mohamad Tayssir Alkowatly - Nov 3 8:22:15 2009

Hi all

I've come across a paper where they use ADC in power down mode on some
microchip MCU not to reduce power consumption but to lower the noise caused
by the MCU operation.

First, when this sounds logical, how much does is really improve the ADC
operation accuracy ?

Second, I've tried to do this by setting the PDN bit to zero in the ADCR
register instead of one when requesting the ADC operation, but this change
caused the program not to function properly, or at least the messages i'm
putting over the USB are not being sent to the host (i'm using the lpcusb
vcom as a way of sending messages over the usb)

for (i = 0; i < N; i++)
{
T0IR = 0x01;
T0TCR = 3;
T0TCR = 1;

get_adc();

// send sampling results each second
if (i % SAMPLING_RATE == 0)
{
sprintf(s, ADC results
USB_puts(s);
}
while ((T0IR & 0x01) == 0);
}

is there anything that i should take care of when doing the ADC operation in
power down mode ?

Cheers,

Tayseer
[Non-text portions of this message have been removed]

------------------------------------



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


Re: using LPC2148 ADC in power down mode - Bob T - Nov 3 14:48:11 2009



--- In l...@yahoogroups.com, Mohamad Tayssir Alkowatly wrote:
>
> Hi all
>
> I've come across a paper where they use ADC in power down mode on some
> microchip MCU not to reduce power consumption but to lower the noise caused
> by the MCU operation.
>
> First, when this sounds logical, how much does is really improve the ADC
> operation accuracy ?
>
> Second, I've tried to do this by setting the PDN bit to zero in the ADCR
> register instead of one when requesting the ADC operation, but this change
> caused the program not to function properly, or at least the messages i'm
> putting over the USB are not being sent to the host (i'm using the lpcusb
> vcom as a way of sending messages over the usb)
>
> for (i = 0; i < N; i++)
> {
> T0IR = 0x01;
> T0TCR = 3;
> T0TCR = 1;
>
> get_adc();
>
> // send sampling results each second
> if (i % SAMPLING_RATE == 0)
> {
> sprintf(s, ADC results
> USB_puts(s);
> }
> while ((T0IR & 0x01) == 0);
> }
>
> is there anything that i should take care of when doing the ADC operation in
> power down mode ?
>
> Cheers,
>
> Tayseer
> [Non-text portions of this message have been removed]
>
If you put the device into power down mode, all clocks are stopped, also that one to the ADC and it will not work any more.
The mode you are looking for is the so called idle mode with the CPU not being clocked any more but all the peripherals receive clock pulses. The interrupt at the end of the conversion can wake up the CPU again. I would not expect a lot of improvement in the accuracy. If a better ADC is needed, check out the LPC1700 series with a 12-bit ADC and better overall accuracy.

Cheers, Bob
http://www.mcu-related.com

------------------------------------



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