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

Frequency counter up to 1250 MHz. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Measuring technology

Comments on the article Comments on the article

This device has not only a large upper limit of the measured frequency, but also a number of additional functions. It measures the frequency deviation from the initial value, the duration of the pulses and pauses between them, and counts the number of pulses. It can also be used as a frequency divider of the input signal with a dividing ratio that can be set over a wide range.

The proposed frequency meter contains six microcircuits - the AD8611ARZ voltage comparator [1], the LMX2316TM frequency synthesizer [2], the 74HC74D D-trigger [3], the 74HC151D multiplexer selector [4], the PIC16F873A-1/SP microcontroller [5] and the integrated voltage regulator TL7805 . It displays the measurement results on a WH1602B character LCD [6].

Main Specifications

  • Interval of measured pulse frequency with TTL levels, Hz.......0,1...8 107
  • analog periodic arbitrary waveform signals with voltage over 100 mVeff, Hz.......1...8 107
  • sinusoidal RF signals with a voltage of more than 100 mVeff, MHz ....... 20 ... 1250
  • Counting duration when measuring frequency, ms ...... 104, 103, 100, 10
  • Interval of measured pulse duration, µs .......10...106
  • Maximum repetition rate of counted pulses, kHz ....... 100
  • Maximum counted pulses .....100
  • Measured deviation of the pulse frequency at the TTL input or signal at the analog input, Hz.......±1...±106
  • RF input signal, kHz .......±1...±105
  • The frequency division factor of the signal applied to the analog input ....... 3 - 16383
  • applied to the RF input ....... 1000 - 65535
  • Frequency divider output pulse levels.......TTL
  • The duration of the output pulses of the frequency divider, µs.......0,5
  • Supply voltage (constant), V.......9.16
  • Current consumption, mA ......100...150

When the device is turned off, the microcontroller remembers the set modes of its operation in its EEPROM and restores it when it is turned on.

The frequency meter circuit is shown in fig. 1. The clock generator of the microcontroller DD3 is stabilized by a quartz resonator ZQ1. The trimmer capacitor C13 allows you to set the clock frequency to exactly 4 MHz. The +5 V voltage regulator is assembled on a DA2 chip. Trimmer resistor R23 adjust the brightness of the backlight of the LCD screen HG1. The optimal contrast of the image on it is set by a tuning resistor R21.

Frequency counter up to 1250 MHz
Rice. 1. Frequency meter circuit (click to enlarge)

Buttons SB1-SB3 control the device. The SB1 button is used to select the measured parameter. The SB2 button selects the connector to which the measured signal is applied. Depending on the frequency and shape of the input signal, this can be XW1 (logic level pulses with a frequency of 0,1 Hz ... 80 MHz), XW2 (analogue arbitrary waveforms with a frequency of 1 Hz ... 80 MHz) or XW3 (signals with a frequency of 20. ..1250 MHz). The SB3 button starts and stops the measurement in the pulse counter and frequency offset measurement modes. Long (more than 1 s) pressing this button switches from the frequency measurement mode to the frequency division mode and outputs the result to the XW1 connector. When the buttons are not pressed, the inputs of the microcontroller to which they are connected, the resistors R12-R14 maintain high levels.

Resistors R4 and R6 create a constant offset of about 100 mV at the non-inverting input of comparator DA1. Resistors R5 and R7 are the positive feedback circuit required to obtain hysteresis in the comparator's switching characteristic. Diodes VD1 and VD2, together with resistor R2, form a two-way input voltage limiter at the inverting input of the comparator.

The DD1 microcircuit, the main purpose of which is to work in frequency synthesizers in the 1,2 GHz range, contains two frequency dividers with a variable division ratio, which are used in the described device to divide the frequency of the input signals supplied to the XW2 and XW3 connectors by a specified number of times. The microcontroller sets the division ratios and the operating mode of this microcircuit by issuing commands via its serial interface (Clock, Data, LE inputs). Depending on the set mode, the Fo/LD output receives the result of one of these dividers. Resistor R19 and capacitor C19 form a power filter for the DD1 microcircuit, and diodes VD3 and VD4 protect the input of one of its frequency dividers, directly connected to the XW3 connector, from overload. A single vibrator is assembled on the DD4.1 trigger, which forms pulses with a duration of 0,5 μs from the output signals of the frequency dividers. Its timing circuit is resistor R17 and capacitor C10.

The shaper of the pulses supplied to the XW1 connector is assembled on a transistor VT1 with a collector load - resistor R8. It works when the RC5 output of the microcontroller is set to a high logic level. Otherwise, the driver is turned off and does not affect the external signals supplied to the XW1 connector. Therefore, the XW1 connector can be used both as an input when measuring the frequency and duration of logic signals, as well as when counting pulses, and as an output in frequency division modes. Resistor R11 is used to protect the input 0 of the selector-multiplexer DD2 from randomly applied to the connector XW1 high-amplitude signals.

At the commands of the microcontroller, the selector-multiplexer supplies to its inputs intended for measuring the frequency and duration of pulses either TTL level pulses from the XW1 connector, or signals received at the XW2 connector and converted into such pulses by the DA1 comparator, or signals received at the XW3 connector and passed through frequency divider chip DD1. The microcontroller performs the basic operations of measuring the frequency, duration and counting of pulses. It also displays the measurement results on the HG1 LCD and controls the operation of the entire device. The micro-controller program is written in MASM assembly language, which is part of the MPLAB IDEv7.5 program development environment.

In the frequency measurement modes, the microcontroller counts the pulses received at the T0CKI input during the measurement interval selected by the user (0,01, 0,1, 1 or 10 s). When measuring the frequency of the signal applied to the XW3 connector, its frequency is preliminarily divided by 1000 by one of the dividers of the DD1 chip.

When measuring the duration of pulses of a high logic level, the microcontroller starts counting pulses with a frequency of 1 MHz, obtained by dividing its clock frequency, based on the rising edge of the measured pulse at the INT input. It stops this account by the falling edge of the measured pulse. In the case of measuring the duration of a low-level pulse, the counting starts with its falling edge, and ends with an increasing one.

As soon as the frequency drift measurement mode is enabled, the microcontroller makes the first measurement of the frequency of the input signal, then periodically repeats these measurements. The program subtracts the result of the first measurement from each subsequent one and displays the current difference on the indicator. After stopping this mode, the LCD displays the maximum recorded during the measurement of the frequency deviation down and up from the initial one.

To measure the repetition rate of logical pulses with TTL levels, use the SB2 button to select the XW1 input connector. The microcontroller generates code 0 at the outputs RC2-RC000, thereby transferring the selector DD2 to a state in which the signal from the XW1 connector is fed to the TOSK1 input of the microcontroller for measuring the frequency and to its own INT input for measuring the pulse duration. The program displays the measurement results on the HG1 LCD (Fig. 2), and the durations of the high (H) and low (L) level pulses alternate on the screen. The code on the right side of the upper line means the set counting time: "10" - 10 s, "1" - 1 s, ".1" - 0,1 s and ".01" - 0,01 s. In the right part of the bottom line, the symbol of the selected input connector is displayed: TTL - XW1, VHF - XW2, UHF - XW3.

Frequency counter up to 1250 MHz
Rice. 2. Measurement results displayed by the program on LCD HG1

By measuring the frequency of analog signals (up to 80 MHz), the SB2 button selects the XW2 input. At the outputs RC0-RC2, the microcontroller generates code 001, switching the DD2 multiplexer to a position in which the signal from the XW2 connector, converted into rectangular pulses by the DA1 comparator, is fed to the TOCKI input of the microcontroller. The program measures the frequency of the signal and displays the result on the LCD (Fig. 3).

Frequency counter up to 1250 MHz
Rice. 3. Measurement results displayed by the program on LCD HG1

To measure RF signals up to 1250 MHz, use the SB2 button to select the XW3 input connector. From it, the signal arrives at the input fIN available in the chip DD1 frequency divider. The division ratio is set by the microcontroller to be 1000. The signal from the output of the frequency divider, converted into pulses with a duration of about 0,5 μs by a single vibrator on a DD4.1 trigger, is fed through the DD2 multiplexer to the TOCKI input of the microcontroller. The multiplexer is set to the required state by code 010 at the outputs RC0-RC2 of the microcontroller. The microcontroller program measures the frequency and, taking into account the division factor, displays the result on the LCD (Fig. 4).

Frequency counter up to 1250 MHz
Rice. 4. Measurement results displayed by the program on LCD HG1

The pulses to be counted are applied to the input connector XW1 or XW2. The SB2 button selects one of these inputs, and the SB1 button selects the COUNTER mode (Fig. 5). The account is started by pressing the SB3 button, which is accompanied by the replacement of the label OFF (off) on the screen with the label ON (on). To stop counting, the SB3 button is pressed again, while the ON label is replaced by the OFF label. The program displays the number of pulses accumulated during the time from start to stop on the LCD.

Frequency counter up to 1250 MHz
Rice. 5. Measurement results displayed by the program on LCD HG1

To measure the frequency offset, the signal (depending on its shape and frequency) is fed to one of the XW1-XW3 input connectors, this connector is selected with the SB2 button, and the "+/-FREQUENCV" function (its name is accompanied by the OFF label) is selected with the SB1 button. Measurement start by pressing the SB3 button, while the OFF label is replaced by the ON label.The device measures the frequency drift and displays its current value on the LCD (Fig. 6).After pressing the SB3 button again, which stops the measurement, the maximum values ​​recorded during the measurement appear on the LCD frequency drift up and down from the original (Fig. 7).

Frequency counter up to 1250 MHz
Rice. 6. Measurement results displayed by the program on LCD HG1

Frequency counter up to 1250 MHz
Rice. 7. Measurement results displayed by the program on LCD HG1

To divide the frequency of an analog signal with a frequency of up to 80 MHz, use the SB2 button to select the XW2 input connector and apply a signal to it, the frequency of which is to be divided. From the output of the comparator DA1, it enters the OSCIN input of the frequency divider R_Counter of the DD1 chip. The microcontroller sets the required division ratio of this divider via the serial interface and connects its output to the Fo / LD output of the microcircuit. By pressing the SB1 button, the division ratio is reduced, and by pressing the SB2 button, it is increased. The longer the button is held down, the faster the coefficient changes.

At the output of RC5, the microcontroller sets a high level, switching the XW1 connector to the output mode. At its outputs RC0-RC2, the microcontroller generates code 000, so the signal output to the connector is also fed to the T0SKI input of the microcontroller to measure the frequency. Pulse duration is not measured in this mode.

Frequency counter up to 1250 MHz
Rice. 8. Measurement results displayed by the program on LCD HG1

On fig. Figure 8 shows the result of dividing the 19,706 MHz signal applied to the XW2 connector by 100. In this case, the XW1 output at a frequency of 197,06 kHz is followed by high logic level pulses with a duration of 0,5 μs. Signals with a frequency of 50 to 1200 MHz are fed for division to the XW3 connector. They are processed similarly, the only difference is that the operation involves a higher frequency divider N-Counter chip DD1. On fig. 9 shows the result of dividing the frequency of 200,26 MHz by 2000. The output frequency is 100,13 kHz.

Frequency counter up to 1250 MHz
Rice. 9. Measurement results displayed by the program on LCD HG1

The frequency meter is mounted on a printed circuit board made of fiberglass laminated on both sides with a thickness of 1 mm. Its drawing is shown in Fig. 10, and the placement of elements - in fig. 11. Fixed resistors and most capacitors are size 0805 surface mount. Trimmer resistors R21 and R23 - SH-655MCL, trimmer capacitor C13 - TZC3P300A110R00. Oxide capacitors C4 and C6 are aluminum with wire leads.

Frequency counter up to 1250 MHz
Rice. 10. Printed circuit board of the frequency meter

Frequency counter up to 1250 MHz
Rice. 11. Placement of elements on the board

Connectors XW1-XW3 - 24_BNC-50-2-20/133_N [7]. They are connected to the board by pieces of a coaxial cable with a wave impedance of 50 ohms, about 100 mm long. Buttons SB1-SB3 - TS-A3PG-130. The HG1 indicator is mounted above the board on stands 10 mm high with M3 screws.

The device is assembled in a plastic housing Z-28 [8]. On its front panel, a rectangular hole 70x25 mm in size was cut out for the LCD screen and three holes 3 mm in diameter were drilled for the buttons. The buttons themselves are mounted on a fiberglass board measuring 100x12x1,5 mm, attached to the front panel from the back with M3 screws. The power socket is located on the left side of the case, and its switch is on the right side. The input bayonet connectors are located on the rear wall of the housing.

Setting up a frequency counter is as follows:

- set the trimming resistor R21 to the optimal contrast of the image on the LCD screen;

- set the required brightness of the LCD backlight with the trimming resistor R23;

- set the trimmer capacitor C13 to the clock frequency of the microcontroller exactly equal to 4 MHz. To do this, connect a digital frequency meter (Ch1-3 or any other) to the XW63 connector, turn on the device to be adjusted while pressing the SB3 button (in this case, the inscription "TEST" should appear on the LCD) and, rotating the rotor of the trimmer capacitor C13, achieve the readings of the external frequency meter, maximum close to 100000 Hz. Do not forget that the error in setting this frequency directly affects the error of the device being adjusted.

The PCB drawing in Sprint Layout 5.0 format and the microcontroller program can be downloaded from ftp://ftp.radio.ru/pub/2016/02/f_metr.zip.

Literature

  1. Ultrafast, 4 ns Single-Supply Comparators AD8611/AD8612. - URL: analog. com/media/en/technical-documentation/data-sheets/AD8611_8612.pdf.
  2. PLLatinum™ LowPower Frequency Synthesizer for RF Personal Communications LMX2306 550 MHz, LMX2316 1.2 GHz, LMX2326 2.8 GHz. - URL: ti.com/lit/ds/symlink/lmx2326.pdf.
  3. 74HC74, 74HCT74 Dual D-type flip-flop with set and reset; positive edge trigger. - URL: nxp.com/documents/data_sheet/74HC_HCT74.pdf.
  4. 74HC151, 74HCT151 8-input multiplexer. - URL: nxp.com/documents/data_sheet/74HC_HCT151.pdf.
  5. PIC16F87XA Data Sheet 28/40/44-Pin Enhanced Flash Microcontrollers. - URL: akizukidenshi.com/download/PIC16F87XA.pdf.
  6. WH1602B character 16x2. - URL: winstar.com.tw/download.php?ProID=22.
  7. Coaxial Cable Connector: 24_BNC-50-2-20/133_N. - URL: electroncom. ru/pdf/hs/bnc/24bnc50-2-20_133n.pdf.
  8. Housing Z-28. - URL: files.rct.ru/pdf/kradex/z-28.pdf.

Author: V. Turchaninov

See other articles Section Measuring technology.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

L7987 - asynchronous 61V 3A DC/DC regulator with current limiter 20.06.2015

STMicroelectronics introduces the L7987 and L7987L step-down DC/DC converters with an integrated switch. A feature of these microcircuits is the built-in adjustable output current limiter.

The output voltage range can be from 0,8 to 61 V, the output current is up to 3 A (L7987) and up to 2 A (L7987L), and a wide input voltage range from 4,5 V to 61 V allows using this microcircuit in industrial systems, automotive industry and security systems.

To increase the efficiency of work, a special control (VBIAS) has been introduced, which allows the converter to work efficiently at light loads. Microcircuits also have control inputs: ENABLE - disable the microcircuit and SoftStart (SS) - soft enable.

Additional control of the microcircuit's internal oscillator via the FSW and SYNCH inputs allows you to create systems with minimal noise and output voltage ripple.

Specifications:

Output current: up to 2 A for L7987L, up to 3 A for L7987;
Wide input voltage range: 4,5...61 V;
Built-in switch resistance Rdc(on): 300 mΩ (L7987L) and 250 mΩ (L7987);
Switching frequency adjustment Fsw: 250 kHz...1,5 MHz;
Low own consumption in SHD mode: 11 µA;
Low own consumption in no load: 1 mA;
Adjustable output voltage in the range: 0,8...61 V;
Possibility of external synchronization;
Adjustable SoftStart time;
Output current adjustment (limiting mode);
Efficiency control at low current consumption by the load;
Signaling output PGood;
Output voltage scanning;
Built-in short circuit protection;
Built-in temperature protection.

Other interesting news:

▪ Faux leather against drugs

▪ Graphene airgel is lighter than air

▪ Gaming OLED TV LG OLED 48CX TV

▪ Service for shared rides on self-driving vehicles

▪ Wired video intercom Logitech Circle View Doorbell

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section Voltage converters, rectifiers, inverters. Article selection

▪ article Kovalevskaya Sofia Vasilievna. Famous aphorisms

▪ article How is whiskey made? Detailed answer

▪ article Working on a heat-shrinking machine such as TPTs-370, etc.. Standard instructions for labor protection

▪ Heliostat article. Encyclopedia of radio electronics and electrical engineering

▪ article Detector radio receiver. 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