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.

This is the recommended algorithm for older, smaller-capacity EPROMs like the 2-kilobyte<br />

2716 and 4-kilobyte 2732, and some 8-kilobyte 2764s. <strong>The</strong>se typically require a programming<br />

voltage of 21 or 25 volts at the EPROM’s VPP input.<br />

Intelligent programming. This algorithm uses much shorter programming pulses, and<br />

verifies after each attempt. After each 1-millisecond programming pulse, you read the<br />

EPROM location to see if the programming succeeded. If not, you try again, up to 25 times.<br />

When the location verifies, you apply a final pulse equal to three times the total amount of<br />

programming pulses already applied. For example, if it takes five attempts to verify, you<br />

would apply a final 15-millisecond pulse. Finally, when all locations are programmed, you<br />

verify each once more.<br />

For Intelligent programming, VPP is typically +12.5 volts, and VCC, the EPROM’s main<br />

power supply, is also raised from +5 to +6V during programming.<br />

Intelligent programming is the recommended algorithm for many 8K EPROMs. Intel’s 2764<br />

EPROM uses 21V, 5—millisecond programming, while the 2764A uses 12.5V, Intelligent<br />

programming.<br />

Quick-pulse programming. Some CMOS 8K EPROMs (27C64) can use an even faster<br />

programming algorithm called Quick-Pulse. In Quick-Pulse programming, VPP is typically<br />

12.75V, VCC is 6.25, and the programming pulses are 100 microseconds. BASIC-52 doesn’t<br />

offer Quick-Pulse programming as an option.<br />

Choosing an algorithm. As a rule, you can program an EPROM using a slower algorithm<br />

than the recommended one, so you should be able to program any 12.5V EPROM with<br />

50-millisecond programming, with VPP at 12.5V and VCC at +5V. And, any EPROM that<br />

can use Quick-Pulse programming should also program with the Intelligent or 50-millisecond<br />

programming algorithm and voltages. But whatever you do, don’t exceed the recommended<br />

programming voltages for the device at VCC and VPP.<br />

EPROM Pinouts<br />

Figure 4-4 shows the pinout for a 2764 8K EPROM. Once again, the pin functions and<br />

locations are similar to those in an 8K RAM. During normal operation, the data pins<br />

(DQ0-DQ7) are read-only. Pin 27, which is Write Enable (WE) on RAM, is PGM, or program<br />

pulse, on the EPROM, and pin 1, which has no connection on RAM, is VPP, or programming<br />

voltage, on the EPROM.<br />

EPROM-programming Circuits<br />

Saving Programs<br />

Figure 4-5 shows additions to Figure 4-3’s circuits that enable you to program a 12.5V 8K<br />

EPROM instead of NVRAM or EEPROM. Table 4-2 is a parts list for Figure 4-5’s circuits.<br />

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

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

Saved successfully!

Ooh no, something went wrong!