[an error occurred while processing this directive] [an error occurred while processing this directive]
Хм, интересно девки пляшут (+)
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Алексей Мусин 13 марта 2002 г. 07:38
В ответ на: Ответ: отправлено mikes 12 марта 2002 г. 17:39

А Вы это читали?
Scanning Multiple Channels
Since change of analog channel always is delayed until a conversion is finished, the Free Run Mode can be used to scan
multiple channels without interrupting the converter. Typically, the ADC Conversion Complete interrupt will be used to per-form
the channel shift. However, the user should take the following fact into consideration:
The interrupt triggers once the result is ready to be read. In Free Run Mode, the next conversion will start immediately
when the interrupt triggers. If ADMUX is changed after the interrupt triggers, the next conversion has already started, and
the old setting is used.

Может, поступить как они написали, и выбор канала делать в прерывании от АЦП, а не поллить, как Вы сейчас делаете?

Кстати, может, "враки" АЦП по конкретному каналу - это значение из другого канала?

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru