CN103901243B - A kind of oscillograph with high triggering precision - Google Patents
A kind of oscillograph with high triggering precision Download PDFInfo
- Publication number
- CN103901243B CN103901243B CN201210573118.4A CN201210573118A CN103901243B CN 103901243 B CN103901243 B CN 103901243B CN 201210573118 A CN201210573118 A CN 201210573118A CN 103901243 B CN103901243 B CN 103901243B
- Authority
- CN
- China
- Prior art keywords
- comparison signal
- level
- data
- roads
- low level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention provides a kind of oscillographs with high triggering precision, including:Setting unit, for comparative level to be arranged;Data sampling unit obtains the roads n sampled data, n >=1 for carrying out digital sample to measured signal;Digital comparing unit, for according to the first high level and the first low level, respectively to comparing processing into line level per sampled data all the way, generating the first comparison signal of the roads n;And according to the second high level and the second low level, respectively to comparing processing into line level per sampled data all the way, the second comparison signal of the roads n is generated;First high level is less than or equal to the second low level;Trigger control unit generates trigger signal for carrying out triggering logical process according to comparison signal.The present invention compares processing to sampled data using four comparative levels into line level, can not only eliminate noise, but also can reduce time error, so that the desired trigger position of user is more nearly with the trigger position actually generated, improves the precision of triggering.
Description
Technical field
The present invention relates to test field of measuring technique, more particularly to a kind of oscillograph with high triggering precision.
Background technology
Oscillograph is a kind of electronic measuring instrument that purposes is very extensive, it can be converted into electric signal invisible to the human eye
The visible waveform image of human eye, the change procedure of various electric signals is studied convenient for people.Digital storage oscilloscope (Digital
Storage oscilloscopes, DSO), abbreviation digital oscilloscope is that measured signal is converted to by analog-digital converter
Digital information is simultaneously stored, and is shown using the data reconstruction waveform signal of storage and on the screen of oscillograph.
Triggering is one of Core Feature of oscillograph, so-called triggering, refers to that certain trigger condition is arranged as desired.When
When waveform in measured signal meets the trigger condition, oscillograph captures the waveform and its corresponding part immediately, and is shown in
On screen.Has there is digital triggering in current digital oscilloscope, that is, the processing of trigger signal and the extension of triggering mode
It can be completed by numerical portion.
For example, Chinese patent CN 200710089788.8 " digital trigger circuit ", discloses a kind of digital trigger
100, which can be used for digital oscilloscope.Referring to Fig.1, the data sampling unit 101 of digital trigger 100 is right
Measured signal a carries out data sampling, obtains digitized sampled data b;Digital comparing unit 102 is by sampled data b compared with
Level is compared, and obtains comparison signal c;Trigger element 103 patrols comparison signal c according to the triggering type of user setting
Processing is collected, trigger signal d is generated when recognizing trigger event;Further, the samples storage unit of digital oscilloscope can be according to
Sampled data b is stored according to trigger signal d, generates waveform display data, is shown so that waveform display unit carries out waveform.
In general, trigger control unit 103 can be used for realizing that the logical process of a variety of triggering types, triggering type can be
Edging trigger, pulsewidth triggering, slope triggering etc..If it is edging trigger, then in the rising edge of comparison signal and/or failing edge
Generate a trigger signal;It triggers, is then in default pulse duration range in the positive pulsewidth of comparison signal or negative pulsewidth if it is pulsewidth
When generate a trigger signal;It triggers, then meets in the positive slope time of comparison signal or negative slope time default if it is slope
A trigger signal is generated when time range.There are many existing triggering types, and details are not described herein again.
The digital comparing unit 102 of the prior art compares processing mode there are two types of level:
A kind of mode is to be compared processing using single comparative level.Sampled data is more than comparative level output and patrols
It collects " 1 ", is less than comparative level and exports logical zero, comparison signal c is the low and high level letter being made of data " 1 " and data " 0 "
Number.Due to there is no viscous effect, the noise in sampled data can not be inhibited, it is high when the comparison signal around noise is understood
When and it is low, generate fluctuation, when inevitably oscillograph being caused to trigger, waveform saltus step is will produce on edge, leads to false triggering.
Another way is to be compared processing using two comparative levels, and digital comparing unit 202 is by viscous comparison
Device is constituted.With reference to Fig. 2, for example, when measured signal is triangular signal, the sampled data after analog-to-digital conversion also forms triangle
Wave, user can be arranged comparative level H and a viscous range, two can be obtained after comparative level H and viscous range combinations
Physics comparative level, referred to as upper level H and lower level L.If the sampled data b of viscous comparator input is more than upper level,
Viscous comparator output data is logical one, i.e. high level;If the sampled data b of input is less than lower level, viscous comparison
Device output data is logical zero, i.e. low level, if the sampled data b of viscous comparator input, which is in, powers on gentle lower level
Within the scope of, then stagnant comparator output keeps previous level state constant, and the comparison signal finally generated is c1.
It is above-mentioned by viscous comparator constitute digital comparing unit 202 in the way of, successfully eliminate in measured signal
Noise v caused by interference, so that comparison signal c1 wave phenomenon is not occurred, avoid false triggering problem caused by noise, but
It is when generating comparison signal c1 due to two comparative levels of viscous comparator to be compared, to rise and falling edge has
One and the relevant time delay t of viscous level, as shown in Fig. 2, compared with the desired comparison signal of user is c2, the two it
Between have certain error t, therefore, this mode inevitably has that trigger position is inaccurate.For example, user it is expected
Triggering is generated when the pulsewidth of comparison signal is T2, and the pulsewidth of practical comparison signal is T1, can not generate triggering here.
Invention content
It is of the existing technology it is an object of the invention to solve the problems, such as, a kind of oscillography with high triggering precision is provided
Device.
A kind of oscillograph with high triggering precision of the present invention, including:
Setting unit, for comparative level to be arranged;
Data sampling unit obtains the roads n sampled data, n >=1 for carrying out digital sample to measured signal;
Digital comparing unit, for the comparative level according to setting, respectively to per the sampled data described all the way into line level
Compare processing, generates comparison signal;
Trigger control unit generates trigger signal for carrying out triggering logical process according to the comparison signal;
Wherein, the digital comparing unit is used for according to first high level and first low level, respectively to institute
It states in the sampled data of the roads n and compares processing into line level per sampled data all the way, generate the first comparison signal of the roads n;And foundation
One the second high level and second low level, respectively to carrying out electricity per sampled data all the way in the sampled data of the roads n
It is flat relatively to handle, generate the second comparison signal of the roads n;First high level is less than or equal to second low level.
The present invention compares processing, the first high level and the first low electricity to sampled data using four comparative levels into line level
Range between flat is bigger, and the range between the second high level and the second low level is bigger namely viscous range is bigger, then can be with
Eliminate larger range of noise in measured signal;Meanwhile the first range between high level and the second low level is smaller, carries out electricity
Time error is smaller caused by flat relatively processing, and the edge placement of third comparison signal is more accurate.Compared with the prior art, both
Noise can be eliminated, meanwhile, and time error can be reduced so that user desired trigger position and the trigger bit that actually generates
It sets and is more nearly, improve the precision of triggering.
As one for example, number comparing unit of the present invention:
When comparing the sampled data all the way less than first low level, the first comparison signal all the way of generation is low electricity
Flat, when sampled data is more than first high level all the way described in comparison, the first comparison signal all the way of generation is high level, than
When the relatively described sampled data all the way is within the scope of first low level and the first high level, first comparison signal
Keep previous level state constant;
When comparing the sampled data all the way less than second low level, the second comparison signal all the way of generation is low electricity
Flat, when sampled data is more than second high level all the way described in comparison, the second comparison signal all the way of generation is high level, than
When the relatively described sampled data all the way is within the scope of second low level and the second high level, second comparison signal
Keep previous level state constant.
As one for example, setting unit of the present invention be used for receive user setting first high level,
First low level, second high level and second low level.
As one for example, setting unit of the present invention is for receiving level input by user and viscous range;
And according to the level that is inputted and the viscous range, first high level, first low level, described second high is generated
Level and second low level are simultaneously configured.
Four comparative levels of the present invention not only can be directly arranged by user, but also by level input by user and can glue
Stagnant range generates, and acquisition pattern is various.
As an example, in this illustration, the setting unit for receive the first high level input by user,
Second low level, the first viscous range and the second viscous range;And first high level is subtracted into the described first viscous range,
First low level is generated, second low level is added into the described second viscous range, generates second high level.
As an example, described when the data sampling unit generates sampled data all the way in the example above explanation
Trigger control unit generates third comparison signal according to first comparison signal and the second comparison signal, and the third is made to compare
The leading edge position of signal and the leading edge position of first comparison signal and identical, the failing edge of the third comparison signal
Position and the failing edge position of second comparison signal with it is identical;And it is carried out at triggering logic according to the third comparison signal
Reason, generates the trigger signal.
As a specific example, in this example, the trigger control unit includes:
First arithmetic element, for after the last data of first comparison signal is carried out logical not operation, with it is described
The current data of first comparison signal carries out logic and operation, generates the first logic operation result;
Second arithmetic element, for after the current data of second comparison signal is carried out logical not operation, with it is described
The last data of second comparison signal carries out logic and operation, and carries out logical not operation to the result of logic and operation, generates
Second logic operation result;
Third arithmetic element, for the last data of third comparison signal and the first logic operation result carry out logic or
Operation, and logic or the result of operation are subjected to logic and operation with the second logic operation result, generate third comparison signal
Current data;
Logic unit is triggered, for carrying out triggering logical process according to the third comparison signal, generates the triggering letter
Number.
As another example, in the example above explanation, the data sampling unit generates the parallel roads n hits
According to, and when n > 1, the trigger control unit is generated according to first comparison signal of the roads n and second comparison signal of the roads n
The roads n third comparison signal;And triggering logical process is carried out according to the roads the n third comparison signal, generate the trigger signal;Its
In, the trigger control unit is directed to the number in the second comparison signal of data and the roads n in first comparison signal of the roads n respectively
According to, according to digital sample time sequencing searching data change, and according to the data variation generate the roads n third compare letter
Number, make the position of data variation " 01 " and data variation in first comparison signal of the roads n in the roads the n third comparison signal
The position of " 01 " is identical, the position of data variation " 10 " and second comparison signal of the roads n in the roads the n third comparison signal
The position of middle data variation " 10 " is identical.
Description of the drawings
Fig. 1 is a kind of structural schematic diagram of digital trigger for digital oscilloscope disclosed in the prior art;
Fig. 2 is that a kind of level of number comparing unit disclosed in the prior art compares the schematic diagram of processing;
Fig. 3 is a kind of structural schematic diagram of the oscillograph embodiment one with high triggering precision of the present invention;
Fig. 4 is the schematic diagram that level described in the embodiment of the present invention one compares processing;
Fig. 5 is the schematic diagram for the illustration that level described in the embodiment of the present invention one compares processing;
Fig. 6 is a kind of structural schematic diagram of the oscillograph embodiment two with high triggering precision of the present invention;
Fig. 7 is the schematic diagram of data variation in the first comparison signal described in the embodiment of the present invention two.
Specific implementation mode
In order to illustrate a kind of oscillograph with high triggering precision of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
With reference to Fig. 3, a kind of structural schematic diagram of the oscillograph embodiment one with high triggering precision of the present invention is shown, this
The oscillograph 300 that embodiment one proposes, including:
Setting unit 301 is used for being arranged comparative level, including the first high level H1 of setting, the first low level L1, second
High level H2 and the second low level L2;
Data sampling unit 302 carries out digital sample to measured signal a, obtains sampled data b all the way;
Digital comparing unit 303 compares processing to sampled data b according to the comparative level of setting into line level, generates
Comparison signal;Specifically, it respectively compares sampled data b into line level according to the first high level H1 and the first low level L1
Processing generates the first comparing signals A;And according to the second high level H2 and the second low level L1, electricity is carried out to sampled data b
It is flat relatively to handle, generate the second comparison signal B;Wherein, the first high level H1 is less than or equal to the second low level L2.
Trigger control unit 304, according to comparison signal, i.e. the first comparing signals A and the second comparison signal B are touched
Logical process is sent out, trigger signal d is generated;
Samples storage unit 305 stores sampled data b according to trigger signal d, generates waveform display data e.
Measured signal a described in the present embodiment is input to by the channel of oscillograph 200 in data sampling unit 302, data
Sampling unit 302 includes at least one analog-digital converter ADC, according to sampling clock with certain sample rate to measured signal
A carries out the conversion of analog to digital, realizes data sampling, obtains serial sampled data b all the way;Later, sampled data b is sent out
It send into samples storage unit 305.In general, also there are one analog front circuits for meeting before data sampling unit 302, it is used for
It realizes offset adjustment, gain control and the bandwidth limitation to measured signal a etc. a series of function, measured signal a is made to improve
For suitable amplitude range, for the reception of data sampling unit 302.The specific implementation of analog front circuit may be used a variety of
Design scheme is not repeating herein.
As one for example, in embodiments of the present invention, oscillograph 300 can have multiple channels, data sampling
Unit 302 may include multiple sampling subelements, correspond to multiple channels respectively, each sampling subelement is to from corresponding
The measured signal of channel input is sampled, and the sampled data in the channel is obtained.Correspondingly, digital comparing unit 303 includes more
A comparing subunit corresponds to multiple sampling subelements, sampling of each comparing subunit to being exported from sampling subelement respectively
Data compare processing into line level, generate the first comparison signal and the second comparison signal;Digital comparing unit 303 can also include
One channel to channel adapter, the data source for selecting triggering, i.e. trigger port select sampling corresponding with trigger port
First, second comparison signal of unit output, and be input in trigger control unit 304.In this illustration, channel
Selector is also an option that two trigger data sources, the comparison signal that two corresponding with trigger port sampling subelements are generated
Be input in trigger control unit 304, with realize about two channels triggering, such as between two channels delay triggering
Deng.
In conjunction with Fig. 4, processing is compared to the level of digital comparing unit 303 and is specifically described.As shown in figure 4, showing
Level described in the embodiment of the present invention one compares the schematic diagram of processing.
Digital comparing unit 303 includes two viscous comparators, using a viscous comparator, according to one first high electricity
Flat H1 and one the first low level L1 compares processing to sampled data b into line level:When sampled data b is less than the first low level
When L1, the first comparing signals A of generation is low level, corresponding data 0;When sampled data b is more than the first high level H1, production
The first raw comparing signals A is high level, corresponding data 1;When sampled data b is in the first low level L1 and the first high level
When within the scope of Hl, the first comparing signals A keeps previous level state constant.Meanwhile using another viscous comparator,
According to an a second high level H2 and second low level L2, processing is compared into line level to sampled data b:Work as hits
When being less than the second low level L2 according to b, the second comparison signal B of generation is low level, corresponding data 0;When sampled data b is more than
When the second high level H2, the second comparison signal B of generation is high level, corresponding data 1;When sampled data b is low in second
When within the scope of level L2 and the second high level H2, the second comparison signal B keeps previous level state constant.As can be seen that
First comparing signals A and the second comparison signal B are the low and high level signals being made of data " 1 " and data " 0 ".
Trigger control unit 304 generates third comparison signal C according to the first comparing signals A and the second comparison signal B;And according to
Triggering logical process is carried out according to third comparison signal C, generates trigger signal d;Wherein, the leading edge position of the first comparing signals A
It is identical as the leading edge position of third comparison signal C, under the failing edge position of the second comparison signal B and third comparison signal C
Drop is identical along position.In the present embodiment, trigger control unit 203 can be made of FPGA, according to the triggering type of setting
And trigger condition, the triggering logical process such as triggering judgement, decoding is executed according to third comparison signal C, for example, executing pulsewidth meter
It calculates, edge judgement or various protocol-decodings (such as RS232, SPI, CAN are decoded) are produced when judging to meet trigger condition
Raw trigger signal d.
In conjunction with Fig. 4 as can be seen that trigger control unit 304 carries out triggering logical process according to third comparison signal C, first
Range between high level H1 and the first low level L1 is bigger, and the range between the second high level H2 and the second low level L2 is got over
Greatly namely viscous range is bigger, then can eliminate larger range of noise in measured signal;Meanwhile the first high level H1 and
Range between two low level L2 is smaller, into line level compare processing caused by time error it is smaller, third comparison signal C's
Edge placement is more accurate.Compare Fig. 2 shows the prior art, if it is recognised that eliminate measured signal in larger range of noise,
It then needs to increase the range between high level H and low level L, but the time error of bigger can be brought simultaneously.Therefore, phase of the present invention
Than in the prior art, can both eliminate noise, meanwhile, and time error can be reduced so that the desired trigger position of user with
The trigger position actually generated is more close to improving the precision of triggering.
As one for example, in the embodiment of the present invention one, the level of digital comparing unit 303 compares processing and generates
Comparison signal can also be opposite with Fig. 4:When comparing sampled data b less than the first low level L1, the first of generation compares letter
Number A is high level;When comparing sampled data b more than the first high level H1, the first comparing signals A of generation is low level.When
When comparing sampled data b less than the second low level L2, the second comparison signal B of generation is high level;When comparing sampled data b
When more than the second high level H2, the second comparison signal B of generation is low level.So, the rising edge position of third comparison signal B
Set it is identical as the failing edge position of the first comparing signals A, the failing edge position of third comparison signal C and the second comparison signal B's
Leading edge position is identical.
As one for example, in the embodiment of the present invention one, setting unit 301 receives the first high electricity of user setting
Flat H1, the first low level L1, the second high level H2 and the second low level L2.User can directly input above-mentioned in configuration menu
Four comparative levels H1, L1, H2 and L2, the aforementioned four comparative level of 303 direct basis user setting of digital comparing unit into
Line level compares processing.
As another for example, in the embodiment of the present invention one, setting unit 301 receive level input by user and
Viscous range;And according to the level and viscous range inputted, generate the first high level H1, the first low level L1, the second high electricity
Flat H2 and the second low level H2 is simultaneously configured.In this illustration, user only need to input aforementioned four comparative level H1,
Two of which in L1, H2 and L2 and at least one viscous range.
As an example, in the example above explanation, setting unit 301 receive the first high level H1 input by user,
Second low level L2, the first viscous viscous range h2 of range h1 and second;And the first high level H1 is subtracted into the first viscous range
H1 generates the first low level L1, and the second low level L2 is added the second viscous range h2, generates the second high level H2.First is viscous
The stagnant viscous range h2 of range h1 and second may be the same or different, then when identical, user only needs that a viscous model is arranged
It encloses.
As one for example, in the embodiment of the present invention one, trigger control unit 304 includes:
First arithmetic element, by the last data A of the first comparison signaln-1After progress logical not operation, compared with first
The current data A of signalnLogic and operation is carried out, the first logic operation result (A is generatedn&!An-1);
Second arithmetic element, by the current data B of the second comparison signalnAfter progress logical not operation, compared with second
The last data B of signaln-1Logic and operation is carried out, and logical not operation is carried out to the result of logic and operation, second is generated and patrols
Volume operation result (!(!Bn&Bn-1));
Third arithmetic element, to the last data C of third comparison signaln-1With the first logic operation result (An&!
An-1) carry out logic or operation, and by logic or the result C of operationn-1|(An&!An-1) and the second logic operation result (!(!Bn&
Bn-1)) logic and operation is carried out, generate the current data C of third comparison signaln;
Logic unit is triggered, triggering logical process is carried out according to third comparison signal, generates trigger signal.
That is, the third comparison signal C generated can be indicated with following formula:
Cn=Cn-1|(An&!An-1)&(!(!Bn&Bn-1))
Wherein, CnFor the current data of third comparison signal, Cn-1For the last data of third comparison signal, AnIt is first
The current data of comparison signal, An-1For the last data of the first comparison signal, BnFor the current data of the second comparison signal, Bn-1
For the last data of the second comparison signal.In conjunction with Fig. 4,
An=1, An-1=0, Bn=0, Bn-1=0, Cn-1When=0, Cn=1;
An=1, An-1=1, Bn=1, Bn-1=0, Cn-1When=1, Cn=1;
An=1, An-1=1, Bn=0, Bn-1=1, Cn-1When=1, Cn=0;
An=0, An-1=1, Bn=0, Bn-1=0, Cn-1When=0, Cn=0......
As one for example, in the embodiment of the present invention one, the first high level H1 and the second low level L2 are identical,
In conjunction with Fig. 5, setting unit 301 receives a level T input by user and two viscous range h1 and h2.First high level H1
Level T values input by user are equal to the second low level L2, level T is subtracted into viscous range h1, generates the first low level L1,
Level T is added into viscous range h2, generates the second high level H2.Wherein, viscous range h1 and h2 can be identical, can not also
Together.In this illustration, the intersection point of level T input by user and sampled data b is x1 and x2, it can be seen that finally obtained
The edge placement of third comparison signal C respectively with x1 and x2 close alignments so that the desired trigger position of user is generated with practical
Trigger position be consistent.
With reference to Fig. 6, a kind of structural schematic diagram of the oscillograph embodiment two with high triggering precision of the present invention is shown, this
The oscillograph 600 that embodiment proposes, including:
Comparative level is arranged in setting unit 601;
Data sampling unit 602 carries out digital sample to measured signal a, obtain the parallel roads n sampled data b1~
Bn, n > 1;
Digital comparing unit 603, according to the comparative level of setting, respectively to comparing into line level per sampled data all the way
Processing generates comparison signal;Specifically, it respectively adopts the roads n according to an a first high level H1 and first low level L1
Compare processing into line level per sampled data all the way in sample data b1~bn, generates n road 1~An of the first comparing signals A;And
According to an a second high level H2 and second low level L1, respectively to often sampling all the way in the sampled data b1~bn of the roads n
Data compare processing into line level, generate n road the second comparison signal B1~Bn;Wherein, the first high level H1 is less than or equal to the
Two low level L2.
Trigger control unit 604, according to comparison signal, i.e. the roads n 1~An of the first comparing signals A and the roads n second are compared
Signal B1~Bn carries out triggering logical process, generates trigger signal d;
Samples storage unit 605 stores sampled data b1~bn according to trigger signal d, generates waveform and shows
Data e.
The embodiment of the present invention two is what is different from the first embodiment is that embodiment one is adopted for measured signal a all the way by number
Sample generates serial sampled data all the way, correspondingly, the first comparing signals A, the second comparison signal B and third comparison signal C
It is serial signal all the way.Embodiment two generates parallel multi-channel sampling number by digital sample for measured signal a all the way
According to correspondingly, the first comparing signals A, the second comparison signal B and third comparison signal C are also parallel multiple signals.
In the present embodiment two, data sampling unit 602 may include N number of parallel analog-digital converter ADC1~ADCN,
The sampling clock that it is identical in response to multiple frequencies, phase is different respectively carries out measured signal a the conversion of analog to digital,
Realize that parallel data sampling, each analog-digital converter ADC adopt measured signal a according to a corresponding sampling clock
Multi-channel sampling data and triggering clock are obtained after sample, for example, 4 tunnels, 8 tunnels or the sampling of 16 tunnels can be obtained after an ADC sampling
Data.After multiple ADC interleave samples, according to the sequencing in sampling time can obtain the parallel roads n sampled data b1~
bn.Data sampling unit 602 can realize different sample rates, and the width n for exporting sampled data is also different, and n depends on and sample rate
And the processing clock of triggering system, if the sample rate of data sampling unit 602 is 1G, trigger system clock frequency is
125MHz, then n is 8.
In the present embodiment two, digital comparing unit 603 includes:Channel selection unit 6031 is led to when receiving from multiple
When the measured signal in road, the sampled data in a certain channel, channel selection unit 6031 can be selected according to the on off state in channel
The different channel of repeating query scan process, but the data between channel are not associated with, the logical process portion of trigger control unit 604
Divide is also individually to be handled for each channel.Channel selection unit 6031 can also have the function of data pick-up, such as
Data sampling unit 602 exports the parallel sampled data in 16 tunnels, then, extracts the subsequent level of 8 tunnel progress therein and compare place
Reason.As one for example, if oscillograph 600 only has single channel, sample rate is 1GHz, and triggering clock is also
1GHz, then channel selection unit 6031 can then remove.For example, it can be by channel selection unit 6031 as another
Data interpolating unit is replaced with, for carrying out interpolation processing to sampled data, to provide higher triggering precision.
In the present embodiment two, digital comparing unit 603 is made of 2n viscous comparators, the viscous comparator pair of each two
Sampled data all the way therein compares processing into line level.One viscous comparator is according to the second high level H2 and the second low level
L2 compares processing into line level to sampled data all the way, generates the first comparison signal all the way;Another viscous comparator is according to the
Two high level H2 and the second low level L2 compare processing to sampled data b all the way into line level, generate and first compare letter all the way
Number.The processing procedure of each viscous comparator is identical as embodiment one.
Each viscous comparator includes two common comparators, then digital comparing unit 603 includes 4n common ratios altogether
Compared with device.Every 4 common comparators are as one group, to wherein sampled data bm compares into line level all the way, m=1,2,
3......n.Wherein sampled data, 4 of 4 common comparators are negative all the way for the positive input terminal input of each common comparator
Input terminal inputs comparative level respectively, i.e.,:First high level H1 and the first low level L1, the second high level H2 and the second low electricity
4 output ends of flat L2,4 common comparators export 4 comparison result AL respectivelym=bm-L1, AHm=bm-H1, BLm=bm-
L2、 BHm=bm-H2 exports the roads 4n comparison result in total:AL1~ALn、AH1~AHn、BL1~BLnAnd BH1~BHn.Digital ratio
Further include the first level comparison process module 6033, the roads Qi Dui 2n comparison result AL compared with unit 6031~ALn、AH1~~AHnInto
The viscous processing of row generates the first comparing signals A of the roads n1~An, the algorithmic formula of viscous processing is:
Am=AHm|(Am-1&ALm), m=1,2,3......n.
The result of each comparison signal can be released according to formula:
A1=AH1|(A0&AL1);
A2=AH2|(A1&AL2);
A3=AH3|(A2&AL3) ... and so on.
Wherein, A0Indicate the last one data of the first comparison signal of previous trigger clock cycle.Similarly, number compares
Unit 603 further includes second electrical level comparison process module 6034, the roads Qi Dui 2n comparison result BL1~BLnAnd BH1~BHnIt is glued
Stagnant processing generates n road the second comparison signal B1~Bn, the algorithmic formula of viscous processing is:Bm=BHm|(Bm-1&BLm), m=1,2,
3......n.The process is similar with the viscous processing of the first level comparison process module 6033, and details are not described herein again.Pass through 2n
The collective effect of viscous comparator, the first level comparison process module 6033 and second electrical level comparison process module 6034 ensures:
When sampled data bm is less than the first low level L1 all the way, the first comparing signals A m all the way of generation is low level;When adopting all the way
When sample data bm is more than the first high level H1, the first comparing signals A m all the way of generation is high level;As sampled data bm all the way
When within the scope of the first low level L1 and the first high level H1, the first comparing signals A keeps previous level state constant.
When sampled data bm is less than the second low level L2 all the way, the second comparison signal Bm all the way of generation is low level;When adopting all the way
When sample data bm is more than the second high level H2, the second comparison signal Bm all the way of generation is high level;As sampled data bm all the way
When within the scope of the second low level L2 and the second high level H2, the second comparison signal Bm keeps previous level state not
Become.
Later, trigger control unit 604 is according to the roads n 1~An of the first comparing signals A and the roads n the second comparison signal B1~Bn
Generate the roads n third comparison signal;And triggering logical process is carried out according to the roads n third comparison signal, generate trigger signal b;Wherein,
Trigger control unit 604 is directed to the data in the 1~An of the first comparing signals A of the roads n, is searched according to the time sequencing of digital sample
Data variation, and the roads the n third comparison signal is generated according to the data variation of the roads n 1~An of the first comparing signals A, make the roads n
The position of data variation " 01 " is identical as the position of data variation " 01 " in the first comparison signal of the roads n in third comparison signal;With
And for the data in the second comparison signal B1~Bn of the roads n, change according to the time sequencing searching data of digital sample, and according to
The roads the n third comparison signal is generated according to the data variation of the roads n the second comparison signal B1~Bn, is made in the third comparison signal of the roads n
The position of data variation " 10 " is identical as the position of data variation " 10 " in the second comparison signal B1~Bn of the roads n.The present embodiment two
Similar with embodiment one, in multichannel comparison signal, the position of data variation " 01 " is equivalent to the leading edge position of the comparison signal,
The position of data variation " 10 " is equivalent to the failing edge position of the comparison signal.
In conjunction with Fig. 7, by taking 8 tunnel 1~A8 of the first comparing signals A as an example, become according to the time sequencing searching data of digital sample
Change, the position of data variation " 01 " is indicated with K in 8 the first comparison signals of tunnel, be equivalent to the first comparing signals A 3 and A4 it
Between there is rising edge, accordingly, the position of data variation " 01 " should also be as in 8 tunnel third ratios in produced 8 tunnel third comparison signal
Compared in signal at the same position on the 4th tunnel.It is similar, according to second comparison signal B1~B8, generate in third comparison signal
The position of data variation " 10 ".
As one for example, per third comparison signal C all the waymThere can be following formula to obtain:
Cm=Cm-1|(Am&!Am-1)&(!(!Bm&Bm-1)), wherein m=1,2,3......n
Specific implementation process can be found in the related description of embodiment one, and details are not described herein again.
Digital comparing unit 603 carries out triggering logical process according to the roads n third comparison signal C1~Cn, according to multiple signals
The process for carrying out triggering logical process belongs to the content of the prior art, and the present invention repeats no more.Pass through the comparison of 4 comparative levels
Processing, the edge placement of the roads n third comparison signal, the i.e. position of data variation " 01 " and " 10 " and the desired trigger position of user
More closely, improving the precision of triggering.
It is understood that the embodiment of the present invention two equally can be to be suitable for embodiment one, i.e. n values are 1.
A kind of oscillograph with high triggering precision described in the embodiment of the present invention, is applicable to more relevant with the time
Logical process is triggered, for example, pulsewidth triggering, slope triggering, period triggering, short pulse-triggered, delay triggering etc., to reach accurate
Triggering moment.In addition, the oscillograph described in the embodiment of the present invention may be equally applicable for other triggerings such as edging trigger.
Be divided to two embodiments to be described in this specification, the highlights of each of the examples are with other embodiment
Difference, identical, similar part between each embodiment, for example, comparative level setting etc., just to refer each other.
Above to a kind of oscillograph with high triggering precision provided by the present invention, it is described in detail, herein
Applying specific case, principle and implementation of the present invention are described, and the explanation of above example is only intended to help
Understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention,
There will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as to this
The limitation of invention.
Claims (7)
1. a kind of oscillograph with high triggering precision, which is characterized in that including:
Setting unit, for comparative level to be arranged;
Data sampling unit obtains the roads n sampled data, n >=1 for carrying out digital sample to measured signal;
Digital comparing unit, for the comparative level according to setting, respectively to comparing into line level per the sampled data described all the way
Processing generates comparison signal;
Trigger control unit generates trigger signal for carrying out triggering logical process according to the comparison signal;
The number comparing unit is used to, according to first high level and first low level, respectively sample the roads n
Compare processing into line level per sampled data all the way in data, generates the first comparison signal of the roads n;And according to one second high
Level and second low level, respectively to comparing processing into line level per sampled data all the way in the sampled data of the roads n,
Generate the second comparison signal of the roads n;First high level is less than or equal to second low level;
When the data sampling unit generates sampled data all the way, the trigger control unit according to first comparison signal and
Second comparison signal generates third comparison signal, makes the leading edge position of the third comparison signal and first comparison signal
Leading edge position it is identical, the failing edge position phase of the failing edge position of the third comparison signal and second comparison signal
Together;And triggering logical process is carried out according to the third comparison signal, generate the trigger signal.
2. oscillograph as described in claim 1, which is characterized in that the number comparing unit:
When comparing the sampled data all the way less than first low level, the first comparison signal all the way of generation is low level,
When comparing the sampled data all the way more than first high level, the first comparison signal all the way of generation is high level, is compared
When the sampled data all the way is within the scope of first low level and the first high level, first comparison signal is protected
It is constant to hold previous level state;
When comparing the sampled data all the way less than second low level, the second comparison signal all the way of generation is low level,
When comparing the sampled data all the way more than second high level, the second comparison signal all the way of generation is high level, is compared
When the sampled data all the way is within the scope of second low level and the second high level, second comparison signal is protected
It is constant to hold previous level state.
3. oscillograph as claimed in claim 2, which is characterized in that
The setting unit is used to receive first high level, first low level, the second high electricity of user setting
Gentle second low level.
4. oscillograph as claimed in claim 2, which is characterized in that
The setting unit is for receiving level input by user and viscous range;And according to the level that is inputted and described viscous
Range generates first high level, first low level, second high level and second low level and is set
It sets.
5. oscillograph as claimed in claim 4, which is characterized in that
The setting unit is viscous for receiving the first high level input by user, the second low level, the first viscous range and second
Stagnant range;And first high level is subtracted into the described first viscous range, and first low level is generated, it is low by described second
Level adds the described second viscous range, generates second high level.
6. oscillograph as described in claim 1, which is characterized in that
The trigger control unit includes:
First arithmetic element, for after the last data of first comparison signal is carried out logical not operation, with described first
The current data of comparison signal carries out logic and operation, generates the first logic operation result;
Second arithmetic element, for after the current data of second comparison signal is carried out logical not operation, with described second
The last data of comparison signal carries out logic and operation, and carries out logical not operation to the result of logic and operation, generates second
Logic operation result;
Third arithmetic element carries out logic or fortune for the last data to third comparison signal with the first logic operation result
It calculates, and logic or the result of operation is subjected to logic and operation with the second logic operation result, generate working as third comparison signal
Preceding data;
Triggering logic unit generates the trigger signal for carrying out triggering logical process according to the third comparison signal.
7. such as oscillograph described in any one of claim 1 to 5, which is characterized in that
The data sampling unit generates the parallel roads n sampled data, and n>When l, the trigger control unit is according to the roads n
First comparison signal and second comparison signal of the roads n generate the roads n third comparison signal;And compare letter according to the roads n third
Number triggering logical process is carried out, generates the trigger signal;
Wherein, the trigger control unit is directed to the second comparison signal of data and the roads n in first comparison signal of the roads n respectively
In data, according to digital sample time sequencing searching data change, and according to the data variation generate the roads n third
Comparison signal makes the position of data variation " 01 " and data in first comparison signal of the roads n in the roads the n third comparison signal
The position for changing " 01 " is identical, the position of data variation " 10 " letter compared with the roads n second in the roads the n third comparison signal
The position of data variation " 10 " is identical in number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210573118.4A CN103901243B (en) | 2012-12-25 | 2012-12-25 | A kind of oscillograph with high triggering precision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210573118.4A CN103901243B (en) | 2012-12-25 | 2012-12-25 | A kind of oscillograph with high triggering precision |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103901243A CN103901243A (en) | 2014-07-02 |
CN103901243B true CN103901243B (en) | 2018-09-25 |
Family
ID=50992699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210573118.4A Active CN103901243B (en) | 2012-12-25 | 2012-12-25 | A kind of oscillograph with high triggering precision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103901243B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104076178B (en) * | 2013-03-27 | 2019-01-08 | 苏州普源精电科技有限公司 | A kind of oscillograph with improvement Trigger Function |
CN104820120B (en) * | 2015-04-20 | 2018-01-30 | 深圳市鼎阳科技有限公司 | A kind of method and apparatus for improving signal triggering precision |
CN105548641A (en) * | 2015-12-15 | 2016-05-04 | 大豪信息技术(威海)有限公司 | Waveform triggering device and method and oscilloscope for waveform triggering |
CN106053908A (en) * | 2016-07-06 | 2016-10-26 | 电子科技大学 | Analog-to-digital signal conversion device of digital oscilloscope |
CN114509589A (en) * | 2020-11-17 | 2022-05-17 | 北京普源精电科技有限公司 | Oscilloscope trigger system, oscilloscope trigger method, oscilloscope and storage medium |
CN114441938A (en) * | 2022-01-04 | 2022-05-06 | 杭州加速科技有限公司 | Method for improving test precision of time measurement module and application |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5958910A (en) * | 1982-09-28 | 1984-04-04 | Seiko Epson Corp | Schmitt trigger circuit |
JPS62104215A (en) * | 1985-10-30 | 1987-05-14 | Iwatsu Electric Co Ltd | Trigger circuit |
JPS62298218A (en) * | 1986-06-17 | 1987-12-25 | Nec Corp | Logic circuit |
CN100578232C (en) * | 2006-10-26 | 2010-01-06 | 史松涛 | Method and circuit of obtaining wave shape trigger signal of oscilloscope |
CN102053187B (en) * | 2009-11-10 | 2013-11-27 | 北京普源精电科技有限公司 | Digital oscilloscope with trigger device |
-
2012
- 2012-12-25 CN CN201210573118.4A patent/CN103901243B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103901243A (en) | 2014-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103901243B (en) | A kind of oscillograph with high triggering precision | |
JP5389357B2 (en) | Time measurement using a phase-shifted periodic waveform | |
CN103713171B (en) | It is a kind of that there is the oscillograph for postponing Trigger Function | |
CN107145468B (en) | Signal generating and reading device and control method | |
CN103018512B (en) | A kind of oscillograph with external trigger function | |
CN106556342B (en) | A kind of grating subdivision device and method based on FPGA | |
CN110166046B (en) | Sequential equivalent sampling system based on phase delay | |
CN108982940A (en) | A kind of external trigger device and external trigger method, oscillograph based on serial receiver | |
JP5666813B2 (en) | Time width measuring device | |
CN104076178B (en) | A kind of oscillograph with improvement Trigger Function | |
CN104022761B (en) | A kind of method of testing of pulse-modulated signal | |
CN109444559A (en) | The method of sampling, method for reconstructing and the device of pulse signal | |
CN103675381B (en) | A kind of oscillograph of the parallel sampling with cycle Trigger Function | |
CN111367158B (en) | Waveform digitization time measuring method and system based on SCA | |
CN112968690A (en) | High-precision low-jitter delay pulse generator | |
CN105510861B (en) | A kind of multifunction digital PD meter calibrator | |
CN103869123B (en) | It is a kind of that there is the oscillograph of pulse width measure | |
CN103105514B (en) | A kind of oscillograph with digital meter frequency function | |
CN109948223B (en) | Pulse amplitude acquisition method based on Lagrange interpolation | |
CN103675380A (en) | An oscilloscope with a periodic trigger function | |
CN106918731A (en) | A kind of digital oscilloscope and its signal frequency measuring method | |
CN107678333B (en) | Step length time correction method and device based on equivalent time sequence sampling | |
US6856924B2 (en) | Mixer-based timebase for sampling multiple input signal references asynchronous to each other | |
CN104536282A (en) | Time-digital converter and time measuring device and method | |
EP3021490A1 (en) | Digitizer auto aperture with triggering spacing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |