JP2683935B2 - Optical sensor level adjustment circuit - Google Patents

Optical sensor level adjustment circuit

Info

Publication number
JP2683935B2
JP2683935B2 JP1025525A JP2552589A JP2683935B2 JP 2683935 B2 JP2683935 B2 JP 2683935B2 JP 1025525 A JP1025525 A JP 1025525A JP 2552589 A JP2552589 A JP 2552589A JP 2683935 B2 JP2683935 B2 JP 2683935B2
Authority
JP
Japan
Prior art keywords
level
output
unit
sensor
counter
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
JP1025525A
Other languages
Japanese (ja)
Other versions
JPH02205732A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1025525A priority Critical patent/JP2683935B2/en
Publication of JPH02205732A publication Critical patent/JPH02205732A/en
Application granted granted Critical
Publication of JP2683935B2 publication Critical patent/JP2683935B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 本発明は光学センサのレベル調整回路に関し、 複数の光学センサを順次切替えて各センサレベルを自
動調整するレベル調整回路を提供することを目的とし、 複数の光学センサを順次切替えるセンサ切替部と、 該切替えられた光学センサ出力のレベルを調整するレ
ベル可変部と、 該レベル可変部のレベル出力を基準電圧と比較する電
圧比較部と、 該電圧比較部の出力値を入力し該出力のレベル状態に
応じ、切替えられた各光学センサ毎複数回のアップカウ
ントを開始し該出力値に応じ前記レベル可変部のレベル
を変化させ、レベル可変後のセンサ出力が基準電圧(1
4)以上となった時アップカウントを停止するカウンタ
部と、 該停止状態のカウンタ部出力値を記憶するメモリ部と
を具えた構成とする。
DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention relates to a level adjusting circuit for an optical sensor, and an object of the present invention is to provide a level adjusting circuit for automatically adjusting each sensor level by sequentially switching a plurality of optical sensors. A sensor switching unit that sequentially switches the sensors, a level varying unit that adjusts the level of the switched optical sensor output, a voltage comparing unit that compares the level output of the level varying unit with a reference voltage, and an output of the voltage comparing unit. Input a value and start up-counting a plurality of times for each optical sensor that has been switched according to the level state of the output, change the level of the level variable unit according to the output value, and use the sensor output after level variation as a reference. Voltage (1
4) A configuration is provided that includes a counter unit that stops up-counting when the above is reached, and a memory unit that stores the output value of the counter unit in the stopped state.

〔産業上の利用分野〕[Industrial applications]

本発明は光学センサのレベル調整回路に関するもので
ある。
The present invention relates to a level adjusting circuit for an optical sensor.

〔従来の技術〕[Conventional technology]

従来、装置,たとえば自動預金支払機(ATM)等の媒
体搬送路において、紙幣等の媒体の通過状態を検出する
ため光学センサが各主要部に配置されている。この場
合、各センサのレベル調整を迅速にかつ均一に行なうこ
とが望まれている。
2. Description of the Related Art Conventionally, an optical sensor is arranged in each main part for detecting a passing state of a medium such as a banknote in a medium conveying path of a device such as an automatic teller machine (ATM). In this case, it is desired to adjust the level of each sensor quickly and uniformly.

第5図は従来例の説明図であり、各センサはそれぞれ
別系としてボリウム調整されている。すなわち、各セン
サ11〜1nは発光素子と受光素子より成り、該受光素子出
力をそれぞれ電圧比較器21〜2nの負端子に入力し、正端
子には各センサ共通に基準電圧4が供給されている。そ
して各センサの負端子側のバイアス回路にボリウム31
3nを設け、それぞれの各センサのレベル調整が各別に行
なわれ、調整後のレベル出力が入力ポート5に入力され
る。
FIG. 5 is an explanatory view of a conventional example, in which each sensor is adjusted as a separate system. That is, each sensor 1 1 to 1 n consists of a light emitting element and a light receiving element, enter a light receiving element output to each negative terminal of the voltage comparator 2 1 to 2 n, the reference voltage 4 is the positive terminal to the common each sensor Is being supplied. The volume 3 1 to the bias circuit of the negative terminal side of each sensor
3 n are provided, the level of each sensor is adjusted individually, and the adjusted level output is input to the input port 5.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

第5図の従来例の構成では、保守点検時には1個ずつ
繰返し確認,調整し直す必要があり、測定装置を各別に
切替え行なうため、調整手数と調整時間を多く要すると
いう欠点があつた。
In the configuration of the conventional example shown in FIG. 5, it is necessary to repeatedly check and readjust one by one at the time of maintenance and inspection, and there is a drawback that it takes a lot of adjustment time and adjustment time because the measuring devices are switched separately.

本発明の目的は、複数の光学センサを順次切替えて各
センサレベルを自動調整するレベル調整回路を提供する
ことにある。
An object of the present invention is to provide a level adjustment circuit that sequentially switches a plurality of optical sensors and automatically adjusts each sensor level.

〔課題を解決するための手段〕[Means for solving the problem]

前記目的を達成するため、第1図の原理説明図に示す
ように、複数の光学センサ11〜1nを順次切替えるセンサ
切替部12と、 該切替えられた光学センサ出力のレベルを調整するレ
ベル可変部13と、 該レベル可変部のレベル出力を基準電圧14と比較する
電圧比較部15と、 該電圧比較部の出力値を入力し該出力のレベル状態に
応じ、切替えられた各光学センサ毎複数回のアップカウ
ントを開始し該出力値に応じ前記レベル可変部のレベル
を変化させ、レベル可変後のセンサ出力が基準電圧(1
4)以上となった時アップカウントを停止するカウンタ
部16と、 該停止状態のカウンタ部出力値を記憶するメモリ部17
とを具えた構成とする。
To achieve the above object, as shown in the principle diagram of Fig. 1, the level adjusting sensor switching unit 12 sequentially switches the plurality of optical sensors 1 1 to 1 n, the level of the optical sensor output is changed該切A variable unit 13, a voltage comparison unit 15 that compares the level output of the level variable unit with a reference voltage 14, and an output value of the voltage comparison unit that is input to each optical sensor that is switched according to the level state of the output. The up-counting is started a plurality of times, the level of the level variable unit is changed according to the output value, and the sensor output after the level is changed is the reference voltage (1
4) A counter section 16 that stops up-counting when the above is reached, and a memory section 17 that stores the output value of the counter section in the stopped state
And the configuration.

〔作用〕[Action]

第1図における基準電圧とレベル可変部13の出力とを
電圧比較部15で比較し、その出力値でカウンタ部16をカ
ウントアツプし、その値をレベル可変部13に戻してレベ
ルを変化するループ状回路により、電圧比較部15はレベ
ル可変後のセンサ出力が基準電圧14以上となった時この
出力値を設定値として記憶させる。そして、正常なカウ
ント以外の場合はエラー信号として記憶させるものであ
る。
A loop for comparing the reference voltage in FIG. 1 and the output of the level varying unit 13 in the voltage comparing unit 15, counting up the counter unit 16 with the output value, returning the value to the level varying unit 13, and changing the level. By the circuit, the voltage comparison unit 15 stores this output value as a set value when the sensor output after the level change becomes equal to or higher than the reference voltage 14. Then, in the case other than the normal count, it is stored as an error signal.

〔実 施 例〕〔Example〕

第2図は本発明の実施例の構成説明図である。第3
図,第4図(a),(b)はその要部の動作説明図を示
す。
FIG. 2 is an explanatory view of the configuration of the embodiment of the present invention. Third
FIG. 4 (a) and FIG. 4 (b) show operation explanatory views of the main part thereof.

ここでは、第1図と同一機能を有する構成には同一番
号を付す。
Here, components having the same functions as those in FIG. 1 are designated by the same reference numerals.

第2図において、複数のセンサ11〜1nの出力をセンサ
切替部のアナログマルチプレクサ12でアドレス切替えを
行ない、レベル可変部13を介して電圧比較器15の負端子
に入れる。アナログマルチプレクサ12のアドレスを切替
えるために、第1図には図示されなかつたクロツク部18
内に設けたカウンタ(2)181とカウンタ(3)182が用
いられる。
In Figure 2, the outputs of the plurality of sensors 1 1 to 1 n performs switching address in the analog multiplexer 12 of the sensor switching section, placed to the negative terminal of the voltage comparator 15 through a level changing unit 13. To switch the address of the analog multiplexer 12, a clock unit 18 not shown in FIG.
The counter (2) 18 1 and the counter (3) 18 2 provided therein are used.

第3図はこのカウンタ(2)181とカウンタ(3)182
を用いたセンサ選択部の動作を示すものである。すなわ
ち、後述する本発明の要部となるカウンタ(1)16とと
もに、カウンタ(2)181にCPたとえば0.5μsのクロツ
クパルスを入力する。同図のカウンタ(2)181にCP
を入力した時のQ出力QAパルスを16進数で表わすとCR
(キヤリイ)出力は図示の波形となる。このCR(キヤリ
イ)をカウンタ(3)182にクロツクとして入れ、基本
出力QAを得、これをフイードバツクしてQB,QCの分周波
形を得て、これらの組合せによりセンサセレクトアドレ
スが得られ、これがCR(キヤリイ)により繰返えされ
る。このようにして作成されたセンサセレクトアドレス
が前記アナログマルチプレクサ12に送られて順次センサ
の振分けが行なわれる。
Figure 3 shows this counter (2) 18 1 and counter (3) 18 2
9 shows the operation of the sensor selection unit using. That is, a CP (for example, a clock pulse of 0.5 μs) is input to the counter (2) 18 1 together with the counter (1) 16 which is a main part of the present invention described later. CP in the counter (2) 18 1 in the figure
Q output QA pulse when input is expressed in hexadecimal is CR
The (carrying) output has the illustrated waveform. The CR (Kiyarii) a counter (3) 18 2 put as clock, to obtain a basic output QA, to obtain QB, a frequency-divided of QC and fed back to this, the sensor select address is obtained by a combination thereof, This is repeated by CR (carry). The sensor select address created in this way is sent to the analog multiplexer 12, and the sensors are sequentially distributed.

また、このセンサセレクトアドレスは、同時に後述す
るメモリ部17のセンサ対応のレジスタ171〜17nにデコー
ダ183を通して送られ、同様のレジスタの振分けが行な
われる。
Further, this sensor select address is simultaneously sent to the registers 17 1 to 17 n corresponding to the sensors of the memory unit 17 described later through the decoder 18 3 and the similar register allocation is performed.

前述のように、電圧比較器15の負端子入力として、こ
のように振分けられたセンサ出力が入力されるととも
に、正端子には基準電圧発生部14内の分圧回路141からV
2,V1の2基準電圧がアナログマルチプレクサ142で外部
ポート61からの信号により切替え供給される。ここで、
V2=4.4Vは媒体のない透過状態の時のレベル、V1=2.2V
は媒体を検出する時のレベルとする。
As described above, the sensor output distributed in this way is input as the negative terminal input of the voltage comparator 15, and the voltage divider circuit 14 1 in the reference voltage generator 14 supplies V
Two reference voltages of 2, V1 are switched and supplied by the analog multiplexer 14 2 according to a signal from the external port 6 1 . here,
V2 = 4.4V is the level in the transparent state without medium, V1 = 2.2V
Is the level at which the medium is detected.

選択されたセンサ出力に対するレベル可変部13は、MP
U19のデータバスと入力ポート51で接続される。また、
カウンタ(1)16の出力をOR回路131を介して戻し、レ
ベル可変部13のレベルを変化する。すなわち、ボリウム
132のタツプをアナログスイツチSで接断し抵抗値を変
化させる。
The level variable unit 13 for the selected sensor output is
Connected to U19 data bus and input port 5 1 . Also,
The output of the counter (1) 16 back through the OR circuit 13 1 changes the level of the variable portion 13. That is, volume
The tap of 13 2 is disconnected by the analog switch S to change the resistance value.

レベル調整時には、基準電圧をV2にセツトし、センサ
出力がV2以下のとき、電圧比較器15の出力は“H"で、カ
ウンタ(1)16はEN(イネーブル)となり、CPの立上り
信号でカウントアツプする。V2を超えると電圧比較器15
の出力は“L"となり、カウンタ(1)16はデータを保持
したまま停止する。
When adjusting the level, set the reference voltage to V2, and when the sensor output is V2 or less, the output of voltage comparator 15 is "H", counter (1) 16 is EN (enable), and it counts with the rising signal of CP. Up. Voltage comparator 15 when V2 is exceeded
Output becomes "L", and the counter (1) 16 stops while holding the data.

また、カウンタ(2)181が15(16進数F)をカウン
トすると、CR(キヤリイ)が出力され、その出力タイミ
ングで各センサに対応したレジスタ部17内のレジスタ17
1〜17nにカウンタ(1)16のカウント値がセツトされ
る。
When the counter (2) 18 1 counts 15 (hexadecimal F), CR (carry) is output, and the register 17 in the register unit 17 corresponding to each sensor is output at the output timing.
The count value of the counter (1) 16 is set to 1 to 17 n .

次に媒体を検出する際には、基準電圧をV1(2.2V)に
セツトしておき、カウンタ(1)16はリセツトされ出力
はすべて“L"となり、カウンタ(3)182にセンサセレ
クトデータをMPU19から直接セツトし、電圧比較器15の
出力値は入力ポート52を介しMPU19により監視される。
Next, when detecting the medium, the reference voltage is set to V1 (2.2V), the counter (1) 16 is reset and all the outputs become "L", and the counter (3) 18 2 receives the sensor select data. was excisional directly from MPU 19, the output value of the voltage comparator 15 is monitored by the MPU 19 via the input port 5 2.

第4図(a),(b)はカウンタ部とレベル可変部の
動作の実例による説明図である。
FIGS. 4 (a) and 4 (b) are explanatory diagrams by an example of the operation of the counter unit and the level varying unit.

同図(a)のカウンタ2のQAに対応し、のレベル
可変部出力,のカウンタ1の出力,の電圧比較器の
出力信号およびのCR(キヤリイ)を示すものである。
It corresponds to the QA of the counter 2 in FIG. 5A, and shows the output of the level variable unit, the output of the counter 1, the output signal of the voltage comparator, and CR (carry).

すなわち、センサ1はカウンタ(1)16で“A"カウン
トで4.4Vに達し、その出力値“A"をレジスタにセツトし
たが、センサ2ではカウントアツプの途中でレベルが上
らなくなつた場合であり、カウントは最後のFまでカウ
ントし、対応するレジスタには“E"をセツトする。これ
はエラー信号を意味し、たとえばセンサ2が汚れ,故障
等で使用不能であることを示す。
That is, when the sensor 1 reaches 4.4V with the "A" count at the counter (1) 16 and the output value "A" is set in the register, but the sensor 2 level does not rise during the counting up. The count continues until the last F, and "E" is set in the corresponding register. This means an error signal and indicates that the sensor 2 is unusable due to dirt, failure or the like.

同図(b)はレベル可変部すなわち電圧比較器15のセ
ンサ入力のボリウム構成例を示したものである。
FIG. 2B shows an example of a volume configuration of the sensor input of the level variable unit, that is, the voltage comparator 15.

同図(b)はボリウムを図示のようにタツプで分割
し、その間にアナログスイツチASW1〜4を設け、カウン
タ(1)16の出力データによりのデータ例に示すよう
にASW1〜4に接断信号を送り、その結果それぞれのデー
タに対応する合成抵抗値が与えられ、同図(a)のレ
ベル可変部出力に示すような波形が得られる。
In the same figure (b), the volume is divided by taps as shown, and analog switches ASW1 to 4 are provided between them, and the disconnection signals are supplied to ASW1 to ASW4 as shown in the data example of the output data of the counter (1) As a result, a combined resistance value corresponding to each data is given, and a waveform as shown in the output of the level variable portion of FIG.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、複数のセンサ
をアドレスにより振分け、順次基準電圧を与えてレベル
変化を行ない、正常に到達した出力値と異常状態をメモ
リすることにより、多数のセンサのセンサ状態の自動調
整を高速に行なうことができる。
As described above, according to the present invention, a plurality of sensors are sorted by address, the reference voltage is sequentially applied to change the level, and the normally reached output value and the abnormal state are memorized. The sensor state can be automatically adjusted at high speed.

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

第1図は本発明の原理説明図、第2図は実施例の構成説
明図、第3図は実施例のセンサ選択部の詳細説明図、第
4図は実施例のカウンタ部とレベル可変部の詳細説明
図、第5図は従来例の説明図であり、図中11〜1nはセン
サ、12はセンサ切替部、13はレベル可変部、14は基準電
圧発生部、15は電圧比較部、16はカウンタ部、17はメモ
リ部、18はクロツク部、19はMPUを示す。
FIG. 1 is a diagram for explaining the principle of the present invention, FIG. 2 is a diagram for explaining the configuration of the embodiment, FIG. 3 is a diagram for explaining the details of the sensor selecting unit of the embodiment, and FIG. 4 is a counter unit and a level varying unit of the embodiment. 5 is a detailed explanatory view of the conventional example, in which 1 1 to 1 n are sensors, 12 is a sensor switching unit, 13 is a level changing unit, 14 is a reference voltage generating unit, and 15 is a voltage comparison unit. Section, 16 is a counter section, 17 is a memory section, 18 is a clock section, and 19 is an MPU.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の光学センサ(11〜1n)を順次切替え
るセンサ切替部(12)と、該切替えられた光学センサ出
力のレベルを調整するレベル可変部(13)と、該レベル
可変部のレベル出力を基準電圧(14)と比較する電圧比
較部(15)と、該電圧比較部の出力値を入力し、該出力
のレベル状態に応じ、切替えられた各光学センサ毎複数
回のアップカウントを開始し該出力値に応じ前記レベル
可変部のレベルを変化させ、レベル可変後のセンサ出力
が基準電圧(14)以上となった時アップカウントを停止
するカウンタ部(16)と、 該停止状態のカウンタ部出力値を記憶するメモリ部(1
7)とを具え、 調整時、該メモリ部に記憶された各光学センサの出力値
によりレベルがそれぞれ設定されるようにしたことを特
徴とする光学センサレベル調整回路。
1. A sensor switching unit (12) for sequentially switching a plurality of optical sensors (1 1 to 1 n ), a level variable unit (13) for adjusting the level of the switched optical sensor output, and the level variable. A voltage comparator (15) that compares the level output of the unit with the reference voltage (14) and the output value of the voltage comparator are input, and a plurality of times are output for each optical sensor that is switched according to the level state of the output. A counter section (16) for starting up-counting, changing the level of the level variable section according to the output value, and stopping up-counting when the sensor output after level-changing becomes a reference voltage (14) or more; Memory section (1 that stores the output value of the counter section in the stopped state
An optical sensor level adjusting circuit comprising: 7), wherein the level is set by the output value of each optical sensor stored in the memory section during adjustment.
【請求項2】前記カウンタ部(16)からの出力値に応
じ、前記レベル可変部のレベルを変化させる時正常な出
力値が得られない時は前記メモリ部(17)にエラー信号
を記憶するようにしたことを特徴とする請求項第1項記
載の光学センサレベル調整回路。
2. An error signal is stored in the memory unit (17) when a normal output value is not obtained when the level of the level changing unit is changed according to the output value from the counter unit (16). The optical sensor level adjusting circuit according to claim 1, characterized in that.
JP1025525A 1989-02-03 1989-02-03 Optical sensor level adjustment circuit Expired - Fee Related JP2683935B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1025525A JP2683935B2 (en) 1989-02-03 1989-02-03 Optical sensor level adjustment circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1025525A JP2683935B2 (en) 1989-02-03 1989-02-03 Optical sensor level adjustment circuit

Publications (2)

Publication Number Publication Date
JPH02205732A JPH02205732A (en) 1990-08-15
JP2683935B2 true JP2683935B2 (en) 1997-12-03

Family

ID=12168466

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1025525A Expired - Fee Related JP2683935B2 (en) 1989-02-03 1989-02-03 Optical sensor level adjustment circuit

Country Status (1)

Country Link
JP (1) JP2683935B2 (en)

Also Published As

Publication number Publication date
JPH02205732A (en) 1990-08-15

Similar Documents

Publication Publication Date Title
KR100660728B1 (en) System for controlling voltage balancing in a plurality of litium-ion cell battery packs and method thereof
US4583189A (en) Microprocessor-based scan-mode keying circuit
US5397999A (en) Evaluation apparatus for power supply system
US5825648A (en) Backup system for a time of day clock in an electronic device
JP2683935B2 (en) Optical sensor level adjustment circuit
US5373224A (en) Method and apparatus for varying the power in a load connected to the mains
GB2033618A (en) Control of infusion
EP1223766B1 (en) Method and apparatus for disabling a spatial light modulator
US7463309B2 (en) Data slicer for generating a reference voltage
US4780681A (en) Digital phase locked loop using fixed frequency oscillator and simulated time-shifting
JP2683935C (en)
US3031622A (en) Time switching arrangement comprising selectively adjustable counting means
JP3043940B2 (en) Heat detector
US20060202946A1 (en) Channel data setting circuit and light emitting element drive circuit using the same
JPS6259531B2 (en)
KR100263924B1 (en) Reset signal generating device
JP2963501B2 (en) Automatic delay time adjustment delay circuit
JP3019559B2 (en) Driving circuit and driving method for impact head
JPS5952324A (en) Detecting circuit for service interruption and its recovery
KR0166938B1 (en) Rapid and ordinary charging device and its method
KR19990052999A (en) LCD screen brightness control device and method
KR0153050B1 (en) Charging/discharging time reduction circuit of rc low pass filter
JPS5841709B2 (en) Clamps
SU1078610A1 (en) Device for measuring duration transient process
KR890004371B1 (en) Checking ability of resolution

Legal Events

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