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

ATMEGA32L-8AUR 参数 Datasheet PDF下载

ATMEGA32L-8AUR图片预览
型号: ATMEGA32L-8AUR
PDF下载: 下载PDF文件 查看货源
内容描述: [RISC Microcontroller, 8-Bit, FLASH, AVR RISC CPU, 8MHz, CMOS, PQFP44, 10 X 10 MM, 1 MM HEIGHT, 0.80 MM PITCH, GREEN, PLASTIC, MS-026ACB, TQFP-44]
分类和应用: 闪存微控制器
文件页数/大小: 347 页 / 3171 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA32L-8AUR的Datasheet PDF文件第250页浏览型号ATMEGA32L-8AUR的Datasheet PDF文件第251页浏览型号ATMEGA32L-8AUR的Datasheet PDF文件第252页浏览型号ATMEGA32L-8AUR的Datasheet PDF文件第253页浏览型号ATMEGA32L-8AUR的Datasheet PDF文件第255页浏览型号ATMEGA32L-8AUR的Datasheet PDF文件第256页浏览型号ATMEGA32L-8AUR的Datasheet PDF文件第257页浏览型号ATMEGA32L-8AUR的Datasheet PDF文件第258页  
ldi  
Wrloop:  
ld  
loophi, high(PAGESIZEB)  
;not required for PAGESIZEB<=256  
r0, Y+  
ld  
r1, Y+  
ldi  
spmcrval, (1<<SPMEN)  
call Do_spm  
adiw ZH:ZL, 2  
sbiw loophi:looplo, 2  
brne Wrloop  
;use subi for PAGESIZEB<=256  
; execute page write  
subi ZL, low(PAGESIZEB)  
sbci ZH, high(PAGESIZEB)  
;restore pointer  
;not required for PAGESIZEB<=256  
ldi  
spmcrval, (1<<PGWRT) | (1<<SPMEN)  
call Do_spm  
; re-enable the RWW section  
ldi  
spmcrval, (1<<RWWSRE) | (1<<SPMEN)  
call Do_spm  
; read back and check, optional  
ldi  
ldi  
looplo, low(PAGESIZEB)  
loophi, high(PAGESIZEB)  
;init loop variable  
;not required for PAGESIZEB<=256  
;restore pointer  
subi YL, low(PAGESIZEB)  
sbci YH, high(PAGESIZEB)  
Rdloop:  
lpm  
ld  
r0, Z+  
r1, Y+  
cpse r0, r1  
jmp Error  
sbiw loophi:looplo, 1  
brne Rdloop  
;use subi for PAGESIZEB<=256  
; return to RWW section  
; verify that RWW section is safe to read  
Return:  
in  
temp1, SPMCR  
sbrs temp1, RWWSB  
; If RWWSB is set, the RWW section is not  
; ready yet  
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, SPMCR  
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, EEWE  
rjmp Wait_ee  
; SPM timed sequence  
out  
spm  
SPMCR, spmcrval  
; restore SREG (to enable interrupts if originally enabled)  
out  
ret  
SREG, temp2  
254  
ATmega32(L)  
2503J–AVR–10/06  
 复制成功!