Datasheet

Table Of Contents
16.1.4. GIFR – General Interrupt Flag Register
When using the I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. When
addressing I/O Registers as data space using LD and ST instructions, 0x20 must be added to these offset
addresses.
Name:  GIFR
Offset:  0x3A
Reset:  0
Property:
 
When addressing I/O Registers as data space the offset address is 0x5A
Bit 7 6 5 4 3 2 1 0
INTF1 INTF0 INTF2
Access
R/W R/W R/W
Reset 0 0 0
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.
Bit 5 – INTF2: External Interrupt Flag 2
When an event on the INT2 pin triggers an interrupt request, INTF2 becomes set (one). If the I-bit in
SREG and the INT2 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. Note that when entering some sleep modes with the INT2 interrupt disabled, the input
buffer on this pin will be disabled. This may cause a logic change in internal signals which will set the
INTF2 Flag. See Digital Input Enable and Sleep Modes for more information.
Atmel ATmega32A [DATASHEET]
Atmel-8155I-ATmega32A_Datasheet_Complete-08/2016
73