[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
Кстати, флаг ADIF можно для верности сбрасывать (записью 1!!!) в сАмом начале ADC ISR. И еще - убедитесь, что АЦП не во free-run mode, а в single conversion.
Wake-up from Sleep Executes Instructions before the Interrupt is Serviced
When waking up from Power-save, some instructions are executed before the interrupt is called. If the device is woken up by an external interrupt, 2 instruction cycles are executed. If it is woken up by the asynchronous timer, 3 instructions are executed before the interrupt.
Problem Fix/Workaround
Make sure that the first two or three instructions following sleep are not dependent on the executed interrupt.
E-mail: info@telesys.ru