Signal filtering methods, systems, electronic devices and storage media
By generating a delayed signal and performing logical operations, the problem of poor filtering effect of the first and second logic levels in digital input signals in the prior art is solved, and a high-efficiency and low-cost signal filtering effect is achieved.
Patent Information
- Application Number
- CN202611275479.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-10
AI Technical Summary
Existing signal filtering techniques struggle to effectively filter both the first and second logic levels in digital input signals simultaneously, resulting in high hardware costs, large space requirements, and severe signal loss.
By receiving digital input signals, a digital delay signal with a delay filter width is generated, and logical AND and logical OR operations are performed to obtain the first operation result and the second operation result respectively. The filtered output signal is then output to filter out pulses smaller than the filter width.
It achieves effective filtering of the first and second logic levels in digital input signals, reducing hardware costs, shrinking module size, and improving signal processing accuracy and response speed.
Smart Images

Figure CN123074445A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of signal processing technology, and in particular to a signal filtering method, system, electronic device, and storage medium. Background Technology
[0002] In the field of electronic signal processing, filtering is one of the core fundamental technologies. The core function of signal filtering is to select target frequency signals and suppress interference signals, ensuring the stability and accuracy of signal transmission. As electronic devices develop towards higher precision, higher integration, and higher response speed, the requirements for signal filtering technology are constantly increasing. Signal filtering technology not only needs to meet basic interference suppression requirements, but also needs to take into account the synchronous processing capability of high and low level signals, real-time performance, low loss, and miniaturized integration requirements.
[0003] However, existing signal filtering techniques struggle to effectively filter both the first logic level signal and the second logic level signal in a digital input signal, where the first logic level is higher than the second logic level. Summary of the Invention
[0004] This invention provides a signal filtering method, system, electronic device, and storage medium that simultaneously achieves effective filtering of signals at the first logic level and signals at the second logic level in digital input signals.
[0005] According to a first aspect of the present invention, a signal filtering method is provided, comprising: Receive digital input signals, wherein the digital input signals include signals at a first logic level and signals at a second logic level, the first logic level being greater than the second logic level; A digital delay signal is generated based on the digital input signal, wherein the digital delay signal is a signal with a delay filter width of the digital input signal; Based on the logical AND and logical OR NOT operations of the digital input signal and the digital delay signal, the first operation result and the second operation result are obtained respectively; Based on the first calculation result and the second calculation result, a filtered output signal is output, wherein the filtered output signal is the digital input signal that filters out pulses smaller than the filter width.
[0006] Optionally, the first operation result is configured such that: when both the digital input signal and the digital delay signal are at a first logic level, the first operation result is at a first logic level; otherwise, the first operation result is at a second logic level. The second operation result is configured such that: when both the digital input signal and the digital delay signal are at a second logic level, the second operation result is at the first logic level; otherwise, the second operation result is at the second logic level.
[0007] Optionally, based on the first calculation result and the second calculation result, a filtered output signal is output, including: When the result of the second operation is the first logic level, the filtered output signal is the second logic level; When the second operation result is a second logic level and the first operation result is a first logic level, the filtered output signal is the first logic level; When the second operation result is at the second logic level and the first operation result is at the second logic level, the filtered output signal maintains the level state of the filtered output signal at the previous moment.
[0008] Optionally, based on the first calculation result and the second calculation result, a filtered output signal is output, including: The first calculation result is connected to the data input terminal of the asynchronous output conditioning module, and the second calculation result is connected to the clear terminal of the asynchronous output conditioning module. When the second calculation result is the first logic level, the clear mode of the asynchronous output conditioning module is triggered. In the clearing mode, filtering of the first calculation result is initiated.
[0009] Optionally, the logical AND operation and the logical OR NOT operation can be performed in parallel through the same signal link to synchronously obtain the first operation result and the second operation result.
[0010] Optionally, the filter width corresponding to digital input signals with different frequency characteristics can be obtained by configuring parameters in the software.
[0011] Optionally, generating a digital delay signal based on the digital input signal includes: applying a delay amount equal to the filter width to the digital input signal using a built-in delay module to generate the digital delay signal.
[0012] According to a second aspect of the present invention, a signal filtering system is provided for implementing the signal filtering method as described above, comprising: A signal receiving module is used to receive digital input signals, wherein the digital input signals include signals at a first logic level and signals at a second logic level, and the first logic level is greater than the second logic level; A signal delay module is used to generate a digital delay signal based on the digital input signal, wherein the digital delay signal is a signal with a delay filter width of the digital input signal; The signal processing module is used to obtain a first processing result and a second processing result based on the logical AND and logical OR NOT operations of the digital input signal and the digital delay signal, respectively. A signal filtering module is used to output a filtered output signal based on the first calculation result and the second calculation result, wherein the filtered output signal is the digital input signal after filtering out pulses smaller than the filtering width.
[0013] According to a third aspect of the present invention, an electronic device is provided, including a processor and a memory. The memory is used to store code; The processor is used to execute the code in the memory to implement the signal filtering method as described above.
[0014] According to a fourth aspect of the present invention, a storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the signal filtering method as described above.
[0015] Compared with the prior art, the technical solution of the embodiments of the present invention has the following beneficial effects: This invention provides a signal filtering method, system, electronic device, and storage medium. The method involves delaying the input digital signal by a filter width to obtain a delayed digital signal. Based on logical AND and OR operations between the delayed digital signal and the input digital signal, a first operation result and a second operation result are obtained. Based on these results, a filtered output signal is output. This filtered output signal is a digital input signal from which pulses shorter than the filter width have been filtered out, effectively removing short-duration pulses with a duration less than the filter width. Therefore, this invention can effectively filter both signals at the first and second logic levels in the digital input signal. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic flowchart of a signal filtering method according to an embodiment of the present invention; Figure 2 This is a timing diagram of the relevant signals of a signal filtering method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a signal filtering system according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0018] As described in the background section, the present invention aims to solve the technical problem of effectively filtering signals at both the first logic level and the second logic level in a digital input signal.
[0019] To address this technical problem, a signal filtering method has been proposed by those skilled in the art, comprising: splitting a digital input signal to obtain independent first logic level signals and second logic level signals, wherein the first logic level is greater than the second logic level, and the first logic level signals and the second logic level signals are located in different branches; filtering the first logic level signals and the second logic level signals using a first logic level filtering circuit and a second logic level filtering circuit respectively, to obtain filtered first logic level signals and filtered second logic level signals, wherein the first logic level filtering circuit sets a first filtering parameter separately for the amplitude range and interference frequency characteristics of the first logic level signal in the first logic level signal branch, and the second logic level filtering circuit sets a second filtering parameter separately for the corresponding characteristics of the second logic level signal; and merging the filtered first logic level signals and the second logic level signals to obtain the filtered digital input signal.
[0020] Existing signal filtering methods can suppress interference between signals of different logic levels by filtering the first logic level signal and the second logic level signal separately. However, these methods require branching circuits, separate filtering branches for the first and second logic level signals, and merging devices to combine the filtered signals. This results in a large number of components, high hardware costs, significant circuit board space requirements, and resource-intensive software implementation. Furthermore, the parameters of the two filtering branches need to be individually adjusted, which can lead to asynchronous filtering and timing misalignment of the high and low level signals during actual filtering. Additionally, the branching process of the digital input signal in existing methods incurs signal loss. Combining the filtered high and low level signals introduces additional voltage drops or losses, distorting the ratio of the first and second logic level amplitudes of the filtered digital input signal and affecting the accuracy of subsequent signal processing.
[0021] In view of this, the technical solution of the present invention proposes a signal filtering method, which involves receiving a digital input signal, wherein the digital input signal includes a signal at a first logic level and a signal at a second logic level, the first logic level being greater than the second logic level; generating a digital delay signal based on the digital input signal, the digital delay signal being a signal with a delay filter width of the digital input signal; obtaining a first operation result and a second operation result based on logical AND and logical OR NOT operations of the digital input signal and the digital delay signal, respectively; and outputting a filtered output signal based on the first operation result and the second operation result, wherein the filtered output signal is the digital input signal with pulses smaller than the filter width filtered out. Thus, the present invention can effectively filter both the first logic level signal and the second logic level signal in the digital input signal.
[0022] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0023] The technical solution of the present invention will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0024] Please refer to Figure 1 The present invention provides a signal filtering method, which may include: S100: Receive a digital input signal, wherein the digital input signal includes a signal at a first logic level and a signal at a second logic level, the first logic level being greater than the second logic level; S200: Generates a digital delay signal based on the digital input signal. The digital delay signal is the signal with the delay and filtering width of the digital input signal. S300: Based on the logical AND and logical OR NOT operations of the digital input signal and the digital delay signal, the first operation result and the second operation result are obtained respectively; S400: Based on the first and second calculation results, output a filtered output signal, wherein the filtered output signal is a digital input signal that filters out pulses smaller than the filter width.
[0025] In this embodiment, the output filtered signal retains the valid signal whose duration is greater than or equal to the filter width, and filters out the interference signal whose duration is less than the filter width.
[0026] As can be seen, this invention constructs a narrow pulse suppression mechanism with double-edge symmetry through delay matching and logical operations. Based on this, the first and second operation results are used together as the filtering decision criteria to filter out pulses in the digital input signal whose width is smaller than the filtering width. Therefore, this invention can effectively filter both the first and second logic level signals in the digital input signal.
[0027] Furthermore, this invention eliminates the need for splitter modules, combiner modules, and dual-channel filtering devices. It achieves filtering of both first and second logic level signals solely through a single input combined with a filtering structure. Compared to traditional solutions that require separate filtering channels for the first and second logic level signals, this invention significantly reduces the number of components, lowers hardware costs, and effectively shrinks the module size, making it well-suited for the space layout requirements of miniaturized, highly integrated devices.
[0028] In an optional embodiment, step S200, generating a digital delay signal based on the digital input signal, may include: applying a delay amount equal to the filter width to the digital input signal through a built-in delay module to generate the digital delay signal.
[0029] In one embodiment, in step S300, the first operation result is configured as follows: when both the digital input signal and the digital delay signal are at the first logic level, the first operation result is at the first logic level; otherwise, the first operation result is at the second logic level. The second operation result is configured as follows: when both the digital input signal and the digital delay signal are at the second logic level, the second operation result is at the first logic level; otherwise, the second operation result is at the second logic level.
[0030] In one alternative embodiment, logical AND and logical OR NOT operations are performed in parallel through the same signal link, so that the first operation result and the second operation result are obtained synchronously.
[0031] In one embodiment, the logical AND operation and the logical OR NOT operation are executed in parallel through the same link, so that the results of the two operations are obtained in strict synchronization, eliminating the risk of timing mismatch, avoiding logical misjudgment at critical transition moments, and improving the reliability of filtering.
[0032] In one specific embodiment, step S400, based on the first calculation result and the second calculation result, outputting the filtered output signal, may include: S411: When the result of the second operation is the first logic level, the filtered output signal is the second logic level signal; S412: When the result of the second operation is at the second logic level and the result of the first operation is at the first logic level, the filtered output signal is a signal at the first logic level; S413: When the result of the second operation is the second logic level and the result of the first operation is the second logic level, the filtered output signal maintains the level state of the filtered output signal at the previous moment.
[0033] In one specific embodiment, step S400, based on the first calculation result and the second calculation result, outputting the filtered output signal, may include: S421: Connect the first calculation result to the data input terminal of the asynchronous output conditioning module, and connect the second calculation result to the clear terminal of the asynchronous output conditioning module. When the second calculation result is the first logic level, the clear mode of the asynchronous output conditioning module is triggered. S422: In clear mode, initiate filtering of the first operation result.
[0034] In this embodiment, the clearing mode is activated using the second calculation result to control the enabling and locking of the data path: when the bit is valid, the first calculation result is transmitted in real time; when the bit is invalid, the output from the previous moment is locked. Decision and data control are separated to avoid functional coupling, achieving stable filtered output in a purely asynchronous manner, simplifying the output stage logic, and improving integration.
[0035] In this embodiment, by connecting the first calculation result to the data input terminal of the asynchronous output conditioning module and the second calculation result to the clear terminal of the asynchronous output conditioning module, the clearing mode is triggered by the second calculation result, thereby realizing dual-edge decision filtering based on the asynchronous output conditioning module. When the second calculation result is a first logic level (i.e., the input signal has been stably at a low level and has continuously exceeded the filter width), the clear terminal is valid, the asynchronous output conditioning module starts the clearing mode, clears the filtered output signal to zero, and realizes the confirmation output of the low-level valid pulse; when the second calculation result is a second logic level, the clear terminal is invalid, the asynchronous output conditioning module outputs the first calculation result as the filtered output signal. If the first calculation result is a first logic level at this time (i.e., the input signal has been stably at a high level and has continuously exceeded the filter width), a high level is output, realizing the confirmation output of the high-level valid pulse; if the first calculation result is a second logic level at this time, the output maintains the state of the previous moment, shielding noise pulses with a duration less than the filter width. Therefore, by using the clear mode single-channel structure of the asynchronous output conditioning module, filtering of both high-level and low-level pulses can be completed simultaneously without the need for splitting or combining. This completely avoids the timing misalignment, amplitude distortion, and signal loss introduced by splitting / combining in dual-channel filtering schemes. At the same time, the asynchronous characteristic of the asynchronous output conditioning module means that the entire filtering process does not require external clock synchronization, and the response speed reaches the nanosecond level. Furthermore, the single-channel structure significantly reduces the number of components, thereby reducing hardware costs and circuit board area.
[0036] In one alternative implementation, the filter width is adjusted by configuring parameters in software for digital input signals with different frequency characteristics.
[0037] In this embodiment, the filter width is flexibly adjusted through software configuration parameters, allowing the same hardware platform to adapt to digital input signals with different frequency characteristics: a short width is used for high-frequency signals to ensure response speed, while a long width is used for low-frequency or strongly interfering signals to improve anti-interference capability. No hardware modifications are required, reducing adaptation costs, and online dynamic optimization is supported, enhancing the versatility and flexibility of the solution.
[0038] Please refer to Figure 2 , Figure 2 This is a timing diagram of the relevant signals in a signal filtering method according to an embodiment of the present invention.
[0039] exist Figure 2 In this diagram, Vin represents the digital input signal; Vin0 represents the digital delay signal; S1 represents the first operation result; S2 represents the second operation result; and Vout represents the filtered output signal.
[0040] exist Figure 2In the time interval t0~t1, both the digital input signal Vin and the digital delay signal Vin0 are at the second logic level. Therefore, the first operation result S1 is at the second logic level, the second operation result S2 is at the first logic level, and thus the filtered output signal Vout is at the second logic level.
[0041] During the time interval t1~t2, the digital input signal Vin is at the first logic level and the digital delay signal Vin0 is at the second logic level. Therefore, the first operation result S1 and the second operation result S2 are both at the second logic level. As a result, the filtered output signal Vout maintains the level state of the filtered output signal Vout at the previous moment, that is, the filtered output signal Vout is at the second logic level.
[0042] During the time interval t2~t3, both the digital input signal Vin and the digital delay signal Vin0 are at the first logic level. Therefore, the first operation result S1 is at the first logic level, the second operation result S2 is at the second logic level, and thus the filtered output signal Vout is at the first logic level.
[0043] During the time interval t3~t4, the digital input signal Vin is at the second logic level, and the digital delay signal Vin0 is at the first logic level. Therefore, the first operation result S1 is at the second logic level, and the second operation result S2 is at the second logic level. As a result, the filtered output signal Vout maintains the level state of the filtered output signal at the previous moment, that is, the filtered output signal Vout is at the first logic level.
[0044] During the time interval t4~t5, the digital input signal Vin is at the second logic level, and the digital delay signal Vin0 is at the second logic level. Therefore, the first operation result S1 is at the second logic level, and the second operation result S2 is at the first logic level. Consequently, the filtered output signal Vout is at the second logic level.
[0045] During the time interval t5~t6, the digital input signal Vin is at the first logic level and the digital delay signal Vin0 is at the second logic level. Therefore, the first operation result S1 is at the second logic level and the second operation result S2 is at the second logic level. As a result, the filtered output signal Vout maintains the level state of the filtered output signal Vout at the previous moment, that is, the filtered output signal Vout is at the second logic level.
[0046] During the time interval t6~t7, the digital input signal Vin is at the second logic level, and the digital delay signal Vin0 is at the second logic level. Therefore, the first operation result S1 is at the second logic level, and the second operation result S2 is at the first logic level. Consequently, the filtered output signal Vout is at the second logic level.
[0047] During the time interval t7~t8, the digital input signal Vin is at the second logic level, and the digital delay signal Vin0 is at the first logic level. Therefore, the first operation result S1 is at the second logic level, and the second operation result S2 is at the second logic level. As a result, the filtered output signal Vout maintains the level state of the filtered output signal Vout at the previous moment, that is, the filtered output signal Vout is at the second logic level.
[0048] During the time interval t8~t9, the digital input signal Vin is at the second logic level, and the digital delay signal Vin0 is at the second logic level. Therefore, the first operation result S1 is at the second logic level, and the second operation result S2 is at the first logic level. Consequently, the filtered output signal Vout is at the second logic level.
[0049] During the time interval t9~t10, the digital input signal Vin is at the first logic level and the digital delay signal Vin0 is at the second logic level. Therefore, the first operation result S1 is at the second logic level and the second operation result S2 is at the second logic level. As a result, the filtered output signal Vout maintains the level state of the filtered output signal Vout at the previous moment, that is, the filtered output signal Vout is at the second logic level.
[0050] During the time interval t10~t11, the digital input signal Vin is at the first logic level, the digital delay signal Vin0 is at the first logic level, therefore, the first operation result S1 is at the first logic level, the second operation result S2 is at the second logic level, and thus, the filtered output signal Vout is at the first logic level.
[0051] During the time interval t11~t12, the digital input signal Vin is at the second logic level and the digital delay signal Vin0 is at the first logic level. Therefore, the first operation result S1 is at the second logic level and the second operation result S2 is at the second logic level. As a result, the filtered output signal Vout maintains the level state of the filtered output signal Vout at the previous moment, that is, the filtered output signal Vout is at the first logic level.
[0052] During the time interval t12~t13, the digital input signal Vin is at the first logic level, the digital delay signal Vin0 is at the first logic level, therefore, the first operation result S1 is at the first logic level, the second operation result S2 is at the second logic level, and thus, the filtered output signal Vout is at the first logic level.
[0053] During the time interval t13~t14, the digital input signal Vin is at the first logic level and the digital delay signal Vin0 is at the second logic level. Therefore, the first operation result S1 is at the second logic level and the second operation result S2 is at the second logic level. As a result, the filtered output signal Vout maintains the level state of the filtered output signal Vout at the previous moment, that is, the filtered output signal Vout is at the first logic level.
[0054] During the time interval t14~t15, the digital input signal Vin is at the first logic level, the digital delay signal Vin0 is at the first logic level, therefore, the first operation result S1 is at the first logic level, the second operation result S2 is at the second logic level, and thus, the filtered output signal Vout is at the first logic level.
[0055] During the time interval t15~t16, the digital input signal Vin is at the second logic level and the digital delay signal Vin0 is at the first logic level. Therefore, the first operation result S1 is at the second logic level and the second operation result S2 is at the second logic level. As a result, the filtered output signal Vout maintains the level state of the filtered output signal Vout at the previous moment, that is, the filtered output signal Vout is at the first logic level.
[0056] During the time interval t16~t17, the digital input signal Vin is at the second logic level, and the digital delay signal Vin0 is at the second logic level. Therefore, the first operation result S1 is at the second logic level, and the second operation result S2 is at the first logic level. Consequently, the filtered output signal Vout is at the second logic level.
[0057] exist Figure 2 In this context, the time interval t1~t2 represents the filter width, and the time widths of the time intervals t1~t2, t3~t4, t5~t7, t6~t8, t9~t10, t11~t13, t12~t14, and t15~t16 are all equal. Figure 2In the t1~t3 time period, the digital input signal Vin is greater than the filter width. After filtering, the digital input signal Vin is delayed by the filter width. The filtered output signal Vout output in the t2~t4 time period has the same waveform as the digital input signal Vin in the t1~t3 time period. It can be seen that this embodiment can effectively retain pulses with a width greater than the filter width. In the t5~t6 time period, the pulse width of the digital input signal Vin at the first logic level is less than the filter width. Therefore, the pulse of the digital input signal Vin at the first logic level in the t5~t6 time period is filtered. The filtered output signal Vout output in the t4~t10 time period is the digital input signal Vin in the t3~t9 time period after filtering out the invalid pulses (with a width less than the filter width) from the t5~t6 time period. It can be seen that this embodiment can effectively filter the signal at the first logic level. During the time period t11~t12, the pulse width of the digital input signal Vin at the second logic level is less than the filter width. Therefore, the pulse width of the digital input signal Vin at the second logic level during the time period t11~t12 is filtered. The filtered output signal Vout output during the time period t10~t16 is the digital input signal Vin during the time period t9~t15, which has had the invalid pulses (width less than the filter width) of the time period t11~t2 filtered out. It can be seen that this embodiment can effectively filter the signal at the second logic level. Thus, this embodiment takes into account the effective filtering of the signals at the first logic level and the signals at the second logic level in the digital input signal Vin, and the widths of the effective pulses at the first logic level and the effective pulses at the second logic level are completely preserved, with only an overall delay.
[0058] Accordingly, please refer to Figure 3 Embodiments of the present invention provide a signal filtering system for implementing the signal filtering method described above, which may include: The signal receiving module 100 is used to receive digital input signals, wherein the digital input signals include signals at a first logic level and signals at a second logic level, and the first logic level is greater than the second logic level.
[0059] The signal delay module 200 is used to generate a digital delay signal based on the digital input signal. The digital delay signal is a signal with a delay filter width of the digital input signal.
[0060] The signal processing module 300 is used to perform logical AND and logical OR operations based on digital input signals and digital delay signals to obtain a first operation result and a second operation result, respectively.
[0061] The signal filtering module 400 is used to output a filtered output signal based on the first calculation result and the second calculation result. The filtered output signal is a digital input signal that filters out pulses smaller than the filtering width.
[0062] In summary, this invention obtains a delayed digital signal by delaying and filtering the input digital signal by a specified width. Based on logical AND and OR operations between the delayed digital signal and the input digital signal, a first operation result and a second operation result are obtained, respectively. Based on the first and second operation results, a filtered output signal is output. This filtered output signal is a digital input signal from which pulses shorter than the filter width have been filtered out, effectively removing short-duration pulses with a duration less than the filter width. Therefore, this invention can effectively filter both signals at the first and second logic levels in the digital input signal.
[0063] In addition, please refer to Figure 4 An embodiment of the present invention provides an electronic device 500, including a processor 510 and a memory 520. Memory 510 is used to store code 520; Processor 510 is used to execute code in memory 520 to implement the signal filtering method described above.
[0064] In this embodiment, the processor 510 can communicate with the memory 520 via the bus 530.
[0065] The present invention also provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the signal filtering method as described above.
[0066] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned computer-readable storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0067] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the invention; therefore, the scope of protection of the present invention should be determined by the scope defined in the claims.
Claims
1. A signal filtering method, characterized in that, include: Receive digital input signals, wherein the digital input signals include signals at a first logic level and signals at a second logic level, the first logic level being greater than the second logic level; A digital delay signal is generated based on the digital input signal, wherein the digital delay signal is a signal with a delay filter width of the digital input signal; Based on the logical AND and logical OR NOT operations of the digital input signal and the digital delay signal, the first operation result and the second operation result are obtained respectively; Based on the first calculation result and the second calculation result, a filtered output signal is output, wherein the filtered output signal is the digital input signal that filters out pulses smaller than the filter width.
2. The signal filtering method as described in claim 1, characterized in that, The first operation result is configured such that: when both the digital input signal and the digital delay signal are at a first logic level, the first operation result is at a first logic level; otherwise, the first operation result is at a second logic level. The second operation result is configured such that: when both the digital input signal and the digital delay signal are at a second logic level, the second operation result is at a first logic level; otherwise, the second operation result is at a second logic level.
3. The signal filtering method as described in claim 2, characterized in that, Based on the first calculation result and the second calculation result, a filtered output signal is output, including: When the result of the second operation is at the first logic level, the filtered output signal is at the second logic level. When the second operation result is a second logic level and the first operation result is a first logic level, the filtered output signal is a signal of the first logic level; When the second operation result is at the second logic level and the first operation result is at the second logic level, the filtered output signal maintains the level state of the filtered output signal at the previous moment.
4. The signal filtering method as described in claim 1, characterized in that, Based on the first calculation result and the second calculation result, a filtered output signal is output, including: The first calculation result is connected to the data input terminal of the asynchronous output conditioning module, and the second calculation result is connected to the clear terminal of the asynchronous output conditioning module. When the second calculation result is the first logic level, the clear mode of the asynchronous output conditioning module is triggered. In the clearing mode, filtering of the first calculation result is initiated.
5. The signal filtering method as described in claim 1, characterized in that, The logical AND operation and the logical OR NOT operation are executed in parallel through the same signal link to synchronously obtain the first operation result and the second operation result.
6. The signal filtering method as described in claim 1, characterized in that, The filter width corresponding to digital input signals with different frequency characteristics is obtained by configuring parameters in the software.
7. The signal filtering method as described in claim 1, characterized in that, Generating a digital delay signal based on the digital input signal includes: applying the delay amount of the filter width to the digital input signal through a built-in delay module to generate the digital delay signal.
8. A signal filtering system, characterized in that, A signal filtering method for implementing any one of claims 1 to 7 includes: A signal receiving module is used to receive digital input signals, wherein the digital input signals include signals at a first logic level and signals at a second logic level, and the first logic level is greater than the second logic level; A signal delay module is used to generate a digital delay signal based on the digital input signal, wherein the digital delay signal is a signal with a delay filter width of the digital input signal; The signal processing module is used to obtain a first processing result and a second processing result based on the logical AND and logical OR NOT operations of the digital input signal and the digital delay signal, respectively. A signal filtering module is used to output a filtered output signal based on the first calculation result and the second calculation result, wherein the filtered output signal is the digital input signal after filtering out pulses smaller than the filtering width.
9. An electronic device, characterized in that, Including processor and memory, The memory is used to store code; The processor is configured to execute code in the memory to implement the signal filtering method as described in any one of claims 1 to 7.
10. A storage medium having a computer program stored thereon, which, when executed by a processor, implements the signal filtering method as described in any one of claims 1 to 7.
