ATTINY20-XUR Atmel, ATTINY20-XUR Datasheet - Page 41

no-image

ATTINY20-XUR

Manufacturer Part Number
ATTINY20-XUR
Description
MCU AVR 2KB FLASH 12MHZ 14TSSOP
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY20-XUR

Core Processor
AVR
Core Size
8-Bit
Speed
12MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
12
Program Memory Size
2KB (1K x 16)
Program Memory Type
FLASH
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
 Details
9.3
9.3.1
9.3.2
8235B–AVR–04/11
Register Description
MCUCR – MCU Control Register
GIMSK – General Interrupt Mask Register
The MCU Control Register contains bits for controlling external interrupt sensing and power
management.
• 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 corre-
sponding interrupt mask are set. The level and edges on the external INT0 pin that activate the
interrupt are defined in
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.
Table 9-2.
• Bits 7:6 – Res: Reserved Bits
These bits are reserved and will always read as zero.
• Bit 5 – PCIE1: Pin Change Interrupt Enable 1
When the PCIE1 bit is set (one) and the I-bit in the Status Register (SREG) is set (one), pin
change interrupt 1 is enabled. Any change on any enabled PCINT[11:8] pin will cause an inter-
rupt. The corresponding interrupt of Pin Change Interrupt Request is executed from the PCI1
Interrupt Vector. PCINT[11:8] pins are enabled individually by the PCMSK1 Register.
• Bit 4 – PCIE0: Pin Change Interrupt Enable 0
When the PCIE0 bit is set (one) and the I-bit in the Status Register (SREG) is set (one), pin
change interrupt 0 is enabled. Any change on any enabled PCINT[7:0] pin will cause an inter-
rupt. The corresponding interrupt of Pin Change Interrupt Request is executed from the PCI0
Interrupt Vector. PCINT[7:0] pins are enabled individually by the PCMSK0 Register.
Bit
0x3A
Read/Write
Initial Value
Bit
0x0C
Read/Write
Initial Value
ISC01
0
0
1
1
ISC01
Interrupt 0 Sense Control
R/W
ISC00
7
0
R
7
0
0
1
0
1
ISC00
R/W
Table
6
0
Description
The low level of INT0 generates an interrupt request.
Any logical 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.
R
6
0
9-2. The value on the INT0 pin is sampled before detecting edges.
R
5
0
PCIE1
R/W
5
0
BODS
R/W
4
0
PCIE0
R/W
4
0
SM2
R/W
3
0
R
3
0
SM1
R/W
2
0
R
2
0
SM0
R/W
1
0
R
1
0
R/W
SE
0
0
ATtiny20
INT0
MCUCR
R/W
0
0
GIMSK
41

Related parts for ATTINY20-XUR