External pulse signal identification circuit and chip

By using the technology of rising edge and falling edge identification units combined with signal latch circuits and two-level synchronizers in the pulse signal detection circuit, the design complexity and high-frequency sampling clock problems caused by the high-frequency sampling clock in the high-speed pulse signal detection method in the existing technology are solved. The problem of high circuit power consumption is solved, and low-cost, low-power consumption pulse signal recognition is achieved.

CN221886462UActive Publication Date: 2024-10-22TIANJIN MEGA HUNT ELECTRONICS TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202323416090.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2024-10-22
Estimated Expiration
2033-12-14

AI Technical Summary

Technical Problem

Existing high-speed pulse signal detection methods require high-frequency sampling clocks, resulting in increased design complexity and high circuit power consumption. Asynchronous circuit design is difficult to perform timing analysis and is costly.

Method used

The rising edge identification unit and the falling edge identification unit are used, combined with the signal latch circuit and the two-stage synchronizer, to realize the identification of external pulse signals of any width, reducing the probability of metastable phenomena during signal sampling without increasing the main frequency of the system. .

Benefits of technology

It realizes the recognition of external pulse signals of any width, reduces design cost, PCB area and circuit power consumption, and the design is ingenious and reasonable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221886462U_ABST
    Figure CN221886462U_ABST
Patent Text Reader

Abstract

The utility model discloses an external pulse signal identification circuit and a chip. The identification circuit comprises a rising edge identification unit and a falling edge identification unit. The external pulse signal end is connected with the input end of the rising edge recognition unit and the input end of the falling edge recognition unit. When a pulse signal is input into an external pulse signal end, the pulse signal passes through the rising edge identification unit and then generates level jump at the first output end of the identification circuit to generate a rising edge output signal; after the pulse signal passes through the falling edge identification unit, level jump occurs at the second output end of the identification circuit, a falling edge output signal is generated, and the external pulse signal with any width is identified by using a synchronous circuit under the condition that the main frequency of the system is not increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to an external pulse signal recognition circuit and also to a chip comprising the external pulse signal recognition circuit, belonging to the technical field of integrated circuits. Background Art

[0002] High-speed pulse signals are widely used in the field of electronic technology, and the recognition and detection circuits of high-speed pulse signals are also widely used in various industries. For example, in counting and measurement applications, pulse recognition circuits are used to count or measure quantities or physical quantities; in position detection, speed detection, angle detection, etc., pulse recognition circuits are used to measure coordinates, length or speed, rotation speed, and rotation angle.

[0003] In the prior art, the detection method of high-speed pulses requires a high-frequency sampling clock according to the Nyquist sampling theorem. The main frequency of the high-frequency sampling clock needs to be at least twice the frequency of the detected pulse signal in order to accurately identify and detect the detected pulse signal. Increasing the main frequency will not only increase the design complexity, but also make the circuit power consumption larger.

[0004] In the Chinese patent application with application number 201911148563.4, a pulse detection circuit and a pulse detection method are disclosed. The pulse detection circuit includes: an input module, an automatic trigger measurement module and a data latch module. The input end of the input module receives an external input pulse, and transmits the pulse signal to the clock pulse end of the automatic trigger detection module and the input end of the data latch module through the output end of the input module. When the pulse signal changes from the first level to the second level, the automatic trigger detection module is enabled, and the output end of the automatic trigger detection module sends a latch signal to the enable end of the data latch module, so that the data latch module latches the pulse signal according to the latch signal. Since the pulse detection circuit is completely designed with asynchronous circuits, timing analysis is difficult to perform, and a large number of latches are required to detect multiple pulse signals, and the area cost is high. Summary of the invention

[0005] The primary technical problem to be solved by the utility model is to provide a recognition circuit for an external pulse signal.

[0006] Another technical problem to be solved by the utility model is to provide a chip including the identification circuit of the external pulse signal.

[0007] In order to achieve the above purpose, the utility model adopts the following technical solutions:

[0008] According to a first aspect of the embodiment of the utility model, there is provided a circuit for identifying an external pulse signal, comprising a rising edge identification unit and a falling edge identification unit; wherein,

[0009] The external pulse signal terminal is connected to the input terminals of the rising edge recognition unit and the falling edge recognition unit respectively, the output terminal of the rising edge recognition unit is the first output terminal of the recognition circuit, and the output terminal of the falling edge recognition unit is the second output terminal of the recognition circuit;

[0010] When a pulse signal is input at the external pulse signal end, after the pulse signal passes through the rising edge identification unit, a level jump occurs at the first output end of the identification circuit, generating a rising edge output signal; after the pulse signal passes through the falling edge identification unit, a level jump occurs at the second output end of the identification circuit, generating a falling edge output signal, thereby realizing the identification of external pulse signals of any width.

[0011] Preferably, the rising edge recognition unit includes a first register, a second register, a third register, a first selector, a first XNOR gate and a second inverter; wherein,

[0012] The second register and the third register form a first two-stage synchronizer, which is used to extract the rising edge signal of the external pulse stored in the first register into the system clock domain, and at the same time, reduce the probability of metastable phenomenon that may occur when sampling the signal;

[0013] The first register, the first selector, the first XNOR gate and the second inverter form a first signal latch circuit, which is used to latch and control the rising edge signal of the external pulse sampled by the first register.

[0014] Preferably, in the first signal latch circuit, the external pulse signal terminal is connected to the clock terminal of the first register, the input terminal of the first register is connected to the output terminal of the first selector, the output terminal of the first register is respectively connected to the first input terminal of the first selector and the input terminal of the second inverter, the output terminal of the second inverter is respectively connected to the second input terminal of the first selector, the first input terminal of the first XOR gate and the input terminal of the first two-stage synchronizer; the second input terminal of the first XOR gate is connected to the output terminal of the first two-stage synchronizer, and the output terminal of the first XOR gate is connected to the control terminal of the first selector.

[0015] Preferably, in the first two-stage synchronizer, the input end of the second register is connected to the output end of the second inverter in the first signal latch circuit, the output end of the second register is connected to the input end of the third register, the output end of the third register is connected to the first output end of the identification circuit on the one hand, and is connected to the second input end of the first XNOR gate in the first signal latch circuit on the other hand; the clock ends of the second register and the third register are both connected to the system clock end.

[0016] Preferably, the falling edge identification unit includes a first inverter, a second signal latch circuit and a second two-stage synchronizer; wherein the external pulse signal terminal is connected to the clock terminal of the fourth register in the second signal latch circuit through the first inverter; the second signal latch circuit is connected to the second two-stage synchronizer, and the output terminal of the second two-stage synchronizer is connected to the second output terminal of the identification circuit.

[0017] Preferably, in the first signal latch circuit, when the clock end of the first register receives an external pulse signal, the output signal of the first XOR gate changes, controls the connection path of the first selector, and latches the rising edge signal of the external pulse sampled by the first register.

[0018] Preferably, when the rising edge signal of the external pulse sampled by the first register is extracted into the system clock domain by the first two-stage synchronizer, the output signal of the first XOR gate changes, controlling the connection path of the first selector, and the first register is unlocked immediately.

[0019] According to a second aspect of the embodiment of the utility model, an integrated circuit chip is provided, wherein the integrated circuit chip includes the above-mentioned external pulse signal recognition circuit.

[0020] Compared with the prior art, the external pulse signal recognition circuit provided by the utility model, through its rising edge recognition unit and falling edge recognition unit both adopt the technical solution of combining the signal latch circuit and the two-stage synchronizer, realizes the recognition of the external pulse signal of any width by using the synchronization circuit without increasing the main frequency of the system. Therefore, the external pulse signal recognition circuit provided by the utility model has the beneficial effects of ingenious and reasonable structural design, low design cost, small PCB area and low circuit power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 This is a principle wiring diagram of an external pulse signal recognition circuit in an embodiment of the utility model;

[0022] Figure 2 A timing comparison diagram of a rising edge recognition unit in an embodiment of the utility model;

[0023] Figure 3 1 is a timing comparison diagram of a falling edge recognition unit in an embodiment of the present utility model. DETAILED DESCRIPTION

[0024] The technical content of the present utility model is described in detail below with reference to the accompanying drawings and specific embodiments.

[0025] like Figure 1 As shown, an external pulse signal identification circuit provided by an embodiment of the utility model includes a rising edge identification unit and a falling edge identification unit, the external pulse signal end is respectively connected to the input end of the rising edge identification unit and the falling edge identification unit, the output end of the rising edge identification unit is the first output end of the identification circuit, and the output end of the falling edge identification unit is the second output end of the identification circuit.

[0026] The rising edge recognition unit adopts a technical solution combining a signal latch circuit and a two-stage synchronizer to recognize the rising edge of an external pulse signal; the falling edge recognition unit also adopts a technical solution combining a signal latch circuit and a two-stage synchronizer to recognize the falling edge of an external pulse signal. When a pulse signal is input to the external pulse signal end, after the pulse signal passes through the rising edge recognition unit, a level jump occurs at the first output end of the recognition circuit to generate a rising edge output signal; after the pulse signal passes through the falling edge recognition unit, a level jump occurs at the second output end of the recognition circuit to generate a falling edge output signal, thereby realizing the recognition of an external pulse signal of any width.

[0027] In one embodiment of the present invention, Figure 1As shown, the rising edge recognition unit includes a first register Pos, a second register P_Resync0, a third register P_Resync1, a first selector MUX1, a first XNOR gate XNOR1 and a second inverter INV2. Among them, the external pulse signal terminal is connected to the clock terminal of the first register Pos, the input terminal of the first register Pos is connected to the output terminal of the first selector MUX1, the output terminal of the first register Pos is respectively connected to the first input terminal of the first selector MUX1 and the input terminal of the second inverter INV2, the output terminal of the second inverter INV2 is respectively connected to the input terminal of the second register P_Resync0 and the second input terminal of the first selector MUX1, and the first input terminal of the first XNOR gate XNOR1; the output terminal of the second register P_Resync0 is connected to the input terminal of the third register P_Resync1, the output terminal of the third register P_Resync1 is connected to the first output terminal of the identification circuit on the one hand, and to the second input terminal of the first XNOR gate XNOR1 on the other hand, and the output terminal of the first XNOR gate XNOR1 is connected to the control terminal of the first selector MUX1; the clock terminals of the second register P_Resync0 and the third register P_Resync1 are both connected to the system clock terminal.

[0028] Among them, the second register P_Resync0 and the third register P_Resync1 form a first two-stage synchronizer, which is used to extract the rising edge signal of the external pulse signal stored in the first register Pos to the system clock domain, and at the same time, greatly reduce the probability of metastable phenomenon that may occur during signal sampling.

[0029] The first register Pos, the first selector MUX1, the first XNOR gate XNOR1 and the second inverter INV2 form a first signal latch circuit, which is used to latch and control the rising edge signal of the external pulse signal sampled by the first register Pos. When the rising edge signal of the external pulse signal is extracted to the system clock domain by the first two-stage synchronizer, the first signal latch circuit is unlocked immediately.

[0030] like Figure 2 As shown, in the timing comparison diagram of the rising edge recognition unit, the first register Pos, the second register P_Resync0, the third register P_Resync1, the first XNOR gate XNOR1 (POS_EN signal) and the output signal of the first output terminal are shown, and the timing comparison changes with the system clock and the external pulse signal. The working principle and working process of the rising edge recognition unit are described in detail below in conjunction with the timing comparison diagram.

[0031] First, in the initial state of the rising edge identification unit, that is, when there is no external pulse signal input, the output end of the first register Pos is at a low level, and the output end of the second inverter INV2 is at a high level. After passing through the second register P_Resync0 (the output end is at a high level), the output end of the third register P_Resync1 presents a high level, that is, the first output end of the identification circuit is at a high level; therefore, the two output ends of the first XNOR gate XNOR1 are both at a high level, and its output end signal POS_EN is at a high level, so that after the second input end 1 of the first selector MUX1 is connected to its output end, the high level of the output end of the second inverter INV2 is sent to the input end of the first register Pos, waiting for the triggering of the external pulse signal.

[0032] At time t1, when an external pulse signal input appears at the input end of the rising edge identification unit, the clock end of the first register Pos receives the pulse signal, and at the rising edge of the pulse signal, i.e., time t1, the output end of the first register Pos jumps from a low level to a high level, and the output end of the second inverter INV2 changes from a high level to a low level; at this time, after the first input end of the first XNOR gate XNOR1 changes to a low level, its output end signal POS_EN changes from a high level to a low level, so that after the first input end 0 of the first selector MUX1 is connected to its output end, the output end of the first register Pos is connected to its input end, and at this time, the first register Pos is temporarily latched. At the same time, after the output end of the second inverter INV2 jumps from a high level to a low level, the output end of the second register P_Resync0 jumps from a high level to a low level at the rising edge of the next system clock signal, and the output end of the third register P_Resync1 successively jumps from a high level to a low level at the rising edge of the second system clock signal, i.e., at this time, the first output end of the identification circuit changes to a low level. After the second input terminal of the first XNOR gate XNOR1 also changes to a low level, its output terminal signal POS_EN changes from a low level to a high level, so that the second input terminal 1 of the first selector MUX1 is connected to its output terminal, and the low level of the output terminal of the second inverter INV2 is sent to the input terminal of the first register Pos. Wait for the external pulse signal to be triggered again.

[0033] At time t2, when the input end of the rising edge recognition unit appears an external pulse signal input again, the clock end of the first register Pos receives the pulse signal, and at the rising edge of the pulse signal, the output end of the first register Pos jumps from a high level to a low level, and the output end of the second inverter INV2 changes from a low level to a high level; at this time, after the first input end of the first XNOR gate XNOR1 changes to a high level, its output end signal POS_EN changes from a high level to a low level, so that after the first input end 0 of the first selector MUX1 is connected to its output end, the output end of the first register Pos is connected to its input end, and at this time, the first register Pos is temporarily latched again. At the same time, after the output end of the second inverter INV2 changes from a low level to a high level, the output end of the second register P_Resync0 jumps from a low level to a high level at the rising edge of the next system clock signal, and the output end of the third register P_Resync1 also jumps from a low level to a high level at the rising edge of the second system clock signal, that is, the first output end of the recognition circuit is a high level. At this time, after the second input terminal of the first XNOR gate XNOR1 also becomes high level, its output terminal signal POS_EN changes from low level to high level, so that after the second input terminal 1 of the first selector MUX1 is connected with its output terminal, the high level of the output terminal of the second inverter INV2 is sent to the input terminal of the first register Pos. At this time, the circuit state of the rising edge recognition unit returns to the initial state, waiting for the next trigger of the external pulse signal, and changes cyclically according to the above working process. When there is a pulse signal input at the external pulse signal terminal, a level jump occurs at the first output terminal after passing through the rising edge recognition unit, and a rising edge output signal is generated, completing the recognition of the rising edge of the external pulse signal.

[0034] Through the detailed analysis of the above working process, it can be seen that the working principle of the first signal latch circuit is: when the clock end of the first register receives an external pulse signal, the output signal of the first XOR gate changes, controls the connection path of the first selector, and latches the rising edge signal of the external pulse sampled by the first register. When the rising edge signal of the external pulse sampled by the first register is extracted to the system clock domain by the first two-stage synchronizer, the output signal of the first XOR gate changes again, controls the connection path of the first selector, and the first register is immediately unlocked.

[0035] In one embodiment of the utility model, the falling edge identification unit includes a first inverter, a second signal latch circuit and a second two-stage synchronizer; wherein the external pulse signal terminal is connected to the clock terminal of the fourth register in the second signal latch circuit through the first inverter; the second signal latch circuit is connected to the second two-stage synchronizer, and the output terminal of the second two-stage synchronizer is connected to the second output terminal of the identification circuit.

[0036] The specific circuit structure of the falling edge recognition unit is as follows: Figure 1 As shown, it includes a fourth register NEG, a fifth register N_Resync0, a sixth register N_Resync1, a second selector MUX2, a second XNOR gate XNOR2, a first inverter INV1 and a third inverter INV3. Among them, the external pulse signal terminal is connected to the clock terminal of the fourth register NEG through the first inverter INV1, the input terminal of the fourth register NEG is connected to the output terminal of the second selector MUX2, the output terminal of the fourth register NEG is respectively connected to the first input terminal of the second selector MUX2 and the input terminal of the third inverter INV3, the output terminal of the third inverter INV3 is respectively connected to the input terminal of the fifth register N_Resync0 and the second input terminal of the second selector MUX2 and the first input terminal of the second XNOR gate XNOR2; the output terminal of the fifth register N_Resync0 is connected to the input terminal of the sixth register N_Resync1, the output terminal of the sixth register N_Resync1 is connected to the second output terminal of the identification circuit on the one hand, and to the second input terminal of the second XNOR gate XNOR2 on the other hand, and the output terminal of the second XNOR gate XNOR2 is connected to the control terminal of the second selector MUX2; the clock terminals of the fifth register N_Resync0 and the sixth register N_Resync1 are both connected to the system time terminal.

[0037] The circuit structure of the falling edge identification unit is similar to that of the rising edge identification unit. The difference is that a first inverter INV1 is added to the input end of the falling edge identification unit to convert the falling edge signal of the external pulse signal from a low level to a high level before inputting it into the fourth register NEG. Its working principle and working process are the same as those of the rising edge identification unit, so they will not be repeated here.

[0038] In the falling edge recognition unit, the fifth register N_Resync0 and the sixth register N_Resync1 form a second two-stage synchronizer, which is used to extract the falling edge signal of the external pulse signal stored in the fourth register NEG to the system clock domain, and greatly reduce the probability of metastable phenomena that may occur during signal sampling. The fourth register NEG, the second selector MUX2, the second XNOR gate XNOR2, and the third inverter INV3 form a second signal latch circuit, which is used to latch and control the falling edge signal of the external pulse signal sampled by the fourth register NEG. When the falling edge signal of the external pulse signal is extracted to the system clock domain by the second two-stage synchronizer, the second latch circuit is immediately unlocked.

[0039] like Figure 3As shown, in the timing comparison diagram of the falling edge identification unit, the fourth register NEG, the fifth register N_Resync0, the sixth register N_Resync1, the second XNOR gate XNOR2 (NEG_EN signal) and the output signal of the second output terminal are shown, and the timing comparison changes with the system clock and the external pulse signal. Among them, the output signal of the fourth register NEG and the output signal NEG_EN of the second XNOR gate XNOR2 both have a level jump at the falling edge of the external pulse signal; the fifth register N_Resync0 and the sixth register N_Resync1 successively have a level jump at the rising edge of the system clock signal after the falling edge of the external pulse signal. The falling edge identification unit realizes that when there is a pulse signal input at the external pulse signal end, a level jump occurs at the second output terminal after passing through the falling edge identification unit, and a falling edge output signal is generated, thereby completing the identification of the falling edge of the external pulse signal.

[0040] The circuit structure and working principle of an external pulse signal recognition circuit provided by an embodiment of the utility model are described in detail above. Based on the above external pulse signal recognition circuit, the utility model embodiment further provides an integrated circuit chip, which includes the above external pulse signal recognition circuit, and is used to recognize external pulse signals of any width in the application circuit. Moreover, the recognition circuit has a simple synchronous circuit structure and occupies a small PCB area. The specific structure of the external pulse signal recognition circuit in the integrated circuit chip will not be described in detail here.

[0041] In summary, compared with the prior art, the external pulse signal recognition circuit provided by the utility model, through its rising edge recognition unit and falling edge recognition unit, both adopt a signal latch circuit and a two-stage synchronizer combined technical solution, without increasing the main frequency of the system, using the synchronization circuit to achieve the recognition of external pulse signals of any width. Therefore, the external pulse signal recognition circuit provided by the utility model has the beneficial effects of ingenious and reasonable structural design, low design cost, small PCB area and low circuit power consumption.

[0042] It should be noted that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present utility model, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0043] The above is a detailed description of an external pulse signal recognition circuit and chip provided by the utility model. For those skilled in the art, any obvious changes made to it without departing from the essence of the utility model will constitute an infringement of the patent right of the utility model and will bear the corresponding legal liability.

Claims

1. A circuit for identifying an external pulse signal, characterized in that It includes a rising edge recognition unit and a falling edge recognition unit; wherein, The external pulse signal terminal is connected to the input terminals of the rising edge recognition unit and the falling edge recognition unit respectively, the output terminal of the rising edge recognition unit is the first output terminal of the recognition circuit, and the output terminal of the falling edge recognition unit is the second output terminal of the recognition circuit; When a pulse signal is input at the external pulse signal end, after the pulse signal passes through the rising edge identification unit, a level jump occurs at the first output end of the identification circuit, generating a rising edge output signal; after the pulse signal passes through the falling edge identification unit, a level jump occurs at the second output end of the identification circuit, generating a falling edge output signal, thereby realizing the identification of external pulse signals of any width.

2. The external pulse signal recognition circuit according to claim 1, characterized in that: The rising edge recognition unit includes a first register, a second register, a third register, a first selector, a first XNOR gate and a second inverter; wherein, The second register and the third register form a first two-stage synchronizer, which is used to extract the rising edge signal of the external pulse stored in the first register into the system clock domain; The first register, the first selector, the first XNOR gate and the second inverter form a first signal latch circuit, which is used to latch and control the rising edge signal of the external pulse sampled by the first register.

3. The external pulse signal recognition circuit as claimed in claim 2, characterized in that: In the first signal latch circuit, the external pulse signal terminal is connected to the clock terminal of the first register, the input terminal of the first register is connected to the output terminal of the first selector, the output terminal of the first register is respectively connected to the first input terminal of the first selector and the input terminal of the second inverter, the output terminal of the second inverter is respectively connected to the second input terminal of the first selector, the first input terminal of the first XOR gate and the input terminal of the first two-stage synchronizer; the second input terminal of the first XOR gate is connected to the output terminal of the first two-stage synchronizer, and the output terminal of the first XOR gate is connected to the control terminal of the first selector.

4. The external pulse signal recognition circuit according to claim 2, characterized in that: In the first two-stage synchronizer, the input end of the second register is connected to the output end of the second inverter in the first signal latch circuit, the output end of the second register is connected to the input end of the third register, the output end of the third register is connected to the first output end of the identification circuit on the one hand, and is connected to the second input end of the first XNOR gate in the first signal latch circuit on the other hand; the clock ends of the second register and the third register are both connected to the system clock end.

5. The external pulse signal recognition circuit according to claim 1, characterized in that: The falling edge identification unit includes a first inverter, a second signal latch circuit and a second two-stage synchronizer; wherein the external pulse signal terminal is connected to the clock terminal of the fourth register in the second signal latch circuit through the first inverter; the second signal latch circuit is connected to the second two-stage synchronizer, and the output terminal of the second two-stage synchronizer is connected to the second output terminal of the identification circuit.

6. The external pulse signal recognition circuit according to claim 2, characterized in that: In the first signal latch circuit, when the clock end of the first register receives an external pulse signal, the output signal of the first XOR gate changes, controls the connection path of the first selector, and latches the rising edge signal of the external pulse sampled by the first register.

7. The external pulse signal recognition circuit according to claim 2, characterized in that: When the rising edge signal of the external pulse sampled by the first register is extracted into the system clock domain by the first two-stage synchronizer, the output signal of the first XOR gate changes, controlling the connection path of the first selector, and the first register is unlocked immediately.

8. An integrated circuit chip, characterized in that A circuit for identifying an external pulse signal comprising any one of claims 1 to 7.

Citation Information

Cited By

  • FLASH control circuit based on 8051 core

    CN119045749A