attiny11 ATMEL Corporation, attiny11 Datasheet - Page 33

no-image

attiny11

Manufacturer Part Number
attiny11
Description
8-bit Microcontroller With 1k Byte Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
attiny11-6I
Manufacturer:
ATMEL
Quantity:
75
Part Number:
attiny11-6PU
Manufacturer:
Atmel
Quantity:
15
Part Number:
attiny11-6PU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
attiny11-6SC
Manufacturer:
ATMEL
Quantity:
45
Part Number:
attiny11-6SI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
attiny11L-2PC
Manufacturer:
IDT
Quantity:
22
Part Number:
attiny11L-2PI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
attiny11L-2SC
Manufacturer:
NEC
Quantity:
814
Part Number:
attiny11L-2SC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
attiny11L-2SI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
General Interrupt Mask
Register – GIMSK
1006F–AVR–06/07
• Bits 1, 0 - ISC01, ISC00: Interrupt Sense Control0 Bit 1 and Bit 0
The External Interrupt 0 is activated by the external pin INT0 if the SREG I-flag and the
corresponding interrupt mask are set. The following table shows how to set the ISC bits
to generate an external interrupt:
Table 15. Interrupt 0 Sense Control
The value on the INT0 pin is sampled before detecting edges. If edge interrupt is
selected, pulses that last longer than one CPU 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. If enabled, a level-triggered interrupt will generate
an interrupt request as long as the pin is held low.
• Bit 7 - Res: Reserved Bit
This bit is a reserved bit in the ATtiny11/12 and always reads as zero.
• 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 enabled. The Interrupt Sense Control0 bits 1/0 (ISC01 and
ISC00) in the MCU general Control Register (MCUCR) define whether the external
interrupt is activated on rising or falling edge, on pin change, or low level of the INT0 pin.
Activity on the pin will cause an interrupt request even if INT0 is configured as an output.
The corresponding interrupt of External Interrupt Request 0 is executed from program
memory address $001. See also “External Interrupts.”
• Bit 5 - PCIE: Pin Change Interrupt Enable
When the PCIE bit is set (one) and the I-bit in the Status Register (SREG) is set (one),
the interrupt on pin change is enabled. Any change on any input or I/O pin will cause an
interrupt. The corresponding interrupt of Pin Change Interrupt Request is executed from
program memory address $002. See also “Pin Change Interrupt.”
• Bits 4..0 - Res: Reserved Bits
These bits are reserved bits in the ATtiny11/12 and always read as zero.
Bit
$3B
Read/Write
Initial Value
ISC01
0
0
1
1
ISC00
0
1
0
1
R
7
0
-
INT0
R/W
Description
The low level of INT0 generates an interrupt request.
Any change on INT0 generates an interrupt request
The falling edge of INT0 generates an interrupt request.
The rising edge of INT0 generates an interrupt request.
6
0
PCIE
R/W
5
0
R
4
0
-
R
3
0
-
R
2
0
-
ATtiny11/12
R
1
0
-
R
0
0
-
GIMSK
33

Related parts for attiny11