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 />

Table 4-2. Parts list for Figure 4-5.<br />

Semiconductors<br />

D2,D3<br />

Q1,Q2<br />

U10<br />

1N270 or similar germanium diode<br />

PN2907 or similar PNP general-purpose transistor<br />

75453 dual peripheral OR driver<br />

Resistors (1/4-watt, 5% tolerance)<br />

R11,R14<br />

R12,R13<br />

R15,R16<br />

4,700-ohm<br />

10,000-ohm<br />

10,000-ohm<br />

Capacitors(16WVDC, 20% tolerance)<br />

C15<br />

0.1-microfarad ceramic disc<br />

Miscellaneous<br />

J5-J6<br />

SIP header, 3-terminal, and shorting block<br />

When BASIC-52 executes a programming command, PGM EN goes low, pin 3 of U10 goes<br />

low, and Q1 switches on. This brings VPP to 12.5 volts. Diode D2 prevents current from<br />

flowing into the 5V supply. When programming is finished, PGM EN goes high again, and<br />

VPP returns to +4.7V.<br />

Resistor R10 limits U10A’s output current, and R11 ensures that pin 3 of U10 pulls up to<br />

12.5V. Capacitor C14 provides power-supply decoupling.<br />

If you happen to have an older 21V EPROM, the circuit should also work with a +21V<br />

supply in place of +12.5V.<br />

FPROG Circuits<br />

If you want to use the FPROG commands for faster EPROM programming, additional<br />

circuits are required. <strong>The</strong>se are identical to the circuits that switch VPP, except that they<br />

instead switch VCC to +6V during programming.<br />

With the FPROG circuits shown in Figure 4-5, during normal (non-programming) operation,<br />

VCC is actually slightly less than +5V, due to D3’s voltage drop. This should cause no<br />

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