Datasheet
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 SPMCR, spmcrval
spm
; restore SREG (to enable interrupts if originally enabled)
out SREG, temp2
ret
28.8.13 ATmega8A Boot Loader Parameters
In the following tables, the parameters used in the description of the self programming are given.
Table 28-6. Boot Size Configuration, ATmega8A
BOOTSZ1 BOOTSZ0 Boot
Size
Pages Application
Flash Section
Boot
Loader
Flash
Section
End
Application
Section
Boot Reset
Address
(Start Boot
Loader
Section)
1 1 128
words
4 0x000 - 0xF7F 0xF80 -
0xFFF
0xF7F 0xF80
1 0 256
words
8 0x000 - 0xEFF 0xF00 -
0xFFF
0xEFF 0xF00
0 1 512
words
16 0x000 - 0xDFF 0xE00 -
0xFFF
0xDFF 0xE00
0 0 1024
words
32 0x000 - 0xBFF 0xC00 -
0xFFF
0xBFF 0xC00
Note: The different BOOTSZ Fuse configurations are shown in Figure 28-2.
Table 28-7. Read-While-Write Limit, ATmega8A
Section Pages Address
Read-While-Write section (RWW) 96 0x000 - 0xBFF
No Read-While-Write section (NRWW) 32 0xC00 - 0xFFF
AVR 8-Bit Microcontroller
BTLDR - Boot Loader Support – Read-While-Wri...
© 2017 Microchip Technology Inc.
Datasheet Complete
40001974A-page 284