CN109194331A - Electronic device and the method for correcting comparator in the electronic device - Google Patents
Electronic device and the method for correcting comparator in the electronic device Download PDFInfo
- Publication number
- CN109194331A CN109194331A CN201810995862.0A CN201810995862A CN109194331A CN 109194331 A CN109194331 A CN 109194331A CN 201810995862 A CN201810995862 A CN 201810995862A CN 109194331 A CN109194331 A CN 109194331A
- Authority
- CN
- China
- Prior art keywords
- comparator
- voltage
- electronic device
- counter
- input terminal
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/10—Calibration or testing
- H03M1/1009—Calibration
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/10—Calibration or testing
- H03M1/1071—Measuring or testing
Abstract
A kind of method that the embodiment of the present application discloses electronic device and corrects the comparator in the electronic device, which includes: comparator;Operational amplifier, non-inverting input terminal is hanging, and output end is connect to provide white noise signal to the comparator with the first input end of the comparator;Controller is connect to control the voltage of second input terminal with the second input terminal of the comparator;Counter is connect with the output end of the controller and the comparator and is counted with the transition times of the output signal to the comparator;And processor, the transition times to be recorded according to the counter are connect with the counter to determine the transformed error of the comparator.By technical solution provided by the present application, it can use white noise signal provided by the operational amplifier inside electronic device to be corrected to comparator, signal be provided without additional device, thus software and hardware expense and cost of labor can be reduced.
Description
Technical field
This application involves field of signal processing, in particular to a kind of electronic device and comparison in the electronic device is corrected
The method of device.
Background technique
The description of this part only provides and discloses relevant background information to the application, without constituting the prior art.
Comparator is the circuit that the voltage magnitude of analog signal compares with the voltage magnitude of reference signal, can be real
Conversion of the existing analog signal to digital signal.The working principle of comparator is as follows: when the end P voltage is greater than N-terminal voltage, output
1, conversely, its output 0.
Comparator can be widely used for many electronic devices, for example, X-ray detector and digital positron emission fault
(Positron Emission Tomography, abbreviation PET) detector etc. is imaged.However, being applied to above-mentioned electronic device
Usually all there is transformed error in comparator.That is, only when the voltage of the analog signal inputted in N-terminal is inputted at the end P
Reference signal voltage between when differing a particular voltage level, the output of comparator just can jump to 1 from 0, or from 1 jump
To 0.The particular voltage level is the transformed error of comparator.For different comparators, transformed error may all each not phase
Together.The transformed error of comparator may will affect the accurate of the measurement result of devices such as X-ray detector and digital pet detector
Property.
In above-mentioned electronic device, the fixed triangular wave of a pulsewidth is extraly usually inputted by the end P in comparator
Calculate its transformed error, so as to by the basis of N-terminal inputs former base calibration signal superposition input amplitude be that conversion misses
The signal of difference eliminates its transformed error.
Summary of the invention
During realizing the application, at least there are the following problems in the prior art for inventor's discovery:
When correcting the transformed error of comparator, needs additionally to input triangular wave using signal generator and need
Position machine software calculates the Trendline of reference signal pulsewidth and output signal pulsewidth in N-terminal input, and this results in additional soft
Hardware spending and cost.
The purpose of the embodiment of the present application is to provide a kind of electronic device and corrects the side of the comparator in the electronic device
Method, to reduce software and hardware expense and cost.
To achieve the above object, a kind of electronic device provided by the embodiments of the present application and ratio in the electronic device is corrected
Method compared with device is achieved in that
A kind of electronic device, the electronic device include:
Comparator;
Operational amplifier, non-inverting input terminal is hanging, output end connect with the first input end of the comparator with to
The comparator provides white noise signal;
Controller is connect to control the voltage of second input terminal with the second input terminal of the comparator;
Counter is connect with the output end of the controller and the comparator with the output signal to the comparator
Transition times counted;And
Processor connect the transition times to be recorded according to the counter with the counter to determine
State the transformed error of comparator.
Preferably, the electronic device further includes bias voltage feed end, with the output end of the operational amplifier and
The first input end of the comparator connects.
Preferably, the electronic device further includes digital analog converter, with the second input terminal of the comparator and
The controller connection.
Preferably, the electronic device further includes memory, is connected to the processor to store the comparator
Transformed error.
Preferably, the electronic device further includes detection channels corresponding with the operational amplifier, is used to detect light
Signal simultaneously generates corresponding electric signal.
Preferably, the number of the number of the comparator, the operational amplifier and the counter and the detection channels
Amount corresponds.
Preferably, the controller, the counter and the processor are integrated in the same field programmable gate array core
On piece.
A method of correcting the comparator in above-mentioned electronic device, which comprises
Step S1 exports white noise signal and described to the first input end of the comparator in the operational amplifier
After the voltage of the second input terminal of the comparator is set first voltage threshold value by controller, the counter records are default
First transition times of the output signal of the comparator in period;
Step S2, after the counting that the counter completes in the preset time period, the controller is by the ratio
Voltage compared with the second input terminal of device changes default variable quantity, and the counter records institute in the preset time period again
State the second transition times of the output signal of comparator;
Step S3, repeat the above steps S2, until the voltage value of the second input terminal of the comparator reaches N voltage threshold
It is worth, the N transition times of the output signal of the comparator in preset time period described in the counter records;And
Step S4, all transition times that the processor is recorded the counter compare, and according to right
Determine the transformed error of the comparator, than result to correct the comparator.
Preferably, the step S1 further include:
Before the first transition times described in the counter records, bias voltage feed end in the electronic device to
The first input end of the comparator provides biasing voltage signal.
Preferably, the step S2 further include:
In the preset time period described in the counter records the second transition times of the output signal of the comparator it
Before, the controller resets the counter so that the counter returns to original state.
Preferably, meet following relationship between the N voltage threshold and the first voltage threshold value:
When the first voltage threshold value is predeterminated voltage minimum value, the N voltage threshold is predeterminated voltage maximum value,
And N voltage threshold=first voltage threshold value+(N-1) * presets variable quantity;
When the first voltage threshold value is predeterminated voltage maximum value, the N voltage threshold is predeterminated voltage minimum value,
And N voltage threshold=first voltage threshold value-(N-1) * presets variable quantity,
Wherein, N is the positive integer greater than 1.
Preferably, the default variable quantity is less than or equal to the width of white noise signal caused by the operational amplifier
Value.
Preferably, the process for determining the transformed error of the comparator in the step S4 according to comparing result includes:
Second input terminal of the comparator corresponding to the maximum transition times of numerical value in all transition times
Voltage threshold is determined as the transformed error of the comparator.
Preferably, the method also includes:
Step S5, the memory in the electronic device store the transformed error of the comparator.
As can be seen from the technical scheme provided by the above embodiments of the present application, the embodiment of the present application passes through using inside electronic device
Operational amplifier generate white noise signal as comparator first input end reference signal, utilize controller control ratio
Compared with the voltage of the second input terminal of device, using the transition times of the output signal of counter records comparator, and processing is utilized
Device handles transition times, so that it is determined that the transformed error of comparator is out to realize the correction to comparator, without utilizing volume
Outer signal generator provides reference signal, so as to realize the purpose for reducing software and hardware expense and cost.Moreover, in school
When the transformed error of positive comparator, the specific progress of manual control is not needed, this can reduce cost of labor.In addition, in correction ratio
Compared with device transformed error when, do not need upper computer software to calculate signal pulsewidth, this can reduce resource consumption.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property
Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of electronic device provided by the embodiments of the present application;
Fig. 2 is the structural schematic diagram of another electronic device provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the method for the comparator in a kind of correcting electronic device provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiment is only used for illustrating a part of the embodiment of the application, rather than all
Embodiment, it is undesirable that limitation scope of the present application or claims.Based on the embodiment in the application, this field is common
The application guarantor all should belong in technical staff's all other embodiment obtained without making creative work
The range of shield.
It should be noted that it can be arranged directly on another when element is referred to as on " setting exists " another element
On element or there may also be elements placed in the middle.When element is referred to as " connection/connection " to another element, it be can be directly
Another element is connect/be attached in succession or may be simultaneously present centering elements.Term as used herein " connection/connection " can
To include electrical and/or mechanical-physical connection/connection.Term as used herein "comprises/comprising" refers to feature, step or element
Presence, but the presence or addition of one or more other features, step or element is not precluded.Term as used herein
"and/or" includes any and all combinations of one or more related listed items.
Unless otherwise defined, all technical and scientific terms used herein and the technical field for belonging to the application
The normally understood meaning of technical staff is identical.Term used herein is intended merely to the purpose of description specific embodiment, and
It is not intended to limitation the application.
In addition, term " first ", " second " etc. are used for description purposes only pair similar with distinguishing in the description of the present application
As between the two and sequencing being not present, indication or suggestion relative importance can not be interpreted as.In addition, the application's
In description, unless otherwise indicated, the meaning of " plurality " is two or more.
To electronic device provided by the embodiment of the present application and correct comparison in the electronic device with reference to the accompanying drawing
The method of device is described in detail.
As shown in Figure 1, the embodiment of the present application provides a kind of electronic device, X-ray detector sum number can be applied to
The photodetectors such as word pet detector, but not limited to this.The electronic device may include:
Comparator 110;
Operational amplifier 120, non-inverting input terminal is hanging, and inverting input terminal is connect with peripheral circuit, output end with
The first input end (that is, the end P) of comparator 110 connects, to provide white noise signal to comparator 110;
Controller 130 is connect with the second input terminal (that is, N-terminal) of comparator 110, to control the electricity of the second input terminal
Pressure;
Counter 140 is connect with controller 130, and is also connect with the output end of comparator 110, to comparator
The transition times of 110 output signal are counted;And
Processor 150 connects transition times to be recorded according to counter 140 with counter 140 come compared with determining
The transformed error of device 110.
Comparator 110 can refer to using the difference I/O port of field programmable gate array (FPGA) chip (for example, low electricity
The pressure difference sub-signal port (LVDS) and the port stub series termination logic (SSTL)) realize voltage comparator, also can wrap
Dedicated voltage comparator (for example, LM339 and LM393 etc.) is included, also can also be other comparators.
Comparator 110 can according to by the voltage of white noise signal provided by operational amplifier 120 (that is, the first input
The voltage at end) voltage that is controlled with controller 130 compares, according to comparing result come output signal.Work as first input end
Voltage be greater than the second input terminal voltage when, output 1, when first input end voltage less than the second input terminal voltage
When, output 0.
Transition times can refer to that the output signal of comparator 110 jumps to 1 from 0 or jumps to 0 variation time from 1
Number.
Controller 130 can according to received control instruction control the voltage of the second input terminal of comparator 110, make
Its voltage changes according to default variable quantity.The control instruction can be timing or artificial triggering and from external in advance or real
When it is received.Controller 130 can also reset counter 140, be returned to original state.
Counter 140 can be multi-bit counter, for example, 4 digit counters or 8 digit counters etc..It is exported in comparator 110
After signal, counter 140 can be counted up since original state (for example, 0 or other numerical value), until reaching its counting
The upper limit is reset by controller 130;It can also be counted downwards from original state (for example, count upper-limit of counter), Zhi Daoda
Lower limit is counted to it or is reset by controller 130.
All transition times that processor 150 can be recorded counter 140 compare, and according to comparing result come
Determine the transformed error of comparator 110.
Controller 130, counter 140 and processor 150 can integrate on the same fpga chip in the device,
It can be independently positioned in the electronic device.
In another embodiment of the application, which can also include bias voltage feed end 125, can be with
The output end of operational amplifier 120 is connected with the first input end of comparator 110, to mention to the first input end of comparator 110
For biasing voltage signal, so that the voltage of the first input end of comparator 110 is higher than the voltage of its second input terminal.The biased electrical
It presses the amplitude of signal that can be higher than minimum transition present in comparator 110 and misses absolute value of the difference.
In another embodiment of the application, which can also include digital analog converter (DAC) 160,
It can be connect with the second input terminal of comparator 110 and controller 130, the digital signal inputted can be converted into simulation
Analog signal after conversion is simultaneously sent to comparator by signal.Controller 130 can by control DAC 160 output voltage come
Control the voltage of the second input terminal of comparator 110.
In another embodiment of the application, which can also include memory 170, can be with processor
150 connections, with the transformed error of comparator 110 determined by storage processor 150.Moreover, when counter 140 does not have storage
When function, memory 170 can be also used for 140 recorded data of memory counter.Memory 170 can be on piece and deposit at random
Reservoir (RAM), is also possible to other memories.
In another embodiment of the application, which can also include detection corresponding with operational amplifier 120
Channel is used to detect optical signal and generates corresponding electric signal.In practical applications, detection channels can be with operational amplifier
Non-inverting input terminal connection, correct comparator transformed error when, it is only necessary to disconnect connection between the two, make operation amplifier
The non-inverting input terminal of device is hanging.
The quantity of comparator 110, operational amplifier 120 and counter 140 can be corresponded with the quantity of detection channels.
It is set for the dress electronics and includes the case where that multiple detection channels, structural schematic diagram are as shown in Figure 2.
It can be seen from the above description that electronic device provided by the embodiments of the present application using its internal operation by being put
Big device generates white noise signal using the reference signal of the first input end as comparator, utilizes controller control comparator
The voltage of second input terminal is handled using the transition times of the output signal of counter records comparator, and using processor
Transition times, so that it is determined that the transformed error of comparator is out to realize the correction to comparator, without utilizing additional letter
Number generator provides reference signal, so as to realizing the purpose for reducing software and hardware expense and cost.Moreover, utilizing processing
When device determines the transformed error of comparator, the specific progress of manual control is not needed, this can reduce cost of labor.In addition, in school
During positive comparator, upper computer software is not needed to calculate the Trendline of signal pulsewidth, this can reduce resource consumption.
The embodiment of the present application also provides a kind of methods for correcting the comparator in above-mentioned electronic device, as shown in figure 3, should
Method may comprise steps of:
Step S1 exports white noise signal to the first input end of comparator in operational amplifier and controller will compare
The voltage of second input terminal of device is set as after first voltage threshold value, the output of comparator in counter records preset time period
First transition times of signal.
When the non-inverting input terminal of each operational amplifier is suspended, white noise signal can be generated on amplifier baseline, respectively
The white noise signal can be sent to the first input end of corresponding comparator by a operational amplifier, and controller can
To set first voltage threshold for the voltage of the second input terminal of each comparator according to the control instruction of preparatory or real-time reception
Value.Then, each comparator can be by the of the amplitude of the white noise signal inputted in its first input end and the second input terminal
One voltage threshold compares, when the amplitude of the white noise signal of first input end is greater than the first voltage threshold value of the second input terminal
When, which can export 1, and when first voltage of the amplitude of the white noise signal of first input end less than the second input terminal
When threshold value, which can export 0.After each comparator output signal, individual count device can be opened from original state
The first transition times of the output signal of comparator are corresponded in beginning record preset time period (for example, 0.5ms~1ms etc.), for example,
Num (m, 1) can be denoted as, wherein m can indicate detection channels number or packet numbering.Each grouping can be transported by one
Amplifier, a comparator and a counter is calculated to constitute.
It is inclined in the electronic device before the first transition times of counter records in another embodiment of the application
Biasing voltage signal can be provided to the first input end of each comparator by setting voltage feed end, to ensure the of each comparator
The voltage of one input terminal is greater than the voltage of its second input terminal.
First voltage threshold value can be using method in the prior art (for example, being compared by input triangular wave to calculate
The method of the transformed error of device) count in advance or empirically determined predeterminated voltage minimum value (that is, the conversion of comparator
The minimum value of error) or predeterminated voltage maximum value (that is, maximum value of the transformed error of comparator).
White noise is exported to the first input end of comparator it should be noted that not limiting operational amplifier in this step
Sequence is executed between the voltage of second input terminal of signal and controller setting comparator, the two can execute in order,
It may be performed simultaneously.
Step S2, after the counting that counter completes in preset time period, controller is by the second input terminal of comparator
Voltage change default variable quantity, and counter records the second jump of the output signal of comparator in preset time period again
Number.
After the counting that individual count device completes in preset time period, controller can be defeated by the second of each comparator
The voltage for entering end increases or reduces default variable quantity.Then, each comparator can be defeated to its first input end and second again
The voltage value entered between end compares, and corresponding signal is exported according to comparing result, i.e., when the voltage value of first input end
Greater than the second input terminal voltage value when, output 1, and when first input end voltage value less than the second input terminal voltage value
When, output 0.After each comparator output signal, individual count device can record corresponding comparison in preset time period again
Second transition times of the output signal of device, for example, Num (m, 2) can be denoted as.Second transition times can be equal to counter
The difference of current count and the first transition times.
In another embodiment of the application, before individual count device starts counting, controller can reset each meter
Number device, is returned to original state.At this point, the second transition times are the current count of counter.
Step S3, repeat the above steps S2, until the voltage value of the second input terminal of comparator reaches N voltage threshold,
The N transition times of the output signal of comparator in counter records preset time period.
It, can be repeatedly above-mentioned after second of transition times that individual count device records the output signal of corresponding comparator
Step S2, until the voltage value of the second input terminal of each comparator reaches N voltage threshold.At this point, individual count device can be with
The N transition times for corresponding to the output signal of comparator in preset time period are recorded again, and are denoted as Num (m, N).N
Transition times can be equal to the current count of counter and the difference of N-1 transition times.
In this step, before individual count device starts counting, controller can reset individual count device, be returned to
Original state.At this point, N transition times are the current count of counter.
Wherein, following relationship is met between N voltage threshold and first voltage threshold value:
When first voltage threshold value is predeterminated voltage minimum value, N voltage threshold is predeterminated voltage maximum value, and N
Voltage threshold=first voltage threshold value+(N-1) * presets variable quantity;
When first voltage threshold value is predeterminated voltage maximum value, N voltage threshold is predeterminated voltage minimum value, and N
Voltage threshold=first voltage threshold value-(N-1) * presets variable quantity.
Default variable quantity can be less than or equal to the amplitude of white noise signal caused by operational amplifier, and it can be with
It is determined according to following formula:
Wherein, △ V is default variable quantity, VmaxFor predeterminated voltage maximum value, VminFor predeterminated voltage minimum value, N is greater than 1
Positive integer, specific value can rule of thumb or theoretical calculation determines.
Step S4, all transition times that processor is recorded counter compare, and according to comparing result come
The transformed error of the comparator is determined, to correct the comparator.
After the N transition times that individual count device all records corresponding comparator, processor can be successively by each meter
All transition times for being recorded of number devices compare respectively, determine number in all transition times that individual count device is recorded
It is worth maximum transition times, so that the voltage threshold of the second input terminal of comparator corresponding to the transition times is determined as this
The transformed error of comparator.
For example, for the i-th detection channels and jth detection channels, if the maximum value of its transition times be respectively Num (i,
K) and Num (j, L), then the transformed error of comparator corresponding to the i-th detection channels are as follows:
Vmin+ (K-1) * △ V or Vmax-(K-1)*△V;
The transformed error of comparator corresponding to jth detection channels are as follows:
Vmin+ (L-1) * △ V or Vmax-(L-1)*△V。
Wherein, i and j is 1 to the positive integer between m, and K and L are 1 to the positive integer between N.
It, can be by defeated in the first input end to each comparator after the transformed error for determining each comparator
Enter to be superimposed on the basis of former base calibration signal the signal that input amplitude is transformed error again, so as to realize the school to comparator
Just.
It should be noted that in above-mentioned steps, for being provided with digital-to-analogue conversion between controller and comparator
The situation of device (DAC), controller can change the voltage of the second input terminal of comparator by controlling the output voltage of DAC.
Moreover, the output voltage range of DAC is in VminWith VmaxBetween.
In another embodiment of the application, this method can also include:
Step S5, the transformed error of comparator determined by memory storage processor.
After the transformed error for determining all comparators, memory can use to store the conversion of each comparator
Error, in order to when task, read the transformed error under device and be superimposed upon on the amplitude of former base calibration signal, with
Realize the correction to comparator.
It can be seen from the above description that the embodiment of the present application using the operational amplifier inside electronic device by being mentioned
For white noise signal using the reference signal of the first input end as comparator, second that comparator is controlled using controller is defeated
The voltage for entering end, the transition times of the output signal of comparator are recorded using counter, and utilize a processor to compare ratio
Compared with the transition times of the output signal of device, so that it is determined that the transformed error of comparator out, without using additional device come
The reference signal of the first input end of comparator is generated, this can reduce software and hardware expense.Moreover, in the conversion of correction comparator
When error, the specific progress of manual control is not needed, this can reduce cost of labor.In addition, in the transformed error of correction comparator
When, upper computer software is not needed to calculate signal pulsewidth, this can reduce resource consumption.In addition, in the electronic device
Each detection channels can correct its transformed error for corresponding to comparator simultaneously, this is improved work efficiency.
Device, unit, module and device that above-described embodiment illustrates etc., specifically can be by computer chip, semiconductor
Chip and/or entity are realized, or are realized by the product with certain function.For convenience of description, apparatus above is described
When various devices be divided into function describe respectively.Certainly, when implementing the application can the function of each device same or
It is realized in multiple computer chips or semiconductor chip.
Although this application provides the method operating procedure as described in above-described embodiment or flow chart, based on conventional or
It in the method may include more or less operating procedure without creative labor.There is no must in logicality
In the step of wanting causality, the execution of these steps sequence is not limited to provided by the embodiments of the present application execute sequence.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and the highlights of each of the examples are differences from other embodiments.
Above-described embodiment be for convenient for those skilled in the art it will be appreciated that and being described using the application
's.Person skilled in the art obviously easily can make various modifications to these embodiments, and described herein
General Principle is applied in other embodiments without having to go through creative labor.Therefore, the application is not limited to the above embodiments,
Those skilled in the art do not depart from improvement that the application scope is made and modification all should be in this Shens according to the announcement of the application
Within protection scope please.
Claims (14)
1. a kind of electronic device, which is characterized in that the electronic device includes:
Comparator;
Operational amplifier, non-inverting input terminal is hanging, and output end is connect with to described with the first input end of the comparator
Comparator provides white noise signal;
Controller is connect to control the voltage of second input terminal with the second input terminal of the comparator;
Counter is connect with the output end of the controller and the comparator with the jump of the output signal to the comparator
Become number to be counted;And
Processor connect the transition times to be recorded according to the counter with the counter to determine the ratio
Compared with the transformed error of device.
2. electronic device according to claim 1, which is characterized in that the electronic device further includes bias voltage supply
End, connect with the first input end of the output end of the operational amplifier and the comparator.
3. electronic device according to claim 1, which is characterized in that the electronic device further includes digital-to-analogue conversion
Device is connect with the second input terminal of the comparator and the controller.
4. electronic device according to claim 1, which is characterized in that the electronic device further includes memory, with institute
Processor connection is stated to store the transformed error of the comparator.
5. electronic device according to claim 1, which is characterized in that the electronic device further includes and the operation amplifier
The corresponding detection channels of device are used to detect optical signal and generate corresponding electric signal.
6. electronic device according to claim 5, which is characterized in that the comparator, the operational amplifier and described
The number of counter and the quantity of the detection channels correspond.
7. electronic device according to claim 1, which is characterized in that the controller, the counter and the processing
Device is integrated on the same field programmable gate array chip.
8. a kind of method of the comparator in correction described in any item electronic devices of claim 1-7, which is characterized in that described
Method includes:
Step S1 exports white noise signal and the control to the first input end of the comparator in the operational amplifier
After the voltage of the second input terminal of the comparator is set first voltage threshold value by device, the counter records preset time
First transition times of the output signal of the comparator in section;
Step S2, after the counting that the counter completes in the preset time period, the controller is by the comparator
The voltage of the second input terminal change default variable quantity, and the counter records the ratio in the preset time period again
Compared with the second transition times of the output signal of device;
Step S3, repeat the above steps S2, until the voltage value of the second input terminal of the comparator reaches N voltage threshold,
The N transition times of the output signal of the comparator in preset time period described in the counter records;And
Step S4, all transition times that the processor is recorded the counter compare, and are tied according to comparison
Fruit determines the transformed error of the comparator, to correct the comparator.
9. according to the method described in claim 8, it is characterized in that, the step S1 further include:
Before the first transition times described in the counter records, bias voltage feed end in the electronic device is to described
The first input end of comparator provides biasing voltage signal.
10. according to the method described in claim 8, it is characterized in that, the step S2 further include:
In the preset time period described in the counter records before the second transition times of the output signal of the comparator, institute
It states controller and resets the counter so that the counter returns to original state.
11. according to the method described in claim 8, it is characterized in that, the N voltage threshold and the first voltage threshold value it
Between meet following relationship:
When the first voltage threshold value is predeterminated voltage minimum value, the N voltage threshold is predeterminated voltage maximum value, and
N voltage threshold=first voltage threshold value+(N-1) * presets variable quantity;
When the first voltage threshold value is predeterminated voltage maximum value, the N voltage threshold is predeterminated voltage minimum value, and
N voltage threshold=first voltage threshold value-(N-1) * presets variable quantity,
Wherein, N is the positive integer greater than 1.
12. the method according to claim 8 or 11, which is characterized in that the default variable quantity is less than or equal to the fortune
Calculate the amplitude of white noise signal caused by amplifier.
13. according to the method described in claim 8, it is characterized in that, being determined in the step S4 according to comparing result described
The process of the transformed error of comparator includes:
The voltage of second input terminal of the comparator corresponding to the maximum transition times of numerical value in all transition times
Threshold value is determined as the transformed error of the comparator.
14. according to the method described in claim 8, it is characterized in that, the method also includes:
Step S5, the memory in the electronic device store the transformed error of the comparator.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810995862.0A CN109194331B (en) | 2018-08-29 | 2018-08-29 | Electronic device and method for correcting comparator in electronic device |
PCT/CN2019/103079 WO2020043134A1 (en) | 2018-08-29 | 2019-08-28 | Electronic device, and method for calibrating comparator in electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810995862.0A CN109194331B (en) | 2018-08-29 | 2018-08-29 | Electronic device and method for correcting comparator in electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109194331A true CN109194331A (en) | 2019-01-11 |
CN109194331B CN109194331B (en) | 2021-10-26 |
Family
ID=64916457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810995862.0A Active CN109194331B (en) | 2018-08-29 | 2018-08-29 | Electronic device and method for correcting comparator in electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109194331B (en) |
WO (1) | WO2020043134A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020043134A1 (en) * | 2018-08-29 | 2020-03-05 | 苏州瑞迈斯医疗科技有限公司 | Electronic device, and method for calibrating comparator in electronic device |
CN110954938A (en) * | 2019-12-11 | 2020-04-03 | 湖北锐世数字医学影像科技有限公司 | Threshold correction method and device of comparator and sampling circuit |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109637404B (en) * | 2018-11-21 | 2020-12-29 | 惠科股份有限公司 | Drive circuit and display panel |
CN112290918B (en) * | 2020-10-30 | 2024-03-26 | 湖北锐世数字医学影像科技有限公司 | Method, device and system for threshold correction of comparator |
CN115469134A (en) * | 2022-09-08 | 2022-12-13 | 山东浪潮科学研究院有限公司 | Adaptive wide dynamic analog-to-digital conversion circuit |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4616210A (en) * | 1984-09-14 | 1986-10-07 | The Perkin-Elmer Corporation | Spectrophotometers |
US20050247881A1 (en) * | 2004-05-07 | 2005-11-10 | Fuji Electric Systems Co., Ltd. | Dose detector and dosimeter |
CN101231192A (en) * | 2007-01-23 | 2008-07-30 | Ulis股份公司 | Method for digitising an analogue magnitude, digitisation device implementing this method and electromagnetic radiation detector |
US20090128216A1 (en) * | 2007-10-08 | 2009-05-21 | Naresh Kesavan Rao | System and method for time-to-voltage conversion with lock-out logic |
CN101680956A (en) * | 2007-06-19 | 2010-03-24 | 皇家飞利浦电子股份有限公司 | Digital pulse processing for multi-spectral photon counting readout circuits |
CN101960320A (en) * | 2008-02-27 | 2011-01-26 | 阿莱戈微系统公司 | Hysteresis offset cancellation for Magnetic Sensor |
CN103002232A (en) * | 2011-09-08 | 2013-03-27 | 佳能株式会社 | Imaging apparatus |
CN103226204A (en) * | 2013-04-01 | 2013-07-31 | 中国科学院高能物理研究所 | System and method for testing signal of detector |
CN103858022A (en) * | 2012-07-18 | 2014-06-11 | 株式会社东芝 | Data acquisition device, pair annihilation gamma ray detector, and pair annihilation gamma ray detection method |
US20140244196A1 (en) * | 2013-02-26 | 2014-08-28 | Canon Kabushiki Kaisha | Measuring apparatus |
CN104285164A (en) * | 2012-05-15 | 2015-01-14 | R·贝拉兹尼 | A digital x-ray sensor |
CN207249037U (en) * | 2017-09-11 | 2018-04-17 | 深圳市无眼界科技有限公司 | It is a kind of to be used to detect the detection device whether device connection status comes off |
CN108169789A (en) * | 2018-03-22 | 2018-06-15 | 苏州瑞迈斯医疗科技有限公司 | A kind of method, apparatus for obtaining power spectrum and the device that energy window is set |
CN108254001A (en) * | 2017-12-14 | 2018-07-06 | 科瑞工业自动化系统(苏州)有限公司 | A kind of method of sonac and its measurement accuracy |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10255354B3 (en) * | 2002-11-27 | 2004-03-04 | Infineon Technologies Ag | Analogue/digital converter with incorporated calibration unit used for determining digital/analogue error of digital/analogue converter |
CN102545900B (en) * | 2010-12-20 | 2015-05-20 | 意法半导体研发(上海)有限公司 | Analog/digital (A/D) conversion system and method |
US9584146B2 (en) * | 2015-01-16 | 2017-02-28 | Mediatek Inc. | System and method for measuring the DC-transfer characteristic of an analog-to-digital converter |
CN106027051B (en) * | 2016-05-12 | 2019-03-19 | 东南大学 | A kind of background calibration circuit and calibration method suitable for production line analog-digital converter |
CN109194331B (en) * | 2018-08-29 | 2021-10-26 | 苏州瑞迈斯医疗科技有限公司 | Electronic device and method for correcting comparator in electronic device |
-
2018
- 2018-08-29 CN CN201810995862.0A patent/CN109194331B/en active Active
-
2019
- 2019-08-28 WO PCT/CN2019/103079 patent/WO2020043134A1/en active Application Filing
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4616210A (en) * | 1984-09-14 | 1986-10-07 | The Perkin-Elmer Corporation | Spectrophotometers |
US20050247881A1 (en) * | 2004-05-07 | 2005-11-10 | Fuji Electric Systems Co., Ltd. | Dose detector and dosimeter |
JP2005321274A (en) * | 2004-05-07 | 2005-11-17 | Fuji Electric Systems Co Ltd | Radiation dosage detector and dosimeter |
CN101231192A (en) * | 2007-01-23 | 2008-07-30 | Ulis股份公司 | Method for digitising an analogue magnitude, digitisation device implementing this method and electromagnetic radiation detector |
CN101680956A (en) * | 2007-06-19 | 2010-03-24 | 皇家飞利浦电子股份有限公司 | Digital pulse processing for multi-spectral photon counting readout circuits |
US20090128216A1 (en) * | 2007-10-08 | 2009-05-21 | Naresh Kesavan Rao | System and method for time-to-voltage conversion with lock-out logic |
CN101960320A (en) * | 2008-02-27 | 2011-01-26 | 阿莱戈微系统公司 | Hysteresis offset cancellation for Magnetic Sensor |
CN103002232A (en) * | 2011-09-08 | 2013-03-27 | 佳能株式会社 | Imaging apparatus |
CN104285164A (en) * | 2012-05-15 | 2015-01-14 | R·贝拉兹尼 | A digital x-ray sensor |
CN103858022A (en) * | 2012-07-18 | 2014-06-11 | 株式会社东芝 | Data acquisition device, pair annihilation gamma ray detector, and pair annihilation gamma ray detection method |
US20140244196A1 (en) * | 2013-02-26 | 2014-08-28 | Canon Kabushiki Kaisha | Measuring apparatus |
CN103226204A (en) * | 2013-04-01 | 2013-07-31 | 中国科学院高能物理研究所 | System and method for testing signal of detector |
CN207249037U (en) * | 2017-09-11 | 2018-04-17 | 深圳市无眼界科技有限公司 | It is a kind of to be used to detect the detection device whether device connection status comes off |
CN108254001A (en) * | 2017-12-14 | 2018-07-06 | 科瑞工业自动化系统(苏州)有限公司 | A kind of method of sonac and its measurement accuracy |
CN108169789A (en) * | 2018-03-22 | 2018-06-15 | 苏州瑞迈斯医疗科技有限公司 | A kind of method, apparatus for obtaining power spectrum and the device that energy window is set |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020043134A1 (en) * | 2018-08-29 | 2020-03-05 | 苏州瑞迈斯医疗科技有限公司 | Electronic device, and method for calibrating comparator in electronic device |
CN110954938A (en) * | 2019-12-11 | 2020-04-03 | 湖北锐世数字医学影像科技有限公司 | Threshold correction method and device of comparator and sampling circuit |
CN110954938B (en) * | 2019-12-11 | 2021-08-31 | 湖北锐世数字医学影像科技有限公司 | Threshold correction method and device of comparator and sampling circuit |
Also Published As
Publication number | Publication date |
---|---|
CN109194331B (en) | 2021-10-26 |
WO2020043134A1 (en) | 2020-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109194331A (en) | Electronic device and the method for correcting comparator in the electronic device | |
CN106556342B (en) | A kind of grating subdivision device and method based on FPGA | |
CN106385257A (en) | Calibration algorithm applied to time-interleaved analog-to-digital converter | |
CN103051339B (en) | A kind of AD sampling value correcting method and system | |
CN104898530A (en) | Embedded controller synchronous printing and dyeing control system based on DSP (Digital Signal Processor) and FPGA (Field Programmable Gate Array) | |
CA1054720A (en) | Analog-to-digital conversion apparatus | |
CN109061314A (en) | A kind of method and device for the filter capacitor capacitance detecting inverter | |
CN110362293A (en) | Multiplier, data processing method, chip and electronic equipment | |
US10620914B2 (en) | Method and system for performing division/multiplication operations in digital processors, corresponding device and computer program product | |
CN110531954A (en) | Multiplier, data processing method, chip and electronic equipment | |
CN110412644A (en) | Photoncounting methods and device | |
CN110515587A (en) | Multiplier, data processing method, chip and electronic equipment | |
CN109211946A (en) | The method of detection channels in corrected X-ray detector | |
CN105242062B (en) | Fan rotation-speed detection device | |
CN108982959B (en) | Three-phase voltage sampling circuit for motor control | |
CN105786444B (en) | A kind of floating number mantissa leading zero detection method and device | |
CN205921567U (en) | Sawtooth wave produces circuit | |
US10866079B2 (en) | Position sensing device | |
CN206712774U (en) | Pulse density values signaling conversion circuit | |
CN106505977A (en) | A kind of stretch circuit and pulse stretching method | |
CN107479855A (en) | The multiplexing algorithm of DSP multipliers in a kind of FPGA | |
CN208862802U (en) | Self-adapting type calibrates circuit | |
CN106877773A (en) | A kind of efficient velocity feedback PID control device | |
CN106840245A (en) | A kind of encoder quality determining method and device | |
CN109687870A (en) | The SARADC capacitance mismatch bearing calibration of charge redistribution type and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Room 201-1, North building, No.17 building, No.8 Jinfeng Road, high tech Zone, Suzhou City, Jiangsu Province Patentee after: Suzhou Ruimeisi Technology Co.,Ltd. Address before: Room 201-1, North building, No.17 building, No.8 Jinfeng Road, high tech Zone, Suzhou City, Jiangsu Province Patentee before: SUZHOU RUIMAISI MEDICAL TECHNOLOGY Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |