ATA6603-EK Atmel, ATA6603-EK Datasheet - Page 295

no-image

ATA6603-EK

Manufacturer Part Number
ATA6603-EK
Description
MCU, MPU & DSP Development Tools Demoboard LIN-MCM
Manufacturer
Atmel
Datasheet

Specifications of ATA6603-EK

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
4921E–AUTO–09/09
Return:
Do_spm:
Wait_spm:
Wait_ee:
; return to RWW section
; verify that RWW section is safe to read
in
sbrs temp1, RWWSB
ret
; re-enable the RWW section
ldi
call Do_spm
rjmp Return
; check for previous SPM complete
in
sbrc temp1, SELFPRGEN
rjmp Wait_spm
; input: spmcrval determines SPM action
; disable interrupts if enabled, store status
in
cli
; check that no EEPROM write access is present
sbic EECR, EEPE
rjmp Wait_ee
; SPM timed sequence
out
spm
; restore SREG (to enable interrupts if originally enabled)
out
ret
spmcrval, (1<<RWWSRE) | (1<<SELFPRGEN)
SPMCSR, spmcrval
SREG, temp2
temp1, SPMCSR
temp1, SPMCSR
temp2, SREG
; If RWWSB is set, the RWW section is not ready yet
ATA6602/ATA6603
295

Related parts for ATA6603-EK