Еще прошу помощи - даташит на неродном языке. Процессор Атмега 8 Регистр GIFR - выписка из даташита.
• Bit 7 – INTF1: External Interrupt Flag 1 When an event on the INT1 pin triggers an interrupt request, INTF1 becomes set (one). If the I-bit in SREG and the INT1 bit in GICR are set (one), the MCU will jump to the corresponding Interrupt Vector. The flag is cleared when the interrupt routine is executed. Alternatively, the flag can be cleared by writing a logical one to it. This flag is always cleared when INT1 is configured as a level interrupt.
• Bit 6 – INTF0: External Interrupt Flag 0 When an event on the INT0 pin triggers an interrupt request, INTF0 becomes set (one). If the I-bit in SREG and the INT0 bit in GICR are set (one), the MCU will jump to the corresponding Interrupt Vector. The flag is cleared when the interrupt routine is executed. Alternatively, the flag can be cleared by writing a logical one to it. This flag is always cleared when INT0 is configured as a level interrupt.
Почему для сброса флага нужно записывать лог. 1 если эта лог. 1 обозначает, что флаг прерывания установлен? У меня используется прерывание по уровню, в даташите написано, что флаг постоянно сбрасывается. В какой момент времени он сбрасывается?
|