[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Is it any method to avoid ADC start in idle mode?
From: |
Dmitry K. |
Subject: |
Re: [avr-chat] Is it any method to avoid ADC start in idle mode? |
Date: |
Sun, 4 Jun 2006 12:15:18 +1100 |
User-agent: |
KMail/1.5 |
On Saturday 03 June 2006 20:14, Rolf Magnus wrote:
> On Saturday 03 June 2006 07:51, Dmitry K. wrote:
[...]
> The datasheet says it quite clearly:
>
> "If the ADC is enabled, a conversion starts automatically when this mode is
> entered."
Alas, you are right.
> This doesn't depend on auto trigger source or the ADC interrupt settings.
> The solution is to simply switch the ADC off (ADEN=0).
Unfortunately, thus the internal Vref is switched off (regardless
of ADMUX). At repeated inclusion, except for increased time of
conversion (25 steps), it is necessary to wait for transition
to a stady state an Vref voltage (with external capasitor) and
on additional schemes which use a Vref.
> Well, you can use a timer as auto trigger source.
Yes, in result there is a mixture of unregular conversions.
And in case of period about 1.5 ... 2 of conversion time
the result is vary bad. (Delete 'sleep' --> all OK.)
Im am not understand Atmel's idea to merge Auto Trigger mode
with Auto Start for each 'sleep' instruction.
Thanks,
Dmitry.