欢迎访问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文件第325页浏览型号ATMEGA2560的Datasheet PDF文件第326页浏览型号ATMEGA2560的Datasheet PDF文件第327页浏览型号ATMEGA2560的Datasheet PDF文件第328页浏览型号ATMEGA2560的Datasheet PDF文件第330页浏览型号ATMEGA2560的Datasheet PDF文件第331页浏览型号ATMEGA2560的Datasheet PDF文件第332页浏览型号ATMEGA2560的Datasheet PDF文件第333页  
ATmega640/1280/1281/2560/2561  
sbiw loophi:looplo, 1  
;use subi for PAGESIZEB<=256  
brne Rdloop  
; return to RWW section  
; verify that RWW section is safe to read  
Return:  
in  
temp1, SPMCSR  
sbrs temp1, RWWSB  
ready yet  
; If RWWSB is set, the RWW section is not  
ret  
; re-enable the RWW section  
ldi spmcrval, (1<<RWWSRE) | (1<<SPMEN)  
call Do_spm  
rjmp Return  
Do_spm:  
; check for previous SPM complete  
Wait_spm:  
in  
temp1, SPMCSR  
sbrc temp1, SPMEN  
rjmp Wait_spm  
; input: spmcrval determines SPM action  
; disable interrupts if enabled, store status  
in  
temp2, SREG  
cli  
; check that no EEPROM write access is present  
Wait_ee:  
sbic EECR, EEPE  
rjmp Wait_ee  
; SPM timed sequence  
out SPMCSR, spmcrval  
spm  
; restore SREG (to enable interrupts if originally enabled)  
out SREG, temp2  
ret  
329  
2549A–AVR–03/05  
 复制成功!