[go: up one dir, main page]

JPS61173308A - Parameter setting device - Google Patents

Parameter setting device

Info

Publication number
JPS61173308A
JPS61173308A JP1303885A JP1303885A JPS61173308A JP S61173308 A JPS61173308 A JP S61173308A JP 1303885 A JP1303885 A JP 1303885A JP 1303885 A JP1303885 A JP 1303885A JP S61173308 A JPS61173308 A JP S61173308A
Authority
JP
Japan
Prior art keywords
time
value
parameter
time constant
resistance
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.)
Pending
Application number
JP1303885A
Other languages
Japanese (ja)
Inventor
Yoshihide Agari
良英 上里
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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP1303885A priority Critical patent/JPS61173308A/en
Publication of JPS61173308A publication Critical patent/JPS61173308A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Measurement Of Resistance Or Impedance (AREA)
  • Control By Computers (AREA)

Abstract

PURPOSE:To set parameter with simple hardware by detecting the value of a variable resistance as a time corresponding to the time constant of a time constant circuit, and obtaining the parameter value from the detected time and the content of memory that stores a parameter value of each time. CONSTITUTION:A resistance value R of a variable resistance 1a corresponds uniquely to the time constant (r) of a time constant circuit 1, and a time measuring circuit 2 measures time T corresponding to the time constant (r). Accordingly, the time T corresponds uniquely to the resistance value R of the variable resistance 1a. Parameter values corresponding to each value of the time T are stored beforehand in a storage circuit 3 and consequently, the resistance value R of the resistance 1a corresponds uniquely to the parameter value. Thus, for instance, parameter values corresponding to resistance values are graduated on the knob of the resistance 1a. When the resistance value of the resistance 1a is changed to a resistance value corresponding to a parameter value to be set, and time T corresponding to the time constant (r) of the circuit 1 is measured by the circuit 2, the parameter value stored in the circuit 3 is searched from the time T, and the parameter value is set.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロコンピュータにパラメータを設定する
装置に関し、特に可変抵抗の抵抗値の変化量を充電時定
数或は放電時定数の変化量として計測することにより、
少ないハードウェアで且つ少ないボート数でパラメータ
をマイクロコンピュータに設定できるパラメータ設定装
置に関する。
[Detailed Description of the Invention] Industrial Application Field The present invention relates to a device for setting parameters in a microcomputer, and in particular to a device for measuring the amount of change in the resistance value of a variable resistor as the amount of change in the charging time constant or the discharging time constant. According to
The present invention relates to a parameter setting device that can set parameters in a microcomputer with less hardware and a smaller number of ports.

従来の技術 従来、マイクロコンピュータ応用機器のマイクロコンピ
ュータに適宜変更自在なパラメータを設定する場合、パ
ラメータ値入力用の可変抵抗の端子電圧をA/D変換器
によりディジタル量に変換するか、又は複数個のパラメ
ータ入力用のディジタルスイッチを用いてコード化され
たパラメータ値を発生し、複数の入力ポートからマイク
ロコンピユータに取り込む方式が一般に採用されている
BACKGROUND ART Conventionally, when setting parameters that can be changed as appropriate in a microcomputer of a microcomputer-applied device, the terminal voltage of a variable resistor for parameter value input is converted into a digital quantity by an A/D converter, or by converting a plurality of Generally, a method is adopted in which coded parameter values are generated using a digital switch for inputting parameters, and the values are input into a microcomputer through a plurality of input ports.

発明が解決しようとする問題点 しかし、このような方式では、A/D変換器が必要にな
るなど外部ハードウェアが複雑になると共に、入力ポー
ト数の多いマイクロコンピュータが必要となりコスト高
となる。
Problems to be Solved by the Invention However, in such a system, external hardware becomes complicated, such as an A/D converter, and a microcomputer with a large number of input ports is required, resulting in high costs.

本発明はこのような従来の問題点を解決したもので、そ
の目的は、少ないハードウェアと少ない数のポートを使
用してパラメータをマイクロコンピュータに設定し得る
パラメータ設定装置を提供することにある。
The present invention solves these conventional problems, and its purpose is to provide a parameter setting device that can set parameters in a microcomputer using less hardware and fewer ports.

問題点を解決するための手段 本発明は上記問題点を解決するために、第1図に示すよ
うに、可変抵抗1aにより時定数を変更し得る時定数回
路1と、時定数回路1の時定数に応じた時間を計測する
時間計測手段2と、時間計測手段2で計測された各時間
に対応したパラメータ値を記憶する記憶手段3と、時間
計測手段2で計測された時間に対応するパラメータ値を
記憶手¥13から読取るパラメータ決定手段4とで構成
される。本発明の好ましい実施例においては、時間計測
手段2は、時定数回路1の入力に所定レベルの電圧を印
加した時からその出力電圧が所定レベルに上昇するまで
に要する時間を計測する。また他の実施例においては、
時間計測手段2は、時定数回路1に加えておいた所定レ
ベルの電圧の印加を停止した時からその出力電圧が所定
レベルに低下するまでに要する時間を計測する。
Means for Solving the Problems In order to solve the above problems, the present invention, as shown in FIG. A time measuring means 2 that measures time according to a constant, a storage means 3 that stores parameter values corresponding to each time measured by the time measuring means 2, and parameters corresponding to the times measured by the time measuring means 2. and a parameter determining means 4 for reading values from a memory 13. In a preferred embodiment of the present invention, the time measuring means 2 measures the time required from the time when a voltage at a predetermined level is applied to the input of the time constant circuit 1 until the output voltage rises to a predetermined level. In other embodiments,
The time measuring means 2 measures the time required from the time when the application of the voltage at the predetermined level applied to the time constant circuit 1 is stopped until the output voltage decreases to the predetermined level.

作用 可変抵抗1aの抵抗値Rと時定数回路1の時定数τとは
一義的に対応し、時間計測手段2は時定数τに応じた時
間Tを計測するものであるから、この時間Tも可変抵抗
1aの抵抗値Rと一義的に対応する。また、記憶手段3
には時間Tの各値に対応したパラメータ値が予め記憶さ
れているので、結局可変抵抗1aの抵抗値Rとパラメー
タ値どは一義的に対応する。上記関係より例えば可変抵
抗1aのつまみには抵抗値に対応するパラメータ値が目
盛られており、可変抵抗1aの抵抗値を設定しようとす
るパラメータ値に対応した抵抗値に切換え、時間計数手
段2で時定数回路1の時定数τに応じた時間Tを計測さ
せれば、その時間Tより記憶手段3に記憶されたパラメ
ータ値がサーチされ、パラメータ値が設定される。
Since the resistance value R of the variable action resistor 1a and the time constant τ of the time constant circuit 1 uniquely correspond to each other, and the time measuring means 2 measures a time T corresponding to the time constant τ, this time T is also It uniquely corresponds to the resistance value R of the variable resistor 1a. In addition, storage means 3
Since parameter values corresponding to each value of time T are stored in advance in , the resistance value R of the variable resistor 1a and the parameter values etc. correspond uniquely after all. From the above relationship, for example, the knob of the variable resistor 1a is graduated with a parameter value corresponding to the resistance value, and the resistance value of the variable resistor 1a is switched to the resistance value corresponding to the parameter value to be set, and the time counting means 2 When the time T corresponding to the time constant τ of the time constant circuit 1 is measured, the parameter value stored in the storage means 3 is searched from the time T, and the parameter value is set.

実施例 第2図は本発明実施例の要部ブロック図である。Example FIG. 2 is a block diagram of main parts of an embodiment of the present invention.

同図において、10は内部にROM、RAM等を有する
所謂ワンチップマイクロコンピュータであり、外付けさ
れた発振子11で規定されるクロック周波数に同期して
動作する。マイクロコンピュータ10の電源端子Vcc
には例えば+5vの直流電圧が印加され、アース端子V
SSは接地される。また、複数の出力ポートの内の一つ
の出カポ−) OUTは抵抗R,を介して+5vに接続
されると共に、可変抵抗RとコンデンサCの直列回路か
ら成る時定数回路12の入力に接続される0時定数回路
12の出力即ち可変抵抗RとコンデンサCの接続点の電
圧は比較器13の十端子に入力され、一端子に加わる基
準電圧vthと比較される。この比較器12の出力はマ
イクロコンピュータ10の複数の入力ポートの内の一つ
の入カポ−)INに接続される。なお、マイクロコンピ
ュータ10には他の各種の入力信号が入力され、また制
御用の各種の信号が出力されるものであるが、これらは
図示を省略しである。
In the figure, 10 is a so-called one-chip microcomputer having an internal ROM, RAM, etc., and operates in synchronization with a clock frequency defined by an externally attached oscillator 11. Power supply terminal Vcc of microcomputer 10
For example, a DC voltage of +5V is applied to the earth terminal V
SS is grounded. Also, one output port (OUT) of the plurality of output ports is connected to +5V via a resistor R, and is also connected to the input of a time constant circuit 12 consisting of a series circuit of a variable resistor R and a capacitor C. The output of the zero time constant circuit 12, that is, the voltage at the connection point between the variable resistor R and the capacitor C, is input to the ten terminal of the comparator 13 and compared with the reference voltage vth applied to one terminal. The output of this comparator 12 is connected to one input port IN of the plurality of input ports of the microcomputer 10. It should be noted that various other input signals are input to the microcomputer 10, and various signals for control are outputted, but these are not shown.

第3図に示すように、マイクロコンピュータ10の出カ
ポ−) OUTがロウレベル(以下“Llと称す)のと
きコンデンサCの端子電圧はほぼ零である。出力ポート
OUTの電位を時刻t1においてハイレベル(以下“H
”と称す)にすると、時定数回路12の入力には所定レ
ベルの電圧Voが印加され、コンデンサCの端子電圧V
は次式に従って変化する。
As shown in FIG. 3, when the output port OUT of the microcomputer 10 is at a low level (hereinafter referred to as "Ll"), the terminal voltage of the capacitor C is approximately zero.The potential of the output port OUT is set to a high level at time t1. (Hereinafter “H
”), a voltage Vo at a predetermined level is applied to the input of the time constant circuit 12, and the terminal voltage V of the capacitor C is
changes according to the following equation.

yxvo X (1−e” )   −= (1)そし
て、コンデンサCの端子電圧Vが基準電圧Vthより大
きくなると、比較器13の出力は第3図に示すようにH
″となる。出力ポート0[ITを“H”にした時刻を−
から比較器13の出力がH″となる時刻t2までの時間
Tは、時定数回路12の時定数に応じた時間となり、可
変抵抗Rの値を変更する器と変化する。Vth、R,T
の関係を次式に示す。
yxvo
”.Output port 0 [The time when IT was set to “H” is -
The time T from t2 to time t2 when the output of the comparator 13 becomes H'' is a time corresponding to the time constant of the time constant circuit 12, and changes as the value of the variable resistor R is changed.Vth, R, T
The relationship is shown in the following equation.

第4図は第2図のコンデンサCを10IIF、抵抗R,
を10にΩ、基準電圧vthを1vにしたときの可変抵
抗Rの抵抗値と前記時間Tとの関係を示す実測値である
。第4図に示すように、可変抵抗Rの値を39にΩから
120に’Ωまで変化させれば、時間Tを190m s
から580m5まで変化させることができる。
Figure 4 shows capacitor C in Figure 2 as 10IIF, resistor R,
This is an actual measurement value showing the relationship between the resistance value of the variable resistor R and the time T when V is set to 10Ω and the reference voltage vth is set to 1V. As shown in Figure 4, if the value of the variable resistor R is changed from 39Ω to 120Ω, the time T will be 190m s.
It can be varied from 580m5 to 580m5.

時間Tの範囲として190m sがら580m sの間
を使用する場合、マイクロコンピュータ1oの内部RO
Mには例えば第5図に示すように、190m5から例え
ば10m5間隔で変化するTの各部に対応して例えば1
90m5のときは1秒、  200m5のときは2秒、
580m5のときは40秒の如くパラメータ値が設定さ
れている。
When using the range of time T from 190ms to 580ms, the internal RO of the microcomputer 1o
For example, as shown in FIG.
1 second for 90m5, 2 seconds for 200m5,
When the distance is 580 m5, the parameter value is set as 40 seconds.

また、可変抵抗Rのつまみ部分には例えば第6図の平面
図に示すように、抵抗値39にΩの位置に1秒の目盛が
、 120にΩの位置に40秒の目盛が、その間におい
てはそれぞれ各抵抗値に対応したパラメータ値が目盛ら
れている。
In addition, on the knob of the variable resistor R, for example, as shown in the plan view of Fig. 6, there is a 1 second scale at the Ω position for resistance value 39, a 40 second scale at the Ω position for resistance value 120, and a 40 second scale at the Ω position for resistance value 39. are graduated with parameter values corresponding to each resistance value.

次に、本実施例の作用を説明する。例えば、パラメータ
値として1秒を設定したい場合、可変抵抗Rのつまみを
1秒の目盛のところに合せる。電源が投入される前の出
力ポートOUTのレベルは、“L”であり、コンデンサ
Cの電圧はほぼ零である。電源が投入されると、マイク
ロコンピュータ10は第7図に示すような処理を実行す
る。即ち、先ず出力ポートOUTを“L”から“H″に
変化させ(Sl)、そのときから入力ポートINの電圧
が“H”になるまで内部カウンタCNTをカウントアツ
プする(S2.S3)。出力ポートが“H”になること
によりコンデンサCは抵抗R,R,を介して充電され、
その端子電圧が基準電圧vthに達したときに比較器1
3の出力が”H”となり、入力ポートINが“H”とな
るので、マイクロコンピュータ10はカウンタCNTの
計数を停止してステップS4に移行し、出力ポートOU
Tを“H”から“L”にすることによりコンデンサCを
放電さ諧そして、次にカウンタCNTの値(これは時間
Tを示す)に対応するパラメータ値を内部ROMに記憶
した時間Tとパラメータ値との対応表から求める(S5
)。この求められたパラメータ値が今回設定されたパラ
メータ値となる。なお、計測された時間Tが10m5で
割り切れない場合、1の位を四捨五入等してパラメータ
値をサーチするか、或は補間演算によりパラメータ値を
求める。マイクロコンピュータ10はこのようなパラメ
ータ設定処理を終えた後、通常の信号処理又は制御プロ
グラムの実行を行なう(S6)。
Next, the operation of this embodiment will be explained. For example, if you want to set 1 second as a parameter value, set the knob of variable resistor R to the 1 second scale. The level of the output port OUT before the power is turned on is "L", and the voltage of the capacitor C is approximately zero. When the power is turned on, the microcomputer 10 executes processing as shown in FIG. That is, first, the output port OUT is changed from "L" to "H" (S1), and from that time the internal counter CNT is counted up until the voltage at the input port IN becomes "H" (S2, S3). When the output port becomes "H", capacitor C is charged via resistors R, R,
When the terminal voltage reaches the reference voltage vth, the comparator 1
3 becomes "H" and the input port IN becomes "H", the microcomputer 10 stops counting the counter CNT, moves to step S4, and outputs the output port OU.
The capacitor C is discharged by changing T from "H" to "L".Then, the parameter value corresponding to the value of the counter CNT (which indicates time T) is stored in the internal ROM. Obtain from the correspondence table with values (S5
). This obtained parameter value becomes the parameter value set this time. Note that if the measured time T is not divisible by 10 m5, the parameter value is searched by rounding off to the nearest whole number, or the parameter value is determined by interpolation. After completing such parameter setting processing, the microcomputer 10 performs normal signal processing or execution of a control program (S6).

以上の実施例は、時定数回路12の充電時定数に応じた
時間によりパラメータ値を設定したが、時定数回路12
の放電時定数に応じた時間を用いても良いことは勿論の
ことである。但し、放電時定数を用いる場合、一度コン
デンサCを充電しておく分だけ余計に時間がかかること
になる。
In the above embodiment, the parameter value is set according to the charging time constant of the time constant circuit 12, but the time constant circuit 12
Of course, it is also possible to use a time corresponding to the discharge time constant of . However, if the discharge time constant is used, it will take extra time to charge the capacitor C once.

発明の詳細 な説明したように、本発明では、可変抵抗により時定数
変更可能な時定数回路を設け、可変抵抗の値を時定数回
路の時定数に応じた時間とじて検出し、この検出した時
間と、各時間毎のパラメータ値を記憶する記憶内容とか
ら設定するパラメータ値を決定するものであり、従来の
ようにA/D変換器や複数個のディジタルスイッチが不
要となり、簡単なハードウェアで実現できる効果がある
。また、時間計測手段、記憶手段、パラメータ決定手段
はマイクロコンピュータ内部で実現でき、時定数回路と
の接続は僅かに2本の信号線で済み、少ないポート数で
パラメータの設定ができる効果がある。
As described in detail, in the present invention, a time constant circuit whose time constant can be changed by a variable resistor is provided, and the value of the variable resistor is detected at a time corresponding to the time constant of the time constant circuit. The parameter value to be set is determined from the time and the memory contents that store the parameter value for each time, eliminating the need for an A/D converter and multiple digital switches as in the past, and using simple hardware. There are effects that can be achieved with Furthermore, the time measurement means, storage means, and parameter determination means can be realized inside the microcomputer, and connection with the time constant circuit requires only two signal lines, which has the effect of allowing parameters to be set with a small number of ports.

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

第1図は本発明の構成説明図、第2図は本発明実施例の
要部ブロック図、第3図は第2図の各部の信号波形の一
例を示すタイミングチャート、第4図は可変抵抗Rの抵
抗値と時間Tとの関係を示す線図、第5図は時間Tとパ
ラメータ値との対応関係を示す線図、第6図は可変抵抗
Rのつまみ部分の平面図、第7図はマイクロコンピュー
タ10のパラメータ設定処理の一例を示すフローチャー
トである。 10はマイクロコンピュータ、12は時定数回路、13
は比較器、Rは可変抵抗、Cはコンデンサ、OUTは出
力ボート、INは入力ポートである。
Fig. 1 is a configuration explanatory diagram of the present invention, Fig. 2 is a block diagram of main parts of an embodiment of the present invention, Fig. 3 is a timing chart showing an example of signal waveforms of each part in Fig. 2, and Fig. 4 is a variable resistor. A diagram showing the relationship between the resistance value of R and time T, Figure 5 is a diagram showing the correspondence between time T and parameter values, Figure 6 is a plan view of the knob of variable resistor R, and Figure 7 is a diagram showing the relationship between the resistance value of R and time T. is a flowchart showing an example of parameter setting processing of the microcomputer 10. 10 is a microcomputer, 12 is a time constant circuit, 13
is a comparator, R is a variable resistor, C is a capacitor, OUT is an output port, and IN is an input port.

Claims (3)

【特許請求の範囲】[Claims] (1)可変抵抗により時定数を変更し得る時定数回路と
、該時定数回路の時定数に応じた時間を計測する時間計
測手段と、該時間計測手段で計測される各時間に対応し
たパラメータ値を記憶する記憶手段と、前記時間計測手
段で計測された時間に対応するパラメータ値を前記記憶
手段から読取るパラメータ決定手段とを具備したことを
特徴とするパラメータ設定装置。
(1) A time constant circuit whose time constant can be changed by a variable resistor, a time measuring means for measuring time according to the time constant of the time constant circuit, and parameters corresponding to each time measured by the time measuring means. A parameter setting device comprising: a storage means for storing a value; and a parameter determination means for reading a parameter value corresponding to a time measured by the time measurement means from the storage means.
(2)特許請求の範囲第1項記載のパラメータ設定装置
において、前記時間計測手段は、前記時定数回路の入力
に所定レベルの電圧を印加した時からその出力電圧が所
定レベルに上昇するまでに要する時間を計測するもので
あることを特徴とするパラメータ設定装置。
(2) In the parameter setting device according to claim 1, the time measuring means is configured to measure the time from the time when a voltage at a predetermined level is applied to the input of the time constant circuit until the output voltage rises to a predetermined level. A parameter setting device characterized in that it measures the time required.
(3)特許請求の範囲第1項記載のパラメータ設定装置
において、前記時間計測手段は、前記時定数回路の入力
に加えておいた所定レベルの電圧の印加を停止した時か
らその出力電圧が所定レベルに低下するまでに要する時
間を計測するものであることを特徴とするパラメータ設
定装置。
(3) In the parameter setting device according to claim 1, the time measuring means is arranged such that the output voltage reaches a predetermined level from the time when the application of the voltage at the predetermined level applied to the input of the time constant circuit is stopped. A parameter setting device characterized in that it measures the time required for the parameter to drop to a certain level.
JP1303885A 1985-01-26 1985-01-26 Parameter setting device Pending JPS61173308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1303885A JPS61173308A (en) 1985-01-26 1985-01-26 Parameter setting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1303885A JPS61173308A (en) 1985-01-26 1985-01-26 Parameter setting device

Publications (1)

Publication Number Publication Date
JPS61173308A true JPS61173308A (en) 1986-08-05

Family

ID=11821942

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1303885A Pending JPS61173308A (en) 1985-01-26 1985-01-26 Parameter setting device

Country Status (1)

Country Link
JP (1) JPS61173308A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012248232A (en) * 2012-09-21 2012-12-13 Mitsubishi Electric Corp Safety monitoring input device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012248232A (en) * 2012-09-21 2012-12-13 Mitsubishi Electric Corp Safety monitoring input device

Similar Documents

Publication Publication Date Title
US4187460A (en) Capacitance measuring by comparison to reference capacitance
US4825147A (en) Capacitance measuring method and apparatus
US5294889A (en) Battery operated capacitance measurement circuit
US4206648A (en) Impedance measuring circuit
JP3233791B2 (en) Differential capacitance inverting integrator and capacitance change amount detecting device using the same
US4362988A (en) Method of and circuit arrangement for determining the magnitude of an unknown resistance element
KR910012689A (en) Adjusted physical parameter measurement system
US4626621A (en) Circuit for generating a position in digital form
US4794320A (en) Multi-frequency capacitance sensor
RU2214610C2 (en) Facility measuring non-electric values with use of capacitor pickups
US4625197A (en) Logarithmic analog to digital converter
JPS61173308A (en) Parameter setting device
CN106918354B (en) Sensing system and applicable sensing information determination method
CN108037358B (en) Single-chip microcomputer frequency testing system and method
JPS625367B2 (en)
US4370891A (en) Dual element-single oscillator-ratio type digital transducer
JPS6322265B2 (en)
SU788019A1 (en) Low frequency measuring device
JPH026655Y2 (en)
SU721754A1 (en) Device for measuring increments of physical values
SU826286A1 (en) Device for monitoring parameters of automatic control systems
SU472303A1 (en) Pulse average frequency meter
SU1247680A1 (en) Time-to-pulse converter or device for measuring temperature
SU1718133A1 (en) Relative voltage alteration meter
SU855990A1 (en) Digital meter of negative increments of analogue signal