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>Table 26-14.InstructionProgramming EnableNote:SPI Serial Programming Instruction Seta = address high bitsb = address low bitsH = 0 – Low byte, 1 – High Byteo = data outi = data inx = don’t careInstruction FormatByte 1 Byte 2 Byte 3 Byte4Operation1010 1100 0101 0011 xxxx xxxx xxxx xxxx Enable SPI Serial Programming afterRESET goes low.Chip Erase 1010 1100 100x xxxx xxxx xxxx xxxx xxxx Chip Erase EEPROM and Flash.Read Program MemoryLoad Program Memory PageWrite Program Memory PageRead EEPROM MemoryWrite EEPROM MemoryRead Lock Bits0010 H000 00aa aaaa bbbb bbbb oooo oooo Read H (high or low) data o fromProgram memory at word address a:b.0100 H000 00xx xxxx xxbb bbbb iiii iiii Write H (high or low) data i to ProgramMemory page at word address b. Datalow byte must be loaded before Datahigh byte is applied within the sameaddress.0100 1100 00aa aaaa bbxx xxxx xxxx xxxx Write Program Memory Page ataddress a:b.1010 0000 00xx xxaa bbbb bbbb oooo oooo Read data o from EEPROM memory ataddress a:b.1100 0000 00xx xxaa bbbb bbbb iiii iiii Write data i to EEPROM memory ataddress a:b.0101 1000 0000 0000 xxxx xxxx xxoo oooo Read Lock bits. “0” = programmed, “1”= unprogrammed. See Table 26-1 onpage 266 for details.1010 1100 111x xxxx xxxx xxxx 11ii iiii Write Lock bits. Set bits = “0” toWrite Lock Bitsprogram Lock bits. See Table 26-1 onpage 266 for details.Read Signature Byte 0011 0000 00xx xxxx xxxx xxbb oooo oooo Read Signature Byte o at address b.Write Fuse BitsWrite Fuse High BitsRead Fuse Bits1010 1100 1010 0000 xxxx xxxx iiii iiii Set bits = “0” to program, “1” tounprogram. See Table 26-4 on page268 for details.1010 1100 1010 1000 xxxx xxxx iiii iiii Set bits = “0” to program, “1” tounprogram. See Table 26-3 on page267 for details.0101 0000 0000 0000 xxxx xxxx oooo oooo Read Fuse bits. “0” = programmed, “1”= unprogrammed. See Table 26-4 onpage 268 for details.0101 1000 0000 1000 xxxx xxxx oooo oooo Read Fuse high bits. “0” = programmed,Read Fuse High Bits“1” = unprogrammed. SeeTable 26-3 on page 267 for details.Read Calibration Byte 0011 1000 xxxx xxxx 0000 00bb oooo oooo Read Calibration Byte o at address b8155C–AVR–02/11284

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

Saved successfully!

Ooh no, something went wrong!