AT90USB82/162
; 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
23.7.14 AT90USB82/162 Boot Loader Parameters
In Table 23-8 through Table 23-10, the parameters used in the description of the Self-Program-
ming are given.
Table 23-8. Boot Size Configuration() (16k)
0x0000 -
0x3DFF
0x3E00 -
0x3FFF
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
512 bytes
1024 bytes
2048 bytes
4096 bytes
512 bytes
4
8
0x3DFF
0x3BFF
0x37FF
0x2FFF
0x1DFF
0x1BFF
0x17FF
0x0FFF
0x3E00
0x3C00
0x3800
0x3000
0x1E00
0x1C00
0x1800
0x1000
0x0000 -
0x3BFF
0x3C00 -
0x3FFF
16K
b
0x0000 -
0x37FF
0x3800 -
0x3FFF
16
32
4
0x0000 -
0x2FFF
0x3000 -
0x3FFF
0x0000 -
0x1DFF
0x1E00 -
0x1FFF
0x0000 -
0x1BFF
0x1C00 -
0x1FFF
1024 bytes
2048 bytes
4096 bytes
8
0x0000 -
0x17FF
0x1800 -
0x1FFF
8Kb
16
32
0x0000 -
0x0FFF
0x1000 -
0x1FFF
(Page size = 64 words = 128 bytes)
239
7707D–AVR–07/08