atmega161-4pi ATMEL Corporation, atmega161-4pi Datasheet - Page 128

no-image

atmega161-4pi

Manufacturer Part Number
atmega161-4pi
Description
8-bit Microcontroller With 16k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
Table 48. Serial Programming Instruction Set
Note:
128
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
Read Fuse bits
1. a = address high bits
ATmega161(L)
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 Bit1
4 = Boot Lock Bit2
5 = Boot Lock Bit11
6 = Boot Lock Bit12
7 = CKSEL0 Fuse
8 = CKSEL1 Fuse
9 = CKSEL2 Fuse
B = SUT Fuse
C = SPIEN Fuse
D = BOOTRST Fuse
1010 1100
1010 1100
0010 H000
0100 H000
0100 1100
1010 0000
1100 0000
0101 1000
1010 1100
0011 0000
1010 1100
0101 0000
Byte 1
.
0101 0011
100x xxxx
xxxa aaaa
xxxx xxxx
xxxa aaaa
xxxx xxxa
xxxx xxxa
xxxx xxxx
111x xxxx
xxxx xxxx
101x xxxx
xxxx xxxx
(1)
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
Byte 3
xxxx xxxx
xxxx xxxx
oooo oooo
iiii iiii
iiii iiii
oooo oooo
iiii iiii
xx65 4321
1165 4321
oooo oooo
1D1B 1987
xDCB 1987
Byte 4
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. “0” = programmed,
“1” = unprogrammed.
Write Lock bits. Set bits 6 - 1 = “0”
to program Lock bits.
Read Signature byte o at address
b.
Set bits D - B, 9 - 7 = “0” to
program, “1” to unprogram
Read Fuse bits. “0” = programmed,
“1” = unprogrammed
1228D–AVR–02/07

Related parts for atmega161-4pi