Ответ: Вот текст из DS на ATTINY15L, прерывание IO PIN реагирует ТОЛЬКО на изменение, а биты в MCUCR настраивают ТОЛЬКО INTx. А вот сбросить флаг прерывания записав туда 1 мне не удается, может глюк в AVR STUDIO?
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

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

Отправлено Шурик 11 ноября 2004 г. 18:20
В ответ на: Изменяет тебе память... Там 4 варианта. 1) по фронту 2) срезу 3)низкому уровню (по дефолту) 4) фронту/срезу. отправлено † 11 ноября 2004 г. 18:01

Pin Change Interrupt
The pin change interrupt is triggered by any change in logical value on any input or I/O
pin. Change on pins PB4..0 will always cause an interrupt. Change on pin PB5 will
cause an interrupt if the pin is configured as input or I/O, as described in the section “Pin
Descriptions” on page 4. Observe that, if enabled, the interrupt will trigger even if the
changing pin is configured as an output. This feature provides a way of generating a
software interrupt. Also observe that the pin change interrupt will trigger even if the pin
activity triggers another interrupt, for example the external interrupt. This implies that
one external event might cause several interrupts. The values on the pins are sampled
before detecting edges. If pin change interrupt is enabled, pulses that last longer than
one CPU clock period will generate an interrupt. Shorter pulses are not guaranteed to
generate an interrupt.

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

Ответы



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

E-mail: info@telesys.ru