311
2467S–AVR–07/09
ATmega128
5c. Load Address Low Byte
0000011_
bbbbbbbb
xxxxxxx_xxxxxxxx
5d. Read Data Byte
0110011_
bbbbbbbb
0110010_00000000
0110011_00000000
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
xxxxxxx_
oooooooo
6a. Enter Fuse Write
0100011_01000000
xxxxxxx_xxxxxxxx
6b. Load Data Low Byte
0010011_
iiiiiiii
xxxxxxx_xxxxxxxx
(3)
6c. Write Fuse Extended byte
0111011_00000000
0111001_00000000
0111011_00000000
0111011_00000000
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
(1)
6d. Poll for Fuse Write complete
0110111_00000000
xxxxx
o
x_xxxxxxxx
(2)
6e. Load Data Low Byte
0010011_
iiiiiiii
xxxxxxx_xxxxxxxx
(3)
6f. Write Fuse High byte
0110111_00000000
0110101_00000000
0110111_00000000
0110111_00000000
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
(1)
6g. Poll for Fuse Write complete
0110111_00000000
xxxxx
o
x_xxxxxxxx
(2)
6h. Load Data Low Byte
0010011_
iiiiiiii
xxxxxxx_xxxxxxxx
(3)
6i. Write Fuse Low byte
0110011_00000000
0110001_00000000
0110011_00000000
0110011_00000000
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
(1)
6j. Poll for Fuse Write complete
0110011_00000000
xxxxx
o
x_xxxxxxxx
(2)
7a. Enter Lock bit Write
0100011_00100000
xxxxxxx_xxxxxxxx
7b. Load Data Byte
0010011_11
iiiiii
xxxxxxx_xxxxxxxx
(4)
7c. Write Lock bits
0110011_00000000
0110001_00000000
0110011_00000000
0110011_00000000
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
xxxxxxx_xxxxxxxx
(1)
7d. Poll for Lock bit Write complete
0110011_00000000
xxxxx
o
x_xxxxxxxx
(2)
8a. Enter Fuse/Lock bit Read
0100011_00000100
xxxxxxx_xxxxxxxx
8b. Read Extended Fuse Byte
0111010_00000000
0111011_00000000
xxxxxxx_xxxxxxxx
xxxxxxx_
oooooooo
8c. Read Fuse High Byte
0111110_00000000
0111111_00000000
xxxxxxx_xxxxxxxx
xxxxxxx_
oooooooo
8d. Read Fuse Low Byte
0110010_00000000
0110011_00000000
xxxxxxx_xxxxxxxx
xxxxxxx_
oooooooo
8e. Read Lock bits
0110110_00000000
0110111_00000000
xxxxxxx_xxxxxxxx
xxxxxxx_xx
oooooo
(5)
Table 130.
JTAG Programming Instruction (Continued)
Set (Continued)
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
Instruction
TDI sequence
TDO sequence
Notes