Zitat Zitat von Henry
Hallo,

laut Datenblatt heißt es
• Bit 7 – INTF1: External Interrupt Flag 1
When an event on the INT1 pin triggers an interrupt request, INTF1 becomes set (one).
Wenn ich das richtig interpretiere wird das Bit INTF1 = 1 wenn ein Ereignis eingetreten ist.
Also muss ich daraus eine 0 machen

Oder habe ich Dich jetzt falsch interpretiert?
Lies mal den Abschnitt zu Ende, dann siehst du, was linux_80 meinte:

• 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.