Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0687066B2 - Endless volume output capture device - Google Patents
[go: Go Back, main page]

JPH0687066B2 - Endless volume output capture device - Google Patents

Endless volume output capture device

Info

Publication number
JPH0687066B2
JPH0687066B2 JP24455488A JP24455488A JPH0687066B2 JP H0687066 B2 JPH0687066 B2 JP H0687066B2 JP 24455488 A JP24455488 A JP 24455488A JP 24455488 A JP24455488 A JP 24455488A JP H0687066 B2 JPH0687066 B2 JP H0687066B2
Authority
JP
Japan
Prior art keywords
output
voltage
endless
converter
endless volume
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 - Lifetime
Application number
JP24455488A
Other languages
Japanese (ja)
Other versions
JPH0293372A (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.)
Kenwood KK
Original Assignee
Kenwood KK
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 Kenwood KK filed Critical Kenwood KK
Priority to JP24455488A priority Critical patent/JPH0687066B2/en
Publication of JPH0293372A publication Critical patent/JPH0293372A/en
Publication of JPH0687066B2 publication Critical patent/JPH0687066B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Adjustable Resistors (AREA)
  • Control Of Amplification And Gain Control (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) この発明はリードアウトオシロスコープ等に利用され
る。エンドレスボリュームの出力取り込み装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION (Industrial field of application) The present invention is used for a readout oscilloscope and the like. The present invention relates to an output capturing device for an endless volume.

(従来の技術) 従来のボリュームの出力取り込み装置は第5図に示す如
く、マイクロコンピュータ20からの出力を受けたコント
ローラ21はD/A変換器22にデジタルデータを供給する。
可変抵抗器23でポテンショメータを構成し、ポテンショ
メータからの出力電圧とD/A変換器22から出力されるア
ナログ電圧とを比較器24に供給して比較し、比較器24の
出力は入力ポート25を介してマイクロコンピュータ20に
供給する。
(Prior Art) As shown in FIG. 5, in a conventional volume output capturing device, a controller 21 receiving an output from a microcomputer 20 supplies digital data to a D / A converter 22.
A potentiometer is configured by the variable resistor 23, and the output voltage from the potentiometer and the analog voltage output from the D / A converter 22 are supplied to the comparator 24 for comparison, and the output of the comparator 24 is the input port 25. It is supplied to the microcomputer 20 via.

マイクロコンピュータ20はコントラー21によりD/A変換
器22に供給するデジタルデータを順次変更させて、比較
器22の出力がたとえば高電位から低電位に変るのを検出
し、比較器24の出力が高電位から低電位に変わったとき
のD/A変換器への入力デジタルデータで可変抵抗器23の
摺動子位置を検出していた。
The microcomputer 20 sequentially changes the digital data supplied to the D / A converter 22 by the controller 21, detects that the output of the comparator 22 changes from high potential to low potential, and the output of the comparator 24 becomes high. The slider position of the variable resistor 23 was detected by the input digital data to the D / A converter when the potential changed to the low potential.

(発明が解決しようとする課題) 上記した如き従来の装置によると、可変抵抗器が多回転
型のものでも適用が可能であるが、可変抵抗器がエンド
レスの場合は、摺動子の異なる回転位置において同一の
出力電圧が発生する多値関数となり、摺動子の回転位置
と出力電圧とが一対一で対応しない問題点があり、エン
ドレスボリュームの場合にはそのまま適用できない。
(Problems to be Solved by the Invention) According to the conventional device as described above, the variable resistor can be applied to a multi-rotation type, but when the variable resistor is an endless type, the rotation of the slider is different. This is a multi-valued function in which the same output voltage is generated at the position, and there is a problem that the rotational position of the slider does not correspond to the output voltage on a one-to-one basis.

また、ポテンショメータの出力電圧が隣接するビット間
の出力電圧に設定されている場合、ノイズ等が存在する
とき、ポテンショメータの出力電圧を変換したデジタル
データは第6図の如くg、hと変動して、不安定なデジ
タルデータとなる。この結果、デジタルデータでポテン
ショメータの出力電圧をデジタル値で表示するとき表示
が変動してしまう問題点があった。
Further, when the output voltage of the potentiometer is set to the output voltage between adjacent bits, when noise or the like exists, the digital data converted from the output voltage of the potentiometer fluctuates as g and h as shown in FIG. , Becomes unstable digital data. As a result, when the output voltage of the potentiometer is displayed as a digital value with digital data, there is a problem that the display fluctuates.

このためリードアウトオシロスコープのカーソル表示に
使用した場合、表示が変動して正確な測定ができないと
いう問題点が生ずる。
Therefore, when the cursor is used in the readout oscilloscope, the display fluctuates and accurate measurement cannot be performed.

この発明はエンドレスボリュームの出力を取り込むこと
ができるエンドレスボリュームの出力取り込み装置を提
供することを目的とする。
It is an object of the present invention to provide an endless volume output capturing device capable of capturing the output of an endless volume.

(課題を解決するための手段) この発明は上記の問題点を解決するために次の如く構成
した。
(Means for Solving the Problems) The present invention has the following constitution in order to solve the above problems.

この発明はエンドレスボリュームの出力取り込み装置
は、エンドレスボリュームと、エンドレスボリュームか
らの出力を入力として受け所定期間にわたって通過させ
る第1アナログスイッチと、D/A変換器の出力を入力と
して受け第1アナログスイッチが入力が通過させていな
い期間においてD/A変換器の出力を通過させる第2アナ
ログスイッチと、エンドレスボリュームの摺動子位置検
出のためのデータを格納する第1記憶手段と、エンドレ
スボリュームの摺動子位置検出出力データを格納する第
2記憶手段と、第1アナログスイッチがエンドレスボリ
ュームからの出力を通過させている期間第1記憶手段に
格納されているデータを受けてアナログ信号に変換した
D/A変換器の出力電圧のレベルと第1アナログスイッチ
によって選択されたエンドレスボリュームの出力のレベ
ルとを比較し第1記憶手段と協同してエンドレスボリュ
ームの摺動子位置を実質的に検出する比較器と、第2ア
ナログスイッチが入力を通過させている期間第2記憶手
段に格納されているデータを受けてアナログ信号に変換
したD/A変換器の出力電圧を保持する電圧保持回路と、
第1および第2のアナログスイッチの入力通過期間を制
御し、かつ第1記憶手段のデータに基づいてエンドレス
ボリュームの摺動子位置が所定量を超えて変化したこと
を比較器の出力に基づいて判別したとき第2記憶手段の
格納データを所定値変化させる制御手段とを備えたもの
である。
The present invention provides an endless volume output capturing device, an endless volume, a first analog switch that receives an output from the endless volume as an input and passes the output for a predetermined period, and a first analog switch that receives an output of a D / A converter as an input. A second analog switch that allows the output of the D / A converter to pass while the input does not pass, a first storage unit that stores data for detecting the slider position of the endless volume, and a slide of the endless volume. Second storage means for storing output data for detecting the pendulum position, and data stored in the first storage means for a period during which the first analog switch passes the output from the endless volume and converted into an analog signal.
The output voltage level of the D / A converter is compared with the output level of the endless volume selected by the first analog switch, and the slider position of the endless volume is substantially detected in cooperation with the first storage means. A comparator and a voltage holding circuit that holds the output voltage of the D / A converter that receives the data stored in the second storage means and converts it into an analog signal while the second analog switch is passing the input,
It is based on the output of the comparator that the input pass periods of the first and second analog switches are controlled, and that the slider position of the endless volume has changed by more than a predetermined amount based on the data of the first storage means. And a control means for changing the stored data of the second storage means by a predetermined value when the determination is made.

(作用) この発明のエンドレスボリュームの出力取り込み装置
は、第1アナログスイッチを介してエンドレスボリュー
ムの出力電圧と第1記憶手段に記憶のデータをD/A変換
器で変換したアナログ電圧とが比較器で比較されて、比
較器の出力によりエンドレスボリュームの摺動子位置が
変化したことが検出され、エンドレスボリュームの摺動
子位置が所定量を超えて変化したと検出されたとき、第
2記憶手段の記憶内容が所定値変化させられる。所定値
変化させられた第2記憶手段の記憶内容はD/A変換器で
アナログ電圧に変換されて、電圧保持回路に供給されて
電圧保持回路で保持される。
(Operation) In the output capturing device of the endless volume of the present invention, the output voltage of the endless volume via the first analog switch and the analog voltage obtained by converting the data stored in the first storage means by the D / A converter are comparators. And it is detected by the output of the comparator that the slider position of the endless volume has changed, and it has been detected that the slider position of the endless volume has changed by more than a predetermined amount, the second storage means. The stored content of is changed by a predetermined value. The stored content of the second storage means, which has been changed by a predetermined value, is converted into an analog voltage by the D / A converter, supplied to the voltage holding circuit, and held by the voltage holding circuit.

したがって、エンドレスボリュームの摺動子位置を所定
量超えて変化させたとき、電圧保持回路の出力電圧は所
定値に対応する電圧だけ変化させられる。しかるにエン
ドレスボリュームの摺動子位置を、所定量を超えて移動
させなければ電圧保持回路の出力電圧は所定値に対応す
る電圧変化させられないため、ノイズ等によってエンド
レスボリュームの出力電圧が前記所定量未満の値だけ変
化したときは、電圧保持回路の出力電圧に影響を及ぼす
ことはなく、ヒステリシスを持たせたのと等価となる。
Therefore, when the slider position of the endless volume is changed by a predetermined amount, the output voltage of the voltage holding circuit is changed by the voltage corresponding to the predetermined value. However, unless the slider position of the endless volume is moved beyond the predetermined amount, the output voltage of the voltage holding circuit cannot be changed by the voltage corresponding to the predetermined value. When the value is changed by a value less than, it does not affect the output voltage of the voltage holding circuit and is equivalent to having a hysteresis.

また、第1アナログスイッチと第2アナログスイッチと
は共にオン状態にされることはないために、D/A変換器
は1つですむとになる。
Moreover, since neither the first analog switch nor the second analog switch is turned on, only one D / A converter is required.

(実施例) 以下、この発明を実施例により説明する。(Examples) Hereinafter, the present invention will be described with reference to Examples.

第1図はこの発明の一実施例の構成を示すブロック図で
あり、第2図はこの発明の一実施例に使用するエンドレ
スボリュームの構成を示す模式図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a schematic diagram showing the configuration of an endless volume used in an embodiment of the present invention.

エンドレスボリュームは第2図(a)の模式斜視図およ
び第2図(b)の模式正面図に示す如く、摺動子11およ
び12の回転軸10を共通にして、一部開放の円周に沿って
形成された抵抗13および14を開放部位置が180度ずれる
ように設けて構成してある。ここで摺動子11は抵抗13上
を摺動し、摺動子12は抵抗14上を摺動するようにしてあ
る。いま仮りに抵抗13からの出力をA相出力、抵抗14か
らの出力をB相出力と称呼する。抵抗13の両者に電圧
を、抵抗14の両端にも同一電圧を印加し、ポテンショメ
ータとして使用する。そこで摺動子11からの出力は第3
図(a)の(a−1)に示す如くであり、摺動子12から
の出力は第3図(a)の(a−2)に示す如くであっ
て、両出力間に180度の位相差を有している。第3図
(a)において“D"は抵抗14(13)の開放部の長さに対
応しており、矢印“e"は回転軸10を反時計方向に回転さ
せたときの出力電圧の変化方向を、矢印“b"は回転軸10
を時計方向に回転させたときの出力電圧の変化方向を示
し、矢印“a"〜“d"はA相電圧をB相電圧との切替位置
を説明するためのものである。
As shown in the schematic perspective view of FIG. 2 (a) and the schematic front view of FIG. 2 (b), the endless volume has a rotating shaft 10 of the sliders 11 and 12 in common and a partially open circumference. The resistors 13 and 14 formed along the structure are provided such that the positions of the open portions are displaced by 180 degrees. Here, the slider 11 slides on the resistor 13, and the slider 12 slides on the resistor 14. Now, suppose that the output from the resistor 13 is called an A-phase output and the output from the resistor 14 is called a B-phase output. A voltage is applied to both of the resistors 13 and the same voltage is applied to both ends of the resistor 14 to be used as a potentiometer. Therefore, the output from the slider 11 is the third
The output from the slider 12 is as shown in (a-2) of FIG. 3 (a), as shown in (a-1) of FIG. It has a phase difference. In Fig. 3 (a), "D" corresponds to the length of the open portion of the resistor 14 (13), and the arrow "e" shows the change in output voltage when the rotary shaft 10 is rotated counterclockwise. Direction, arrow “b” is axis of rotation 10
Shows the changing direction of the output voltage when the is rotated clockwise, and the arrows "a" to "d" are for explaining the switching position between the A-phase voltage and the B-phase voltage.

なお、第3図(b)は第3図(a)の一部を拡大して示
したものであり、第3図(b)において“E"は回転軸10
の時計方向回転のときの余裕度を、“F"は回転軸10の反
応時計方向回転のときの余裕度を示しており、余裕度
“E"および“F"が無いときは回転軸を早く回したとき相
の切り替えに支障を来す場合があるためである。また、
第3図(b)において示した各数字は後記するD/A変換
器(12ビットと仮定して)に入力するデジタル値を10進
数で示してある。
3 (b) is an enlarged view of a part of FIG. 3 (a). In FIG. 3 (b), "E" indicates the rotary shaft 10.
"F" indicates the allowance when rotating clockwise, and "F" indicates the allowance when reacting clockwise rotation of the rotating shaft 10. If there are no allowances "E" and "F", the rotating shaft moves faster. This is because it may interfere with the phase switching when turned. Also,
Each number shown in FIG. 3 (b) is a decimal number indicating a digital value input to a D / A converter (assuming 12 bits) described later.

また第2図(a)に示したエンドレスボリュームに対し
て第2図(c)に示す如く摺動子11Aおよび12Aの回転軸
10Aを共通にし、摺動子11Aと摺動子12を180度の角度に
設け、かつ一部開放の円周に沿って形成された抵抗13A
および14Aを開放部位置が第1方向になるように設けた
エンドレスボリュームでも同一である。ここで摺動子11
Aは抵抗13A上を摺動し、摺動子12Aは抵抗14Aを摺動する
ようにしてある。
Further, as shown in FIG. 2 (c), the rotary shafts of the sliders 11A and 12A are different from the endless volume shown in FIG. 2 (a).
10A is common, the slider 11A and the slider 12 are provided at an angle of 180 degrees, and the resistor 13A is formed along a partially open circumference.
The same applies to an endless volume provided with 14A and 14A so that the opening position is in the first direction. Here slider 11
A slides on the resistor 13A, and the slider 12A slides on the resistor 14A.

本実施例においては、マイクロコンピュータ20Aからの
出力を受けたコントローラ21AはD/A変換器22にデジタル
データを供給する。D/A変換器22で変換されたアナログ
電圧とアナログスイッチ26を介して出力されたエンドレ
スボリュームからの出力電圧とを比較器24で比較し、比
較器24の出力は入力ポート25を介して、マイクロコンピ
ュータ20Aに供給する。
In this embodiment, the controller 21A which receives the output from the microcomputer 20A supplies digital data to the D / A converter 22. The analog voltage converted by the D / A converter 22 and the output voltage from the endless volume output via the analog switch 26 are compared by the comparator 24, and the output of the comparator 24 is input via the input port 25. Supply to the microcomputer 20A.

マイクロコンピュータ20Aはコントローラ21AによりD/A
変換器22に供給するデジタルデータを変更させて、比較
器24の出力が変るのを検出する。なお、アナログスイッ
チ26にはエンドレスボリュームJ,K,L,Mの出力が供給し
てあり、マイクロコンピュータ20Aからの出力によりコ
ントローラ21Aを介してアナログスイッチ26を切替制御
し、アナログスイッチ26によりエンドレスボリュームJ,
K,L,Mの出力を切替えて出力させる。また、マイクロコ
ンピュータ20Aからの出力によりコントローラ21Aを介し
てアナログスイッチ27を切替制御し、D/A変換器22で変
換されたアナログ電圧を、選択した電圧保持回路28,29,
30または31に供給する。ここで電圧保持回路28はエンド
レスボリュームJに、電圧保持回路29はエンドレスボリ
ュームKに、電圧保持回路30はエンドレスボリュームL
に、電圧保持回路31はエンドレスボリュームMにそれぞ
れ対応させてあり、電圧保持回路28〜31はD/A変換器22
で変換されたアナログ電圧を保持する。
Microcomputer 20A is D / A by controller 21A
A change in the output of the comparator 24 is detected by changing the digital data supplied to the converter 22. Outputs of endless volume J, K, L, M are supplied to the analog switch 26, and the analog switch 26 is switched and controlled by the output from the microcomputer 20A via the controller 21A. J,
The output of K, L, M is switched and output. Further, the output from the microcomputer 20A controls the switching of the analog switch 27 via the controller 21A, and the analog voltage converted by the D / A converter 22 is selected by the voltage holding circuits 28, 29,
Supply to 30 or 31. Here, the voltage holding circuit 28 is an endless volume J, the voltage holding circuit 29 is an endless volume K, and the voltage holding circuit 30 is an endless volume L.
In addition, the voltage holding circuit 31 is made to correspond to the endless volume M, and the voltage holding circuits 28 to 31 are D / A converters 22.
Holds the analog voltage converted by.

ここでマイクロコンピュータ20Aはコントローラ21Aを介
してアナログスイッチ26,27の切替信号の供給およびD/A
変換器22の被変換デジタルデータの供給をし、D/A変換
器22へ比較器24の比較電圧に対応するデジタルデータを
供給しているとき比較器24の出力の変化からエンドレス
ボリュームの出力電圧が変化したことを検出している。
Here, the microcomputer 20A supplies the switching signals of the analog switches 26 and 27 and the D / A via the controller 21A.
When the converted digital data of the converter 22 is supplied and the digital data corresponding to the comparison voltage of the comparator 24 is supplied to the D / A converter 22, the output voltage of the endless volume changes from the change in the output of the comparator 24. Has been detected.

アナログスイッチ26はマイクロコンピュータ20Aの出力
によりコントローラ21Aを介して切替えられ、エンドレ
スボリュームの回転軸が回されたとき、回転軸が回され
たことは比較器24の出力の変化によりマイクロコンピュ
ータ20Aにより検出され、マイクロコンピュータ20AはD/
A変換器22に異なるデジタルデータを供給する。一方、D
/A変換器22へ出力しているデジタルデータが電圧保持回
路28〜31の保持電圧に対するものであるときは、アナロ
グスイッチ26による全てのエンドレスボリュームJ〜M
お選択は行なわない。
The analog switch 26 is switched by the output of the microcomputer 20A via the controller 21A, and when the rotary shaft of the endless volume is rotated, the fact that the rotary shaft is rotated is detected by the microcomputer 20A by a change in the output of the comparator 24. The microcomputer 20A is D /
Different digital data is supplied to the A converter 22. On the other hand, D
When the digital data output to the / A converter 22 is for the holding voltage of the voltage holding circuits 28 to 31, all the endless volumes J to M by the analog switch 26 are output.
Do not make a selection.

このため、D/A変換器22はエンドレスボリュームからの
出力電圧、すなわちエンドレスボリュームの回転軸を回
転させたかの判断のときと、エンドレスボリュームの回
転軸の回転量にともなう電圧を電圧保持回路28〜31に供
給するときとで時分割的に切替えられている。
Therefore, the D / A converter 22 determines the output voltage from the endless volume, that is, the voltage depending on the rotation amount of the rotation shaft of the endless volume and the rotation amount of the rotation shaft of the endless volume. It is switched in a time division manner when it is supplied to.

以下、D/A変換器22を12ビットのD/A変換器として説明す
る。
Hereinafter, the D / A converter 22 will be described as a 12-bit D / A converter.

つぎに本実施例の作用について第4図(a)にしたがっ
て説明する。
Next, the operation of this embodiment will be described with reference to FIG.

電源投入時には、電圧保持回路28〜31にそれぞれ電圧を
設定するためにアナログスイッチ27の切替と同期して、
D/A変換器22にそれぞれ対応するデジタルデータを供給
する。この結果、電圧保持回路28〜31は初期電圧または
電圧投入前における電圧遮断時直前の電圧に設定される
(ステップS1)。ステップS1に続いてアナログスイッチ
27への切替信号の出力を禁止する(ステップS2)。ステ
ップS2の実行によって電圧保持回路28〜31の保持電圧は
維持される。
When the power is turned on, in synchronization with the switching of the analog switch 27 to set the voltages in the voltage holding circuits 28 to 31, respectively,
The digital data corresponding to each D / A converter 22 is supplied. As a result, the voltage holding circuit 28 to 31 is set to a voltage immediately before the time of the voltage cut-off before the initial voltage or voltage is turned on (step S 1). Step S 1 followed by analog switch
The output of the switching signal to 27 is prohibited (step S 2 ). The holding voltage of the voltage holding circuits 28 to 31 is maintained by performing step S 2 .

ステップS2に続いてアナログスイッチ26に切替信号を供
給してエンドレスボリュームJ〜Mの1つを選択する
(ステップS3)。ステップS3に続いて選択されたエンド
レスボリュームの摺動子の現在位置がチェックされる
(ステップS4)。ステップS4は第4図(b)に示す如く
である。
Following step S 2 , a switching signal is supplied to the analog switch 26 to select one of the endless volumes J to M (step S 3 ). The current position of the subsequently slider selected endless volumes step S 3 is checked (step S 4). Step S 4 is as shown in FIG. 4 (b).

エンドレスボリュームの摺動子の現在位置のチェックに
ついて説明する。
The check of the current position of the slider of the endless volume will be described.

まずエンドレスボリュームからの出力電圧がA相の“50
〜4050"間にあるかがチェックされる(ステップS41)。
ここで“50",“4050"等は12ビットデジタルデータを10
進数で示した値を示しており、D/A変換器22への入力デ
ジタルデータを10進数で示した値と同じであり、以下同
様である。ステップS41においてエンドレスボリューム
からの出力電圧1相の“50〜4050"の間にあるときは、
ステップS41に続いてセンター値“2050"より高い値が否
かがチェックされる(ステップS42)。ステップS42にて
高い値であると判定されると順次次のセンタ値を基準し
て現在位置が検出される(ステップS43)。たとえばセ
ンタ値を“3050"として、これより高いか否かがチェッ
クされ、高いときにはセンタ値を“3550"としてこれよ
り高いか否かがチェックされる。また、センター値“30
50"以下のときはセンタ値を“2550"としてこれより高い
か否かがチェックされる。以下同様にしてエンドレスボ
リュームの出力電圧を検出する。ステップS43で検出さ
れたエンドレスボリュームの出力電圧はD/A変換器22へ
加えられるデジタルデータ値でマイクロコンピュータ20
Aの現在位置メモリに記憶される(ステップS44)。
First, the output voltage from the endless volume is "50" of A phase.
~4050 "there between is checked (step S 41).
Here, "50", "4050", etc. are 10 bits of 12-bit digital data.
The values are shown in decimal notation, the input digital data to the D / A converter 22 is the same as the values in decimal notation, and so on. In step S 41 , when the output voltage from the endless volume is between “50-4050” of one phase,
Following step S 41 , it is checked whether or not there is a value higher than the center value “2050” (step S 42 ). If it is determined to be a high value in step S 42, the current position is sequentially detected with reference to the next center value (step S 43 ). For example, the center value is set to "3050" and it is checked whether it is higher than this, and when it is high, the center value is set to "3550" and it is checked whether it is higher than this. In addition, the center value "30
50 is checked whether higher than this "is the center value when:" the 2550 ". Detects the output voltage of the endless volume in the same manner. The output voltage of the detected endless volumes in step S 43 is The microcomputer 20 is a digital data value applied to the D / A converter 22.
It is stored in the current position memory of A (step S44 ).

ステップS42において、センタ値“2050"以下のときには
センタ値を“1050"として、これより高いか否かがチェ
ックされ、高いときはセンタ値を“1550"としてこれよ
り高いか否かがチェックされ、またセンタ値が“1050"
以下のときはセンタ値を“550"としてこれより高いか否
かがチェックされる。以下同様にしてエンドレスボリュ
ームの出力電圧を検出し(ステップS45)、次いでステ
ップS44が実行される。
In step S42 , when the center value is "2050" or less, the center value is set to "1050" and it is checked whether it is higher, and when it is higher, the center value is set to "1550" and it is checked whether it is higher than this. , And the center value is "1050"
In the following cases, the center value is set to "550" and it is checked whether it is higher than this. In the same manner, the output voltage of the endless volume is detected (step S45 ), and then step S44 is executed.

ステップS41にてA相“50〜4050"の間にないときは、B
相中にてステップS41〜S43およびステップS45と同様に
エンドレスボリュームの出力電圧が検出され(ステップ
S46)、続いてステップS44が実行される。
If not between A-phase "50-4050" in step S 41, B
During the phase, the output voltage of the endless volume is detected as in steps S 41 to S 43 and step S 45 (steps
S46 ) and then step S44 are executed.

ステップS4に続いて、割り込みがないときは、エンドレ
スボリュームの摺動子位置がその前の摺動子位置から移
動したがチェックされ(ステップS5)、移動していない
と判別されたときは後記するステップS9に示す如く電圧
保持回路用のデジタルデータがD/A変換器22にセットさ
れる。
If there is no interrupt following step S 4 , it is checked that the slider position of the endless volume has moved from the previous slider position (step S 5 ), and if it is determined not to move, Digital data for the voltage holding circuit is set in the D / A converter 22 as shown in step S 9 described later.

ステップS5において移動したと判別されたときは電圧保
持回路用データメモリの記憶内容が変更され(ステップ
S6)、次いでエンドレスボリュームの摺動子位置が有効
範囲内かがチェックされ(ステップS7)、有効範囲内と
判別されたときは後記するステップS9が実行される。ス
テップS7において有効範囲外と判別されたときはエンド
レスボリュームの出力電圧がA相とB相とが切替えられ
て(ステップS8)、次いでステップS4が実行される。
If it is judged to have moved in step S 5 has stored contents of the data memory for the voltage holding circuit is changed (step
S 6 ), then it is checked whether the slider position of the endless volume is within the valid range (step S 7 ), and if it is determined that it is within the valid range, step S 9 described later is executed. When it is determined that the effective range in step S 7 is the output voltage of the endless volume is switched and the A-phase and B-phase (step S 8), then step S 4 is executed.

また、割り込みがあったとき、電圧保持回路用データが
電圧保持回路用データメモリにセットされ(ステップ
S9)、続いてセットされた電圧保持回路用データがD/A
変換器22へ出力されて(ステップS10)、アナログ電圧
に変換され、アナログスイッチ27を通して選択された電
圧保持回路に供給される。
When an interrupt occurs, the voltage holding circuit data is set in the voltage holding circuit data memory (step
S 9 ), then the data for the voltage holding circuit that was set is D / A
Is output to the converter 22 (step S 10), is converted to an analog voltage, is supplied to the voltage holding circuit selected via the analog switch 27.

ここでステップS5〜S9について詳細に説明する。(第4
図(c)〜(e)参照) ステップS5の実行に入ると、エンドレスボリュームの摺
動子位置をデジタルデータで記憶している現在位置メモ
リ(ステップS44参照)の記憶内容をレジスタに転送
し、レジスタに、置数された値に“+30"し(ステップS
51)、レジスタの記憶内容がD/A変換器22に供給されて
(ステップS52)、変換アナログ電圧は比較器24によっ
て、アナログスイッチ26によって選択されているエンド
レスボリュームからの出力電圧と比較される(ステップ
S53)。ステップS53における比較の結果、エンドレスボ
リュームからの出力電圧がD/A変換器22の変換アナログ
電圧より大きいとき、すなわち摺動子が“+30"以上移
動しているとき判別されたときはステップS60が実行さ
れる(ステップS54)。ステップS54において摺動子が
“+30"未満の移動と判別されたときは、現在位置メモ
リの記憶内容をレジスタに転送し、レジスタに置数され
た値に“−30"し(ステップS55)、レジスタの記憶内容
がD/A変換器22に供給されて(ステップS56)、変換アナ
ログ電圧は比較器24によって、アナログスイッチ26によ
り選択されたエンドレスボリュームからの出力電圧と比
較される(ステップS57)。
Here, the step S 5 to S 9 will be described in detail. (4th
Once the execution of FIG. (C) ~ (e) refer) Step S 5, transfers the stored contents of the current position memory (see step S 44) which stores the slider position of the endless volume digital data in the register Then, "+30" is added to the registered value in the register (step S
51 ), the stored contents of the register are supplied to the D / A converter 22 (step S52 ), and the converted analog voltage is compared with the output voltage from the endless volume selected by the analog switch 26 by the comparator 24. (Step
S 53 ). As a result of the comparison in step S 53 , when the output voltage from the endless volume is larger than the converted analog voltage of the D / A converter 22, that is, when it is determined that the slider moves by “+30” or more, step S 53 60 is executed (step S 54 ). If it is determined in step S54 that the slider has moved less than "+30", the stored contents of the current position memory are transferred to the register and "-30" is added to the value registered in the register (step S55 ), The stored contents of the register are supplied to the D / A converter 22 (step S 56 ), and the converted analog voltage is compared with the output voltage from the endless volume selected by the analog switch 26 by the comparator 24 ( Step S57 ).

ステップS57における比較の結果、前者が後者より小さ
いとき、すなわち摺動子が“−30"以上移動していると
判別されたときはステップS70が実行される(ステップS
58)。
Step S 57 compares the result of the former is smaller than the latter, i.e. the slider is when it is determined to be moving "-30" or more is performed step S 70 (step S
58 ).

ステップS58において摺動子が“−30"未満の移動と判別
されたときは摺動子が移動していないとみなされてステ
ップS9が実行れ、電圧保持回路用メモリの記憶内容は変
更されず、電圧保持回路用データメモリの記憶内容がD/
A変換器22に供給されてアナログ電圧に変換される(ス
テップS10)。ステップS10において変換されたD/A変換
器22の変換アナログ出力電圧はアナログスイッチ27によ
って選択された電圧保持回路に印加される。この場合に
おいてはステップS58でエンドレスボリュームの摺動子
が移動していないとみなされた場合であって、電圧保持
回路用データメモリの記憶内容が変更されていないた
め、電圧保持回路の保持電圧の変更はない。
Step slider in S 58 is "-30" when it is determined that movement of less than the slider is Step S 9 and is executed considered is not moving, the stored contents of the memory for the voltage holding circuit changes The data stored in the voltage holding circuit data memory is
Is supplied to A converter 22 is converted into an analog voltage (step S 10). The converted analog output voltage of the D / A converter 22 converted in step S 10 is applied to the voltage holding circuit selected by the analog switch 27. In this case even if the slider endless volume is deemed not to be moved in step S 58, because the stored contents of the data memory for the voltage holding circuit has not changed, the holding voltage of the voltage holding circuit There is no change.

ステップS54に続いてステップS60が実行されるときは、
現在位置メモリの記憶内容に“+30"される(ステップS
60)。ステップS60に続いて電圧保持回路用データメモ
リの記憶内容に+1される(ステップS61)。ステップS
61に続いてエンドレスボリュームの摺動子位置が“405
0"以上か否かがチェックされ(ステップS63)、“4050"
以上でないと判別されたときはステップS9が実行され
る。電圧保持回路用データメモリの記憶内容はD/A変換
器22に供給されて、アナログ電圧に変換される。この変
換されたアナログ電圧はアナログスイッチ27を介して、
アナログスイッチ27にて選択された電圧保持回路に印加
される。したがって電圧保持回路の出力電圧は、電圧保
持回路用データメモリの記憶内容に“+1"した分だけ変
更されることになる。
When step S 60 following step S 54 is executed,
“+30” is added to the contents stored in the current position memory (step S
60 ). Following step S 60 is +1 in the storage content of the data memory for voltage holding circuit (step S 61). Step S
Following 61 , the slider position of the endless volume is "405
0 "or whether is checked (step S 63)," 4050 "
If it is determined that the above is not the case, step S 9 is executed. The stored contents of the data memory for the voltage holding circuit are supplied to the D / A converter 22 and converted into an analog voltage. This converted analog voltage is passed through the analog switch 27,
It is applied to the voltage holding circuit selected by the analog switch 27. Therefore, the output voltage of the voltage holding circuit is changed by the amount "+1" stored in the data memory for the voltage holding circuit.

ステップS63においてエンドレスボリュームの摺動子位
置が“4050"以上と判別されると、ステップS63に続い
て、ステップS8が実行され、ついでステップS4が実行さ
れる。
When slider position of the endless volume is determined to more than "4050" in step S 63, following the step S 63, step S 8 is executed, then the step S 4 is executed.

また、ステップS58に続いてステップS70が実行されると
きはステップS60,S61,S63と同様に、ステップS70,S71,S
73が実行される。ステップS70においてはステップS60
“+30"に代って“+30"が、ステップS71においてはス
テップS60の“+1"に代って“−1"が、ステップS73にお
いてはステップS63の“4050"に代って“50"がそれぞれ
用いられるが、ステップS60,S61,S63と同様に作用し、
その説明は容易に類推されるので省略する。
Further, when step S 70 is executed subsequent to step S 58 , as in steps S 60 , S 61 and S 63 , steps S 70 , S 71 and S
73 is executed. In Step S 70 in place of the "+30" in the step S 60 is "+30", in step S 71 in place of the "+1" in step S 60 is "-1", the step S in step S 73 63 in place of the "4050""50" are used, respectively, but act similar to step S 60, S 61, S 63,
The explanation is omitted because it is easily analogized.

なお上記ではエンドレスボリュームの出力電圧すなわち
エンドレスボリュームの摺動子が“30"変えたときに変
化したとして取扱ったため、デジタル的にヒステリシス
を設けたのと等価であって、ノイズ等による誤動作を妨
げる。さらにまた“30"は他の値に設定してもよい。
In the above description, since the output voltage of the endless volume, that is, the slider of the endless volume is changed when changed by “30”, it is equivalent to digitally providing hysteresis, and prevents malfunction due to noise or the like. Furthermore, "30" may be set to another value.

さらに、第3図(b)によって説明した如くエンドレス
ボリュームの回転軸の回転角度に対して余裕度を設けた
ため一方の相の出力電圧が飽和する前に他方の相に切換
えができる。この場合エンドレスボリューム1個で“約
200(〔3000/30〕×2)”ステップ、電圧保持回路の出
力電圧を変化させることができる。
Further, as described with reference to FIG. 3 (b), since a margin is provided for the rotation angle of the rotary shaft of the endless volume, it is possible to switch to the other phase before the output voltage of one phase is saturated. In this case, with one endless volume "about
The output voltage of the voltage holding circuit can be changed in 200 ([3000/30] x 2) steps.

(発明の効果) 以上説明した如く本発明によれば、エンドレスボリュー
ムの摺動子位置が所定量を超えて変化したこと検出した
とき、第2記憶手段の記憶内容を所定値変化させるた
め、エンドレスボリュームの摺動位置を、所定量超えて
変化させたとき、電圧保持回路の出力電圧が他の所定値
に対応する電圧だけ変化させられる。
(Effect of the Invention) As described above, according to the present invention, when it is detected that the slider position of the endless volume has changed by more than a predetermined amount, the content stored in the second storage means is changed by a predetermined value, so that the endless volume is changed. When the sliding position of the volume is changed by a predetermined amount, the output voltage of the voltage holding circuit is changed by a voltage corresponding to another predetermined value.

この結果、エンドレスボリュームの摺動子位置を、所定
量超えて移動させなければ電圧保持回路の出力電圧は所
定量に対応する電圧変化させられないため、ノイズ等に
よってエンドレスボリュームの出力電圧が前記所定量未
満変化したとき、電圧保持回路の出力電圧に変化を及ぼ
すことはなく、ヒステリンを持たせたと等価となる。
As a result, unless the slider position of the endless volume is moved by a predetermined amount, the output voltage of the voltage holding circuit cannot be changed by the voltage corresponding to the predetermined amount. When the change is less than the fixed amount, the output voltage of the voltage holding circuit is not changed and it is equivalent to having hysterin.

また、第1アナログスイッチと第2アナログスイッチは
同時にオン状態に制御されないため、D/A変換器に1つ
ですむ。
Also, since the first analog switch and the second analog switch are not controlled to be in the ON state at the same time, only one D / A converter is required.

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

第1図は本発明の一実施例の構成を示すブロック図。 第2図(a),(b),および(c)は本発明の一実施
例に使用するエンドレスボリュームの構成を示す模式
図。 第3図はエンドレスボリュームの回転軸の回転角度対出
力電圧の特性図。 第4図は本発明の一実施例の作用の説明に供するフロー
チャート。 第5図は従来の構成を示すブロック図。 第6図は従来例の作用を示す説明図。 20A……マイクロコンピュータ、21A……コントローラ、
22……D/A変換器、24……比較器、25……入力ポート、2
6および27……アナログスイッチ、28〜31……電圧保持
回路。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. 2 (a), (b), and (c) are schematic diagrams showing the configuration of an endless volume used in an embodiment of the present invention. FIG. 3 is a characteristic diagram of the rotation angle of the rotary shaft of the endless volume versus output voltage. FIG. 4 is a flow chart for explaining the operation of one embodiment of the present invention. FIG. 5 is a block diagram showing a conventional configuration. FIG. 6 is an explanatory view showing the operation of the conventional example. 20A ... Microcomputer, 21A ... Controller,
22 …… D / A converter, 24 …… comparator, 25 …… input port, 2
6 and 27 …… Analog switch, 28 to 31 …… Voltage holding circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】エンドレスボリュームと、エンドレスボリ
ュームからの出力を入力として受け所定期間にわたって
通過させる第1アナログスイッチと、D/A変換器の出力
を入力として受け第1アナログスイッチが入力を通過さ
せていない期間においてD/A変換器の出力を通過させる
第2アナログスイッチと、エンドレスボリュームの摺動
子位置検出のためのデータを格納する第1記憶手段と、
エンドレスボリュームの摺動子位置検出出力データを格
納する第2記憶手段と、第1アナログスイッチがエンド
レスボリュームからの出力を通過させている期間第1記
憶手段に格納されているデータを受けてアナログ信号に
変換したD/A変換器の出力電圧のレベルと第1アナログ
スイッチによって選択されたエンドレスボリュームの出
力のレベルとを比較し第1記憶手段と協同してエンドレ
スボリュームの摺動子位置を実質的に検出する比較器
と、第2アナログスイッチが入力を通過させている期間
第2記憶手段に格納されているデータを受けてアナログ
信号に変換したD/A変換器の出力電圧を保持する電圧保
持回路と、第1および第2のアナログスイッチの入力通
過期間を制御し、かつ第1記憶手段のデータに基づいて
エンドレスボリュームの摺動子位置が所定量を超えて変
化したことを比較器の出力に基づいて判別したとき第2
記憶手段の格納データを所定値変化させる制御手段とを
備えたことを特徴とするエンドレスボリュームの出力取
り込み装置。
1. An endless volume, a first analog switch that receives an output from the endless volume as an input and passes it for a predetermined period, and a first analog switch that receives an output of a D / A converter as an input and passes the input. A second analog switch that allows the output of the D / A converter to pass through during a non-existing period, and a first storage means that stores data for detecting the slider position of the endless volume,
The second storage means for storing the slider position detection output data of the endless volume and the analog signal in response to the data stored in the first storage means while the first analog switch is passing the output from the endless volume The output voltage level of the D / A converter converted into the output level of the endless volume selected by the first analog switch is compared, and the slider position of the endless volume is substantially determined in cooperation with the first storage means. And a voltage holding circuit that holds the output voltage of the D / A converter that receives the data stored in the second storage means during the period in which the second analog switch passes the input and converts the data into an analog signal. The circuit and the first and second analog switches control the input passage period, and based on the data of the first storage means, Second when Doko position is determined based on the output of the comparator that it has changed by more than a predetermined amount
An output capturing device for an endless volume, comprising: a control unit that changes a storage data of a storage unit by a predetermined value.
JP24455488A 1988-09-30 1988-09-30 Endless volume output capture device Expired - Lifetime JPH0687066B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24455488A JPH0687066B2 (en) 1988-09-30 1988-09-30 Endless volume output capture device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24455488A JPH0687066B2 (en) 1988-09-30 1988-09-30 Endless volume output capture device

Publications (2)

Publication Number Publication Date
JPH0293372A JPH0293372A (en) 1990-04-04
JPH0687066B2 true JPH0687066B2 (en) 1994-11-02

Family

ID=17120434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24455488A Expired - Lifetime JPH0687066B2 (en) 1988-09-30 1988-09-30 Endless volume output capture device

Country Status (1)

Country Link
JP (1) JPH0687066B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0810236B2 (en) * 1990-11-30 1996-01-31 松下電器産業株式会社 oscilloscope

Also Published As

Publication number Publication date
JPH0293372A (en) 1990-04-04

Similar Documents

Publication Publication Date Title
JP2001114116A (en) Rotation angle detector
EP1108987A1 (en) Rotational angle detecting device
JPH0687066B2 (en) Endless volume output capture device
US4549125A (en) Circuit for controlling the rotation angle of a motor
US4959651A (en) Temperature detection method and apparatus
JP3251827B2 (en) Positioning device
JPH01258001A (en) Control data generator
US6696984B2 (en) Apparatus and method for sensing rotary switch handling direction of monitor
JPH0829196A (en) Multi-turn absolute encoder
JPH10311742A (en) Position detection sensor
JP3074484B2 (en) Pulse generating method and apparatus
JP3104090B2 (en) Timing signal generation method and apparatus
JPH03120419A (en) Method for reducing power consumption of steering angle sensor for vehicle
US6167108A (en) Method of processing signals of encoders and apparatus employing the same
JP4774794B2 (en) Display device
JPH09257462A (en) Displacement detector
JPH04285815A (en) Position counter circuit of rotary encoder
WO2000063652A1 (en) A position encoder
US5877615A (en) Dynamic input reference voltage adjuster
JP2742829B2 (en) Origin circuit
JPS6153830A (en) Analog digital converter
JPH11264843A (en) Zero adjustment circuit
JP4003560B2 (en) Numerical adjustment device
JP4005241B2 (en) Position detection device
JP2010217108A (en) Input device and electronic apparatus