欢迎访问ic37.com |
会员登录 免费注册
发布采购

ATMEGA2560 参数 Datasheet PDF下载

ATMEGA2560图片预览
型号: ATMEGA2560
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器与256K字节的系统内可编程闪存 [8- BIT Microcontroller with 256K Bytes In-System Programmable Flash]
分类和应用: 闪存微控制器
文件页数/大小: 407 页 / 2985 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA2560的Datasheet PDF文件第72页浏览型号ATMEGA2560的Datasheet PDF文件第73页浏览型号ATMEGA2560的Datasheet PDF文件第74页浏览型号ATMEGA2560的Datasheet PDF文件第75页浏览型号ATMEGA2560的Datasheet PDF文件第77页浏览型号ATMEGA2560的Datasheet PDF文件第78页浏览型号ATMEGA2560的Datasheet PDF文件第79页浏览型号ATMEGA2560的Datasheet PDF文件第80页  
External Interrupt Control  
Register A – EICRA  
The External Interrupt Control Register A contains control bits for interrupt sense  
control.  
Bit  
7
ISC31  
R/W  
0
6
ISC30  
R/W  
0
5
ISC21  
R/W  
0
4
ISC20  
R/W  
0
3
ISC11  
R/W  
0
2
ISC10  
R/W  
0
1
ISC01  
R/W  
0
0
ISC00  
R/W  
0
EICRA  
Read/Write  
Initial Value  
• 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 Table 31. Edges on INT3..INT0  
are registered asynchronously. Pulses on INT3:0 pins wider than the minimum pulse  
width given in Table 32 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. 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 Register before the interrupt is re-  
enabled.  
Table 31. Interrupt Sense Control(1)  
ISCn1  
ISCn0 Description  
0
0
1
1
0
1
0
1
The low level of INTn generates an interrupt request.  
Any edge of INTn generates asynchronously an interrupt request.  
The falling edge of INTn generates asynchronously an interrupt request.  
The rising edge of INTn generates asynchronously an interrupt request.  
Note:  
1. n = 3, 2, 1or 0.  
When changing the ISCn1/ISCn0 bits, the interrupt must be disabled by clearing its  
Interrupt Enable bit in the EIMSK Register. Otherwise an interrupt can occur when  
the bits are changed.  
Table 32. Asynchronous External Interrupt Characteristics  
Symbol Parameter Condition Min  
Minimum pulse width for  
Typ  
Max  
Units  
tINT  
50  
ns  
asynchronous external interrupt  
External Interrupt Control  
Register B – EICRB  
Bit  
7
ISC71  
R/W  
0
6
ISC70  
R/W  
0
5
ISC61  
R/W  
0
4
ISC60  
R/W  
0
3
ISC51  
R/W  
0
2
ISC50  
R/W  
0
1
0
ISC41  
R/W  
0
ISC40  
R/W  
0
EICRB  
Read/Write  
Initial Value  
• Bits 7..0 – ISC71, ISC70 - ISC41, ISC40: External Interrupt 7 - 4 Sense Control  
Bits  
The External Interrupts 7 - 4 are activated by the external pins INT7:4 if the SREG I-flag  
and the corresponding interrupt mask in the EIMSK is set. The level and edges on the  
76  
ATmega640/1280/1281/2560/2561  
2549A–AVR–03/05  
 复制成功!