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 )