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

The program for the logic analyzer of signals at the inputs of the COM port. 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

In amateur radio practice, sometimes there is a need to investigate low-frequency digital signals. Acquiring an expensive hardware logic analyzer or a storage oscilloscope for this purpose is in most cases impractical. It is enough to apply the signals to be analyzed to the inputs of the computer's COM port and run a program that will display all their changes on the monitor screen and save the information on the computer's hard disk.

The proposed program is designed to record and analyze digital signals received at the inputs of the computer's COM port. It can run under all operating systems of the Windows family, starting with Windows 98. The computer must have a processor of at least Pentium I with a clock speed of 166 MHz and at least 128 MB of RAM.

The program is written in the Delphi 7 integrated development environment. For direct (bypassing the Win API) access to I/O ports, it uses the smPort driver that does not require installation. This made it possible to achieve a fairly high accuracy in measuring time intervals. Sweep mode - waiting for a single adjustable duration, triggered by a change in one or more signals.

At the same time, the signals on the four inputs of the port (CTS, DSR, RI and DCD) are examined. At the same time, it is possible to maintain high logic voltage levels on the output lines of the RTS and DTR ports, which allows them to power devices with a current consumption of up to 15 mA (per line). To investigate signals whose levels differ from those received in the RS232 interface, it is necessary to apply them through the appropriate matching devices.

Main Specifications

Number of inputs ........................4
log level. 1, B............+3...+25
log level. 0, V............+3...-25
Number of power outlets
devices under study and
sensors.......................2
Output voltage, V.........+12
Output load current, mA, not more than .........................15
Time interval measurement error, %, no more,
with their duration, µs less than 20 ....... not standardized
20 .......................... 50
100 ......................... 10
more than 1000......................1
The maximum frequency of the signal under study, kHz .............................. 180
Minimum sweep duration, ms .............................1
Maximum sweep duration, s, when displayed on a scale
1:1 ........................0,5
1:20........................10
1:100......................50

Suppose we need to investigate a discrete information signal transmitted by a serial code on one line and accompanied by clock pulses on another. The impulses are continuous, and the transmission of information occurs in advance unknown intervals of time.

Connect the information line to the DCD input (pin 1 of the port connector), and the clock line to the RI input (pin 9) and run the Digital_Oscilloscope.exe program. In the "Settings" field of the window that opens, on the "Port" tab (Fig. 1), select by name (COM1 or COM2) the port to which inputs the signals under test are applied. The "Address" column will display the standard base address of the selected port. If necessary, you can enter another address here (in hexadecimal format) by pressing the screen button next to the address value.

The program for the logic analyzer of signals at the inputs of the COM port
Fig. 1

In the appropriate column, we indicate the duration of the recording of signals ("Capture time"), necessary to solve the problem. Please note that only the moments of changes in the levels of the studied signals are recorded, and not their regular samples. Checking the box "Use TSC" allows you to count the time using the hardware timer available in all processors, starting with the Pentium I, operating at a higher clock frequency, which significantly improves the accuracy of time measurement. This has to be abandoned, unchecked, only on obsolete computers whose processors do not have such a timer.

On the "Trigger on signal change" panel, check the DCD item. This means that the recording should start from the first change in the logic level of the signal at this input, which in this case corresponds to the beginning of information transfer. The RTS item checked on the "Hold signals" panel means that the voltage of the high logic level will be set at the port output of the same name.

After pressing the on-screen button "Capture", located above the field "Settings", the program will proceed to waiting for the specified changes in input signals. In this mode, the background under "Capture" will turn red. When the trigger condition is met (in this case, the level changes at the DCD input), the recording of information in the computer memory will begin and continue for the time specified during the setup. If for any reason you need to stop waiting for the start of recording or end it ahead of schedule, you can do this using the on-screen "Stop" button.

The program for the logic analyzer of signals at the inputs of the COM port
Fig. 2

At the end of the recording, the time diagrams of the signals will be displayed in the program window (Fig. 2). By going to the "Oscillograms" tab of the "Settings" field, you can use the "Show signals" panel to set the inversion of some signals, if necessary, select the color of each curve, turn off the display of unnecessary signals (this will speed up the display of diagrams on the screen). On the same tab, you can select the display scale along the time axis, enable the scale grid with or without digitization.

For accurate measurement of time intervals, two markers are provided in the chart field (vertical lines of red and green colors). They can be moved either by clicking the right or left mouse button on the diagram, or using the sliders below the diagrams. The position of each marker on the time axis and the interval between them are displayed numerically to the right of the sliders.

It should be taken into account that when recording a very large amount of information and choosing a large scale, the computer's RAM resources may be exhausted, about which a message will be displayed on the computer screen.

The program is used at the Department of Radio Electronics and Computer Engineering of the Yelets State University for research and adjustment of infrared receivers and transmitters, and also (together with the Hall sensor) as a digital tachometer.

Literature

  1. Pashix. Hardware programming: RS-232.
  2. Teixeira S, Pacheco K. Delphi 5. Developer's Guide. - M.: Publishing house "William", 2000.
  3. Microsoft Windows SDK. - Microsoft Corporation, 1985-2007.

The logic analyzer program, including its Delphi project and the smPort driver, can be downloaded hence.

Author: V. Timofeev, Yelets, Lipetsk Region; Publication: radioradar.net

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

Magneto-optical disk stores up to 1 GB of information 19.07.2000

Japanese companies Sony and Sharp have jointly developed a new magneto-optical (MO) disk with a diameter of 5 cm. The disk has a thickness of 0,5 mm and can store up to 1 GB of information.

Sharp also plans to release a digital video camera for the new media by the spring of next year. According to experts, the quality of MO video recording practically does not depend on the number of times a disc is played.

Experts believe that the mass production of equipment with an MO disk will lead to the end of the era of video recorders and video cameras, where magnetic cassettes are used as a source of information.

Other interesting news:

▪ Indium shortage threatens touch screen manufacturing

▪ Quasi-resonant controllers Infineon CoolSET

▪ Dell XPS 13 Developer Edition laptop

▪ Video games on the real world map

▪ Cypress CYFB0072 4,8Gb/s video buffer chip

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section Lighting. Article selection

▪ article The madness of the brave is the wisdom of life! Popular expression

▪ article Why was Leonid Yarmolnik expelled from the cast of the film Kin-dza-dza !? Detailed answer

▪ Canadian GXNUMX article. Travel Tips

▪ article How to give Portland cement the property of resisting severe frost. Simple recipes and tips

▪ article Voltage doubler on the UZCH chip. 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