A digital de-jittering method for positive and negative pulse glitches with variable width
By selecting the sampling clock and using registers and counters to process signals, the problem of poor adaptability and non-common glitch signal removal in the prior art is solved, and effective debounce of positive and negative pulses of different systems and bias types is achieved, and the system is improved robustness and accuracy of counting signals.
Patent Information
- Application Number
- CN202111557398.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-19
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-12-19
AI Technical Summary
The prior art has poor adaptability when removing glitch signals, and cannot effectively handle positive and negative pulse burrs of different systems and bias types, and filtering single types of glitches is not versatile.
By selecting the sampling clock, filtering out jitter or glitch signals below the custom width, and processing the signal using registers and counters to ensure that the transition edges less than the set time length are not recorded, so as to achieve de-jittering of positive and negative pulses.
It realizes effective debounce of positive and negative pulses of different systems and bias types, improves the robustness of the system and the accuracy of counting signals, with small and fixed delays.
Smart Images

Figure CN114268300B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of digital signal processing, and in particular relates to a method for processing digital signals by digitally de-jittering positive and negative pulse burrs with variable widths. Background Art
[0002] In the human-machine interface applications of aerospace, buttons and position switches are widely used. Many misoperations are caused by inadvertent human touch and mechanical vibration. Misoperation sometimes leads to malfunction of the system, which in turn leads to serious accidents. In other applications such as aircraft engine control, the speed signal is often counted as a feedback signal for intake or refueling operations. The pulse width of this signal is relatively fixed, and signals smaller than this pulse width are generally regarded as glitches or interference pulses. The industry usually needs to pre-process such glitches or interference pulse signals in advance to eliminate adverse effects and improve the robustness and accuracy of the system.
[0003] The current common deburring method has two problems. The first is poor adaptability. The circuit needs to be redesigned for glitches of different durations in different systems. The second is that for circuits with different bias types, the type of burr may be a positive pulse or a negative pulse. The previous circuit can only filter a single type of burr and is not universal. Summary of the invention
[0004] In order to solve the problems existing in the prior art, the present invention proposes a digital de-jittering method for variable width positive and negative pulse glitches, which filters out some jitter or glitch interference signals below a custom width by selecting a sampling clock for the digitally sampled signal. The sampling clock is much larger than the width of the glitch pulse, so that by customizing a sampling clock cycle of a certain time length, the positive and negative jump edges less than the time length are not recorded.
[0005] The technical solution of the present invention is:
[0006] Step 1: Use the clock signal to register two beats of the signal Butn_in that needs to be de-jittered through the register, which are N_d1 and N_d2 respectively;
[0007] Step 2: Perform an XOR operation on N_d1 and N_d2 to obtain a data edge transition identification signal M;
[0008] Step 3: According to the maximum width P of the glitch signal to be filtered and the selected clock frequency Q, a counter C with a corresponding bit width is established, wherein the bit width of the counter C meets the requirement of counting to K, K=PQ;
[0009] Step 4: Count the Butn_in beats of the signal that needs to be de-jittered, and clear the counter C when the identification signal M is high;
[0010] Step 5: When the count value of counter C is equal to K, N_d2 is stored for one beat and then output to obtain the de-jittered signal DB_OUT.
[0011] Beneficial Effects
[0012] The advantages of the present invention are:
[0013] 1. Each jump of the signal that needs to be debounced will be timed. If it is less than the set threshold, it will be considered as a glitch interference and will not be output;
[0014] 2. The threshold of the glitch can be achieved by selecting the clock frequency and setting the bit width of the counter;
[0015] 3. The present invention effectively eliminates both positive and negative pulses;
[0016] 4. The output de-jitter signal delay is small and fixed.
[0017] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0019] Figure 1 : Schematic diagram of de-jitter circuit;
[0020] Figure 2 : Debounce signal timing diagram. DETAILED DESCRIPTION
[0021] The variable width positive and negative pulse burr digital de-jittering method proposed by the present invention comprises the following steps:
[0022] Step 1: Use the clock signal to register two beats of the signal Butn_in that needs to be de-jittered through the register, which are N_d1 and N_d2 respectively;
[0023] Step 2: Perform an XOR operation on N_d1 and N_d2 to obtain a data edge transition identification signal M;
[0024] Step 3: According to the maximum width P of the glitch signal to be filtered out and the selected clock frequency Q, a counter C with a corresponding bit width is established, wherein the bit width of the counter C meets the requirement of counting to K, K=PQ; for example, assuming that pulses with a width below 70ns are all glitch signals, and a 100MHz clock signal is used, then K=70ns / 10ns=7, and the bit width of the corresponding counter is not less than 3bit;
[0025] Step 4: Count the Butn_in beats of the signal that needs to be de-jittered, and clear the counter C when the identification signal M is high;
[0026] Step 5: When the count value of counter C is equal to K, N_d2 is stored for one beat and then output to obtain a de-jittered signal DB_OUT; for example, when counter C counts to 7 (binary "111"), it stops counting.
[0027] In this way, the delay of the de-bounced signal DB_OUT relative to the original signal Butn_in is the sum of the glitch signal width and the 3-beat register delay.
[0028] The following takes the clock frequency of 50MHz and the filtering of positive and negative pulses with a width of less than 180ns as an example, and describes in detail a specific implementation example of the present invention in conjunction with the accompanying drawings:
[0029] The input / output interface signals of this embodiment include: an input signal Butn_in that needs to be de-jittered; an input 50 MHz clock signal clk; a reset signal Rst_n, which is valid at a low level; and an output signal DB_OUT after de-jittering.
[0030] For the input signal Butn_in, a 50MHZ clock clk is used for sampling. After sampling, negative pulses or positive pulses with a time length less than 180ns are filtered out, and the output timing is delayed by 220ns relative to the input. Figure 2 shown.
[0031] The digital signal processing such as key debouncing and pulse counting based on this method not only has low hardware design complexity and short delay, but also realizes the filtering of positive and negative pulses (glitches) that are no longer than a specific time length, thus avoiding erroneous operations caused by interference, improving the robustness of the system, and improving the accuracy of counting for counting applications.
[0032] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention without departing from the principles and intent of the present invention.
Claims
1. A digital de-jittering method for variable width positive and negative pulse glitches, characterized in that: The following steps are involved: Step 1: Use the clock signal to register two beats of the signal Butn_in that needs to be de-jittered, which are N_d1 and N_d2 respectively; Step 2: Perform an XOR operation on N_d1 and N_d2 to obtain a data edge transition identification signal M; Step 3: According to the maximum width P of the glitch signal to be filtered and the selected clock frequency Q, a counter C with a corresponding bit width is established, wherein the bit width of the counter C meets the requirement of counting to K, K=PQ; Step 4: Count the Butn_in beats of the signal that needs to be de-jittered, and clear the counter C when the identification signal M is high; Step 5: When the count value of counter C is equal to K, N_d2 is stored for one beat and then output to obtain the de-jittered signal DB_OUT.
2. According to claim 1, a digital de-jittering method for variable width positive and negative pulse glitches is characterized in that: In step 1, two beats of the signal Butn_in to be debounced are stored through a register pair.
3. According to claim 2, a digital de-jittering method for variable width positive and negative pulse glitches is characterized in that: The delay of the de-bounced signal DB_OUT relative to the original signal Butn_in is the sum of the glitch signal width and the 3-beat register delay.
