JPH0511861B2 - - Google Patents

Info

Publication number
JPH0511861B2
JPH0511861B2 JP11297686A JP11297686A JPH0511861B2 JP H0511861 B2 JPH0511861 B2 JP H0511861B2 JP 11297686 A JP11297686 A JP 11297686A JP 11297686 A JP11297686 A JP 11297686A JP H0511861 B2 JPH0511861 B2 JP H0511861B2
Authority
JP
Japan
Prior art keywords
voltage
sensor
current
circuit
converter
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.)
Expired - Fee Related
Application number
JP11297686A
Other languages
Japanese (ja)
Other versions
JPS62267674A (en
Inventor
Kyoshi Inamoto
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP11297686A priority Critical patent/JPS62267674A/en
Publication of JPS62267674A publication Critical patent/JPS62267674A/en
Publication of JPH0511861B2 publication Critical patent/JPH0511861B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Description

【発明の詳細な説明】 〈技術分野〉 この発明は、少ない配線で複数のセンサの状態
を検知するセンサ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a sensor circuit that detects the states of a plurality of sensors with less wiring.

〈発明の概要〉 この発明は、オン・オフにスイツチングする複
数のセンサに流れる電流量を予め定められた値と
なるように設定し、各センサに流れる電流の総和
をA/D変換することによつて各センサの状態を
検知するようにしたものであり、特に、単一極性
の電源によつて動作するように構成したものであ
る。
<Summary of the invention> This invention sets the amount of current flowing through a plurality of sensors that are switched on and off to a predetermined value, and converts the sum of the currents flowing through each sensor into an A/D converter. Therefore, the state of each sensor is detected, and in particular, it is configured to operate with a single polarity power source.

〈発明の背景〉 従来、ある装置内に設けられた複数のセンサの
オン・オフ状態を検知するセンサ回路として、第
3図に示すような回路が用いられている。同図に
おいてSW1〜SW8は各々センサであり、これ
らに対してストローブ信号S1,S2を供給し、
そのリターン信号をI0〜I3として入力する。
このようにストローブ信号と入力信号との関係に
よつてセンサのオン・オフ状態を検知する方法で
は、各センサに対して少なくとも1本の信号線
が、必要であり、その他にストローブ信号を供給
するための信号線が必要である。
<Background of the Invention> Conventionally, a circuit as shown in FIG. 3 has been used as a sensor circuit for detecting the on/off states of a plurality of sensors provided in a certain device. In the figure, SW1 to SW8 are sensors, to which strobe signals S1 and S2 are supplied,
The return signals are input as I0 to I3.
In this method of detecting the on/off state of a sensor based on the relationship between a strobe signal and an input signal, at least one signal line is required for each sensor, and the strobe signal is also supplied. A signal line is required for this purpose.

このように時分割により各センサの状態を検知
する方式でも、多数の信号線が必要となり、太い
ケーブルを配線しなければならないといつた問題
があつた。また、各センサの状態を検知する検知
回路はセンサの数に応じて多くの部品が必要とな
り、多数のセンサを必要とする装置の場合、コス
ト高の要因ともなつていた。
Even with this method of detecting the state of each sensor in a time-sharing manner, a large number of signal lines are required, and there are problems in that thick cables must be wired. In addition, a detection circuit that detects the state of each sensor requires many parts depending on the number of sensors, and in the case of a device that requires a large number of sensors, this is also a factor in increasing costs.

そこで、たとえば第4図に示すようにセンサ
SWa〜SWdの各々に予め定められた値の電流ia
〜idが流れるように回路を設定し、これらの各セ
ンサに流れる電流の総和を電流検知回路によつて
検知することにより、各センサのオン・オフ状態
を検知することができる。従来、このような方法
で複数のセンサの状態を検知する回路として第5
図に示すようなものが考えられている。同図にお
いてSWa〜SWdはセンサであり、各々に抵抗Ra
〜Rdが直列に接続された回路に一定電圧Vrが印
加され、各センサに流れる電流の総和が電流/電
圧変換回路2によつて電圧に変換され、その電圧
がA/D変換器1によつてデジタルコードに変換
される。
Therefore, for example, as shown in Figure 4, the sensor
A current ia with a predetermined value for each of SWa to SWd
The on/off state of each sensor can be detected by setting the circuit so that ~id flows and using a current detection circuit to detect the sum of the currents flowing through each of these sensors. Conventionally, the fifth circuit has been used as a circuit for detecting the states of multiple sensors using this method.
Something like the one shown in the figure is being considered. In the same figure, SWa to SWd are sensors, each with a resistance Ra
A constant voltage Vr is applied to a circuit in which ~Rd are connected in series, the sum of the currents flowing through each sensor is converted to a voltage by the current/voltage conversion circuit 2, and the voltage is converted to a voltage by the A/D converter 1. and then converted into digital code.

このようなセンサ回路において、電流/電圧変
換回路2はオペアンプを用いた反転形帰還回路よ
り構成されている。したがつて、各センサに印加
される電圧Vrが正の電圧である場合、電流/電
圧変換回路の出力は負極性となり、A/D変換器
1は負電圧入力で動作するものでなければならな
い。逆に、正電圧入力で動作するA/D変換器を
用いるためには電圧Vrを負極性としなければな
らない。このようにいずれの場合でも従来のセン
サ回路では正負両極性の電源が必要であり、電源
回路が複雑になるという欠点があつた。
In such a sensor circuit, the current/voltage conversion circuit 2 is constituted by an inverting feedback circuit using an operational amplifier. Therefore, when the voltage Vr applied to each sensor is a positive voltage, the output of the current/voltage conversion circuit has negative polarity, and the A/D converter 1 must operate with negative voltage input. . Conversely, in order to use an A/D converter that operates with positive voltage input, the voltage Vr must have negative polarity. In either case, conventional sensor circuits require power supplies with both positive and negative polarities, which has the disadvantage of complicating the power supply circuit.

〈発明の目的〉 この発明の目的は、複数のセンサとその各セン
サのオン・オフ状態を検知する検知回路との間の
信号線を極めて少なくするとともに、電源を単一
極性として、単純な回路でセンサ回路を構成する
ことにある。
<Objective of the Invention> An object of the invention is to minimize the number of signal lines between a plurality of sensors and a detection circuit that detects the on/off state of each sensor, to use a single polarity power supply, and to create a simple circuit. The purpose of this is to configure a sensor circuit.

〈発明の構成および効果〉 この発明は、オン・オフにスイツチングする複
数のセンサを並列的に接続するとともに、各々の
センサに直列に抵抗を接続し、各抵抗の大きさを
それぞれ異なる2のべきに設定し、さらに前記各
センサに流れる電流の総和を電圧に変換する電
流/電圧変換回路と、この電流/電圧変換回路の
出力電圧をA/D変換するA/D変換器を設け、
このA/D変換器の出力によつて各センサの状態
を検知するセンサ回路であつて、前記電流/電圧
変換回路を、オペアンプを用いた反転形帰還回路
より構成し、このオペアンプの基準電圧入力端子
に前記A/D変換器の最大入力電圧に等しく、か
つ前記電流/電圧変換回路の出力電圧を0電位か
ら前記オペアンプの基準電圧の範囲で変化させる
電圧に等しい基準電圧を印加したことを特徴とす
る。
<Configuration and Effects of the Invention> The present invention connects a plurality of sensors that switch on and off in parallel, connects a resistor in series with each sensor, and sets the magnitude of each resistor to a different power of 2. further provided with a current/voltage conversion circuit that converts the sum of the currents flowing through each sensor into a voltage, and an A/D converter that converts the output voltage of the current/voltage conversion circuit from A/D,
The sensor circuit detects the state of each sensor based on the output of this A/D converter, and the current/voltage conversion circuit is configured with an inverting feedback circuit using an operational amplifier, and a reference voltage input to the operational amplifier is provided. A reference voltage that is equal to the maximum input voltage of the A/D converter and equal to a voltage that changes the output voltage of the current/voltage conversion circuit in the range from 0 potential to the reference voltage of the operational amplifier is applied to the terminal. shall be.

以上のように構成したことによつて、反転形帰
還回路の出力範囲は、その反転形帰還回路を構成
するオペアンプの基準電圧入力端子に印加された
電圧分だけシフトされたものとなる。このため、
電流/電圧変換回路の出力電圧は0からオペアン
プの基準電圧入力端子に印加される電圧の範囲と
なり、A/D変換器の入力電圧範囲と対応するこ
とになる。このように電流/電圧変換回路とA/
D変換器のいずれも単一極性の電源によつて動作
させることができ、電源回路を単純化することが
できる。
With the above configuration, the output range of the inverting feedback circuit is shifted by the voltage applied to the reference voltage input terminal of the operational amplifier constituting the inverting feedback circuit. For this reason,
The output voltage of the current/voltage conversion circuit ranges from 0 to the voltage applied to the reference voltage input terminal of the operational amplifier, which corresponds to the input voltage range of the A/D converter. In this way, the current/voltage conversion circuit and the A/
Both D converters can be operated with a single polarity power supply, simplifying the power supply circuit.

〈実施例〉 第1図はこの発明の実施例であるセンサ回路を
表す。
<Embodiment> FIG. 1 shows a sensor circuit which is an embodiment of the present invention.

SWa〜SWdは各々センサであり、各センサに
直列に抵抗Ra〜Rdが接続され、さらにこれらの
直列回路が全て並列接続され、一方の電極がケー
ブルL1を介して一定電圧を発生する電源Vrに
共通に接続されている。他方の電極はケーブルL
2を介して、電流/電圧変換回路2に共通に接続
されている。この電流/電圧変換回路2はオペア
ンプOPと抵抗Rfおよび基準電圧源Vrefとから構
成されていて、出力電圧Vは V=Vref−Rf・iとして表される。
SWa to SWd are sensors, and resistors Ra to Rd are connected in series to each sensor, and all of these series circuits are connected in parallel, and one electrode is connected to a power supply Vr that generates a constant voltage via a cable L1. connected in common. The other electrode is cable L
2, they are commonly connected to the current/voltage conversion circuit 2. This current/voltage conversion circuit 2 is composed of an operational amplifier OP, a resistor Rf, and a reference voltage source Vref, and the output voltage V is expressed as V=Vref−Rf·i.

ここでiはケーブルL2に流れる電流であり次
の式で表される。
Here, i is the current flowing through the cable L2 and is expressed by the following equation.

i=((a/Ra)+(b/Rb)+(c/Rc)+(d/
Rd))Vr したがつて、電流/電圧変換回路の出力電圧V
は次のように表される。
i=((a/Ra)+(b/Rb)+(c/Rc)+(d/
Rd))Vr Therefore, the output voltage V of the current/voltage conversion circuit
is expressed as follows.

V=Vref−Rf((a/Ra)+(b/Rb)+(c/
Rc)+(d/Rd))・Vr ただし、上記2つの式においてa,b,c,d
はセンサSWa,SWb,SWc,SWdがオン状態の
とき1、オフ状態のとき0である。
V=Vref−Rf((a/Ra)+(b/Rb)+(c/
Rc)+(d/Rd))・Vr However, in the above two equations, a, b, c, d
is 1 when the sensors SWa, SWb, SWc, and SWd are in the on state, and 0 when the sensors are in the off state.

ここで抵抗値の比率を Ra:Rb:Rc:Rd=1:2:4:8とすれば、 V=Vref−(Rf/Ra)(a+(b/2)+(c/
4)+(d/8))Vr=Vref−(8a+4b+2c+
d)・RfVr/8Ra ここで、オペアンプの基準電圧Vrefの値を
Vref=15RfVr/8Ra の関係が成立するように帰還抵抗Rf、各センサ
に抵抗を介して印加する一定電圧Vr、および抵
抗Raの各値を定めることによつて、オペアンプ
の出力電圧Vは各センサのオン・オフ状態に応じ
て0〜Vrefの範囲の値となる。
Here, if the ratio of resistance values is Ra:Rb:Rc:Rd=1:2:4:8, then V=Vref−(Rf/Ra)(a+(b/2)+(c/
4) + (d/8)) Vr = Vref - (8a + 4b + 2c +
d)・RfVr/8Ra Here, the value of the reference voltage Vref of the operational amplifier is
By determining the values of the feedback resistor Rf, the constant voltage Vr applied to each sensor via the resistor, and the resistor Ra so that the relationship Vref=15RfVr/8Ra is established, the output voltage V of the operational amplifier can be set for each sensor. The value ranges from 0 to Vref depending on the on/off state.

このオペアンプの出力電圧Vのとり得る範囲は
A/D変換器の入力電圧のフルスケールに対応す
る。したがつて、各センサのオン・オフ状態に応
じて4ビツトのコードD1〜D4が得られる。
The possible range of the output voltage V of this operational amplifier corresponds to the full scale of the input voltage of the A/D converter. Therefore, 4-bit codes D1 to D4 are obtained depending on the on/off state of each sensor.

第2図は、各センサのオン・オフ状態とA/D
変換器の出力コードとの関係を表す図である。図
より明らかなように各センサの状態に応じて電
流/電圧変換回路に流入する電流iは0〜15idま
でとり得る(電流idは抵抗Rdに流れる電流に相
当する)。たとえば全てのセンサがオフ状態の時
すなわち電流iが0の時、電流/電圧変換回路の
出力電圧はVrefの値となるため、A/D変換器
の出力は1111となる。また、全てのセンサがオン
状態すなわち電流iが15idの時、電流/電圧変換
回路の出力電圧Vは0となるため、A/D変換器
の出力は0000となる。
Figure 2 shows the on/off status of each sensor and the A/D
It is a figure showing the relationship with the output code of a converter. As is clear from the figure, the current i flowing into the current/voltage conversion circuit can range from 0 to 15id depending on the state of each sensor (current id corresponds to the current flowing through the resistor Rd). For example, when all the sensors are off, that is, when the current i is 0, the output voltage of the current/voltage conversion circuit is the value of Vref, so the output of the A/D converter is 1111. Further, when all the sensors are in the on state, that is, when the current i is 15id, the output voltage V of the current/voltage conversion circuit is 0, so the output of the A/D converter is 0000.

このようにして各センサのオン・オフ状態を4
ビツトのコードとして得ることができ、このコー
ドから個々のセンサのオン・オフ状態を検知する
ことができる。なお、センサのオン状態をビツト
1、オフ状態をビツト0に対応させてコード化す
る場合は、同図に示したようにA/D変換器の出
力コードに対して1の補数をとることによつて、
得ることができる。
In this way, the on/off state of each sensor can be changed to 4.
It can be obtained as a bit code, and the on/off status of each sensor can be detected from this code. In addition, when encoding the ON state of the sensor with bit 1 and the OFF state with bit 0, take the 1's complement for the output code of the A/D converter as shown in the figure. Then,
Obtainable.

【図面の簡単な説明】[Brief explanation of drawings]

第1図はこの発明の実施例であるセンサ回路、
第2図は同センサ回路において各センサの状態と
A/D変換器の出力コードとの関係を表す図であ
る。第3図は従来のセンサ回路の例を示す図、第
4図は他の従来のセンサ回路の動作原理を説明す
る図、第5図はその具体的な従来のセンサ回路の
例を表す図である。 1……A/D変換器、2……電流/電圧変換回
路、SWa〜SWd……センサ、Ra〜Rd……抵抗、
OP……オペアンプ、Vref……基準電圧。
FIG. 1 shows a sensor circuit which is an embodiment of the present invention.
FIG. 2 is a diagram showing the relationship between the state of each sensor and the output code of the A/D converter in the same sensor circuit. Fig. 3 is a diagram showing an example of a conventional sensor circuit, Fig. 4 is a diagram explaining the operating principle of another conventional sensor circuit, and Fig. 5 is a diagram showing a specific example of the conventional sensor circuit. be. 1...A/D converter, 2...Current/voltage conversion circuit, SWa to SWd...Sensor, Ra to Rd...Resistance,
OP... operational amplifier, Vref... reference voltage.

Claims (1)

【特許請求の範囲】 1 オン・オフにスイツチングする複数のセンサ
を並列的に接続するとともに、各々のセンサに直
列に抵抗を接続し、各抵抗の大きさをそれぞれ異
なる2のべきに設定し、さらに前記各センサに流
れる電流の総和を電圧に変換する電流/電圧変換
回路と、この電流/電圧変換回路の出力電圧を
A/D変換するA/D変換器を設け、このA/D
変換器の出力によつて各センサの状態を検知する
センサ回路において、 前記電流/電圧変換回路を、オペアンプを用い
て反転形帰還回路より構成し、このオペアンプの
基準電圧入力端子に前記A/D変換器の最大入力
電圧に等しく、かつ前記電流/電圧変換回路の出
力電圧を0電位から前記オペアンプの基準電圧の
範囲で変化させる電圧に等しい基準電圧を印加し
たことを特徴とするセンサ回路。
[Claims] 1. A plurality of sensors that are switched on and off are connected in parallel, and a resistor is connected in series to each sensor, and the magnitude of each resistor is set to a different power of 2, Furthermore, a current/voltage conversion circuit that converts the sum of the currents flowing through each sensor into a voltage, and an A/D converter that converts the output voltage of the current/voltage conversion circuit into A/D are provided, and this A/D converter is provided.
In a sensor circuit that detects the state of each sensor by the output of a converter, the current/voltage conversion circuit is configured with an inverting feedback circuit using an operational amplifier, and the A/D is connected to a reference voltage input terminal of the operational amplifier. A sensor circuit characterized in that a reference voltage is applied that is equal to the maximum input voltage of a converter and that is equal to a voltage that changes the output voltage of the current/voltage conversion circuit in the range from 0 potential to the reference voltage of the operational amplifier.
JP11297686A 1986-05-16 1986-05-16 Sensor circuit Granted JPS62267674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11297686A JPS62267674A (en) 1986-05-16 1986-05-16 Sensor circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11297686A JPS62267674A (en) 1986-05-16 1986-05-16 Sensor circuit

Publications (2)

Publication Number Publication Date
JPS62267674A JPS62267674A (en) 1987-11-20
JPH0511861B2 true JPH0511861B2 (en) 1993-02-16

Family

ID=14600274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11297686A Granted JPS62267674A (en) 1986-05-16 1986-05-16 Sensor circuit

Country Status (1)

Country Link
JP (1) JPS62267674A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006058076A (en) 2004-08-18 2006-03-02 Sharp Corp Connection decision mechanism, printer, connection decision method, connection decision program, and recording medium in which connection decision program has been recorded

Also Published As

Publication number Publication date
JPS62267674A (en) 1987-11-20

Similar Documents

Publication Publication Date Title
JPH04345321A (en) Dual slope integrating a/d converter
JPH0511861B2 (en)
JPH0719008Y2 (en) Current measuring device
JPH09167965A (en) Reference voltage generating circuit
JPH01227030A (en) Detecting circuit of resistance temperature characteristic
JPH0511792B2 (en)
JPH08221683A (en) Sensor device
JPH0438293B2 (en)
JPH02156728A (en) Bias circuit for a/d converter
US4808846A (en) Bridge-to-frequency converter
JPH0797048B2 (en) Digital temperature detector
SU1449845A1 (en) Multichannel measuring device for differential variable-induction transducer
JP3129005B2 (en) Signal converter
JP3470481B2 (en) Power circuit
JP3210127B2 (en) Voltage pulse width conversion circuit
SU972657A1 (en) Code to current converter
JP2542235B2 (en) Densho generator
RU2093956C1 (en) Analog-to-digital converter with code negative feedback circuit
JP2576235Y2 (en) Voltage or current measuring device
RU2024917C1 (en) Direct current stabilizer
JPH0537248Y2 (en)
SU860088A1 (en) Square-law function generator
SU1372341A1 (en) Code-controlled conduction unit
JPH01227525A (en) D/a converter
JPS6111799Y2 (en)

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees