JPS6121681Y2 - - Google Patents

Info

Publication number
JPS6121681Y2
JPS6121681Y2 JP1979045212U JP4521279U JPS6121681Y2 JP S6121681 Y2 JPS6121681 Y2 JP S6121681Y2 JP 1979045212 U JP1979045212 U JP 1979045212U JP 4521279 U JP4521279 U JP 4521279U JP S6121681 Y2 JPS6121681 Y2 JP S6121681Y2
Authority
JP
Japan
Prior art keywords
circuit
signal
input
microprocessor
lower limit
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
Application number
JP1979045212U
Other languages
Japanese (ja)
Other versions
JPS55146501U (en
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 filed Critical
Priority to JP1979045212U priority Critical patent/JPS6121681Y2/ja
Publication of JPS55146501U publication Critical patent/JPS55146501U/ja
Application granted granted Critical
Publication of JPS6121681Y2 publication Critical patent/JPS6121681Y2/ja
Expired legal-status Critical Current

Links

Description

【考案の詳細な説明】 本考案はマイクロプロセツサと組合わせて使用
するに適したハードウエア制御回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a hardware control circuit suitable for use in conjunction with a microprocessor.

特に、マイクロプロセツサを用いて自動制御を
行う場合に、被制御装置の状態情報を取込み、こ
れをマイクロプロセツサに与えるための回路に関
するものである。
In particular, the present invention relates to a circuit for capturing state information of a controlled device and providing it to the microprocessor when automatic control is performed using a microprocessor.

各種の被制御装置では、その状態信号を一定時
間に送出されるパルスの数により与えることがで
きる。機械系の回転情報等はもちろん、電気系で
測定される量でもパルス時間幅信号でゲートされ
るクロツク等がこの種のものである。このような
被制御装置をマイクロプロセツサで制御する場合
に、状態信号を直接マイクロプロセツサに取込む
と、プロセツサの処理負担が大きくなる。このた
めソフトウエアが複雑になつたり、制御遅延時間
が大きくなる等の不都合が生じる。
In various controlled devices, their status signals can be given by the number of pulses sent out in a given period of time. This type of information includes not only mechanical rotation information but also quantities measured in electrical systems such as clocks that are gated with pulse time width signals. When such a controlled device is controlled by a microprocessor, if the status signal is directly input to the microprocessor, the processing load on the processor increases. This causes problems such as complicated software and increased control delay time.

本考案は、パルス信号による状態信号を取込
み、与えられる設定値と比較し、その比較結果を
単純なビツト信号で出力する簡単なハードウエア
による制御回路を提供することを目的とする。
An object of the present invention is to provide a simple hardware control circuit that takes in a status signal in the form of a pulse signal, compares it with a given set value, and outputs the comparison result as a simple bit signal.

この制御回路を被制御装置の状態信号出力と、
マイクロプロセツサの入力との間に用いることに
より、マイクロプロセツサの負担が軽減され高速
化され、サーボ系またはフイードバツク系を容易
に構成することができる。
This control circuit is used as the state signal output of the controlled device,
By using it between the input of a microprocessor, the burden on the microprocessor is reduced and speed is increased, and a servo system or feedback system can be easily constructed.

本考案は、被制御系から到来する入力パルス信
号の通過時間を制御するゲート回路と、このゲー
ト回路を通過したパルスを計数するカウンタと、
設定値の上限値および下限値に対応する値をそれ
ぞれ蓄積する2個のレジスタと、この各レジスタ
の内容および上記カウンタの内容をそれぞれ入力
として桁上り信号を出力する2個の全加算回路
と、この全加算回路の桁上り信号を入力とする論
理回路とを備え、上記論理回路は、上限値を越え
たことを表す信号、上限値以下下限値以上である
ことを表す信号および下限値を下まわつたことを
表す信号を出力する構成であり、この3個の信号
が上記被制御系を制御するマイクロプロセツサの
入力に接続されたことを特徴とする。
The present invention includes a gate circuit that controls the passage time of an input pulse signal arriving from a controlled system, a counter that counts the pulses that have passed through this gate circuit,
two registers that respectively accumulate values corresponding to the upper and lower limit values of the set value, and two full adder circuits that receive the contents of these registers and the contents of the counter as inputs and output carry signals; A logic circuit that receives the carry signal of this full adder circuit as an input, and the logic circuit has a signal indicating that the upper limit value has been exceeded, a signal indicating that the upper limit value is lower than the lower limit value, and a signal indicating that the lower limit value is lower than the lower limit value. The configuration is characterized in that the three signals are connected to the input of a microprocessor that controls the controlled system.

以下の図面により詳しく説明する。 This will be explained in more detail in the drawings below.

第1図は本考案実施例の回路構成図である。図
で1は入力変換回路で、被制御装置からの入力状
態信号Aをクロツクの周波数変調信号に変換する
ための回路である。この入力状態信号Aが、この
回路1の出力A′として直接利用できる場合に
は、この回路1は不要である。この出力A′はゲ
ート回路2を介して、カウンタ3に与えられる。
入力信号Bはゲート制御信号、入力信号Cはカウ
ンタ3のリセツト信号である。
FIG. 1 is a circuit diagram of an embodiment of the present invention. In the figure, reference numeral 1 denotes an input conversion circuit, which is a circuit for converting an input state signal A from a controlled device into a clock frequency modulation signal. If this input state signal A can be used directly as the output A' of this circuit 1, this circuit 1 is not necessary. This output A' is given to the counter 3 via the gate circuit 2.
Input signal B is a gate control signal, and input signal C is a reset signal for counter 3.

一方、第1図で5および6はそれぞれレジスタ
で、この内容はそれぞれ全加算回路7および8に
与えられている。この全加算回路7および8の他
方の入力には、前記カウンタ3の内容が与えられ
ている。この全加算回路7および8の他方の入力
には、前記カウンタ3の内容が与えられている。
この全加算回路7および8の最上位桁の桁上り信
号は、それぞれオア回路11およびノア回路12
の入力に与えられている。このオア回路11よび
ノア回路12に結合された回路5′および6′は、
それぞれレジスタ5および6の桁上り用の1ビツ
トのレジスタである。このオア回路11の出力は
反転回路13を介して出力信号Dとなり、ノア回
路12の出力は反転回路14を介して出力信号F
となり、オア回路11およびノア回路12の出力
を入力とするアンド回路15の出力は出力信号E
となる。
On the other hand, in FIG. 1, 5 and 6 are registers, the contents of which are given to full adder circuits 7 and 8, respectively. The contents of the counter 3 are given to the other inputs of the full adder circuits 7 and 8. The contents of the counter 3 are given to the other inputs of the full adder circuits 7 and 8.
The carry signals of the most significant digits of the full adder circuits 7 and 8 are transmitted to an OR circuit 11 and a NOR circuit 12, respectively.
is given as an input. Circuits 5' and 6' coupled to this OR circuit 11 and NOR circuit 12 are as follows:
These are 1-bit registers for carry of registers 5 and 6, respectively. The output of this OR circuit 11 becomes an output signal D via an inversion circuit 13, and the output of the NOR circuit 12 becomes an output signal F via an inversion circuit 14.
The output of the AND circuit 15 which receives the outputs of the OR circuit 11 and the NOR circuit 12 is the output signal E.
becomes.

このように構成された装置では、制御設定値の
下限値SLの「2の補数」をレジスタ5に、上限
値SUの「1の補数」をレジスタ6に与える。
In the device configured in this manner, the "two's complement" of the lower limit value S L of the control setting value is given to the register 5, and the "one's complement" of the upper limit value S U is given to the register 6.

被制御装置からの入力状態信号はクロツクパル
スの周波数A′に変換され、一定時間だけゲート
2からカウンタ3に取込まれる。このカウンタ3
の内容と、上記レジスタ5または6の内容は全加
算回路7または8で全加算が実行される。この桁
上り信号はそれぞれ回路11〜15で演算される
と、その出力D,E,Fにはそれぞれ次に示すよ
うな信号が得られる。すなわち、設定値の下限値
L、上限値SUに対して、カウンタ3に取込まれ
たパルスの数をXとすると、 X<SL のとき DEF=100 SL≦X≦SU のとき DEF=010 X>SU のとき DEF=001 となる。このように、本回路は入力状態信号が
その設定値の下限値以下にあるか、下限値と上限
値の間にあるか、上限値以上にあるかを単純なビ
ツト信号に変換して送出する。
The input status signal from the controlled device is converted to a clock pulse frequency A' and is input to the counter 3 from the gate 2 for a fixed period of time. This counter 3
and the contents of the register 5 or 6 are subjected to full addition by a full adder circuit 7 or 8. When these carry signals are respectively calculated in circuits 11 to 15, the following signals are obtained at their outputs D, E, and F, respectively. In other words, if X is the number of pulses taken into the counter 3 with respect to the lower limit value S L and upper limit value S U of the set values, then when X<S L , DEF=100 where S L ≦X≦S U When DEF=010 When X>S U , DEF=001. In this way, this circuit converts into a simple bit signal whether the input status signal is below the lower limit of the set value, between the lower limit and the upper limit, or above the upper limit and sends it out. .

第2図は本考案実施例回路の使用状態の一例を
示す図である。20は本考案実施例回路で上記第
1図の回路に相当する。21はマイクロプロセツ
サ、22は被制御装置である。第2図に示す
ABCDEFはそれぞれ第1図に示す符号と対応す
る。Gは主としてレジスタ5および6の設定値内
容を変更する信号である。Hはマイクロプロセツ
サが被制御装置に対して実行する制御を示す。
FIG. 2 is a diagram showing an example of the usage state of the circuit according to the present invention. Reference numeral 20 denotes a circuit according to an embodiment of the present invention, which corresponds to the circuit shown in FIG. 1 above. 21 is a microprocessor, and 22 is a controlled device. Shown in Figure 2
ABCDEF corresponds to the symbols shown in FIG. 1, respectively. G is a signal that mainly changes the contents of the set values of registers 5 and 6. H indicates the control that the microprocessor executes on the controlled device.

このような構成では、まずプロセツサ21から
制御回路20に信号Cを送り、カウンタ内容をク
リアしてから、ゲート信号Bにより一定時間だけ
入力状態信号Aを取込む。次に上述の演算処理を
行つて、出力DEFを送出し、これによりマイク
ロプロセツサ21が信号Hにより被制御装置22
を制御する。必要があれば信号Gにより設定値を
変更する。この一連の動作は必要な限り繰返して
行われる。
In such a configuration, the processor 21 first sends the signal C to the control circuit 20 to clear the contents of the counter, and then receives the input state signal A for a certain period of time using the gate signal B. Next, the above-mentioned arithmetic processing is performed and the output DEF is sent out, which causes the microprocessor 21 to send the signal H to the controlled device 22.
control. If necessary, the set value is changed using signal G. This series of operations is repeated as long as necessary.

以上述べたように、本考案の制御回路を利用す
ることにより、マイクロプロセツサの負担は著し
く軽減され、制御が高速化され、制御精度が向上
するとともに、従来利用できなかつた状態信号を
利用することができるようになる。また、マイク
ロプロセツサに余裕ができるため、従来不可能で
あつた制御を可能とすることもできる等、その適
用範囲が拡大する。特に、本回路を利用すること
により、マイクロプロセツサを容易にサーボ系に
導入することができるようになる効果は大きい。
As described above, by using the control circuit of the present invention, the burden on the microprocessor is significantly reduced, control speed is increased, control accuracy is improved, and status signals that were previously unavailable can be used. You will be able to do this. Furthermore, since the microprocessor has more leeway, the scope of its application is expanded, such as making it possible to perform controls that were previously impossible. In particular, the use of this circuit has a great effect in that a microprocessor can be easily introduced into a servo system.

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

第1図は本考案実施例回路の構成図。第2図は
本考案回路の利用形態の一例を示す図。 1……変換回路、2……ゲート回路、3……カ
ウンタ、5,6……レジスタ、5′,6′……レジ
スタの最上位ビツト、7,8……全加算回路、2
0……本考案の回路、21……マイクロプロセツ
サ、22……被制御装置。
FIG. 1 is a configuration diagram of a circuit according to an embodiment of the present invention. FIG. 2 is a diagram showing an example of a usage form of the circuit of the present invention. 1... Conversion circuit, 2... Gate circuit, 3... Counter, 5, 6... Register, 5', 6'... Most significant bit of register, 7, 8... Full adder circuit, 2
0...Circuit of the present invention, 21...Microprocessor, 22...Controlled device.

Claims (1)

【実用新案登録請求の範囲】 被制御系から到来する入力パルス信号の通過時
間を制御するゲート回路と、 このゲート回路を通過したパルスを計数するカ
ウンタと、 設定値の上限値および下限値に対応する値をそ
れぞれ蓄積する2個のレジスタと、 この各レジスタの内容および上記カウンタの内
容をそれぞれ入力として桁上り信号を出力する2
個の全加算回路と、 この全加算回路の桁上り信号を入力とする論理
回路とを備え、 上記論理回路は、 上限値を越えたことを表す信号、上限値以下下
限以上であることを表す信号および下限値を下ま
わつたことを表す信号を出力する構成であり、こ
の3個の信号が上記被制御系を制御するマイクロ
プロセツサの入力に接続されたことを特徴とする
制御回路。
[Scope of Claim for Utility Model Registration] A gate circuit that controls the passage time of an input pulse signal coming from a controlled system, a counter that counts the pulses that have passed through this gate circuit, and corresponds to the upper and lower limit values of the set value. 2 registers that each store the values to be input, and 2 that outputs a carry signal by inputting the contents of these registers and the contents of the counter above, respectively.
It is equipped with a full adder circuit and a logic circuit that receives the carry signal of this full adder circuit as input, and the logic circuit has a signal indicating that the upper limit has been exceeded, and a signal indicating that the upper limit is less than or equal to the lower limit. 1. A control circuit configured to output a signal and a signal indicating that the lower limit value has been exceeded, the three signals being connected to inputs of a microprocessor that controls the controlled system.
JP1979045212U 1979-04-04 1979-04-04 Expired JPS6121681Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1979045212U JPS6121681Y2 (en) 1979-04-04 1979-04-04

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1979045212U JPS6121681Y2 (en) 1979-04-04 1979-04-04

Publications (2)

Publication Number Publication Date
JPS55146501U JPS55146501U (en) 1980-10-21
JPS6121681Y2 true JPS6121681Y2 (en) 1986-06-28

Family

ID=28923031

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1979045212U Expired JPS6121681Y2 (en) 1979-04-04 1979-04-04

Country Status (1)

Country Link
JP (1) JPS6121681Y2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5377978A (en) * 1976-12-22 1978-07-10 Hitachi Ltd Digital processing system for automatic controlling system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5377978A (en) * 1976-12-22 1978-07-10 Hitachi Ltd Digital processing system for automatic controlling system

Also Published As

Publication number Publication date
JPS55146501U (en) 1980-10-21

Similar Documents

Publication Publication Date Title
JPS6121681Y2 (en)
SU1034175A1 (en) Code/frequency converter
SU924859A1 (en) Frequency-to-code converter
JP2568163Y2 (en) Up-down counter circuit
SU1107136A1 (en) Digital function generator
SU1674159A1 (en) Device to check and estimate the analog signal mean value
SU1125618A2 (en) Device for calculating value of square root
SU1396280A2 (en) Binary code-to-binary-decimal code of angular units converter
SU960837A1 (en) Digital function converter
SU1064458A1 (en) Code/pdm converter
SU1376106A1 (en) Analog-to-digital integrating device
SU1385128A1 (en) Frequency-pulsed signal adder
SU809159A1 (en) Decoder
SU984038A1 (en) Frequency-to-code converter
SU750491A1 (en) Coordinate transforming device
SU900438A2 (en) Follow-up analogue-digital converter
SU1420545A1 (en) Digital phase meter
JP2809655B2 (en) Digital arithmetic circuit
JPH0136727B2 (en)
SU1094031A1 (en) Square-low function generator
SU813395A1 (en) Timer
SU377822A1 (en)
SU1679477A1 (en) Functions generator
SU411453A1 (en)
SU1089551A1 (en) Interpolator