18.11.2014 Views

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Saving Programs<br />

Figure 4-3. Circuits for adding NVRAM or EEPROM.<br />

<strong>The</strong> pinout and wiring of U8 are similar to that of the RAM at U7. <strong>The</strong> data and address<br />

lines are wired exactly the same as for U7. U8 is accessed from 8000h to 9FFFh. This<br />

location is used because BASIC-52’s programming commands assume that the nonvolatile<br />

memory begins at 8000h.<br />

OR gate U9A prevents the NVRAM or EEPROM from being accidentally overwritten<br />

during power-up. When the 8052-BASIC first powers up, its port pins are in an unknown<br />

state for a brief period, until the reset algorithm in the chip brings them all high. During this<br />

<strong>The</strong> <strong>Microcontroller</strong> <strong>Idea</strong> <strong>Book</strong> 51

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

Saved successfully!

Ooh no, something went wrong!