12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ATmega32A</strong>Figure 26-15. JTAG Programming Instruction 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 careInstruction TDI sequence TDO sequence Notes7c. Write Lock Bits 0110011_000000000110001_000000000110011_000000000110011_00000000xxxxxxx_xxxxxxxxxxxxxxx_xxxxxxxxxxxxxxx_xxxxxxxxxxxxxxx_xxxxxxxx7d. Poll for Lock Bit Write complete 0110011_00000000 xxxxxox_xxxxxxxx (2)8a. Enter Fuse/Lock Bit Read 0100011_00000100 xxxxxxx_xxxxxxxx8b. Read Fuse High Byte (6) 0111110_000000000111111_000000008c. Read Fuse Low Byte (7) 0110010_000000000110011_000000008d. Read Lock Bits (8) 0110110_000000000110111_000000008e. Read Fuses and Lock Bits 0111110_000000000110010_000000000110110_000000000110111_00000000xxxxxxx_xxxxxxxxxxxxxxx_ooooooooxxxxxxx_xxxxxxxxxxxxxxx_ooooooooxxxxxxx_xxxxxxxxxxxxxxx_xxooooooxxxxxxx_xxxxxxxxxxxxxxx_ooooooooxxxxxxx_ooooooooxxxxxxx_oooooooo9a. Enter Signature Byte Read 0100011_00001000 xxxxxxx_xxxxxxxx9b. Load Address Byte 0000011_bbbbbbbb xxxxxxx_xxxxxxxx9c. Read Signature Byte 0110010_000000000110011_00000000xxxxxxx_xxxxxxxxxxxxxxx_oooooooo10a. Enter Calibration Byte Read 0100011_00001000 xxxxxxx_xxxxxxxx10b. Load Address Byte 0000011_bbbbbbbb xxxxxxx_xxxxxxxx10c. Read Calibration Byte 0110110_000000000110111_0000000011a. Load No Operation Command 0100011_000000000110011_00000000xxxxxxx_xxxxxxxxxxxxxxx_ooooooooxxxxxxx_xxxxxxxxxxxxxxx_xxxxxxxxNotes: 1. This command sequence is not required if the seven MSB are correctly set by the previous command sequence (which isnormally 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 high byte is listed in Table 26-3 on page 2677. The bit mapping for fuses low byte is listed in Table 26-4 on page 2688. The bit mapping for Lock bits byte is listed in Table 26-1 on page 2669. Address bits exceeding PCMSB and EEAMSB (Table 26-5 and Table 26-6) are don’t care(1)(5)(5)fuse high bytefuse low bytelock bits8155C–AVR–02/11291

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!