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

миниатюрный аудио-видеорекордер mAVR

Отправлено ShiphT 07 октября 2002 г. 12:33
В ответ на: Ответ: А в чем была проблема? отправлено Bill 07 октября 2002 г. 11:48

Clear Timer/Counter on
Compare Match with
Prescaler (Applies to all
Timer/Counters)

The relation between a Clear on Compare match and the internal counting of the
Timer/Counter has been changed. The Clear on Compare Match in the ATmega103
clears the Timer/Counter after the first internal count matching the compare value,
whereas the ATmega128 clears the Timer/Counter after the last internal count matching
the compare value. See Figure 1 and Figure 2 for details on clearing, flag setting, and
pin change.

Т.е. прескалер у 128 сбрасывается по окончании своего счета, а у 103 сразу-же по достижении сравнения:


103:
000000001111111122222222300000000111...
^
interrupt
128:
0000000011111111222222223333333300000000111...
^
interrupt


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

Ответы



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

E-mail: info@telesys.ru