CN101076053A - Method and circuit for multi-channel photoelectric isolated voltage - Google Patents

Method and circuit for multi-channel photoelectric isolated voltage Download PDF

Info

Publication number
CN101076053A
CN101076053A CNA2007100751617A CN200710075161A CN101076053A CN 101076053 A CN101076053 A CN 101076053A CN A2007100751617 A CNA2007100751617 A CN A2007100751617A CN 200710075161 A CN200710075161 A CN 200710075161A CN 101076053 A CN101076053 A CN 101076053A
Authority
CN
China
Prior art keywords
voltage
value
linear
signal
circuit
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
Application number
CNA2007100751617A
Other languages
Chinese (zh)
Other versions
CN101076053B (en
Inventor
吴壬华
肖刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shinry Technologies Co Ltd
Original Assignee
吴壬华
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 吴壬华 filed Critical 吴壬华
Priority to CN2007100751617A priority Critical patent/CN101076053B/en
Publication of CN101076053A publication Critical patent/CN101076053A/en
Application granted granted Critical
Publication of CN101076053B publication Critical patent/CN101076053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The method comprises: in the first, according to the detected voltage reference signal point the measurement range is divided into several linear segments; measuring out the A/D value of the inputted voltage signals after passing through the linear photoelectric coupled circuit, and estimating the linear segment where the A/D value belongs; taking the voltage reference value at the both ends of said linear segment as an interpolation, and using a linear interpolation algorithm to convert the A/D value of the voltage signals to an accurate signal voltage value. The measuring circuit comprises an analog channel switching circuit, a linear photoelectric coupled circuit, a multi-segment voltage reference generating circuit, an A/D converter and a MPU.

Description

A kind of method of measurement and circuit thereof of multichannel photoelectricity isolation voltage
[technical field]
The present invention relates to the fields of measurement of telecommunications watch-dog, particularly a kind of method of measurement and circuit thereof of multichannel photoelectricity isolation voltage.
[background technology]
Existing linear photoconductor coupling measurement circuit has the following shortcoming that is not easy to overcome:
(1) only can in the particular measurement scope, keep higher measure linear degree, bigger deviation from linearity appears in complete some interval meeting of measuring in the range, this deviation from linearity can use specific compensating circuit to be remedied, but compensating circuit is comparatively complicated, need high-precision electric capacity resistance device, cost is higher, and debugging difficulty is bigger, if in addition software is not proofreaied and correct, fundamentally this shortcoming is difficult to eliminate.
(2) have intrinsic static measurement error (as the zero migration error) in the existing linear photoconductor coupling measurement circuit path; And existing linear photoconductor coupling measurement circuit is under the varying environment temperature conditions, and the measurement characteristics curve also can have greatly changed, need be in surveying work corrective action in addition in real time.
(3) existing linear photoconductor coupling measurement circuit is because of the otherness of optocoupler, and bigger difference will take place measured value, need to proofread and correct, but hardware corrected measure cost is higher, workload is bigger.
[summary of the invention]
The technical problem to be solved in the present invention provides a kind of method of measurement and circuit thereof of simple in structure, a kind of multichannel photoelectricity isolation voltage that can accurately measure signal voltage value.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is: a kind of method of measurement of multichannel photoelectricity isolation voltage, comprise the steps,
101, name a person for a particular job according to the voltage reference signal that measures and measure range and be divided into linear segments;
102, measure the A/D value of input voltage signal, judge the linear segments that this A/D value is affiliated by linear photoelectric coupled circuit;
103, with the both end voltage fiducial value of the linear segments under this as interpolation, use linear interpolation algorithm that the A/D value of input voltage signal is converted to signal voltage value accurately.
Wherein, described step 101 also comprises, measures the A/D value of described voltage reference signal by linear photoelectric coupled circuit, and corresponding to accurate known voltage fiducial value.
Wherein, the computing formula of linear interpolation algorithm described in the step 103 is,
val ( n ) = REF ( n ) - ( ad _ r ( n ) - ad _ ai ( n ) ) ( ad _ r ( n ) - ad _ r ( n + 1 ) ) × ( REF ( n ) - REF ( n + 1 ) )
Ad_r wherein (n)≤ ad_ai (n)≤ ad_r (n), val (n)Be the signal voltage value of conversion, REF (n)Be the end-point voltage fiducial value of linear segments, ad_r (n)Be the A/D value of voltage reference signal, ad_ai (n)A/D value for input voltage signal.
Wherein, described reference signal point is described voltage reference signal A/D value and the corresponding points of voltage reference value in rectangular coordinate system.
A kind of multichannel photoelectricity isolation voltage measuring circuit comprises,
The analog channel commutation circuit, it selects multichannel input voltage signal and voltage reference signal to send into the input port of linear photoelectric coupled circuit;
Multi-segment voltage benchmark generation circuit, it provides the measuring basis of dividing linear segments;
Analog to digital converter, it will be converted to digital signal through the voltage signal of linear photoelectric coupled circuit, handle for microprocessor;
Microprocessor, its control analog channel commutation circuit, the signal of linear photoelectric coupled circuit is sent in selection, and the control analog to digital converter is converted to digital quantity with the voltage signal of linear photoelectric coupled circuit output, by linear interpolation algorithm this digital quantity is converted to signal voltage value.
Wherein, also comprise linear photoelectric coupled circuit, it is realized measured input voltage signal and measures the linear isolation of internal circuit photoelectricity;
Wherein, described linear interpolation algorithm solidifies in described microprocessor, and its computing formula is,
val ( n ) = REF ( n ) - ( ad _ r ( n ) - ad _ ai ( n ) ) ( ad _ r ( n ) - ad _ r ( n + 1 ) ) × ( REF ( n ) - REF ( n + 1 ) )
Ad_r wherein (n)≤ ad_ai (n)≤ ad_r (n), val (n)Be the signal voltage value of conversion, REF (n)Be the end-point voltage fiducial value of linear segments, ad_r (n)Be the A/D value of voltage reference signal, ad_ai (n)A/D value for input voltage signal.
Adopt multichannel photoelectricity isolation voltage method of measurement of the present invention, utilize reference voltage signal point to form linear segments, utilize the two-end-point fiducial value of linear segments to adopt linear interpolation algorithm that the A/D value that measures is changed, make this method of measurement measurement voltage signal under the different measuring scope all have good measure linear precision, eliminate the intrinsic measured deviation of linear photoelectric coupled circuit; And with this photoelectricity isolation voltage measuring circuit, it is simple in structure, cost is also lower, has saved the offset peripheral circuit of complicated precision.
[description of drawings]
Fig. 1 is the schematic flow sheet of multichannel photoelectricity isolation voltage method of measurement of the present invention.
Fig. 2 is the matched curve and actual linear photoconductor coupling input-output characteristic curve schematic diagram that is formed by linear segments among the present invention.
Fig. 3 is a multichannel photoelectricity isolation voltage measuring circuit module map of the present invention.
Fig. 4 is the circuit diagram of linear photoelectric coupled circuit of the present invention.
Fig. 5 is the circuit diagram of analog channel commutation circuit of the present invention.
Fig. 6 is the circuit diagram of voltage reference generation circuit of the present invention.
[embodiment]
With specific embodiment the present invention is done to set forth further with reference to the accompanying drawings below.
Fig. 1 is the schematic flow sheet of multichannel photoelectricity isolation voltage method of measurement of the present invention, at first the analog channel commutation circuit switches to benchmark passage P_AREF, measure voltage reference signal P_AREF this moment successively, P_CHK1, P_CHK2, P_CHK3, P_CHK4, GND_DEV_AI is by the A/D value ad_r1 of linear photoelectric coupled circuit, ad_r2, ad_r3, ad_r4, ad_r5, ad_r6, it is corresponding to accurate known voltage fiducial value REF1, REF2, REF3, REF4, REF5, REF6, to measure range and be divided into 5 sections linear segments (A1), (A2), (A3), (A4), (A5), form matched curve linear interpolation table as shown in Figure 2, A/D value and voltage reference value be the corresponding reference signal point of forming in rectangular coordinate system, with linear segments (A1), (A2), (A3), (A4), (A5) can match reality the input-output characteristic curve of linear photoelectric coupled circuit.
Simulation switching phone switches to the measurement passage then, measure the A/D value ad_ai (n) of input voltage signal AI (n) again by linear photoelectric coupled circuit, judge which linear segments ad_ai (n) drops in (An), two ends fiducial value REF (n) with linear segments (An), REF (n+1) is as the fiducial value of interpolation calculation, use linear interpolation algorithm, ad_ai (n) value is converted to signal voltage value val (n) accurately, can calculate actual signal voltage value according to the matched curve table, the computing formula of linear interpolation algorithm is:
val ( n ) = REF ( n ) - ( ad _ r ( n ) - ad _ ai ( n ) ) ( ad _ r ( n ) - ad _ r ( n + 1 ) ) × ( REF ( n ) - REF ( n + 1 ) )
Wherein, ad_r (n)≤ ad_ai (n)≤ ad_r (n)
It only is 6 that certain voltage reference signal is not limited to, and its many more signal voltage values that calculate at last are accurate more.
Corresponding multichannel photoelectricity isolation voltage measuring circuit as shown in Figure 3, it comprises,
A plurality of measured voltage signals 1, its from AI0 to AI15, (can increase and decrease the segmentation number) according to application need;
Multi-segment voltage benchmark generation circuit 2, it provides the measuring basis of dividing linear segments;
Analog channel commutation circuit (MUX) 3, it selects multichannel input voltage signal and voltage reference signal to send into the input port of linear photoelectric coupled circuit;
Linear photoelectric coupled circuit 4, it is realized measured input voltage signal and measures the linear isolation of internal circuit photoelectricity;
Analog to digital converter application circuit (A/D) 5, it will be converted to digital signal through the voltage signal AIN_E1 of linear photoelectric coupled circuit transmission, handle for the microprocessor (MCU) in the watch-dog, calculate actual voltage signal measured value.
It will be converted to digital signal through the voltage signal of linear photoelectric coupled circuit, handle for microprocessor;
Microprocessor (MCU) 6, the core control and the calculating unit of whole measuring circuit, its control analog channel commutation circuit, the signal of linear photoelectric coupled circuit is sent in selection, and control analog to digital converter (A/D) is converted to digital quantity with the voltage signal AIN_E1 of linear photoelectric coupled circuit output, by running on the linear interpolation algorithm that solidifies in inside, the converted measurement value is finished final measured value calculation task.
Wherein, the analog channel commutation circuit as shown in Figure 5, it mainly acts on is to select plurality of voltages input signal P_AI_MUX and voltage reference signal P_AREF, P_CHK1, P_CHK2, P_CHK3, P_CHK4, GND_DEV_AI to send into linear photoelectric coupled circuit input port P_AI_MUX.For preventing that interference signal from entering microprocessor (MCU), used optocoupler U2, U6, U8, U9, U12, U13 to isolate between control signal SEL_A, SEL_B, SEL_C, SEL_MUX1, SEL_MUX2, SEL_MUX3 and multiway analog switch U3, U7, the U11.
Multi-segment voltage benchmark generation circuit as shown in Figure 4, this partial circuit provides measuring basis for dividing linear segments formation matched curve, it is made of high-accuracy voltage parametric device U10 and precision resistance network, the measuring basis signal P_AREF of linear segments segmentation, P_CHK1, P_CHK2, P_CHK3, P_CHK4, GND_DEV_AI will measure range and be divided into 5 sections, the input port P_AI_MUX that process analog channel commutation circuit is sent into linear photoelectric coupled circuit sends into analog to digital converter (A/D) through the output port AIN_E1 of linear photoelectric coupled circuit.
Linear linear photoelectric coupled circuit as shown in Figure 6, this partial circuit is to realize measured signal and measure the linear Key Circuit of isolating of internal circuit photoelectricity, and it is to constitute linear photoelectric coupled circuit by linear optical coupling device U5, amplifier U1B, U4B and resistance, capacitor element; Amplifier U1A, the effect of U4A is to constitute the impedance influences that the positive follow circuit is eliminated input, output.
In sum, adopt multichannel photoelectricity isolation voltage method of measurement of the present invention, utilize reference voltage signal point to form linear segments, utilize the two-end-point fiducial value of linear segments to adopt linear interpolation algorithm that the A/D value that measures is changed, make this method of measurement measurement voltage signal under the different measuring scope all have good measure linear precision, eliminate the intrinsic measured deviation of linear photoelectric coupled circuit; And with this photoelectricity isolation voltage measuring circuit, it is simple in structure, cost is also lower, has saved the offset peripheral circuit of complicated precision.

Claims (7)

1, a kind of method of measurement of multichannel photoelectricity isolation voltage is characterized in that: may further comprise the steps,
101, name a person for a particular job according to the voltage reference signal that measures and measure range and be divided into some linear segments;
102, measure the A/D value of input voltage signal, judge the linear segments that this A/D value is affiliated by linear photoelectric coupled circuit;
103, with the both end voltage fiducial value of the linear segments under this as interpolation, use linear interpolation algorithm that the A/D value of input voltage signal is converted to signal voltage value accurately.
2, the method for measurement of multichannel photoelectricity isolation voltage according to claim 1, it is characterized in that: described step 101 also comprises, measure the A/D value of described voltage reference signal by linear photoelectric coupled circuit, and corresponding to accurate known voltage fiducial value.
3, the method for measurement of multichannel photoelectricity isolation voltage according to claim 1 and 2 is characterized in that: the computing formula of linear interpolation algorithm described in the step 103 is,
val ( n ) = REF ( n ) - ( ad _ r ( n ) - ad _ ai ( n ) ) ( ad _ r n - ad _ r ( n + 1 ) ) × ( REF ( n ) - REF ( n + 1 ) )
Ad_r wherein (n)≤ ad_ai (n)≤ ad_r (n+1), val (n)Be the signal voltage value of conversion, REF (n)Be the end-point voltage fiducial value of linear segments, ad_r (n)Be the A/D value of voltage reference signal, ad_ai (n)A/D value for input voltage signal.
4, according to the method for measurement of each described multichannel photoelectricity isolation voltage of claim 1 to 3, it is characterized in that: described reference signal point is described voltage reference signal A/D value and the corresponding points of voltage reference value in rectangular coordinate system.
5, a kind of measuring circuit of multichannel photoelectricity isolation voltage is characterized in that: comprises,
The analog channel commutation circuit, it selects multichannel input voltage signal and voltage reference signal to send into the input port of linear photoelectric coupled circuit;
Multi-segment voltage benchmark generation circuit, it provides the measuring basis of dividing linear segments;
Analog to digital converter, it will be converted to digital signal through the voltage signal of linear photoelectric coupled circuit, handle for microprocessor;
Microprocessor, its control analog channel commutation circuit, the signal of linear photoelectric coupled circuit is sent in selection, and the control analog to digital converter is converted to digital quantity with the voltage signal of linear photoelectric coupled circuit output, by linear interpolation algorithm this digital quantity is converted to signal voltage value.
6, the measuring circuit of multichannel photoelectricity isolation voltage according to claim 5 is characterized in that: also comprise linear photoelectric coupled circuit, it is realized measured input voltage signal and measures the linear isolation of internal circuit photoelectricity;
7, according to the measuring circuit of claim 5 or 6 described multichannel photoelectricity isolation voltages, it is characterized in that: described linear interpolation algorithm solidifies in described microprocessor, and its computing formula is,
val ( n ) = REF ( n ) - ( ad _ r ( n ) - ad _ ai ( n ) ) ( ad _ r ( n ) - ad _ r ( n + 1 ) ) × ( REF ( n ) - REF ( n + 1 ) )
Ad_r wherein (n)≤ ad_ai (n)≤ ad_r (n), val (n)Be the signal voltage value of conversion, REF (n)Be the end-point voltage fiducial value of linear segments, ad_r (n)Be the A/D value of voltage reference signal, ad_ai (n)A/D value for input voltage signal.
CN2007100751617A 2007-06-21 2007-06-21 Method and circuit for multi-channel photoelectric isolated voltage Active CN101076053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100751617A CN101076053B (en) 2007-06-21 2007-06-21 Method and circuit for multi-channel photoelectric isolated voltage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100751617A CN101076053B (en) 2007-06-21 2007-06-21 Method and circuit for multi-channel photoelectric isolated voltage

Publications (2)

Publication Number Publication Date
CN101076053A true CN101076053A (en) 2007-11-21
CN101076053B CN101076053B (en) 2010-10-06

Family

ID=38976864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100751617A Active CN101076053B (en) 2007-06-21 2007-06-21 Method and circuit for multi-channel photoelectric isolated voltage

Country Status (1)

Country Link
CN (1) CN101076053B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106526332A (en) * 2016-10-25 2017-03-22 华南师范大学 System and method for detecting capacitor of scanning line of capacitive touch screen
CN108681275A (en) * 2018-04-28 2018-10-19 北京机械设备研究所 The compensation method of modulate circuit output voltage parameter and device is isolated in voltage linear
CN109061515A (en) * 2018-09-30 2018-12-21 北京空间飞行器总体设计部 A kind of charge/discharge electricity amount measurement method of battery
CN113595571A (en) * 2021-07-29 2021-11-02 廊坊市东润电子科技有限公司 Circuit signal processing method, pipeline blockage detection signal receiver and pipeline blockage detector
CN117723800A (en) * 2024-02-18 2024-03-19 上海芯诣电子科技有限公司 Semiconductor detection circuit and method, semiconductor detection apparatus, and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2750549B1 (en) * 1996-06-28 1998-09-18 Thomson Csf ANALOG-TO-DIGITAL CONVERTER
JP3520233B2 (en) * 2000-01-21 2004-04-19 春夫 小林 AD conversion circuit
CN1216456C (en) * 2003-06-24 2005-08-24 深圳市东方汉华软件技术有限公司 Method and circuit structure for temperature compensation and frequency calibration of oscillation frequency source
CN201083792Y (en) * 2007-06-21 2008-07-09 吴壬华 Multichannel photoelectric isolation voltage measurement circuit

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106526332A (en) * 2016-10-25 2017-03-22 华南师范大学 System and method for detecting capacitor of scanning line of capacitive touch screen
CN108681275A (en) * 2018-04-28 2018-10-19 北京机械设备研究所 The compensation method of modulate circuit output voltage parameter and device is isolated in voltage linear
CN109061515A (en) * 2018-09-30 2018-12-21 北京空间飞行器总体设计部 A kind of charge/discharge electricity amount measurement method of battery
CN109061515B (en) * 2018-09-30 2021-02-09 北京空间飞行器总体设计部 Method for measuring charge and discharge electric quantity of battery
CN113595571A (en) * 2021-07-29 2021-11-02 廊坊市东润电子科技有限公司 Circuit signal processing method, pipeline blockage detection signal receiver and pipeline blockage detector
CN117723800A (en) * 2024-02-18 2024-03-19 上海芯诣电子科技有限公司 Semiconductor detection circuit and method, semiconductor detection apparatus, and storage medium
CN117723800B (en) * 2024-02-18 2024-05-07 上海芯诣电子科技有限公司 Semiconductor detection circuit and method, semiconductor detection apparatus, and storage medium

Also Published As

Publication number Publication date
CN101076053B (en) 2010-10-06

Similar Documents

Publication Publication Date Title
CN201083792Y (en) Multichannel photoelectric isolation voltage measurement circuit
CN101076053A (en) Method and circuit for multi-channel photoelectric isolated voltage
CN101718562B (en) Method for real-time correcting error of multi-channel high-speed parallel alternative acquisition system
CN101089574A (en) Error correcting method for pressure sensor
CN101046492A (en) Double-port network parameter measuring method
US20190005291A1 (en) Capacitive fingerprint sensor
CN1637422A (en) Electrical power measuring devices
CN1967269A (en) A method for examining impedance
CN106341132A (en) Error blind correction method for time interleaved sampling ADC (Analog-to-Digital Converter)
CN102713526B (en) Determine the method at the angle, absolute position of condenser type motion encoder
CN109782054A (en) A kind of alternating voltage commutation difference measurement device and method based on quantum voltage
CN111781546B (en) Background calibration method and system for eliminating nonidealities of two paths of mutually orthogonal signals
CN108432140A (en) A kind of means for correcting and method
CN1671053A (en) DAC DC offset calibration method and related apparatus
CN106063132A (en) On-chip analog-to-digital converter (adc) linearity test for embedded devices
CN1135704C (en) Floating-point analog-to-digital converter
CN1089969C (en) Multiplexer
CN109521269A (en) A kind of am signals digitlization frequency measuring method
CN112910462B (en) pipeline-SAR ADC digital interstage gain calibration method based on metastable state detection
CN1272600C (en) Phase differential nonsensitive counting method and device for node tracking mohr interference fringe signals
CN107800434A (en) A kind of fast A/D C method of testings based on parameter extraction
CN105846822A (en) Method and system for measuring mismatch error of time-interleaved analog-to-digital conversion system
CN2283839Y (en) Multichannel temp. measuring device with low cost
CN2755616Y (en) AC effective value measuring device
CN105187064A (en) Self-correcting system based on graphene sensor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHENZHEN SHINRY TECHNOLOGIES CO., LTD.

Free format text: FORMER OWNER: WU RENHUA

Effective date: 20110923

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 518055 SHENZHEN, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20110923

Address after: 518055, Guangdong, Shenzhen province Nanshan District Xian Road, No. 1268, crown Yao Ling industrial north 4, building 6, East

Patentee after: Shenzhen Shinry Technolgies Co., Ltd.

Address before: 518057, No. 208, Fangda building, twelve South tech Road, Shenzhen hi tech Industrial Park, Guangdong, China

Patentee before: Wu Renhua

C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518055 No. 1001 Nanshan Chi Park C1 building 14 floor

Patentee after: Shenzhen Shinry Technology Co., Ltd.

Address before: 518055, Guangdong, Shenzhen province Nanshan District Xian Road, No. 1268, crown Yao Ling industrial north 4, building 6, East

Patentee before: Shenzhen Shinry Technolgies Co., Ltd.