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

ATMEGA169PV 参数 Datasheet PDF下载

ATMEGA169PV图片预览
型号: ATMEGA169PV
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器,带有16K字节的系统内可编程闪存 [Microcontroller with 16K Bytes In-System Programmable Flash]
分类和应用: 闪存微控制器
文件页数/大小: 390 页 / 3485 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA169PV的Datasheet PDF文件第56页浏览型号ATMEGA169PV的Datasheet PDF文件第57页浏览型号ATMEGA169PV的Datasheet PDF文件第58页浏览型号ATMEGA169PV的Datasheet PDF文件第59页浏览型号ATMEGA169PV的Datasheet PDF文件第61页浏览型号ATMEGA169PV的Datasheet PDF文件第62页浏览型号ATMEGA169PV的Datasheet PDF文件第63页浏览型号ATMEGA169PV的Datasheet PDF文件第64页  
Assembly Code Example  
Move_interrupts:  
; Get MCUCR  
in r16, MCUCR  
mov r17, r16  
; Enable change of Interrupt Vectors  
ori r16, (1<<IVCE)  
out MCUCR, r16  
; Move interrupts to Boot Flash section  
ori r17, (1<<IVSEL)  
out MCUCR, r17  
ret  
C Code Example  
void Move_interrupts(void)  
{
uchar temp;  
/* Get MCUCR*/  
temp = MCUCR;  
/* Enable change of Interrupt Vectors */  
MCUCR = temp | (1<<IVCE);  
/* Move interrupts to Boot Flash section  
*/ MCUCR = temp | (1<<IVSEL);  
}
10.2.1  
MCUCR – MCU Control Register  
Bit  
7
6
-
5
-
4
3
2
1
IVSEL  
R/W  
0
0
IVCE  
R/W  
0
0x35 (0x55)  
Read/Write  
Initial Value  
JTD  
R/W  
0
PUD  
R/W  
0
MCUCR  
R
0
R
0
R
0
R
0
• Bit 1 – IVSEL: Interrupt Vector Select  
When the IVSEL bit is cleared (zero), the Interrupt Vectors are placed at the start of the Flash  
memory. When this bit is set (one), the Interrupt Vectors are moved to the beginning of the Boot  
Loader section of the Flash. The actual address of the start of the Boot Flash Section is deter-  
mined by the BOOTSZ Fuses. Refer to the section ”Boot Loader Support – Read-While-Write  
Self-Programming” on page 279 for details.  
• Bit 0 – IVCE: Interrupt Vector Change Enable  
The IVCE bit must be written to logic one to enable change of the IVSEL bit. IVCE is cleared by  
hardware four cycles after it is written or when IVSEL is written. Setting the IVCE bit will disable  
interrupts, as explained in the description in ”Moving Interrupts Between Application and Boot  
Space” on page 59. See Code Example.  
60  
ATmega169P  
8018A–AVR–03/06  
 复制成功!