![Atmel AT90S8414 Скачать руководство пользователя страница 28](http://html1.mh-extra.com/html/atmel/at90s8414/at90s8414_manual_3003427028.webp)
4-28
AT90S8414
Preliminary
Figure 30: Watchdog Reset During Operation
INTERRUPT HANDLING
The AT90S8414 has two 8-bit Interrupt Mask control registers; GIMSK - General Interrupt Mask register and TIMSK -
Timer/Counter Interrupt Mask register.
When an interrupt occurs, the Global Interrupt Enable I-bit is cleared (zero) and all interrupts are disabled. The user
software must set (one) the I-bit to enable interrupts.
When the Program Counter is vectored to the actual interrupt vector in order to execute the interrupt handling routine,
hardware clears the corresponding flag that generated the interrupt. Some of the interrupt flags can also be cleared by
writing a logic one to the flag bit position(s) to be cleared.
THE GENERAL INTERRUPT MASK REGISTER - GIMSK
Bit
7
6
5
4
3
2
1
0
$3B
INT1
INT0
-
-
-
-
-
-
GIMSK
Read/Write
R/W
R/W
R
R
R
R
R
R
Initial value
0
0
0
0
0
0
0
0
Bit 7 - INT1 : External Interrupt Request 1 Enable:
When the INT1 bit is set (one) and the I-bit in the Status Register (SREG) is set (one), the external pin interrupt is
enabled. The Interrupt Sense Control1 bits 1/0 (ISC11 and ISC10) in the MCU general Control Register (MCUCR)
defines whether the external interrupt is activated on rising or falling edge of the INT1 pin or level sensed. If the INT1
pin for external interrupts shall be activated, the DDD3 bit in the Data Direction Register PORTD (DDRD) must be
cleared (zero) to force an input pin. The corresponding interrupt of External Interrupt Request 1 is executed from
program memory address $002. See also “External Interrupts”.
Bit 6 - INT0 : External Interrupt Request 0 Enable:
When the INT0 bit is set (one) and the I-bit in the Status Register (SREG) is set (one), the external pin interrupt is
activated. The Interrupt Sense Control0 bits 1/0 (ISC01 and ISC00) in the MCU general Control Register (MCUCR)
defines whether the external interrupt is activated on rising or falling edge of the INT0 pin or level sensed. If the INT0
pin for external interrupts shall be activated, the DDD2 bit in the Data Direction Register PORTD (DDRD) must be
cleared (zero) to force an input pin. The corresponding interrupt of External Interrupt Request 0 is executed from
program memory address $001. See also “External Interrupts”.
Bits 5..0 - Res : Reserved bits:
These bits are reserved bits in the AT90S8414 and always read as zero.
Содержание AT90S8414
Страница 4: ...4 4 AT90S8414 Preliminary...
Страница 6: ...4 6 AT90S8414 Preliminary Block Diagram Figure 1 The AT90S8414 Block Diagram...
Страница 65: ...AT90S8414 Preliminary 4 65 Figure 50 PORTB Schematic Diagram Pin PB5 Figure 51 PORTB Schematic Diagram Pin PB6...
Страница 68: ...4 68 AT90S8414 Preliminary Figure 53 PORTC Schematic Diagram Pins PC0 PC7...
Страница 87: ...AT90S8414 Preliminary 4 87...