Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

How to test PonyProg. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Computers

Comments on the article Comments on the article

During the time that has passed since the publication of the description of this programmer in the Radio magazine, many readers have collected and successfully use it. However, incoming questions show that sometimes it is difficult to check the assembled programmer. The fact is that the signals in its circuits are of a pulsed and often non-periodic nature (which, however, is typical for all devices operating under computer control). Even with an oscilloscope, it is quite difficult to verify the correct formation of these signals. The article describes a method for checking the operation of the hardware of a programmer connected to a computer using a multimeter. True, this requires a special program TSOM.

On the scheme of the programmer PonyProg, shown in fig. 1, two of its functional units are shown docked: the main interface unit with the computer's COM port (see "Radio", 2001, No. 6, p. 25, Fig. 2) and the PICmicro microcontroller programming adapter ("Radio", 2001, No. 7, p. 21, Fig. 8). The latter is chosen as the most complex of the adapters, all others contain only a few passive elements.

How to test PonyProg
(click to enlarge)

The names of the circuits of the RS-1 interface are indicated next to the sockets of the XS232 socket of the interface node. Recall that this socket must be directly docked with a nine-pin plug of the computer system unit. Connection using a null-modem cable is unacceptable, and a modem cable, the plug and socket of which are connected one-to-one, can be used if it contains all the ones indicated in Fig. 1 chain, and its length does not exceed 1 m.

It should also be taken into account that the drawing of the printed circuit board of the interface unit (see Fig. 3 in "Radio", 2001, No. 6, p. 25) is given in a mirror image, therefore, before transferring the drawing of conductors to the board blank in the usual way (by tapping centers holes and subsequent application of printed conductors with varnish or waterproof ink), it must be turned over accordingly.

After connecting the programmer to the computer, run the TCOM program. The window shown in Fig. 2. Using the buttons available in it, select the port (COM1 or COM2) to which the programmer is connected. Pressing the on-screen buttons with the mouse is equivalent to pressing the keys on the keyboard corresponding to the underlined letters or numbers in the button labels, together with the Alt key.

How to test PonyProg

If the COM port plug is 25-pin, press the corresponding screen button, replacing the previous window with the window shown in fig. 3. The information given in it can be used to correctly connect the programmer to the 25-pin COM port plug. The program remembers the correspondence between the port number and its connector. It is enough to install it once, and in the future, when you change the port, the image of its connector will automatically appear on the screen.

How to test PonyProg

As you know, a fully "equipped" COM port has three output circuits (TXD, DTR, RTS) and five input circuits (RXD, DSR, CTS, DCD, RI). The TCOM program allows you to set any of the outputs to a high (High) or low (Low) logic level. To change it to the opposite, just press the corresponding screen button. All changes in input signal levels are immediately displayed on the screen.

Checking the programmer begins with the power node. The switch SA1 of the interface node is transferred to the right (according to the diagram) position, thus including the "internal" power supply of the programmable microcircuit from the COM port. The microcircuit itself does not need to be installed in the adapter panel. It is replaced by a 1 kΩ resistor inserted into the panel sockets intended for power outputs (for example, into sockets 14 and 5 of the XS1 panel for PIC16F8x chips). By changing the state of the TXD, DTR and RTS circuits, make sure that the voltage across the resistor does not go beyond 5 ± 0,5 V if the level of any of them is high, and is absent when all of the levels are low. If there is no voltage at a high level at one of the outputs and low at the other two, check the corresponding one of the diodes VD1, VD2.VD4.

If the voltage is less than 4,5 V, there may be two reasons for this. The first one is the integrated regulator DA1 with too high value of the minimum input voltage (for example, the LM78L05 chip stops working when the input voltage is less than 6,7 V). As a replacement for the LM2936Z-5.0 stabilizer indicated on the diagram, we can recommend the LM2931Z-5.0 or the domestic KR1170EN5. For normal operation of these microcircuits, the input voltage must exceed the output voltage by only 0,2 V (typical value).

The second reason is that the computer's COM port is too "weak" to withstand the load. The word "weak" is in quotation marks because, according to the standard, with a load of 3 kOhm, the high and low levels of the output voltage of the port can lie, respectively, in the intervals of +5 ... +15 and -5 ... -15 V. Although traditionally it is believed that in fact they are close to +12 and -12 V, in fact this is far from the case. For most RS-232 driver microcircuits, the typical output voltage levels do not exceed +7,5 ... 8 and -7,5 ... -8 V, and the most modern ones have even less, up to +5,5, 5,5 and -250 V. The trend towards a decrease in the signal span is not accidental: due to this, it is possible to increase the data transfer rate to XNUMX Kbps. If your computer has such a COM port, nothing can be done, you will have to switch to external power.

The latter is achieved simply: it is enough to apply a voltage of 1 V from an external source to the connector X12 of the interface node and switch the SA1 switch to the position shown in the diagram. The supply voltage of the programmable microcircuit in this mode should also be within 5 ± 0,5 V, turn on the high level of any of the TXD, DTR, RTS signals and turn off when the level of all three is low. If this is not the case, check the operation of the electronic key on transistors VT1, VT2 in the interface unit.

Next, they check the operation of the node that supplies the programmable microcircuit with voltage, which puts it into programming mode. It is measured between slots 4 and 5 of panel XS1 (PlC16F8x). Don't forget to set switch SA1 of the adapter to the position corresponding to the power supply mode: upper (according to the diagram) if the power is external, lower - when powered from the port. In the first case, the GB1 battery may be absent, in the second, it is required.

The programming voltage should turn on when the TXD circuit is driven high and turned off when driven low. Its value can be in the range of 9 ... 13,5 V. If problems arise, check the electronic key on transistors VT1, VT3 and the zener diode VD1 in the adapter.

The next step is to check the circuit for transmitting data to a programmable chip (D1) and receiving it from it (DO). The source of the transmitted data is the output of the DTR COM port, and the CTS input receives them. If all is well, the CTS logic level should be the inverse of the DTR output. Verify this by changing the latter. The power must be turned on, for example, by a high level at the TXD output.

If the CTS level is independent of the DTR state, measure the voltage at pin 13 of the PIC16F8x board. At a low level of DTR, it should be almost equal to the supply voltage (+5 V), at a high level - no more than 0,5 V. Otherwise, the key on the transistor VT2 of the adapter or the zener diode VD3 of the interface unit is faulty. It should be noted that for programming PICmicro microcontrollers in this zener diode (however, as in VD5) there is no need, they can be safely removed from the circuit.

It is possible that the voltage at pin 13 of the XS1 panel (PIC16F8x) changes within the above limits and enters the correct CTS input, however, the logic level on it is invariably displayed in the TCOM program window as high. This means that the Schmitt trigger on the CTS input of the computer has a negative threshold, and to switch it, it is not enough to reduce the input voltage to almost zero, but a positive value. This situation is within the framework of the RS-232 standard, according to which the thresholds can be within 5:3 V, but a computer with a similar port is unsuitable for working with a programmer assembled according to the scheme in question.

It remains to check the data exchange synchronization signal generation circuit (CLOCK). Its source is the output of the RTS COM port. The jumper between this output and the DSR input is only for the software to verify that the programmer is connected to the port. When changing the state of the RTS, first of all make sure that the state of the DSR always matches it. Then measure the voltage at pin 12 of panel XS1 (PlC16F8x). With a high level at the RTS output, it must be at least 4 V (more precisely, 80% of the microcircuit supply voltage) and not more than 0,6 V exceed the supply voltage. This condition is usually met, since the stabilization voltage of the KS147A (VD6) zener diodes lies in the range of 4,2 ... 5,2 V.

If the voltage is still insufficient (this can happen due to the fact that the above limits correspond to a stabilization current of 10 mA, and in the programmer it is much less), you should either select a zener diode or replace it with a KS147G, designed for a lower current, or with imported with a stabilization voltage of 5,1 V. It is highly undesirable to connect a diode in series with a zener diode (as shown in the diagram by a dashed line). This will cause the zener diode to stop working as a negative voltage limiter (when the DSR output is low) and the protection diode inside the programmable chip will come into action. And although the current through this diode will not reach a dangerous value (due to the resistor R5), it is better to avoid such a mode.

After completing the described checks, we can assume that the hardware of the programmer is working, and proceed to its operation. RopuRgod software and instructions can be "downloaded" at on the website of its author Claudio Lanconelli. On the same site there is a forum where you can ask questions regarding the programmer.

Author: A. Dolgiy, Moscow

See other articles Section Computers.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Artificial leather for touch emulation 15.04.2024

In a modern technology world where distance is becoming increasingly commonplace, maintaining connection and a sense of closeness is important. Recent developments in artificial skin by German scientists from Saarland University represent a new era in virtual interactions. German researchers from Saarland University have developed ultra-thin films that can transmit the sensation of touch over a distance. This cutting-edge technology provides new opportunities for virtual communication, especially for those who find themselves far from their loved ones. The ultra-thin films developed by the researchers, just 50 micrometers thick, can be integrated into textiles and worn like a second skin. These films act as sensors that recognize tactile signals from mom or dad, and as actuators that transmit these movements to the baby. Parents' touch to the fabric activates sensors that react to pressure and deform the ultra-thin film. This ... >>

Petgugu Global cat litter 15.04.2024

Taking care of pets can often be a challenge, especially when it comes to keeping your home clean. A new interesting solution from the Petgugu Global startup has been presented, which will make life easier for cat owners and help them keep their home perfectly clean and tidy. Startup Petgugu Global has unveiled a unique cat toilet that can automatically flush feces, keeping your home clean and fresh. This innovative device is equipped with various smart sensors that monitor your pet's toilet activity and activate to automatically clean after use. The device connects to the sewer system and ensures efficient waste removal without the need for intervention from the owner. Additionally, the toilet has a large flushable storage capacity, making it ideal for multi-cat households. The Petgugu cat litter bowl is designed for use with water-soluble litters and offers a range of additional ... >>

The attractiveness of caring men 14.04.2024

The stereotype that women prefer "bad boys" has long been widespread. However, recent research conducted by British scientists from Monash University offers a new perspective on this issue. They looked at how women responded to men's emotional responsibility and willingness to help others. The study's findings could change our understanding of what makes men attractive to women. A study conducted by scientists from Monash University leads to new findings about men's attractiveness to women. In the experiment, women were shown photographs of men with brief stories about their behavior in various situations, including their reaction to an encounter with a homeless person. Some of the men ignored the homeless man, while others helped him, such as buying him food. A study found that men who showed empathy and kindness were more attractive to women compared to men who showed empathy and kindness. ... >>

Random news from the Archive

Hydrodynamic analogue of radiation from oil 17.02.2023

American and French scientists obtained in a vibrating vessel with oil a hydrodynamic analogue of radiation - an effect from quantum optics. Due to vibrations, waves formed on the surface of the oil, provoking the appearance of drops, just as ensembles of atoms are able to emit light through a collective interaction with each other. The experiment of physicists highlighted the features of the quantum effect, and will also find application in the calculations of hydrodynamic systems.

When the atoms in an ensemble are very close to each other, less than a wavelength apart, they interact with each other through an electromagnetic field, which allows them to collectively emit photons, and at a greater intensity than any individual atom. This phenomenon is called superradiance and is not only of theoretical interest to scientists, but also of practical interest, because it can be used in a variety of fields related to optics: from lasers to quantum information technologies.

In their work, physicists at the Massachusetts Institute of Technology demonstrated a phenomenon similar to superradiance, but in a vessel filled with oil.

The creation of hydrodynamic analogs of quantum phenomena, which are also based on waves, physicists have been doing for a long time. For example, there are hydrodynamic versions of the Casimir effect, the Aharonov-Bohm effect, and even experiments with dark holes. They make it possible to study phenomena that are difficult or even impossible to study directly. In their experiments, physicists managed to fix several essential features of super-radiation by reproducing it in a vibrating vessel with oil, in which cavities at the bottom acted as atoms, and radiation manifested itself in the appearance of drops on the surface from the wave connection between them.

For the study, scientists created a container with two recesses 6 millimeters deep and 7 millimeters in diameter, the distance between which was varied in the range from 8 to 12 millimeters. They served as resonators, over which oil was poured in a thin layer of 0,75 millimeters. The whole structure was subjected to vibrations with a frequency of 39 hertz with different amplitudes, which physicists selected to overcome the so-called Faraday boundary - the boundary beyond which ripples (Faraday waves) appeared on the surface. It turned out that even at such considerable distances, the wave field of the perturbation of one resonator can reach another, which makes it possible for them to carry out long-range interactions.

The mesentery manifested itself most intensely above the resonators, near which drops were detached from the surface. Since the waves of both resonators met and interfered, this also affected the formation of droplets. The number of physics drops formed per second was taken as radiation. In the system they created, the appearance of drops is analogous to the emission of a photon through the collective interaction of atoms.

In addition to radiation amplification, the hydrodynamic experiment with superradiance has several other key features in common with superradiance from quantum optics. Another geometry of the resonators would help to reproduce the sub-radiation. As the researchers write, the formation of drops in their system will become a new platform for studying the hydrodynamic analogues of the phenomenon of collective radiation of particles and further expanding the field of hydrodynamic analogues of quantum phenomena.

Other interesting news:

▪ Measured the magnetic field of a black hole at the center of the Galaxy

▪ Memory cards with backup function

▪ New RS-485 transceivers

▪ High-speed communication through the socket

▪ Gravitational waves fixed

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Lecture notes, cheat sheets. Selection of articles

▪ article Normal physiology. Crib

▪ article Where the transition to the metric system almost led to a plane crash? Detailed answer

▪ article Hectograph. Children's Science Lab

▪ article 144 MHz Antenna. Encyclopedia of radio electronics and electrical engineering

▪ article Switching power supply based on PWM UC3842, 60 watts. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024