Atmega128(l) – Rainbow Electronics ATmega128L User Manual

Page 304

Advertising
background image

304

ATmega128(L)

2467B–09/01

Notes:

1. This command sequence is not required if the seven MSB are correctly set by the previous command sequence (which is

normally the case).

2. Repeat until o = ’1’.
3. Set bits to ’0’ to program the corresponding fuse, ‘1’ to unprogram the fuse.
4. Set bits to ’0’ to program the corresponding lock bit, ‘1’ to leave the lock bit unchanged.
5. ‘0’ = programmed, ‘1’ = unprogrammed.
6. The bit mapping for fuses extended byte is listed in

Table 118 on page 280

7. The bit mapping for fuses high byte is listed in

Table 119 on page 281

8. The bit mapping for fuses low byte is listed in

Table 120 on page 281

9. The bit mapping for lock-bits byte is listed in

Table 116 on page 279

10. Address bits exceeding PCMSB and EEAMSB (

Table 124 and Table 125) are don’t care

8f. Read Fuses and Lock Bits

0111010_00000000

0111110_00000000

0110010_00000000

0110110_00000000

0110111_00000000

xxxxxxx_xxxxxxxx

xxxxxxx_oooooooo

xxxxxxx_oooooooo

xxxxxxx_oooooooo

xxxxxxx_oooooooo

(5)

fuse ext. byte

fuse high byte

fuse low byte

lock bits

9a. Enter Signature Byte Read

0100011_00001000

xxxxxxx_xxxxxxxx

9b. Load Address Byte

0000011_bbbbbbbb

xxxxxxx_xxxxxxxx

9c. Read Signature Byte

0110010_00000000

0110011_00000000

xxxxxxx_xxxxxxxx

xxxxxxx_oooooooo

10a. Enter Calibration Byte Read

0100011_00001000

xxxxxxx_xxxxxxxx

10b. Load Address Byte

0000011_bbbbbbbb

xxxxxxx_xxxxxxxx

10c. Read Calibration Byte

0110110_00000000

0110111_00000000

xxxxxxx_xxxxxxxx

xxxxxxx_oooooooo

11a. Load No Operation Command

0100011_00000000

0110011_00000000

xxxxxxx_xxxxxxxx

xxxxxxx_xxxxxxxx

Table 132. 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

Advertising