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

ATMEGA16M1_1 参数 Datasheet PDF下载

ATMEGA16M1_1图片预览
型号: ATMEGA16M1_1
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器,带有16K / 32K / 64K字节的系统内可编程闪存 [8-bit Microcontroller with 16K/32K/64K Bytes In-System Programmable Flash]
分类和应用: 闪存微控制器
文件页数/大小: 365 页 / 6381 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA16M1_1的Datasheet PDF文件第79页浏览型号ATMEGA16M1_1的Datasheet PDF文件第80页浏览型号ATMEGA16M1_1的Datasheet PDF文件第81页浏览型号ATMEGA16M1_1的Datasheet PDF文件第82页浏览型号ATMEGA16M1_1的Datasheet PDF文件第84页浏览型号ATMEGA16M1_1的Datasheet PDF文件第85页浏览型号ATMEGA16M1_1的Datasheet PDF文件第86页浏览型号ATMEGA16M1_1的Datasheet PDF文件第87页  
ATmega16/32/64/M1/C1  
10.2 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  
• Bit 7..0 – ISC31, ISC30 - ISC01, ISC00: Interrupt Sense Control 0 Bit 1 and Bit 0  
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 interrupt are defined in Table 10-1. Edges on INT3..INT0 are registered asynchro-  
nously. The value on the INT3:0 pins are 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. Observe that CPU clock frequency  
can be lower than XTAL frequency if the XTAL divider is enabled. 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.  
Table 10-1. 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 logical change on INTn generates an interrupt request.  
The falling edge between two samples of INTn generates an interrupt request.  
The rising edge between two samples of INTn generates an interrupt request.  
Note:  
1. n = 3, 2, 1 or 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.  
10.2.1  
External Interrupt Mask Register – EIMSK  
Bit  
7
6
5
4
3
INT3  
R
2
INT2  
R
1
0
INT1  
R/W  
0
INT0  
R/W  
0
EIMSK  
Read/Write  
Initial Value  
R
0
R
0
R
0
R
0
0
0
• Bit 7..4 – Res: Reserved Bits  
These bits are unused bits in the ATmega16/32/64/M1/C1, and will always read as zero.  
• Bit 3..0 – INT3 - 0: External Interrupt Request 3:0 Enable  
When an INT3 – INT0 bit is written to one and the I-bit in the Status Register (SREG) is set  
(one), the corresponding external pin interrupt is enabled. The Interrupt Sense Control bits in the  
External Interrupt Control Register A - EICRA defines whether the external interrupt is activated  
on rising or falling edge or level sensed. Activity on any of these pins will trigger an interrupt  
request even if the pin is enabled as an output. This provides a way of generating a software  
interrupt.  
83  
7647F–AVR–04/09  
 复制成功!