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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4<br />

Figure 4-1. Pinouts for Dallas Semiconductor’s 8K NVRAM and SmartSocket.<br />

space (even though it may contain NVRAM, EEPROM, or EPROM), and call the memory<br />

beginning at 0, up to 7FFFh or the top of RAM, the RAM space.<br />

BASIC-52’s programming commands are designed to meet the requirements for EPROMs,<br />

using either of two programming algorithms, or procedures. You can use the same commands<br />

to store programs in NVRAM or EEPROM. Like EPROMs, these devices provide nonvolatile<br />

storage—in other words, their contents don’t disappear when power is removed. Plus,<br />

they have two advantages over EPROMs: they don’t need any special programming<br />

voltages, and they don’t need ultraviolet exposure to erase. This makes them much more<br />

convenient to use.<br />

For these reasons, the first circuit we’ll look at offers a choice of NVRAM or EEPROM for<br />

nonvolatile storage. Later, we’ll add circuits that allow you to program EPROMs, for those<br />

who want this option.<br />

NVRAM<br />

Dallas Semiconductor offers NVRAM chips that you can use for nonvolatile storage. <strong>The</strong>se<br />

work exactly like static RAM, except that they contain a lithium cell and backup circuits<br />

that retain the RAM’s contents when the main power supply is removed. <strong>The</strong> backup is<br />

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

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

Saved successfully!

Ooh no, something went wrong!