Signal processing system in oscilloscope, oscilloscope and signal processing method
By using cascading registers and accumulators in the oscilloscope for signal accumulation, the accuracy of sampling data is improved, and the problem of low accuracy of existing oscilloscopes is solved, and it is suitable for scenarios with weak signals.
Patent Information
- Application Number
- CN202011478023.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-15
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2040-12-15
AI Technical Summary
The sampling data of existing oscilloscopes are low and cannot effectively deal with scenarios with weak signals.
By setting cascading registers and accumulators in the oscilloscope, the accumulation of the digital sampled signal at the current time and the digital sampled signal at the next time is realized, the accumulated number of signal bits is amplified, and the resolution of the digital sampled signal is improved.
The sampling data accuracy of the oscilloscope is improved, the quantization resolution of the signal is enhanced, and the scenarios with weak signals are effectively handled.
Smart Images

Figure CN112600561B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of oscilloscopes, and in particular to a signal processing system in an oscilloscope, an oscilloscope, and a signal processing method in an oscilloscope. Background Art
[0002] At present, with the continuous development of automobile technology, there are more and more automobile electrical systems. Once a problem occurs in the system, troubleshooting is the first thing to solve. Signal measurement is the key to discovering problems, and oscilloscopes are the main measurement tools. Oscilloscopes can measure signal characteristics such as amplitude, frequency, phase, and spectrum. The deeper the storage depth of the oscilloscope, the more complete the data captured at one time, and it is easier to determine whether the signal is normal by analyzing the characteristics of the signal.
[0003] When performing signal analysis, existing oscilloscopes first need to capture analog signals, and then perform analog-to-digital signal conversion through ADC sampling. The higher the ADC sampling resolution, the lower the signal quantization distortion and the higher the signal-to-noise ratio in theory. However, the resolution and accuracy of current oscilloscopes are generally fixed, which is not suitable for scenarios with weak signals. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention provide a signal processing system in an oscilloscope, an oscilloscope, and a signal processing method in an oscilloscope, which are used to solve the problem of low accuracy of oscilloscope sampling data in the prior art.
[0005] According to one aspect of an embodiment of the present invention, a signal processing system in an oscilloscope is provided, which is applied to the oscilloscope, and the signal processing system includes a signal sampling module and at least one register accumulation module; the register accumulation module includes a first register, a second register and a first accumulator;
[0006] The signal sampling module is used to receive an analog signal and generate a digital sampling signal according to the analog signal sampling;
[0007] The first register is used to sequentially receive a first temporary sampling signal and a second temporary sampling signal, send the first temporary sampling signal to the first accumulator and the second register respectively, and send the second temporary sampling signal to the first accumulator; wherein the first temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at a first moment, and the second temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at a second moment; the second moment is a moment adjacent to the first moment;
[0008] The second register is used to receive the first temporarily stored sampling signal and send the first temporarily stored sampling signal to the first accumulator;
[0009] The first accumulator is used to accumulate the first temporarily stored sampling signal and the second temporarily stored sampling signal to obtain a first accumulated signal.
[0010] In an optional manner, the signal processing system further includes: a third register, a fourth register, a second accumulator and a third accumulator;
[0011] The third register is used to sequentially receive the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal sent by the signal sampling module, and send the fourth temporary sampling signal to the second accumulator, and send the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal to the fourth register; wherein the third temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at a third moment, and the fourth temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at a fourth moment;
[0012] The fourth register is used to receive the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal sent by the third register, send the third temporary sampling signal to the second accumulator, and send the first temporary sampling signal and the second temporary sampling signal to the first register;
[0013] The second accumulator is used to accumulate the third temporarily stored sampling signal and the fourth temporarily stored sampling signal to obtain a second accumulated signal;
[0014] The third accumulator is used to accumulate the first accumulated signal and the second accumulated signal to obtain a target accumulated signal.
[0015] In an optional manner, the oscilloscope includes a processor, and the first register, the second register, the third register, the fourth register, the first accumulator, the second accumulator and the third accumulator are all arranged in the processor;
[0016] The processor is further used to perform signal processing according to the target accumulated signal to obtain signal characteristics of the target accumulated signal.
[0017] In an optional manner, the clock excitation signals of the first register, the second register, the third register, the fourth register, the first accumulator, the second accumulator and the third accumulator are the same.
[0018] In an optional manner, the method further includes:
[0019] A detection module, used for calculating the amplitude of the digital sampling signal;
[0020] The determination module is used to determine whether the digital sampling signal is lower than a preset threshold value according to the amplitude, and when it is lower than the preset threshold value, send the first temporarily stored sampling signal to the third register.
[0021] In an optional manner, the determination module is further configured to send the first temporarily stored sampling signal to the processor when the amplitude is greater than or equal to the preset threshold;
[0022] The processor performs signal processing according to the first temporarily stored sampling signal to obtain signal characteristics of a target accumulated signal.
[0023] According to another aspect of an embodiment of the present invention, an oscilloscope is provided, and the oscilloscope includes the above-mentioned signal processing system.
[0024] According to another aspect of an embodiment of the present invention, a signal processing method in an oscilloscope is provided, comprising:
[0025] The following steps are involved:
[0026] The signal sampling module receives an analog signal and generates a digital sampling signal according to the analog signal sampling;
[0027] The first register receives the first temporary sampling signal and the second temporary sampling signal in sequence, sends the first temporary sampling signal to the first accumulator and the second register respectively, and sends the second temporary sampling signal to the first accumulator; wherein the first temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at the first moment, and the second temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at the second moment; the second moment is the moment adjacent to the first moment;
[0028] The second register receives the first temporarily stored sampling signal, and sends the first temporarily stored sampling signal to the first accumulator;
[0029] The first accumulator accumulates the first temporarily stored sampling signal and the second temporarily stored sampling signal to obtain a first accumulated signal.
[0030] In an optional manner, the method further includes the following steps:
[0031] The third register sequentially receives the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal sent by the signal sampling module, sends the fourth temporary sampling signal to the second accumulator, and sends the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal to the fourth register; wherein the third temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at the third moment, and the fourth temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at the fourth moment;
[0032] The fourth register receives the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal sent by the third register, sends the third temporary sampling signal to the second accumulator, and sends the first temporary sampling signal and the second temporary sampling signal to the first register;
[0033] The second accumulator accumulates the third temporarily stored sampling signal and the fourth temporarily stored sampling signal to obtain a second accumulated signal;
[0034] The third accumulator accumulates the first accumulated signal and the second accumulated signal to obtain a target accumulated signal.
[0035] In an optional manner, the processor performs signal processing according to the target accumulated signal to obtain a signal feature of the target accumulated signal.
[0036] The embodiment of the present invention, by setting cascaded registers and accumulators, can accumulate a digital sampling signal of a preset number of bits at the current moment with a digital sampling signal of a preset number of bits at a later moment, thereby amplifying the accumulated signal. The number of bits of the accumulated signal is greater than the preset number of bits, thereby increasing the number of bits of the digital sampling signal, thereby improving the resolution of the digital sampling signal, and ultimately achieving the beneficial effect of improving the accuracy of the oscilloscope sampling data.
[0037] Furthermore, by setting up a detection module and a determination module, flexible adjustments can be made for different sampling signals.
[0038] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0040] Figure 1 A schematic diagram showing the structure of a signal processing system in an oscilloscope provided by an embodiment of the present invention is shown;
[0041] Figure 2 A schematic diagram of the ADC sampling process is shown;
[0042] Figure 3 A schematic diagram showing the structure of a signal processing system in an oscilloscope provided by another embodiment of the present invention is shown;
[0043] Figure 4 A schematic diagram showing the structure of a signal processing system in an oscilloscope provided by another embodiment of the present invention is shown;
[0044] Figure 5 A schematic diagram of the structure of an oscilloscope provided by an embodiment of the present invention is shown;
[0045] Figure 6 A schematic flow chart of a signal processing method in an oscilloscope provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0046] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0047] First, the concepts involved in the acquisition of digital sampling signals are explained:
[0048] Number of bits of digital quantity: The analog-to-digital conversion process includes sampling, holding, quantization and encoding. Encoding is to encode the quantized signal into binary code output. Sample the analog signal, convert the sampled value obtained by sampling into a digital quantity, and give the conversion result in a certain encoding form. For example, 8-bit / 10-bit / 12-bit binary encoding can be used.
[0049] Resolution refers to the change in the output analog quantity (voltage or current) corresponding to the change in the least significant bit (LSB) of the input digital quantity. It reflects the minimum change value of the output analog quantity. The resolution has a certain relationship with the number of bits of the input digital quantity (the sampling signal input at each moment), which can be expressed as FS / 2^n. FS represents the full-scale input value, and n is the number of binary bits. For a full-scale of 5V, when an 8-bit DAC is used, the resolution is 5V / 256=19.5mV; when a 12-bit DAC is used, the resolution is 5V / 4096=1.22mV. Obviously, the more bits of the input digital quantity, the higher the resolution.
[0050] Therefore, when the number of bits of the input digital quantity increases, the resolution will increase, and the corresponding quantization error that affects the accuracy will decrease.
[0051] The embodiment of the present invention is based on the above principle. By setting the connection relationship between multiple registers and accumulators, the digital sampling signals of preset bits at different times are added to increase the number of bits of the digital sampling signals at each time, thereby improving the resolution and finally obtaining the effect of improving the accuracy. Since the sampling time interval of the oscilloscope is very small, generally at the picosecond level. For example, sampling is performed once every 100ps, so the difference between the sampling signals at each time is very small, so the superposition of signals will not cause the characteristics of the signal to change.
[0052] Figure 1 FIG. 1 shows a structural diagram of an embodiment of a signal processing system in an oscilloscope of the present invention, wherein the signal processing system is applied to the oscilloscope. Figure 1 As shown, the signal processing system 100 includes a signal sampling module 111 and at least one register accumulation module. The register accumulation module includes a first register 101, a second register 102 and a first accumulator 105. In the embodiment of the present invention, the clock excitation signal of the first register 101, the second register 102 and the first accumulator 105 is the same. Wherein:
[0053] The signal sampling module 111 is used to receive an analog signal and generate a digital sampling signal according to the sampling of the analog signal. Figure 2 The ADC sampling process in the embodiment of the present invention is shown. For the analog signal generated by the measured object, the analog signal can be converted into a discrete digital sampling signal through ADC sampling, which can be represented by a code with a preset number of bits; for example, for an 8-bit sampling accuracy, it can be represented by an 8-bit code. The acquisition process of the digital sampling signal is real-time and continuous.
[0054] The first register 101 is used to sequentially receive the first temporary sampling signal and the second temporary sampling signal, send the first temporary sampling signal to the first accumulator 105 and the second register 102 respectively, and send the second temporary sampling signal to the first accumulator 105; wherein the first temporary sampling signal is the digital sampling signal of the preset number of bits generated by the signal sampling module at the first moment, and the second temporary sampling signal is the digital sampling signal of the preset number of bits generated by the signal sampling module at the second moment; the second moment is the moment adjacent to the first moment. That is, after receiving the first temporary sampling signal, the first register 101 sends it to the first accumulator 105 and the second register 102. After a clock excitation signal, that is, at the second moment, after receiving the second temporary sampling signal, the second temporary sampling signal is sent to the first input port of the first accumulator 105, at which time the first temporary sampling signal stored in the first accumulator 105 at the previous clock excitation signal is replaced by the second temporary sampling signal of the current clock excitation signal.
[0055] The second register 102 is used to receive the first temporary sampling signal and send the first temporary sampling signal to the first accumulator 105. The first temporary sampling signal received by the second register 102 is sent to the second input port of the first accumulator 105 after a clock excitation signal.
[0056] The first accumulator 105 is used to accumulate the first temporary sampled signal and the second temporary sampled signal to obtain a first accumulated signal. At this time, under the current clock excitation signal, the first accumulator 105 simultaneously receives the first temporary sampled signal and the second temporary sampled signal, and accumulates the two to obtain the first accumulated signal.
[0057] The embodiment of the present invention sets a register accumulation module, and the first register 101 directly sends the second temporary sampling signal to the first accumulator 105, and at the same time, the first temporary sampling signal is temporarily stored by the second register 102, and then sent to the first accumulator 105, which is equivalent to delaying the first temporary sampling signal, so that the first temporary sampling signal is superimposed with the second temporary sampling signal, and the digital sampling signal (the first temporary sampling signal generated at the first moment and the second temporary sampling signal generated at the second moment) is processed, so that the first temporary sampling signal is amplified. Similarly, the temporary sampling signals at each subsequent moment are superimposed with the signals at the next moment or the previous moment, so that the first temporary sampling signal is amplified. In this way, on the one hand, the sampling accuracy of the ADC is equivalently improved; on the other hand, it is equivalent to window filtering, which effectively filters out high-frequency noise.
[0058] In an embodiment of the present invention, the oscilloscope further includes a processor. After obtaining the first accumulated signal, the oscilloscope is used to perform signal processing on the first accumulated signal to obtain a signal feature of the first accumulated signal.
[0059] In the embodiment of the present invention, the oscilloscope further comprises a display module. The display module is used to receive the signal feature and display it.
[0060] The embodiment of the present invention, by setting cascaded registers and accumulators, can accumulate a digital sampling signal of a preset number of bits at the current moment with a digital sampling signal of a preset number of bits at a later moment, thereby increasing the accumulated signal. The number of bits of the accumulated signal is greater than the preset number of bits, thereby increasing the number of bits of the digital sampling signal, thereby improving the resolution of the digital sampling signal, and ultimately achieving the beneficial effect of improving the accuracy of the oscilloscope sampling data.
[0061] Figure 3 The structural diagram of the signal processing system in the oscilloscope provided by another embodiment of the present invention is shown. In the embodiment of the present invention, the signal is amplified by a register accumulation module. That is, a superposition amplification is performed. Therefore, the signal sampling module 111 is directly connected to the input terminal D3 of the first register 101, the output terminal Q3 of the first register 101 is connected to the first input port of the first accumulator 105, the output terminal Q3 of the first register 101 is also connected to the input terminal D4 of the second register 102, the output port Q4 of the second register 102 is connected to the second input port of the first accumulator 105, and the output terminal of the first accumulator is connected to the input terminal D7 of the seventh register 110. The clock signals of the first register 101, the second register 102, the first accumulator 105 and the seventh register 110 are the same. The first accumulator 105 outputs the result through the seventh register 110.
[0062] In the embodiment of the present invention, the signal sampling module 111 can be an 8-bit digital sampling signal, and the first register 101 and the second register 102 are basic registers, which can be 9-bit registers, that is, when the rising edge of the clock CLK arrives, the first register 101 and the second register 102 respectively place 9-bit data in parallel. The first accumulator 105 can be a 9-bit accumulator. The signal sampling module 111 outputs the first temporary sampling signal as an 8-bit digital sampling signal generated at the first moment. The signal sampling module 111 sends the first temporary sampling signal generated at the first moment to the first register 101 in the first clock excitation signal. When the rising edge of the first clock excitation signal arrives, the first register 101 receives the 8-bit first temporary sampling signal, and when the rising edge of the second clock excitation signal arrives, the first temporary sampling signal is sent to the first accumulator 105 and the second register 102. When the rising edge of the second clock excitation signal arrives, the first register 101 receives the second temporary sampling signal, and the second register receives the first temporary sampling signal. When the rising edge of the third clock excitation signal arrives, the first register 101 receives the next temporary sampling signal and sends the second temporary sampling signal to the first accumulator 105; the first accumulator 105 outputs the first temporary sampling signal received by the second clock excitation signal, and receives the second temporary sampling signal at the same time, and the second register 102 receives the second temporary sampling signal and sends the first temporary sampling signal to the first accumulator 105; the first accumulator 105 receives the first temporary sampling signal and the second temporary sampling signal at the same time at the third clock excitation signal, and performs accumulation calculation to obtain the first accumulated signal. In the embodiment of the present invention, the first accumulated signal is output as the target accumulated signal. Among them, for the 8-bit binary digital sampling signal, after superposition, a 9-bit first accumulated signal is obtained.
[0063] After being temporarily stored in the seventh register 110, the first accumulated signal is output to the data processing unit of the processor, and the data processing unit of the processor performs signal processing according to the first accumulated signal to obtain signal characteristics of the target accumulated signal, wherein the signal characteristics include amplitude, frequency, phase, spectrum, etc. The processor may be an FPGA.
[0064] In the embodiment of the present invention, for an 8-bit digital sampling signal with an 8-bit sampling accuracy, if the peak-to-peak value of the analog signal input of the signal sampling module 111 is 2V, the 8-bit sampling accuracy is to divide 2V into 256 parts (2 to the 8th power), and the average accuracy of each part is 2V / 256, which is 0.0078125V, which is the ordinary ADC sampling resolution. Therefore, after the superposition of the first accumulator 105, it becomes a 9-bit digital sampling signal, and the average accuracy of each part is 2V / 516, which is 0.00390625V, that is, the resolution of the signal is equivalently enhanced.
[0065] The embodiment of the present invention, by setting cascaded registers and accumulators, can accumulate a digital sampling signal of a preset number of bits at the current moment with a digital sampling signal of a preset number of bits at a later moment, thereby increasing the accumulated signal. The number of bits of the accumulated signal is greater than the preset number of bits, thereby increasing the number of bits of the digital sampling signal, thereby improving the resolution of the digital sampling signal, and ultimately achieving the beneficial effect of improving the accuracy of the oscilloscope sampling data.
[0066] Figure 4 FIG. 2 is a schematic diagram showing the structure of a signal processing system in an oscilloscope provided by another embodiment of the present invention. In the embodiment of the present invention, the signal is amplified by two register accumulation modules, that is, the signal is amplified twice by superposition.
[0067] The output end of the signal sampling module 111 is connected to the input end D1 of the third register 103, the output end Q1 of the third register 103 is connected to the input end D2 of the fourth register and the first input end of the second accumulator 106, the output end Q2 of the fourth register 104 is respectively connected to the second input end of the second accumulator 106 and the input end D3 of the first register 101, the output end Q3 of the first register 101 is respectively connected to the first signal input end of the first accumulator 105 and the input end D4 of the second register 102, and the output end Q4 of the second register 102 is connected to the second signal input end of the first accumulator 105. The output end of the first accumulator 105 is connected to the input end D6 of the fifth register 108, the output end of the second accumulator 106 is connected to the input end D5 of the sixth register 107, the output end Q6 of the fifth register 108 and the output end Q5 of the sixth register 107 are respectively connected to the first input end and the second input end of the third accumulator 109. The output end of the third accumulator 109 is connected to the input end of the seventh register 110.
[0068] Specifically, in the first clock excitation signal, the signal sampling module 111 can be an 8-bit digital sampling signal, and the first register 101, the second register 102, the third register 103, the fourth register 104, the fifth register 108, the sixth register 107 and the seventh register 110 are all basic registers, which can be 9-bit registers, that is, when the rising edge of the clock CLK arrives, the registers are respectively placed in parallel with 9-bit data. The first accumulator 105, the second accumulator 106 and the third accumulator 109 can be 9-bit accumulators. The signal sampling module 111 outputs the first temporary sampling signal as an 8-bit digital sampling signal generated at the first moment. The signal sampling module 111 sends the first temporary sampling signal generated at the first moment to the third register 103 in the first clock excitation signal. When the rising edge of the first clock excitation signal arrives, the third register 103 receives the 8-bit first temporary sampling signal, and when the rising edge of the second clock excitation signal arrives, the first temporary sampling signal is sent to the second accumulator 106 and the fourth register 104. When the rising edge of the second clock excitation signal arrives, the third register 103 receives the second temporary sampling signal, and the fourth register 104 receives the first temporary sampling signal. When the rising edge of the third clock excitation signal arrives, the third register 101 receives the third temporary sampling signal, and sends the second temporary sampling signal to the second accumulator 106; the second accumulator 106 outputs the first temporary sampling signal received by the second clock excitation signal, and receives the second temporary sampling signal at the same time, and the fourth register 104 receives the second temporary sampling signal, and sends the first temporary sampling signal to the second accumulator 106 and the first register 101. When the rising edge of the fourth clock excitation signal arrives, the third register 103 receives the fourth temporary sampling signal, and sends the third temporary sampling signal to the second accumulator 106 and the fourth register 104 respectively, the fourth register 104 sends the second temporary sampling signal to the first register 101, and the first register 101 sends the first temporary sampling signal to the first accumulator 105 and the second register 102 respectively. When the rising edge of the fifth clock excitation signal arrives, the third register 103 receives the next temporary sampling signal and sends the fourth temporary sampling signal to the second accumulator 106, and the fourth register 104 also sends the third temporary sampling signal to the second accumulator 106; at the same time, the first register 101 sends the second temporary sampling signal to the first accumulator, and the second register 102 sends the first temporary sampling signal to the first accumulator 105; the first accumulator 105 accumulates the first temporary sampling signal and the second temporary sampling signal to obtain a first accumulated signal, and the second accumulator 106 accumulates the third temporary sampling signal and the fourth temporary sampling signal to obtain a second accumulated signal.
[0069] The second accumulated signal is sent to the first input end of the third accumulator 109 through the sixth register 107, and the first accumulated signal is sent to the second input end of the third accumulator 109 through the fifth register 108. The third accumulator 109 accumulates the first accumulated signal and the second accumulated signal to obtain the target accumulated signal output. In this way, the signal at each moment is superimposed once, thereby amplifying the signal and improving the signal resolution. Among them, for an 8-bit binary digital sampling signal, after 2 superpositions, a 10-bit target accumulated signal is obtained. After the target accumulated signal is temporarily stored through the seventh register 110, it is output to the data processing unit of the processor. The data processing unit of the processor performs signal processing according to the first accumulated signal to obtain the signal characteristics of the target accumulated signal, wherein the signal characteristics include amplitude, frequency, phase, spectrum and other characteristics.
[0070] In the embodiment of the present invention, the oscilloscope includes a processor, and the first register 101, the second register 102, the third register 103, the fourth register 104, the first accumulator 105, the second accumulator 106 and the third accumulator 109 are all arranged in the processor, and can be implemented by using existing registers and accumulators in the processor. The processor can be an FPGA.
[0071] In an embodiment of the present invention, the signal processing system further includes:
[0072] A detection module, used for calculating the amplitude of the digital sampling signal;
[0073] A determination module, configured to determine whether the digital sampling signal is lower than a preset threshold value according to the amplitude, and when it is lower than the preset threshold value, send the first temporary sampling signal to the third register. The determination module is also configured to send the first temporary sampling signal to the processor when the amplitude is higher than or equal to the preset threshold value;
[0074] The processor performs signal processing according to the first temporarily stored sampling signal to obtain signal characteristics of a target accumulated signal.
[0075] That is, the embodiment of the present invention also determines whether the resolution or signal strength of the digital sampling signal is too low by setting a detection module and a determination module. When it is too low, the register accumulation module of the embodiment of the present invention performs signal amplification and noise filtering to improve the resolution; when it is within the normal range, the data processing unit of the processor can be selected to directly send the first temporary sampling signal to perform signal processing according to the first accumulated signal to obtain the signal characteristics of the target accumulated signal.
[0076] The embodiment of the present invention can accumulate the digital sampling signal at the current moment with the digital sampling signal at the following moment by setting cascaded registers and accumulators, thereby achieving the effect of amplifying the digital sampling signal, increasing the number of bits of the digital sampling signal at each moment, and ultimately achieving the beneficial effect of improving the accuracy of the oscilloscope sampling data.
[0077] Furthermore, by setting up a detection module and a determination module, flexible adjustments can be made for different sampling signals.
[0078] Figure 5 FIG. 2 shows a schematic diagram of the structure of an oscilloscope embodiment of the present invention. Figure 5 As shown, the oscilloscope 10 includes the above-mentioned signal processing system 100. The signal processing system 100 in the oscilloscope 10 of the embodiment of the present invention has all the features in the above-mentioned embodiment, which will not be described in detail here.
[0079] The embodiment of the present invention can accumulate the digital sampling signal at the current moment with the digital sampling signal at the next moment by setting cascaded registers and accumulators, thereby achieving the effect of amplifying the digital sampling signal, and finally achieving the beneficial effect of improving the accuracy of the oscilloscope sampling data.
[0080] Furthermore, by setting up a detection module and a determination module, flexible adjustments can be made for different sampling signals.
[0081] Figure 6 The flowchart of the signal processing method in the oscilloscope of the present invention is shown. The signal processing method is applied to the oscilloscope. The signal processing method of the present invention is based on the signal processing system of the above embodiment. Figure 6 As shown, the signal processing method includes:
[0082] Step 110: The signal sampling module receives an analog signal and generates a digital sampling signal according to the analog signal sampling.
[0083] Step 120: The first register receives the first temporary sampling signal and the second temporary sampling signal in sequence, sends the first temporary sampling signal to the first accumulator and the second register respectively, and sends the second temporary sampling signal to the first accumulator; wherein the first temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at the first moment, and the second temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at the second moment; the second moment is the moment adjacent to the first moment.
[0084] Step 130: The second register receives the first temporarily stored sampling signal, and sends the first temporarily stored sampling signal to the first accumulator.
[0085] Step 140: A first accumulator accumulates the first temporarily stored sampling signal and the second temporarily stored sampling signal to obtain a first accumulated signal.
[0086] The signal processing method in the oscilloscope of the embodiment of the present invention further includes the following steps:
[0087] The third register receives the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal sent by the signal sampling module in sequence, and sends the fourth temporary sampling signal to the second accumulator, and sends the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal to the fourth register; wherein the third temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at the third moment, and the fourth temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at the fourth moment.
[0088] The fourth register receives the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal sent by the third register, sends the third temporary sampling signal to the second accumulator, and sends the first temporary sampling signal and the second temporary sampling signal to the first register.
[0089] The second accumulator accumulates the third temporarily stored sampling signal and the fourth temporarily stored sampling signal to obtain a second accumulated signal.
[0090] The third accumulator accumulates the first accumulated signal and the second accumulated signal to obtain a target accumulated signal.
[0091] The specific steps of the signal processing method in the embodiment of the present invention are the same as the working process of the signal processing system in the above method embodiment, and will not be repeated here.
[0092] The embodiment of the present invention can accumulate the digital sampling signal at the current moment with the digital sampling signal at the next moment by setting cascaded registers and accumulators, thereby achieving the effect of amplifying the digital sampling signal, and finally achieving the beneficial effect of improving the accuracy of the oscilloscope sampling data.
[0093] Furthermore, by setting up a detection module and a determination module, flexible adjustments can be made for different sampling signals.
[0094] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description made to specific languages above is for disclosing the best mode of the present invention.
[0095] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0096] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed invention requires more features than those expressly recited in each claim.
[0097] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0098] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A signal processing system in an oscilloscope, characterized in that: Applied in an oscilloscope, the signal processing system comprises a signal sampling module and at least one register accumulation module; the register accumulation module comprises a first register, a second register and a first accumulator; The signal sampling module is used to receive an analog signal and generate a digital sampling signal according to the analog signal sampling; The first register is used to receive the first temporary sampling signal when the rising edge of the first clock excitation signal arrives, receive the second temporary sampling signal when the rising edge of the second clock excitation signal arrives, and send the first temporary sampling signal to the first accumulator and the second register respectively, and send the second temporary sampling signal to the second register and the first accumulator when the rising edge of the third clock excitation signal arrives; wherein, the first temporary sampling signal is the digital sampling signal of the preset number of bits generated by the signal sampling module at the first moment, and the second temporary sampling signal is the digital sampling signal of the preset number of bits generated by the signal sampling module at the second moment; the second moment is the moment adjacent to the first moment; The second register is used to receive the first temporary sampling signal when the rising edge of the second clock excitation signal arrives, receive the second temporary sampling signal transmitted by the first register when the rising edge of the third clock excitation signal arrives, and send the first temporary sampling signal received at the time of the second clock excitation signal to the first accumulator; The first accumulator is used to output the first temporary sampling signal received during the second clock excitation signal when the rising edge of the third clock excitation signal arrives, and to accumulate the second temporary sampling signal transmitted by the first register with the first temporary sampling signal transmitted by the second register to obtain a first accumulated signal.
2. The signal processing system according to claim 1, characterized in that The signal processing system further includes: a third register, a fourth register, a second accumulator and a third accumulator; The third register is used to sequentially receive the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal sent by the signal sampling module, and send the fourth temporary sampling signal to the second accumulator, and send the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal to the fourth register; wherein the third temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at a third moment, and the fourth temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at a fourth moment; The fourth register is used to receive the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal sent by the third register, send the third temporary sampling signal to the second accumulator, and send the first temporary sampling signal and the second temporary sampling signal to the first register; The second accumulator is used to accumulate the third temporarily stored sampling signal and the fourth temporarily stored sampling signal to obtain a second accumulated signal; The third accumulator is used to accumulate the first accumulated signal and the second accumulated signal to obtain a target accumulated signal.
3. The signal processing system according to claim 2, characterized in that The oscilloscope comprises a processor, wherein the first register, the second register, the third register, the fourth register, the first accumulator, the second accumulator and the third accumulator are all arranged in the processor; The processor is further used to perform signal processing according to the target accumulated signal to obtain signal characteristics of the target accumulated signal.
4. The signal processing system according to claim 3, characterized in that: The clock excitation signals of the first register, the second register, the third register, the fourth register, the first accumulator, the second accumulator and the third accumulator are the same.
5. The signal processing system according to claim 3, characterized in that: Also includes: A detection module, used for calculating the amplitude of the digital sampling signal; The determination module is used to determine whether the digital sampling signal is lower than a preset threshold value according to the amplitude, and when it is lower than the preset threshold value, send the first temporarily stored sampling signal to the third register.
6. The signal processing system according to claim 5, characterized in that The determination module is further configured to send the first temporarily stored sampling signal to the processor when the amplitude is greater than or equal to the preset threshold; The processor performs signal processing according to the first temporarily stored sampling signal to obtain signal characteristics of a target accumulated signal.
7. An oscilloscope, characterized in that: The oscilloscope comprises the signal processing system according to any one of claims 1-6.
8. A signal processing method in an oscilloscope, characterized in that: The following steps are involved: The signal sampling module receives an analog signal and generates a digital sampling signal according to the analog signal sampling; The first register receives the first temporary sampling signal when the rising edge of the first clock excitation signal arrives, receives the second temporary sampling signal when the rising edge of the second clock excitation signal arrives, and sends the first temporary sampling signal to the first accumulator and the second register respectively, and sends the second temporary sampling signal to the second register and the first accumulator when the rising edge of the third clock excitation signal arrives; wherein, the first temporary sampling signal is the digital sampling signal of the preset number of bits generated by the signal sampling module at the first moment, and the second temporary sampling signal is the digital sampling signal of the preset number of bits generated by the signal sampling module at the second moment; the second moment is the moment adjacent to the first moment; The second register receives the first temporary sampling signal when the rising edge of the second clock excitation signal arrives, receives the second temporary sampling signal transmitted by the first register when the rising edge of the third clock excitation signal arrives, and sends the first temporary sampling signal received at the time of the second clock excitation signal to the first accumulator; When the rising edge of the third clock excitation signal arrives, the first accumulator outputs the first temporary sampling signal received during the second clock excitation signal, and accumulates the second temporary sampling signal transmitted by the first register with the first temporary sampling signal transmitted by the second register to obtain a first accumulated signal.
9. The method according to claim 8, characterized in that The following steps are also included: The third register sequentially receives the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal sent by the signal sampling module, sends the fourth temporary sampling signal to the second accumulator, and sends the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal to the fourth register; wherein the third temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at the third moment, and the fourth temporary sampling signal is the digital sampling signal with a preset number of bits generated by the signal sampling module at the fourth moment; The fourth register receives the first temporary sampling signal, the second temporary sampling signal, the third temporary sampling signal and the fourth temporary sampling signal sent by the third register, sends the third temporary sampling signal to the second accumulator, and sends the first temporary sampling signal and the second temporary sampling signal to the first register; The second accumulator accumulates the third temporarily stored sampling signal and the fourth temporarily stored sampling signal to obtain a second accumulated signal; The third accumulator accumulates the first accumulated signal and the second accumulated signal to obtain a target accumulated signal.
10. The method according to claim 9, characterized in that The processor performs signal processing according to the target accumulated signal to obtain a signal feature of the target accumulated signal.
