A000047 Arduino, A000047 Datasheet - Page 113

MCU, MPU & DSP Development Tools Mega2560

A000047

Manufacturer Part Number
A000047
Description
MCU, MPU & DSP Development Tools Mega2560
Manufacturer
Arduino
Series
-r
Type
MCUr
Datasheets

Specifications of A000047

Processor To Be Evaluated
ATmega2560
Interface Type
USB, I2C, SPI
Dimensions
4 in x 2.1 in
Operating Supply Voltage
5 V
Contents
Board
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
ATmega2560
14.2
14.2.1
2549M–AVR–09/10
Register Description
EICRA – External Interrupt Control Register A
Figure 14-1. Normal pin change interrupt.
The External Interrupt Control Register A contains control bits for interrupt sense control.
• Bits 7:0 – ISC31, ISC30 – ISC00, ISC00: External Interrupt 3 - 0 Sense Control Bits
The External Interrupts 3 - 0 are activated by the external pins INT3:0 if the SREG I-flag and the
corresponding interrupt mask in the EIMSK is set. The level and edges on the external pins that
activate the interrupts are defined in
asynchronously. Pulses on INT3:0 pins wider than the minimum pulse width given in
on page 114
rupt. 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. When changing the ISCn bit, an
interrupt can occur. Therefore, it is recommended to first disable INTn by clearing its Interrupt
Enable bit in the EIMSK Register. Then, the ISCn bit can be changed. Finally, the INTn interrupt
flag should be cleared by writing a logical one to its Interrupt Flag bit (INTFn) in the EIFR Regis-
ter before the interrupt is re-enabled.
PCINT(0)
Bit
(0x69)
Read/Write
Initial Value
pcint_setflag
pcint_in_(n)
clk
PCINT(n)
pcint_syn
pin_sync
pin_lat
PCIF
will generate an interrupt. Shorter pulses are not guaranteed to generate an inter-
LE
clk
ISC31
R/W
7
0
pin_lat
D
Q
ISC30
R/W
pin_sync
PCINT(0) in PCMSK(x)
6
0
ATmega640/1280/1281/2560/2561
ISC21
pcint_in_(0)
R/W
5
0
Table 14-1 on page
ISC20
R/W
4
0
0
x
clk
ISC11
R/W
3
0
114. Edges on INT3:0 are registered
pcint_syn
ISC10
R/W
2
0
ISC01
pcint_setflag
R/W
1
0
ISC00
R/W
0
0
PCIF
Table 14-2
EICRA
113

Related parts for A000047