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-3. Programming the Flash Waveforms (1)FA B C D E B C D E G HDATA$10 ADDR. LOW DATA LOW DATA HIGH XX ADDR. LOW DATA LOW DATA HIGH XX ADDR. HIGHXXXA1XA0BS1XTAL1WRRDY/BSYRESET +12VOEPAGELBS2Note: 1. “XX” is don’t care. The letters refer to the programming description above.26.7.5 Programming the EEPROMThe EEPROM is organized in pages, see Table 26-6 on page 269. When programming theEEPROM, the program data is latched into a page buffer. This allows one page of data to beprogrammed simultaneously. The programming algorithm for the EEPROM data memory is asfollows (refer to “Programming the Flash” on page 272 for details on Command, Address andData loading):1. A: Load Command “0001 0001”.2. G: Load Address High Byte ($00 - $FF)3. B: Load Address Low Byte ($00 - $FF)4. C: Load Data ($00 - $FF)5. E: Latch data (give PAGEL a positive pulse)K: Repeat 3 through 5 until the entire buffer is filledL: Program EEPROM page1. Set BS1 to “0”.2. Give WR a negative pulse. This starts programming of the EEPROM page. RDY/BSYgoes low.3. Wait until to RDY/BSY goes high before programming the next page. (See Figure 26-4for signal waveforms)8155C–AVR–02/11275

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

Saved successfully!

Ooh no, something went wrong!