Design Ideas |
The simple
PC printer-port interface programmer in Figure 1 can program an Atmel AT89C51 flash-based mC. The circuit uses
the eight data-port lines (pins 2 to 9) and three control-port lines (pins 1,
14, and 16). The control-port bits, D0 and D1, act as reset and clock signals,
respectively, for the 12-bit binary counter, IC2. The output port of IC2
connects to the AT89C51's address lines. Data-port bits D6 and D7 act as IC1's
clock and data signal signals, respectively. The output port of IC1 connects to
the AT89C51's data lines. The rest of the printer-port lines are
programming-control signals. The Turbo C program in
Listing 1
erases the
AT89C51 and then sends the AT89C51's program, contained in a binary file named
AT89C51.BIN, to the programmer. (DI #1925)
| EDN Access | feedback | subscribe to EDN! | Table of Contents |