[an error occurred while processing this directive] [an error occurred while processing this directive]
Вот выдержки из Errata, может, в этом дело.
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено BLACKEAGLE 07 мая 2002 г. 13:19
В ответ на: Ответ: Более подробно о проблеме: отправлено SashaErem 07 мая 2002 г. 12:44

Кстати, флаг 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