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.

problems with EPROMs that have a 10 percent power-supply tolerance; in other words, ones<br />

that are guaranteed to operate from supplies of 4.5 to 5.5V. You do want to be sure that your<br />

main supply is a solid +5V, or even a little higher.<br />

<strong>The</strong> data sheets for some EPROMs specify 5-percent tolerance: the supply must be between<br />

4.75 and 5.25V to guarantee operation within the specifications. In this case, you will be<br />

operating near or just below the recommended supply voltage, especially if your main supply<br />

is slightly under +5V. When you are not programming the EPROM, you can move J6 to<br />

connect pin 28 directly to +5V. But overall, 10-percent-tolerance EPROMs are a better<br />

choice for this circuit.<br />

If you are using a NVRAM or EEPROM, set J6 to +5V, since VCC must remain at 5V for<br />

these devices.<br />

Power Supplies for Programming<br />

You have several options for creating the programming power supplies of +12.5V and,<br />

optionally, +6V.<br />

Benchtop Supply<br />

For occasional use, if you have a benchtop supply that can supply the needed outputs, you<br />

can add terminals to the appropriate connections in your BASIC-52 system, and connect the<br />

supply leads to them when needed.<br />

Adjustable Regulator<br />

Figure 4-6 shows a circuit that regulates a DC supply of 15 to 18V to 12.5V or 6V. For the<br />

15V supply, you can use a benchtop supply, a wall-transformer AC-to-DC adapter, or even<br />

two 9-volt transistor batteries connected in series. <strong>The</strong> supply must have a DC output, but<br />

it doesn’t have to be regulated. You’ll need one LM317 and an R1 and R2 for each output<br />

voltage, but you can power both LM317’s from the same supply.<br />

Typical current requirements for programming an NMOS 2764A are 50 milliamperes at<br />

12.5V and 75 milliamperes at 6V, or 125 milliamperes total. For a CMOS 27C64, it’s 30<br />

milliamperes for each, or 60 milliamperes total.<br />

Each regulating circuit uses an LM317 adjustable regulator. You set the output voltage of<br />

the LM317 with R1 and R2, using the formula shown. <strong>The</strong> LM317 creates a constant 1.25V<br />

reference across R1. <strong>The</strong> current through R1 also flows through R2, and the voltage across<br />

the pair of resistors is the regulator’s output.<br />

Intel’s EPROM data sheets specify this range for the programming voltages:<br />

Saving Programs<br />

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

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

Saved successfully!

Ooh no, something went wrong!