English
Language : 

ATTINY20_14 Datasheet, PDF (38/219 Pages) ATMEL Corporation – 8-bit AVR Microcontroller
If the low level on the interrupt pin is removed before the device has woken up then program execution will not be
diverted to the interrupt service routine but continue from the instruction following the SLEEP command.
9.2.2 Pin Change Interrupt Timing
A timing example of a pin change interrupt is shown in Figure 9-1.
Figure 9-1. Timing of pin change interrupts
PCINT(0)
clk
pin_lat
DQ
LE
pin_sync
pcint_in_(0) 0
x
PCINT(0) in PCMSK(x)
clk
pcint_syn
pcint_setflag
PCIF
clk
PCINT(0)
pin_lat
pin_sync
pcint_in_(0)
pcint_syn
pcint_setflag
PCIF
9.3 Register Description
9.3.1 MCUCR – MCU Control Register
The MCU Control Register contains bits for controlling external interrupt sensing and power management.
Bit
0x3A
Read/Write
Initial Value
7
6
5
4
3
2
1
0
ISC01
ISC00
–
BODS
SM2
SM1
SM0
SE
MCUCR
R/W
R/W
R
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
0
0
z Bits 7:6 – ISC01, ISC00: Interrupt Sense Control
The External Interrupt 0 is activated by the external pin INT0 if the SREG I-flag and the corresponding interrupt mask are
set. The level and edges on the external INT0 pin that activate the interrupt are defined in Table 9-2. The value on the
INT0 pin is sampled before detecting edges. If edge or toggle interrupt is selected, pulses that last longer than one clock
period will generate an interrupt. Shorter pulses are not guaranteed to generate an interrupt. If low level interrupt is
selected, the low level must be held until the completion of the currently executing instruction to generate an interrupt.
ATtiny20 [DATASHEET] 38
Atmel-8235F-AVR-ATtiny20-Datasheet_09/2014