ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING Simple programmer. Encyclopedia of radio electronics and electrical engineering Encyclopedia of radio electronics and electrical engineering / Microcontrollers The programmer is a device made on a printed circuit board and connected via a parallel port to an IBM PC type computer. Programming is carried out by a special control program. The program is implemented as an application for WIN95WIN98. The programmer can write the following types of microcircuits: 27C16(К573РФ5), 27C32, 27C64(К573РФ4), 27C128, 27C256(К573РФ8), 27C512. Adjustment to the type of microcircuit is carried out by switches located on the programmer, as well as in the program. Program description The program is written in DELPHI3. Writing and reading LPT registers are written using assembler inserts, so the program will not work under WINNT and WIN2000. The necessary time intervals for the establishment and retention of the gates are set by performing a certain number of empty cycles. Below is the appearance of the control program.
The file to be written to the ROM must be in a ready-made binary format. Recording starts at the address set in the Start Address field and ends either at the end of the file or when the address value exceeds the value set in the End Address field. Programming order 1. Run the control program; 2. Select the type of microcircuit in the program from the list; 3. Select a file to write to ROM; 4. Set the switches on the board in accordance with the type of microcircuit; 5. Install a writable chip; 6. Apply power supply and programming voltage to the programmer; 7. Record. Description of the device. Schematic diagram of the programmer The programmer is controlled through the LPT port, which consists of three registers: Data register. D_LPT0-D_LPT7. Data is transferred through this register; control register. -STROBE, -AUTOFD, -INIT, -SLCTIN. Signals in this register control data transfer; input register. Through the input register, data is received from the ROM. Four bits of this register are used for reception - ERROR, SLCT, PE, -ACK. DD1, DD2 (555IR22) - address registers Registers DD1, DD2 are designed to set the address of the ROM. DD1 sets the least significant bits of the address, DD2 - the most significant ones. Writing to these registers occurs through the LPT data bus on the rising edge of the control strobes -AUTOFD and -INIT, respectively. DD3 (555IR22) - register of control signals The DD3 register is designed to generate strobes that control the operation of the ROM and the data bus (see table).
The control word is written to the register via the LPT data bus on the rising edge of the -SLCTIN control strobe. DD4 (555AP5) - receive buffer DD4 - two 4-bit buffers through which data is received from the ROM to the IBM PC. One accepts the low 4 bits of data, the other - the high ones. This division is made due to the fact that the LPT has only 5 input lines. Buffers are connected to LPT inputs by strobes inlow_str and inhigh_str of the control register DD3 (see table).
DD5 (555IR22) - data register for writing DD5 - 8-bit data register. This register sets the data to be written to the ROM. Data is written to it via the LPT data bus on the rising edge of the -STROBE control signal. The state of the output signals of this register depends on the strobe OUT of the control register DD3. When OUT=0, the data from the register is output to the ROM data bus, when OUT=1, the register outputs are in a high-resistance state. Device design There are two slots for installing chips on the programmer. One for ROM chips, the other for MK51 microcontrollers (the programming of microcontrollers has not been fully worked out, therefore this type of microcircuits is not in the control program). Ordinary DIP panels were used as landing pads. The supply and programming voltages are connected to connector P2. The programming voltage should be set according to the technical requirements for each type of microcircuit. Warning: Since the setting for the type of chips is carried out by switches, the device can be turned on only after installing the chip and setting the switches accordingly. You can download the following files related to the project:
Author: Sergey Rostovtsev, rmsergey@chuvashia.ru; Publication: cxem.net See other articles Section Microcontrollers. Read and write useful comments on this article. Latest news of science and technology, new electronics: Machine for thinning flowers in gardens
02.05.2024 Advanced Infrared Microscope
02.05.2024 Air trap for insects
01.05.2024
Other interesting news: ▪ Solar panels on indium phosphide ▪ Beet juice will fool mosquitoes ▪ Sony Reader Daily Edition e-book News feed of science and technology, new electronics
Interesting materials of the Free Technical Library: ▪ site section Lightning protection. Article selection ▪ article Editing in Canopus Edius Pro. Secrets known to all. video art ▪ article Where did Apollo get the lyre from? Detailed answer ▪ Stinky article. Legends, cultivation, methods of application ▪ article Dry cleaning - stain removal by adsorption. Chemical experience
Leave your comment on this article: All languages of this page Home page | Library | Articles | Website map | Site Reviews www.diagram.com.ua |