JP4981745B2 - Proximity sensor - Google Patents

Proximity sensor Download PDF

Info

Publication number
JP4981745B2
JP4981745B2 JP2008125238A JP2008125238A JP4981745B2 JP 4981745 B2 JP4981745 B2 JP 4981745B2 JP 2008125238 A JP2008125238 A JP 2008125238A JP 2008125238 A JP2008125238 A JP 2008125238A JP 4981745 B2 JP4981745 B2 JP 4981745B2
Authority
JP
Japan
Prior art keywords
current
unit
digital code
output
value
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
JP2008125238A
Other languages
Japanese (ja)
Other versions
JP2009278196A (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2008125238A priority Critical patent/JP4981745B2/en
Priority to US12/679,157 priority patent/US8432169B2/en
Priority to PCT/JP2008/066956 priority patent/WO2009038159A1/en
Publication of JP2009278196A publication Critical patent/JP2009278196A/en
Application granted granted Critical
Publication of JP4981745B2 publication Critical patent/JP4981745B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)

Description

本発明は、高周波発振型の近接センサに関するものである。   The present invention relates to a high-frequency oscillation type proximity sensor.

従来から、非接触で金属体(導電体)や磁性体などからなる被検知体を検知する近接センサとして、高周波発振型の近接センサが提案されている。   Conventionally, a high-frequency oscillation type proximity sensor has been proposed as a proximity sensor that detects a detection object made of a metal body (conductor) or a magnetic body in a non-contact manner.

上記高周波発振型の近接センサは、検知コイルとコンデンサとの並列回路よりなるLC共振回路部を有している。この近接センサでは、LC共振回路部を構成する検知コイルに被検知体が接近した際に、電磁誘導作用によって渦電流損が生じて検知コイルの実効抵抗値(インピーダンス)が変化するという現象を利用して被検知体の検知を行っている。つまり、検知コイルのインピーダンスが変化するとLC共振回路部の発振条件も変化するため、LC共振回路部を発振させている状態から、LC共振回路部の発振が停止または発振振幅が所定値以上減衰した際に、被検知体が存在していると判定する(例えば、特許文献1参照)。
特開2005−295248号公報
The high-frequency oscillation type proximity sensor has an LC resonance circuit unit including a parallel circuit of a detection coil and a capacitor. This proximity sensor utilizes the phenomenon that, when the object to be detected approaches the detection coil that constitutes the LC resonance circuit unit, eddy current loss occurs due to electromagnetic induction and the effective resistance value (impedance) of the detection coil changes. The object to be detected is detected. In other words, when the impedance of the detection coil changes, the oscillation conditions of the LC resonance circuit section also change. Therefore, from the state in which the LC resonance circuit section is oscillated, the oscillation of the LC resonance circuit section stops or the oscillation amplitude attenuates by a predetermined value or more. At this time, it is determined that the detected object exists (see, for example, Patent Document 1).
JP 2005-295248 A

上述した従来の近接センサは、被検知体と検知コイルとの距離が、LC共振回路部の発振が停止または発振振幅が所定値未満になる距離(検知距離)より長ければ、被検知体が検知コイルの検知範囲内に存在しないと判定し、上記検知距離より短ければ、被検知体が検知コイルの検知範囲内に存在すると判定するから、近接センサから出力される検知信号は、被検知体が存在しているか否かの2値しかないデジタル(ディジタル)な値である。   In the conventional proximity sensor described above, if the distance between the detected object and the detection coil is longer than the distance (detection distance) at which the oscillation of the LC resonance circuit unit stops or the oscillation amplitude is less than a predetermined value, the detected object is detected. If it is determined that the detected object does not exist within the detection range of the coil and is shorter than the detection distance, it is determined that the detected object exists within the detection range of the detection coil. It is a digital value that has only two values of whether or not it exists.

このように従来の近接センサでは、被検知体と検知コイルとの距離が上記検知距離より短くなれば、被検知体が存在していると判定する、つまり、被検知体が検知コイルの検知範囲内に存在するか否かを検知するだけであるから、被検知体が存在しているか否かのデジタルな検知信号を得ることはできていたが、被検知体が検知コイルに対してどの程度接近しているかまでは検知することができないため、被検知体と検知コイルとの距離を示すようなアナログな検知信号を得ることはできなかった。   As described above, in the conventional proximity sensor, if the distance between the detected object and the detection coil becomes shorter than the detection distance, it is determined that the detected object exists. That is, the detected object is in the detection range of the detection coil. It was possible to obtain a digital detection signal indicating whether or not the detected object exists, but only how much the detected object is relative to the detection coil. Since it cannot be detected until it is approaching, an analog detection signal indicating the distance between the detected object and the detection coil cannot be obtained.

本発明は上述の点に鑑みて為されたもので、その目的は、被検知体の存在検知に加え、被検知体との距離も検知できる近接センサを提供することにある。   The present invention has been made in view of the above points, and an object of the present invention is to provide a proximity sensor that can detect the distance to a detected object in addition to detecting the presence of the detected object.

上記の課題を解決するために、請求項1の発明では、被検知体の検知に用いられる検知コイルおよびコンデンサからなるLC共振回路部と、前記LC共振回路部を発振させる発振回路部と、前記LC共振回路部の発振振幅を検出するモニタ部と、前記モニタ部で検出した前記発振振幅に基づいて前記発振回路部の負性コンダクタンスを前記LC共振回路部が発振可能な臨界値に設定する制御部と、被検知体と前記検知コイルとの距離を示す検知信号を作成する信号処理部とを備え、前記発振回路部は、前記制御部で設定されたデジタルコードに対応した出力電流を出力するD/Aコンバータよりなる電流調整部を有し、前記電流調整部の出力電流を帰還電流として前記LC共振回路部に供給し、前記制御部は、前記発振回路部の負性コンダクタンスが前記臨界値となるように前記デジタルコードを設定し、前記信号処理部は、前記制御部で設定された前記デジタルコードに基づいて前記検知信号を作成し、前記電流調整部は、前記LC共振回路部の発振電圧に応じた電流を基準電流とする入力側カレントミラートランジスタ、および前記基準電流に比例した大きさのミラー電流を基準電源から前記LC共振回路部に供給させる複数の出力側カレントミラートランジスタを有し、前記基準電源から前記LC共振回路部に供給される前記ミラー電流を加算して前記出力電流を作成するカレントミラー回路部と、前記デジタルコードに基づいて制御され前記ミラー電流を前記LC共振回路部に供給するか否かを決定する複数のスイッチとを有していることを特徴とする。 In order to solve the above problems, the invention of claim 1, an LC resonance circuit consisting of the sensing coil and a capacitor used in the detection of the detected body, and the oscillation circuit for oscillating the LC resonant circuit, the a monitor unit for detecting the oscillation amplitude of the LC resonant circuit, control the negative conductance LC resonant circuit of said monitor portion said oscillation circuit based on the oscillation amplitude detected by the set oscillation possible threshold includes a section, a signal processing unit for creating a detection signal indicative of the distance between the sensing coil and the detected body, the oscillation circuit outputs an output current corresponding to the digital code set by the control unit has a current adjusting unit consisting of D / a converter, the output current of the current controller is supplied to the LC resonant circuit as a feedback current, the control unit is negative conductance of the oscillation circuit unit Nsu sets the digital code such that the critical value, the signal processing unit, the creating a detection signal based on the digital code set by the controller, the current controller, the LC An input-side current mirror transistor that uses a current corresponding to the oscillation voltage of the resonance circuit unit as a reference current, and a plurality of output-side currents that supply a mirror current having a magnitude proportional to the reference current from a reference power source to the LC resonance circuit unit A current mirror circuit unit that has a mirror transistor and adds the mirror current supplied from the reference power source to the LC resonance circuit unit to create the output current; and the mirror current controlled based on the digital code And a plurality of switches for determining whether or not to supply the LC resonance circuit unit .

請求項1の発明によれば、LC共振回路部が発振する条件は、発振回路部の負性コンダクタンスの絶対値が、検知コイルのコンダクタンスの絶対値以上であることであるから、発振回路部の負性コンダクタンスがLC共振回路部が発振可能な臨界値である場合、当該負性コンダクタンスの絶対値は、検知コイルのコンダクタンスの絶対値に等しいと考えることができ、ここで、検知コイルのコンダクタンスは、被検知体と検知コイルとの距離に起因する渦電流損の変化、つまり検知コイルと被検知体との距離に応じて変化し、検知コイルのコンダクタンスに等しい発振回路部の負性コンダクタンスは、LC共振回路部に供給される帰還電流とLC共振回路部の発振振幅によって決定され、LC共振回路部に供給される帰還電流は電流調整部の出力電流に正比例するので、制御部で設定されたデジタルコードを用いて検知コイルと被検知体との距離を検出することができるから、従来例のような被検知体が存在しているか否かのデジタルな検知信号ではなく、被検知体と検知コイルとの距離を示すアナログな検知信号を得ることができ、また検知信号を閾値処理することにより被検知体が存在しているか否かのデジタルな検知信号も得ることができて、被検知体の存在検知に加え、被検知体との距離も検知できる。加えて、デジタルコードを用いることによって、各種通信やPWMなどに使用するデジタル信号を容易に得ることが可能になる(すなわちデジタル信号の親和性が高くなる)。しかも、デジタル信号を取り扱う回路は微細パターンでの小型化が容易であるため、制御部や発振回路部などをIC化する際に低コスト化を図ることができ、またセンサ特性にICばらつきによる影響が生じてしまうことを抑制することができる。さらに、カレントミラー回路部とD/Aコンバータとを別個に設ける場合に比べれば、回路規模を小型化することができ、低コスト化が図れる。 According to the first aspect of the invention, the condition that the LC resonance circuit section oscillates is that the absolute value of the negative conductance of the oscillation circuit section is equal to or larger than the absolute value of the conductance of the detection coil. When the negative conductance is a critical value at which the LC resonant circuit unit can oscillate, the absolute value of the negative conductance can be considered to be equal to the absolute value of the sense coil conductance, where the conductance of the sense coil is The change in eddy current loss due to the distance between the detected body and the detection coil, that is, the change in the distance between the detection coil and the detected body, and the negative conductance of the oscillation circuit unit equal to the conductance of the detection coil is The feedback current supplied to the LC resonance circuit unit and the oscillation amplitude of the LC resonance circuit unit are determined, and the feedback current supplied to the LC resonance circuit unit is determined by the current adjustment unit. Since it is directly proportional to the force current, the distance between the detection coil and the detected object can be detected using a digital code set by the control unit. It is possible to obtain an analog detection signal indicating the distance between the detected object and the detection coil instead of the digital detection signal of the above, and whether or not the detected object exists by performing threshold processing on the detected signal In addition to detecting the presence of the detected object, a distance from the detected object can also be detected. In addition, by using the digital code, it is possible to easily obtain a digital signal used for various communications, PWM, and the like (that is, the affinity of the digital signal is increased). In addition, since a circuit that handles digital signals can be easily miniaturized with a fine pattern, it is possible to reduce the cost when the control unit, the oscillation circuit unit, and the like are integrated into an IC. Can be prevented from occurring. Furthermore, as compared with the case where the current mirror circuit unit and the D / A converter are provided separately, the circuit scale can be reduced and the cost can be reduced.

請求項の発明では、請求項の発明において、前記スイッチは、前記出力側カレントミラートランジスタと前記入力側カレントミラートランジスタとの間、あるいは前記出力側カレントミラートランジスタと前記基準電源との間に挿入されていることを特徴とする。 In the invention of claim 2, in the invention of claim 1, wherein the switch, between the input-side current mirror transistor and the output-side current mirror transistors, or between said reference power supply and the output-side current mirror transistor It is inserted.

請求項の発明によれば、出力電流を小さくする際には、ミラー電流が遮断されるから(出力側カレントミラートランジスタにはミラー電流が流れないから)、低消費電力化を図ることができる。 According to the second aspect of the present invention, when the output current is reduced, the mirror current is interrupted (since the mirror current does not flow through the output-side current mirror transistor), so that the power consumption can be reduced. .

請求項の発明では、請求項の発明において、前記ミラー電流を前記LC共振回路部に供給する供給路と、前記ミラー電流を前記LC共振回路部に供給しない非供給路とを有し、前記供給路と前記非供給路とのいずれに前記ミラー電流が流れるかは前記スイッチにより選択されることを特徴とする。 In the invention of claim 3, comprising the invention of claim 1, a supply path for supplying the mirrored current to the LC resonant circuit, and a non-supply line not supplying the mirrored current to the LC resonant circuit, wherein one of whether the mirror current flows of the supply path and the non-supply passage, characterized in that it is selected by the switch.

請求項の発明によれば、供給路と非供給路とのいずれにミラー電流が流れるかによって出力電流が調整されるので、出力側カレントミラートランジスタにはスイッチの制御状態に関係なくミラー電流が流れるから、ミラー電流の供給開始や供給停止に伴う出力側カレントミラートランジスタにおける電流変動によって、入力側カレントミラートランジスタの基準電流が変動してしまうことを抑制することができ、安定した動作が行える。 According to the invention of claim 3 , since the output current is adjusted depending on whether the mirror current flows through the supply path or the non-supply path, the mirror current is output to the output-side current mirror transistor regardless of the control state of the switch. Therefore, it is possible to suppress the reference current of the input side current mirror transistor from fluctuating due to the current fluctuation in the output side current mirror transistor accompanying the start or stop of the supply of the mirror current, and a stable operation can be performed.

請求項の発明では、請求項のうちいずれか1項の発明において、前記複数の出力側カレントミラートランジスタのうちの少なくとも1つはトランジスタサイズが他と異なっていることを特徴とする。 In the invention of claim 4, in the invention of any one of claims 1 to 3, at least one of the plurality of output-side current mirror transistor is characterized in that the transistor size is different from the other .

請求項の発明によれば、出力側カレントミラートランジスタの数が同じであれば、出力側カレントミラートランジスタのトランジスタサイズがいずれも同じ(出力側カレントミラートランジスタのミラー電流が全て同じ)である場合に比べて、出力可能な出力電流の値を増やすことができるから、出力電流を細かく設定することができて、被検知体と検知コイルとの距離の分解能(位置精度)を向上することができる。 According to the invention of claim 4 , when the number of output side current mirror transistors is the same, the transistor sizes of the output side current mirror transistors are all the same (the mirror currents of the output side current mirror transistors are all the same). Since the output current that can be output can be increased, the output current can be set finely, and the resolution (positional accuracy) of the distance between the detected object and the detection coil can be improved. .

請求項の発明では、請求項のうちいずれか1項の発明において、前記カレントミラー回路部は、前記複数の出力側カレントミラートランジスタそれぞれと前記基準電源との間に個別に挿入された複数のミラー電流制限用の抵抗部を備え、前記複数の抵抗部のうちの少なくとも1つは抵抗値が他と異なっていることを特徴とする。 In the invention of claim 5, in the invention of any one of claims 1 to 3, wherein the current mirror circuit portion is inserted separately between each of the plurality of output-side current mirror transistor and the reference power source And a plurality of resistance portions for limiting the mirror current, wherein at least one of the plurality of resistance portions has a resistance value different from the others.

請求項の発明によれば、出力側カレントミラートランジスタの数が同じであれば、ミラー電流制限用の抵抗部の抵抗値がいずれも同じ(出力側カレントミラートランジスタのミラー電流が全て同じ)である場合に比べて、出力可能な出力電流の値を増やすことができるから、出力電流を細かく設定することができて、被検知体と検知コイルとの距離の分解能(位置精度)を向上することができる。 According to the invention of claim 5 , if the number of output side current mirror transistors is the same, the resistance values of the mirror current limiting resistors are all the same (the output side current mirror transistors have the same mirror current). Compared to a certain case, the output current that can be output can be increased, so the output current can be set finely, and the resolution (positional accuracy) of the distance between the object to be detected and the detection coil can be improved. Can do.

請求項の発明では、請求項の発明において、前記スイッチは、前記抵抗前記基準電源との間に挿入されていることを特徴とする。 In the invention of claim 6, in the invention of claim 5, wherein the switch is characterized in that it is inserted between said reference power supply and the resistor portion.

請求項の発明によれば、出力電流を小さくする際には、ミラー電流が遮断されるから(出力側カレントミラートランジスタにはミラー電流が流れないから)、低消費電力化を図ることができる。 According to the sixth aspect of the present invention, when the output current is reduced, the mirror current is interrupted (since the mirror current does not flow through the output-side current mirror transistor), so that the power consumption can be reduced. .

請求項の発明では、請求項1〜のうちいずれか1項の発明において、前記複数のスイッチそれぞれは、前記デジタルコードのビットと一対一で関係付けられ、前記制御部は、前記スイッチに関係付けられたビットの値に基づいて前記スイッチを制御し、前記デジタルコードにおいてビット番号が0であるビットに関係付けられた前記スイッチにより前記LC共振回路部に供給するか否かが決定されるミラー電流を基準ミラー電流とした場合に、ビット番号が0以外であるビットに関係付けられた前記スイッチにより前記LC共振回路部に供給するか否かが決定されるミラー電流と基準ミラー電流との比が、このスイッチに対応するビットのビット番号を指数として2を累乗した値であることを特徴とする。 In the invention of claim 7, in the invention of any one of claims 1-6, wherein the plurality of switches respectively, associated with bit and one-to-one of said digital code, the control unit, to the switch controls the switch based on the value of the bit that is implicated, whether to supply to the LC resonant circuit is determined by the switch associated with the bit bit number is 0 in the digital code when the mirror current to a reference mirror current, the mirror current and the reference mirror current whether to supply to the LC resonant circuit is determined by the switch associated with the bit bit number is other than 0 The ratio is a value that is a power of 2 with the bit number of the bit corresponding to this switch as an index.

請求項の発明によれば、ストレート・バイナリコードなどの2進数のデジタルコードによって出力電流を調整することができるから、出力側カレントミラートランジスタおよびスイッチの数を少なくしながらも、被検知体と検知コイルとの距離の分解能(位置精度)を向上することができ、またハードウェア構成を簡単にすることができて、小型化や低コスト化を図ることができる。 According to the invention of claim 7 , since the output current can be adjusted by a binary digital code such as a straight binary code, the number of output side current mirror transistors and switches can be reduced, The resolution (positional accuracy) of the distance to the detection coil can be improved, and the hardware configuration can be simplified, so that downsizing and cost reduction can be achieved.

請求項の発明では、請求項のうちいずれか1項の発明において、前記カレントミラー回路部は、前記デジタルコードのビットの値に関係なく前記ミラー電流を前記基準電源から前記LC共振回路部に供給させるオフセット用の出力側カレントミラートランジスタを有していることを特徴とする。 In the invention of claim 8, in the invention of any one of claims 1 to 7, wherein the current mirror circuit unit, the LC resonance of the mirror current from the reference power supply regardless of the value of the bit of the digital code An output-side current mirror transistor for offset supplied to the circuit portion is provided.

請求項の発明によれば、出力電流にオフセットを設けることができるから、オフセットを設けない場合に比べて、被検知体と検知コイルとの距離の分解能(位置精度)を向上することができる。 According to the invention of claim 8 , since the offset can be provided in the output current, the resolution (position accuracy) of the distance between the detected object and the detection coil can be improved as compared with the case where no offset is provided. .

請求項の発明では、被検知体の検知に用いられる検知コイルおよびコンデンサからなるLC共振回路部と、前記LC共振回路部を発振させる発振回路部と、前記LC共振回路部の発振振幅を検出するモニタ部と、前記モニタ部で検出した前記発振振幅に基づいて前記発振回路部の負性コンダクタンスを前記LC共振回路部が発振可能な臨界値に設定する制御部と、被検知体と前記検知コイルとの距離を示す検知信号を作成する信号処理部とを備え、前記発振回路部は、前記制御部で設定されたデジタルコードに対応した出力電流を出力するD/Aコンバータよりなる電流調整部を有し、前記電流調整部の出力電流に正比例する帰還電流を前記LC共振回路部に供給し、前記制御部は、前記発振回路部の負性コンダクタンスが前記臨界値となるように前記デジタルコードを設定し、前記信号処理部は、前記制御部で設定された前記デジタルコードに基づいて前記検知信号を作成し、前記発振回路部は、前記電流調整部の前記出力電流を基準電流とする入力側カレントミラートランジスタと、前記基準電流に比例した大きさの帰還電流を基準電源から前記LC共振回路部に供給させる出力側カレントミラートランジスタとを有したカレントミラー回路部を有し、前記電流調整部は、前記LC共振回路部の発振電圧に応じた増幅電流を前記基準電源から前記入力側カレントミラートランジスタに供給させる複数の増幅回路を有し、前記基準電源から前記入力側カレントミラートランジスタに供給される増幅電流を加算して前記出力電流を作成する増幅部と、前記デジタルコードに基づいて制御され前記増幅電流を前記入力側カレントミラートランジスタに供給するか否かを決定する複数のスイッチとを有していることを特徴とする。 According to the ninth aspect of the present invention, an LC resonance circuit unit including a detection coil and a capacitor used for detecting a detection target , an oscillation circuit unit that oscillates the LC resonance circuit unit, and an oscillation amplitude of the LC resonance circuit unit are detected. A monitoring unit, a control unit that sets a negative conductance of the oscillation circuit unit to a critical value that can be oscillated by the LC resonance circuit unit based on the oscillation amplitude detected by the monitoring unit, a detected object, and the detection A current processing unit comprising a D / A converter that outputs an output current corresponding to the digital code set by the control unit. A feedback current that is directly proportional to the output current of the current adjustment unit is supplied to the LC resonance circuit unit, and the control unit is configured such that the negative conductance of the oscillation circuit unit becomes the critical value. It said set of digital code so, the signal processing section creates the detection signal based on the digital code set by the controller, the oscillator circuit unit, the output current of the current controller has an input-side current mirror transistor to the reference current, the current mirror circuit section which the feedback current having a magnitude proportional to the reference current from the reference power source and an output-side current mirror transistors to be supplied to the LC resonant circuit the current adjustment unit, said amplified current corresponding to the oscillation voltage of the LC resonant circuit includes a plurality of amplifier circuits to be supplied to the input side current mirror transistor from the reference power source, the input current from the reference power supply an amplifying unit that creates the output current by adding the amplified current to be supplied to the mirror transistor, based on the digital code Characterized in that the controlled the amplified current and a plurality of switches for determining whether to supply to the input side current mirror transistors.

請求項の発明によれば、LC共振回路部が発振する条件は、発振回路部の負性コンダクタンスの絶対値が、検知コイルのコンダクタンスの絶対値以上であることであるから、発振回路部の負性コンダクタンスがLC共振回路部が発振可能な臨界値である場合、当該負性コンダクタンスの絶対値は、検知コイルのコンダクタンスの絶対値に等しいと考えることができ、ここで、検知コイルのコンダクタンスは、被検知体と検知コイルとの距離に起因する渦電流損の変化、つまり検知コイルと被検知体との距離に応じて変化し、検知コイルのコンダクタンスに等しい発振回路部の負性コンダクタンスは、LC共振回路部に供給される帰還電流とLC共振回路部の発振振幅によって決定され、LC共振回路部に供給される帰還電流は電流調整部の出力電流に正比例するので、制御部で設定されたデジタルコードを用いて検知コイルと被検知体との距離を検出することができるから、従来例のような被検知体が存在しているか否かのデジタルな検知信号ではなく、被検知体と検知コイルとの距離を示すアナログな検知信号を得ることができ、また検知信号を閾値処理することにより被検知体が存在しているか否かのデジタルな検知信号も得ることができて、被検知体の存在検知に加え、被検知体との距離も検知できる。加えて、デジタルコードを用いることによって、各種通信やPWMなどに使用するデジタル信号を容易に得ることが可能になる(すなわちデジタル信号の親和性が高くなる)。しかも、デジタル信号を取り扱う回路は微細パターンでの小型化が容易であるため、制御部や発振回路部などをIC化する際に低コスト化を図ることができ、またセンサ特性にICばらつきによる影響が生じてしまうことを抑制することができる。さらに、増幅部とD/Aコンバータとを別個に設ける場合に比べれば、回路規模を小型化することができ、低コスト化が図れる。 According to the ninth aspect of the present invention, the condition that the LC resonance circuit section oscillates is that the absolute value of the negative conductance of the oscillation circuit section is equal to or larger than the absolute value of the conductance of the detection coil. When the negative conductance is a critical value at which the LC resonant circuit unit can oscillate, the absolute value of the negative conductance can be considered to be equal to the absolute value of the sense coil conductance, where the conductance of the sense coil is The change in eddy current loss due to the distance between the detected body and the detection coil, that is, the change in the distance between the detection coil and the detected body, and the negative conductance of the oscillation circuit unit equal to the conductance of the detection coil is The feedback current supplied to the LC resonance circuit unit and the oscillation amplitude of the LC resonance circuit unit are determined, and the feedback current supplied to the LC resonance circuit unit is determined by the current adjustment unit. Since it is directly proportional to the output current, it is possible to detect the distance between the detection coil and the detected object using the digital code set by the control unit, so whether or not the detected object as in the conventional example exists. It is possible to obtain an analog detection signal indicating the distance between the detected object and the detection coil instead of the digital detection signal of the above, and whether or not the detected object exists by performing threshold processing on the detected signal In addition to detecting the presence of the detected object, a distance from the detected object can also be detected. In addition, by using the digital code, it is possible to easily obtain a digital signal used for various communications, PWM, and the like (that is, the affinity of the digital signal is increased). In addition, since a circuit that handles digital signals can be easily miniaturized with a fine pattern, it is possible to reduce the cost when the control unit, the oscillation circuit unit, and the like are integrated into an IC. Can be prevented from occurring. Furthermore, as compared with the case where the amplifier and the D / A converter are provided separately, the circuit scale can be reduced and the cost can be reduced.

請求項1の発明では、請求項の発明において、前記発振回路部は、前記LC共振回路部の発振電圧をレベルシフトするレベルシフト回路を有し、前記増幅回路は、一対の被制御電極の一方が前記入力側カレントミラートランジスタに、前記一対の被制御電極の他方が基準電位に、前記一対の被制御電極間の通電量を制御する制御電極が前記レベルシフト回路の出力端にそれぞれ電気的に接続された増幅用トランジスタを有し、前記スイッチは、前記基準電位と前記他方の被制御電極との間、あるいは前記レベルシフト回路の出力端と前記制御電極との間に挿入されていることを特徴とする。 In the invention of claim 1 0, characterized in that in the invention of claim 9, wherein the oscillation circuit includes a level shift circuit for level-shifting the oscillation voltage of the LC resonant circuit, the amplifier circuit includes a pair of the control electrodes while the said input current mirror transistor, the other is a reference potential of the pair of the control electrodes, to the output end of the control electrode for controlling the current amount between the pair of the control electrode the level shift circuit electrically has connected to the amplifying transistor, wherein the switch is inserted between the control electrode and the output terminal of the reference potential and the other between the controlled electrode or said level shift circuit, It is characterized by that.

請求項1の発明によれば、出力電流を小さくする際には、増幅電流が遮断されるから(増幅回路には増幅電流が流れないから)、低消費電力化を図ることができる。 According to the tenth aspect of the present invention, when the output current is reduced, the amplified current is cut off (because the amplified current does not flow through the amplifier circuit), so that the power consumption can be reduced.

請求項1の発明では、請求項の発明において、前記増幅電流を前記入力側カレントミラートランジスタに供給する供給路と、前記増幅電流を前記入力側カレントミラートランジスタに供給しない非供給路とを有し、前記供給路と前記非供給路とのいずれに前記増幅電流が流れるかは前記スイッチにより選択されることを特徴とする。 In the invention of claim 1 1, in the invention of claim 9, a supply path for supplying the amplified current to the input-side current mirror transistor, and a non-supply line not supplying the amplified current to the input-side current mirror transistor has any said one amplified current flows between the non-supply path and the supply path is characterized in that it is selected by the switch.

請求項1の発明によれば、供給路と非供給路とのいずれに増幅電流が流れるかによって出力電流が調整されるので、増幅回路にはスイッチの制御状態に関係なく増幅電流が流れるから、増幅電流の供給開始や供給停止に伴う増幅回路における電流変動によって、入力側カレントミラートランジスタの基準電流が変動してしまうことを抑制することができ、安定した動作が行える。 According to the invention of claim 1 1, the output current is regulated by either the one amplified current flows between the supply path and the non-supply passage, from flowing amplified current regardless control state of the switch to the amplifier circuit The reference current of the input side current mirror transistor can be prevented from fluctuating due to current fluctuations in the amplifier circuit accompanying the start and stop of supply of the amplified current, and stable operation can be performed.

請求項1の発明では、請求項〜1のうちいずれか1項の発明において、前記発振回路部は、前記LC共振回路部の発振電圧をレベルシフトするレベルシフト回路を有し、前記増幅回路は、一対の被制御電極の一方が前記入力側カレントミラートランジスタに、前記一対の被制御電極の他方が基準電位に、前記一対の被制御電極間の通電量を制御する制御電極が前記レベルシフト回路の出力端にそれぞれ電気的に接続された増幅用トランジスタと、前記増幅用トランジスタの前記他方の被制御電極と前記基準電位との間に挿入された増幅電流制限用の抵抗部とを有し、前記複数の抵抗部のうちの少なくとも1つは抵抗値が他と異なっていることを特徴とする。 In the invention of claim 1 2, in the invention of any one of claims 9-1 1, wherein the oscillation circuit includes a level shift circuit for level-shifting the oscillation voltage of the LC resonant circuit, the amplifier circuit, one is the input-side current mirror transistor pair of the control electrodes, the other is a reference potential of the pair of the control electrodes, the control electrode for controlling the current amount between the pair of the control electrodes are the a amplifying transistor that is electrically connected to the output end of the level shift circuit, and a resistor portion for amplifying the current limit, which is interposed between said other of said reference potential and the control electrode of the amplifier transistor has at least one of the plurality of resistor portions are characterized by resistance is different from the other.

請求項1の発明によれば、増幅回路の数が同じであれば、増幅電流制限用の抵抗部の抵抗値がいずれも同じ(増幅回路の増幅電流が全て同じ)である場合に比べて、出力可能な出力電流の値を増やすことができるから、出力電流を細かく設定することができて、被検知体と検知コイルとの距離の分解能(位置精度)を向上することができる。 According to the present invention 2, if the number of amplification circuit is the same, as compared with the case where the resistance value of the resistance portion for amplifying the current limit is the same both (all amplified current of the amplifier circuit is the same) Since the value of the output current that can be output can be increased, the output current can be set finely, and the resolution (positional accuracy) of the distance between the detected object and the detection coil can be improved.

請求項1の発明では、請求項1の発明において、前記複数のスイッチそれぞれは、前記デジタルコードのビットと一対一で関係付けられ、前記制御部は、前記スイッチに関係付けられたビットの値に基づいて前記スイッチを制御し、前記デジタルコードにおいてビット番号が0であるビットに関係付けられた前記スイッチにより前記入力側カレントミラートランジスタに供給するか否かが決定される増幅電流を基準増幅電流とした場合に、ビット番号が0以外であるビットに関係付けられた前記スイッチにより前記入力側カレントミラートランジスタに供給するか否かが決定される増幅電流と基準増幅電流との比が、このスイッチに対応するビットのビット番号を指数として2を累乗した値であることを特徴とする。 In the invention of claim 1 3, in the invention according to the first 2, wherein the plurality of switches respectively, associated with bit and one-to-one of said digital code, the control unit, the bit associated to the switch controls the switch based on the value, the reference amplify the amplified current to whether to supply to the input side current mirror transistors by the switches associated with the bit bit number is 0 is determined in the digital code when the current ratio of the amplified current and the reference amplifier current whether the bit number is supplied to the input side current mirror transistors by the switches associated with the bit is other than 0 is determined, the The bit number of the bit corresponding to the switch is an exponential value that is a power of 2.

請求項1の発明によれば、ストレート・バイナリコードなどの2進数のデジタルコードによって出力電流を調整することができるから、増幅回路およびスイッチの数を少なくしながらも、被検知体と検知コイルとの距離の分解能(位置精度)を向上することができ、またハードウェア構成を簡単にすることができて、小型化や低コスト化を図ることができる。 According to the invention of claim 1 3, straight binary because encoded by a binary digital code, such as it is possible to adjust the output current, while reducing the number of the amplifier circuit and the switch, the detection coil and the detected object The distance resolution (positional accuracy) can be improved, the hardware configuration can be simplified, and downsizing and cost reduction can be achieved.

請求項1の発明では、請求項〜1の発明において、前記増幅部は、前記デジタルコードのビットの値に関係なく前記増幅電流を前記入力側カレントミラートランジスタに供給させるオフセット用の増幅回路を有していることを特徴とする。 In the invention of claim 1 4, in the invention of claim 9-1 3, wherein the amplifying unit, amplifies the offset to supply the amplified current regardless of the value of the bit of the digital code on the input side current mirror transistor It has the circuit.

請求項1の発明によれば、出力電流にオフセットを設けることができるから、オフセットを設けない場合に比べれば、被検知体と検知コイルとの距離の分解能(位置精度)を向上できる。 According to the invention of claim 1 4, because it is possible to provide an offset to the output current, compared to the case without the offset, it is possible to improve the resolution of the distance between the detection coil and the detection object (position accuracy).

請求項1の発明では、請求項1〜1のうちいずれか1項の発明において、前記モニタ部は、前記LC共振回路部の発振振幅を検出し発振振幅を示すアナログ信号を出力する検出部と、前記検出部が出力した発振振幅を示す前記アナログ信号をデジタル信号に変換して前記制御部に出力するA/Dコンバータとを備えていることを特徴とする。 In the invention of claim 1 5, in the invention of any one of claims 1 to 1 4, wherein the monitoring unit outputs an analog signal indicative of the oscillation amplitude detected oscillation amplitude of the LC resonant circuit detection and parts, characterized in that an a / D converter for outputting the analog signal indicating the oscillation amplitude the detector is output to the control unit into a digital signal.

請求項1の発明によれば、アナログ回路により発振回路部の帰還電流を変更する場合に比べれば、処理速度(可変抵抗部の抵抗値の変化の応答性、追随性)を向上でき、被検知体の移動速度が速い場合であっても、迅速に、発振回路部の負性コンダクタンスをLC共振回路部が発振可能な臨界値に設定することができる。 According to the invention of claim 1 5, compared to the case of changing the feedback current of the oscillator circuit portion by an analog circuit, can increase the speed (responsiveness of the change of the resistance value of the variable resistor portion, followability), the Even when the moving speed of the detection body is high, the negative conductance of the oscillation circuit unit can be quickly set to a critical value at which the LC resonance circuit unit can oscillate.

請求項1の発明では、請求項1〜1のうちいずれか1項の発明において、前記電流調整部は、前記デジタルコードに応じて前記出力電流を単調増加させ、前記制御部は、前記モニタ部で検出した前記発振振幅が所定の閾値を越えているか否かを判定する比較判定部と、前記比較判定部により前記所定の閾値を越えていると判定されると前記デジタルコードを変更し、前記比較判定部により前記所定の閾値を越えていないと判定されると前記デジタルコードを変更しない演算処理部とを有し、前記演算処理部は、前記デジタルコードを変更するにあたっては、前記デジタルコードの最下位ビットに1を加算あるいは減算することを特徴とする。 In the invention of claim 1 6, in the invention of any one of claims 1 to 1 5, wherein the current adjustment section, monotonously increases the output current in response to the digital code, wherein, the the oscillation amplitude detected by the monitoring unit to change the digital code to be determined has exceeded the comparison determination unit determines whether or exceeds a predetermined threshold, said predetermined threshold value by the comparison determination unit , and a said by comparison determination unit does not change the digital code to be determined not to exceed the predetermined threshold value calculation unit, the calculation processing unit, when changing the digital code, the digital 1 is added to or subtracted from the least significant bit of the code.

請求項1の発明によれば、デジタルコードの最下位ビットに1を加算あるいは減算することによってデジタルコードを変更するので、出力電流の調整時に、オーバーシュートやアンダーシュートが生じてしまうことを防止でき、また、発振振幅からデジタルコードの目標値を直接的に演算する処理を行わなくて済むから、比較判定部としては、AD変換回路やCPUなどの複雑な装置に比べれば安価なコンパレータを用いることができるようになって、低コスト化が図れる。 According to the invention of claim 1 6, prevention since changing the digital code by adding or subtracting 1 to the least significant bit of the digital code, at the time of adjustment of the output current, that the overshoot or undershoot occurs In addition, since it is not necessary to perform processing for directly calculating the target value of the digital code from the oscillation amplitude, an inexpensive comparator is used as the comparison / determination unit as compared with a complicated device such as an AD conversion circuit or a CPU. It is possible to reduce the cost.

請求項1の発明では、請求項1〜1のうちいずれか1項の発明において、前記電流調整部は、前記デジタルコードに応じて前記出力電流を単調増加させ、前記制御部は、前記発振振幅の上限となる上限閾値と下限となる下限閾値とを有し、前記モニタ部で検出した前記発振振幅が上限閾値を越えているか、下限閾値を下回っているか、上限閾値と下限閾値との間に収まっているかを判定する比較判定部と、前記比較判定部により上限閾値を越えていると判定されると前記デジタルコードを減少させ、下限閾値を下回っていると判定されると前記デジタルコードを増加させ、上限閾値と下限閾値との間に収まっていると判定されると前記デジタルコードを変更しない演算処理部とを有し、前記演算処理部は、前記デジタルコードを減少させるにあたっては、前記デジタルコードの最下位ビットより1を減算し、前記デジタルコードを増加させるにあたっては、前記デジタルコードの最下位ビットに1を加算することを特徴とする。 In the invention of claim 1 7, in the invention of any one of claims 1 to 1 5, wherein the current adjustment section, monotonously increases the output current in response to the digital code, wherein, the and a lower threshold for the upper limit threshold value and the lower limit is the upper limit of the oscillation amplitude, the oscillation amplitude detected by the monitor unit or exceeds the upper threshold or below the lower threshold, the upper and the lower thresholds and either determining comparison determination unit is within between, reduce the digital code to be determined has exceeded the upper threshold by the comparison determination unit, the digital code to be determined is below the lower threshold increases, and an arithmetic processing section that does not change the digital code to be determined that falls between the upper and the lower thresholds, the calculation processing unit, reducing of the digital code That when the said subtracts 1 from the least significant bit of the digital code, wherein when increases the digital code, characterized by adding 1 to the least significant bit of the digital code.

請求項1の発明によれば、デジタルコードの最下位ビットに1を加算あるいは減算することによってデジタルコードを変更するので、出力電流の調整時に、オーバーシュートやアンダーシュートが生じてしまうことを防止でき、また、発振振幅からデジタルコードの目標値を直接的に演算する処理を行わなくて済むから、比較判定部としては、AD変換回路やCPUなどの複雑な装置に比べれば安価なウィンドウコンパレータを用いることができるようになって、低コスト化が図れる。 According to the invention of claim 17 , since the digital code is changed by adding or subtracting 1 to the least significant bit of the digital code, it is possible to prevent the occurrence of overshoot or undershoot when adjusting the output current. In addition, since it is not necessary to perform processing for directly calculating the target value of the digital code from the oscillation amplitude, an inexpensive window comparator as compared with a complicated device such as an AD conversion circuit or a CPU is used as the comparison determination unit. It can be used, and the cost can be reduced.

請求項1の発明では、請求項1〜1のうちいずれか1項の発明において、前記制御部は、前記デジタルコードを前記電流調整部に与えるタイミングを指示する信号を所定周波数で出力するタイミング回路を有し、前記所定周波数は、前記LC共振回路部の発振周波数より低いことを特徴とする。 In the invention of claim 1 8, in the invention of any one of claims 1 to 1 7, wherein the control unit outputs a signal indicating a timing for providing the digital code to the current controller at a predetermined frequency It includes a timing circuit, wherein the predetermined frequency is characterized by lower than the oscillation frequency of the LC resonant circuit.

請求項1の発明によれば、出力電流を変更したことに起因するLC共振回路部の発振を防止でき、安定した制御が行えるようになる。 According to the invention of claim 1 8, it can prevent the oscillation of the LC resonant circuit which is caused by changing the output current, so that can be performed stable control.

請求項19の発明では、請求項1〜1のうちいずれか1項の発明において、前記信号処理部は、前記デジタルコードに所定の加算値を加算するオフセット処理と、前記デジタルコードに所定の乗算値を乗算するゲイン処理との少なくとも一方を実行可能な出力調整部を有していることを特徴とする。 In the invention of claim 19, in the invention of any one of claims 1 to 1 8, wherein the signal processing unit, an offset process of adding a predetermined addition value to the digital code, of a given said digital code An output adjustment unit capable of executing at least one of gain processing for multiplying a multiplication value is provided.

請求項19の発明によれば、検知信号の値を所望の範囲内の値とすることができる。 According to the nineteenth aspect , the value of the detection signal can be set to a value within a desired range.

請求項2の発明では、請求項19の発明において、前記加算値あるいは前記乗算値は変更可能であることを特徴とする。 In the invention of claim 2 0, in the invention of claim 19, wherein the added value or the multiplication value is characterized in that it is modified.

請求項2の発明によれば、製品毎に、検知コイルの特性や、検知コイルと被検知体との相対位置、発振回路部などの回路の特性にばらつきがあっても、このようなばらつきによって製品毎に検知信号の値の範囲が異なってしまうことを防止でき、いずれの製品においても検知信号の値を所望の範囲内の値とすることが可能となる。 According to the invention of claim 2 0, for each product, and characteristics of the sensing coil, the relative position between the detection coil and the detection object, even if there are variations in characteristics of the circuit such as the oscillator circuit section, such variations Thus, it is possible to prevent the range of the value of the detection signal from being different for each product, and the value of the detection signal can be set to a value within a desired range for any product.

請求項2の発明では、請求項1〜2のうちいずれか1項の発明において、周囲の温度を検知する温度検知部を備え、前記信号処理部は、前記デジタルコードに前記温度検知部で検知した温度に対応する補正温度係数を乗じることで温度補償を行う温度補償部を有していることを特徴とする。 In the invention of claim 2 1, in the invention of any one of claims 1-2 0, comprising a temperature detector for detecting the ambient temperature, the signal processing section, the temperature detection unit to the digital code And a temperature compensation unit that performs temperature compensation by multiplying the temperature detected by the correction temperature coefficient corresponding to the detected temperature.

請求項2の発明によれば、検知コイルや、被検知体、発振回路部などの回路の温度特性に起因する検知精度の悪化を防止でき、検知精度の向上が図れる。 According to claim 2 the first invention, and the detection coil, the detection object, it is possible to prevent deterioration of detection accuracy due to the temperature characteristics of the circuit such as an oscillation circuit portion, thereby improving the detection accuracy.

請求項2の発明では、請求項2の発明において、前記補正温度係数は変更可能であることを特徴とする。 In the invention of claim 2 2, in the invention of claim 2 1, wherein the correction temperature coefficient is characterized by a possible change.

請求項2の発明によれば、製品毎に、検知コイルの特性や、検知コイルと被検知体との相対位置、発振回路部などの回路の温度特性にばらつきがあっても、このようなばらつきによって製品毎に検知信号の値が異なってしまうことを防止でき、いずれの製品においても所望の検知信号を得ることが可能となる。 According to the invention of claim 2 2, for each product, and characteristics of the sensing coil, the relative position between the detection coil and the detection object, even if there are variations in the temperature characteristics of the circuit such as an oscillation circuit unit, like this It is possible to prevent the value of the detection signal from being different for each product due to variations, and it is possible to obtain a desired detection signal for any product.

請求項2の発明では、請求項1〜2のうちいずれか1項の発明において、前記発振回路部と、前記モニタ部と、前記制御部と、前記信号処理部とはモノリシックICとして一体化されていることを特徴とする。 In the invention of claim 2 3, integral in any one of the invention of the claims 1-2 2, and the oscillation circuit unit, the monitor unit, the control unit, as a monolithic IC and the signal processing unit It is characterized by that.

請求項2の発明によれば、発振回路部、モニタ部、制御部、および信号処理部をそれぞれ別のICにより構成する場合に比べれば、小型化が図れるとともに低コスト化が図れ、さらに耐ノイズ性能を向上できる。 According to the invention of claim 2 3, an oscillation circuit unit, a monitor unit, a control unit, and compared the signal processing section to configure a separate IC, the cost can Hakare downsizing can be achieved, further resistance Noise performance can be improved.

本発明は、制御部で設定されたデジタルコードを用いて検知コイルと被検知体との距離を検出することができるから、従来例のような被検知体が存在しているか否かのデジタルな検知信号ではなく、被検知体と検知コイルとの距離を示すアナログな検知信号を得ることができ、また検知信号を閾値処理することにより被検知体が存在しているか否かのデジタルな検知信号も得ることができて、被検知体の存在検知に加え、被検知体との距離も検知できる。   Since the present invention can detect the distance between the detection coil and the detected object using the digital code set by the control unit, it is digital whether or not the detected object exists as in the conventional example. Not a detection signal, but an analog detection signal indicating the distance between the detection object and the detection coil can be obtained, and a digital detection signal indicating whether the detection object exists by thresholding the detection signal In addition to detecting the presence of the detected object, the distance to the detected object can also be detected.

(実施形態1)
本実施形態の近接センサは、図1に示すように、被検知体(図示せず)の検知に用いられる検知コイル10およびコンデンサ11の並列回路からなるLC共振回路部1と、LC共振回路部1を発振させる発振回路部2と、LC共振回路部1の発振振幅(LC共振回路部1の発振電圧の最大値と最小値との差)を検出するモニタ部3と、モニタ部3で検出した発振振幅に基づいて発振回路部2の負性コンダクタンスをLC共振回路部1が発振可能な臨界値に設定する制御部4と、被検知体と検知コイル10との距離を示す検知信号を作成する信号処理部5とを備えている。
(Embodiment 1)
As shown in FIG. 1, the proximity sensor according to the present embodiment includes an LC resonance circuit unit 1 including a parallel circuit of a detection coil 10 and a capacitor 11 used for detection of a detection target (not shown), and an LC resonance circuit unit. The oscillation circuit unit 2 that oscillates 1, the monitor unit 3 that detects the oscillation amplitude of the LC resonance circuit unit 1 (the difference between the maximum value and the minimum value of the oscillation voltage of the LC resonance circuit unit 1), and the monitor unit 3 Based on the oscillation amplitude thus generated, a control signal for setting the negative conductance of the oscillation circuit unit 2 to a critical value at which the LC resonance circuit unit 1 can oscillate, and a detection signal indicating the distance between the detected object and the detection coil 10 are created. And a signal processing unit 5.

LC共振回路部1の発振電圧の周波数は、検知コイル10のインダクタンスとコンデンサ11の静電容量とにより決定される。検知コイル10は、例えば導線(絶縁被覆電線など)を円筒状のコイルボビン(図示せず)の外周面に当該コイルボビンの軸方向に巻軸方向を沿わせた形で巻回することにより構成される。上記被検知体は、例えば金属体などの導電体よりパイプ状に形成され、検知コイル10の巻軸方向に沿って検知コイル10のすぐ外側を通る形に配置される。なお、上述した検知コイル10および被検知体の構成は一例に過ぎず、例えば、被検知体は磁性体により形成されたものであってもよく、本発明の趣旨を逸脱しない範囲で変更できる。   The frequency of the oscillation voltage of the LC resonance circuit unit 1 is determined by the inductance of the detection coil 10 and the capacitance of the capacitor 11. The detection coil 10 is configured by, for example, winding a conducting wire (insulation coated electric wire or the like) around an outer peripheral surface of a cylindrical coil bobbin (not shown) in a form in which the winding axis direction is along the axial direction of the coil bobbin. . The object to be detected is formed in a pipe shape from a conductor such as a metal body, for example, and is arranged so as to pass right outside the detection coil 10 along the winding axis direction of the detection coil 10. The configurations of the detection coil 10 and the detected body described above are merely examples. For example, the detected body may be formed of a magnetic body, and can be changed without departing from the gist of the present invention.

本実施形態の近接センサでは、発振回路部2と、モニタ部3と、制御部4と、信号処理部5とはモノリシックICとして一体化されている。   In the proximity sensor of the present embodiment, the oscillation circuit unit 2, the monitor unit 3, the control unit 4, and the signal processing unit 5 are integrated as a monolithic IC.

発振回路部2は、内部電源である基準電源VccよりLC共振回路1に一定のバイアス電流を供給する定電流源であるバイアス回路20を有する。また、LC共振回路部1の発振を維持するためには、LC共振回路部1に電流を正帰還させる必要があり、発振回路部2はLC共振回路部1に帰還電流Ifbを供給するための構成として、LC共振回路部1の発振電圧(LC共振回路部1の両端電圧)をレベルシフトするレベルシフト回路21と、LC共振回路部1の発振電圧に応じた電流(増幅電流)Ibを出力する増幅回路22と、制御部4で設定されたデジタルコードに対応した出力電流Ioを出力する電流調整部23とを有する。   The oscillation circuit unit 2 includes a bias circuit 20 that is a constant current source that supplies a constant bias current to the LC resonance circuit 1 from a reference power source Vcc that is an internal power source. Further, in order to maintain the oscillation of the LC resonance circuit unit 1, it is necessary to positively feed back the current to the LC resonance circuit unit 1, and the oscillation circuit unit 2 is for supplying the feedback current Ifb to the LC resonance circuit unit 1. As a configuration, a level shift circuit 21 for level-shifting the oscillation voltage of the LC resonance circuit unit 1 (voltage across the LC resonance circuit unit 1) and a current (amplified current) Ib corresponding to the oscillation voltage of the LC resonance circuit unit 1 are output. And an electric current adjusting unit 23 that outputs an output current Io corresponding to the digital code set by the control unit 4.

レベルシフト回路21は、npn形のトランジスタ210により構成される。トランジスタ210のコレクタはバイアス回路20の出力端に接続され、エミッタは一端が接地されたLC共振回路部1の他端に接続される。図示例ではトランジスタ210のエミッタと基準電位(グラウンド)との間に検知コイル10とコンデンサ11とからなる並列回路が挿入されている。また、トランジスタ210のコレクタはベースに接続されている。つまり、レベルシフト回路21においては、トランジスタ210のエミッタの電位はLC共振回路部1の発振電圧に等しい。   The level shift circuit 21 includes an npn transistor 210. The collector of the transistor 210 is connected to the output terminal of the bias circuit 20, and the emitter is connected to the other end of the LC resonance circuit unit 1 having one end grounded. In the illustrated example, a parallel circuit including the detection coil 10 and the capacitor 11 is inserted between the emitter of the transistor 210 and a reference potential (ground). The collector of the transistor 210 is connected to the base. That is, in the level shift circuit 21, the potential of the emitter of the transistor 210 is equal to the oscillation voltage of the LC resonance circuit unit 1.

増幅回路22は、npn形のトランジスタよりなる増幅用トランジスタBTrを有する。増幅用トランジスタBTrのベースはレベルシフト回路21のトランジスタ210のベースに接続される。したがって、増幅用トランジスタBTrのベースには、レベルシフト回路21によりレベルシフトされたトランジスタ210のエミッタの電位、すなわちレベルシフト回路21により生成されたレベルシフト電圧が入力される。   The amplifier circuit 22 includes an amplifying transistor BTr made of an npn transistor. The base of the amplifying transistor BTr is connected to the base of the transistor 210 of the level shift circuit 21. Therefore, the potential of the emitter of the transistor 210 level-shifted by the level shift circuit 21, that is, the level shift voltage generated by the level shift circuit 21 is input to the base of the amplifying transistor BTr.

ここで、レベルシフト回路21は、増幅用トランジスタBTrのベース−エミッタ間電圧の分だけ発振電圧をレベルシフトするように構成されており、これによって、増幅用トランジスタBTrのエミッタとグラウンドとの間に、発振の正の半サイクルのみ、LC共振回路部1の発振電圧に等しい電圧が印加されるようにしている。   Here, the level shift circuit 21 is configured to level shift the oscillation voltage by the base-emitter voltage of the amplifying transistor BTr, and thereby, between the emitter of the amplifying transistor BTr and the ground. A voltage equal to the oscillation voltage of the LC resonance circuit unit 1 is applied only during the positive half cycle of oscillation.

一方、増幅用トランジスタBTrのエミッタはエミッタ電位設定用(増幅電流制限用)の抵抗器である抵抗部Rbを介してグラウンド(グランド)に接続され(接地され)ている。すなわち、増幅回路22は、所謂エミッタフォロワ(エミッタホロワ)回路である。   On the other hand, the emitter of the amplifying transistor BTr is connected (grounded) to a ground (ground) via a resistor Rb which is a resistor for setting an emitter potential (for limiting an amplification current). That is, the amplifier circuit 22 is a so-called emitter follower (emitter follower) circuit.

したがって、増幅回路22からは、LC共振回路部1の発振電圧に応じた電流である増幅電流Ibが出力される。なお、増幅回路22としては、エミッタフォロワ回路の代わりに、MOSFETを利用したソースフォロワ(ソースホロワ)回路を採用することができる。   Therefore, the amplification circuit 22 outputs an amplification current Ib that is a current corresponding to the oscillation voltage of the LC resonance circuit unit 1. As the amplifier circuit 22, a source follower (source follower) circuit using a MOSFET can be employed instead of the emitter follower circuit.

電流調整部23は、入力側カレントミラートランジスタ(以下、「入力側トランジスタ」と略称する)ITrと、複数の出力側カレントミラートランジスタ(以下、「出力側トランジスタ」と略称する)OTrとを有するカレントミラー回路部230を備える。入力側トランジスタITrおよび出力側トランジスタOTrはいずれもpnp形のトランジスタよりなる。   The current adjustment unit 23 includes a current having an input-side current mirror transistor (hereinafter abbreviated as “input-side transistor”) ITr and a plurality of output-side current mirror transistors (hereinafter abbreviated as “output-side transistors”) OTr. A mirror circuit unit 230 is provided. Both the input-side transistor ITr and the output-side transistor OTr are pnp transistors.

入力側トランジスタITrのコレクタは、増幅回路22の増幅用トランジスタBTrのコレクタに接続され、エミッタは基準電源Vccに接続されている。また、入力側トランジスタITrのコレクタとベースとは相互に接続される。一方、出力側トランジスタOTrのエミッタは、スイッチSWを介して基準電源Vccに接続され、コレクタはトランジスタ210のエミッタとコンデンサ11との間に接続される。また、複数の出力側トランジスタOTrのベースそれぞれは、入力側トランジスタITrのベースに共通に接続される。なお、以下の説明では、複数の出力側トランジスタOTrを区別するために、必要に応じて符号OTr〜OTrで表す。また、出力側トランジスタOTr〜OTrそれぞれに対応するミラー電流Imを必要に応じて符号Im〜Imで表し、出力側トランジスタOTr〜OTrそれぞれに対応するスイッチSWを必要に応じて符号SW〜SWで表す。 The collector of the input side transistor ITr is connected to the collector of the amplifying transistor BTr of the amplifier circuit 22, and the emitter is connected to the reference power source Vcc. The collector and base of the input side transistor ITr are connected to each other. On the other hand, the emitter of the output side transistor OTr is connected to the reference power source Vcc via the switch SW, and the collector is connected between the emitter of the transistor 210 and the capacitor 11. Further, the bases of the plurality of output side transistors OTr are commonly connected to the base of the input side transistor ITr. In the following description, in order to distinguish the plurality of output-side transistors OTr, reference numerals OTr 1 to OTr 4 are used as necessary. Also, the mirror current Im corresponding to each of the output side transistors OTr 1 to OTr 4 is denoted by reference numerals Im 1 to Im 4 as necessary, and the switch SW corresponding to each of the output side transistors OTr 1 to OTr 4 is set as necessary. represented by the symbol SW 1 ~SW 4.

カレントミラー回路部230では、LC共振回路部1の発振電圧に応じた電流である増幅電流Ibが基準電流として入力側トランジスタITrに与えられ、各出力側トランジスタOTrを通じて基準電流に比例した大きさのミラー電流Imが基準電源VccからLC共振回路部1に供給される。したがって、ミラー電流Imの大きさは、ミラー比(ミラー電流Imの基準電流に対する比)をMとすれば、次式(1)で表すことができる。 In the current mirror circuit unit 230, an amplification current Ib that is a current corresponding to the oscillation voltage of the LC resonance circuit unit 1 is given as a reference current to the input-side transistor ITr, and has a magnitude proportional to the reference current through each output-side transistor OTr. The mirror current Im is supplied from the reference power source Vcc to the LC resonance circuit unit 1. Thus, the magnitude of the mirror current Im n are mirror ratio (the ratio to the reference current mirror current Im n) if M n, can be expressed by the following equation (1).

Figure 0004981745
Figure 0004981745

なお、本実施形態では、入力側トランジスタITrと各出力側トランジスタOTrとのトランジスタサイズはいずれも同じにしている。そのため、入力側トランジスタITrと各出力側トランジスタOTrとでは、エミッタサイズ(エミッタ面積)はいずれも同じであり(すなわちM=1)、ミラー電流Im〜Imの大きさはいずれも基準電流(本実施形態の場合は増幅電流Ib)の大きさに等しい。 In the present embodiment, the input side transistors ITr and the output side transistors OTr have the same transistor size. Therefore, the input-side transistor ITr and each output-side transistor OTr have the same emitter size (emitter area) (that is, M n = 1), and the mirror currents Im 1 to Im 4 all have the reference current. (In the case of this embodiment, it is equal to the magnitude of the amplified current Ib).

スイッチSWは、例えばトランジスタやサイリスタなどの半導体スイッチング素子よりなり、オン時に基準電源Vccと出力側トランジスタOTrのエミッタとを接続し、オフ時に基準電源Vccと出力側トランジスタOTrのエミッタとを非接続とする(基準電源Vccと出力側トランジスタOTrとの間の電路を遮断する)。そのため、スイッチSWがオフであるときには、ミラー電流ImがLC共振回路部1に供給されない。このスイッチSWの制御状態(オン・オフ)によって、ミラー電流がLC共振回路部1に供給されるか否かが決まる。   The switch SW is made of, for example, a semiconductor switching element such as a transistor or a thyristor, and connects the reference power supply Vcc and the emitter of the output side transistor OTr when turned on, and disconnects the reference power supply Vcc and the emitter of the output side transistor OTr when turned off. (The circuit between the reference power source Vcc and the output side transistor OTr is cut off). Therefore, the mirror current Im is not supplied to the LC resonance circuit unit 1 when the switch SW is off. Whether the mirror current is supplied to the LC resonance circuit unit 1 is determined by the control state (ON / OFF) of the switch SW.

電流調整部23は、入力されたデジタル信号のデジタルコードに応じてスイッチを制御するスイッチ制御部231を有する。スイッチ制御部231は、例えば所定のプログラムを実行するマイクロコンピュータやロジック回路などにより構成される。   The current adjustment unit 23 includes a switch control unit 231 that controls the switch according to the digital code of the input digital signal. The switch control unit 231 is configured by, for example, a microcomputer or a logic circuit that executes a predetermined program.

上記のデジタルコードは、例えば右端を最下位ビット(LSB、あるいはLSBit)、左端を最上位ビット(MSB、あるいはMSBit)とする4ビットのストレート・バイナリコードであり、複数のスイッチSWそれぞれはデジタルコードの各ビットと一対一で関係付けられている。例えば、デジタルコードの最下位ビットである第0ビット(ビット番号が0であるビット)はスイッチSWに、第1ビット(ビット番号が1であるビット)はスイッチSWに、第2ビット(ビット番号が2であるビット)はスイッチSWに、最上位ビットである第3ビット(ビット番号が3であるビット)はスイッチSWにそれぞれ対応する。 The above digital code is, for example, a 4-bit straight binary code in which the right end is the least significant bit (LSB or LSBit) and the left end is the most significant bit (MSB or MSBit). Each of the plurality of switches SW is a digital code. 1 to 1 with each bit. For example, the 0th bit is the least significant bit of the digital code (bit number is 0 bits) to the switch SW 1, the first bit (bit number is 1 bit) in the switch SW 2, the second bit ( in which bits) switch SW 3 bit number is 2, the third bit is the most significant bit (bit number is 3 bits) correspond respectively to the switch SW 4.

スイッチ制御部231は、デジタルコードのビットの値が”0”であれば、スイッチSWをオフ、”1”であればスイッチSWをオンにする。したがって、スイッチSWは、制御部4で設定されるデジタルコードに基づいて制御される。   The switch control unit 231 turns off the switch SW if the bit value of the digital code is “0”, and turns on the switch SW if it is “1”. Therefore, the switch SW is controlled based on the digital code set by the control unit 4.

例えば、デジタルコードが”1010”(ただし、右から順に第0ビット、第1ビット、第2ビット、第3ビットとする)であれば、スイッチ制御部231は、スイッチSW,SWをオン、スイッチSW,SWをオフとする。この場合、LC共振回路部1には、ミラー電流Im,Imが供給されるから、電流調整部23の出力電流Ioの大きさは、ミラー電流Imとミラー電流Imとを加算した大きさになる。 For example, if the digital code is “1010” (however, the 0th bit, the 1st bit, the 2nd bit, and the 3rd bit in order from the right), the switch control unit 231 turns on the switches SW 2 and SW 4 . Then, the switches SW 1 and SW 3 are turned off. In this case, since the mirror currents Im 2 and Im 4 are supplied to the LC resonance circuit unit 1, the magnitude of the output current Io of the current adjusting unit 23 is the sum of the mirror current Im 2 and the mirror current Im 4 It becomes size.

つまり、カレントミラー回路部230は、基準電源VccからLC共振回路部1に供給されるミラー電流Imを加算して出力電流Ioを作成するから、出力電流Ioは、次式(2)で表すことができる。なお、δは、スイッチSWのオン・オフを示す関数であり、スイッチSWがオンであればδ=1、スイッチSWがオフであればδ=0とする。 That is, the current mirror circuit unit 230 adds the mirror current Im supplied from the reference power source Vcc to the LC resonance circuit unit 1 to create the output current Io. Therefore, the output current Io is expressed by the following equation (2). Can do. Incidentally, [delta] n is a function indicating the ON-OFF switch SW n, if the switch SW n is on [delta] n = 1, the switch SW n is a [delta] n = 0 if off.

Figure 0004981745
Figure 0004981745

本実施形態の場合、ミラー電流Imは全て等しいため、出力電流Ioは、オンになっているスイッチSWの数によって決定される。したがって、本実施形態における出力電流Ioは、0、Ib、2Ib、3Ib、4Ibの5つの値をとり得る。   In the present embodiment, since the mirror currents Im are all equal, the output current Io is determined by the number of switches SW that are turned on. Therefore, the output current Io in this embodiment can take five values of 0, Ib, 2Ib, 3Ib, and 4Ib.

このように発振回路部2は、制御部4で設定されたデジタルコード(電流調整部23に入力されたデジタル信号のデジタルコード)に対応した出力電流Ioを出力するD/Aコンバータよりなる電流調整部23を有しており、当該電流調整部23の出力電流Ioが帰還電流IfbとしてLC共振回路部1に供給される。すなわち、本実施形態においては、Ifb=Ioが成立する。   Thus, the oscillation circuit unit 2 is a current adjustment composed of a D / A converter that outputs the output current Io corresponding to the digital code set by the control unit 4 (the digital code of the digital signal input to the current adjustment unit 23). The output current Io of the current adjustment unit 23 is supplied to the LC resonance circuit unit 1 as a feedback current Ifb. That is, In this embodiment, Ifb = Io is established.

ここで、発振回路部2の負性コンダクタンスをGosc(ただしGoscの値は負である)、LC共振回路部1の発振振幅をVTとすると、負性コンダクタンスGoscは、次式(3)で表すことができる。   Here, when the negative conductance of the oscillation circuit unit 2 is Gosc (where Gosc is negative) and the oscillation amplitude of the LC resonance circuit unit 1 is VT, the negative conductance Gosc is expressed by the following equation (3). be able to.

Figure 0004981745
Figure 0004981745

すなわち、発振回路部2の負性コンダクタンスGoscは、発振振幅VTに対してどれだけの帰還電流Ifbを与えるかによって決定される。そして、増幅用トランジスタBTrのエミッタとグラウンドとの間には、発振の正の半サイクルのみ、LC共振回路部1の発振電圧に等しい電圧が印加されるから、上記の式(1)〜(3)により、負性コンダクタンスGoscは、次式(4)で表すことができる。なお、Rはエミッタ電位設定用の抵抗部Rbの抵抗値である。   That is, the negative conductance Gosc of the oscillation circuit unit 2 is determined by how much feedback current Ifb is applied to the oscillation amplitude VT. Since a voltage equal to the oscillation voltage of the LC resonance circuit section 1 is applied between the emitter of the amplifying transistor BTr and the ground only during the positive half cycle of oscillation, the above equations (1) to (3 ), The negative conductance Gosc can be expressed by the following equation (4). Note that R is the resistance value of the resistor Rb for setting the emitter potential.

Figure 0004981745
Figure 0004981745

上記の式(4)より明らかなように、電流調整部23のスイッチSWのオン・オフ、すなわち電流調整部23に入力するデジタルコードによって、発振回路部2の負性コンダクタンスGoscの値を調整することができる。   As apparent from the above equation (4), the value of the negative conductance Gosc of the oscillation circuit unit 2 is adjusted by turning on / off the switch SW of the current adjustment unit 23, that is, by a digital code input to the current adjustment unit 23. be able to.

ここで、LC共振回路部1が発振する条件は、発振回路部2の負性コンダクタンスGoscの絶対値が、検知コイル10のコンダクタンスの絶対値以上であること、すなわち、検知コイル10のコンダクタンスをGcoilとすれば、負性コンダクタンスGoscとコンダクタンスGcoilとが、Gcoil≦|Gosc|の関係にあるときである。   Here, the condition that the LC resonance circuit unit 1 oscillates is that the absolute value of the negative conductance Gosc of the oscillation circuit unit 2 is equal to or larger than the absolute value of the conductance of the detection coil 10, that is, the conductance of the detection coil 10 is set to Gcoil. Then, the negative conductance Gosc and the conductance Gcoil are in a relationship of Gcoil ≦ | Gosc |.

したがって、振回路部2の負性コンダクタンスGoscが、Gcoil=|Gosc|であるときに、負性コンダクタンスGoscは、LC共振回路部1が発振可能な最大値となる。そのため、検知コイル10のコンダクタンスGcoilの負の値である−Gcoilが、発振回路部2の負性コンダクタンスGoscの上述の臨界値となる。そうすると、負性コンダクタンスGoscが臨界値である場合には、コンダクタンスGcoilは次式(5)で表すことができる。 Therefore, negative conductance Gosc the oscillation circuit unit 2 is, Gcoil = | Gosc | when a negative conductance Gosc is, LC resonant circuit 1 becomes the maximum value can oscillate. Therefore, −Gcoil, which is a negative value of the conductance Gcoil of the detection coil 10 , becomes the above-described critical value of the negative conductance Gosc of the oscillation circuit unit 2. Then, when the negative conductance Gosc is a critical value, the conductance Gcoil can be expressed by the following equation (5).

Figure 0004981745
Figure 0004981745

そして、検知コイル10のコンダクタンスGcoilは、被検知体と検知コイル10との距離に起因する渦電流損の変化、つまり検知コイル10と被検知体との距離に応じて変化するから、負性コンダクタンスGoscが上記臨界値である限り、検知コイル10のコンダクタンスGcoilとデジタルコードとは対応関係にある(制御部4で設定されるデジタルコードのビットパターンは、検知コイル10と被検知体との距離によって変化する)。   The conductance Gcoil of the detection coil 10 changes in accordance with a change in eddy current loss caused by the distance between the detection object and the detection coil 10, that is, the distance between the detection coil 10 and the detection object. As long as Gosc is the above critical value, the conductance Gcoil of the detection coil 10 and the digital code have a corresponding relationship (the bit pattern of the digital code set by the control unit 4 depends on the distance between the detection coil 10 and the object to be detected). Change).

モニタ部3は、npn形のトランジスタ30と、抵抗31と、コンデンサ32とで構成された検波回路からなる。トランジスタ30は、コレクタが基準電源Vccに接続され、ベースがLC共振回路部1に接続され、エミッタが抵抗31およびコンデンサ32に接続されている。そして、トランジスタ30のコレクタ−エミッタ間には、ベースに入力される電圧(LC共振回路部1の発振電圧)に応じた電流が流れ、この電流によってコンデンサ32が充電される。本実施形態におけるモニタ部3では、このコンデンサ32の両端電圧をLC共振回路部1の発振振幅を示す値として検出する。   The monitor unit 3 includes a detection circuit including an npn-type transistor 30, a resistor 31, and a capacitor 32. The transistor 30 has a collector connected to the reference power supply Vcc, a base connected to the LC resonance circuit unit 1, and an emitter connected to the resistor 31 and the capacitor 32. A current corresponding to the voltage input to the base (the oscillation voltage of the LC resonance circuit unit 1) flows between the collector and emitter of the transistor 30, and the capacitor 32 is charged by this current. The monitor unit 3 in the present embodiment detects the voltage across the capacitor 32 as a value indicating the oscillation amplitude of the LC resonance circuit unit 1.

制御部4は、例えば所定のプログラムを実行するマイクロコンピュータやロジック回路などにより構成される。制御部4は、モニタ部3より得た発振振幅VTが所定値、すなわち負性コンダクタンスGoscの絶対値とコンダクタンスGcoilの絶対値が等しいときの発振振幅VTの値(つまりは発振回路部2の負性コンダクタンスGoscが臨界値)となるようにデジタルコードを設定する。制御部4は、デジタルコードを設定した後は、当該デジタルコードをデジタル信号により電流調整部23のスイッチ制御部231と、信号処理部5との双方に送信する。 The control unit 4 is configured by, for example, a microcomputer or a logic circuit that executes a predetermined program. The control unit 4 determines the value of the oscillation amplitude VT when the oscillation amplitude VT obtained from the monitor unit 3 is a predetermined value, that is, the absolute value of the negative conductance Gosc is equal to the absolute value of the conductance Gcoil (that is, the negative value of the oscillation circuit unit 2). The digital code is set so that the sex conductance Gosc becomes a critical value). After setting the digital code, the control unit 4 transmits the digital code to both the switch control unit 231 of the current adjustment unit 23 and the signal processing unit 5 by a digital signal.

ここで、負性コンダクタンスGoscの絶対値とコンダクタンスGcoilの絶対値とは一致させるのが好ましいが、必ずしも一致させる必要はなく、負性コンダクタンスGoscの絶対値がコンダクタンスGcoilの絶対値におおよそ等しいとみなせる範囲(例えば上記臨界値よりやや小さい値)であれば問題はない。したがって、本実施形態では、制御部4は、モニタ部3より得た発振振幅VTが所定の範囲内の値(負性コンダクタンスGoscの絶対値とコンダクタンスGcoilの絶対値とがおおよそ等しいとみなせる範囲における発振振幅VTの値)になるように、デジタルコードを設定する。   Here, the absolute value of the negative conductance Gosc and the absolute value of the conductance Gcoil are preferably matched, but it is not always necessary to match, and the absolute value of the negative conductance Gosc can be regarded as approximately equal to the absolute value of the conductance Gcoil. There is no problem if it is in a range (for example, a value slightly smaller than the above critical value). Therefore, in this embodiment, the control unit 4 has a value within a predetermined range of the oscillation amplitude VT obtained from the monitor unit 3 (in a range where the absolute value of the negative conductance Gosc and the absolute value of the conductance Gcoil can be regarded as approximately equal). The digital code is set so that the oscillation amplitude VT).

信号処理部5は、入力されたデジタル信号(制御部4より出力されたデジタル信号)からデジタルコードを取得する機能を備え、当該機能により取得したデジタルコードに基づいてアナログ形式の電気信号からなる検知信号(例えば、被検知体と検知コイル10との距離に比例して値が大きくなる信号)を作成し、図示しない外部機器(例えば、パーソナルコンピュータやプログラマブルコントローラなどの制御装置)に出力する。上記検知信号は、例えば、デジタルコード(のビットパターン)と、被検知体と検知コイル10との距離との関係を示すデータテーブルや、デジタルコードにより表される値(本実施形態の場合であれば、値が”1”であるビットの総数)を被検知体と検知コイル10との距離に変換する演算式などを利用することができる。なお、デジタルコードにより表される値としては、デジタルコードを10進数に変換した値を採用することもできる。この種のデータテーブルや上記演算式は、実際の測定結果などから求めることができる
上述したように信号処理部5は、デジタルコードに基づいて検知信号を作成し出力するが、当該検知信号を閾値処理することで、被検知体が存在しているか否かのデジタルな検知信号を作成し出力するようにしてもよい。例えば、信号処理部5は、検知信号(アナログな検知信号)の値が所定の閾値以上である場合に、被検知体が検知コイル10の検知範囲内に存在し、所定の閾値未満である場合に、被検知体が検知コイル10の検知範囲外に存在すると判断して、被検知体の存否を示す検知信号(デジタルな検知信号)を出力するように構成されていてもよい。このようにすれば、被検知体との距離に加えて、被検知体の存在検知も同時に行えるようになる。
The signal processing unit 5 has a function of acquiring a digital code from the input digital signal (digital signal output from the control unit 4), and is a detection made of an analog electric signal based on the digital code acquired by the function. A signal (for example, a signal whose value increases in proportion to the distance between the detected object and the detection coil 10) is created and output to an external device (not shown) (for example, a control device such as a personal computer or a programmable controller). The detection signal is, for example, a data table indicating the relationship between the digital code (bit pattern thereof) and the distance between the detected object and the detection coil 10 or a value represented by the digital code (in the case of this embodiment). For example, an arithmetic expression for converting the total number of bits having a value of “1” into the distance between the detection object and the detection coil 10 can be used. In addition, as a value represented by the digital code, a value obtained by converting the digital code into a decimal number may be employed. This type of data table and the above arithmetic expression can be obtained from actual measurement results and the like. As described above, the signal processing unit 5 creates and outputs a detection signal based on the digital code. By processing, a digital detection signal indicating whether or not the detection target exists may be generated and output. For example, when the value of the detection signal (analog detection signal) is equal to or greater than a predetermined threshold, the signal processing unit 5 is within the detection range of the detection coil 10 and is less than the predetermined threshold. In addition, it may be configured that the detection object is determined to be outside the detection range of the detection coil 10 and a detection signal (digital detection signal) indicating the presence or absence of the detection object is output. In this way, in addition to the distance to the detected object, the presence of the detected object can be detected at the same time.

本実施形態の近接センサは上述した構成を有しており、以下にその動作について簡単に説明する。近接センサが動作を開始すると、LC共振回路部1の両端には所定周波数(検知コイル10のインダクタンスとコンデンサ11の静電容量とで決定される周波数)の発振電圧が生じる。LC共振回路部1の発振は、発振回路部2より供給される帰還電流Ifbによって維持される。   The proximity sensor of this embodiment has the above-described configuration, and the operation thereof will be briefly described below. When the proximity sensor starts to operate, an oscillation voltage having a predetermined frequency (frequency determined by the inductance of the detection coil 10 and the capacitance of the capacitor 11) is generated at both ends of the LC resonance circuit unit 1. The oscillation of the LC resonance circuit unit 1 is maintained by the feedback current Ifb supplied from the oscillation circuit unit 2.

LC共振回路部1の発振振幅VTはモニタ部3により検出され、制御部4はモニタ部3にて検出した発振振幅VTに基づき、発振回路部2の負性コンダクタンスGoscが上記臨界値となるようにデジタルコードを設定し、当該デジタルコードをデジタル信号により電流調整部23に送信して出力電流Io(=帰還電流Ifb)の大きさを調整する。制御部4が出力するデジタル信号は信号処理部5にも入力され、信号処理部5では入力されたデジタル信号のデジタルコードに基づいて検知信号が作成される。   The oscillation amplitude VT of the LC resonance circuit unit 1 is detected by the monitor unit 3, and the control unit 4 makes the negative conductance Gosc of the oscillation circuit unit 2 become the above critical value based on the oscillation amplitude VT detected by the monitor unit 3. A digital code is set to the digital code, and the digital code is transmitted to the current adjusting unit 23 by a digital signal to adjust the magnitude of the output current Io (= feedback current Ifb). The digital signal output from the control unit 4 is also input to the signal processing unit 5, and the signal processing unit 5 generates a detection signal based on the digital code of the input digital signal.

ここで、被検知体が検知コイル10に接近し、検知コイル10における渦電流損が大きくなると、検知コイル10のコンダクタンスGcoilの絶対値が負性コンダクタンスGoscの絶対値より大きくなる。そのため、上記発振条件を満たさなくなって、LC共振回路部1の発振が停止しようとし、発振振幅VTが小さくなる。制御部4は、モニタ部3で検出した発振振幅VTが上記所定範囲内の値にならなくなると、発振振幅VTが上記所定範囲内の値となるように出力電流Ioを調整する(負性コンダクタンスGoscを調整する)。上記の場合、制御部4は、負性コンダクタンスGoscの絶対値を大きくするために、出力電流Ioが大きくなるようにデジタルコードを設定する。そして、信号処理部5は、制御部4により新たに設定されたデジタルコードに基づいて検知信号を作成して出力する。   Here, when the detected object approaches the detection coil 10 and the eddy current loss in the detection coil 10 increases, the absolute value of the conductance Gcoil of the detection coil 10 becomes larger than the absolute value of the negative conductance Gosc. Therefore, the oscillation condition is not satisfied, the oscillation of the LC resonance circuit unit 1 tries to stop, and the oscillation amplitude VT decreases. When the oscillation amplitude VT detected by the monitor unit 3 does not become a value within the predetermined range, the control unit 4 adjusts the output current Io so that the oscillation amplitude VT becomes a value within the predetermined range (negative conductance). Adjust Gosc). In the above case, the control unit 4 sets the digital code so that the output current Io is increased in order to increase the absolute value of the negative conductance Gosc. Then, the signal processing unit 5 creates and outputs a detection signal based on the digital code newly set by the control unit 4.

上記とは逆に被検知体が検知コイル10から離れ、検知コイル10における渦電流損が小さくなると、検知コイル10のコンダクタンスGcoilの絶対値が負性コンダクタンスGoscの絶対値より小さくなり、その結果、発振振幅VTが大きくなる。制御部4は、モニタ部3で検出した発振振幅VTが上記所定範囲内の値にならなくなると、発振振幅VTが上記所定範囲内の値となるように出力電流Ioを調整するから、上記の場合、負性コンダクタンスGoscの絶対値を小さくするために、出力電流Ioが小さくなるようにデジタルコードを設定する。そして、信号処理部5は、制御部4により新たに設定されたデジタルコードに基づいて上記検知信号を作成して出力する。   Contrary to the above, when the object to be detected moves away from the detection coil 10 and the eddy current loss in the detection coil 10 becomes small, the absolute value of the conductance Gcoil of the detection coil 10 becomes smaller than the absolute value of the negative conductance Gosc. The oscillation amplitude VT increases. When the oscillation amplitude VT detected by the monitor unit 3 does not become a value within the predetermined range, the control unit 4 adjusts the output current Io so that the oscillation amplitude VT becomes a value within the predetermined range. In this case, in order to reduce the absolute value of the negative conductance Gosc, the digital code is set so that the output current Io is reduced. Then, the signal processing unit 5 creates and outputs the detection signal based on the digital code newly set by the control unit 4.

上述したように信号処理部5からは、制御部4で設定されたデジタルコードに基づく検知信号が出力され、当該検知信号をモニタすることによって、被検知体と検知コイル10との距離、つまり位置関係を知ることができる。   As described above, a detection signal based on the digital code set by the control unit 4 is output from the signal processing unit 5, and the distance, that is, the position between the detected object and the detection coil 10 is monitored by monitoring the detection signal. You can know the relationship.

以上述べたように、発振回路部2は、制御部4で設定されたデジタルコードに対応した出力電流Ioを出力するD/Aコンバータよりなる電流調整部23を有し、当該電流調整部の出力電流Ioに正比例する帰還電流Ifb(本実施形態の場合は出力電流Ioと帰還電流Ifbとは等しい)をLC共振回路部1に供給し、制御部4は、発振回路部2の負性コンダクタンスGoscが臨界値となるようにデジタルコードが設定されたデジタル信号を電流調整部23に出力し、信号処理部5は、制御部4より出力されたデジタル信号のデジタルコードに基づいて検知信号を作成する。   As described above, the oscillation circuit unit 2 includes the current adjustment unit 23 including the D / A converter that outputs the output current Io corresponding to the digital code set by the control unit 4, and outputs the current adjustment unit. A feedback current Ifb that is directly proportional to the current Io (in this embodiment, the output current Io and the feedback current Ifb are equal) is supplied to the LC resonance circuit unit 1, and the control unit 4 has a negative conductance Gosc of the oscillation circuit unit 2. Is output to the current adjustment unit 23, and the signal processing unit 5 creates a detection signal based on the digital code of the digital signal output from the control unit 4. .

そして、LC共振回路部1が発振する条件は、発振回路部2の負性コンダクタンスGoscの絶対値が、検知コイル10のコンダクタンスGcoilの絶対値以上であることであるから、発振回路部2の負性コンダクタンスGoscがLC共振回路部1が発振可能な臨界値である場合、当該負性コンダクタンスGoscの絶対値は、検知コイル10のコンダクタンスGcoilの絶対値に等しいと考えることができ、ここで、検知コイル10のコンダクタンスGcoilは、被検知体と検知コイル10との距離に起因する渦電流損の変化、つまり検知コイル10と被検知体との距離に応じて変化し、検知コイル10のコンダクタンスGcoilに等しい発振回路部2の負性コンダクタンスGoscは、LC共振回路部1に供給される帰還電流IfbとLC共振回路部1の発振振幅VTによって決定される。   The condition that the LC resonance circuit unit 1 oscillates is that the absolute value of the negative conductance Gosc of the oscillation circuit unit 2 is equal to or larger than the absolute value of the conductance Gcoil of the detection coil 10. When the negative conductance Gosc is a critical value at which the LC resonance circuit unit 1 can oscillate, the absolute value of the negative conductance Gosc can be considered to be equal to the absolute value of the conductance Gcoil of the detection coil 10. The conductance Gcoil of the coil 10 changes in accordance with a change in eddy current loss caused by the distance between the detected body and the detection coil 10, that is, the distance between the detection coil 10 and the detected body. The negative conductance Gosc of the equal oscillation circuit unit 2 is the feedback current supplied to the LC resonance circuit unit 1 It is determined by fb and LC oscillation amplitude VT of the resonance circuit 1.

そして、本実施形態の近接センサでは、LC共振回路部1に供給される帰還電流Ifbは電流調整部23の出力電流Ioに正比例するので、電流調整部23に入力するデジタル信号のデジタルコードにより検知コイル10と被検知体との距離を求めることができるから、デジタルコードを用いることで、従来例のような被検知体が存在しているか否かのデジタルな検知信号ではなく、被検知体と検知コイル10との距離を示すアナログな検知信号を得ることができる。また、検知信号を閾値処理することで、被検知体が存在しているか否かのデジタルな検知信号も得ることもできる。   In the proximity sensor of the present embodiment, the feedback current Ifb supplied to the LC resonance circuit unit 1 is directly proportional to the output current Io of the current adjustment unit 23, and thus is detected by the digital code of the digital signal input to the current adjustment unit 23. Since the distance between the coil 10 and the object to be detected can be obtained, the digital code is used, not a digital detection signal indicating whether or not the object to be detected exists as in the conventional example, but the object to be detected. An analog detection signal indicating the distance from the detection coil 10 can be obtained. Further, by performing threshold processing on the detection signal, it is also possible to obtain a digital detection signal indicating whether or not the detection target exists.

したがって、本実施形態の近接センサによれば、被検知体の存在検知に加え、被検知体との距離も検知できる。また、デジタルコードを用いるために、各種通信やPWMなどに使用するデジタル信号を容易に得ることができる(すなわちデジタル信号の親和性が高くなる)。しかも、デジタル信号を取り扱う回路は微細パターンでの小型化が容易であるため、制御部や発振回路部などをIC化する際に低コスト化を図ることができ、またセンサ特性にICばらつきによる影響が生じてしまうことを抑制することができる。   Therefore, according to the proximity sensor of the present embodiment, in addition to detecting the presence of the detected object, the distance to the detected object can also be detected. In addition, since a digital code is used, a digital signal used for various communications and PWM can be easily obtained (that is, the affinity of the digital signal is increased). In addition, since a circuit that handles digital signals can be easily miniaturized with a fine pattern, it is possible to reduce the cost when the control unit, the oscillation circuit unit, and the like are integrated into an IC. Can be prevented from occurring.

また、信号処理部5は、制御部4からデジタルコードを取得し、当該デジタルコードを用いて検知信号を作成するので、例えば、負性コンダクタンスGoscの大きさを得るために帰還電流Ifbなどを利用する場合とは異なり、帰還電流Ifbの大きさを検出する検出回路などが必要なくなるから、回路構成を簡素化することができて、小型化、製造コストの低減などが図れる。   Further, since the signal processing unit 5 acquires a digital code from the control unit 4 and creates a detection signal using the digital code, for example, the feedback current Ifb is used to obtain the magnitude of the negative conductance Gosc. Unlike the case, the detection circuit for detecting the magnitude of the feedback current Ifb is not necessary, so that the circuit configuration can be simplified, and the size and the manufacturing cost can be reduced.

特に、本実施形態における発振回路部2は、電流調整部23の出力電流Ioを帰還電流IfbとしてLC共振回路部1に供給しており、また電流調整部23はLC共振回路部1の発振電圧VTに応じた電流(増幅電流Ib)を基準電流とする入力側トランジスタITr、および基準電流に比例した大きさのミラー電流Imを基準電源VccからLC共振回路部1に供給させる複数の出力側トランジスタOTを有し、ミラー電流Imを加算して出力電流Ioを作成するカレントミラー回路部230と、ミラー電流ImをLC共振回路部1に供給するか否かを決定するスイッチSWと、入力されたデジタル信号のデジタルコードに応じてスイッチを制御するスイッチ制御部231とを有してなるので、カレントミラー回路部とD/Aコンバータとを別個に設ける場合に比べれば、回路規模を小型化することができ、低コスト化が図れる。 In particular, the oscillation circuit unit 2 in the present embodiment supplies the output current Io of the current adjustment unit 23 as the feedback current Ifb to the LC resonance circuit unit 1, and the current adjustment unit 23 generates the oscillation voltage of the LC resonance circuit unit 1. An input side transistor ITr having a current corresponding to VT (amplified current Ib) as a reference current, and a plurality of output side transistors for supplying a mirror current Im having a magnitude proportional to the reference current from the reference power supply Vcc to the LC resonance circuit unit 1 has OT r, a current mirror circuit 230 by adding the mirror current Im to produce an output current Io, a switch SW which determines whether to supply the mirror current Im to the LC resonant circuit 1 is input Switch controller 231 for controlling the switch in accordance with the digital code of the digital signal, a current mirror circuit unit and a D / A converter Can be reduced in size and cost can be reduced as compared with the case where these are provided separately.

また、スイッチSWは、出力側トランジスタOTr(のエミッタ)と基準電源Vccとの間に挿入されているので、出力電流Ioを小さくする際(スイッチSWをオフにした際)には、ミラー電流Imが遮断されるから(出力側トランジスタOTrにはミラー電流Imが流れないから)、低消費電力化を図ることができる。なお、スイッチSWは、出力側トランジスタOTr(のベース)と入力側トランジスタITr(のベース)との間に挿入するようにしてもよく、このようにした場合であっても、出力電流Ioを小さくする際(スイッチSWをオフにした際)には、出力側トランジスタOTrにミラー電流Imが流れなくなるから、低消費電力化を図ることができる。すなわち、スイッチSWは、出力側トランジスタOTrと入力側トランジスタITrとの間、あるいは出力側トランジスタOTrと基準電源Vccとの間のいずれかに挿入されていればよい。   Further, since the switch SW is inserted between the output-side transistor OTr (the emitter thereof) and the reference power source Vcc, when the output current Io is reduced (when the switch SW is turned off), the mirror current Im Is cut off (since the mirror current Im does not flow through the output-side transistor OTr), the power consumption can be reduced. Note that the switch SW may be inserted between the output-side transistor OTr (the base thereof) and the input-side transistor ITr (the base thereof). Even in this case, the output current Io is reduced. When the switch SW is turned off (when the switch SW is turned off), the mirror current Im does not flow through the output-side transistor OTr, so that power consumption can be reduced. That is, the switch SW may be inserted either between the output-side transistor OTr and the input-side transistor ITr or between the output-side transistor OTr and the reference power supply Vcc.

また、発振回路部2と、モニタ部3と、制御部4と、信号処理部5とはモノリシックICとして一体化されているので、発振回路部2と、モニタ部3と、制御部4と、信号処理部5とをそれぞれ別のICなどにより構成する場合に比べれば、小型化が図れるとともに低コスト化が図れ、さらに耐ノイズ性能を向上できる。   Since the oscillation circuit unit 2, the monitor unit 3, the control unit 4, and the signal processing unit 5 are integrated as a monolithic IC, the oscillation circuit unit 2, the monitor unit 3, the control unit 4, Compared with the case where the signal processing unit 5 is configured by separate ICs, the size can be reduced, the cost can be reduced, and the noise resistance can be improved.

なお、本実施形態における発振回路部2や、モニタ部3の回路構成はあくまでも一例であって、本発明の趣旨を逸脱しない程度に変更することができる。例えば、発振回路部2の出力側トランジスタOTrおよびスイッチSWの数は、図示例の4つに限定されず、例えば、8、16、32などの4より大きい数、あるいは2、3などの4より小さい数であってもよい。当然ながら出力側トランジスタOTrおよびスイッチSWの数が多いほど出力電流Ioの変化範囲や、変化幅を細かく設定することができるから、被検知体と検知コイル10との距離の分解能(位置精度)を向上することができる。このような点は、後述する実施形態2〜6においても同様である。   Note that the circuit configurations of the oscillation circuit unit 2 and the monitor unit 3 in the present embodiment are merely examples, and can be changed without departing from the gist of the present invention. For example, the number of output-side transistors OTr and switches SW in the oscillation circuit unit 2 is not limited to four in the illustrated example. For example, the number is larger than 4, such as 8, 16, 32, or 4 such as 2, 3, and the like. It may be a small number. Naturally, as the number of output side transistors OTr and switches SW increases, the change range and change width of the output current Io can be set more finely. Therefore, the resolution (positional accuracy) of the distance between the detected object and the detection coil 10 can be improved. Can be improved. Such a point is the same in Embodiments 2 to 6 described later.

ところで、モニタ部3としては、発振振幅を示す値として、図1に示すような発振電圧のピーク値を検出する構成の他に、発振電圧の積分値を検出する構成や、発振電圧の実効値を検出する構成であってもよく、このように交流成分のみを検波し、それが一定になるように制御する方式にすると、バイアス電流や検知コイル10の直流抵抗分の影響(当然、それらの温度特性も)を排除することが可能になるという利点がある。ところで、本実施形態の近接センサは、常時はLC共振回路部1が発振しており、被検知体の接近によってLC共振回路部1の発振が停止する近接センサを利用しているが、常時はLC共振回路部1の発振が停止しており、被検知体の接近によってLC共振回路部1が発振する近接センサを利用するようにしてもよい。ところで、本実施形態における検知コイル10のコンダクタンスGcoilは、被検知体との距離のほかに、LC共振回路部1の発振周波数によっても変化する。つまり、コンデンサ11の容量が変化した場合であっても、検知コイル10のコンダクタンスGcoilが変化する。したがって、本実施形態の近接センサは、静電容量センサとしても利用することができ、この場合であっても、制御部4が設定するデジタルコードをセンサの出力として利用することができる。また、本実施形態では、トランジスタ210や、増幅用トランジスタBTr、入力側トランジスタITr、出力側トランジスタOTrとして、バイポーラトランジスタを利用した近接センサの回路の構成例を示しているが、トランジスタとしてはMOSトランジスタ(MOSFET)を利用してもよい。このような点は、後述する実施形態2〜14においても同様である。   By the way, as the monitor unit 3, in addition to the configuration for detecting the peak value of the oscillation voltage as shown in FIG. 1 as the value indicating the oscillation amplitude, the configuration for detecting the integrated value of the oscillation voltage, or the effective value of the oscillation voltage. In this way, when only the AC component is detected and controlled so as to be constant, the influence of the bias current and the DC resistance of the detection coil 10 (of course, those There is an advantage that the temperature characteristic can be eliminated. By the way, the proximity sensor according to the present embodiment uses a proximity sensor in which the LC resonance circuit unit 1 always oscillates and the oscillation of the LC resonance circuit unit 1 stops due to the approach of the detected object. It is also possible to use a proximity sensor in which the oscillation of the LC resonance circuit unit 1 is stopped and the LC resonance circuit unit 1 oscillates when the object to be detected approaches. By the way, the conductance Gcoil of the detection coil 10 in the present embodiment varies depending on the oscillation frequency of the LC resonance circuit unit 1 in addition to the distance to the detected object. That is, even when the capacitance of the capacitor 11 changes, the conductance Gcoil of the detection coil 10 changes. Therefore, the proximity sensor of the present embodiment can be used as a capacitance sensor, and even in this case, the digital code set by the control unit 4 can be used as the output of the sensor. In this embodiment, a configuration example of a proximity sensor circuit using bipolar transistors is shown as the transistor 210, the amplifying transistor BTr, the input-side transistor ITr, and the output-side transistor OTr. (MOSFET) may be used. Such a point is the same in Embodiments 2 to 14 described later.

(実施形態2)
本実施形態の近接センサは、図2に示すように、発振回路部2の電流調整部23の構成が実施形態1と異なっており、その他の構成は実施形態1と同様であるから、同様の構成については実施形態1と同一の符号を付して説明を省略する。
(Embodiment 2)
As shown in FIG. 2, the proximity sensor of the present embodiment is different from the first embodiment in the configuration of the current adjustment unit 23 of the oscillation circuit unit 2, and the other configurations are the same as those in the first embodiment. About the structure, the same code | symbol as Embodiment 1 is attached | subjected and description is abbreviate | omitted.

本実施形態における電流調整部23では、出力側トランジスタOTrのコレクタそれぞれとLC共振回路部1との間に逆流阻止用のダイオードDが挿入されている。また、スイッチSWは、上記実施形態1では出力側トランジスタOTrのエミッタと基準電源Vccとの間に挿入されていたが、本実施形態では出力側トランジスタOTrのエミッタと基準電位との間に挿入されている。なお、ダイオードDのアノードは出力側トランジスタOTrにカソードはLC共振回路部1に接続されている。   In the current adjustment unit 23 in the present embodiment, a backflow prevention diode D is inserted between each collector of the output-side transistor OTr and the LC resonance circuit unit 1. The switch SW is inserted between the emitter of the output side transistor OTr and the reference power source Vcc in the first embodiment, but is inserted between the emitter of the output side transistor OTr and the reference potential in this embodiment. ing. The anode of the diode D is connected to the output-side transistor OTr, and the cathode is connected to the LC resonance circuit unit 1.

上記構成の本実施形態における電流調整部23では、スイッチSWがオンであれば、出力側トランジスタOTrのエミッタが基準電位に接続されて、ミラー電流Imは基準電位に流れる。一方、スイッチSWがオフであれば、出力側トランジスタOTrのエミッタと基準電位との間は遮断されて、ミラー電流ImはダイオードDを経由してLC共振回路部1に流れる。   In the current adjustment unit 23 of the present embodiment configured as described above, if the switch SW is on, the emitter of the output-side transistor OTr is connected to the reference potential, and the mirror current Im flows to the reference potential. On the other hand, when the switch SW is off, the emitter of the output side transistor OTr and the reference potential are interrupted, and the mirror current Im flows to the LC resonance circuit unit 1 via the diode D.

つまり、本実施形態における電流調整部23は、ミラー電流ImをLC共振回路部1に供給する供給路(ダイオードDを通る電路)と、ミラー電流ImをLC共振回路部1に供給しない非供給路(スイッチSWを通る電路)とを有する。そして、供給路と非供給路とのいずれにミラー電流Imが流れるかは、スイッチSWがオンであるかオフであるかによって決定される(すなわち、スイッチSWにより選択される)。   In other words, the current adjusting unit 23 in the present embodiment has a supply path for supplying the mirror current Im to the LC resonance circuit section 1 (electric path passing through the diode D) and a non-supply path for not supplying the mirror current Im to the LC resonance circuit section 1. (Electric circuit passing through the switch SW). Whether the mirror current Im flows in the supply path or the non-supply path is determined depending on whether the switch SW is on or off (that is, selected by the switch SW).

本実施形態の近接センサでは、供給路と非供給路との切り換えによって出力電流Ioが調整されるので、出力側トランジスタOTrにはスイッチSWの制御状態(オン・オフ)に関わらずミラー電流Imが流れる。そのため、本実施形態の近接センサによれば、実施形態1のようにスイッチSWがオンであるときだけ、出力側トランジスタOTrにミラー電流Imが流れるものとは異なり、ミラー電流Imの供給開始や供給停止に伴う出力側トランジスタOTrにおける電流変動が生じることがないから、このような電流変動によって、入力側トランジスタITrの基準電流が変動してしまうことを防止することができ、安定した動作が可能になる。本実施形態の近接センサのその他の効果については実施形態1と同様であるから説明を省略する。   In the proximity sensor according to the present embodiment, the output current Io is adjusted by switching between the supply path and the non-supply path. Therefore, the mirror current Im is applied to the output-side transistor OTr regardless of the control state (ON / OFF) of the switch SW. Flowing. Therefore, according to the proximity sensor of this embodiment, unlike the case where the mirror current Im flows through the output-side transistor OTr only when the switch SW is on as in the first embodiment, the supply of mirror current Im starts or is supplied. Since there is no current fluctuation in the output-side transistor OTr due to the stop, it is possible to prevent the reference current of the input-side transistor ITr from fluctuating due to such current fluctuation, and stable operation is possible. Become. Since the other effects of the proximity sensor of the present embodiment are the same as those of the first embodiment, description thereof is omitted.

なお、ミラー電流ImをLC共振回路部1に供給する供給路と、ミラー電流ImをLC共振回路部1に供給しない非供給路との構成は図示例のものに限定されず、使用形態などに応じて適宜変更することができる。   The configuration of the supply path that supplies the mirror current Im to the LC resonance circuit unit 1 and the non-supply path that does not supply the mirror current Im to the LC resonance circuit unit 1 are not limited to those in the illustrated example. It can be changed accordingly.

(実施形態3)
本実施形態の近接センサは、発振回路部2の電流調整部23、特にカレントミラー回路部230の構成が実施形態1と異なっており、その他の構成は実施形態1と同様であるから、同様の構成については実施形態1と同一の符号を付して図示および説明を省略する。
(Embodiment 3)
The proximity sensor of the present embodiment is different from the first embodiment in the configuration of the current adjustment unit 23 of the oscillation circuit unit 2, particularly the current mirror circuit unit 230, and the other configurations are the same as those in the first embodiment. About the structure, the same code | symbol as Embodiment 1 is attached | subjected and illustration and description are abbreviate | omitted.

本実施形態におけるカレントミラー回路部230は、出力側トランジスタOTr〜OTrのエミッタサイズがいずれも異なっている。さらに詳しく説明すると、出力側トランジスタOTrは入力側トランジスタITrとエミッタサイズが等しいが、出力側トランジスタOTr〜Trそれぞれのエミッタサイズは入力側トランジスタITrのエミッタサイズの2倍、4倍、8倍としている。 In the current mirror circuit unit 230 in the present embodiment, the emitter sizes of the output side transistors OTr 1 to OTr 4 are all different. More specifically, although the output side transistor ITr 1 has the same emitter size as the input side transistor ITr, the emitter size of each of the output side transistors ITr 2 to Tr 4 is twice, four times, 8 times the emitter size of the input side transistor ITr. It is doubled.

そのため、本実施形態におけるカレントミラー回路部230では、ミラー電流Imは基準電流(=増幅電流Ib)に等しいが、ミラー電流Imは2×Ib、ミラー電流Imは4×Ib、ミラー電流Imは8×Ibになる。 Therefore, in the current mirror circuit unit 230 in this embodiment, the mirror current Im 1 is equal to the reference current (= amplified current Ib), but the mirror current Im 2 is 2 × Ib, the mirror current Im 3 is 4 × Ib, and the mirror current. Im 4 becomes 8 × I b .

つまり、ミラー比Mは一律に1ではなく、M=2n−1である。ここで、スイッチSW〜SWそれぞれは第0〜第3ビットそれぞれに対応しているから、ミラー比Mは、スイッチSWに関係付けられたビットのビット番号を指数として2を累乗した値である。 That is, the mirror ratio M n is not uniformly 1 but M n = 2 n−1 . Here, since each of the switches SW 1 to SW 4 corresponds to each of the 0th to 3rd bits, the mirror ratio M n is a power of 2 with the bit number of the bit related to the switch SW n as an index. Value.

換言すれば、本実施形態におけるカレントミラー回路230では、ビット番号が0であるビットに関係付けられたスイッチSWによりLC共振回路部1に供給するか否かが決定されるミラー電流(スイッチSWに対応するミラー電流)Imを基準ミラー電流とすると、ビット番号が0以外、例えばビット番号1であるビットに関係付けられたスイッチSWに対応するミラー電流Imと基準ミラー電流Imとの比(=Im/Im)は、スイッチSWに対応するビットのビット番号(すなわち1)を指数として2を累乗した値(=2)である。同様に、スイッチSW,SWそれぞれに対応するミラー電流Im,Imと基準ミラー電流Imとの比(=Im/Im、あるいはIm/Im)は、スイッチSW,SWに対応するビットのビット番号(すなわち2,3)を指数として2を累乗した値(=4,8)である。 In other words, in the current mirror circuit 230 in the present embodiment, a mirror current (switch SW that determines whether or not to supply to the LC resonance circuit unit 1 by the switch SW 1 related to the bit having the bit number 0 is determined. If the mirror current (Im 1 corresponding to 1 ) Im 1 is the reference mirror current, the mirror current Im 2 and the reference mirror current Im 1 corresponding to the switch SW 2 related to the bit having a bit number other than 0, for example, the bit number 1 is set. (= Im 2 / Im 1 ) is a value (= 2) obtained by raising the bit number (that is, 1) of the bit corresponding to the switch SW 2 to an exponent of 2. Similarly, the switch SW 3, SW 4 ratio of the mirror current Im 3 corresponding to each, Im 4 and the reference mirror current Im 1 (= Im 3 / Im 1 or Im 4 / Im 1,), the switch SW 3, This is a value (= 4, 8) obtained by raising the bit number of the bit corresponding to SW 4 (that is, 2, 3) to an exponent of 2.

例えば、デジタルコードが”0001”であればIo=1×Ibになり、”0101”であればIo=4×Ib+1×Ib=5×Ibになる。デジタルコードがストレート・バイナリコードであれば、デジタルコードにより表される十進数の値が、出力電流Ioの倍率(=Io/Ib)に等しくなる。したがって、デジタルコードが4ビットであれば、出力電流Ioを16種類の値(0含む)の中から選択することができる。   For example, if the digital code is “0001”, Io = 1 × Ib, and if “0101”, Io = 4 × Ib + 1 × Ib = 5 × Ib. If the digital code is a straight binary code, the decimal value represented by the digital code is equal to the magnification (= Io / Ib) of the output current Io. Therefore, if the digital code is 4 bits, the output current Io can be selected from 16 types of values (including 0).

以上述べた本実施形態の近接センサによれば、出力側トランジスタOTrの数が同じであれば、実施形態1のように出力側トランジスタOTrのエミッタサイズがいずれも同じ(出力側トランジスタOTrのミラー電流Imの大きさが全て同じ)である場合に比べて、出力可能な出力電流Ioの値を増やすことができるから、出力電流Ioを細かく設定することができるようになって、被検知体と検知コイル10との距離の分解能(位置精度)を向上することができる。   According to the proximity sensor of the present embodiment described above, if the number of output side transistors OTr is the same, the emitter size of the output side transistor OTr is the same as in the first embodiment (the mirror current of the output side transistor OTr). Since the value of the output current Io that can be output can be increased as compared with the case where the magnitude of Im is the same), the output current Io can be set in detail, and the detected object and the detected current can be detected. The resolution (positional accuracy) of the distance from the coil 10 can be improved.

特に、ビット番号が0以外であるビットに関係付けられたスイッチSWによりLC共振回路部1に供給するか否かが決定されるミラー電流Imと基準ミラー電流Imとの比は、スイッチSWに対応するビットのビット番号を指数として2を累乗した値であるので、ストレート・バイナリコードなどの2進数のデジタルコードによって出力電流Ioを設定でき、スイッチSWの数を少なくしながらも、被検知体と検知コイル10との距離の分解能(位置精度)を向上することができる。 In particular, the ratio of the mirror current Im and the reference mirror current Im 1 determined whether or not to supply to the LC resonance circuit unit 1 by the switch SW related to the bit having a bit number other than 0 is the switch SW Since the bit number of the corresponding bit is an exponent that is a power of 2, the output current Io can be set by a binary digital code such as a straight binary code, and the number of switches SW n can be reduced, but the detection target The resolution (positional accuracy) of the distance between the body and the detection coil 10 can be improved.

なお、本実施形態の近接センサのその他の効果については実施形態1と同様であるから説明を省略する。   The other effects of the proximity sensor of the present embodiment are the same as those of the first embodiment, and thus the description thereof is omitted.

ところで、上記の例では、ミラー電流Imと基準ミラー電流Imとの比(本実施形態の場合はミラー比Mに等しい)をスイッチSWに関係付けられたビットのビット番号を指数として2を累乗した値としているが、必ずしも上記のように比を設定する必要はなく、要は、複数の出力側トランジスタOTrのうちの少なくとも1つは、トランジスタサイズ(あるいはエミッタサイズ)が他と異なっていればよく、このようにすれば、トランジスタサイズがいずれも同じである場合よりも分解能の向上を図ることができる。また、本実施形態におけるカレントミラー回路230の構成は実施形態2に適用することができる。 By the way, in the above example, the ratio between the mirror current Im n and the reference mirror current Im 1 (in this embodiment, equal to the mirror ratio M n ) is used as the exponent of the bit number of the bit associated with the switch SW n. Although the value is a power of 2, it is not always necessary to set the ratio as described above. In short, at least one of the plurality of output side transistors OTr is different in transistor size (or emitter size) from the others. In this way, the resolution can be improved as compared with the case where the transistor sizes are the same. Further, the configuration of the current mirror circuit 230 in the present embodiment can be applied to the second embodiment.

(実施形態4)
本実施形態の近接センサは、図3に示すように、発振回路部2の電流調整部23、特にカレントミラー回路部230の構成が実施形態1と異なっており、その他の構成は実施形態1と同様であるから、同様の構成については実施形態1と同一の符号を付して説明を省略する。
(Embodiment 4)
As shown in FIG. 3, the proximity sensor of the present embodiment is different from the first embodiment in the configuration of the current adjustment unit 23 of the oscillation circuit unit 2, particularly the current mirror circuit unit 230. Since it is the same, about the same structure, the code | symbol same as Embodiment 1 is attached | subjected and description is abbreviate | omitted.

本実施形態におけるカレントミラー回路部230では、入力側トランジスタITrのエミッタと基準電位Vccとの間に基準用のエミッタ抵抗として抵抗部Rrefが挿入されるとともに、複数の出力側トランジスタOTrのエミッタとそれぞれ対応するスイッチSWとの間に個別にミラー電流制限用(ミラー比設定用)のエミッタ抵抗として抵抗部Rmが挿入される。なお、以下の説明では、出力側トランジスタOTr〜OTrそれぞれに対応する抵抗部Rmを必要に応じて符号Rm〜Rmで表す。また、本実施形態では、実施形態1と同様に、入力側トランジスタITrおよび複数の出力側トランジスタOTrのエミッタサイズはいずれも等しい。 In the current mirror circuit unit 230 according to the present embodiment, a resistance unit Rref is inserted as a reference emitter resistance between the emitter of the input-side transistor ITr and the reference potential Vcc, and the emitters of the plurality of output-side transistors OTr are respectively connected. A resistor Rm is inserted as an emitter resistor for mirror current limitation (for mirror ratio setting) individually between the corresponding switches SW. In the following description, the resistor portions Rm corresponding to the output side transistors OTr 1 to OTr 4 are denoted by reference characters Rm 1 to Rm 4 as necessary. In the present embodiment, as in the first embodiment, the emitter sizes of the input side transistor ITr and the plurality of output side transistors OTr are all equal.

本実施形態においては、複数の抵抗部Rmは抵抗値がいずれも異なっている。さらに詳しく説明すると、抵抗部Rmの抵抗値は抵抗部Rrefの抵抗値と等しいが、抵抗部Rm〜Rmそれぞれの抵抗値は抵抗部Rmの抵抗値の8倍、4倍、2倍としている。すなわち、Rref:Rm:Rm:Rm:Rm=8:1:2:4:8である。 In the present embodiment, the resistance values of the plurality of resistance portions Rm are all different. More specifically, the resistance value of the resistance part Rm 4 is equal to the resistance value of the resistance part Rref, but the resistance values of the resistance parts Rm 1 to Rm 3 are 8 times, 4 times, 2 times the resistance value of the resistance part Rm 4. It is doubled. That is, Rref: Rm 1 : Rm 2 : Rm 3 : Rm 4 = 8: 1: 2: 4: 8.

したがって、ミラー電流Imは基準電流(=増幅電流Ib)に等しいが、ミラー電流Im=Im/8、ミラー電流Im=Im/4、ミラー電流Im=Im/2になる。そのため、本実施形態におけるカレントミラー回路部230では、ミラー比Mは一律に1ではなく、M=2n−tである(ただしtはデジタルコードの総ビット数であり、本実施形態では4である)。本実施形態におけるカレントミラー回路230では、スイッチSWに対応するミラー電流Imを基準ミラー電流とすると、スイッチSW,SW,SWそれぞれに対応するミラー電流Im,Im,Imそれぞれと基準ミラー電流Imとの比は、それぞれ2(=2)、4(=2)、8(=2)になり、各指数はスイッチSWに対応するビットのビット番号に等しい。例えば、デジタルコードが”0001”であればIo=1×Imになり、”0101”であればIo=5×Imになる。したがって、デジタルコードが4ビットであれば、出力電流Ioを16種類の値(0含む)の中から選択することができる。 Therefore, mirror current Im 4 is equal to the reference current (= amplified current Ib), mirror current Im 1 = Im 4/8, the mirror current Im 2 = Im 4/4, will mirror current Im 3 = Im 4/2 . Therefore, in the current mirror circuit unit 230 in this embodiment, the mirror ratio M n is not uniformly 1 but M n = 2 n−t (where t is the total number of bits of the digital code, and in this embodiment, 4). In the current mirror circuit 230 in the present embodiment, assuming that the mirror current Im 1 corresponding to the switch SW 1 is a reference mirror current, the mirror currents Im 2 , Im 3 , Im 4 corresponding to the switches SW 2 , SW 3 , SW 4, respectively. The ratio of each to the reference mirror current Im 1 is 2 (= 2 1 ), 4 (= 2 2 ), and 8 (= 2 3 ), and each index is the bit number of the bit corresponding to the switch SW n. equal. For example, if the digital code is “0001”, Io = 1 × Im 1 , and if “0101”, Io = 5 × Im 1 . Therefore, if the digital code is 4 bits, the output current Io can be selected from 16 types of values (including 0).

以上述べた本実施形態の近接センサによれば、出力側トランジスタOTrの数が同じであれば、実施形態1のようにミラー電流Imがいずれも同じである場合(あるいは、抵抗部Rmの抵抗値がいずれも等しい場合)に比べて、出力可能な出力電流Ioの値を増やすことができるから、出力電流Ioを細かく設定することができて、被検知体と検知コイル10との距離の分解能(位置精度)を向上することができる。   According to the proximity sensor of the present embodiment described above, if the number of output side transistors OTr is the same, the mirror current Im is the same as in the first embodiment (or the resistance value of the resistor Rm). Since the value of the output current Io that can be output can be increased compared to the case where both are equal, the output current Io can be set finely, and the resolution of the distance between the detected object and the detection coil 10 ( (Positional accuracy) can be improved.

特に、スイッチSWによりLC共振回路部1に供給するか否かが決定されるミラー電流Imと基準ミラー電流Imとの比は、スイッチSWに対応するビットのビット番号を指数として2を累乗した値であるので、ストレート・バイナリコードなどの2進数のデジタルコードによって出力電流Ioを設定でき、スイッチSWの数を少なくしながらも、被検知体と検知コイル10との距離の分解能(位置精度)を向上することができる。 In particular 2, the ratio of the mirror current Im n and the reference mirror current Im 1 to whether to supply to the LC resonant circuit 1 by the switch SW n is determined, the bit number of the bit corresponding to the switch SW n as an index Since the output current Io can be set by a binary digital code such as a straight binary code and the number of switches SW is reduced, the resolution of the distance between the object to be detected and the detection coil 10 ( (Positional accuracy) can be improved.

なお、本実施形態の近接センサのその他の効果については実施形態2と同様であるから説明を省略する。   The other effects of the proximity sensor according to the present embodiment are the same as those of the second embodiment, and a description thereof will be omitted.

ところで、上記の例では、ミラー電流Imと基準ミラー電流Imとの比をスイッチSWに関係付けられたビットのビット番号を指数として2を累乗した値としているが、必ずしも上記のように比を設定する必要はなく、要は、複数の抵抗部Rmのうちの少なくとも1つは抵抗値が他と異なっていれば、抵抗部Rmの抵抗値がいずれも同じである場合よりも、分解能の向上を図ることができる。 In the above example, the ratio between the mirror current Im n and the reference mirror current Im 1 is a value obtained by raising the bit number of the bit associated with the switch SW n to an exponent of 2, but not necessarily as described above. It is not necessary to set the ratio. In short, if at least one of the plurality of resistance portions Rm has a resistance value different from the others, the resolution is higher than that in the case where the resistance values of the resistance portions Rm are all the same. Can be improved.

(実施形態5)
本実施形態の近接センサは、図4に示すように、発振回路部2の電流調整部23、特にカレントミラー回路部230の構成が実施形態4と異なっており、その他の構成は実施形態2と同様であるから、同様の構成については実施形態4と同一の符号を付して説明を省略する。
(Embodiment 5)
As shown in FIG. 4, the proximity sensor of the present embodiment is different from the fourth embodiment in the configuration of the current adjustment unit 23 of the oscillation circuit unit 2, particularly the current mirror circuit unit 230, and the other configurations are the same as those in the second embodiment. Since they are the same, the same reference numerals as those in the fourth embodiment are given to the same configurations, and the description thereof is omitted.

本実施形態におけるカレントミラー回路部230は、出力側トランジスタOTrを5つ備える。なお、以下の説明では、5つの出力側トランジスタOTrを区別するために必要に応じて符号OTr〜OTrで表す。また、出力側トランジスタOTr〜OTrそれぞれに対応するミラー電流Imを必要に応じてIm〜Imで表す。 The current mirror circuit unit 230 in this embodiment includes five output side transistors OTr. In the following description, the five output-side transistors OTr are indicated by reference numerals OTr 0 to OTr 4 as necessary to distinguish the five output-side transistors OTr. Further, represented by Im 0 to IM 4 as required mirror current Im corresponding to the output side transistor OTr 0 ~OTr 4 respectively.

出力側トランジスタOTr〜OTrについては、実施形態2と同様に、ミラー電流ImをLC共振回路部1に供給する供給路と、ミラー電流ImをLC共振回路部1に供給しない非供給路とが設けられている。一方、出力側トランジスタOTrについては、ミラー電流ImをLC共振回路部1に供給する供給路のみが設けられ、ミラー電流ImをLC共振回路部1に供給しない非供給路は設けられていない。したがって、ミラー電流Imは、デジタルコードのビットの値に関係なく(スイッチSWの制御状態に関係なく)、LC共振回路部1に供給される。つまり、出力側トランジスタOTrは、オフセット用の出力側トランジスタOTrである。 For the output side transistor OTr 1 ~OTr 4, Similarly, the supply path for supplying to the LC resonant circuit 1 a mirror current Im 0, non-supply does not supply the mirror current Im 0 to LC resonance circuit section 1 and the embodiment 2 Roads are provided. On the other hand, the output-side transistor OTr 0, only the supply path for supplying a mirror current Im 0 to LC resonant circuit 1 is provided, the non-supply passage the mirror current Im 0 is not supplied to the LC resonant circuit 1 provided Absent. Therefore, the mirror current Im 0 is supplied to the LC resonance circuit unit 1 regardless of the bit value of the digital code (regardless of the control state of the switch SW). That is, the output-side transistor OTr 0 is an offset output-side transistor OTr.

また、本実施形態では、実施形態4と同様に、入力側トランジスタITrのエミッタと基準電位Vccとの間に基準用のエミッタ抵抗として抵抗部Rrefが挿入されるとともに、複数の出力側トランジスタOTrのエミッタと基準電源Vccとの間に個別にミラー電流制限用(ミラー比設定用)のエミッタ抵抗として抵抗部Rmが挿入される。なお、以下の説明では、出力側トランジスタOTr〜OTrそれぞれに対応する抵抗部Rmを必要に応じて符号Rm〜Rmで表す。また、本実施形態では、入力側トランジスタITrおよび複数の出力側トランジスタOTrのエミッタサイズはいずれも等しくしている。 Further, in the present embodiment, as in the fourth embodiment, a resistor Rref is inserted as a reference emitter resistance between the emitter of the input-side transistor ITr and the reference potential Vcc, and a plurality of output-side transistors OTr are connected. A resistance portion Rm is individually inserted between the emitter and the reference power supply Vcc as an emitter resistance for mirror current limitation (mirror ratio setting). In the following explanation, represented by reference numeral Rm 0 ~Rm 4 optionally a resistance unit Rm corresponding to the output side transistor OTr 0 ~OTr 4 respectively. In the present embodiment, the input transistors ITr and the plurality of output transistors OTr have the same emitter size.

上述した抵抗部Rmは抵抗値がいずれも異なっており、抵抗部Rmの抵抗値は抵抗部Rrefの抵抗値と等しい(すなわちミラー電流Im=Ib)が、抵抗部Rm〜Rmそれぞれの抵抗値は抵抗部Rmの抵抗値の1/4倍、8倍、4倍、2倍としている。すなわち、Rref:Rm:Rm:Rm:Rm:Rm=8:32:1:2:4:8である。したがって、ミラー電流Im=4×Im、ミラー電流Im=Im/8、ミラー電流Im=Im/4、ミラー電流Im=Im/2になる。ここで、ミラー電流Imを基準ミラー電流とすると、ミラー電流Im〜Imと基準ミラー電流Imとの比は、スイッチSW〜SWに対応するビットのビット番号を指数として2を累乗した値である。そのため、デジタルコードが”0001”であればIo=Im+Imになり、”0101”であればIo=Im+5×Imになる。したがって、本実施形態においても実施形態4と同様に、デジタルコードが4ビットであれば、出力電流Ioを16種類の値(0含む)の中から選択することができる。 The resistance values of the resistance parts Rm described above are different, and the resistance value of the resistance part Rm 4 is equal to the resistance value of the resistance part Rref (that is, the mirror current Im 4 = Ib), but the resistance parts Rm 0 to Rm 3 respectively. the resistance value 1/4 of the resistance value of the resistance portion Rm 4, are eight times, four times, twice. That, Rref: Rm 0: Rm 1 : Rm 2: Rm 3: Rm 4 = 8: 32: 1: 2: 4: 8. Therefore, mirror current Im 0 = 4 × Im 4, mirror current Im 1 = Im 4/8, the mirror current Im 2 = Im 4/4, will mirror current Im 3 = Im 4/2. Here, if the mirror current Im 1 is a reference mirror current, the ratio of the mirror currents Im 2 to Im 4 and the reference mirror current Im 1 is 2 with the bit number of the bit corresponding to the switches SW 2 to SW 4 as an index. This is a power value. Therefore, if the digital code is “0001”, Io = Im 0 + Im 1 is obtained, and if “0101”, Io = Im 0 + 5 × Im 1 is obtained. Therefore, also in the present embodiment, as in the fourth embodiment, if the digital code is 4 bits, the output current Io can be selected from 16 types of values (including 0).

以上述べた本実施形態の近接センサによれば、カレントミラー回路部230は、デジタルコードのビットの値に関係なくミラー電流Imを基準電源VccからLC共振回路部1に供給させるオフセット用の出力側トランジスタOTrを有しているので、出力電流Ioにオフセットを設けることができるから、オフセットを設けない場合に比べて、被検知体と検知コイル10との距離の分解能(位置精度)を向上することができる。 According to the proximity sensor of the present embodiment described above, the current mirror circuit unit 230 outputs the offset current for supplying the mirror current Im 0 from the reference power source Vcc to the LC resonance circuit unit 1 regardless of the bit value of the digital code. Since the side transistor OTr 0 is provided, an offset can be provided in the output current Io, so that the resolution (position accuracy) of the distance between the detected object and the detection coil 10 is improved as compared with the case where no offset is provided. can do.

例えば、検知コイル10のコンダクタンスGcoilが400μs〜600μsの範囲で変化するときに、負性コンダクタンス|Gosc|に400μsのオフセットを設け、負性コンダクタンス|Gosc|の変化幅を0〜200μsとすれば、負性コンダクタンス|Gosc|の変化幅を0〜600μsとする場合に比べれば、デジタルコードのビット数を同じであるにも関わらず、被検知体と検知コイル10との距離の分解能(位置精度)を3倍ほど向上させることができる。   For example, when the conductance Gcoil of the detection coil 10 changes in the range of 400 μs to 600 μs, an offset of 400 μs is provided in the negative conductance | Gosc |, and the change width of the negative conductance | Gosc | is 0 to 200 μs. Compared with the case where the change width of the negative conductance | Gosc | is 0 to 600 μs, the resolution (positional accuracy) of the distance between the detected object and the detection coil 10 is the same even though the number of bits of the digital code is the same. Can be improved about 3 times.

なお、本実施形態の近接センサのその他の効果については実施形態2と同様であるから説明を省略する。また、上述したオフセット用の出力側トランジスタOTrは、実施形態1〜3にも設けることができる。 The other effects of the proximity sensor according to the present embodiment are the same as those of the second embodiment, and a description thereof will be omitted. Further, the output-side transistor OTr 0 for offset described above, can also be provided in the first to third embodiments.

(実施形態6)
本実施形態の近接センサは、図5に示すように、発振回路部2の電流調整部23と、制御部4の構成が実施形態1と異なっており、その他の構成は実施形態1と同様であるから、同様の構成については実施形態1と同一の符号を付して説明を省略する。
(Embodiment 6)
As shown in FIG. 5, the proximity sensor of the present embodiment is different from the first embodiment in the configuration of the current adjustment unit 23 of the oscillation circuit unit 2 and the control unit 4, and the other configurations are the same as those in the first embodiment. Therefore, the same components as those in the first embodiment are denoted by the same reference numerals, and the description thereof is omitted.

本実施形態における電流調整部23は、スイッチ制御部231を有していない点で実施形態1と異なる。なお、その他の構成は実施形態1と同様であるから、同様の構成については同一の符号を付して説明を省略する。   The current adjustment unit 23 according to the present embodiment is different from the first embodiment in that the switch control unit 231 is not included. Since the other configuration is the same as that of the first embodiment, the same reference numeral is given to the same configuration, and the description is omitted.

本実施形態における制御部4は、例えばCPUおよびメモリを具備したマイクロコンピュータなどにより構成されており、当該マイクロコンピュータのメモリの記憶領域に、デジタルコードを書き込むデータレジスタ(アキュムレータ)が設けられている。このデータレジスタの総ビット数はデジタルコードの総ビット数に等しく、デジタルコードの第Nビットはデータレジスタの第Nビットに対応する(ただし、Nは0以上の整数)。なお、当該デジタルコードは、上記実施形態1と同様に、モニタ部3の検出結果に基づいて設定されるものである。   The control unit 4 in the present embodiment is configured by, for example, a microcomputer including a CPU and a memory, and a data register (accumulator) for writing a digital code is provided in a storage area of the memory of the microcomputer. The total number of bits of the data register is equal to the total number of bits of the digital code, and the Nth bit of the digital code corresponds to the Nth bit of the data register (where N is an integer of 0 or more). The digital code is set based on the detection result of the monitor unit 3 as in the first embodiment.

本実施形態における制御部4には、複数のスイッチSWそれぞれに制御信号を出力する複数の制御信号出力部(図示せず)が設けられており、当該複数の制御信号出力部それぞれはデータレジスタの各ビットと一対一で関係付けられている(換言すれば、複数のスイッチSWそれぞれはデータレジスタの各ビットと一対一で関係付けられている)。ここで、データレジスタの最下位ビットである第0ビット(ビット番号が0であるビット)がスイッチSWに、第1ビット(ビット番号が1であるビット)がスイッチSWに、第2ビット(ビット番号が2であるビット)がスイッチSWに、最上位ビットである第3ビット(ビット番号が3であるビット)がスイッチSWにそれぞれ対応している。 The control unit 4 in the present embodiment is provided with a plurality of control signal output units (not shown) that output control signals to the plurality of switches SW, and each of the plurality of control signal output units is a data register. Each bit has a one-to-one relationship (in other words, each of the plurality of switches SW has a one-to-one relationship with each bit of the data register). Here, the 0th bit is the least significant bit (bit number 0 is bit) switch SW 1 of the data register, the first bit (bit number is 1 bit) within the switch SW 2, the second bit the switch SW 3 (bits a bit number 2), the third bit is the most significant bit (bit number is 3 bits) correspond respectively to the switch SW 4.

このような制御信号出力部は、対応するデータレジスタのビット値に応じてスイッチSWに制御信号を出力する。例えば、制御信号出力部は、データレジスタのビット値が”1”であればスイッチSWをオン、ビット値が”0”であればスイッチSWをオフするようにスイッチSWに制御信号を出力する。例えば、デジタルコードが、”1010”であれば、データレジスタも”1010”になり、第1ビットおよび第3ビットそれぞれに関係付けられた各制御信号出力部からはスイッチSWをオンにする制御信号が出力され、第0ビットおよび第2ビットそれぞれに関係付けられた各制御信号出力部からはスイッチSWをオフにする制御信号が出力される。その結果、スイッチSW,SWはオン、スイッチSW,SWはオフになる。なお、本実施形態では、制御部4から電流調整部23には制御信号が個別に出力されるが、信号処理部5には、実施形態1と同様にデジタルコードを示すデジタル信号が出力される。 Such a control signal output unit outputs a control signal to the switch SW in accordance with the bit value of the corresponding data register. For example, the control signal output unit outputs a control signal to the switch SW so that the switch SW is turned on when the bit value of the data register is “1” and the switch SW is turned off when the bit value is “0”. For example, if the digital code is “1010”, the data register is also “1010”, and the control signal for turning on the switch SW from each control signal output unit associated with each of the first bit and the third bit. Is output, and a control signal for turning off the switch SW is output from each control signal output unit associated with the 0th bit and the 2nd bit. As a result, the switches SW 2 and SW 4 are turned on and the switches SW 1 and SW 3 are turned off. In the present embodiment, control signals are individually output from the control unit 4 to the current adjusting unit 23, but a digital signal indicating a digital code is output to the signal processing unit 5 as in the first embodiment. .

以上述べた本実施形態の近接センサによれば、スイッチ制御部231の構成を省略することができ、データレジスタのビット値によって直接的に発振回路部2の負性コンダクタンスの値を変更することが可能になるから、ハードウェア構成を簡単にすることができて、低コスト化を図ることができる。   According to the proximity sensor of the present embodiment described above, the configuration of the switch control unit 231 can be omitted, and the value of the negative conductance of the oscillation circuit unit 2 can be directly changed by the bit value of the data register. Therefore, the hardware configuration can be simplified and the cost can be reduced.

なお、本実施形態の近接センサのその他の効果については実施形態2と同様であるから説明を省略する。また、本実施形態の電流調整部23および制御部4の構成は、実施形態2〜5にも適用することができる。   The other effects of the proximity sensor according to the present embodiment are the same as those of the second embodiment, and a description thereof will be omitted. Moreover, the structure of the current adjustment part 23 and the control part 4 of this embodiment is applicable also to Embodiment 2-5.

(実施形態7)
本実施形態の近接センサは、図6に示すように、発振回路部2の構成が実施形態1と異なっており、その他の構成については実施形態1と同様であるから、同様の構成については同一の符号を付して説明を省略する。
(Embodiment 7)
As shown in FIG. 6, the proximity sensor of the present embodiment is different from that of the first embodiment in the configuration of the oscillation circuit unit 2 and the other configurations are the same as those in the first embodiment. The description is abbreviate | omitted and attached | subjected.

本実施形態における発振回路部2は、バイアス回路20と、レベルシフト回路21と、電流調整部23と、カレントミラー回路部24とを有している。なお、バイアス回路20とレベルシフト回路21とについては実施形態1と同様のものであるから説明を省略する。   The oscillation circuit unit 2 in this embodiment includes a bias circuit 20, a level shift circuit 21, a current adjustment unit 23, and a current mirror circuit unit 24. Since the bias circuit 20 and the level shift circuit 21 are the same as those in the first embodiment, description thereof is omitted.

カレントミラー回路部24は、実施形態1のカレントミラー回路部23とは異なる構成のものであって、電流調整部23の出力電流Ioを基準電流とする入力側トランジスタITrおよび基準電流に比例した大きさのミラー電流Imよりなる帰還電流Ifbを基準電源VccからLC共振回路部1に供給させる出力側トランジスタOTrとで構成される。入力側トランジスタITrと、出力側トランジスタOTrとはいずれも同じエミッタサイズのpnp形のトランジスタよりなる。 The current mirror circuit 24, be of a different configuration from the current mirror circuit portion 23 0 of the embodiment 1, it is proportional to the output current Io of the current controller 23 to the input side transistor ITr and the reference current to the reference current The output side transistor OTr is configured to supply a feedback current Ifb including a mirror current Im having a magnitude from the reference power source Vcc to the LC resonance circuit unit 1. The input side transistor ITr and the output side transistor OTr are both pnp transistors having the same emitter size.

入力側トランジスタITrのエミッタは基準電源Vccに接続され、入力側トランジスタITrのコレクタとベースとは相互に接続される。一方、出力側トランジスタOTrのエミッタは基準電源Vccに接続され、コレクタはトランジスタ210のエミッタとコンデンサ11との間に接続される。また、出力側トランジスタOTrのベースは、入力側トランジスタITrのベースに接続される。   The emitter of the input side transistor ITr is connected to the reference power source Vcc, and the collector and base of the input side transistor ITr are connected to each other. On the other hand, the emitter of the output side transistor OTr is connected to the reference power supply Vcc, and the collector is connected between the emitter of the transistor 210 and the capacitor 11. Further, the base of the output side transistor OTr is connected to the base of the input side transistor ITr.

このカレントミラー回路部24では、電流調整部23の出力電流Ioが基準電流として入力側トランジスタITrに与えられ、出力側トランジスタOTrにより、基準電流に比例した大きさのミラー電流Imが基準電源VccからLC共振回路部1に供給される。ここで、入力側トランジスタITrと、出力側トランジスタOTrとはエミッタサイズが同じにしてあり、これによってミラー比を1としているから、ミラー電流Imは出力電流Ioに等しい。   In the current mirror circuit unit 24, the output current Io of the current adjusting unit 23 is supplied to the input side transistor ITr as a reference current, and the output side transistor OTr generates a mirror current Im having a magnitude proportional to the reference current from the reference power source Vcc. The LC resonance circuit unit 1 is supplied. Here, the input-side transistor ITr and the output-side transistor OTr have the same emitter size, so that the mirror ratio is set to 1. Therefore, the mirror current Im is equal to the output current Io.

本実施形態における電流調整部23は、実施形態1とは異なり、LC共振回路部1の発振電圧に応じた増幅電流Ibを基準電源Vccから入力側トランジスタITrに供給させる複数(図示例では4つ)の増幅回路232aを有する増幅部232を備えたものである。   Unlike the first embodiment, the current adjustment unit 23 in the present embodiment supplies a plurality of (four in the illustrated example) the amplified current Ib corresponding to the oscillation voltage of the LC resonance circuit unit 1 from the reference power supply Vcc to the input side transistor ITr. The amplifying unit 232 having the amplifying circuit 232a.

増幅回路232aは、npn形のトランジスタよりなる増幅用トランジスタBTrを有する。増幅用トランジスタBTrのコレクタは入力側トランジスタITrのコレクタに接続される。また、増幅用トランジスタBTrのベースはレベルシフト回路21のトランジスタ210のベースに接続される。したがって、増幅用トランジスタBTrのベースには、レベルシフト回路21によりレベルシフトされたトランジスタ210のエミッタの電位、すなわちレベルシフト回路21により生成されたレベルシフト電圧が入力される。   The amplifier circuit 232a includes an amplifying transistor BTr made of an npn transistor. The collector of the amplifying transistor BTr is connected to the collector of the input side transistor ITr. The base of the amplifying transistor BTr is connected to the base of the transistor 210 of the level shift circuit 21. Therefore, the potential of the emitter of the transistor 210 level-shifted by the level shift circuit 21, that is, the level shift voltage generated by the level shift circuit 21 is input to the base of the amplifying transistor BTr.

ここで、レベルシフト回路21は、増幅用トランジスタBTrのベース−エミッタ間電圧の分だけ発振電圧をレベルシフトするように構成されており、これによって、増幅用トランジスタBTrのエミッタとグラウンドとの間に、発振の正の半サイクルのみ、LC共振回路部1の発振電圧に等しい電圧が印加されるようにしている。   Here, the level shift circuit 21 is configured to level shift the oscillation voltage by the base-emitter voltage of the amplifying transistor BTr, and thereby, between the emitter of the amplifying transistor BTr and the ground. A voltage equal to the oscillation voltage of the LC resonance circuit unit 1 is applied only during the positive half cycle of oscillation.

一方、増幅用トランジスタBTrのエミッタはエミッタ電位設定用(増幅電流制限用)の抵抗器である抵抗部Rbを介してグラウンド(グランド)に接続され(接地され)ている。すなわち、増幅回路232aは、所謂エミッタフォロワ回路である。   On the other hand, the emitter of the amplifying transistor BTr is connected (grounded) to a ground (ground) via a resistor Rb which is a resistor for setting an emitter potential (for limiting an amplification current). That is, the amplifier circuit 232a is a so-called emitter follower circuit.

したがって、増幅回路232aからは、LC共振回路部1の発振電圧に応じた電流である増幅電流Ibが出力される。本実施形態では、増幅用トランジスタBTrおよび抵抗部Rbはいずれも同じものを用いており、これによって各増幅回路232aにおける増幅電流Ibは全て等しい。なお、以下の説明では、複数の増幅回路232aを区別するために必要に応じて符号232a〜232aで表す。また、増幅回路232a〜232aそれぞれに対応する増幅電流Ibを必要に応じて符号Ib〜Ibで、増幅用トランジスタBTrを必要に応じて符号BTr〜BTrで、抵抗部RbをRb〜Rbでそれぞれ表す。 Therefore, the amplification circuit 232a outputs an amplification current Ib that is a current corresponding to the oscillation voltage of the LC resonance circuit unit 1. In the present embodiment, the same transistors are used for the amplifying transistor BTr and the resistor Rb, and as a result, the amplified currents Ib in the respective amplifier circuits 232a are all equal. In the following description, a plurality of amplifier circuits 232a are denoted by reference numerals 232a 1 to 232a 4 as necessary in order to distinguish them. Furthermore, by reference numeral Ib 1 ~Ib 4 if necessary amplified current Ib corresponding to the amplification circuit 232a 1 ~232a 4 respectively, by reference numerals BTr 1 ~BTr 4 optionally amplifying transistor BTr, the resistance portion Rb Rb 1 to Rb 4 represent each.

また、電流調整部23は、増幅回路232aの抵抗部Rbそれぞれと基準電位との間にそれぞれ挿入された複数のスイッチSWと、複数のスイッチSWを制御するスイッチ制御部231とを有する。   In addition, the current adjustment unit 23 includes a plurality of switches SW inserted between the resistor units Rb of the amplifier circuit 232a and the reference potential, and a switch control unit 231 that controls the plurality of switches SW.

スイッチSWは、例えば半導体スイッチング素子よりなり、オン時に抵抗部Rbと基準電位とを接続し、オフ時に抵抗部Rbと基準電位とを非接続とする。そのため、スイッチSWがオフであるときには、増幅電流Ibが入力側トランジスタITrに供給されない。つまりスイッチSWの制御状態(オン・オフ)によって、各増幅回路232aの増幅電流Ibが入力側トランジスタITrに供給されるか否かが決まる。なお、以下の説明では、増幅回路232a〜232aそれぞれに対応するスイッチSWを必要に応じて符号SW〜SWで表す。 The switch SW is made of, for example, a semiconductor switching element, and connects the resistor Rb and the reference potential when turned on, and disconnects the resistor Rb and the reference potential when turned off. Therefore, when the switch SW is off, the amplified current Ib is not supplied to the input side transistor ITr. That is, whether or not the amplified current Ib of each amplifier circuit 232a is supplied to the input-side transistor ITr is determined by the control state (ON / OFF) of the switch SW. In the following description, switches SW 1 to SW 4 corresponding to the amplifier circuits 232a 1 to 232a 4 are denoted by symbols SW 1 to SW 4 as necessary.

スイッチ制御部231は、例えば所定のプログラムを実行するマイクロコンピュータやロジック回路などにより構成される。上記のデジタルコードは、例えば4ビットのストレート・バイナリコードであり、スイッチSWは、デジタルコードの各ビットと一対一で関係付けられている。例えば、デジタルコードの最下位ビットである第0ビット(ビット番号が0であるビット)はスイッチSWに、第1ビット(ビット番号が1であるビット)はスイッチSWに、第2ビット(ビット番号が2であるビット)はスイッチSWに、最上位ビットである第3ビット(ビット番号が3であるビット)はスイッチSWにそれぞれ対応する。そして、スイッチ制御部231は、デジタルコードのビットの値が”0”であれば、スイッチSWをオフ、”1”であればスイッチSWをオンにする。 The switch control unit 231 is configured by, for example, a microcomputer or a logic circuit that executes a predetermined program. The digital code is, for example, a 4-bit straight binary code, and the switch SW is associated with each bit of the digital code on a one-to-one basis. For example, the 0th bit is the least significant bit of the digital code (bit number is 0 bits) to the switch SW 1, the first bit (bit number is 1 bit) in the switch SW 2, the second bit ( in which bits) switch SW 3 bit number is 2, the third bit is the most significant bit (bit number is 3 bits) correspond respectively to the switch SW 4. The switch control unit 231 turns off the switch SW if the bit value of the digital code is “0”, and turns on the switch SW if the bit value is “1”.

例えば、デジタルコードが、”1010”であれば、スイッチ制御部231は、スイッチSW,SWをオン、スイッチSW,SWをオフとする。この場合、入力側トランジスタITrには、増幅電流Ib,Ibが供給されるから、電流調整部23の出力電流Ioは、増幅電流Ibと増幅電流Ibとを加算した電流となる。 For example, if the digital code is “1010”, the switch control unit 231 turns on the switches SW 2 and SW 4 and turns off the switches SW 1 and SW 3 . In this case, since the amplified currents Ib 2 and Ib 4 are supplied to the input side transistor ITr, the output current Io of the current adjusting unit 23 is a current obtained by adding the amplified current Ib 2 and the amplified current Ib 4 .

つまり、増幅部232は、基準電源Vccから入力側トランジスタITrに供給される増幅電流Ibを加算して出力電流Ioを作成するから、出力電流Ioは、次式(6)で表すことができる。なお、δは、スイッチSWのオン・オフを示す関数であり、スイッチSWがオンであればδ=1、スイッチSWがオフであればδ=0とする。 In other words, the amplifier 232 adds the amplified current Ib supplied from the reference power supply Vcc to the input side transistor ITr to create the output current Io. Therefore, the output current Io can be expressed by the following equation (6). Incidentally, [delta] n is a function indicating the ON-OFF switch SW n, if the switch SW n is on [delta] n = 1, the switch SW n is a [delta] n = 0 if off.

Figure 0004981745
Figure 0004981745

本実施形態では、増幅電流Ibは全て等しいため、出力電流Ioは、オンになっているスイッチSWの数によって決定される。したがって、本実施形態における出力電流Ioは、0、Ib、2Ib、3Ib、4Ibの5つの値をとり得る。   In the present embodiment, since the amplified currents Ib are all equal, the output current Io is determined by the number of switches SW that are turned on. Therefore, the output current Io in this embodiment can take five values of 0, Ib, 2Ib, 3Ib, and 4Ib.

このように発振回路部2は、制御部4で設定されたデジタルコード(電流調整部23に入力されたデジタル信号のデジタルコード)に対応した出力電流Ioを出力するD/Aコンバータよりなる電流調整部23と、出力電流Ioに等しいミラー電流Imを帰還電流IfbとしてLC共振回路部1に供給するカレントミラー回路部24とを有しており、本実施形態においては、Ifb=Ioが成立する。   Thus, the oscillation circuit unit 2 is a current adjustment composed of a D / A converter that outputs the output current Io corresponding to the digital code set by the control unit 4 (the digital code of the digital signal input to the current adjustment unit 23). Section 23 and a current mirror circuit section 24 that supplies a mirror current Im equal to the output current Io to the LC resonance circuit section 1 as a feedback current Ifb. In this embodiment, Ifb = Io is established.

ここで、増幅用トランジスタBTrのエミッタとグラウンドとの間には、発振の正の半サイクルのみ、LC共振回路部1の発振電圧に等しい電圧が印加されるから、LC共振回路部1の発振振幅をVT、抵抗部Rbの抵抗値をRとすると、各増幅回路232aの増幅電流Ibは次式(7)で表すことができる。 Here, since the voltage equal to the oscillation voltage of the LC resonance circuit unit 1 is applied between the emitter of the amplifying transistor BTr and the ground only during the positive half cycle of oscillation, the oscillation amplitude of the LC resonance circuit unit 1 VT, and the resistance value of the resistance part Rb n is R n , the amplified current Ib n of each amplifier circuit 232a can be expressed by the following equation (7).

Figure 0004981745
Figure 0004981745

そうすると、発振回路部2の負性コンダクタンスGoscは、上記式(3)および式(6),(7)により、次式(8)で表すことができる。   Then, the negative conductance Gosc of the oscillation circuit unit 2 can be expressed by the following formula (8) by the above formula (3) and formulas (6) and (7).

Figure 0004981745
Figure 0004981745

上記の式(8)より明らかなように、電流調整部23のスイッチSWのオン・オフ、すなわち電流調整部23に入力するデジタルコードによって、発振回路部2の負性コンダクタンスGoscの値を調整することができる。   As is clear from the above equation (8), the value of the negative conductance Gosc of the oscillation circuit unit 2 is adjusted by turning on / off the switch SW of the current adjustment unit 23, that is, by a digital code input to the current adjustment unit 23. be able to.

ここで、LC共振回路部1が発振する条件は、実施形態1で述べたように、負性コンダクタンスGoscと検知コイル10のコンダクタンスGcoilとが、Gcoil≦|Gosc|の関係にあるときであり、上述の臨界値は、−Gcoilである。   Here, the condition that the LC resonance circuit unit 1 oscillates is when the negative conductance Gosc and the conductance Gcoil of the detection coil 10 have a relationship of Gcoil ≦ | Gosc |, as described in the first embodiment. The critical value described above is -Gcoil.

そのため、負性コンダクタンスGoscが臨界値である場合には、コンダクタンスGcoilは次式(9)で表すことができる。   Therefore, when the negative conductance Gosc is a critical value, the conductance Gcoil can be expressed by the following equation (9).

Figure 0004981745
Figure 0004981745

したがって、本実施形態においても、実施形態1と同様に、制御部4で設定されたデジタルコードを用いて検知コイル10と被検知体との距離を検出することができる。なお、本実施形態の近接センサの動作は実施形態1と同様であるから、説明を省略する。   Therefore, also in the present embodiment, the distance between the detection coil 10 and the detected object can be detected using the digital code set by the control unit 4 as in the first embodiment. Note that the operation of the proximity sensor of the present embodiment is the same as that of the first embodiment, and thus the description thereof is omitted.

以上述べた本実施形態の近接センサによれば、実施形態1と同様に、被検知体の存在検知に加え、被検知体との距離も検知できる。また、デジタルコードを用いるために、各種通信やPWMなどに使用するデジタル信号を容易に得ることができる(すなわちデジタル信号の親和性が高くなる)。しかも、デジタル信号を取り扱う回路は微細パターンでの小型化が容易であるため、制御部や発振回路部などをIC化する際に低コスト化を図ることができ、またセンサ特性にICばらつきによる影響が生じてしまうことを抑制することができる。また、信号処理部5は、制御部4からデジタルコードを取得し、当該デジタルコードを用いて検知信号を作成するので、例えば、負性コンダクタンスGoscの大きさを得るために帰還電流Ifbなどを利用する場合とは異なり、帰還電流Ifbの大きさを検出する検出回路などが必要なくなるから、回路構成を簡素化することができて、小型化、製造コストの低減などが図れる。また、発振回路部2と、モニタ部3と、制御部4と、信号処理部5とはモノリシックICとして一体化されているので、発振回路部2と、モニタ部3と、制御部4と、信号処理部5とをそれぞれ別のICなどにより構成する場合に比べれば、小型化が図れるとともに低コスト化が図れ、さらに耐ノイズ性能を向上できる。   According to the proximity sensor of the present embodiment described above, in addition to the detection of the presence of the detected object, the distance to the detected object can also be detected as in the first embodiment. In addition, since a digital code is used, a digital signal used for various communications and PWM can be easily obtained (that is, the affinity of the digital signal is increased). In addition, since a circuit that handles digital signals can be easily miniaturized with a fine pattern, it is possible to reduce the cost when the control unit, the oscillation circuit unit, and the like are integrated into an IC. Can be prevented from occurring. Further, since the signal processing unit 5 acquires a digital code from the control unit 4 and creates a detection signal using the digital code, for example, the feedback current Ifb is used to obtain the magnitude of the negative conductance Gosc. Unlike the case, the detection circuit for detecting the magnitude of the feedback current Ifb is not necessary, so that the circuit configuration can be simplified, and the size and the manufacturing cost can be reduced. Since the oscillation circuit unit 2, the monitor unit 3, the control unit 4, and the signal processing unit 5 are integrated as a monolithic IC, the oscillation circuit unit 2, the monitor unit 3, the control unit 4, Compared with the case where the signal processing unit 5 is configured by separate ICs, the size can be reduced, the cost can be reduced, and the noise resistance can be improved.

特に、本実施形態における発振回路部2は、電流調整部23の出力電流Ioを基準電流とする入力側トランジスタITrと、基準電流に比例した大きさのミラー電流Imよりなる帰還電流Ifbを基準電源VccからLC共振回路部1に供給させる出力側トランジスタOTrとを有したカレントミラー回路部24を有するとともに、LC共振回路部1の発振電圧に応じた増幅電流Ibを基準電源Vccから入力側トランジスタITrに供給させる複数の増幅回路232aを有し、増幅電流Ibを加算して出力電流Ioを作成する増幅部232と、増幅電流Ibを入力側トランジスタITrに供給するか否かを決定するスイッチSWと、入力されたデジタル信号のデジタルコードに応じてスイッチSWを制御するスイッチ制御部231とを備えた電流調整部23を有してなるので、増幅回路とD/Aコンバータとを別個に設ける場合に比べれば、回路規模を小型化することができ、低コスト化が図れる。   In particular, the oscillation circuit unit 2 according to the present embodiment uses an input-side transistor ITr that uses the output current Io of the current adjusting unit 23 as a reference current and a feedback current Ifb that includes a mirror current Im that is proportional to the reference current. A current mirror circuit unit 24 having an output-side transistor OTr supplied from the Vcc to the LC resonance circuit unit 1 and an amplified current Ib corresponding to the oscillation voltage of the LC resonance circuit unit 1 from the reference power source Vcc to the input-side transistor ITr A plurality of amplifier circuits 232a to be supplied to each other, an amplifier section 232 that adds the amplified current Ib to create an output current Io, and a switch SW that determines whether or not the amplified current Ib is supplied to the input-side transistor ITr. A switch control unit 231 that controls the switch SW in accordance with the digital code of the input digital signal. Since a current controller 23, compared to the case where separately provided an amplifier circuit and a D / A converter, it is possible to miniaturize the circuit scale, cost reduction can be achieved.

また、スイッチSWは、増幅用トランジスタBTr(のエミッタ)と基準電位との間に挿入されているので、増幅電流Ibを小さくする際(スイッチSWをオフにした際)には、増幅電流Ibが遮断され、増幅用トランジスタBTrには増幅電流Ibが流れないから、低消費電力化を図ることができる。なお、スイッチSWは、増幅用トランジスタBTr(のベース)とレベルシフト回路21のトランジスタ210(のベース)との間に挿入するようにしてもよく、このようにした場合であっても、増幅電流Ibを小さくする際(スイッチSWをオフにした際)には、増幅用トランジスタBTrに増幅電流Ibが流れなくなるから、低消費電力化を図ることができる。すなわち、スイッチSWは、基準電位と他方の被制御電極(本実施形態の場合はエミッタ)との間、あるいはレベルシフト回路21の出力端と制御電極(本実施形態の場合はベース)との間に挿入されていればよい。   Further, since the switch SW is inserted between the amplification transistor BTr (the emitter thereof) and the reference potential, when the amplification current Ib is reduced (when the switch SW is turned off), the amplification current Ib is Since the amplification current Ib does not flow through the amplification transistor BTr, the power consumption can be reduced. The switch SW may be inserted between the amplifying transistor BTr (base) and the transistor 210 (base) of the level shift circuit 21. Even in this case, the amplified current When Ib is reduced (when the switch SW is turned off), the amplified current Ib does not flow through the amplifying transistor BTr, so that power consumption can be reduced. That is, the switch SW is between the reference potential and the other controlled electrode (emitter in this embodiment) or between the output terminal of the level shift circuit 21 and the control electrode (base in this embodiment). As long as it is inserted in

なお、増幅回路232aでは、エミッタフォロワ回路の代わりに、MOSFETを利用したソースフォロワ(ソースホロワ)回路を使用することも可能であり、この場合、ドレインが上記一方の被制御電極、ソースが上記他方の被制御電極、ゲートが上記制御電極として採用される。   In the amplifier circuit 232a, a source follower (source follower) circuit using a MOSFET can be used instead of the emitter follower circuit. In this case, the drain is the one controlled electrode, and the source is the other controlled electrode. A controlled electrode and a gate are employed as the control electrode.

なお、本実施形態における発振回路部2や、モニタ部3の回路構成はあくまでも一例であって、本発明の趣旨を逸脱しない程度に変更することができる。例えば、発振回路部2の増幅回路232aおよびスイッチSWの数は、図示例の4つに限定されず、例えば、8,16,32などの4より大きい数、あるいは2,3などの4より小さい数であってもよい。当然ながら増幅回路232aおよびスイッチSWの数が多いほど出力電流Ioの変化範囲や、変化幅を細かく設定することができるから、被検知体と検知コイル10との距離の分解能(位置精度)を向上することができる。   Note that the circuit configurations of the oscillation circuit unit 2 and the monitor unit 3 in the present embodiment are merely examples, and can be changed without departing from the gist of the present invention. For example, the number of amplifier circuits 232a and switches SW in the oscillation circuit unit 2 is not limited to four in the illustrated example, and is, for example, a number greater than 4, such as 8, 16, 32, or less than 4, such as 2, 3. It may be a number. Of course, as the number of amplifier circuits 232a and switches SW increases, the change range and change width of the output current Io can be set more finely. Therefore, the resolution (positional accuracy) of the distance between the detected object and the detection coil 10 is improved. can do.

(実施形態8)
本実施形態の近接センサは、図7に示すように、発振回路部2の電流調整部23の構成が実施形態7と異なっており、その他の構成は実施形態7と同様であるから、同様の構成については実施形態7と同一の符号を付して説明を省略する。
(Embodiment 8)
As shown in FIG. 7, the proximity sensor of the present embodiment is different from the seventh embodiment in the configuration of the current adjusting unit 23 of the oscillation circuit unit 2, and the other configurations are the same as those in the seventh embodiment. About the structure, the same code | symbol as Embodiment 7 is attached | subjected and description is abbreviate | omitted.

本実施形態における電流調整部23では、増幅用トランジスタBTrのコレクタそれぞれと入力側トランジスタITrのコレクタとの間に逆流阻止用のダイオードDが挿入されている。また、スイッチSWは、上記実施形態7では増幅用トランジスタBTrのエミッタと基準電位との間に挿入されていたが、本実施形態では増幅用トランジスタBTrのコレクタとダイオードDとの接続点と基準電源Vcc電位との間に挿入されている。なお、ダイオードDのアノードは入力側トランジスタITrにカソードは増幅用トランジスタBTrに接続されている。   In the current adjustment unit 23 in the present embodiment, a backflow prevention diode D is inserted between each collector of the amplification transistor BTr and the collector of the input side transistor ITr. The switch SW is inserted between the emitter of the amplifying transistor BTr and the reference potential in the seventh embodiment, but in this embodiment, the connection point between the collector of the amplifying transistor BTr and the diode D and the reference power source. It is inserted between the Vcc potential. The anode of the diode D is connected to the input side transistor ITr and the cathode is connected to the amplifying transistor BTr.

上記構成の本実施形態における電流調整部23では、スイッチSWがオンであれば、増幅用トランジスタBTrのコレクタが基準電源Vccに接続されて、増幅電流Ibは入力側トランジスタITrに流れない。一方、スイッチSWがオフであれば、増幅用トランジスタBTrのコレクタと基準電源Vccとの間は遮断されて、増幅電流Ibは入力側トランジスタITrのエミッタ−コレクタ間に流れる。   In the current adjusting unit 23 of the present embodiment configured as described above, if the switch SW is on, the collector of the amplifying transistor BTr is connected to the reference power source Vcc, and the amplified current Ib does not flow to the input side transistor ITr. On the other hand, if the switch SW is off, the collector of the amplifying transistor BTr and the reference power source Vcc are cut off, and the amplified current Ib flows between the emitter and collector of the input side transistor ITr.

つまり、本実施形態における電流調整部23は、増幅電流Ibを入力側トランジスタITrに供給する供給路(ダイオードDを通る電路)と、増幅電流Ibを入力側トランジスタITrに供給しない非供給路(スイッチSWを通る電路)とを有する。そして、供給路と非供給路とのいずれに増幅電流Ibが流れるかは、スイッチSWがオンであるかオフであるかによって決定される(すなわち、スイッチSWにより選択される)。   That is, the current adjusting unit 23 in the present embodiment has a supply path (electric path passing through the diode D) for supplying the amplified current Ib to the input-side transistor ITr and a non-supply path (switch) that does not supply the amplified current Ib to the input-side transistor ITr. Electric circuit passing through SW). Whether the amplified current Ib flows through the supply path or the non-supply path is determined by whether the switch SW is on or off (that is, selected by the switch SW).

本実施形態の近接センサによれば、供給路と非供給路との切り換えによって出力電流Ioが調整されるので、増幅用トランジスタBTrにはスイッチSWの制御状態(オン・オフ)に関わらず増幅電流Ibが流れる。そのため、本実施形態の近接センサによれば、実施形態7のようにスイッチSWがオンであるときだけ、増幅用トランジスタBTrに増幅電流Ibが流れるものとは異なり、増幅電流Ibの供給開始や供給停止によって、増幅用トランジスタBTrにおいて電流変動が生じることがないから、このような電流変動によって、入力側トランジスタITrの基準電流が変動してしまうことを防止することができ、安定した動作が可能になる。本実施形態の近接センサのその他の効果については実施形態7と同様であるから説明を省略する。   According to the proximity sensor of this embodiment, since the output current Io is adjusted by switching between the supply path and the non-supply path, the amplification transistor BTr has an amplification current regardless of the control state (ON / OFF) of the switch SW. Ib flows. Therefore, according to the proximity sensor of the present embodiment, unlike when the switch SW is on as in the seventh embodiment, the supply of the amplified current Ib is started or supplied unlike the case where the amplified current Ib flows through the amplification transistor BTr. Since the current fluctuation does not occur in the amplifying transistor BTr due to the stop, it is possible to prevent the reference current of the input side transistor ITr from fluctuating due to such a current fluctuation, and a stable operation is possible. Become. The other effects of the proximity sensor according to the present embodiment are the same as those of the seventh embodiment, and thus description thereof is omitted.

なお、増幅電流Ibを入力側トランジスタITrに供給する供給路と、増幅電流Ibを入力側トランジスタITrに供給しない非供給路との構成は図示例のものに限定されず、使用形態などに応じて適宜変更することができる。   The configuration of the supply path for supplying the amplified current Ib to the input-side transistor ITr and the non-supply path for not supplying the amplified current Ib to the input-side transistor ITr are not limited to those in the illustrated example. It can be changed as appropriate.

(実施形態9)
本実施形態の近接センサは、発振回路部2の電流調整部23、特に増幅部232の構成が実施形態7と異なっており、その他の構成は実施形態7と同様であるから、同様の構成については実施形態7と同一の符号を付して図示および説明を省略する。
(Embodiment 9)
The proximity sensor of the present embodiment is different from the seventh embodiment in the configuration of the current adjustment unit 23 of the oscillation circuit unit 2, particularly the amplification unit 232, and the other configurations are the same as those in the seventh embodiment. Are denoted by the same reference numerals as those in the seventh embodiment, and illustration and description thereof are omitted.

本実施形態における増幅部232は、増幅回路232aの抵抗部Rbの抵抗値がいずれも異なっている。さらに詳しく説明すると、抵抗部Rbの抵抗値が最も大きく、抵抗部Rb〜Rbそれぞれの抵抗値は抵抗部Rbの抵抗値の1/2倍、1/4倍、1/8倍である。すなわち、Rb:Rb:Rb:Rb=8:4:2:1である。 In the present embodiment, the amplifying unit 232 is different in resistance value of the resistance unit Rb of the amplifying circuit 232a. More specifically, the resistance value of the resistance part Rb 1 is the largest, and the resistance values of the resistance parts Rb 2 to Rb 4 are 1/2 times, 1/4 times, and 1/8 times the resistance value of the resistance part Rb 1. It is. That is, Rb 1 : Rb 2 : Rb 3 : Rb 4 = 8: 4: 2: 1.

そのため、本実施形態における増幅部232では、増幅電流Ibは2×Ib、増幅電流Ib=4×Ib、増幅電流Ib=8×Ibになる。 Therefore, in the amplification unit 232 in the present embodiment, the amplification current Ib 2 is 2 × Ib 1 , the amplification current Ib 3 = 4 × Ib 1 , and the amplification current Ib 4 = 8 × Ib 1 .

本実施形態における増幅部232では、ビット番号が0であるビットに関係付けられたスイッチSWにより入力側トランジスタITrに供給するか否かが決定される増幅電流(スイッチSWに対応する増幅電流)Ibを基準増幅電流とすると、ビット番号が0以外、例えばビット番号1であるビットに関係付けられたスイッチSWに対応する増幅電流Ibと基準増幅電流との比(=Ib/Ib)は、スイッチSWに対応するビットのビット番号(すなわち1)を指数として2を累乗した値(=2)である。同様に、スイッチSW,SWそれぞれに対応する増幅電流Ib,Ibと基準増幅電流との比(=Ib/Ib、あるいはIb/Ib)は、スイッチSW,SWに対応するビットのビット番号(すなわち2,3)を指数として2を累乗した値(=4,8)である。 In the amplifying unit 232 according to the present embodiment, an amplification current (amplification current corresponding to the switch SW 1) is determined by the switch SW 1 associated with the bit whose bit number is 0 to be supplied to the input-side transistor ITr. ) If Ib 1 is the reference amplification current, the ratio of the amplification current Ib 2 corresponding to the switch SW 2 associated with the bit having a bit number other than 0, for example, the bit number 1 (= Ib 2 / Ib 1 ) is a value (= 2) obtained by raising the bit number (that is, 1) of the bit corresponding to the switch SW 2 to an exponent of 2. Similarly, the switch SW 3, SW 4 ratio of the amplified current Ib 3, Ib 4 and the reference amplifier current corresponding to each (= Ib 3 / Ib 1 or Ib 4 / Ib 1,), the switch SW 3, SW 4 This is a value (= 4, 8) obtained by raising 2 to the bit number (that is, 2, 3) of the bit corresponding to.

例えば、デジタルコードが”0001”であればIo=1×Ibになり、”0101”であればIo=4×Ib+Ib=5×Ibになる。デジタルコードがストレート・バイナリコードであれば、デジタルコードにより表される十進数の値が、出力電流Ioと基準増幅電流との比(=Io/Ib)に等しくなる。したがって、デジタルコードが4ビットであれば、出力電流Ioを16種類の値(0含む)の中から選択することができる。 For example, if the digital code is “0001”, Io = 1 × Ib 1 , and if “0101”, Io = 4 × Ib 1 + Ib 1 = 5 × Ib 1 . If the digital code is a straight binary code, the decimal value represented by the digital code is equal to the ratio (= Io / Ib 1 ) between the output current Io and the reference amplification current. Therefore, if the digital code is 4 bits, the output current Io can be selected from 16 types of values (including 0).

以上述べた本実施形態の近接センサによれば、増幅回路232aの数が同じであれば、実施形態7のように増幅回路232aの抵抗部Rbの抵抗値がいずれも同じ(増幅回路232aの増幅電流Ibの大きさが全て同じ)である場合に比べて、出力可能な出力電流Ioの値を増やすことができるから、出力電流Ioを細かく設定することができるようになって、被検知体と検知コイル10との距離の分解能(位置精度)を向上することができる。   According to the proximity sensor of the present embodiment described above, if the number of amplifier circuits 232a is the same, the resistance values of the resistance parts Rb of the amplifier circuit 232a are the same as in the seventh embodiment (the amplification of the amplifier circuit 232a). Since the value of the output current Io that can be output can be increased compared to the case where the current Ib has the same magnitude), the output current Io can be set finely, The resolution (positional accuracy) of the distance from the detection coil 10 can be improved.

特に、ビット番号が0以外であるビットに関係付けられたスイッチSWにより入力側トランジスタITrに供給するか否かが決定される増幅電流Ibと基準増幅電流との比は、スイッチSWに対応するビットのビット番号を指数として2を累乗した値であるので、ストレート・バイナリコードなどの2進数のデジタルコードによって出力電流Ioを設定でき、スイッチSWの数を少なくしながらも、被検知体と検知コイル10との距離の分解能(位置精度)を向上できる。 In particular, the ratio of the amplified current Ib n to which it is determined whether or not to be supplied to the input-side transistor ITr by the switch SW related to the bit whose bit number is other than 0 corresponds to the switch SW. Since the bit number of the bit is an exponential value of 2, the output current Io can be set by a binary digital code such as a straight binary code, and the number of switches SW n can be reduced, The resolution (positional accuracy) of the distance to the detection coil 10 can be improved.

なお、本実施形態の近接センサのその他の効果については実施形態7と同様であるから説明を省略する。   Note that the other effects of the proximity sensor of the present embodiment are the same as those of the seventh embodiment, and thus description thereof is omitted.

なお、上記の例では、増幅電流Ibと基準増幅電流との比をスイッチSWに関係付けられたビットのビット番号を指数として2を累乗した値としているが、必ずしも上記のように比を設定する必要はなく、要は、複数の抵抗部Rbのうちの少なくとも1つは、抵抗値が他と異なっていればよく、このようにすれば、抵抗部Rbの抵抗値がいずれも同じである場合よりも、分解能の向上を図ることが可能である。また、本実施形態における増幅部232の構成は実施形態8に適用することができる。 In the above example, the ratio between the amplified current Ib n and the reference amplified current is a value that is a power of 2 with the bit number of the bit associated with the switch SW n as an index. It is not necessary to set, and the point is that at least one of the plurality of resistance portions Rb only needs to have a different resistance value from the others, and in this way, the resistance values of the resistance portions Rb are all the same. It is possible to improve the resolution than in some cases. In addition, the configuration of the amplifying unit 232 in the present embodiment can be applied to the eighth embodiment.

(実施形態10)
本実施形態の近接センサは、図8に示すように、発振回路部2の電流調整部23、特に増幅部232の構成が実施形態9と異なっており、その他の構成は実施形態7と同様であるから、同様の構成については実施形態9と同一の符号を付して説明を省略する。
(Embodiment 10)
As shown in FIG. 8, the proximity sensor of the present embodiment is different from the ninth embodiment in the configuration of the current adjusting unit 23 of the oscillation circuit unit 2, particularly the amplifying unit 232, and the other configurations are the same as those in the seventh embodiment. Therefore, the same components as those in the ninth embodiment are denoted by the same reference numerals and description thereof is omitted.

本実施形態における増幅部232は、増幅回路232aを5つ備える。なお、以下の説明では、5つの増幅回路232aを区別するために必要に応じて符号232a〜232aで表し、増幅回路232aそれぞれに対応する増幅用トランジスタBTrを必要に応じてBTr〜BTrで表し、また抵抗部Rbを必要に応じて符号Rb〜Rbで表す。また、増幅回路232a〜232aそれぞれに対応する増幅電流Ibを必要に応じてIb〜Ibで表す。 The amplification unit 232 in the present embodiment includes five amplification circuits 232a. In the following description, in order to distinguish the five amplifier circuits 232a, they are denoted by reference numerals 232a 0 to 232a 4 as necessary, and amplification transistors BTr corresponding to the amplifier circuits 232a are respectively designated as BTr 0 to BTr. 4 , and the resistance portion Rb is denoted by symbols Rb 0 to Rb 4 as necessary. Further, represented by Ib 0 ~Ib 4 if necessary amplified current Ib corresponding to the amplification circuit 232a 0 ~232a 4 respectively.

図8に示すように、増幅部232の抵抗部Rb〜Rbそれぞれと基準電位との間には、それぞれスイッチSW〜SWが挿入されているが、抵抗部Rbと基準電位との間にはスイッチSWは挿入されていない。したがって、増幅電流Ibは、デジタルコードのビットの値に関係なく(スイッチSWの制御状態に関係なく)、入力側トランジスタITrに供給される。つまり、増幅回路232aは、オフセット用の増幅回路232aである。 As shown in FIG. 8, switches SW 1 to SW 4 are inserted between the resistance parts Rb 1 to Rb 4 of the amplification part 232 and the reference potential, respectively, but the resistance part Rb 0 and the reference potential are The switch SW is not inserted in between. Therefore, the amplified current Ib 0 is supplied to the input-side transistor ITr regardless of the bit value of the digital code (regardless of the control state of the switch SW). That is, the amplifier circuit 232a 0 is an offset amplifier circuit 232a.

また、上述した複数の抵抗部Rbは抵抗値がいずれも異なっており、抵抗部Rb〜Rb それぞれの抵抗値は抵抗部Rbの抵抗値の1/2倍、1/4倍、1/8倍としている。すなわち、Rb:Rb:Rb:Rb=8:4:2:1である。一方、抵抗部Rbの抵抗値は、抵抗部Rbの抵抗値の1/2に設定している。したがって、増幅電流Ib=2×Ib、増幅電流Ib=4×Ib、増幅電流Ib=8×Ib、増幅電流Ib=16×Ibである。ここで、増幅電流Ibを基準増幅電流とすると、増幅電流Ib〜Ibと基準増幅電流Ibとの比は、スイッチSW〜SWに対応するビットのビット番号を指数として2を累乗した値である。そのため、デジタルコードが”0001”であればIo=Ib+Ibになり、”0101”であればIo=Ib+5×Ibになる。したがって、本実施形態においても実施形態9と同様に、デジタルコードが4ビットであれば、出力電流Ioを16種類の値(0含む)の中から選択することができる。 Moreover, half of the plurality of resistor portions Rb are resistance values different from both, the resistance portion Rb 2 ~Rb 4 each resistance the resistance value of the resistance portion Rb 1 described above, 1/4-fold, 1 / 8 times. That is, Rb 1 : Rb 2 : Rb 3 : Rb 4 = 8: 4: 2: 1. On the other hand, the resistance value of the resistance part Rb 0 is set to ½ of the resistance value of the resistance part Rb 4 . Therefore, the amplified current Ib 2 = 2 × Ib 1 , the amplified current Ib 3 = 4 × Ib 1 , the amplified current Ib 4 = 8 × Ib 1 , and the amplified current Ib 0 = 16 × Ib 1 . Here, if the amplified current Ib 1 is a reference amplified current, the ratio of the amplified currents Ib 2 to Ib 4 and the reference amplified current Ib 1 is 2 with the bit number of the bit corresponding to the switches SW 2 to SW 4 as an index. This is a power value. Therefore, if the digital code is “0001”, Io = Ib 0 + Ib 1 and if “0101”, Io = Ib 0 + 5 × Ib 1 . Therefore, also in the present embodiment, as in the ninth embodiment, if the digital code is 4 bits, the output current Io can be selected from 16 types of values (including 0).

以上述べた本実施形態の近接センサによれば、増幅部232は、デジタルコードのビットの値に関係なく増幅電流Ibを基準電源Vccから入力側トランジスタITrに供給させるオフセット用の増幅回路232aを有しているので、出力電流Ioにオフセットを設けることができるから、オフセットを設けない場合に比べて、被検知体と検知コイル10との距離の分解能(位置精度)を向上することができる。 According to the proximity sensor of the present embodiment described above, the amplification unit 232 supplies the amplification current Ib 0 from the reference power supply Vcc to the input-side transistor ITr regardless of the bit value of the digital code, and the offset amplification circuit 232a 0. Since the output current Io can be offset, the resolution (positional accuracy) of the distance between the detected object and the detection coil 10 can be improved as compared with the case where no offset is provided. .

例えば、検知コイル10のコンダクタンスGcoilが400μs〜600μsの範囲で変化するときに、負性コンダクタンス|Gosc|に400μsのオフセットを設け、負性コンダクタンス|Gosc|の変化幅を0〜200μsとすれば、負性コンダクタンス|Gosc|の変化幅を0〜600μsとする場合に比べれば、デジタルコードのビット数を同じであるにも関わらず、被検知体と検知コイル10との距離の分解能(位置精度)を3倍ほど向上させることができる。   For example, when the conductance Gcoil of the detection coil 10 changes in the range of 400 μs to 600 μs, an offset of 400 μs is provided in the negative conductance | Gosc |, and the change width of the negative conductance | Gosc | is 0 to 200 μs. Compared with the case where the change width of the negative conductance | Gosc | is 0 to 600 μs, the resolution (positional accuracy) of the distance between the detected object and the detection coil 10 is the same even though the number of bits of the digital code is the same. Can be improved about 3 times.

なお、本実施形態の近接センサのその他の効果については実施形態9と同様であるから説明を省略する。また、上述したオフセット用の増幅回路232aは、実施形態7,8にも設けることができる。 Note that the other effects of the proximity sensor of the present embodiment are the same as those of the ninth embodiment, and a description thereof will be omitted. Further, the above-described offset amplifier circuit 232a 0 can also be provided in the seventh and eighth embodiments.

(実施形態11)
本実施形態の近接センサは、図9に示すように、発振回路部2の電流調整部23と、制御部4の構成が実施形態7と異なっており、その他の構成は実施形態7と同様であるから、同様の構成については実施形態7と同一の符号を付して説明を省略する。
(Embodiment 11)
As shown in FIG. 9, the proximity sensor of the present embodiment is different from the seventh embodiment in the configuration of the current adjustment unit 23 of the oscillation circuit unit 2 and the control unit 4, and the other configurations are the same as those in the seventh embodiment. Therefore, the same components as those in the seventh embodiment are denoted by the same reference numerals and description thereof is omitted.

本実施形態における電流調整部23は、スイッチ制御部231を有していない点で実施形態7と異なる。なお、その他の構成は実施形態7と同様であるから、同様の構成については同一の符号を付して説明を省略する。   The current adjustment unit 23 in the present embodiment is different from that in the seventh embodiment in that the switch control unit 231 is not provided. Since the other configuration is the same as that of the seventh embodiment, the same reference numeral is assigned to the same configuration, and the description is omitted.

本実施形態における制御部4は、例えばCPUおよびメモリを具備したマイクロコンピュータなどにより構成されており、当該マイクロコンピュータのメモリの記憶領域に、デジタルコードを書き込むデータレジスタ(アキュムレータ)が設けられている。このデータレジスタの総ビット数はデジタルコードの総ビット数に等しく、デジタルコードの第Nビットはデータレジスタの第Nビットに対応する(ただし、Nは0以上の整数)。なお、当該デジタルコードは、上記実施形態1と同様に、モニタ部3の検出結果に基づいて設定されるものである。   The control unit 4 in the present embodiment is configured by, for example, a microcomputer including a CPU and a memory, and a data register (accumulator) for writing a digital code is provided in a storage area of the memory of the microcomputer. The total number of bits of the data register is equal to the total number of bits of the digital code, and the Nth bit of the digital code corresponds to the Nth bit of the data register (where N is an integer of 0 or more). The digital code is set based on the detection result of the monitor unit 3 as in the first embodiment.

本実施形態における制御部4には、複数のスイッチSWそれぞれに制御信号を出力する複数の制御信号出力部(図示せず)が設けられており、当該複数の制御信号出力部それぞれはデータレジスタの各ビットと一対一で関係付けられている(換言すれば、複数のスイッチSWそれぞれはデータレジスタの各ビットと一対一で関係付けられている)。ここで、データレジスタの最下位ビットである第0ビット(ビット番号が0であるビット)がスイッチSWに、第1ビット(ビット番号が1であるビット)がスイッチSWに、第2ビット(ビット番号が2であるビット)がスイッチSWに、最上位ビットである第3ビット(ビット番号が3であるビット)がスイッチSWにそれぞれ対応している。 The control unit 4 in the present embodiment is provided with a plurality of control signal output units (not shown) that output control signals to the plurality of switches SW, and each of the plurality of control signal output units is a data register. Each bit has a one-to-one relationship (in other words, each of the plurality of switches SW has a one-to-one relationship with each bit of the data register). Here, the 0th bit is the least significant bit (bit number 0 is bit) switch SW 1 of the data register, the first bit (bit number is 1 bit) within the switch SW 2, the second bit the switch SW 3 (bits a bit number 2), the third bit is the most significant bit (bit number is 3 bits) correspond respectively to the switch SW 4.

このような制御信号出力部は、対応するデータレジスタのビット値に応じてスイッチSWに制御信号を出力する。例えば、制御信号出力部は、データレジスタのビット値が”1”であればスイッチSWをオン、ビット値が”0”であればスイッチSWをオフするようにスイッチSWに制御信号を出力する。例えば、デジタルコードが、”1010”であれば、データレジスタも”1010”になり、第1ビットおよび第3ビットそれぞれに関係付けられた各制御信号出力部からはスイッチSWをオンにする制御信号が出力され、第0ビットおよび第2ビットそれぞれに関係付けられた各制御信号出力部からはスイッチSWをオフにする制御信号が出力される。その結果、スイッチSW,SWはオン、スイッチSW,SWはオフになる。なお、本実施形態では、制御部4から電流調整部23には制御信号が個別に出力されるが、信号処理部5には、実施形態7と同様にデジタルコードを示すデジタル信号が出力される。 Such a control signal output unit outputs a control signal to the switch SW in accordance with the bit value of the corresponding data register. For example, the control signal output unit outputs a control signal to the switch SW so that the switch SW is turned on when the bit value of the data register is “1” and the switch SW is turned off when the bit value is “0”. For example, if the digital code is “1010”, the data register is also “1010”, and the control signal for turning on the switch SW from each control signal output unit associated with each of the first bit and the third bit. Is output, and a control signal for turning off the switch SW is output from each control signal output unit associated with the 0th bit and the 2nd bit. As a result, the switches SW 2 and SW 4 are turned on and the switches SW 1 and SW 3 are turned off. In the present embodiment, control signals are individually output from the control unit 4 to the current adjustment unit 23, but a digital signal indicating a digital code is output to the signal processing unit 5 as in the seventh embodiment. .

以上述べた本実施形態の近接センサによれば、スイッチ制御部231の構成を省略することができ、データレジスタのビット値によって直接的に発振回路部2の負性コンダクタンスの値を変更することが可能になるから、ハードウェア構成を簡単にすることができて、低コスト化を図ることができる。   According to the proximity sensor of the present embodiment described above, the configuration of the switch control unit 231 can be omitted, and the value of the negative conductance of the oscillation circuit unit 2 can be directly changed by the bit value of the data register. Therefore, the hardware configuration can be simplified and the cost can be reduced.

なお、本実施形態の近接センサのその他の効果については実施形態7と同様であるから説明を省略する。また、本実施形態の電流調整部23および制御部4の構成は、実施形態8〜10にも適用することができる。   Note that the other effects of the proximity sensor of the present embodiment are the same as those of the seventh embodiment, and thus description thereof is omitted. Moreover, the structure of the electric current adjustment part 23 and the control part 4 of this embodiment is applicable also to Embodiment 8-10.

(実施形態12)
本実施形態の近接センサは、図10に示すように、モニタ部3および制御部4の構成が実施形態1と異なっており、その他の構成は実施形態1と同様であるから、同様の構成については同一の符号を付して説明を省略する。なお、図10ではモニタ部3のみを図示している。
Embodiment 12
As shown in FIG. 10, the proximity sensor according to the present embodiment is different from the first embodiment in the configuration of the monitor unit 3 and the control unit 4, and the other configurations are the same as those in the first embodiment. Are denoted by the same reference numerals and description thereof is omitted. In FIG. 10, only the monitor unit 3 is illustrated.

本実施形態におけるモニタ部3は、npn形のトランジスタ30と、抵抗31と、コンデンサ32と、A/Dコンバータ(アナログ/デジタル変換器)33とを備えている。ここで、トランジスタ30と、抵抗31と、コンデンサ32とは、LC共振回路部1の発振振幅VTを検出する検出部を構成しており、当該検出部は、発振振幅VTを示すアナログ信号をA/Dコンバータに出力する。A/Dコンバータ33は、検出部が出力したアナログ信号を所定の量子化幅でデジタル信号に変換して制御部4に出力する。なお、このようなA/Dコンバータ33は従来周知の構成により実現できるから詳細な説明を省略する。   The monitor unit 3 in this embodiment includes an npn transistor 30, a resistor 31, a capacitor 32, and an A / D converter (analog / digital converter) 33. Here, the transistor 30, the resistor 31, and the capacitor 32 constitute a detection unit that detects the oscillation amplitude VT of the LC resonance circuit unit 1, and the detection unit outputs an analog signal indicating the oscillation amplitude VT as A. / Output to D converter. The A / D converter 33 converts the analog signal output from the detection unit into a digital signal with a predetermined quantization width and outputs the digital signal to the control unit 4. Since such an A / D converter 33 can be realized by a conventionally known configuration, detailed description thereof will be omitted.

本実施形態における制御部4は、発振回路部2の負性コンダクタンスGoscが上記臨界値となるようにデジタルコードを設定するにあたって、A/Dコンバータ33が出力した発振振幅VTを示すデジタル信号を利用する。例えば、制御部4は、A/Dコンバータ33より得たデジタル信号と、負性コンダクタンスGoscの絶対値とコンダクタンスGcoilの絶対値が等しいときの発振振幅VTのデジタル信号とを比較し、その差分に応じてデジタルコードを作成する。なお、制御部4のその他の構成については実施形態1と同様であるから、説明を省略する。   The control unit 4 in the present embodiment uses a digital signal indicating the oscillation amplitude VT output from the A / D converter 33 when setting the digital code so that the negative conductance Gosc of the oscillation circuit unit 2 becomes the critical value. To do. For example, the control unit 4 compares the digital signal obtained from the A / D converter 33 with the digital signal of the oscillation amplitude VT when the absolute value of the negative conductance Gosc and the absolute value of the conductance Gcoil are equal to each other. Create a digital code accordingly. Since the other configuration of the control unit 4 is the same as that of the first embodiment, the description thereof is omitted.

以上述べた本実施形態の近接センサによれば、モニタ部3は、LC共振回路部1の発振振幅VTを検出し発振振幅VTを示すアナログ信号を出力する検出部と、当該検出部が出力した発振振幅VTを示すアナログ信号をデジタル信号に変換して制御部4に出力するA/Dコンバータ33とを備え、制御部4は、A/Dコンバータ33が出力した発振振幅VTを示すデジタル信号からデジタルコードを作成するから、例えば比較器などを用いて、モニタ部3より得た発振振幅VTが所定値を越えているか、あるいは下回っているかを判断し、その結果に応じて、デジタルコードを設定する場合に比べれば(つまりアナログ演算によってデジタルコードを設定する場合に比べれば)、出力電流Ioをすぐに負性コンダクタンスGoscの絶対値がコンダクタンスGcoilの絶対値に等しくなる値に設定できるから、処理速度(出力電流Ioの変化の応答性、追随性)を向上でき、例えば、近接センサの起動時や、被検知体の移動速度が速い場合であっても、迅速に、発振回路部2の負性コンダクタンスをLC共振回路部1が発振可能な臨界値に設定することができ、遅れが生じてしまうことを抑制できる。   According to the proximity sensor of the present embodiment described above, the monitor unit 3 detects the oscillation amplitude VT of the LC resonance circuit unit 1 and outputs an analog signal indicating the oscillation amplitude VT, and the detection unit outputs An A / D converter 33 that converts an analog signal indicating the oscillation amplitude VT into a digital signal and outputs the digital signal to the control unit 4, and the control unit 4 generates a digital signal indicating the oscillation amplitude VT output from the A / D converter 33. Since a digital code is created, for example, a comparator is used to determine whether the oscillation amplitude VT obtained from the monitor unit 3 exceeds or falls below a predetermined value, and the digital code is set according to the result. Compared to the case where the absolute value of the negative conductance Gosc is immediately set to the output current Io, compared to the case where the digital code is set by analog calculation. Since it can be set to a value equal to the absolute value of the conductance Gcoil, the processing speed (responsiveness and followability of changes in the output current Io) can be improved. For example, when the proximity sensor is activated or the moving speed of the detected object is high Even in this case, the negative conductance of the oscillation circuit unit 2 can be quickly set to a critical value that allows the LC resonance circuit unit 1 to oscillate, and the occurrence of a delay can be suppressed.

なお、本実施形態の近接センサのその他の効果については実施形態1と同様であるから説明を省略する。また、本実施形態のモニタ部3および制御部4の構成は、実施形態2〜11にも適用することができる。   The other effects of the proximity sensor of the present embodiment are the same as those of the first embodiment, and thus the description thereof is omitted. Moreover, the structure of the monitor part 3 of this embodiment and the control part 4 is applicable also to Embodiment 2-11.

(実施形態13)
本実施形態の近接センサは、図11に示すように制御部4の構成が実施形態1と異なっており、その他の構成については実施形態1と同様であるから同様の構成については同一の符号を付して説明を省略する。なお、図11では制御部4のみを図示している。
(Embodiment 13)
In the proximity sensor of this embodiment, as shown in FIG. 11, the configuration of the control unit 4 is different from that of the first embodiment, and the other configurations are the same as those of the first embodiment. A description thereof will be omitted. In FIG. 11, only the control unit 4 is illustrated.

本実施形態における制御部4は、所定周期でモニタ部3により検出した発振振幅VTと所定の閾値とを比較する比較判定部40と、タイミング回路41と、比較判定部40の比較結果に基づいてデジタルコードを設定する演算処理部42とにより構成されている。   The control unit 4 in the present embodiment is based on the comparison result of the comparison determination unit 40 that compares the oscillation amplitude VT detected by the monitor unit 3 with a predetermined threshold at a predetermined period, the timing circuit 41, and the comparison determination unit 40. And an arithmetic processing unit 42 for setting a digital code.

比較判定部40は、基準電源Vccとグラウンドとの間に挿入された抵抗R1〜R3の直列回路からなる分圧回路と、第1のコンパレータCOMP1と、第2のコンパレータCOMP2と、第1の否定ゲート(NOTゲート、インバータともいう)40aと、論理積ゲート(ANDゲート)40bと、第2の否定ゲート40cとで構成されている。   The comparison determination unit 40 includes a voltage dividing circuit including a series circuit of resistors R1 to R3 inserted between the reference power supply Vcc and the ground, a first comparator COMP1, a second comparator COMP2, and a first negation. The gate is composed of a gate (also referred to as NOT gate or inverter) 40a, an AND gate (AND gate) 40b, and a second negative gate 40c.

上記分圧回路は、第1のコンパレータCOMP1と第2のコンパレータCOMP2とに所定の閾値V1,V2を与えるためのものであって、抵抗R1,R2の接続点の電位からなる閾値V1は発振振幅VTの上限となる値であり、抵抗R2,R3の接続点の電位からなる閾値V2は発振振幅VTの下限となる値である。   The voltage dividing circuit is for giving predetermined threshold values V1 and V2 to the first comparator COMP1 and the second comparator COMP2, and the threshold value V1 composed of the potential at the connection point of the resistors R1 and R2 has an oscillation amplitude. VT is the upper limit value, and the threshold value V2 consisting of the potential at the connection point of the resistors R2 and R3 is the lower limit value of the oscillation amplitude VT.

第1のコンパレータCOMP1の非反転入力端子は抵抗R1,R2の接続点に接続され、反転入力端子はモニタ部3の出力端子に接続されている。したがって、第1のコンパレータCOMP1は、モニタ部3で検出した発振振幅VTが閾値V1以下であれば、ハイレベルの信号を出力し、発振振幅VTが閾値V1を越えていれば、ロウレベルの信号を出力する。第1のコンパレータCOMP1の出力端は、第1の否定ゲート40aおよび論理積ゲート40bに接続されている。   The non-inverting input terminal of the first comparator COMP1 is connected to the connection point of the resistors R1 and R2, and the inverting input terminal is connected to the output terminal of the monitor unit 3. Therefore, the first comparator COMP1 outputs a high level signal if the oscillation amplitude VT detected by the monitor unit 3 is equal to or less than the threshold value V1, and outputs a low level signal if the oscillation amplitude VT exceeds the threshold value V1. Output. The output terminal of the first comparator COMP1 is connected to the first negative gate 40a and the logical product gate 40b.

第2のコンパレータCOMP2の反転入力端子は抵抗R2,R3の接続点に接続され、非反転入力端子はモニタ部3の出力端子に接続されている。したがって、第2のコンパレータCOMP2は、モニタ部3で検出した発振振幅VTが閾値V2を越えていれば、ハイレベルの信号を出力し、発振振幅VTが閾値V2以下であれば、ロウレベルの信号を出力する。第2のコンパレータCOMP2の出力端は、第2の否定ゲート40cおよび論理積ゲート40bに接続されている。   The inverting input terminal of the second comparator COMP2 is connected to the connection point of the resistors R2 and R3, and the non-inverting input terminal is connected to the output terminal of the monitor unit 3. Therefore, the second comparator COMP2 outputs a high level signal if the oscillation amplitude VT detected by the monitor unit 3 exceeds the threshold value V2, and outputs a low level signal if the oscillation amplitude VT is equal to or less than the threshold value V2. Output. The output terminal of the second comparator COMP2 is connected to the second negation gate 40c and the AND gate 40b.

第1の否定ゲート40a、論理積ゲート40b、および第2の否定ゲート40cそれぞれの出力端は、演算処理部42に別個に接続されている。   The output terminals of the first negative gate 40a, the logical product gate 40b, and the second negative gate 40c are separately connected to the arithmetic processing unit 42.

したがって、このような比較判定部40では、発振振幅VTが閾値V1超過であれば、第1の否定ゲート40aからはハイレベルの信号が出力され、論理積ゲート40bおよび第2の否定ゲート40cからはロウレベルの信号が出力され、発振振幅VTが閾値V1以下、閾値V2超過であれば、第1の否定ゲート40aおよび第2の否定ゲート40cからはロウレベルの信号が出力され、論理積ゲート40bからはハイレベルの信号が出力され、発振振幅VTが閾値V2以下であれば、第1の否定ゲート40aおよび論理積ゲート40bからはロウレベルの信号が出力され、第2の否定ゲート40cからはハイレベルの信号が出力される。   Therefore, in such a comparison / determination unit 40, if the oscillation amplitude VT exceeds the threshold value V1, a high level signal is output from the first negative gate 40a, and the AND gate 40b and the second negative gate 40c. When a low level signal is output and the oscillation amplitude VT is equal to or lower than the threshold value V1 and exceeds the threshold value V2, a low level signal is output from the first negative gate 40a and the second negative gate 40c, and the logical product gate 40b When a high level signal is output and the oscillation amplitude VT is equal to or lower than the threshold value V2, a low level signal is output from the first negative gate 40a and the AND gate 40b, and a high level is output from the second negative gate 40c. Is output.

タイミング回路部41は、デジタル信号を出力するタイミング(電流調整部23のデジタルコードを更新するタイミング)を指示する信号(パルス信号)を所定周波数で出力する発振回路からなり、上記所定周波数は、LC共振回路部1の発振周波数より低く設定されている。   The timing circuit unit 41 includes an oscillation circuit that outputs a signal (pulse signal) indicating a timing for outputting a digital signal (a timing for updating the digital code of the current adjusting unit 23) at a predetermined frequency. It is set lower than the oscillation frequency of the resonance circuit unit 1.

演算処理部42は、第1の否定ゲート40aからハイレベルの信号を受け取ると、帰還電流Ifbを増加させ、論理積ゲート40bからハイレベルの信号を受け取ると、帰還電流Ifbを現状のまま維持し、第2の否定ゲート40cからハイレベルの信号を受け取ると、帰還電流Ifbを減少させるように、出力電流Ioを調整する。つまり、本実施形態における制御部4は、比較判定部40の比較結果によって出力電流Ioを変更するか否かを決定する。   The arithmetic processing unit 42 increases the feedback current Ifb when receiving a high level signal from the first negative gate 40a, and maintains the current feedback current Ifb when receiving a high level signal from the AND gate 40b. When a high level signal is received from the second negative gate 40c, the output current Io is adjusted so as to decrease the feedback current Ifb. That is, the control unit 4 in this embodiment determines whether or not to change the output current Io according to the comparison result of the comparison determination unit 40.

また、演算処理部42は、出力電流Ioを変更するにあたっては、デジタルコードの最下位ビット(第0ビット)に1を加算、あるいはデジタルコードの最下位ビットより1を減算する。例えば、デジタルコードが’0010’であるときに、第1の否定ゲート40aからハイレベルの信号を受け取ると、デジタルコードの最下位ビットに1を加算して、デジタルコードを’0011’に設定する一方、第2の否定ゲート40cからハイレベルの信号を受け取ると、デジタルコードの最下位ビットから1を減算して、デジタルコードを’0001’に設定する。   Further, when changing the output current Io, the arithmetic processing unit 42 adds 1 to the least significant bit (0th bit) of the digital code or subtracts 1 from the least significant bit of the digital code. For example, when a high level signal is received from the first negation gate 40a when the digital code is “0010”, 1 is added to the least significant bit of the digital code to set the digital code to “0011”. On the other hand, when a high level signal is received from the second negation gate 40c, 1 is subtracted from the least significant bit of the digital code to set the digital code to '0001'.

さらに、演算処理部43は、デジタルコードを示すデジタル信号を出力するにあたっては、タイミング回路部41よりパルス信号を得た際に、当該デジタル信号を出力するようになっており、これによりタイミング回路部41の周波数より低い周波数で、演算処理部43からデジタルコードが出力されないようにしている。なお、実施形態6,11のように、デジタル信号ではなく制御信号を電流調整部23に出力する場合には、制御部4は、タイミング回路部41よりパルス信号を得た際に、制御信号を出力するようにすればよい。   Further, when outputting the digital signal indicating the digital code, the arithmetic processing unit 43 is configured to output the digital signal when the pulse signal is obtained from the timing circuit unit 41, whereby the timing circuit unit The digital code is not output from the arithmetic processing unit 43 at a frequency lower than the frequency 41. In addition, when outputting a control signal instead of a digital signal to the current adjustment unit 23 as in the sixth and eleventh embodiments, the control unit 4 receives the pulse signal from the timing circuit unit 41 and outputs the control signal. What is necessary is just to make it output.

以上述べた本実施形態の近接センサによれば、デジタルコードの最下位ビットに1を加算あるいは減算することによってデジタルコードを変更するので、出力電流Ioの調整時に、オーバーシュートやアンダーシュートが生じてしまうことを防止でき、また、発振振幅からデジタルコードの目標値を直接的に演算する処理を行わなくて済むから、比較判定部40としては、AD変換回路やCPUなどの複雑な装置に比べれば安価なウィンドウコンパレータを用いることができるようになって、低コスト化が図れる。   According to the proximity sensor of the present embodiment described above, since the digital code is changed by adding or subtracting 1 to the least significant bit of the digital code, overshoot or undershoot occurs when adjusting the output current Io. In addition, since it is not necessary to perform processing for directly calculating the target value of the digital code from the oscillation amplitude, the comparison / determination unit 40 can be compared with a complicated device such as an AD conversion circuit or a CPU. Since an inexpensive window comparator can be used, the cost can be reduced.

また、制御部4は、タイミング回路部43よりパルス信号が入力された際にデジタルコードを示すデジタル信号を出力するようになっており、タイミング回路部43からパルス信号が出力される周波数はLC共振回路部1の発振周波数より低くしているので、LC共振回路部1の発振周期より短い時間間隔でデジタルコードが電流調整部23に与えられることがなく、電流調整部23の出力電流Ioを変更したことに起因するLC共振回路部1の発振を防止でき、安定した制御が行えるようになる。   The control unit 4 outputs a digital signal indicating a digital code when a pulse signal is input from the timing circuit unit 43, and the frequency at which the pulse signal is output from the timing circuit unit 43 is LC resonance. Since it is lower than the oscillation frequency of the circuit unit 1, the digital code is not given to the current adjustment unit 23 at a time interval shorter than the oscillation period of the LC resonance circuit unit 1, and the output current Io of the current adjustment unit 23 is changed. Oscillation of the LC resonance circuit unit 1 due to this can be prevented and stable control can be performed.

なお、本実施形態の近接センサのその他の効果については実施形態1と同様であるから説明を省略する。   The other effects of the proximity sensor of the present embodiment are the same as those of the first embodiment, and thus the description thereof is omitted.

ところで、比較判定部40の構成は、図11に示すものに限定されず、例えば、単にモニタ部3で検出した発振振幅と所定の閾値を越えているか否かを判定するだけのものであってもよく、このような場合であっても、発振振幅からデジタルコードの目標値を直接的に演算する処理を行わなくて済み、比較判定部40としては、AD変換回路やCPUなどの複雑な装置に比べれば安価なコンパレータを用いることができるから、低コスト化が図れる。また、本実施形態の制御部4の構成は、実施形態2〜12にも適用することができる。   By the way, the configuration of the comparison determination unit 40 is not limited to that shown in FIG. 11, and for example, merely determines whether or not the oscillation amplitude detected by the monitor unit 3 exceeds a predetermined threshold value. Even in such a case, it is not necessary to perform processing for directly calculating the target value of the digital code from the oscillation amplitude, and the comparison / determination unit 40 includes a complicated device such as an AD conversion circuit or a CPU. Compared to the above, an inexpensive comparator can be used, so that the cost can be reduced. Moreover, the structure of the control part 4 of this embodiment is applicable also to Embodiment 2-12.

(実施形態14)
本実施形態の近接センサは、図12に示すように、温度検知部となる温度センサ6を備えている点と、信号処理部5の構成とが実施形態1と異なっており、その他の構成については実施形態1と同様であるから同様の構成については同一の符号を付して説明を省略する。なお、図12では温度センサ6と信号処理部5のみを図示している。
(Embodiment 14)
As shown in FIG. 12, the proximity sensor of the present embodiment is different from the first embodiment in that it includes a temperature sensor 6 serving as a temperature detection unit, and the configuration of the signal processing unit 5. Since this is the same as that of the first embodiment, the same components are denoted by the same reference numerals and description thereof is omitted. In FIG. 12, only the temperature sensor 6 and the signal processing unit 5 are illustrated.

温度センサ6は、サーミスタなどの従来周知の感熱素子を用いて構成されている。このような温度センサ6は、周囲の温度、例えば検知コイル10の周囲の温度を検知するために、検知コイル10の近傍に配置されている。なお、温度センサ6は、状況に応じて好適な位置に配置すればよい。   The temperature sensor 6 is configured using a conventionally known thermal element such as a thermistor. Such a temperature sensor 6 is disposed in the vicinity of the detection coil 10 in order to detect an ambient temperature, for example, a temperature around the detection coil 10. The temperature sensor 6 may be disposed at a suitable position depending on the situation.

本実施形態における信号処理部5は、制御部4より出力されたデジタル信号よりデジタルコードを取得し、取得したデジタルコードにより表される値に温度センサ6で検知した温度に対応する補正温度係数(補正係数)を乗じることで温度補償を行う温度補償部50を備える。また、信号処理部5は、デジタルコードに所定の加算値を加算するオフセット処理と、デジタルコードに所定の乗算値を乗算するゲイン処理とが実行可能である出力調整部51を有している。なお、温度補償部50や出力調整部51は、プログラムなどにより実現されていてもよいし、回路により構成されていてもよい。   The signal processing unit 5 in the present embodiment acquires a digital code from the digital signal output from the control unit 4, and corrects a temperature coefficient (corresponding to the temperature detected by the temperature sensor 6 to a value represented by the acquired digital code. A temperature compensation unit 50 that performs temperature compensation by multiplying the correction coefficient is provided. The signal processing unit 5 includes an output adjustment unit 51 that can execute an offset process for adding a predetermined addition value to the digital code and a gain process for multiplying the digital code by a predetermined multiplication value. The temperature compensation unit 50 and the output adjustment unit 51 may be realized by a program or the like, or may be configured by a circuit.

さらに、信号処理部5は、温度補償部50による温度補償および出力調整部51による調整が行われたデジタルコードに基づいて、検知コイル10と被検知体との距離を示す検知信号を作成する出力回路部52を有している。出力回路部52において、検知信号を作成するにあたっては、実施形態1で述べたように、デジタルコードと、被検知体と検知コイル10との距離との関係を示すデータテーブルや、デジタルコードにより表される値を被検知体と検知コイル10との距離に変換する演算式などを利用することができる。   Further, the signal processing unit 5 generates an output for generating a detection signal indicating the distance between the detection coil 10 and the detected object based on the digital code subjected to temperature compensation by the temperature compensation unit 50 and adjustment by the output adjustment unit 51. A circuit unit 52 is provided. In generating a detection signal in the output circuit unit 52, as described in the first embodiment, a data table indicating the relationship between the digital code and the distance between the detected object and the detection coil 10 or a digital code is used. An arithmetic expression for converting the value to be converted into the distance between the detection object and the detection coil 10 can be used.

また、信号処理部5は、EEPROMなどの書き換え可能な不揮発性メモリからなる記憶部53を有し、当該記憶部53には、温度補償部50で使用する補正温度係数のデータテーブルと、出力調整部51で使用する加算値や乗算値が記憶されている。このような記憶部53に記憶されている補正温度係数のデータテーブルや、加算値、乗算値はいずれも変更可能としている。   Further, the signal processing unit 5 includes a storage unit 53 made of a rewritable nonvolatile memory such as an EEPROM, and the storage unit 53 includes a data table of a correction temperature coefficient used in the temperature compensation unit 50, and output adjustment. An addition value and a multiplication value used in the unit 51 are stored. The correction temperature coefficient data table, addition value, and multiplication value stored in the storage unit 53 can be changed.

上述した温度補償部50は、デジタルコードが入力されると、記憶部53に記憶されている補正温度係数のデータテーブルから、温度センサ6の検知温度に対応する補正温度係数を取得し、取得した補正温度係数とデジタルコードにより表される値との乗算を行い、その結果を、新たなデジタルコードとして出力する。なお、温度補償部50で使用する補正温度係数は、検知コイル10や、被検知体、発振回路部2などの回路の温度特性を考慮して設定された値であって、リファレンスなどを用いた温度測定の結果などから求めることができる。   When the digital code is input, the temperature compensation unit 50 described above acquires a correction temperature coefficient corresponding to the temperature detected by the temperature sensor 6 from the correction temperature coefficient data table stored in the storage unit 53, and acquires the correction temperature coefficient. The corrected temperature coefficient is multiplied by the value represented by the digital code, and the result is output as a new digital code. Note that the correction temperature coefficient used in the temperature compensation unit 50 is a value set in consideration of the temperature characteristics of the detection coil 10, the detected object, the oscillation circuit unit 2, etc., and uses a reference or the like. It can be obtained from the result of temperature measurement.

出力調整部51は、デジタルコードが入力されると、上述したオフセット処理とゲイン処理との少なくとも一方を実行し、得られた結果を、新たなデジタルコードとして出力する。ここで、オフセット処理に使用される加算値は、デジタルコードにより表される値に加算される正または負の値であり、乗算値は、デジタルコードにより表される値に乗算される値(つまり倍率を指定する値)である。したがって、デジタルコードにより表される値を正側にシフトさせたい場合には、加算値を正の値に設定し、デジタルコードの値を負側にシフトさせたい場合には、加算値を負の値に設定すればよい。また、デジタルコードにより表される値同士の差を大きくしたい場合には、乗算値を1より大きい値に設定すればよく、デジタルコードにより表される値同士の差を小さくしたい場合には、乗算値を0以上1未満の値に設定すればよい。   When the digital code is input, the output adjustment unit 51 executes at least one of the above-described offset processing and gain processing, and outputs the obtained result as a new digital code. Here, the addition value used for the offset process is a positive or negative value added to the value represented by the digital code, and the multiplication value is a value multiplied by the value represented by the digital code (that is, A value that specifies the magnification). Therefore, when the value represented by the digital code is to be shifted to the positive side, the addition value is set to a positive value, and when the digital code value is to be shifted to the negative side, the addition value is set to a negative value. Set it to a value. Further, when it is desired to increase the difference between the values represented by the digital code, the multiplication value may be set to a value larger than 1. When the difference between the values represented by the digital code is desired to be reduced, the multiplication is performed. The value may be set to a value between 0 and less than 1.

このような出力調整部51によるオフセット処理やゲイン処理は、例えば、出力回路部52が出力する検知信号が取り得る値を所望の範囲内の値に設定することを目的として行われる。例えば、近接センサの使用状況(例えば被検知体の材料の種類)によっては、デジタルコードより得た検知信号の大きさが、出力回路部52により出力可能な大きさより大きく、検知信号が飽和(サチュレーション)してしまい、検知コイル10と被検知体との距離が得られなくなってしまうおそれがある。このような場合には、出力調整部51によりデジタルコードにより表される値を調整して検知信号の大きさを出力回路部52により出力可能な大きさの範囲内に収まるようにすることで、検知信号の飽和に起因する不具合を防止できる。   Such offset processing and gain processing by the output adjustment unit 51 are performed for the purpose of setting a value that can be taken by the detection signal output from the output circuit unit 52 to a value within a desired range, for example. For example, depending on the usage status of the proximity sensor (for example, the type of material of the detection target), the magnitude of the detection signal obtained from the digital code is larger than the magnitude that can be output by the output circuit unit 52, and the detection signal is saturated (saturation). ) And the distance between the detection coil 10 and the object to be detected cannot be obtained. In such a case, by adjusting the value represented by the digital code by the output adjustment unit 51 so that the magnitude of the detection signal is within the range of the size that can be output by the output circuit unit 52, Problems caused by saturation of the detection signal can be prevented.

以上述べた本実施形態の近接センサによれば、温度センサ6で検知した温度に応じてデジタルコード(により表される値)が補正されるから、検知コイル10や、被検知体、発振回路部2などの回路の温度特性に起因する検知精度の悪化を防止でき、検知精度の向上が図れる。さらに、温度補償部50における補正温度係数は変更可能(書き換え可能)であるから、製品毎に、検知コイル10の特性や、検知コイル10と被検知体との相対位置、発振回路部2などの回路の温度特性にばらつきがあっても、このようなばらつきによって製品毎に検知信号の値が異なってしまうことを防止でき、いずれの製品においても所望の検知信号を得ることが可能となる。   According to the proximity sensor of the present embodiment described above, the digital code (value represented by) is corrected according to the temperature detected by the temperature sensor 6, so that the detection coil 10, the detected object, and the oscillation circuit unit The deterioration of the detection accuracy due to the temperature characteristics of the circuit such as 2 can be prevented, and the detection accuracy can be improved. Furthermore, since the correction temperature coefficient in the temperature compensation unit 50 can be changed (rewritable), the characteristics of the detection coil 10, the relative position between the detection coil 10 and the detected object, the oscillation circuit unit 2, and the like for each product. Even if there is a variation in the temperature characteristics of the circuit, it is possible to prevent the value of the detection signal from being different for each product due to such variation, and it is possible to obtain a desired detection signal in any product.

また、オフセット処理やゲイン処理を実行することによって、デジタルコードにより表される値を任意に調整することができるから、検知信号の値を所望の範囲内の値とすることができる。その上、オフセット処理で用いる加算値や、ゲイン処理で用いる乗算値は変更可能(書き換え可能)であるから、製品毎に、検知コイル10の特性や、検知コイル10と被検知体との相対位置、発振回路部2などの回路の特性にばらつきがあっても、このようなばらつきによって製品毎に検知信号の値の範囲が異なってしまうことを防止でき、いずれの製品においても検知信号の値を所望の範囲内の値とすることが可能となる。   Further, the value represented by the digital code can be arbitrarily adjusted by executing the offset process and the gain process, so that the value of the detection signal can be set to a value within a desired range. In addition, since the addition value used in the offset process and the multiplication value used in the gain process can be changed (rewritable), the characteristics of the detection coil 10 and the relative position between the detection coil 10 and the detected object are different for each product. Even if the characteristics of the circuit such as the oscillation circuit unit 2 vary, it is possible to prevent the range of the detection signal value from being different for each product due to such variation. It becomes possible to set the value within a desired range.

なお、本実施形態の近接センサのその他の効果については実施形態1と同様であるから説明を省略する。   The other effects of the proximity sensor of the present embodiment are the same as those of the first embodiment, and thus the description thereof is omitted.

ところで、本実施形態における信号処理部5は、温度補償部50と、出力調整部51との両方を備えているが、必ずしも両方を備えている必要はなく、温度補償部50と出力調整部51とのいずれか一方のみを備えているようなものであってもよい。また、本実施形態における信号処理部5の構成は実施形態2〜13にも適用することができる。   By the way, the signal processing unit 5 in the present embodiment includes both the temperature compensation unit 50 and the output adjustment unit 51, but does not necessarily include both, and the temperature compensation unit 50 and the output adjustment unit 51 are not necessarily provided. Or only one of them may be provided. The configuration of the signal processing unit 5 in the present embodiment can also be applied to the second to thirteenth embodiments.

実施形態1の近接センサの説明図である。It is explanatory drawing of the proximity sensor of Embodiment 1. FIG. 実施形態2の近接センサの説明図である。It is explanatory drawing of the proximity sensor of Embodiment 2. FIG. 実施形態4の近接センサの説明図である。It is explanatory drawing of the proximity sensor of Embodiment 4. 実施形態5の近接センサの説明図である。It is explanatory drawing of the proximity sensor of Embodiment 5. 実施形態6の近接センサの説明図である。It is explanatory drawing of the proximity sensor of Embodiment 6. 実施形態7の近接センサの説明図である。It is explanatory drawing of the proximity sensor of Embodiment 7. 実施形態8の近接センサの説明図である。It is explanatory drawing of the proximity sensor of Embodiment 8. 実施形態10の近接センサの説明図である。It is explanatory drawing of the proximity sensor of Embodiment 10. FIG. 実施形態11の近接センサの説明図である。It is explanatory drawing of the proximity sensor of Embodiment 11. 実施形態12の近接センサにおけるモニタ部の説明図である。FIG. 22 is an explanatory diagram of a monitor unit in the proximity sensor of the twelfth embodiment. 実施形態13の近接センサにおける制御部の説明図である。It is explanatory drawing of the control part in the proximity sensor of Embodiment 13. 実施形態14の近接センサにおける信号処理部の説明図である。It is explanatory drawing of the signal processing part in the proximity sensor of Embodiment 14.

符号の説明Explanation of symbols

1 LC共振回路
2 発振回路部
3 モニタ部
4 制御部
5 信号処理部
6 温度センサ(温度検知部)
10 検知コイル
11 コンデンサ
21 レベルシフト回路
23 電流調整部
24 カレントミラー回路部
33 A/Dコンバータ
40 比較判定部
41 タイミング回路
42 演算処理部
50 温度補償部
51 出力調整部
230 カレントミラー回路部
232 増幅部
232a 増幅回路
ITr 入力側カレントミラートランジスタ
OTr 出力側カレントミラートランジスタ
BTr 増幅用トランジスタ
SW スイッチ
Vcc 基準電源
Rm 抵抗部(ミラー電流制限用の抵抗部)
Rb 抵抗部(増幅電流制限用の抵抗部)
DESCRIPTION OF SYMBOLS 1 LC resonance circuit 2 Oscillation circuit part 3 Monitor part 4 Control part 5 Signal processing part 6 Temperature sensor (temperature detection part)
DESCRIPTION OF SYMBOLS 10 Detection coil 11 Capacitor 21 Level shift circuit 23 Current adjustment part 24 Current mirror circuit part 33 A / D converter 40 Comparison determination part 41 Timing circuit 42 Operation processing part 50 Temperature compensation part 51 Output adjustment part 230 Current mirror circuit part 232 Amplification part 232a Amplifying circuit ITr Input side current mirror transistor OTr Output side current mirror transistor BTr Amplifying transistor SW switch Vcc Reference power supply Rm Resistor (resistor for limiting mirror current)
Rb resistor (resistor for limiting amplification current)

Claims (23)

被検知体の検知に用いられる検知コイルおよびコンデンサからなるLC共振回路部と、前記LC共振回路部を発振させる発振回路部と、前記LC共振回路部の発振振幅を検出するモニタ部と、前記モニタ部で検出した前記発振振幅に基づいて前記発振回路部の負性コンダクタンスを前記LC共振回路部が発振可能な臨界値に設定する制御部と、被検知体と前記検知コイルとの距離を示す検知信号を作成する信号処理部とを備え、
前記発振回路部は、前記制御部で設定されたデジタルコードに対応した出力電流を出力するD/Aコンバータよりなる電流調整部を有し、前記電流調整部の出力電流を帰還電流として前記LC共振回路部に供給し、
前記制御部は、前記発振回路部の負性コンダクタンスが前記臨界値となるように前記デジタルコードを設定し、
前記信号処理部は、前記制御部で設定された前記デジタルコードに基づいて前記検知信号を作成し、
前記電流調整部は、前記LC共振回路部の発振電圧に応じた電流を基準電流とする入力側カレントミラートランジスタ、および前記基準電流に比例した大きさのミラー電流を基準電源から前記LC共振回路部に供給させる複数の出力側カレントミラートランジスタを有し、前記基準電源から前記LC共振回路部に供給される前記ミラー電流を加算して前記出力電流を作成するカレントミラー回路部と、前記デジタルコードに基づいて制御され前記ミラー電流を前記LC共振回路部に供給するか否かを決定する複数のスイッチとを有していることを特徴とする近接センサ。
An LC resonance circuit consisting of the sensing coil and a capacitor used in the detection of the detected body, and the oscillation circuit for oscillating the LC resonant circuit, and a monitor section for detecting the oscillation amplitude of the LC resonant circuit, said monitor and a control unit for said negative conductance LC resonant circuit of the oscillator circuit portion on the basis of the oscillation amplitude detected is set to the oscillation can be critical value in parts, detecting that indicates the distance between the sensing coil and the detected object A signal processing unit for creating a signal,
The oscillation circuit includes a current controller composed of D / A converter for outputting an output current corresponding to the digital code set by the control unit, the LC resonant output currents of the current controller as the feedback current To the circuit section,
Wherein the control unit, the negative conductance of the oscillation circuit unit sets the digital code such that the critical value,
The signal processing unit creates said detection signal based on the digital code set by the control unit,
The current adjustment unit includes an input side current mirror transistor having a current corresponding to an oscillation voltage of the LC resonance circuit unit as a reference current, and a mirror current having a magnitude proportional to the reference current from a reference power source to the LC resonance circuit unit. A plurality of output-side current mirror transistors to be supplied to the current mirror circuit unit for adding the mirror current supplied from the reference power source to the LC resonance circuit unit to create the output current, and the digital code And a plurality of switches that are controlled based on whether the mirror current is supplied to the LC resonance circuit unit .
前記スイッチは、前記出力側カレントミラートランジスタと前記入力側カレントミラートランジスタとの間、あるいは前記出力側カレントミラートランジスタと前記基準電源との間に挿入されていることを特徴とする請求項1記載の近接センサ。 2. The switch according to claim 1, wherein the switch is inserted between the output-side current mirror transistor and the input-side current mirror transistor, or between the output-side current mirror transistor and the reference power source . Proximity sensor. 前記ミラー電流を前記LC共振回路部に供給する供給路と、前記ミラー電流を前記LC共振回路部に供給しない非供給路とを有し、前記供給路と前記非供給路とのいずれに前記ミラー電流が流れるかは前記スイッチにより選択されることを特徴とする請求項記載の近接センサ。 A supply path that supplies the mirror current to the LC resonance circuit section; and a non-supply path that does not supply the mirror current to the LC resonance circuit section, and the mirror is provided in either the supply path or the non-supply path. the proximity sensor of claim 1, wherein the or current flows, characterized in that it is selected by the switch. 前記複数の出力側カレントミラートランジスタのうちの少なくとも1つはトランジスタサイズが他と異なっていることを特徴とする請求項1〜3のうちいずれか1項記載の近接センサ。 4. The proximity sensor according to claim 1, wherein at least one of the plurality of output-side current mirror transistors has a transistor size different from the others . 前記カレントミラー回路部は、前記複数の出力側カレントミラートランジスタそれぞれと前記基準電源との間に個別に挿入された複数のミラー電流制限用の抵抗部を備え、
前記複数の抵抗部のうちの少なくとも1つは抵抗値が他と異なっていることを特徴とする請求項のうちいずれか1項記載の近接センサ。
The current mirror circuit unit includes a plurality of mirror current limiting resistors inserted individually between the plurality of output-side current mirror transistors and the reference power supply,
Proximity sensor of any one of claims 1 to 3, at least one, characterized in that the resistance value is different from the other of said plurality of resistance portions.
前記スイッチは、前記抵抗部と前記基準電源との間に挿入されていることを特徴とする請求項記載の近接センサ。 The proximity sensor according to claim 5 , wherein the switch is inserted between the resistance unit and the reference power source . 前記複数のスイッチそれぞれは、前記デジタルコードのビットと一対一で関係付けられ、
前記制御部は、前記スイッチに関係付けられたビットの値に基づいて前記スイッチを制御し、
前記デジタルコードにおいてビット番号が0であるビットに関係付けられた前記スイッチにより前記LC共振回路部に供給するか否かが決定されるミラー電流を基準ミラー電流とした場合に、ビット番号が0以外であるビットに関係付けられた前記スイッチにより前記LC共振回路部に供給するか否かが決定されるミラー電流と基準ミラー電流との比が、このスイッチに対応するビットのビット番号を指数として2を累乗した値であることを特徴とする請求項1〜6のうちいずれか1項記載の近接センサ。
Each of the plurality of switches is associated one-to-one with the bits of the digital code;
The controller controls the switch based on the value of a bit associated with the switch;
When the mirror current determined by the switch associated with the bit whose bit number is 0 in the digital code is supplied to the LC resonance circuit unit is a reference mirror current, the bit number is other than 0 The ratio of the mirror current and the reference mirror current, which is determined whether or not to be supplied to the LC resonance circuit unit by the switch related to the bit, is 2 with the bit number of the bit corresponding to this switch as an index. proximity sensor of any one of claims 1 to 6, characterized in that a power value of.
前記カレントミラー回路部は、前記デジタルコードのビットの値に関係なく前記ミラー電流を前記基準電源から前記LC共振回路部に供給させるオフセット用の出力側カレントミラートランジスタを有していることを特徴とする請求項1〜7のうちいずれか1項記載の近接センサ。 The current mirror circuit section includes an output current mirror transistor for offset that supplies the mirror current from the reference power source to the LC resonance circuit section regardless of the bit value of the digital code. The proximity sensor according to any one of claims 1 to 7. 被検知体の検知に用いられる検知コイルおよびコンデンサからなるLC共振回路部と、前記LC共振回路部を発振させる発振回路部と、前記LC共振回路部の発振振幅を検出するモニタ部と、前記モニタ部で検出した前記発振振幅に基づいて前記発振回路部の負性コンダクタンスを前記LC共振回路部が発振可能な臨界値に設定する制御部と、被検知体と前記検知コイルとの距離を示す検知信号を作成する信号処理部とを備え、
前記発振回路部は、前記制御部で設定されたデジタルコードに対応した出力電流を出力するD/Aコンバータよりなる電流調整部を有し、前記電流調整部の出力電流に正比例する帰還電流を前記LC共振回路部に供給し、
前記制御部は、前記発振回路部の負性コンダクタンスが前記臨界値となるように前記デジタルコードを設定し、
前記信号処理部は、前記制御部で設定された前記デジタルコードに基づいて前記検知信号を作成し、
前記発振回路部は、前記電流調整部の前記出力電流を基準電流とする入力側カレントミラートランジスタと、前記基準電流に比例した大きさの帰還電流を基準電源から前記LC共振回路部に供給させる出力側カレントミラートランジスタとを有したカレントミラー回路部を有し、
前記電流調整部は、前記LC共振回路部の発振電圧に応じた増幅電流を前記基準電源から前記入力側カレントミラートランジスタに供給させる複数の増幅回路を有し、前記基準電源から前記入力側カレントミラートランジスタに供給される増幅電流を加算して前記出力電流を作成する増幅部と、前記デジタルコードに基づいて制御され前記増幅電流を前記入力側カレントミラートランジスタに供給するか否かを決定する複数のスイッチとを有していることを特徴とする近接センサ。
An LC resonance circuit unit including a detection coil and a capacitor used for detection of the detection target, an oscillation circuit unit that oscillates the LC resonance circuit unit, a monitor unit that detects an oscillation amplitude of the LC resonance circuit unit, and the monitor A control unit that sets a negative conductance of the oscillation circuit unit to a critical value that can be oscillated by the LC resonance circuit unit based on the oscillation amplitude detected by the unit, and a detection that indicates a distance between the detected object and the detection coil A signal processing unit for creating a signal,
The oscillation circuit unit includes a current adjustment unit including a D / A converter that outputs an output current corresponding to the digital code set by the control unit, and a feedback current that is directly proportional to the output current of the current adjustment unit. Supplied to the LC resonance circuit,
The control unit sets the digital code so that the negative conductance of the oscillation circuit unit becomes the critical value,
The signal processing unit creates the detection signal based on the digital code set by the control unit,
The oscillation circuit unit includes an input-side current mirror transistor that uses the output current of the current adjustment unit as a reference current, and an output that supplies a feedback current having a magnitude proportional to the reference current from a reference power source to the LC resonance circuit unit. A current mirror circuit section having a side current mirror transistor;
The current adjustment unit includes a plurality of amplifier circuits that supply an amplification current corresponding to an oscillation voltage of the LC resonance circuit unit from the reference power source to the input-side current mirror transistor, and from the reference power source to the input-side current mirror An amplifying unit that adds the amplified current supplied to the transistor to create the output current; and a plurality of units that are controlled based on the digital code and determine whether to supply the amplified current to the input-side current mirror transistor proximity sensor characterized in that a switch.
前記発振回路部は、前記LC共振回路部の発振電圧をレベルシフトするレベルシフト回路を有し、
前記増幅回路は、一対の被制御電極の一方が前記入力側カレントミラートランジスタに、前記一対の被制御電極の他方が基準電位に、前記一対の被制御電極間の通電量を制御する制御電極が前記レベルシフト回路の出力端にそれぞれ電気的に接続された増幅用トランジスタを有し、
前記スイッチは、前記基準電位と前記他方の被制御電極との間、あるいは前記レベルシフト回路の出力端と前記制御電極との間に挿入されていることを特徴とする請求項記載の近接センサ。
The oscillation circuit unit includes a level shift circuit that level-shifts the oscillation voltage of the LC resonance circuit unit,
In the amplifier circuit, one of a pair of controlled electrodes has the input side current mirror transistor, the other of the pair of controlled electrodes has a reference potential, and a control electrode for controlling an energization amount between the pair of controlled electrodes Amplifying transistors electrically connected to the output terminals of the level shift circuit,
10. The proximity sensor according to claim 9 , wherein the switch is inserted between the reference potential and the other controlled electrode, or between the output terminal of the level shift circuit and the control electrode. .
前記増幅電流を前記入力側カレントミラートランジスタに供給する供給路と、前記増幅電流を前記入力側カレントミラートランジスタに供給しない非供給路とを有し、前記供給路と前記非供給路とのいずれに前記増幅電流が流れるかは前記スイッチにより選択されることを特徴とする請求項記載の近接センサ。 A supply path that supplies the amplified current to the input-side current mirror transistor; and a non-supply path that does not supply the amplified current to the input-side current mirror transistor. The proximity sensor according to claim 9, wherein whether the amplified current flows is selected by the switch . 前記発振回路部は、前記LC共振回路部の発振電圧をレベルシフトするレベルシフト回路を有し、
前記増幅回路は、一対の被制御電極の一方が前記入力側カレントミラートランジスタに、前記一対の被制御電極の他方が基準電位に、前記一対の被制御電極間の通電量を制御する制御電極が前記レベルシフト回路の出力端にそれぞれ電気的に接続された増幅用トランジスタと、前記増幅用トランジスタの前記他方の被制御電極と前記基準電位との間に挿入された増幅電流制限用の抵抗部とを有し、
前記複数の抵抗部のうちの少なくとも1つは抵抗値が他と異なっていることを特徴とする請求項9〜11のうちいずれか1項記載の近接センサ。
The oscillation circuit unit includes a level shift circuit that level-shifts the oscillation voltage of the LC resonance circuit unit,
In the amplifier circuit, one of a pair of controlled electrodes has the input side current mirror transistor, the other of the pair of controlled electrodes has a reference potential, and a control electrode for controlling an energization amount between the pair of controlled electrodes An amplifying transistor electrically connected to an output terminal of the level shift circuit, and an amplifying current limiting resistor inserted between the other controlled electrode of the amplifying transistor and the reference potential; Have
The proximity sensor according to any one of claims 9 to 11, wherein at least one of the plurality of resistance portions has a resistance value different from others .
前記複数のスイッチそれぞれは、前記デジタルコードのビットと一対一で関係付けられ、
前記制御部は、前記スイッチに関係付けられたビットの値に基づいて前記スイッチを制御し、
前記デジタルコードにおいてビット番号が0であるビットに関係付けられた前記スイッチにより前記入力側カレントミラートランジスタに供給するか否かが決定される増幅電流を基準増幅電流とした場合に、ビット番号が0以外であるビットに関係付けられた前記スイッチにより前記入力側カレントミラートランジスタに供給するか否かが決定される増幅電流と基準増幅電流との比が、このスイッチに対応するビットのビット番号を指数として2を累乗した値であることを特徴とする請求項12記載の近接センサ。
Each of the plurality of switches is associated one-to-one with the bits of the digital code;
The controller controls the switch based on the value of a bit associated with the switch;
The bit number is 0 when the amplified current determined by the switch associated with the bit having the bit number 0 in the digital code is supplied to the input side current mirror transistor is a reference amplified current. The ratio of the amplification current and the reference amplification current, which is determined whether or not to be supplied to the input-side current mirror transistor by the switch related to the bit other than the bit number of the bit corresponding to this switch, is an index. The proximity sensor according to claim 12, wherein the value is a power of 2 .
前記増幅部は、前記デジタルコードのビットの値に関係なく前記増幅電流を前記入力側カレントミラートランジスタに供給させるオフセット用の増幅回路を有していることを特徴とする請求項9〜13のうちいずれか1項記載の近接センサ。 The amplifying section, of the claims 9 to 13, characterized in that it comprises an amplifier circuit for offset to supply the amplified current regardless of the value of the bit of the digital code on the input side current mirror transistor The proximity sensor according to any one of the preceding claims. 前記モニタ部は、前記LC共振回路部の発振振幅を検出し発振振幅を示すアナログ信号を出力する検出部と、前記検出部が出力した発振振幅を示す前記アナログ信号をデジタル信号に変換して前記制御部に出力するA/Dコンバータとを備えていることを特徴とする請求項1〜14のうちいずれか1項記載の近接センサ。 The monitor unit detects an oscillation amplitude of the LC resonance circuit unit and outputs an analog signal indicating the oscillation amplitude, and converts the analog signal indicating the oscillation amplitude output by the detection unit into a digital signal, proximity sensor of any one of claims 1-14, characterized in that it comprises an a / D converter to output to the control unit. 前記電流調整部は、前記デジタルコードに応じて前記出力電流を単調増加させ、
前記制御部は、前記モニタ部で検出した前記発振振幅が所定の閾値を越えているか否かを判定する比較判定部と、前記比較判定部により前記所定の閾値を越えていると判定されると前記デジタルコードを変更し、前記比較判定部により前記所定の閾値を越えていないと判定されると前記デジタルコードを変更しない演算処理部とを有し、
前記演算処理部は、前記デジタルコードを変更するにあたっては、前記デジタルコードの最下位ビットに1を加算あるいは減算することを特徴とする請求項1〜15のうちいずれか1項記載の近接センサ。
The current adjustment unit monotonously increases the output current according to the digital code,
When the control unit determines that the oscillation amplitude detected by the monitor unit exceeds a predetermined threshold value, and the comparison determination unit determines that the predetermined threshold value is exceeded. An arithmetic processing unit that changes the digital code and does not change the digital code when the comparison determination unit determines that the predetermined threshold is not exceeded,
The proximity sensor according to claim 1 , wherein the arithmetic processing unit adds or subtracts 1 to the least significant bit of the digital code when changing the digital code .
前記電流調整部は、前記デジタルコードに応じて前記出力電流を単調増加させ、
前記制御部は、前記発振振幅の上限となる上限閾値と下限となる下限閾値とを有し、前記モニタ部で検出した発振振幅が上限閾値を越えているか、下限閾値を下回っているか、上限閾値と下限閾値との間に収まっているかを判定する比較判定部と、前記比較判定部により上限閾値を越えていると判定されると前記デジタルコードを減少させ、下限閾値を下回っていると判定されると前記デジタルコードを増加させ、上限閾値と下限閾値との間に収まっていると判定されると前記デジタルコードを変更しない演算処理部とを有し、
前記演算処理部は、前記デジタルコードを減少させるにあたっては、前記デジタルコードの最下位ビットより1を減算し、前記デジタルコードを増加させるにあたっては、前記デジタルコードの最下位ビットに1を加算することを特徴とする請求項1〜1のうちいずれか1項記載の近接センサ。
The current adjustment unit is monotonously increases the output current in response to said digital code,
The control unit has an upper limit threshold that is an upper limit of the oscillation amplitude and a lower limit threshold that is a lower limit, and whether the oscillation amplitude detected by the monitor unit exceeds the upper limit threshold or falls below the lower limit threshold, And a comparison / determination unit that determines whether the value falls between the lower limit threshold value and the comparison / determination unit determines that the upper limit threshold value is exceeded. Then, the digital code is increased, and an arithmetic processing unit that does not change the digital code when it is determined that the digital code is between the upper limit threshold and the lower limit threshold ,
The arithmetic processing unit subtracts 1 from the least significant bit of the digital code when decreasing the digital code, and adds 1 to the least significant bit of the digital code when increasing the digital code. proximity sensor of any one of claims 1 to 1 5, characterized in.
前記制御部は、前記デジタルコードを前記電流調整部に与えるタイミングを指示する信号を所定周波数で出力するタイミング回路を有し、
前記所定周波数は、前記LC共振回路部の発振周波数より低いことを特徴とする請求項1〜1のうちいずれか1項記載の近接センサ。
The control unit includes a timing circuit that outputs a signal indicating a timing of giving the digital code to the current adjustment unit at a predetermined frequency;
The proximity sensor according to any one of claims 1 to 17 , wherein the predetermined frequency is lower than an oscillation frequency of the LC resonance circuit unit .
前記信号処理部は、前記デジタルコードに所定の加算値を加算するオフセット処理と、前記デジタルコードに所定の乗算値を乗算するゲイン処理との少なくとも一方を実行可能な出力調整部を有していることを特徴とする請求項1〜18のうちいずれか1項記載の近接センサ。 The signal processing unit includes an output adjustment unit capable of executing at least one of an offset process for adding a predetermined addition value to the digital code and a gain process for multiplying the digital code by a predetermined multiplication value. The proximity sensor according to claim 1, wherein: 前記加算値あるいは前記乗算値は変更可能であることを特徴とする請求項19記載の近接センサ。 The proximity sensor according to claim 19, wherein the addition value or the multiplication value can be changed . 周囲の温度を検知する温度検知部を備え、
前記信号処理部は、前記デジタルコードに前記温度検知部で検知した温度に対応する補正温度係数を乗じることで温度補償を行う温度補償部を有していることを特徴とする請求項1〜20のうちいずれか1項記載の近接センサ。
It has a temperature detector that detects the ambient temperature,
The signal processing unit according to claim, characterized in that a temperature compensation unit which performs temperature compensation by multiplying the correction temperature coefficient corresponding to the temperature detected the to the digital code by the temperature detector 20 The proximity sensor according to any one of the above.
前記補正温度係数は変更可能であることを特徴とする請求項21記載の近接センサ。 The proximity sensor according to claim 21, wherein the correction temperature coefficient is changeable . 前記発振回路部と、前記モニタ部と、前記制御部と、前記信号処理部とはモノリシックICとして一体化されていることを特徴とする請求項1〜22のうちいずれか1項記載の近接センサ The proximity sensor according to any one of claims 1 to 22, wherein the oscillation circuit unit, the monitor unit, the control unit, and the signal processing unit are integrated as a monolithic IC. .
JP2008125238A 2007-09-20 2008-05-12 Proximity sensor Expired - Fee Related JP4981745B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2008125238A JP4981745B2 (en) 2008-05-12 2008-05-12 Proximity sensor
US12/679,157 US8432169B2 (en) 2007-09-20 2008-09-19 Proximity sensor
PCT/JP2008/066956 WO2009038159A1 (en) 2007-09-20 2008-09-19 Proximity sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008125238A JP4981745B2 (en) 2008-05-12 2008-05-12 Proximity sensor

Publications (2)

Publication Number Publication Date
JP2009278196A JP2009278196A (en) 2009-11-26
JP4981745B2 true JP4981745B2 (en) 2012-07-25

Family

ID=41443246

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008125238A Expired - Fee Related JP4981745B2 (en) 2007-09-20 2008-05-12 Proximity sensor

Country Status (1)

Country Link
JP (1) JP4981745B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6923849B2 (en) * 2018-01-29 2021-08-25 オムロン株式会社 How to change the proximity sensor and detection distance

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5842925B2 (en) * 1978-09-11 1983-09-22 オムロン株式会社 Proximity switch
JPH05315929A (en) * 1992-05-12 1993-11-26 Seiko Instr Inc Object proximity detector
JP3440518B2 (en) * 1993-11-26 2003-08-25 オムロン株式会社 Proximity switch
JPH0888555A (en) * 1994-09-14 1996-04-02 Omron Corp Proximity sensor
JP4385825B2 (en) * 2004-03-31 2009-12-16 オムロン株式会社 Proximity sensor

Also Published As

Publication number Publication date
JP2009278196A (en) 2009-11-26

Similar Documents

Publication Publication Date Title
US8432169B2 (en) Proximity sensor
JP4902390B2 (en) Current detection circuit and current mode switching regulator
US7595620B2 (en) Switching regulator
JP4855664B2 (en) Temperature sensor for sensing temperature and outputting corresponding digital data, and LCD driving integrated circuit having the same
US5504425A (en) Inductive sensor responsive to the distance to a conductive or magnetizable object
CN109917846B (en) Voltage stabilizing circuit, semiconductor device, and power supply device
JP2010045532A (en) Proximity sensor
CN112313517B (en) Current detection device
JP3738014B2 (en) Switching power supply soft start method, output control circuit, and switching power supply
JP2011091572A (en) Variable-gain amplifier circuit
JP2009094994A (en) Proximity sensor
JP2019062647A (en) Power supply device
KR20100063389A (en) Power ic and driving method thereof
JP4981745B2 (en) Proximity sensor
JP4858382B2 (en) Proximity sensor
US8237505B2 (en) Signal amplification circuit
JP2009094993A (en) Proximity sensor
CN112889015B (en) Method and apparatus to improve the safe operating area of a switched mode power supply
JP2019132601A (en) Proximity sensor and detection distance change method
JP2008011585A (en) Switching regulator
CN109687695B (en) Power supply system
JP5598507B2 (en) Power supply
WO2013027342A1 (en) Drive device for electromagnet coil
JP7221633B2 (en) Excitation circuit and electromagnetic flowmeter
JP4161873B2 (en) Capacitance type distance sensor

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100810

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110411

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110419

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110830

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111031

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20120112

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120327

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120420

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150427

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees