A signal gating method based on event-triggered pulses
By using a signal gating method based on event-triggered pulses, and employing a multi-level pulse shaping network and a zero-crossing pulse synchronization chain for hierarchical arbitration and phase synchronization, the problem of low resource utilization efficiency and event omission in waveform snapshot acquisition of existing power quality monitoring equipment is solved, enabling rapid response to abnormal events and on-demand resource allocation.
Patent Information
- Application Number
- CN202611327849.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2046-08-31
AI Technical Summary
Existing power quality monitoring equipment has a sampling mechanism with fixed thresholds, fixed windows, and software intervention in waveform snapshot acquisition. This makes it difficult to meet actual monitoring needs such as severity classification of anomalies, snapshot phase consistency, multi-channel concurrent response speed, and rapid shutdown after anomaly recovery. As a result, resource utilization efficiency is low and transient events are missed.
A signal gating method based on event-triggered pulses is adopted. Through a multi-level pulse shaping network, a zero-crossing pulse synchronization chain, a pulse gating circuit, and a gating window pulse generator, the method achieves hierarchical and differentiated capture of abnormal events and on-demand allocation of sampling resources. Hardware-level pulse signal links are used for hierarchical arbitration and phase synchronization, and the on/off state of the sampling window is adaptively controlled.
It enables graded and differentiated capture of anomalies of varying severity, improving the timeliness of signal gating and the utilization rate of channel resources, and avoiding invalid data collection and event omission.
Smart Images

Figure CN122824186B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of pulse technology, and in particular to a signal gating method based on event-triggered pulses. Background Technology
[0002] Power quality monitoring is a crucial aspect of power system operation and maintenance. One of its core tasks is to promptly capture abnormal waveform snapshots when grid anomalies occur, enabling subsequent analysis of fault causes and assessment of impact range. Existing power quality monitoring equipment primarily relies on a combination of analog comparator triggering and software-controlled sampling for waveform snapshot acquisition. Specifically, existing equipment typically uses a fixed single-threshold comparator for anomaly triggering. When grid voltage anomalies occur, the comparator outputs a trigger pulse to initiate the sampling process. The sampling window width is determined by a fixed duration preset by the software, and the start and stop of the sampling process depend on software polling and command issuance by the central processing unit. However, the types and durations of power quality anomalies vary significantly. Voltage sags can last from tens to hundreds of milliseconds, while pulse interference lasts only a few microseconds. Furthermore, the resource consumption requirements differ depending on the severity of the anomaly. The aforementioned fixed threshold, fixed window, and software-intervention sampling mechanism struggles to meet actual monitoring needs in terms of anomaly severity classification, snapshot phase consistency, multi-channel concurrent response speed, and rapid shutdown after anomaly recovery. This leads to problems such as low storage resource utilization efficiency, easy omission of transient events, and invalid data acquisition. Summary of the Invention
[0003] In view of this, the purpose of this invention is to propose a signal gating method based on event-triggered pulses, which classifies, arbitrates and synchronizes the phase of abnormal events through a hardware-level pulse signal link, and adaptively controls the on / off state of the sampling window to achieve differentiated capture of abnormalities of different severity and on-demand allocation of sampling resources.
[0004] To achieve the above-mentioned technical objectives, the technical solution adopted by this invention is: a signal gating method based on event-triggered pulses, comprising: The input electrical signal is split and fed into three level comparison stages of a multi-stage pulse shaping network. Each level comparison stage compares the amplitude of the input electrical signal with the corresponding reference level and outputs the original pulse. The original pulse is shaped by a pulse shaping circuit containing an RC charging and discharging network and a Schmitt trigger to output a graded pulse stream. Each pulse in the graded pulse stream corresponds to an amplitude range level. The reference period signal is input to the zero-crossing pulse synchronization chain. When the reference period signal reaches the zero-crossing switching point, the zero-crossing pulse synchronization chain outputs the original zero-crossing pulse and performs pulse width shaping on the original zero-crossing pulse to output a time base pulse with a fixed pulse width. When a graded pulse stream is input to a pulse gating circuit, and multiple graded pulses appear simultaneously, the pulse gating circuit allows only the pulse with the highest amplitude level to pass through, outputs a gating pulse, and suppresses the other pulses. The bistable trigger in the pulse gating circuit outputs a sustaining signal when triggered by the gating pulse. The sustaining signal enables the pulse gating circuit to maintain the gating state during the effective period of the gating pulse. The gating pulse and the time base pulse are input to the gating window pulse generator. The phase alignment unit in the gating window pulse generator aligns the phase of the gating pulse and the time base pulse. The monostable time selection unit in the gating window pulse generator selects the RC time constant branch corresponding to the amplitude range level of the graded pulse flow. The phase-aligned trigger pulse is shaped into a gating window pulse with a corresponding duration so that the gating window pulse has an aligned starting phase and a variable width. The gating window pulse is applied to the control terminal of each contactless electronic switch in the electronic switch group via the drive buffer unit. During the effective period of the gating window pulse, the contactless electronic switch conducts the signal path to select the input electrical signal, and automatically turns off the signal path after the gating window pulse ends.
[0005] In some embodiments, the input electrical signal is spun into three level comparison stages of a multi-stage pulse shaping network. Each level comparison stage compares the amplitude of the input electrical signal with a corresponding reference level and outputs a raw pulse. The raw pulse is shaped by a pulse shaping circuit containing an RC charging and discharging network and a Schmitt trigger to output a graded pulse stream. Each stage of the graded pulse stream corresponds to an amplitude range level, including: The multi-stage pulse shaping network contains at least three threshold comparison stages. Each threshold comparison stage has an independent threshold voltage setting terminal. The threshold comparison stages are implemented using differential comparators. The input electrical signals are simultaneously and in parallel input to each threshold comparison stage. The non-inverting input terminal of the differential comparator receives the input electrical signal, and the inverting input terminal receives the corresponding threshold voltage. Each threshold comparison stage compares the input electrical signal with the corresponding threshold voltage in analog amplitude and outputs the original pulse; The original pulse is sharpened at the leading edge and shaped at the trailing edge by a pulse shaping circuit. The pulse shaping circuit includes an RC charging and discharging network and a Schmitt trigger. The RC charging and discharging network filters out narrow noise spikes in the original pulse. The Schmitt trigger uses its hysteresis characteristics to further shape the leading edge and trailing edge of the pulse, outputting a graded pulse with steep edges and a stable pulse width. Each graded pulse has the same level standard in terms of pulse amplitude. The amplitude range level is characterized by the pulse combination state, which is a combination of the effective / ineffective states of each graded pulse.
[0006] In some embodiments, a reference period signal is input to a zero-crossing pulse synchronization chain. The zero-crossing pulse synchronization chain outputs an original zero-crossing pulse when the reference period signal reaches the zero-crossing switching point, and performs pulse width shaping on the original zero-crossing pulse to output a time base pulse with a fixed pulse width, including: The zero-crossing pulse synchronization chain includes a zero-crossing detection unit and an edge shaping unit; The zero-crossing detection unit performs zero-crossing detection on the reference period signal and outputs the original zero-crossing pulse at two moments: when the reference period signal crosses zero from the negative half-cycle to the positive half-cycle and when it crosses zero from the positive half-cycle to the negative half-cycle. The edge shaping unit shapes the pulse width of the original zero-crossing pulse, limiting the width of the original zero-crossing pulse to a preset narrow pulse width range, and outputs a time base pulse with a fixed pulse width and stable amplitude. The frequency of the time base pulse is twice the frequency of the reference period signal.
[0007] In some embodiments, a graded pulse stream is input to a pulse gating circuit. When multiple graded pulses occur simultaneously, the pulse gating circuit allows only the pulse with the highest amplitude range to pass through, outputs a gating pulse, and suppresses the other pulses, including: The pulse gating circuit includes a priority encoding gate array and a pulse latch unit; The graded pulses of each channel undergo pulse widening processing before entering the priority coding gate array to ensure that the pulse width is not less than the minimum recognition width of the priority coding gate array; The priority coding gate array performs hardware-level discrimination of the input pulses of each channel according to the preset priority rules. When multiple channels have valid pulses at the same time, only the gating pulse of the highest priority channel is output, and the pulses of the other channels are masked.
[0008] In some embodiments, the bistable trigger in the pulse gating circuit outputs a sustain signal upon triggering by a gating pulse. The sustain signal causes the pulse gating circuit to maintain the gating state continuously during the effective period of the gating pulse, including: The set terminal of the bistable multivibrator receives the rising edge of the strobe pulse, and the reset terminal of the bistable multivibrator receives the rising edge of the sampling completion signal. When the strobe pulse arrives, the bistable trigger enters the set state and outputs a sustained high-level signal; The signal is fed back to the enable terminal of the priority coding gate array, causing the priority coding gate array to enter a shielded state and preventing the entry of subsequent pulses; The signal is simultaneously transmitted to the gating window pulse generator to initiate the gating window generation process. When the sampling completion signal arrives, the bistable trigger enters the reset state, the hold signal is released, and the priority coding gate array resumes its arbitration function.
[0009] In some embodiments, a gating pulse and a time base pulse are input to a gating window pulse generator. A phase alignment unit in the gating window pulse generator aligns the phase of the gating pulse and the time base pulse. A monostable time selection unit in the gating window pulse generator selects the RC time constant branch corresponding to the amplitude range level of the graded pulse stream. The phase-aligned trigger pulse is shaped into a gating window pulse with a corresponding duration, so that the gating window pulse has an aligned starting phase and a variable width, including: The gating window pulse generator includes a phase alignment unit, a monostable time selection unit, and a pulse distribution unit. The gating window pulse generator starts the gating window generation process in response to the sustain signal output by the pulse gating circuit. The phase alignment unit aligns the gating pulse with the time base pulse, so that the start time of the gating window pulse corresponds to the phase point of the time base pulse; The monostable time selection unit contains multiple RC time constant branches. These multiple RC time constant branches are selected by decoding logic according to the amplitude range level represented by the graded pulse flow. The phase-aligned trigger pulse is shaped into a gating window pulse with a corresponding duration. The higher the amplitude range level, the larger the corresponding time constant and the longer the duration of the gating window pulse. The pulse distribution unit distributes the gating window pulses to the corresponding signal channels. The pulse distribution unit includes multiple pulse output terminals, each of which corresponds to a signal channel. The pulse distribution logic is generated by a logical AND operation between the channel identifier pulse and the gating window pulse.
[0010] In some embodiments, the phase alignment unit aligns the gating pulse with the time base pulse, so that the start time of the gating window pulse corresponds to the phase point of the time base pulse, including: The phase alignment unit includes a phase comparator and a variable delay line; The phase comparator compares the leading edge of the gating pulse with the leading edge of the time base pulse and outputs a phase difference signal; The variable delay line compensates for the delay of the gating pulse based on the phase difference signal, so that the leading edge of the compensated pulse is precisely aligned with the leading edge of the nearest time base pulse; After the compensated pulse leading edge is precisely aligned with the leading edge of the time base pulse, the start time of the gating window pulse is locked at a fixed phase point of the reference period signal.
[0011] In some embodiments, a gating window pulse is applied to the control terminal of each contactless electronic switch in the electronic switch group via a drive buffer unit. The contactless electronic switch conducts the signal path to select the input electrical signal during the effective period of the gating window pulse, and automatically turns off the signal path after the gating window pulse ends. The electronic switch assembly includes a contactless electronic switch and a drive buffer unit; The control terminal of the contactless electronic switch directly receives the selection window pulse amplified by the drive buffer unit. During the high level of the selection window pulse, the contactless electronic switch is in the on state, the signal path is in the connected state, and the analog signal corresponding to the input electrical signal is transmitted to the subsequent sample and hold circuit through the signal path. During the low level of the gating window pulse, the contactless electronic switch is in the off state, the signal path is in the open state, and the subsequent sample-and-hold circuit holds the last sampled value. The drive buffer unit enhances the current driving capability of the gating window pulse to meet the gate or base driving requirements of the contactless electronic switch and ensures the rapid switching of the contactless electronic switch at the edge of the gating window pulse. After gating is completed, the graded pulses disappear, the gating pulses automatically terminate, the gating window pulses end, and the electronic switch group is directly turned off at the hardware level without the need for software instructions or software detection processes.
[0012] In some embodiments, the driving buffer unit enhances the current driving capability of the gating window pulse to meet the gate or base driving requirements of the contactless electronic switch, ensuring rapid switching of the contactless electronic switch at the edge of the gating window pulse, including: The drive buffer unit adopts a push-pull output structure, including pull-up transistors and pull-down transistors. The control terminals of the pull-up transistors and pull-down transistors receive gating window pulses. During the high level of the gating window pulse, the pull-up transistor is turned on, providing charging current to the gate of the contactless electronic switch, causing the gate voltage to rise above the turn-on threshold. During the low level of the gating window pulse, the pull-down transistor is turned on, providing discharge current to the gate of the contactless electronic switch, causing the gate voltage to drop below the turn-off threshold.
[0013] In some embodiments, after gating ends, the hierarchical pulse disappears, the gating pulse automatically terminates, and the gating window pulse ends accordingly. The electronic switch group is directly turned off at the hardware level without the need for software instructions or software detection processes, including: After the gating process is completed, the input electrical signal falls back below the threshold of the threshold comparison stage, and the pulses at each stage disappear. After the graded pulse disappears, the pulse gating circuit no longer outputs gating pulses, and the gating pulses automatically terminate. After the strobe pulse terminates, the strobe window pulse also ends. After the gating window pulse ends, the contactless electronic switch completes the turn-off action, the signal path is cut off at the hardware level, and the subsequent sample-and-hold circuit stops receiving new data.
[0014] By adopting the above technical solution, the present invention has the following beneficial effects compared with the prior art: The present invention provides a signal gating method based on event-triggered pulses, which outputs a graded pulse stream from the input electrical signal through a multi-level pulse shaping network, and outputs a time base pulse from the reference period signal through a zero-pulse synchronization chain; the pulse gating circuit performs hardware-level arbitration on the multi-channel graded pulses to output gating pulses, and the gating window pulse generator aligns the phase of the gating pulse with the time base pulse and selects the time constant according to the amplitude range level to output the gating window pulse. Finally, the signal path is turned on by the electronic switch group during the effective period of the gating window pulse to select the input electrical signal, thereby realizing differentiated gating of signal grades and on-demand allocation of path resources, and improving the utilization rate of path resources. Attached Figure Description
[0015] 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.
[0016] Figure 1 This is a schematic diagram of steps S101 to S105 of the acquisition method described in the specific implementation embodiment; Figure 2 This is a schematic diagram of steps S201 to S203 of the acquisition method described in the specific implementation embodiment; Figure 3 This is a schematic diagram of steps S301 to S304 of the acquisition method described in the specific implementation. Detailed Implementation
[0017] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be particularly noted that the following embodiments are for illustrative purposes only and do not limit the scope of the invention. Similarly, the following embodiments are only some, not all, embodiments of the present invention, and all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] Please see Figure 1 This embodiment provides a signal gating method based on event-triggered pulses, including: S101. The input electrical signal is split and input to three level comparison stages of the multi-level pulse shaping network. Each level comparison stage compares the amplitude of the input electrical signal with the corresponding reference level and outputs the original pulse. The original pulse is shaped by the pulse shaping circuit containing the RC charging and discharging network and the Schmitt trigger to output the graded pulse stream. Each pulse in the graded pulse stream corresponds to an amplitude range level. S102. Input the reference period signal to the zero-crossing pulse synchronization chain. When the reference period signal reaches the zero-crossing switching point, the zero-crossing pulse synchronization chain outputs the original zero-crossing pulse and performs pulse width shaping on the original zero-crossing pulse to output a time base pulse with a fixed pulse width. S103. The graded pulse stream is input to the pulse gating circuit. When multiple graded pulses appear simultaneously, the pulse gating circuit only allows the pulse with the highest amplitude range to pass through, outputs the gating pulse, and suppresses the other pulses. The bistable trigger in the pulse gating circuit outputs a sustaining signal when triggered by the gating pulse. The sustaining signal makes the pulse gating circuit maintain the gating state during the effective period of the gating pulse. S104. Input the gating pulse and the time base pulse to the gating window pulse generator. The phase alignment unit in the gating window pulse generator aligns the phase of the gating pulse and the time base pulse. The monostable time selection unit in the gating window pulse generator selects the RC time constant branch corresponding to the amplitude range level of the graded pulse flow. The phase-aligned trigger pulse is shaped into a gating window pulse with a corresponding duration so that the gating window pulse has an aligned starting phase and a variable width. S105. The gating window pulse is applied to the control terminal of each contactless electronic switch in the electronic switch group through the drive buffer unit. The contactless electronic switch conducts the signal path to select the input electrical signal during the effective period of the gating window pulse, and automatically turns off the signal path after the end of the gating window pulse.
[0019] In step S101, the input electrical signal is obtained by the sensor from the signal source circuit and is a continuous analog electrical quantity signal reflecting the operating state of the signal source. The multi-level pulse shaping network performs a step-by-step determination of the amplitude condition of the signal. Each determination corresponds to a preset amplitude threshold. When the signal amplitude crosses a certain threshold, that level outputs a pulse, thereby converting the continuous analog signal into a collection of multiple parallel pulses, i.e., a graded pulse stream. The appearance of each pulse represents the occurrence of an event in the corresponding amplitude range, and the pulse width carries the duration information of the amplitude state.
[0020] The reference periodic signal, after being coupled by a sensor, is input to a zero-crossing pulse synchronization chain. This chain extracts a pulse sequence with a fixed pulse width and stable amplitude—the time base pulse—from the periodic zero-crossing characteristics of the reference periodic signal. The time base pulse's frequency maintains a definite multiple relationship with the frequency of the reference periodic signal, providing a unified phase reference for the entire system. This step utilizes two parallel hardware paths to perform pulsed representation of event information and extraction of the phase reference, laying the signal foundation for subsequent arbitration and synchronization.
[0021] In step S102, the pulse gating circuit is constructed from hardware logic gates. Its multiple inputs are connected to the graded pulse streams of each signal channel, and its output is a single-channel gating pulse. The gating circuit has pre-configured priority rules between channels, based on the influence of the amplitude range monitored by each channel on the signal state. When multiple channels simultaneously produce valid pulses, the gating circuit directly determines the highest priority channel at the hardware level through a combination of logic gates and transmits the pulse from that channel to the output. Pulses from other channels are masked. The resulting gating pulse represents the single-channel pulse signal of the highest priority event, and its rising edge indicates the occurrence time of the selected event. The entire arbitration process is determined by the circuit propagation delay, requiring no central processing unit intervention. It can complete the arbitration of multi-channel events in a very short time, ensuring that transient events are captured before they disappear.
[0022] In step S103, the gating window pulse generator receives three inputs: a gating pulse, a time base pulse, and a graded pulse stream. Internally, it uses a phase alignment mechanism to precisely align the trigger edge of the gating pulse with a specific edge of the nearest time base pulse. This phase alignment process ensures that each signal gating begins from the same phase point of the reference periodic signal. Simultaneously, the generator identifies the amplitude range level based on the pulse combination state presented by the graded pulse stream and selects a corresponding time constant from multiple preset time constants. The time constant determines the pulse duration; the higher the amplitude range level, the larger the selected time constant. After phase alignment and time constant selection, the gating window pulse output by the generator has a precise starting phase and a pulse width matching the amplitude range level. This pulse is the core signal controlling the gating window. This step integrates event information, time base, and graded information into a unified gating control signal, achieving deterministic gating start phase and adaptive gating window width.
[0023] In step S104, the electronic switch group consists of multiple parallel contactless electronic switch paths, each corresponding to a signal channel. The control terminal of the contactless electronic switch is connected to the selection window pulse. When the selection window pulse is at an active level, the contactless electronic switch is turned on, the signal path is connected, and the input electrical signal is transmitted to the subsequent sample-and-hold circuit through this path, completing the signal selection. When the selection window pulse ends and turns to an inactive level, the contactless electronic switch automatically turns off, the signal path is disconnected, and the subsequent sample-and-hold circuit holds the last sampled value. This on / off process is entirely driven by the pulse signal, requiring no software instructions. The signal path is immediately turned off after the pulse ends, avoiding the problem of continuous selection of invalid data due to software detection delay after the event ends. This step directly controls the on / off of the signal path through the pulse signal, realizing hardware-level automatic control of the selection process.
[0024] In step S105, the bistable trigger in the pulse gating circuit outputs a sustain signal upon triggering the gating pulse. Specifically, after the pulse gating circuit determines the highest priority channel through the priority encoding gate array and outputs the gating pulse, the rising edge of the gating pulse triggers the bistable trigger to enter the set state, and the bistable trigger outputs a sustained high-level sustain signal. This sustain signal is fed back to the enable terminal of the priority encoding gate array, ensuring that the priority encoding gate array remains in a shielded state during the effective period of the gating pulse, preventing subsequent arrival of other channel pulses from interfering with the current gating state, and ensuring the stability and uniqueness of the entire selection process. Simultaneously, the sustain signal is also transmitted to the gating window pulse generator as a start flag for the gating window generation process, enabling the gating window pulse generator to continuously output the gating window pulse during the effective period of the sustain signal. When the sampling completion signal arrives, the bistable trigger receives a reset signal and enters the reset state, the sustain signal is released, and the priority encoding gate array resumes its arbitration function, preparing to respond to the next event trigger. This step utilizes the latching characteristics of a bistable trigger to achieve hardware-level retention of the gating state, ensuring the integrity and reliability of the gating operation in multi-channel concurrent event scenarios, and avoiding gating interruption problems caused by insufficient pulse width or race conditions.
[0025] This embodiment extracts event information and time information through a multi-level pulse shaping network and a zero-crossing pulse synchronization chain, respectively. It resolves multi-channel event conflicts with a pulse gating circuit, uses a bistable trigger to maintain the gating state at the hardware level, and achieves phase alignment and adaptive window width control through a gating window pulse generator. Finally, it executes signal on / off control through an electronic switch group. The entire gating process is driven by a pulse signal stream without real-time software intervention, realizing rapid response to events, hierarchical differentiated gating, and on-demand allocation of path resources, effectively improving the timeliness of signal gating and the efficiency of path resource utilization.
[0026] In some embodiments, the input electrical signal is spun into three level comparison stages of a multi-stage pulse shaping network. Each level comparison stage compares the amplitude of the input electrical signal with a corresponding reference level and outputs a raw pulse. The raw pulse is shaped by a pulse shaping circuit containing an RC charging and discharging network and a Schmitt trigger to output a graded pulse stream. Each stage of the graded pulse stream corresponds to an amplitude range level, including: The multi-stage pulse shaping network contains at least three threshold comparison stages. Each threshold comparison stage has an independent threshold voltage setting terminal. The threshold comparison stages are implemented using differential comparators. The input electrical signals are simultaneously and in parallel input to each threshold comparison stage. The non-inverting input terminal of the differential comparator receives the input electrical signal, and the inverting input terminal receives the corresponding threshold voltage. Each threshold comparison stage compares the input electrical signal with the corresponding threshold voltage in analog amplitude and outputs the original pulse; The original pulse is sharpened at the leading edge and shaped at the trailing edge by a pulse shaping circuit. The pulse shaping circuit includes an RC charging and discharging network and a Schmitt trigger. The RC charging and discharging network filters out narrow noise spikes in the original pulse. The Schmitt trigger uses its hysteresis characteristics to further shape the leading edge and trailing edge of the pulse, outputting a graded pulse with steep edges and a stable pulse width. Each graded pulse has the same level standard in terms of pulse amplitude. The amplitude range level is characterized by the pulse combination state, which is a combination of the effective / ineffective states of each graded pulse.
[0027] In this embodiment, the threshold voltage received by the threshold voltage setting terminal is determined based on a percentage of the nominal amplitude of the reference signal. The percentage values corresponding to each threshold comparison level increase sequentially, thus forming an amplitude judgment sequence from low to high. For example, 105%, 115%, and 130% of the nominal amplitude are used as the threshold voltages for each level, thereby achieving graded discrimination of low amplitude, medium amplitude, and high amplitude ranges. The specific value of the threshold voltage is obtained from the reference voltage source by the voltage divider resistor network. The amplitude judgment threshold of each threshold comparison level can be set by adjusting the resistance value of the voltage divider resistor. The differential comparator compares the instantaneous amplitude of the input electrical signal with the threshold voltage using analog amplitude comparison. When the voltage at the non-inverting input terminal is higher than the voltage at the inverting input terminal, the differential comparator outputs a high level; otherwise, it outputs a low level. This converts the continuous analog signal into a binary raw pulse. The rising and falling edges of the raw pulse correspond to the moments when the input electrical signal crosses the threshold voltage, and the duration of its high level corresponds to the duration during which the input electrical signal exceeds the threshold voltage.
[0028] In the pulse shaping circuit, an RC charging / discharging network is connected in series between the output of the differential comparator and the input of the Schmitt trigger. It utilizes the charging / discharging characteristics of the capacitor to perform time-domain filtering on the original pulse. The time constant can be set according to the typical pulse width of the signal source's background noise, ensuring that narrow noise spikes shorter than this time constant are smoothly filtered out during charging and discharging, while effective pulses longer than this time constant are fully preserved. The Schmitt trigger has a positive threshold voltage and a negative threshold voltage; the difference between them constitutes the hysteresis width. The hysteresis width is greater than the residual noise amplitude of the differential comparator's output signal, ensuring that the output state remains stable when the input signal fluctuates near the threshold, preventing repeated flips. The transition time of the rising and falling edges of the graded pulse after Schmitt trigger shaping is determined by the flip speed of the Schmitt trigger, and the pulse width is determined by the duration of the input pulse, thus outputting graded pulses with steep edges and stable pulse widths.
[0029] All graded pulses use the same level standard, meaning the high and low level amplitudes remain consistent across channels. The distinction between amplitude range levels does not depend on the pulse amplitude itself, but rather on the pulse combination state. The pulse combination state is a combination of the valid / invalid states of each graded pulse. When the input signal amplitude only crosses the threshold voltage of the lowest level, only the graded pulse corresponding to the lowest level is valid; this combination state corresponds to the low amplitude range. When the signal amplitude crosses the threshold voltages of multiple levels, the graded pulses of the corresponding levels are simultaneously valid. Therefore, the number and distribution pattern of valid pulses directly reflect the amplitude range level, allowing identification of the amplitude range degree from the pulse combination state without additional encoding or decoding circuitry.
[0030] This embodiment transforms the amplitude information of the input electrical signal into a combination state of multiple parallel pulses through a multi-level threshold comparison stage. The amplitude interval level is encoded by the pulse combination state, realizing hardware-level differentiation of the amplitude interval level. The cascaded shaping of the RC charging and discharging network and Schmitt trigger eliminates noise interference and edge jitter, ensuring the waveform quality of the graded pulses. The unified level standard and combination state encoding enable subsequent circuits to identify the amplitude interval level without analyzing the pulse amplitude, providing a hardware foundation for the graded differentiated gating strategy.
[0031] In some embodiments, a reference period signal is input to a zero-crossing pulse synchronization chain. The zero-crossing pulse synchronization chain outputs an original zero-crossing pulse when the reference period signal reaches the zero-crossing switching point, and performs pulse width shaping on the original zero-crossing pulse to output a time base pulse with a fixed pulse width, including: The zero-crossing pulse synchronization chain includes a zero-crossing detection unit and an edge shaping unit; The zero-crossing detection unit performs zero-crossing detection on the reference period signal and outputs the original zero-crossing pulse at two moments: when the reference period signal crosses zero from the negative half-cycle to the positive half-cycle and when it crosses zero from the positive half-cycle to the negative half-cycle. The edge shaping unit shapes the pulse width of the original zero-crossing pulse, limiting the width of the original zero-crossing pulse to a preset narrow pulse width range, and outputs a time base pulse with a fixed pulse width and stable amplitude. The frequency of the time base pulse is twice the frequency of the reference period signal.
[0032] Please see Figure 2 In some embodiments, a graded pulse stream is input to a pulse gating circuit. When multiple graded pulses occur simultaneously, the pulse gating circuit allows only the pulse with the highest amplitude range to pass through, outputs a gating pulse, and suppresses the remaining pulses, including: S201, the pulse gating circuit includes a priority encoding gate array and a pulse latch unit; S202. The graded pulses of each channel undergo pulse widening processing before entering the priority coding gate array to ensure that the pulse width is not less than the minimum recognition width of the priority coding gate array. S203, the priority coding gate array performs hardware-level discrimination of the input pulses of each channel according to the preset priority rules. When multiple channels have valid pulses at the same time, only the gating pulse of the highest priority channel is output, and the pulses of the other channels are masked.
[0033] In step S201, the pulse gating circuit includes a priority encoding gate array and a pulse latch unit. The priority encoding gate array is constructed by a priority encoder in conjunction with peripheral logic gate circuits. The multiple inputs of the priority encoder are respectively connected to the hierarchical pulses of each signal channel, and the output of the priority encoder outputs the encoded signal corresponding to the highest priority channel. The pulse latch unit uses a bistable trigger to output a sustain signal when triggered by the gating pulse, so that the pulse gating circuit maintains the gating state continuously during the effective period of the gating pulse. This step, through the cascading cooperation of the priority encoding gate array and the pulse latch unit, constructs a complete hardware-level event arbitration and mutual exclusion mechanism, ensuring that event arbitration can be completed in a short time in multi-channel concurrent scenarios, while ensuring that no new events will interfere during a single signal gating period, providing a stable event trigger source for the generation of subsequent gating window pulses.
[0034] In step S202, the graded pulses of each channel undergo pulse broadening processing before entering the priority encoding gate array. This pulse broadening is implemented by a monostable multivibrator (MSF). The broadening width is determined based on the setup and hold time requirements of the logic devices used in the priority encoding gate array, i.e., the minimum recognition width. The broadening width is not less than the minimum recognition width to ensure that the priority encoding gate array can stably recognize the pulse inputs of each channel. This step, by broadening the input pulses, ensures that the graded pulses of each channel meet the timing requirements of the priority encoding gate array, laying the foundation for subsequent hardware-level discrimination.
[0035] In step S203, the preset priority rules are pre-defined based on the influence of the amplitude range level monitored by each channel on the signal state. This is fixed through the hardware connection of the priority encoder gate array. The input terminal numbering order of the priority encoder corresponds to the priority order of the channels, with smaller numbered input terminals having higher priority. The hardware-level discrimination of the priority encoder gate array is implemented through the combinational logic of the priority encoder. When multiple input terminals simultaneously have valid pulses, the priority encoder determines the highest priority channel based on the input terminal numbering order and outputs only the gating pulse corresponding to that channel to the output terminal. Pulses from other channels are shielded internally by the encoder and do not participate in the output. This step completes the priority discrimination of multi-channel events at the hardware level through the combinational logic of the priority encoder. The arbitration process is determined by the propagation delay of the logic gate circuit, requiring no intervention from the central processing unit.
[0036] This embodiment uses a priority coding gate array to perform hardware-level priority discrimination on the graded pulses of each channel, uses pulse widening processing to ensure timing reliability, uses a pulse latch unit to maintain the state of the arbitration result, and uses the sampling completion signal to realize the automatic recovery of the arbitration function. It constructs a complete hardware-level event arbitration and mutual exclusion mechanism, which can complete the event arbitration in a short time in multi-channel concurrent scenarios, while ensuring that it will not be interfered with by new events during a signal gating period, and provides a stable event triggering source for the subsequent gating window pulse generation.
[0037] In some embodiments, the bistable trigger in the pulse gating circuit outputs a sustain signal upon triggering by a gating pulse. The sustain signal causes the pulse gating circuit to maintain the gating state continuously during the effective period of the gating pulse, including: The set terminal of the bistable multivibrator receives the rising edge of the strobe pulse, and the reset terminal of the bistable multivibrator receives the rising edge of the sampling completion signal. When the strobe pulse arrives, the bistable trigger enters the set state and outputs a sustained high-level signal; The signal is fed back to the enable terminal of the priority coding gate array, causing the priority coding gate array to enter a shielded state and preventing the entry of subsequent pulses; The signal is simultaneously transmitted to the gating window pulse generator to initiate the gating window generation process. When the sampling completion signal arrives, the bistable trigger enters the reset state, the hold signal is released, and the priority coding gate array resumes its arbitration function.
[0038] In this embodiment, the bistable multivibrator has two stable states, corresponding to a high-level output and a low-level output, respectively. Both the set and reset inputs are edge-triggered. When a rising edge trigger signal is applied to the set input, the output of the bistable multivibrator flips to a high level and remains in that state. When a rising edge trigger signal is applied to the reset input, the output of the bistable multivibrator flips to a low level and remains in that state. The set input of the bistable multivibrator is connected to the gating pulse output of the pulse gating circuit; the rising edge of the gating pulse serves as the set trigger signal. The reset input of the bistable multivibrator is connected to the sampling completion signal output of the electronic switch group; the rising edge of the sampling completion signal serves as the reset trigger signal. When trigger signals are applied to both the set and reset inputs simultaneously, the reset input takes priority, thereby ensuring that the sampling completion signal can reliably release the held state.
[0039] When the rising edge of the strobe pulse is applied to the set input of a bistable multivibrator, the bistable multivibrator flips from the reset state to the set state, and the output flips from low to high. This high-level state is maintained until the bistable multivibrator is reset, and does not change with the disappearance of the strobe pulse. The continuously high-level output signal is the sustain signal. The sustain signal's sustain characteristic is determined by the bistable multivibrator's state storage capability. Even after the strobe pulse has ended, the sustain signal remains high until the rising edge of the sampling completion signal reaches the reset input.
[0040] The sustain signal is fed back to the enable input of the priority gate array (GGA). The enable input is the global control input of the GGA. When the enable input is inactive, the output of the GGA remains at a fixed level and does not respond to changes in the input pulses of each channel, thus entering a shielded state. Subsequent hierarchical pulses cannot be output through the GGA. The polarity of the effective level of the enable input is determined according to the type of logic device used in the GGA. The high level of the sustain signal corresponds to the inactive level of the enable input. Simultaneously, the sustain signal is transmitted to the start input of the gating window pulse generator. The rising edge of the sustain signal serves as the start trigger edge of the gating window pulse generator. Upon receiving the rising edge of the sustain signal, the gating window pulse generator begins generating gating window pulses, thereby achieving timing coordination between event arbitration and gating window generation.
[0041] After the rising edge of the sampling completion signal is applied to the reset terminal of the bistable multivibrator, the bistable multivibrator flips from the set state to the reset state, and the output terminal flips from high level to low level, thus releasing the hold signal. After the hold signal is released, the enable terminal of the priority encoder gate array returns to the active level, the masking state is released, the priority encoder gate array resumes responding to changes in the input pulses of each channel, the arbitration function is restored, and the system waits for the arrival of the next graded pulse. This step resets the bistable multivibrator using the sampling completion signal, realizing the automatic recovery of the arbitration function and preparing for the next event arbitration.
[0042] This embodiment uses the set and reset terminals of a bistable trigger to receive the gating pulse and sampling completion signal, respectively, to achieve state maintenance and automatic release of the event arbitration result. The maintenance signal is fed back to the enable terminal of the priority coding gate array to maintain the shielded state, and at the same time transmitted to the gating window pulse generator to start the gating window generation process. In this way, the three links of event arbitration, state latching and gating window generation are connected into a continuous hardware signal chain, ensuring the mutual exclusion of multi-channel event arbitration and the timing integrity of signal gating.
[0043] Please see Figure 3 In some embodiments, the gating pulse and the time base pulse are input to a gating window pulse generator. The phase alignment unit in the gating window pulse generator aligns the phase of the gating pulse and the time base pulse. The monostable time selection unit in the gating window pulse generator selects the RC time constant branch corresponding to the amplitude range level of the graded pulse flow. The phase-aligned trigger pulse is shaped into a gating window pulse with a corresponding duration, so that the gating window pulse has an aligned starting phase and a variable width, including: S301, the gating window pulse generator includes a phase alignment unit, a monostable time selection unit, and a pulse distribution unit. The gating window pulse generator starts the gating window generation process in response to the sustain signal output by the pulse gating circuit. S302, the phase alignment unit aligns the gating pulse with the time base pulse, so that the start time of the gating window pulse corresponds to the phase point of the time base pulse; S303, the monostable time selection unit contains multiple RC time constant branches. These multiple RC time constant branches are selected by decoding logic according to the amplitude range level represented by the graded pulse flow. The phase-aligned trigger pulse is shaped into a gating window pulse with a corresponding duration. The higher the amplitude range level, the larger the corresponding time constant and the longer the duration of the gating window pulse. S304. The pulse distribution unit distributes the gating window pulse to the corresponding signal channel. The pulse distribution unit includes multiple pulse output terminals, each of which corresponds to a signal channel. The pulse distribution logic is generated by the logical AND operation between the channel identifier pulse and the gating window pulse.
[0044] In step S301, the signal transmission sequence of the three-level cascaded phase alignment unit, monostable time selection unit, and pulse distribution unit is as follows: the phase alignment unit receives the gating pulse and the time base pulse, and outputs the phase alignment trigger pulse to the monostable time selection unit; the monostable time selection unit receives the phase alignment trigger pulse and the graded pulse stream, and outputs the gating window pulse to the pulse distribution unit; the pulse distribution unit receives the gating window pulse and the channel identification pulse, and outputs the distributed pulses to the corresponding signal channels.
[0045] The rising edge of the sustain signal serves as the start trigger edge for the gating window pulse generator. Before receiving the rising edge of the sustain signal, the gating window pulse generator is in standby mode and does not perform any pulse generation operations. After receiving the rising edge of the sustain signal, the gating window pulse generator begins to perform phase alignment, time constant selection, and pulse distribution operations. This step uses a three-level cascaded architecture to connect the three functional stages of phase alignment, time constant selection, and pulse distribution into a continuous signal processing link, using the sustain signal as the start trigger, thus achieving hardware-level timing control of the gating window pulse generation process.
[0046] In step S302, the phase alignment unit detects the time difference between the leading edge of the gating pulse and the leading edge of the nearest time base pulse, and adjusts the delay of the gating pulse based on this time difference, so that the leading edge of the adjusted pulse is precisely aligned with the leading edge of the time base pulse. This process is called phase alignment. The accuracy of the delay compensation is determined by the delay adjustment step of the phase alignment unit; the smaller the delay adjustment step, the higher the accuracy of the phase alignment. After phase alignment is completed, the time difference between the leading edge of the gating pulse and the leading edge of the time base pulse is eliminated. Thus, the start time of the gating window pulse precisely corresponds to the fixed phase point of the reference periodic signal, which is marked by the edge of the time base pulse, i.e., the zero-crossing time of the reference periodic signal. This step, by detecting the time difference and performing delay compensation, corrects the random arrival time of the gating pulse to the fixed phase point of the reference periodic signal, eliminating the random phase offset at the start time of gating.
[0047] In step S303, the monostable time selection unit may include multiple RC time constant branches and a monostable trigger. Each RC time constant branch is composed of a resistor and a capacitor connected in series, and the time constant is equal to the product of the resistance value and the capacitance value. Different branches form different time constants by using different resistance or capacitance values, corresponding to different amplitude range levels. The decoding logic is composed of combinational logic gate circuits. Its input terminal receives the graded pulse stream, and its output terminal is connected to the gating control terminal of each RC time constant branch. According to the pulse combination state presented by the graded pulse stream, the decoding logic outputs the corresponding gating signal, so that the corresponding RC time constant branch is connected to the monostable trigger.
[0048] The monostable multivibrator enters a metastable state upon being triggered by the rising edge of the phase-aligned trigger pulse. The duration of the metastable state is determined by the time constant of the selected RC time constant branch; the larger the time constant, the longer the metastable state duration. This shapes the phase-aligned trigger pulse into a gating window pulse with a corresponding duration. Higher amplitude range levels correspond to larger time constants and longer gating window pulse durations. This step decodes the graded pulse stream using decoding logic, selecting the corresponding time constant branch, thus achieving the matching of the gating window pulse width with the amplitude range level.
[0049] In step S304, the pulse distribution unit includes multiple pulse output terminals, each corresponding to a signal channel. The correspondence between each output terminal and the signal channel is fixed by the hardware connection. The channel identification pulse is generated by the pulse gating circuit after arbitration. Its valid state indicates the channel selected by arbitration. The channel identification pulse corresponding to the selected channel is high-level, and the channel identification pulse corresponding to the other channels is low-level. The pulse distribution logic is generated by a logical AND operation between the channel identification pulse and the gating window pulse. The logical AND operation is implemented by an AND gate circuit. The two inputs of the AND gate circuit are connected to the channel identification pulse and the gating window pulse, respectively. When both inputs are high-level, the output is high-level. The gating window pulse is output only on the selected channel, and the output terminals of the other channels remain low-level. This step distributes a single gating window pulse to the selected signal channel through the logical AND operation between the channel identification pulse and the gating window pulse, realizing the channel-oriented output of the gating window pulse.
[0050] In this embodiment, the leading edge of the gating pulse is phase-aligned with the time base pulse by a phase alignment unit, so that the start time of the gating window pulse accurately corresponds to the fixed phase point of the reference periodic signal; the corresponding RC time constant branch is selected by a monostable time selection unit according to the amplitude range level represented by the graded pulse flow, so that the duration of the gating window pulse matches the amplitude range level; and the gating window pulse is distributed to the selected signal channel by a pulse distribution unit, realizing the channel-oriented output of the gating window pulse, and completing the hardware-level implementation of the three links of phase alignment, width modulation and channel distribution of the gating window pulse.
[0051] In some embodiments, the phase alignment unit aligns the gating pulse with the time base pulse, so that the start time of the gating window pulse corresponds to the phase point of the time base pulse, including: The phase alignment unit includes a phase comparator and a variable delay line; The phase comparator compares the leading edge of the gating pulse with the leading edge of the time base pulse and outputs a phase difference signal; The variable delay line compensates for the delay of the gating pulse based on the phase difference signal, so that the leading edge of the compensated pulse is precisely aligned with the leading edge of the nearest time base pulse; After the compensated pulse leading edge is precisely aligned with the leading edge of the time base pulse, the start time of the gating window pulse is locked at a fixed phase point of the reference period signal.
[0052] In this embodiment, the phase comparator can be constructed from a D flip-flop or an XOR gate. Taking a D flip-flop as an example, the clock input of the D flip-flop receives the time base pulse, and the data input receives the gating pulse. The output state of the D flip-flop is determined by the level of the gating pulse at the rising edge of the time base pulse. When the leading edge of the gating pulse arrives earlier than the leading edge of the time base pulse, the gating pulse level sampled at the rising edge of the time base pulse is high, and the D flip-flop outputs a high level. When the leading edge of the gating pulse arrives later than the leading edge of the time base pulse, the gating pulse level sampled at the rising edge of the time base pulse is low, and the D flip-flop outputs a low level. The output level state of the phase comparator characterizes the phase relationship between the leading edge of the gating pulse and the leading edge of the time base pulse, i.e., whether the leading edge of the gating pulse leads or lags behind the leading edge of the time base pulse. The phase difference signal is the output signal of the phase comparator; its level state is used to indicate the direction of the phase deviation, and its effective duration is used to indicate the magnitude of the phase deviation.
[0053] A variable delay line consists of multiple stages of cascaded delay units. Each stage introduces a fixed propagation delay, and the outputs of each stage are led to different tap positions. Different delay amounts are obtained by selecting different tap positions, and the adjustment step of the delay amount is determined by the propagation delay of a single stage delay unit. The delay amount of the variable delay line is adjusted according to the phase difference signal. When the phase difference signal indicates that the leading edge of the gating pulse leads the leading edge of the time base pulse, the variable delay line increases the delay amount, delaying the leading edge of the gating pulse backward. When the phase difference signal indicates that the leading edge of the gating pulse lags behind the leading edge of the time base pulse, the variable delay line decreases the delay amount, advancing the leading edge of the gating pulse forward. By successively adjusting the delay amount, the time difference between the leading edge of the compensated pulse and the leading edge of the time base pulse gradually decreases until it is less than the delay adjustment step, which is the state of precise alignment. The accuracy of delay compensation is determined by the delay adjustment step of the variable delay line. The smaller the delay adjustment step, the smaller the residual time difference between the leading edge of the compensated pulse and the leading edge of the time base pulse, and the higher the accuracy of phase alignment.
[0054] After the compensated pulse leading edge is precisely aligned with the leading edge of the time base pulse, the leading edge of the gating pulse is no longer determined by its original arrival time, but by the leading edge of the most recent time base pulse. Thus, the start time of the gating window pulse is locked at a fixed phase point of the reference periodic signal. This locking relationship is re-established each time a gating pulse arrives. Since the frequency of the time base pulse is twice the frequency of the reference periodic signal, the leading edge of the time base pulse appears at the same phase position in each period of the reference periodic signal. Therefore, the start time of each gating window pulse corresponds to the same phase point of the reference periodic signal, and there is no random phase shift between multiple gatings.
[0055] In this embodiment, a phase comparator is used to detect the phase relationship between the leading edge of the gating pulse and the leading edge of the time base pulse. A variable delay line is used to delay the gating pulse according to the phase difference signal, so that the leading edge of the compensated pulse is precisely aligned with the leading edge of the time base pulse. This corrects the random arrival time of the gating pulse to a fixed phase point of the reference periodic signal, ensuring the consistency of the starting phase of multiple signal gatings.
[0056] In some embodiments, a gating window pulse is applied to the control terminal of each contactless electronic switch in the electronic switch group via a drive buffer unit. The contactless electronic switch conducts the signal path to select the input electrical signal during the effective period of the gating window pulse, and automatically turns off the signal path after the gating window pulse ends. The electronic switch assembly includes a contactless electronic switch and a drive buffer unit; The control terminal of the contactless electronic switch directly receives the selection window pulse amplified by the drive buffer unit. During the high level of the selection window pulse, the contactless electronic switch is in the on state, the signal path is in the connected state, and the analog signal corresponding to the input electrical signal is transmitted to the subsequent sample and hold circuit through the signal path. During the low level of the gating window pulse, the contactless electronic switch is in the off state, the signal path is in the open state, and the subsequent sample-and-hold circuit holds the last sampled value. The drive buffer unit enhances the current driving capability of the gating window pulse to meet the gate or base driving requirements of the contactless electronic switch and ensures the rapid switching of the contactless electronic switch at the edge of the gating window pulse. After gating is completed, the graded pulses disappear, the gating pulses automatically terminate, the gating window pulses end, and the electronic switch group is directly turned off at the hardware level without the need for software instructions or software detection processes.
[0057] In this embodiment, the contactless electronic switch can be composed of semiconductor switching devices such as MOSFETs or IGBTs. Taking a MOSFET as an example, a conductive channel is formed between the drain and source when the gate voltage exceeds the turn-on threshold, and the conductive channel disappears when the gate voltage is below the turn-on threshold. The control terminal of the contactless electronic switch is its gate or base, and the level state of the control terminal directly determines the conduction and turn-off of the contactless electronic switch. The drive buffer unit is connected between the output terminal of the gating window pulse and the control terminal of the contactless electronic switch. It is composed of complementary transistor pairs and utilizes the current amplification effect of the transistors to enhance the current driving capability of the gating window pulse, enabling the gating window pulse to provide sufficient charging and discharging current to meet the gate or base driving requirements of the contactless electronic switch. The gate or base driving requirements are determined by the device parameters of the contactless electronic switch, including the amplitude requirements of the control terminal voltage and the charging and discharging current requirements. Different device types have different turn-on thresholds and gate capacitances, and the corresponding driving requirements also vary. The subsequent sample-and-hold circuit is connected to the output of the contactless electronic switch. It tracks the instantaneous value of the analog signal while the signal path is open and holds the last sampled value after the signal path is closed.
[0058] The enhanced current-driving capability of the drive buffer unit enables the control terminal voltage to be rapidly established or eliminated at the edge of the gating window pulse, shortening the transition time between the on and off states of the contactless electronic switch and achieving rapid switching. This switching-off process is directly driven by the level change of the gating window pulse, without involving software instructions or software detection processes.
[0059] This embodiment controls the connection and disconnection of the signal path by using a contactless electronic switch to drive the buffer unit and enhance the current driving capability of the gating window pulse. This enables the contactless electronic switch to quickly switch on and off at the edge of the gating window pulse. The conduction and disconnection of the signal path are completely determined by the level state of the gating window pulse, without the need for software instructions or software detection processes. After the event ends, the signal path is directly turned off at the hardware level, avoiding the continuous gating of invalid data.
[0060] In some embodiments, the driving buffer unit enhances the current driving capability of the gating window pulse to meet the gate or base driving requirements of the contactless electronic switch, ensuring rapid switching of the contactless electronic switch at the edge of the gating window pulse, including: The drive buffer unit adopts a push-pull output structure, including pull-up transistors and pull-down transistors. The control terminals of the pull-up transistors and pull-down transistors receive gating window pulses. During the high level of the gating window pulse, the pull-up transistor is turned on, providing charging current to the gate of the contactless electronic switch, causing the gate voltage to rise above the turn-on threshold. During the low level of the gating window pulse, the pull-down transistor is turned on, providing discharge current to the gate of the contactless electronic switch, causing the gate voltage to drop below the turn-off threshold.
[0061] In this embodiment, the pull-up transistor is connected between the power rail and the output terminal of the drive buffer unit, and the pull-down transistor is connected between the output terminal of the drive buffer unit and ground. The connection point of the two transistors serves as the output terminal of the drive buffer unit. The control terminals of the pull-up transistor and the pull-down transistor are connected in parallel to the output terminal of the gating window pulse, and both receive the gating window pulse. The pull-up transistor can be composed of a PNP bipolar transistor or a P-channel MOSFET, and the pull-down transistor can be composed of an NPN bipolar transistor or an N-channel MOSFET. The device types of the pull-up transistor and pull-down transistor are selected according to the gate drive requirements of the contactless electronic switch. The pull-up transistor and pull-down transistor are alternately turned on under the control of the gating window pulse. During the high level of the gating window pulse, the pull-up transistor is turned on, the pull-down transistor is turned off, and the output terminal is connected to the power rail, outputting a high level; during the low level of the gating window pulse, the pull-up transistor is turned off, the pull-down transistor is turned on, and the output terminal is connected to ground, outputting a low level.
[0062] During the high-level period of the gating window pulse, the pull-up transistor is turned on. The output of the drive buffer unit is connected to the power rail via the pull-up transistor, and the output terminal outputs a high level. The charging current flows into the gate of the contactless electronic switch through the pull-up transistor, and the gate voltage gradually rises. When the gate voltage rises above the turn-on threshold, the conductive channel of the contactless electronic switch is established, and the contactless electronic switch turns on. The turn-on threshold is the critical voltage value at which the conductive channel begins to form after the gate voltage of the contactless electronic switch reaches this value. The turn-on threshold varies for different device types and is determined by the device parameters of the contactless electronic switch. During the low-level period of the gating window pulse, the pull-down transistor is turned on. The output of the drive buffer unit is connected to ground via the pull-down transistor, and the output terminal outputs a low level. The gate charge of the contactless electronic switch is released through the pull-down transistor, forming a discharge current. The gate voltage gradually decreases. When the gate voltage drops below the turn-off threshold, the conductive channel of the contactless electronic switch completely disappears, and the contactless electronic switch turns off. The shutdown threshold is the critical voltage value at which the conductive channel of the contactless electronic switch completely disappears after the gate voltage drops below this value. The shutdown threshold is lower than the turn-on threshold, and the difference between the two constitutes the hysteresis range. The purpose of the hysteresis range is to prevent the contactless electronic switch from repeatedly turning on and off when the gate voltage fluctuates near the threshold.
[0063] This embodiment uses a push-pull output structure to alternately turn on the pull-up and pull-down transistors. During the high level of the gating window pulse, a charging current is provided to the gate of the contactless electronic switch, causing the gate voltage to rise rapidly above the turn-on threshold. During the low level of the gating window pulse, a discharging current is provided to the gate of the contactless electronic switch, causing the gate voltage to drop rapidly below the turn-off threshold. This achieves rapid switching of the contactless electronic switch at the edge of the gating window pulse, shortening the switching transition time.
[0064] In some embodiments, after gating ends, the hierarchical pulse disappears, the gating pulse automatically terminates, and the gating window pulse ends accordingly. The electronic switch group is directly turned off at the hardware level without the need for software instructions or software detection processes, including: After the gating process is completed, the input electrical signal falls back below the threshold of the threshold comparison stage, and the pulses at each stage disappear. After the graded pulse disappears, the pulse gating circuit no longer outputs gating pulses, and the gating pulses automatically terminate. After the strobe pulse terminates, the strobe window pulse also ends. After the gating window pulse ends, the contactless electronic switch completes the turn-off action, the signal path is cut off at the hardware level, and the subsequent sample-and-hold circuit stops receiving new data.
[0065] In this embodiment, the determination of the event's end is accomplished by a multi-level pulse shaping network. When the input electrical signal falls below the threshold of the threshold comparison level, the output state of each threshold comparison level flips. During the input electrical signal's decline, the signal amplitude successively crosses the thresholds of each threshold comparison level, first falling below the threshold of the lowest level. The graded pulse corresponding to the lowest level disappears first, and then, as the signal amplitude continues to decline, the graded pulses corresponding to higher levels disappear sequentially, until all graded pulses have disappeared. This state is the hardware-level representation of the event's end.
[0066] After the graded pulses disappear, there are no valid pulses at any of the input terminals of the pulse gating circuit, and the output terminal of the gating circuit remains at an invalid level, no longer generating new gating pulses, and the gating pulses automatically terminate. After the gating pulses terminate, the gating window pulse generator no longer receives new trigger signals, and the monostable trigger in the monostable time selection unit automatically returns to the steady state after the quasi-stable state ends, with the output terminal flipping from high level to low level, and the gating window pulses end accordingly.
[0067] After the gating window pulse ends, the output of the drive buffer unit flips from high level to low level, and the control terminal voltage of the contactless electronic switch drops accordingly. When the control terminal voltage drops below the shutdown threshold, the conductive channel disappears, the contactless electronic switch completes the shutdown action, the signal path presents a high impedance state, the signal path is cut off at the hardware level, the analog signal cannot be transmitted to the subsequent sample-and-hold circuit through the signal path, the subsequent sample-and-hold circuit stops receiving new data and holds the last sampled value.
[0068] This embodiment achieves automatic hardware-level shutdown of the signal path after the event ends through a cascaded transmission process of graded pulse disappearance, automatic termination of gating pulse, end of gating window pulse, and shutdown of contactless electronic switch. The entire shutdown process is driven by the natural disappearance of the pulse signal chain and does not involve the participation of software instructions or software detection processes, thus eliminating the problem of continuous gating of invalid data due to software detection delay after the event ends.
[0069] By adopting the above technical solutions, this invention differs from existing technologies and has the following beneficial effects: The input electrical signal is converted into a graded pulse stream through a multi-level pulse shaping network, with amplitude range levels distinguished by pulse combination states. Simultaneously, a zero-crossing pulse synchronization chain extracts a time base pulse from the reference period signal, providing a unified phase reference for signal gating. After the graded pulse stream undergoes priority determination of multi-channel events at the hardware level via a pulse gating circuit, the gating window pulse generator aligns the gating pulse with the time base pulse, ensuring the gating window pulse has a precise starting phase. Furthermore, the time constant is adaptively selected based on the amplitude range level represented by the graded pulse stream, matching the gating window width with the amplitude state duration. During the effective period of the gating window pulse, the electronic switch group conducts the signal path to select the input electrical signal. After the pulse ends, the hardware directly shuts off the signal path. The entire selection process is driven by the pulse signal stream without real-time software intervention, achieving rapid event response, graded differentiated gating, and on-demand allocation of path resources, effectively improving the timeliness of signal gating and the efficiency of path resource utilization.
[0070] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0071] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0072] The above description is only a part of the embodiments of the present invention and does not limit the scope of protection of the present invention. Any equivalent device or equivalent process transformation made based on the content of the present invention specification and drawings, or direct or indirect application in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A signal gating method based on event-triggered pulses, characterized in that, include: The input electrical signal is split and fed into three level comparison stages of a multi-stage pulse shaping network. Each level comparison stage compares the amplitude of the input electrical signal with the corresponding reference level and outputs the original pulse. The original pulse is shaped by a pulse shaping circuit containing an RC charging and discharging network and a Schmitt trigger to output a graded pulse stream. Each pulse in the graded pulse stream corresponds to an amplitude range level. The reference period signal is input to the zero-crossing pulse synchronization chain. When the reference period signal reaches the zero-crossing switching point, the zero-crossing pulse synchronization chain outputs the original zero-crossing pulse and performs pulse width shaping on the original zero-crossing pulse to output a time base pulse with a fixed pulse width. When a graded pulse stream is input to a pulse gating circuit, and multiple graded pulses appear simultaneously, the pulse gating circuit only allows the pulse with the highest amplitude range to pass through, outputs a gating pulse, and suppresses the other pulses. The bistable trigger in the pulse gating circuit outputs a sustaining signal when triggered by the gating pulse. The sustaining signal keeps the pulse gating circuit in the gating state during the effective period of the gating pulse. The gating pulse and the time base pulse are input to the gating window pulse generator. The phase alignment unit in the gating window pulse generator aligns the phase of the gating pulse and the time base pulse. The monostable time selection unit in the gating window pulse generator selects the RC time constant branch corresponding to the amplitude range level of the graded pulse flow. The phase-aligned trigger pulse is shaped into a gating window pulse with a corresponding duration so that the gating window pulse has an aligned starting phase and a variable width. The gating window pulse is applied to the control terminal of each contactless electronic switch in the electronic switch group through the drive buffer unit. During the effective period of the gating window pulse, the contactless electronic switch conducts the signal path to select the input electrical signal, and automatically turns off the signal path after the gating window pulse ends. The gating window pulse generator includes a phase alignment unit, a monostable time selection unit, and a pulse distribution unit. The gating window pulse generator starts the gating window generation process in response to the sustain signal output by the pulse gating circuit. The monostable time selection unit includes multiple RC time constant branches. These multiple RC time constant branches are selected by decoding logic according to the amplitude range level represented by the graded pulse flow, and the phase-aligned trigger pulse is shaped into a gating window pulse with a corresponding duration. The higher the amplitude range level, the larger the corresponding time constant, and the longer the duration of the gating window pulse.
2. The signal gating method based on event-triggered pulses according to claim 1, characterized in that, The input electrical signal is branched and fed into three level comparison stages of a multi-stage pulse shaping network. Each level comparison stage compares the amplitude of the input electrical signal with the corresponding reference level and outputs a raw pulse. The raw pulse is then shaped by a pulse shaping circuit containing an RC charging and discharging network and a Schmitt trigger, outputting a graded pulse stream. Each stage of the graded pulse stream corresponds to an amplitude range level, including: The multi-stage pulse shaping network includes at least three threshold comparison stages, each with an independent threshold voltage setting terminal. The threshold comparison stages are implemented using differential comparators. The input electrical signals are simultaneously and in parallel input to each threshold comparison stage. The non-inverting input terminal of the differential comparator receives the input electrical signals, and the inverting input terminal receives the corresponding threshold voltage. Each threshold comparison stage compares the input electrical signal with the corresponding threshold voltage using analog amplitude comparison, and outputs the original pulse; The original pulse is sharpened at the leading edge and shaped at the trailing edge by a pulse shaping circuit. The pulse shaping circuit includes an RC charging and discharging network and a Schmitt trigger. The RC charging and discharging network filters out narrow noise spikes in the original pulse. The Schmitt trigger uses its hysteresis characteristics to further shape the leading edge and trailing edge of the pulse, outputting a graded pulse with steep edges and a stable pulse width. Each graded pulse has the same level standard in terms of pulse amplitude. The amplitude range level is characterized by the pulse combination state, which is a combination of the effective / ineffective states of each graded pulse.
3. The signal gating method based on event-triggered pulses according to claim 1, characterized in that, The reference period signal is input to the zero-crossing pulse synchronization chain. When the reference period signal reaches the zero-crossing switching point, the zero-crossing pulse synchronization chain outputs the original zero-crossing pulse and performs pulse width shaping on the original zero-crossing pulse to output a time base pulse with a fixed pulse width, including: The zero-crossing pulse synchronization chain includes a zero-crossing detection unit and an edge shaping unit; The zero-crossing detection unit performs zero-crossing detection on the reference period signal and outputs the original zero-crossing pulse at two moments: when the reference period signal crosses zero from the negative half-cycle to the positive half-cycle and when it crosses zero from the positive half-cycle to the negative half-cycle. The edge shaping unit performs pulse width shaping on the original zero-crossing pulse, limiting the width of the original zero-crossing pulse to a preset narrow pulse width range, and outputs a time base pulse with a fixed pulse width and stable amplitude. The frequency of the time base pulse is twice the frequency of the reference period signal.
4. The signal gating method based on event-triggered pulses according to claim 1, characterized in that, A graded pulse stream is input to a pulse gating circuit. When multiple graded pulses occur simultaneously, the pulse gating circuit only allows the pulse with the highest amplitude range to pass through, outputting a gating pulse and suppressing the others, including: The pulse gating circuit includes a priority encoding gate array and a pulse latch unit; The graded pulses of each channel undergo pulse widening processing before entering the priority coding gate array to ensure that the pulse width is not less than the minimum recognition width of the priority coding gate array; The priority coding gate array performs hardware-level discrimination of the input pulses of each channel according to the preset priority rules. When multiple channels have valid pulses at the same time, only the gating pulse of the highest priority channel is output, and the pulses of the other channels are blocked.
5. The signal gating method based on event-triggered pulses according to claim 4, characterized in that, The bistable trigger in the pulse gating circuit outputs a sustaining signal upon being triggered by the gating pulse. This sustaining signal ensures that the pulse gating circuit maintains the gating state continuously during the effective period of the gating pulse, including: The set terminal of the bistable trigger receives the rising edge of the strobe pulse, and the reset terminal of the bistable trigger receives the rising edge of the sampling completion signal. When the strobe pulse arrives, the bistable trigger enters the set state and outputs a sustained high-level signal; The sustain signal is fed back to the enable terminal of the priority coding gate array, causing the priority coding gate array to enter a shielded state and preventing the entry of subsequent pulses; The sustaining signal is simultaneously transmitted to the gating window pulse generator to start the gating window generation process; When the sampling completion signal arrives, the bistable trigger enters the reset state, the sustain signal is released, and the priority coding gate array resumes its arbitration function.
6. The signal gating method based on event-triggered pulses according to claim 1, characterized in that, The gating pulse and the time base pulse are input to the gating window pulse generator. The phase alignment unit in the gating window pulse generator aligns the phase of the gating pulse and the time base pulse. The monostable time selection unit in the gating window pulse generator selects the RC time constant branch corresponding to the amplitude range level of the graded pulse flow. The phase-aligned trigger pulse is shaped into a gating window pulse with a corresponding duration, so that the gating window pulse has an aligned starting phase and a variable width, including: The phase alignment unit aligns the gating pulse with the time base pulse, so that the start time of the gating window pulse corresponds to the phase point of the time base pulse; The pulse distribution unit distributes the gating window pulse to the corresponding signal channel. The pulse distribution unit includes multiple pulse output terminals, each of which corresponds to a signal channel. The pulse distribution logic is generated by a logical AND operation between the channel identifier pulse and the gating window pulse.
7. The signal gating method based on event-triggered pulses according to claim 6, characterized in that, The phase alignment unit aligns the gating pulse with the time base pulse, so that the start time of the gating window pulse corresponds to the phase point of the time base pulse, including: The phase alignment unit includes a phase comparator and a variable delay line; The phase comparator compares the leading edge of the gating pulse with the leading edge of the time base pulse and outputs a phase difference signal; The variable delay line performs delay compensation on the gating pulse according to the phase difference signal, so that the leading edge of the compensated pulse is precisely aligned with the leading edge of the nearest time base pulse; After the compensated pulse leading edge is precisely aligned with the leading edge of the time base pulse, the start time of the gating window pulse is locked at a fixed phase point of the reference period signal.
8. The signal gating method based on event-triggered pulses according to claim 1, characterized in that, The gating window pulse is applied to the control terminals of each contactless electronic switch in the electronic switch group via a drive buffer unit. During the effective period of the gating window pulse, the contactless electronic switch conducts the signal path to select the input electrical signal, and automatically turns off the signal path after the gating window pulse ends. This includes: The electronic switch assembly includes a contactless electronic switch and a drive buffer unit; The control terminal of the contactless electronic switch directly receives the gating window pulse amplified by the driving buffer unit. During the high level of the gating window pulse, the contactless electronic switch is in the on state, the signal path is in the connected state, and the analog signal corresponding to the input electrical signal is transmitted to the subsequent sample and hold circuit through the signal path. During the low level of the gating window pulse, the contactless electronic switch is in the off state, the signal path is in the open state, and the subsequent sample-and-hold circuit holds the last sampled value. The driving buffer unit enhances the current driving capability of the gating window pulse to meet the gate or base driving requirements of the contactless electronic switch and ensures that the contactless electronic switch is quickly switched on and off at the edge of the gating window pulse. After the gating is completed, the hierarchical pulse disappears, the gating pulse terminates automatically, the gating window pulse ends, and the electronic switch group is directly turned off at the hardware level without the need for software instructions or software detection process.
9. The signal gating method based on event-triggered pulses according to claim 8, characterized in that, The driving buffer unit enhances the current driving capability of the gating window pulse to meet the gate or base driving requirements of the contactless electronic switch, ensuring the rapid switching of the contactless electronic switch at the edge of the gating window pulse, including: The drive buffer unit adopts a push-pull output structure, including a pull-up transistor and a pull-down transistor. The control terminals of the pull-up transistor and the pull-down transistor receive the gating window pulse. During the high level of the gating window pulse, the pull-up transistor is turned on, providing charging current to the gate of the contactless electronic switch, causing the gate voltage to rise above the turn-on threshold. During the low level of the gating window pulse, the pull-down transistor is turned on, providing a discharge current to the gate of the contactless electronic switch, causing the gate voltage to drop below the shutdown threshold.
10. The signal gating method based on event-triggered pulses according to claim 8, characterized in that, After gating is completed, the hierarchical pulses disappear, the gating pulses automatically terminate, and the gating window pulses end accordingly. The electronic switch group is directly turned off at the hardware level without the need for software instructions or software detection processes, including: After the gating process is completed, the input electrical signal falls back below the threshold of the threshold comparison stage, and the pulses at each stage disappear. After the graded pulse disappears, the pulse gating circuit no longer outputs gating pulses, and the gating pulses automatically terminate. After the gating pulse terminates, the gating window pulse also ends. After the gating window pulse ends, the contactless electronic switch completes the turn-off action, the signal path is cut off at the hardware level, and the subsequent sample-and-hold circuit stops receiving new data.
Citation Information
Patent Citations
Automatically shaping method with minimal transmission delay and circuit
CN101640525A
Efficient alternating-current power line zero-cross detection chip
CN122283223A
