atmega323l ATMEL Corporation, atmega323l Datasheet - Page 186

no-image

atmega323l

Manufacturer Part Number
atmega323l
Description
Atmega323 8-bit Avr Microcontroller With 32k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
Program and Data
Memory Lock Bits
186
ATmega323(L)
The ATmega323 provides six Lock bits which can be left unprogrammed (“1”) or can be
programmed (“0”) to obtain the additional features listed in Table 63. The Lock bits can
only be erased to “1” with the Chip Erase command.
Table 63. Lock Bit Protection Modes
BLB0 mode
BLB1 mode
LB mode
Do_spm:
Wait_ee:
Wait_spm:
; input: spmcrval determines SPM action
; check that no EEPROM write access is running
; SPM timed sequence
; check for SPM complete
1
2
3
1
2
3
4
Memory Lock Bits
call Do_spm
rjmp Return
sbic EECR, EEWE
rjmp Wait_ee
out
spm
.dw $FFFF
nop
in
sbrc temp1, SPMEN
rjmp Wait_spm
ret
BLB02
BLB12
SPMCR, spmcrval
temp1, SPMCR
LB2
1
1
0
1
1
0
0
BLB01
BLB11
LB1
1
0
0
1
0
0
1
Protection Type
No memory lock features enabled for parallel, serial, and
JTAG programming.
Further programming of the Flash and EEPROM is
disabled in parallel, serial, and JTAG programming mode.
The Fuse bits are locked in both serial and parallel
programming mode.
Further programming and verification of the Flash and
EEPROM is disabled in parallel, serial, and JTAG
programming mode. The Fuse bits are locked in both
serial and parallel programming mode.
No restrictions for SPM or LPM accessing the Application
section.
SPM is not allowed to write to the Application section.
SPM is not allowed to write to the Application section, and
LPM executing from the Boot Loader section is not
allowed to read from the Application section. If Interrupt
Vectors are placed in the Boot Loader section, interrupts
are disabled while executing from the Application section.
LPM executing from the Boot Loader section is not
allowed to read from the Application section. If Interrupt
Vectors are placed in the Boot Loader section, interrupts
are disabled while executing from the Application section.
; ensure proper pipelining
; of next instruction
(1)
(1)
1457G–AVR–09/03

Related parts for atmega323l