A method for setting threshold level of mixed signal logic analyzer
Through a mixed signal logic analyzer to calculate and set the threshold level within one signal cycle, the problems of manual setting errors and inefficiency in the prior art are solved, automated and efficient threshold level settings are realized, and measurement accuracy is improved. efficiency.
Patent Information
- Application Number
- CN202010909799.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-02
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2040-09-02
AI Technical Summary
Existing logic analyzers have problems such as artificial negligence, high time-consuming and multi-operating level loopholes when setting threshold levels, resulting in measurement failure and inefficiency.
Separate the mixed signal through a mixed signal logic analyzer, convert it into an analog signal, detect the high and low levels of the signal cycle, calculate the average value as the threshold level, and automatically set it within one signal cycle, reduce manual intervention and improve efficiency.
It realizes automatic calculation of threshold levels within one signal cycle, improves measurement efficiency and accuracy, reduces human errors, and can handle multiple signal channels simultaneously.
Smart Images

Figure CN112104367B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic signal measurement, and in particular to a logic analyzer capable of processing mixed signals. The logic analyzer can calculate a threshold level based on an analog part of the mixed signal, and then use the threshold level to process a digital part of the mixed signal. Specifically, the present invention relates to a threshold level setting method for a mixed signal logic analyzer. Background Art
[0002] Due to the popularity of digital signals and digital communication protocols, there is an increasing demand for using logic analyzers to analyze signals. However, the basic principle of a logic analyzer is to use a comparator-type circuit to convert digital signals into logic 0 and logic 1 signals. At this time, the level value required to set the comparator is the so-called threshold level, which is very important for the front-end circuit of the logic analyzer to obtain logic signals. Once the threshold level is set incorrectly, the logic 0 and logic 1 signals cannot be correctly distinguished, which will cause the logic analyzer to capture incorrect waveform data.
[0003] The threshold level is currently set manually by gradual adjustment. People using logic analyzers need to use the following methods to set the threshold level:
[0004] (1) When the level of the signal to be measured is known, calculate the appropriate threshold level for manual input setting;
[0005] (2) When the level of the signal to be measured is unknown, use an electric meter / oscilloscope or similar device that can measure the level to first confirm the level and then calculate the appropriate threshold level for setting.
[0006] Please refer to U.S. Patent No. US20100070221A1 "System and Method for Sample Point Analysis with Threshold Setting", which discloses a signal analysis system that can be used to analyze the threshold setting of analog signals. According to the content disclosed in the patent, the patent uses a logic analyzer to measure eye diagrams, continuously adjusts the range of the threshold, repeatedly captures signals in a cyclic manner to analyze the waveform, and then obtains the actual threshold level after multiple corrections.
[0007] Although the above threshold level setting methods can solve the need to set the threshold level, the above conditions all have common shortcomings and will cause the logic analyzer to fail in measurement, such as:
[0008] (1) Due to current digital circuit design, the digital signals to be measured on the same circuit board often do not use only one operating level. Therefore, it is easy to fail to confirm all the operating levels or to fail to measure a certain operating level, which will lead to loopholes in the calculation before measurement.
[0009] (2) As the number of channels connected to the circuit to be tested increases, there will be multiple sets of threshold levels to be set at the same time, and it is easy to miss a setting;
[0010] (3) The above settings are all adjusted manually. If forgotten, measurement failure will occur. The human error factor is high, and the setting time also takes a lot of time, which affects the measurement efficiency of the overall circuit.
[0011] In view of the above problems, the inventor has conducted research and improvement on logic analyzers based on years of experience in related industries. Therefore, the main purpose of the present invention is to provide a threshold level setting method for a mixed signal logic analyzer that can obtain the threshold level of a mixed signal in one signal cycle. Summary of the invention
[0012] The technical problem to be solved by the present invention is to overcome the above technical defects and provide a threshold level setting method for a mixed signal logic analyzer.
[0013] In order to solve the above problems, the technical solution of the present invention is: a threshold level setting method for a mixed signal logic analyzer, comprising the following steps: a mixed signal splitting step, an analog signal conversion step, a level detection step in a first signal cycle, and a threshold level acquisition step;
[0014] The mixed signal shunting step includes: after the mixed signal logic analyzer captures the mixed signal, the mixed signal logic analyzer identifies the signal type of the mixed signal, so that the mixed signal is shunted into an analog signal path and a digital signal path;
[0015] The analog signal conversion step includes: the mixed signal logic analyzer captures the first analog signal of the mixed signal through the analog signal path, and converts the first analog signal into signal processing data, and transmits it to the signal processing module of the mixed signal logic analyzer;
[0016] The step of detecting the level in the first signal cycle includes: in the first signal cycle, the signal processing module detects the high level value and the low level value of the first signal cycle;
[0017] The step of obtaining a threshold level includes: after the signal processing module captures the high level value and the low level value, the signal processing module obtains a threshold level based on the high level value and the low level value.
[0018] As an improvement, the signal processing module uses an average value of the high level value and the low level value as the threshold level.
[0019] As an improvement, the signal processing module may further transmit the threshold level to the comparator module, so that the comparator module may perform comparison and trigger operation based on the threshold level.
[0020] As an improvement, the analog signal conversion module converts the first analog signal of the mixed signal into a second digital signal, and then converts the second digital signal into the signal processing data.
[0021] As an improvement, after the mixed signal logic analyzer captures the mixed signal, the mixed signal is transmitted via a single signal input channel.
[0022] As an improvement, the signal processing module selects a mode higher than the average in the entire waveform based on the signal processing data, and can calculate the high-value level value by numerical comparison or histogram.
[0023] As an improvement, the signal processing module selects a mode lower than the average in the entire waveform based on the signal processing data, and can calculate the low-value level value by numerical comparison or histogram.
[0024] As an improvement, the signal processing module has a threshold level calculation unit, and the threshold level calculation unit is used to calculate the threshold level.
[0025] As an improvement, the signal processing module is a field programmable gate array.
[0026] As an improvement, the mixed signal logic analyzer processes a plurality of the mixed signals simultaneously and calculates the threshold level of each of the mixed signals respectively.
[0027] The advantages of the present invention over the prior art are as follows: the threshold level setting method of the mixed signal logic analyzer in the present invention mainly obtains a mixed signal through the mixed signal logic analyzer, the mixed signal includes a first digital signal and a first analog signal, further, the mixed signal logic analyzer can separate the digital / analog signal, the mixed signal logic analyzer can further convert the separated first analog signal into a second digital signal, and then detect the converted second digital signal, the mixed signal logic analyzer can calculate the value of the threshold level in one signal cycle, so that the mixed signal logic analyzer can trigger the digital signal part of the mixed signal with the calculated threshold level; accordingly, the mixed signal logic analyzer of the present invention can simultaneously process mixed signals containing digital / analog components, and the mixed signal logic analyzer can automatically calculate the value of the threshold level in one signal cycle, which can greatly improve the overall measurement efficiency, and further, the mixed signal logic analyzer can simultaneously process mixed signals of multiple signal channels, and calculate appropriate threshold levels for each mixed signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of the composition of the present invention Figure 1 .
[0029] Figure 2 It is an implementation flow chart of the present invention.
[0030] Figure 3 This is an implementation diagram of the present invention. Figure 1 .
[0031] Figure 4 This is an implementation diagram of the present invention. Figure 2 .
[0032] Figure 5 This is an implementation diagram of the present invention. Figure 3 .
[0033] Figure 6 This is an implementation diagram of the present invention. Figure 4 .
[0034] As shown in the figure: 10, mixed signal logic analyzer, 101, signal processing module, 1011, threshold level unit, 102, signal input channel, 103, comparator module, 104, analog signal conversion module, 11, device to be tested, 21, mixed signal collection step, 22, mixed signal diversion step, 23, analog signal conversion step, 24, level detection step with the first signal cycle, 25, threshold level acquisition step, PA, analog signal path, D1, signal processing data, Vt, threshold level, PD, digital signal path, S1, mixed signal. DETAILED DESCRIPTION
[0035] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings, wherein the same components are represented by the same reference numerals.
[0036] It should be noted that the words "front", "rear", "left", "right", "up" and "down" used in the following description refer to directions in the drawings, and the words "inside" and "outside" refer to directions toward or away from the geometric center of a specific component, respectively.
[0037] In order to make the contents of the present invention more clearly understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0038] See also Figure 1 The mixed signal logic analyzer 10 of the present invention includes a signal processing module 101, a signal input channel 102, a comparator module 103 and an analog signal conversion module 104 which are connected to the signal processing module 101; wherein:
[0039] (1) The signal processing module 101 includes a threshold level calculation unit 1011, which can detect the high level and low level of the signal in a signal cycle, and calculate the value of the threshold level based on the detected high and low levels. The signal processing module 101 can be a field editable logic gate array, wherein the signal processed by the signal processing module 101 is a mixed signal, and the mixed signal is an electronic signal with both digital and analog characteristics; the signal processing module 101 can simultaneously process input signals of 8 to 16 or more channels, that is, it can simultaneously calculate the individual threshold level of each channel. If multiple channels require a common threshold level, the processing module can calculate a suitable common threshold level from the different threshold levels of the multiple channels;
[0040] (2) The signal input channel 102 is connected to the signal processing module 101, and the signal input channel 102 can receive mixed signals, so that the signal processing module 101 can simultaneously receive digital signals and analog signals, i.e., mixed signals, in a single channel;
[0041] (3) The comparator module 103 can determine the high and low potentials of the digital signal. A voltage higher than the reference level is a high potential, and a voltage lower than the reference level is a low potential, thereby forming a digital waveform between the high and low potentials.
[0042] (4) The analog signal conversion module 104 can convert analog signals into digital signals, and can be an analog-to-digital converter.
[0043] See also Figure 2, the threshold level setting method of the present invention is as follows:
[0044] (1) Capture mixed signal step 21: Please refer to Figure 3 When implemented, the mixed signal logic analyzer 10 of the present invention is electrically connected to a device under test 11, and the mixed signal logic analyzer 10 collects mixed signals of the device under test 11 through at least one probe. After the probe captures a mixed signal S1 of the device under test 11, the mixed signal S1 can be input into the mixed signal logic analyzer 10 through the probe, so that the mixed signal logic analyzer 10 processes the mixed signal;
[0045] (2) Mixed signal splitting step 22: Please refer to Figure 4 After the mixed signal logic analyzer 10 captures the mixed signal S1, the mixed signal S1 is transmitted through a single signal input channel 102. After the mixed signal logic analyzer 10 receives the mixed signal S1 through the signal input channel 102, the mixed signal can be further divided into an analog signal path PA and a digital signal path PD in the signal input channel 102, so that the mixed signal logic analyzer 10 can process different paths, namely, the analog signal path PA and the digital signal path PD respectively;
[0046] (3) Analog signal conversion step 23: Please refer to Figure 5 After the mixed signal S1 is shunted to the analog signal path PA, the analog signal conversion module 104 captures the mixed signal S1 through the analog signal path PA, and converts the first analog signal of the mixed signal S1 into a second digital signal, wherein the conversion of the analog signal into the digital signal is a processing process of the analog-to-digital converter, which will not be described in detail here. Furthermore, after the signal processing module 101 captures the second digital signal, it can perform a signal format conversion process on the second digital signal, thereby converting the second digital signal into signal processing data D1, and transmitting the signal processing data D1 to the signal processing module 101;
[0047] (4) Detect the level in the first signal cycle Step 24: Please refer to Figure 6 In the first signal cycle, after the signal processing module 101 captures the signal processing data D1, the threshold level calculation unit 1011 of the signal processing module 101 detects the high level value and the low level value of the signal processing data D1 in the first signal cycle;
[0048] (5) Obtaining the threshold level Step 25: When the threshold level calculation unit 1011 captures the high level value and the low level value, the threshold level calculation unit 1011 calculates the threshold level Vt based on the threshold level calculation formula, wherein the threshold level calculation formula is:
[0049] Threshold level (V Threshold) = (V High + V Low) / 2
[0050] V High=High Voltage
[0051] V Low=Low Voltage
[0052] High level value: a mode higher than the average value is selected in the entire waveform, and the high level value can be calculated by numerical comparison or histogram; low level value: a mode lower than the average value is selected in the entire waveform, and the low level value can be calculated by numerical comparison or histogram; after the threshold level calculation unit 1011 calculates the threshold level Vt, the threshold level calculation unit 1011 can further transmit the threshold level Vt to the comparator module 103, so that the comparator module 103 can compare and trigger the mixed signal S1, that is, the digital signal, at the threshold level Vt.
[0053] As mentioned above, the mixed signal logic analyzer of the present invention can also increase signal input channels so that the mixed signal logic analyzer can receive multiple mixed signals at the same time. After the mixed signal logic analyzer captures mixed signals of different channels, the signal processing module calculates threshold levels respectively according to the mixed signals of different channels, so that the mixed signal logic analyzer can select individually set threshold levels according to different mixed signals for subsequent signal processing.
[0054] In summary, the mixed signal logic analyzer and the threshold level setting method of the mixed signal logic analyzer of the present invention mainly obtain the mixed signal through the mixed signal logic analyzer. Furthermore, after the mixed signal logic analyzer separates the first digital signal and the first analog signal, the mixed signal logic analyzer can convert the first analog signal part into signal processing data in one signal cycle, and detect the high level value and the low level value of the signal processing data, and calculate the value of the threshold level from the high level value and the low level value. Accordingly, after the present invention is implemented, it can indeed achieve the purpose of providing a threshold level setting method of a mixed signal logic analyzer that can obtain the threshold level of the mixed signal in one signal cycle.
[0055] The present invention and its implementation methods are described above, and such description is not restrictive. The drawings show only one implementation method of the present invention, and the actual structure is not limited thereto. In general, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. A method for setting a threshold level of a mixed signal logic analyzer, characterized in that: The following steps are involved: A mixed signal splitting step, an analog signal conversion step, a level detection step in a first signal cycle, and a threshold level acquisition step; The mixed signal shunting step includes: after the mixed signal logic analyzer captures the mixed signal, the mixed signal logic analyzer identifies the signal type of the mixed signal, so that the mixed signal is shunted into an analog signal path and a digital signal path; The analog signal conversion step includes: the mixed signal logic analyzer captures the first analog signal of the mixed signal through the analog signal path, and converts the first analog signal into signal processing data, and transmits it to the signal processing module of the mixed signal logic analyzer; The step of detecting the level in the first signal cycle includes: in the first signal cycle, the signal processing module detects the high level value and the low level value of the first signal cycle; The step of obtaining a threshold level includes: after the signal processing module captures the high level value and the low level value, the signal processing module obtains a threshold level based on the high level value and the low level value.
2. The method for setting a threshold level of a mixed signal logic analyzer according to claim 1, characterized in that: The signal processing module uses an average value of the high level value and the low level value as the threshold level.
3. The threshold level setting method of a mixed signal logic analyzer according to claim 1, characterized in that: The signal processing module may further transmit the threshold level to the comparator module, so that the comparator module may perform comparison and trigger operation based on the threshold level.
4. The method for setting a threshold level of a mixed signal logic analyzer according to claim 1, characterized in that: The analog signal conversion module converts the first analog signal of the mixed signal into a second digital signal, and then converts the second digital signal into the signal processing data.
5. The method for setting a threshold level of a mixed signal logic analyzer according to claim 1, characterized in that: After the mixed signal logic analyzer captures the mixed signal, the mixed signal is transmitted through a single signal input channel.
6. The method for setting a threshold level of a mixed signal logic analyzer according to claim 1, characterized in that: The signal processing module selects a mode higher than the average value in the entire waveform based on the signal processing data, and can calculate the high-level value by numerical comparison or histogram.
7. The threshold level setting method of a mixed signal logic analyzer according to claim 1, characterized in that: The signal processing module selects a mode lower than the average value in the entire waveform based on the signal processing data, and can calculate the low-level value by numerical comparison or histogram.
8. The method for setting a threshold level of a mixed signal logic analyzer according to claim 1, characterized in that: The signal processing module has a threshold level calculation unit, and the threshold level calculation unit is used to calculate the threshold level.
9. The method for setting a threshold level of a mixed signal logic analyzer according to claim 1, characterized in that: The signal processing module is a Field Programmable Gate Array (FPGA).
10. The method for setting a threshold level of a mixed signal logic analyzer according to claim 1, characterized in that: The mixed signal logic analyzer processes a plurality of the mixed signals simultaneously and calculates the threshold level of each of the mixed signals respectively.
Citation Information
Patent Citations
System and Method for Sample Point Analysis with Threshold Setting
US20100070221A1
Mixed signal acquisition system for a measurement instrument
CN102033149A
Analog bandwidth measurement method and device for logic analyzer probe
CN106569162A
