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.

Chapter 4<br />

Figure 4-2. Pinout for 8K EEPROM.<br />

commands verify each byte after programming it, so the inverted data automatically keeps<br />

BASIC-52 from programming another byte until the EEPROM is ready to receive it.<br />

Other EEPROMs have a busy output, usually at pin 1, which goes low when the EEPROM<br />

is busy. For this type, you can tie the busy output to pin 12 of U1. BASIC-52’s programming<br />

commands wait for a high logic level at this pin after programming each byte. Note that<br />

this means that pin 12 of the 8052-BASIC must be high (or not connected) during<br />

programming of any device. However, using the BUSY output is optional, since programming<br />

won’t continue until the programmed byte verifies.<br />

Whether you choose EEPROM or NVRAM, be sure to ask for a data sheet for the device<br />

you buy, so you can verify its pinout, capacity, and timing characteristics.<br />

Adding NVRAM or EEPROM<br />

Figure 4-3 shows the added circuits for the NVRAM or EEPROM at U8. Because the circuits<br />

are an addition to Figure 3-1’s circuits, the parts continue the same numbering sequence,<br />

beginning with U8. AND gate U3C is the third gate of Figure 3-1’s U3. Table 4-1 is a parts<br />

list of the components needed to add Figure 4-3’s circuits to Figure 3-1.<br />

50 <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!