atmega323l ATMEL Corporation, atmega323l Datasheet - Page 200

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
Table 69. Serial Programming Instruction Set
Note:
200
Instruction
Programming Enable
Chip Erase
Read Program Memory
Load Program Memory
Page
Write Program Memory
Page
Read EEPROM Memory
Write EEPROM Memory
Read Lock Bits
Write Lock Bits
Read Signature Byte
Write Fuse Bits
Write Fuse High Bits
Read Fuse Bits
Read Fuse High Bits
Read Calibration Byte
a = address high bits; b = address low bits; H = 0 - Low Byte, 1 - High Byte; o = data out; i = data in; x = don’t care;
1 = lock bit 1; 2 = lock bit 2; 3 = Boot Lock Bit01; 4 = Boot Lock Bit02; 5 = Boot Lock Bit11; 6 = Boot Lock Bit12;
7 = CKSEL0 Fuse; 8 = CKSEL1 Fuse; 9 = CKSEL2 Fuse; A = CKSEL3 Fuse; B = BODEN Fuse; C = BODLEVEL Fuse;
D = BOOTRST Fuse; E = BOOTSZ0 Fuse; F = BOOTSZ1 Fuse; G = EESAVE Fuse; H = JTAGEN Fuse; and I = OCDEN Fuse
ATmega323(L)
1010 1100
1010 1100
0010 H000
0100 H000
0100 1100
1010 0000
1100 0000
0101 1000
1010 1100
0011 0000
1010 1100
1010 1100
0101 0000
0101 1000
0011 1000
Byte 1
.
0101 0011
100x xxxx
xxaa aaaa
xxxx xxxx
xxaa aaaa
xxxx xxaa
xxxx xxaa
0000 0000
111x xxxx
xxxx xxxx
1010 0000
1010 1000
0000 0000
0000 1000
xxxx xxxx
Byte 2
Instruction Format
xxxx xxxx
xxxx xxxx
bbbb bbbb
xxbb bbbb
bbxx xxxx
bbbb bbbb
bbbb bbbb
xxxx xxxx
xxxx xxxx
xxxx xxbb
xxxx xxxx
xxxx xxxx
xxxx xxxx
xxxx xxxx
0000 0000
Byte 3
xxxx xxxx
xxxx xxxx
oooo oooo
iiii iiii
xxxx xxxx
oooo oooo
iiii iiii
xx65 4321
1165 4321
oooo oooo
CB11 A987
IH11 GFED
CBxx A987
IHxx GFED
oooo oooo
Byte4
Operation
Enable Serial Programming after
RESET goes low.
Chip Erase EEPROM and Flash.
Read H (high or low) data o from
Program memory at word address
a:b.
Write H (high or low) data i to
Program memory page at word
address b.
Write Program memory Page at
address a:b.
Read data o from EEPROM
Memory at address a:b.
Write data i to EEPROM Memory
at address a:b.
Read Lock bits.
“1”
Write Lock bits. Set bits 6 - 1 = “0”
to program Lock bits.
Read Signature Byte o at address
b.
Set bits C - A, 9 - 7 = “0” to
program,
Set bits F - D = “0” to program,
to unprogram
Read Fuse bits. “0” = programmed,
“1”
Read Fuse high bits. “0” = pro-
grammed,
Read Signature Byte o at address
b.
= unprogrammed.
= unprogrammed
“1”
“1”
to unprogram
= unprogrammed
“0”
= programmed,
1457G–AVR–09/03
“1”

Related parts for atmega323l