High-speed counter realized based on FPGA (Field Programmable Gate Array)
By using the FPGA core processing module to process high-frequency signals in high-speed counters, the problem of limited processing speed of traditional counters is solved, real-time and accurate counting of high-frequency signals is achieved, and the needs of modern industrial automation are met.
Patent Information
- Application Number
- CN202421770748.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2034-07-25
AI Technical Summary
Traditional high-speed counters are limited in processing speed when processing high-frequency and high-complexity signals, and cannot meet the high-frequency counting requirements of modern industrial automation.
High-speed counters based on FPGA are used to realize multiple complex tasks such as encoder decoding, probe detection, frequency measurement, pulse width measurement, etc. through the FPGA core processing module, support decoding counting of various encoding methods, and communicate with the upper computer or other devices through interfaces and communication modules.
Real-time and accurate counting of high-frequency signals is achieved, which meets the high-frequency counting needs of modern industrial automation, and improves the flexibility and scalability of counters.
Smart Images

Figure CN222774755U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of industrial automation, in particular to a high-speed counter based on FPGA. Background Art
[0002] With the rapid development of industrial automation and information technology, the demand for high-speed and high-precision counting is growing. Although traditional high-speed counters meet the application requirements in low-rate and low-precision scenarios to a certain extent, they are powerless when faced with high-frequency and high-complexity signal processing. Therefore, high-speed counters based on FPGA (field programmable gate array) came into being. With its powerful parallel processing capabilities, high-speed processing speed and programmable flexibility, it has become an ideal choice for solving the high-speed counting problems in modern industrial automation and scientific research. Traditional high-speed counters are often difficult to meet the high-frequency counting requirements required by modern industrial automation due to their hardware structure and processing mechanism. For example, counters based on TTL (transistor-transistor logic) integrated circuits often have a maximum operating frequency of less than 100MHz, which cannot meet the real-time processing requirements of high-frequency signals. Utility Model Content
[0003] The purpose of the utility model is to provide a high-speed counter based on FPGA to solve the problem of limited processing speed of the existing high-speed counter mentioned in the above background technology.
[0004] In order to achieve the above purpose, the utility model provides the following technical solutions:
[0005] A high-speed counter based on FPGA, comprising an outer shell of the high-speed counter, a connecting pipe is installed at the bottom of the outer shell, the connecting pipe is connected to the bottom of the outer shell through a hollow tube seat, the outer shell has a built-in FPGA-based control panel, the control panel includes an FPGA core processing module, the FPGA core processing module is externally connected to an encoder decoding module, a probe detection module, a frequency measurement module, a pulse width measurement module and an interface and communication module;
[0006] One end of the outer shell is in an open state, and a detachable top cover is installed at the open end, and a counting display screen is installed on the top cover;
[0007] Both ends of the connecting pipe are open structures, and flanges are installed at the openings.
[0008] Preferably, the top cover is connected to the outer shell by at least three groups of locking bolts that are evenly and equidistantly arranged in a ring shape.
[0009] Preferably, a heat dissipation pipe is installed on the outer wall of the outer shell.
[0010] Preferably, the heat dissipation pipe is communicated with the interior of the outer shell, and both ends of the heat dissipation pipe are open. A heat dissipation fan is installed at one end of the heat dissipation pipe away from the outer shell.
[0011] Preferably, a dustproof net is installed on the surface of one end of the heat dissipation pipe away from the outer shell.
[0012] Preferably, the FPGA core processing module implements logic control and data processing of each functional module through programming; the encoder decoding module supports decoding counts of multiple encoding methods; the probe detection module is used to detect changes in probe signals; the frequency measurement module is used to measure the frequency of the input signal; the pulse width measurement module is used to measure the pulse width of the input signal; the interface and communication module is used to realize communication with a host computer or other devices.
[0013] Preferably, the encoder decoding module comprises a decoder circuit and a synchronization circuit, the decoder circuit is used to decode the signal output by the encoder, and the synchronization circuit is used to ensure the accuracy and stability of decoding.
[0014] Preferably, the probe detection module comprises a probe interface circuit and a signal processing circuit, wherein the probe interface circuit is used to receive a probe signal, and the signal processing circuit is used to amplify, filter and shape the probe signal.
[0015] Preferably, the frequency measurement module uses a high-precision clock source and a counter to achieve frequency measurement.
[0016] Preferably, the interface and communication module supports multiple communication protocols and interface standards.
[0017] Compared with the prior art, the beneficial effects of the utility model are:
[0018] In this high-speed counter based on FPGA, the outer shell is used as the main structure of the entire high-speed counter, which not only provides good physical protection to prevent the internal precision electronic components from being disturbed and damaged by the external environment, but also ensures the stability and durability of the overall equipment. The two ends of the connecting pipe are designed as open structures and equipped with flanges, so that the high-speed counter can be easily connected and fixed with external devices or systems, enhancing the flexibility and scalability of the equipment. FPGA, as the core processing module of the high-speed counter, has high-speed processing capabilities and programmable flexibility. It can quickly process multiple complex tasks such as encoder decoding, probe detection, frequency measurement, pulse width measurement, etc., ensuring the accuracy and real-time nature of counting, realizing the decoding and counting of multiple encoding methods of the encoder, and realizing the functions of probe, comparison, frequency measurement, pulse width measurement, etc.
[0019] In this high-speed counter based on FPGA, the FPGA core processing module realizes the logic control and data processing of each functional module through programming, so that the high-speed counter can flexibly meet the needs of different application scenarios. The function can be expanded or optimized by adjusting the program. The high-speed processing capability of FPGA ensures the real-time and accuracy of the counting process, providing strong support for high-precision counting. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, further detailed explanation is provided, but the accompanying drawings do not constitute a limitation to the present invention.
[0021] Figure 1 It is a schematic diagram of the structure of the utility model;
[0022] Figure 2 This is a system composition block diagram of the utility model.
[0023] The meaning of each number in the figure:
[0024] 10. Outer shell; 11. Top cover; 12. Counting display screen; 13. Locking bolt;
[0025] 20. Connecting pipe; 21. Flange;
[0026] 30. Hollow tube socket;
[0027] 40. Heat dissipation duct; 41. Cooling fan; 42. Dust screen. DETAILED DESCRIPTION
[0028] The following will combine the embodiments of the utility model and the drawings of the specification to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0029] In the description of the present invention, it should be understood that the terms "center", "vertical", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present invention.
[0030] A high-speed counter based on FPGA, such as Figure 1 and Figure 2 As shown, the outer shell 10 includes a high-speed counter, a connecting pipe 20 is installed at the bottom of the outer shell 10, and the connecting pipe 20 is connected to the bottom of the outer shell 10 through a hollow tube seat 30. The outer shell 10 has a built-in FPGA-based control panel, which includes an FPGA core processing module, an encoder decoding module, a probe detection module, a frequency measurement module, a pulse width measurement module, and an interface and communication module. One end of the outer shell 10 is in an open state, and a detachable top cover 11 is installed at the open end, and a counting display screen 12 is installed on the top cover 11. Both ends of the connecting pipe 20 are open structures, and flanges 21 are installed at the openings. By using the outer shell 10 as the main structure of the entire high-speed counter, not only good physical protection is provided to prevent the internal precision electronic components from being disturbed and damaged by the external environment, but also the stability and durability of the overall equipment are ensured. Both ends of the connecting pipe 20 are designed as open structures and equipped with flanges 21, so that the high-speed counter can be easily connected and fixed to external equipment or systems, thereby enhancing the flexibility and scalability of the equipment. As the core processing module of the high-speed counter, FPGA has high-speed processing capability and programmable flexibility. It can quickly handle various complex tasks such as encoder decoding, probe detection, frequency measurement, pulse width measurement, etc., ensuring the accuracy and real-time counting of encoder decoding and counting of various encoding methods, while realizing probe, comparison, frequency measurement, pulse width measurement and other functions.
[0031] Furthermore, the top cover 11 is connected to the outer shell 10 by at least three groups of locking bolts 13 that are evenly and equidistantly arranged in a ring shape, which not only enhances the connection strength between the top cover and the outer shell, ensures the stability and sealing of the top cover, but also facilitates the user to disassemble and maintain.
[0032] Specifically, a heat dissipation pipe 40 is installed on the outer wall of the outer shell 10. The heat dissipation pipe 40 is connected to the inside of the outer shell 10, and both ends of the heat dissipation pipe 40 are in an open state. A heat dissipation fan 41 is installed on the end of the heat dissipation pipe 40 away from the outer shell 10. A dustproof net 42 is installed on the surface of the end of the heat dissipation pipe 40 away from the outer shell 10, and the internal heat is discharged through the heat dissipation pipe. The heat dissipation pipe has openings at both ends, and a heat dissipation fan 41 is installed on the end away from the outer shell. The forced convection of the fan is used to accelerate the heat dissipation and improve the heat dissipation efficiency. At the same time, a dustproof net 42 is installed on the surface of the end of the heat dissipation pipe away from the outer shell, which effectively prevents dust and other impurities from entering the heat dissipation pipe and keeps the heat dissipation system clean and unobstructed.
[0033] Among them, the FPGA core processing module realizes the logic control and data processing of each functional module through programming; the encoder decoding module supports decoding counting of multiple encoding methods; the probe detection module is used to detect the change of the probe signal; the frequency measurement module is used to measure the frequency of the input signal; the pulse width measurement module is used to measure the pulse width of the input signal; the interface and communication module is used to realize communication with the host computer or other devices. The FPGA core processing module realizes the logic control and data processing of each functional module through programming, so that the high-speed counter can flexibly respond to the needs of different application scenarios, and the function can be expanded or optimized by adjusting the program. The high-speed processing capability of FPGA ensures the real-time and accuracy of the counting process, providing strong support for high-precision counting.
[0034] It is worth noting that the encoder decoding module includes a decoder circuit and a synchronization circuit. The decoder circuit is used to decode the signal output by the encoder, and the synchronization circuit is used to ensure the accuracy and stability of the decoding. The coordinated use of the decoder circuit and the synchronization circuit ensures the accuracy and stability of the decoding process and reduces the counting errors caused by decoding errors.
[0035] In addition, the probe detection module includes a probe interface circuit and a signal processing circuit. The probe interface circuit is used to receive the probe signal. The signal processing circuit is used to amplify, filter and shape the probe signal. The frequency measurement module uses a high-precision clock source and a counter to achieve frequency measurement. The interface and communication module supports a variety of communication protocols and interface standards. The probe detection module can sensitively detect changes in the probe signal. The signal processing circuit amplifies, filters and shapes the probe signal, improves the signal-to-noise ratio and anti-interference ability of the signal, and ensures the accuracy of the detection result.
[0036] The working principle of the high-speed counter based on FPGA is as follows: First, place the outer shell 10 of the high-speed counter in a predetermined position to ensure stability without shaking. Connect the high-speed counter to the external device or system through the flanges 21 at both ends of the connecting pipe 20. The design of the flange 21 is convenient for fastening and disassembly, ensuring the stability and flexibility of the connection. Check whether all connections are tight to prevent signal interference or leakage.
[0037] Open the detachable top cover 11 to ensure that the FPGA core processing module and its external modules (encoder decoding module, probe detection module, frequency measurement module, pulse width measurement module, interface and communication module) are in normal working condition.
[0038] Start the FPGA core processing module through the control panel or remote control system and perform initialization settings, including configuring the encoder decoding method, setting the probe detection sensitivity, and defining the parameters for frequency and pulse width measurement.
[0039] The FPGA transmits information such as the decoding counting result, the probe detection status, the frequency and pulse width measurement value to the counting display screen 12 through the interface and the communication module for real-time display.
[0040] At the same time, FPGA also supports data communication with external devices, sending data or receiving control instructions through interfaces and communication modules.
[0041] The above shows and describes the basic principle, main features and advantages of the utility model. Those skilled in the art should understand that the utility model is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the utility model and are not used to limit the utility model. Without departing from the spirit and scope of the utility model, the utility model may have various changes and improvements, which fall within the scope of the utility model to be protected. The scope of protection of the utility model is defined by the attached claims and their equivalents.
Claims
1. A high-speed counter implemented based on FPGA, comprising an outer housing (10) of the high-speed counter, characterized in that: A connecting pipe (20) is installed at the bottom of the outer shell (10), and the connecting pipe (20) is connected to the bottom of the outer shell (10) via a hollow pipe seat (30). The outer shell (10) has a built-in FPGA-based control panel, and the control panel comprises an FPGA core processing module. The FPGA core processing module is externally connected to an encoder decoding module, a probe detection module, a frequency measurement module, a pulse width measurement module, and an interface and communication module. One end of the outer shell (10) is in an open state, and a detachable top cover (11) is installed at the open end, and a counting display screen (12) is installed on the top cover (11); Both ends of the connecting pipe (20) are open structures, and flanges (21) are installed at the openings.
2. The high-speed counter based on FPGA according to claim 1, characterized in that: The top cover (11) is connected to the outer shell (10) via at least three groups of locking bolts (13) that are evenly and equidistantly arranged in a ring shape.
3. The high-speed counter based on FPGA according to claim 1, characterized in that: A heat dissipation pipe (40) is installed on the outer wall of the outer shell (10).
4. The high-speed counter based on FPGA according to claim 3, characterized in that: The heat dissipation pipe (40) is connected to the interior of the outer shell (10), and both ends of the heat dissipation pipe (40) are in an open state. A heat dissipation fan (41) is installed at one end of the heat dissipation pipe (40) away from the outer shell (10).
5. The high-speed counter based on FPGA according to claim 4, characterized in that: A dustproof net (42) is installed on the surface of one end of the heat dissipation pipe (40) away from the outer shell (10).
6. The high-speed counter based on FPGA according to claim 1, characterized in that: The FPGA core processing module realizes the logic control and data processing of each functional module through programming; the encoder decoding module supports the decoding count of multiple encoding methods; the probe detection module is used to detect the change of the probe signal; the frequency measurement module is used to measure the frequency of the input signal; the pulse width measurement module is used to measure the pulse width of the input signal; the interface and communication module is used to realize communication with the host computer or other devices.
7. The high-speed counter based on FPGA according to claim 1, characterized in that: The encoder decoding module includes a decoder circuit and a synchronization circuit. The decoder circuit is used to decode the signal output by the encoder, and the synchronization circuit is used to ensure the accuracy and stability of decoding.
8. The high-speed counter based on FPGA according to claim 1, characterized in that: The probe detection module includes a probe interface circuit and a signal processing circuit. The probe interface circuit is used to receive a probe signal, and the signal processing circuit is used to amplify, filter and shape the probe signal.
9. The high-speed counter based on FPGA according to claim 1, characterized in that: The frequency measurement module uses a high-precision clock source and a counter to achieve frequency measurement.
10. The high-speed counter based on FPGA according to claim 1, characterized in that: The interface and communication module supports multiple communication protocols and interface standards.