11.07.2015 Views

ATMega chip full datasheet - UCSD Department of Physics

ATMega chip full datasheet - UCSD Department of Physics

ATMega chip full datasheet - UCSD Department of Physics

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.

ATmega48A/PA/88A/PA/168A/PA/328/PTable 28-19.Instruction/OperationSerial Programming Instruction Set (Hexadecimal values) (Continued)Instruction FormatByte 1 Byte 2 Byte 3 Byte4Read Calibration Byte $38 $00 $00 data byte outWrite Instructions (6)Write Program Memory Page $4C adr MSB (8) adr LSB (8) $00Write EEPROM Memory $C0 0000 00aa aaaa aaaa data byte inWrite EEPROM Memory Page (page access) $C2 0000 00aa aaaa aa00 $00Write Lock bits $AC $E0 $00 data byte inWrite Fuse bits $AC $A0 $00 data byte inWrite Fuse High bits $AC $A8 $00 data byte inWrite Extended Fuse Bits $AC $A4 $00 data byte inNotes: 1. Not all instructions are applicable for all parts.2. a = address.3. Bits are programmed ‘0’, unprogrammed ‘1’.4. To ensure future compatibility, unused Fuses and Lock bits should be unprogrammed (‘1’) .5. Refer to the corresponding section for Fuse and Lock bits, Calibration and Signature bytes and Page size.6. Instructions accessing program memory use a word address. This address may be random within the page range.7. See http://www.atmel.com/avr for Application Notes regarding programming and programmers.8. WORDSIf the LSB in RDY/BSY data byte out is ‘1’, a programming operation is still pending. Wait untilthis bit returns ‘0’ before the next instruction is carried out.Within the same page, the low data byte must be loaded prior to the high data byte.After data is loaded to the page buffer, program the EEPROM page, see Figure 28-8 on page316.8271D–AVR–05/11315

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

Saved successfully!

Ooh no, something went wrong!