Digital high and low frequency suppression triggering method of oscilloscope
By adopting digital high and low frequency suppression triggering method in the oscilloscope, using CIC filter and FIR filter technology, the stability problem of analog high and low frequency suppression scheme under high frequency noise interference is solved, and higher triggering accuracy and lower hardware resource consumption.
Patent Information
- Application Number
- CN202410970720.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-12
AI Technical Summary
Existing oscilloscopes are difficult to achieve stable triggering under high-frequency noise interference, and the simulated high- and low-frequency suppression scheme is limited by the comparator response speed and RC filter circuit performance, resulting in low trigger accuracy and inability to meet the needs of compact instruments.
Using digital high and low frequency suppression trigger method, the anti-aliasing decimation is performed by designing parallel and serial CIC filters in FPGAs to reduce the signal frequency, and using MATLAB to generate FIR low-pass filter coefficients for filtering, combining with upper computer control to achieve high frequency Or low frequency suppression trigger.
It improves trigger accuracy, reduces trigger jitter, reduces filter design difficulty and hardware resource consumption, and enhances the stability and efficiency of the system.
Smart Images

Figure CN118944634A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of signal processing, and more specifically, relates to a digital high and low frequency suppression triggering method for an oscilloscope. Background Art
[0002] In recent years, technical indicators such as oscilloscope sampling rate and bandwidth have been continuously improved. In order to meet the needs of users to accurately observe high-speed signals, the trigger system also needs more functions to meet the needs of different scenarios. As a broadband acquisition system, when the oscilloscope is measuring, all signals within its bandwidth will be sampled. Signals other than the signal to be measured will bring noise, which will interfere with the information of the signal to be measured, making it difficult for the oscilloscope to create a stable trigger. To solve this problem, high and low frequency suppression is needed to control the noise.
[0003] The original high and low frequency suppression scheme is to implement the trigger coupling function in the analog trigger circuit to suppress high and low frequencies, and to suppress low or high frequency noise by controlling the trigger signal to pass through the RC high-pass filter circuit or low-pass filter circuit. This method needs to be implemented in an analog method, and its accuracy is limited by the response speed of the comparator and the performance of the RC filter circuit itself. In addition, the comparator has the problem of hysteresis voltage setting, which will lead to the inability to take into account the high and low frequencies of the input signal, and the trigger deviation is large. There are also problems that are greatly affected by temperature, environmental noise, electromagnetic environment and device inconsistency. In actual use, the suppression effect will be worse. In addition, the analog trigger board is too large and is not suitable for compact instruments such as oscilloscopes. Digital triggering solves the shortcomings of analog triggering very well.
[0004] Digital trigger technology directly uses the parallel digital sampling data obtained by ADC sampling as the trigger source signal to directly perform trigger judgment. The comparison process of digital triggering is not implemented on the comparator of the traditional trigger channel, but inside the FPGA, through the design of logic circuits to complete the comparison of parallel multi-channel data. First, the FPGA receives the high-speed sampling data from the ADC, slows it down and receives it to the digital trigger module. The digital trigger module generates a digital trigger signal through the trigger processing judgment of the parallel multi-channel data, and finally generates a read-write enable signal to control the FIFO storage to orderly control the acquisition and storage of waveform data, so as to capture the waveform of interest to the user and stabilize the waveform. The digital trigger solution avoids the jitter caused by the comparator and the inconsistency error introduced by the different paths of the trigger signal and the ADC sampling data, solves the limitation of the internal clock frequency of the FPGA on the trigger accuracy, improves the trigger accuracy, reduces the trigger jitter, and makes the system efficient.
[0005] The impact of high and low frequency noise in the trigger system cannot be ignored. High and low frequency noise appears as messy spectral lines in the spectrum and as waveform glitches in the time domain. When the noise is too large, it will cause certain errors in the trigger or even erroneous triggering, interfering with the oscilloscope's acquisition of the signal of interest and making it impossible to effectively acquire the waveform.
[0006] At the same time, if the FIR low-pass filter is designed simply according to the high-speed ADC sampling index, the FIR design order is large at such a high sampling rate, which is difficult to implement in FPGA. The transition band of the filter is too narrow compared to the entire signal passband, and the filter order will be above the fifth power of ten, which consumes a lot of hardware resources and is difficult to implement. It is necessary to perform anti-aliasing extraction on the sampled signal to reduce its sampling rate before performing low-pass filtering. Summary of the invention
[0007] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a digital high and low frequency suppression trigger method for an oscilloscope, so that the acquisition system can shield the influence of high and low frequency noise and achieve stable triggering.
[0008] To achieve the above-mentioned object of the invention, the present invention provides a digital high and low frequency suppression triggering method for an oscilloscope, characterized in that it comprises the following steps:
[0009] (1) Set the relevant parameters of the oscilloscope;
[0010] Assume the system sampling rate of the oscilloscope is f, and the FPGA clock frequency is f1;
[0011] (2) Data collection;
[0012] The data receiving module receives the high-speed data stream sampled by the ADC and decelerates it to the clock domain of the FPGA to obtain The parallel sampling data is recorded as: {y1(n),y2(n),…,y N (n)}, n = 0, 1, 2, ...;
[0013] (3) Data preprocessing;
[0014] (3.1), design a parallel CIC filter with W levels, decimation factor N, and delay factor M. Its transfer function is:
[0015]
[0016] Wherein, z represents the Z domain;
[0017] (3.2), the parallel sampling data {y1(n), y2(n),…,y N(n)} is sent to the parallel CIC filter for N-fold anti-aliasing extraction filtering, thereby converting N parallel data into serial data y w (n);
[0018] (3.3), design a serial CIC filter with K levels, decimation factor R, and delay factor M. Its transfer function is:
[0019]
[0020] (3.4), for serial data y w (n) Perform R times anti-aliasing decimation filtering to obtain y k (n) = y w (Rn);
[0021] (3.5) The sampled data y after anti-aliasing serial extraction k (n) is divided into two paths, one path is input to the high frequency suppression module and enters step (4), and the other path is input to the low frequency suppression module and enters step (5);
[0022] (4) High frequency suppression of oscilloscope;
[0023] (4.1) Set the passband cutoff frequency f for high frequency suppression p and the stopband cutoff frequency f c ;
[0024] (4.2), according to the passband cutoff frequency f p and the stopband cutoff frequency f c Design the corresponding FIR low-pass filter coefficients;
[0025] (4.3) Convert the FIR low-pass filter coefficients into fixed-point numbers and then send them to the filter in the FPGA;
[0026] (4.4) The sampled data y after serial extraction is anti-aliased by the filter in the FPGA k (n) Perform filtering to obtain low-frequency data y e (n);
[0027] (5) Low frequency suppression of oscilloscope;
[0028] The sampled data y after anti-aliasing serial decimation k (n) and the low-frequency data y output by the high-frequency suppression module e (n) Input to the subtractor to obtain high-frequency data y h (n);
[0029] y h (n) = y k (n)-y e (n)
[0030] (6) High and low frequency suppression selection;
[0031] The control signal is sent from the host computer to control the data selector to output low-frequency data or high-frequency data and send it to the digital trigger module, thereby realizing high-frequency or low-frequency suppression triggering.
[0032] The object of the invention of the present invention is achieved in this way:
[0033] The present invention discloses a digital high-low frequency suppression triggering method for an oscilloscope. The method first reduces the speed of ADC sampling data to the FPGA clock frequency through serial-to-parallel conversion to obtain N-channel parallel data, and then designs a parallel CIC filter for anti-aliasing extraction to convert the N-channel data into serial data. A serial CIC filter is designed to extract the serial data at a high rate to reduce the difficulty of designing a post-stage filter. The required FIR low-pass filter coefficients are generated by MATLAB and sent to the filter in the FPGA, and the signal after serial extraction is filtered, and the signal with high-frequency components filtered out is sent to a trigger module to achieve high-frequency suppression. The signal after anti-aliasing extraction is subtracted from the signal passing through the low-pass filter, and the high-frequency components of the signal are obtained and sent to the trigger module to achieve low-frequency suppression. The user can control the data selector through a host computer to achieve high-frequency suppression or low-frequency suppression.
[0034] At the same time, the digital high and low frequency suppression triggering method of an oscilloscope of the present invention also has the following beneficial effects:
[0035] (1) The present invention reduces the signal frequency by anti-aliasing extraction, thereby reducing the difficulty of filter design and hardware resource consumption;
[0036] (2) Compared with the traditional analog trigger, the digital high and low frequency suppression trigger method designed by the present invention improves the trigger accuracy and reduces the trigger jitter. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a flowchart of a digital high and low frequency suppression triggering method of an oscilloscope of the present invention;
[0038] Figure 2 This is a schematic diagram of data integration processing for 10x anti-aliasing decimation filtering. DETAILED DESCRIPTION
[0039] The specific implementation of the present invention is described below in conjunction with the accompanying drawings so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when the detailed description of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.
[0040] Example
[0041] Figure 1 The invention discloses a flow chart of a digital high and low frequency suppression triggering method for an oscilloscope.
[0042] In this embodiment, if Figure 1 As shown, the present invention provides a digital high and low frequency suppression triggering method for an oscilloscope, comprising the following steps:
[0043] S1. Set the relevant parameters of the oscilloscope;
[0044] Assume that the system sampling rate of the oscilloscope is f = 2.5 GSPS, and the FPGA clock frequency is f1 = 250 MHz;
[0045] S2, data collection;
[0046] The data receiving module receives the high-speed data stream sampled by the ADC and decelerates it to the clock domain of the FPGA to obtain The parallel sampling data is recorded as: {y1(n),y2(n),…,y N (n)}, n = 0, 1, 2, ...;
[0047] S3, data preprocessing;
[0048] S3.1. Use Vivado to design a parallel CIC filter with W = 5 levels, decimation factor N = 10, and delay factor M = 1. Its transfer function is:
[0049]
[0050] Wherein, z represents the Z domain;
[0051] S3.2, parallel sampling data {y1(n), y2(n),…,y N (n)} is sent to the parallel CIC filter for N-fold anti-aliasing decimation filtering.
[0052] S3.2.1. In this embodiment, if Figure 2 As shown, a five-stage integrator is used to perform an integration operation on the sampled data first, and 10 parallel data of D1, D2, ..., D10 are input to the integrator. Each data corresponds to a register, D1 is the oldest data, and D10 is the latest data. Four clock cycles are set to process the sampled data to avoid metastable state caused by too long combinational logic.
[0053] S3.2.2, first, in the first clock cycle, add the 10 parallel data in pairs, and store the added sum in registers numbered 2, 4, 6, 8, and 10;
[0054] S3.2.3, in the second clock cycle, divide each 4-way data into a group in order, perform integration processing, and obtain the sum of D1, D1+D2, D1+D2+D3, D1+D2+D3+…+D4, and repeat this operation for each group. The third group of register data that is less than 4-way data is D9, D9+D10;
[0055] S3.2.4, continue the integration process in the third clock cycle to obtain: D1, the sum of D1 and D2, the sum of D1, D2 and D3, and so on until the sum of 10 parallel data;
[0056] S3.2.5. In the fourth clock cycle, add the 10-channel data to the integrated value of the data in the previous clock cycle. For the 10-channel parallel data in the cycle where D11 is located, the integrated value to be added is Sum(D1:D10), and for the cycle where D21 is located, the integrated value to be added is Sum(D1:D20), and the integrated value to be added in the cycle where D31 is located is Sum(D1:D30), and so on. Cascade the multi-stage integrator and take the 10th channel data of the last stage of the integrator as the extracted serial data, and obtain the final serial data through the 5-stage cascaded CIC filter, thereby converting the 10-channel parallel data into serial data y w (n);
[0057] S3.3. Use Vivado to design a serial CIC filter with K = 5 levels, decimation factor R = 500, and delay factor M = 1. Its transfer function is:
[0058]
[0059] S3.4, serial data y w (n) Perform R = 500 times anti-aliasing decimation filtering and reduce the signal sampling rate to 500KHz to obtain y k (n) = y w (Rn) to reduce the difficulty of post-stage FIR filter design and system hardware resource consumption
[0060] S3.5, the sampled data y after anti-aliasing serial extraction k (n) Split into two paths, one path is input to the high frequency suppression module, and the process goes to step S4, and the other path is input to the low frequency suppression module, and the process goes to step S5;
[0061] S4, high frequency suppression of oscilloscope;
[0062] S4.1, set the passband cutoff frequency f for high frequency suppression p =50kHz and stop band cutoff frequency f c =60kHz;
[0063] S4.2, according to the passband cutoff frequency f p and the stopband cutoff frequency f c Design the corresponding FIR low-pass filter coefficients in FDATOOL in MATLAB;
[0064] S4.3, convert the FIR low-pass filter coefficients into fixed-point numbers, and then send them to the filter in the FPGA;
[0065] S4.4, the sampled data y after serial extraction is anti-aliased by the filter in the FPGA k (n) Perform filtering to obtain low-frequency data y e (n);
[0066] S5, low frequency suppression of oscilloscope;
[0067] The sampled data y after anti-aliasing serial decimation k (n) and the low-frequency data y output by the high-frequency suppression module e (n) Input to the subtractor to obtain high-frequency data y h (n);
[0068] y h (n) = y k (n)-y e (n)
[0069] S6, high and low frequency suppression selection;
[0070] By sending control signals from the host computer, the data selector is controlled to output low-frequency data or high-frequency data and send it to the digital trigger module, thereby realizing high-frequency or low-frequency suppression triggering. Compared with traditional analog triggering, digital high and low frequency suppression effectively avoids the influence of the environment, effectively reduces trigger jitter and improves trigger accuracy.
[0071] Although the above describes the illustrative specific embodiments of the present invention to facilitate those skilled in the art to understand the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations using the concept of the present invention are protected.
Claims
1. A digital high and low frequency suppression triggering method for an oscilloscope, It is characterized in that The following steps are involved: (1) Set the relevant parameters of the oscilloscope; Assume that the system sampling rate of the oscilloscope is f and the FPGA clock frequency is f 1 ; (2) Data collection; The data receiving module receives the high-speed data stream sampled by the ADC and decelerates it to the clock domain of the FPGA to obtain The parallel sampling data is recorded as: 1 (n),y 2 (n),…,y N (n)}, n = 0, 1, 2, ...; (3) Data preprocessing; (3.1), design a parallel CIC filter with W levels, decimation factor N, and delay factor M. Its transfer function is: Wherein, z represents the Z domain; (3.2), the parallel sampling data {y 1 (n),y 2 (n),…,y N (n)} is sent to the parallel CIC filter for N-fold anti-aliasing extraction filtering, thereby converting N parallel data into serial data y w (n); (3.3), design a serial CIC filter with K levels, decimation factor R, and delay factor M. Its transfer function is: (3.4), for serial data y w (n) Perform R times anti-aliasing decimation filtering to obtain y k (n) = y w (Rn); (3.5) The sampled data y after anti-aliasing serial extraction k (n) is divided into two paths, one path is input to the high frequency suppression module and enters step (4), and the other path is input to the low frequency suppression module and enters step (5); (4) High frequency suppression of oscilloscope; (4.1) Set the passband cutoff frequency f for high frequency suppression p and the stopband cutoff frequency f c ; (4.2), according to the passband cutoff frequency f p and the stopband cutoff frequency f c Design the corresponding FIR low-pass filter coefficients; (4.3) Convert the FIR low-pass filter coefficients into fixed-point numbers and then send them to the filter in the FPGA; (4.4) The sampled data y after serial extraction is anti-aliased by the filter in the FPGA k (n) Perform filtering to obtain low-frequency data y e (n); (5) Low frequency suppression of oscilloscope; The sampled data y after anti-aliasing serial decimation k (n) and the low-frequency data y output by the high-frequency suppression module e (n) Input to the subtractor to obtain high-frequency data y h (n); and h (n)=y k (n)-y e (n) (6) High and low frequency suppression selection; The control signal is sent from the host computer to control the data selector to output low-frequency data or high-frequency data and send it to the digital trigger module, thereby realizing high-frequency or low-frequency suppression triggering.
