JPH01320543A - Microprocessor device - Google Patents
Microprocessor deviceInfo
- Publication number
- JPH01320543A JPH01320543A JP63153737A JP15373788A JPH01320543A JP H01320543 A JPH01320543 A JP H01320543A JP 63153737 A JP63153737 A JP 63153737A JP 15373788 A JP15373788 A JP 15373788A JP H01320543 A JPH01320543 A JP H01320543A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- circuit
- microprocessor
- counter
- holding circuit
- 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.)
- Granted
Links
Landscapes
- Feedback Control In General (AREA)
- Safety Devices In Control Systems (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、所定の演算を行うマイクロプロセッサと、こ
のマイクロプロセッサからの信号をアナログ信号として
保持する信号保持回路とを備えたマイクロプロセッサ装
置に関し、更に詳しくは、マイクロプロセッサの動作異
常が生じた時、その動作異常が生じる直前における信号
保持回路の出力を、ドリフトなく保持できるようにした
マイクロプロセッサ装置に関する。Detailed Description of the Invention (Field of Industrial Application) The present invention relates to a microprocessor device that includes a microprocessor that performs predetermined calculations and a signal holding circuit that holds signals from the microprocessor as analog signals. More specifically, the present invention relates to a microprocessor device that is capable of holding the output of a signal holding circuit immediately before the abnormal operation occurs without drift when the abnormal operation of the microprocessor occurs.
(従来の技術)
従来のマイクロプロセッサからの信号をアナログ信号と
して保持する信号保持回路は、コンデンサを用いたサン
プル・ホールド回路が利用されており、マイクロプロセ
ッサの動作異常が検出された場合、サンプル・ホールド
スイッチをオフとし、コンデンサに動作異常が生じる直
前の出力信号を保持させるようにしていた。(Prior art) Conventional signal holding circuits that hold signals from microprocessors as analog signals use sample-and-hold circuits that use capacitors. The hold switch was turned off to allow the capacitor to hold the output signal just before the malfunction occurred.
(発明が解決しようとする課題)
しかしながら、コンデンサに信号を保持するように構成
したものは、その状態を長時間続けると洩れ電流によっ
て信号の値が僅かづづ変化するという問題点がある。(Problem to be Solved by the Invention) However, a device configured to hold a signal in a capacitor has a problem in that if this state is continued for a long time, the signal value changes slightly due to leakage current.
本発明は、この様な問題点に鑑みてなされたものであっ
て、その目的は、従来のものに別のデジタル回路を付加
することによって、マイクロプロセッサの動作異常時に
、出力信号をドリフトなく長時間保持できるマイクロプ
ロセッサ装置を実現することにある。The present invention has been made in view of the above problems, and its purpose is to add a separate digital circuit to the conventional one, so that the output signal can be extended over a long period of time without drifting when the microprocessor malfunctions. The object of the present invention is to realize a microprocessor device that can keep time.
(課題を解決するための手段)
第1図は、本発明の基本的な構成を示すブロック図であ
る0図において、1は所定の演算を行うマイクロプロセ
ッサ、2はこのマイクロプロセッサ1からの信号をアナ
ログ信号として保持する信号保持回路、3はマイクロプ
ロセッサ1の動作を監視する監視手段、SWlはこの監
視手段3によってマイクロプロセッサ1の動作異常が検
出されたとき信号保持回路2とマイクロプロセッサ1と
の間の接続を切り離す第1のスイッチ手段、4はカウン
タ、5はこのカウンタ4からのディジタル信号をアナロ
グ信号に変換するD/A変換器、6はこのD/A変換器
5からの信号と信号保持回路2からの信号とを比較する
比較器、SW2はD/A変換器5からの信号を信号保持
回路2の入力側に与える第2のスイッチ手段である。(Means for Solving the Problems) FIG. 1 is a block diagram showing the basic configuration of the present invention. In FIG. 3 is a monitoring means for monitoring the operation of the microprocessor 1, and SWl is a signal holding circuit for holding the signal holding circuit 2 and the microprocessor 1 as an analog signal. 4 is a counter; 5 is a D/A converter that converts the digital signal from the counter 4 into an analog signal; 6 is a signal from the D/A converter 5; A comparator SW2 for comparing the signal from the signal holding circuit 2 is a second switch means for applying the signal from the D/A converter 5 to the input side of the signal holding circuit 2.
7はクロックと監視手段3からの信号と比較器6からの
信号を入力し、監視手段3がマイクロプロセッサ1の動
作異常を検出しない間は、比較器6からの信号が反転す
るまでカウンタ4にクロックを与えカウンタの値が所定
周期毎に信号保持回路2の出力に追随するようにし、監
視手段3がマイクロプロセッサ1の動作異常を検出する
と、前記の追随動作を停止しカウンタ4に信号保持回路
2の出力を保持させると共に第2のスイッチSW2を駆
動するロジック回路である。7 inputs the clock, the signal from the monitoring means 3, and the signal from the comparator 6, and while the monitoring means 3 does not detect any abnormal operation of the microprocessor 1, the signal from the comparator 6 is input to the counter 4 until the signal from the comparator 6 is inverted. A clock is supplied so that the value of the counter follows the output of the signal holding circuit 2 at predetermined intervals, and when the monitoring means 3 detects an abnormal operation of the microprocessor 1, the following operation is stopped and the value of the counter 4 follows the output of the signal holding circuit 2. This is a logic circuit that holds the output of the second switch SW2 and drives the second switch SW2.
(作用)
マイクロプロセッサ1が正常な動作をしている間は、マ
イクロプロセッサ1からの信号は第1のスイッチ手段S
W1を介して信号保持回路2を経由して出力される。こ
の状態では、カウンタ4の計数値は、比較器6、ロジッ
ク回路7を含むループによって信号保持回路2の出力に
追随している。(Function) While the microprocessor 1 is operating normally, the signal from the microprocessor 1 is sent to the first switch means S.
The signal is output via W1 and the signal holding circuit 2. In this state, the count value of the counter 4 follows the output of the signal holding circuit 2 through a loop including the comparator 6 and the logic circuit 7.
マイクロプロセッサ1が動作異常となると、ロジック回
路7は前記の追随動作を停止し、カウンタ4に保持され
ている計数値を第2のスイッチSW2、信号保持回路2
を経由して出力する。When the microprocessor 1 malfunctions, the logic circuit 7 stops the tracking operation and transfers the count value held in the counter 4 to the second switch SW2 and the signal holding circuit 2.
Output via .
(実施例) 以下図面を用いて、本発明の実施例を詳細に説明する。(Example) Embodiments of the present invention will be described in detail below with reference to the drawings.
第2図は、本発明の一実施例を示す構成ブロック図であ
る。この実施例ではマイクロプロセッサを用いて調節計
を構成したものについて示しである8図において、第1
図の各部分と同じものには同一符号を付して示す、マイ
クロプロセッサ1において、11は演算制御部(CPU
)、12は各種のプログラムやデータを格納したROM
、13はデータや演算式等を格納したRAM、14は入
出力ボートとで、これらはバスを介して互いに接続され
ている。15は比較器で、一方の入力端にマルチプレク
サ16で選択されたプロセスからの測定信号Pvや、設
定値〈目標値)信号Svを入力する。16はマイクロプ
ロセッサ1からの演算結果をアナログ信号に変換するD
/A変換器で、ここからのアナログ信号が信号保持回路
2に印加されている。なお、D/A変換器16の出力信
号は、比較器15の他方の入力端に印加されており、測
定信号pvや、設定値(目標値)信号SVをデジタル信
号に変換する場合の、A/D変換ループを形成している
。FIG. 2 is a block diagram showing an embodiment of the present invention. In this example, the controller is configured using a microprocessor.
In the microprocessor 1, 11 is an arithmetic control unit (CPU).
), 12 is a ROM that stores various programs and data.
, 13 is a RAM storing data, arithmetic expressions, etc., and 14 is an input/output board, which are connected to each other via a bus. Reference numeral 15 denotes a comparator, into which the measurement signal Pv from the process selected by the multiplexer 16 and the set value (target value) signal Sv are input to one input terminal. 16 is D that converts the calculation result from the microprocessor 1 into an analog signal.
An analog signal from the /A converter is applied to the signal holding circuit 2. Note that the output signal of the D/A converter 16 is applied to the other input terminal of the comparator 15, and when converting the measurement signal pv or set value (target value) signal SV into a digital signal, A /D conversion loop is formed.
信号保持回路2において、SOはマイクロプロセッサ1
からの信号によって駆動されるサンプル・ホールドスイ
ッチ、20はホールド用コンデンサ、21はアンプであ
る。マイクロプロセッサ1の動作を監視する監視手段3
としては、ウオッチドックタイマが用いられ、これがタ
イムアツプすると、マイクロプロセッサの動作異常が生
じたとして、FATLランプを点灯すると共に、そのF
AIL信号をロジック回路7に出力するように構成され
ている。In the signal holding circuit 2, SO is the microprocessor 1
20 is a hold capacitor, and 21 is an amplifier. Monitoring means 3 for monitoring the operation of the microprocessor 1
In this case, a watchdog timer is used, and when this timer expires, it is assumed that a malfunction has occurred in the microprocessor, and the FATL lamp is turned on and the FATL lamp is turned on.
It is configured to output the AIL signal to the logic circuit 7.
ロジック回F!@7は、クロックCLKを入力するゲー
ト71.72、これらのゲートを制御するグー1−制御
回路73、監視手段3からのFAII、信月とクロック
を入力し、第2のスイッチSW2を駆動する同期回路7
4で構成されている。Logic episode F! @7 inputs the gates 71 and 72 that input the clock CLK, the Goo 1-control circuit 73 that controls these gates, the FAII from the monitoring means 3, Shinzuki, and the clock, and drives the second switch SW2. Synchronous circuit 7
It consists of 4.
70は手動操作手段で、増加スイッチlNC5減少スイ
ッチDECを有し、その出力がゲート制御回路73に印
加されている。この手動操作手段70は、マイクロプロ
セッサ1が動イヤ異常の状態で、出力信号Vou’tを
変更するような場合に用いられる。Reference numeral 70 denotes a manual operation means having an increase switch INC5 and a decrease switch DEC, the output of which is applied to the gate control circuit 73. This manual operation means 70 is used when the microprocessor 1 is in a state where the moving ear is abnormal and the output signal Vout't is changed.
この様に構成した装置の動作を次に説明する。The operation of the apparatus configured in this way will be explained next.
第3図は、動作の一例を示すタイムチャーI・である。FIG. 3 is a time chart I showing an example of the operation.
はじめにマイクロプロセッサ1の動作が正常に行われて
いるらのとする。この状態では、監視手段3はタイムア
ツプすることはなく、第1のスイッチSWtは接点a(
IJJ(D/A変換器16@)に接続されており、マイ
クロプロセッサ1による例えば比例、積分等の制御演算
結果は、D/A変換器16、第1のスイッチSWIを経
て信号保持回路2からアナログ信号Voutとして、(
d)に示すように出力される。First, it is assumed that the microprocessor 1 is operating normally. In this state, the monitoring means 3 does not time up, and the first switch SWt is connected to the contact a (
It is connected to the IJJ (D/A converter 16@), and the results of control calculations such as proportional and integral operations by the microprocessor 1 are sent from the signal holding circuit 2 via the D/A converter 16 and the first switch SWI. As the analog signal Vout, (
It is output as shown in d).
信号保持回路2の出力信号Voutは、比較器6の一方
の入力端にも印加されており、ロジック回路73は、比
較器6からの信号が反転するまで、クロックCLKを例
えばゲート71を開いて、カウンタ4のtJP@子に印
加する。カウンタ4は、印加されるクロックを計数し、
D/A変換器5は、これをアナログ信号Vdに変換して
、比較器6の他方の入力端に印加する。The output signal Vout of the signal holding circuit 2 is also applied to one input terminal of the comparator 6, and the logic circuit 73 controls the clock CLK by opening the gate 71, for example, until the signal from the comparator 6 is inverted. , is applied to the tJP@ child of the counter 4. Counter 4 counts applied clocks,
The D/A converter 5 converts this into an analog signal Vd and applies it to the other input terminal of the comparator 6.
カウンタ4の計数値が(f)に示すように増加し、D/
A変換器5の出力Vdが信号保持回路2からの出力信号
Voutに等しくなると、比較器6の出力が<g)に示
すように反転する。The count value of counter 4 increases as shown in (f), and D/
When the output Vd of the A converter 5 becomes equal to the output signal Vout from the signal holding circuit 2, the output of the comparator 6 is inverted as shown in <g).
ロジック回路7は、比較器6からの反転信号を受け、カ
ウンタ4へのクロックの供給を停止し、カウンタ4の計
数値を(f)に示すように保持させる。このカウンタ4
の計数値は、(b)に示すクロックを分周して得られる
(e)に示すリセットパルスによって、一定周期Tごと
にリセットされる。The logic circuit 7 receives the inverted signal from the comparator 6, stops supplying the clock to the counter 4, and holds the count value of the counter 4 as shown in (f). This counter 4
The count value is reset at regular intervals T by the reset pulse shown in (e) obtained by dividing the clock shown in (b).
マイクロプロセッサ1の動作が正常の状態では、カウン
タ4、D/A変換器5、比較器6、ロジック回路7で形
成されるループによって、カウンタ4に一定周期毎に信
号保持回路2の出力信号V。When the microprocessor 1 is operating normally, a loop formed by the counter 4, the D/A converter 5, the comparator 6, and the logic circuit 7 sends the output signal V of the signal holding circuit 2 to the counter 4 at regular intervals. .
utに追随したデジタル信号が保持される。The digital signal following ut is held.
この様な状態から、マイクロプロセッサ1の動牛に異常
が生ずると1、ユれを監視手段3が検出しくa)に示す
ようなFAIL信号を出力すると共に、第1のスイッチ
SWIを(h)に示すように接点a側から接点す側(マ
イクロプロセッサ1からの出力を切り離)−)に駆動す
る。In such a state, if an abnormality occurs in the movement of the microprocessor 1, the monitoring means 3 detects the deviation and outputs a FAIL signal as shown in a), and also turns the first switch SWI on (h). As shown in the figure, the contact is driven from the contact a side to the contact side (the output from the microprocessor 1 is disconnected).
ゲート制御回路73は、監視手段3からのFAIL信号
を受けると、カウンタ4に信号保持回路2の出力Vou
tに対応するデジタル信号が保持された時点で、カウン
タ4、D/A変換器5、比較器6、ロジック回路7で形
成されるループを解除する。また、同期回路74は監視
手段3からのFAIL信号を受けると、次のサイクルか
らFAIL信号がなくなるまで、(1)に示すように第
2のスイッチSW2をオンに駆動する。When the gate control circuit 73 receives the FAIL signal from the monitoring means 3, the gate control circuit 73 outputs the output Vou of the signal holding circuit 2 to the counter 4.
When the digital signal corresponding to t is held, the loop formed by the counter 4, D/A converter 5, comparator 6, and logic circuit 7 is released. Further, upon receiving the FAIL signal from the monitoring means 3, the synchronization circuit 74 turns on the second switch SW2 as shown in (1) from the next cycle until the FAIL signal disappears.
第2のスイッチSW2がオンとなると、カウンタ4に保
持されているデジタル信号(このデジタル値は第1のス
イッチSW1が駆動される直前の信号保持回路2の出力
Voutに対応する)がD/A変換器5を経てアナログ
信号に変換され、信号保持回路2の入力側に与えちる。When the second switch SW2 is turned on, the digital signal held in the counter 4 (this digital value corresponds to the output Vout of the signal holding circuit 2 immediately before the first switch SW1 is driven) is transferred to the D/A The signal is converted into an analog signal via the converter 5 and applied to the input side of the signal holding circuit 2.
従って、この状態での信号保持回路2からの出力信号V
o u tは、カウンタ4によってテジタル保持され
ているものであるから、長時間に亘ってドリフトするこ
とはない。Therefore, the output signal V from the signal holding circuit 2 in this state
Since ou t is held digitally by the counter 4, it will not drift over a long period of time.
この様な状態において、手動操作手段70のスイッチI
NCまたはDECを操作すると、ゲート制御回路73は
これを受け、クロックをカウンタ4のUP端子または、
DNnA子に印加する。従って、信号保持回路2からの
出力信号V o u tの値を手動によって変更させる
ことが出来る。In such a state, the switch I of the manual operation means 70
When NC or DEC is operated, the gate control circuit 73 receives this and outputs the clock to the UP terminal of the counter 4 or
Apply to DNnA child. Therefore, the value of the output signal V out from the signal holding circuit 2 can be changed manually.
なお、上記の実施例では比較器6は信号保持回路2のア
ンプ21の出力電圧を入力するような構成としたもので
あるが、ホールド用コンデンサ20の電圧を入力するよ
うにしてもよい。In the above embodiment, the comparator 6 is configured to input the output voltage of the amplifier 21 of the signal holding circuit 2, but it may also be configured to input the voltage of the hold capacitor 20.
また、カウンタ4のデジタル信号をD/A変換した出力
Vdを、第2のスイッチ及び第1のスイッチsw1を介
して信号保持回路2の入力側に与えるようにしたが、第
2のスイッチSW2を介して直接信号保持回路2の入力
側に与えるようにしてもよい。Further, although the output Vd obtained by D/A converting the digital signal of the counter 4 is applied to the input side of the signal holding circuit 2 via the second switch and the first switch sw1, the second switch SW2 is Alternatively, the signal may be directly applied to the input side of the signal holding circuit 2 via the signal holding circuit 2.
(発明の効果)
以上詳細に説明しなように、本発明によればマイクロプ
ロセッサが動作異常になった場合などにおいて、信号保
持回路の出力信号を長時間、ドリフトなくホールドする
ことのできるマイクロプロセッサ装置が実現できる。(Effects of the Invention) As described above in detail, according to the present invention, the microprocessor is capable of holding the output signal of the signal holding circuit for a long time without drifting when the microprocessor malfunctions. The device can be realized.
第1図は本発明の基本的な構成を示すブロック図、第2
図は本発明の一実施例を示す構成ブロック図、第3図は
その動作の一例を示すタイムチャーチである。
1・・・マイクロプロセッサ
2・・・信号保持回路
3・・・監視手段
4・・・カウンタ
5・・・D/A変換器
6・・・比較器
7・・・ロジック回路
SWI・・・第1のスイッチ
SW2・・・第2のスイッチ
第1図
’%53図Figure 1 is a block diagram showing the basic configuration of the present invention, Figure 2 is a block diagram showing the basic configuration of the present invention.
The figure is a block diagram showing an embodiment of the present invention, and FIG. 3 is a time church showing an example of its operation. 1...Microprocessor 2...Signal holding circuit 3...Monitoring means 4...Counter 5...D/A converter 6...Comparator 7...Logic circuit SWI...No. 1 switch SW2...Second switch Figure 1'%53 Figure
Claims (1)
て保持する信号保持回路と、 前記マイクロプロセッサの動作を監視する監視手段と、 この監視手段によってマイクロプロセッサの動作異常が
検出されたとき前記信号保持回路と前記マイクロプロセ
ッサとの間の接続を切り離す第1のスイッチ手段と、 カウンタと、 このカウンタからのディジタル信号をアナログ信号に変
換するD/A変換器と、 このD/A変換器からの信号と前記信号保持回路からの
信号とを比較する比較器と、 前記D/A変換器からの信号を前記信号保持回路の入力
側に与える第2のスイッチ手段と、クロックと前記監視
手段からの信号と前記比較器からの信号を入力し、監視
手段がマイクロプロセッサの動作異常を検出しない間は
、比較器からの信号が反転するまで前記カウンタにクロ
ックを与えカウンタの値が所定周期毎に前記信号保持回
路の出力に追随するようにし、監視手段がマイクロプロ
セッサの動作異常を検出すると、前記の追随動作を停止
しカウンタに信号保持回路の出力を保持させると共に第
2のスイッチを駆動するロジック回路、 を備えたマイクロプロセッサ装置。[Scope of Claims] A microprocessor that performs predetermined calculations; a signal holding circuit that holds signals from the microprocessor as analog signals; monitoring means that monitors the operation of the microprocessor; a first switch means for disconnecting the signal holding circuit and the microprocessor when an abnormal operation is detected; a counter; and a D/A converter for converting the digital signal from the counter into an analog signal. a comparator that compares the signal from the D/A converter with the signal from the signal holding circuit; and a second switch that applies the signal from the D/A converter to the input side of the signal holding circuit. input means, a clock, a signal from the monitoring means, and a signal from the comparator, and as long as the monitoring means does not detect an abnormal operation of the microprocessor, the clock is applied to the counter until the signal from the comparator is inverted. The value of the given counter is made to follow the output of the signal holding circuit at predetermined intervals, and when the monitoring means detects an abnormal operation of the microprocessor, the following operation is stopped and the counter is made to hold the output of the signal holding circuit. and a logic circuit for driving a second switch.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63153737A JPH0621992B2 (en) | 1988-06-22 | 1988-06-22 | Microprocessor device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63153737A JPH0621992B2 (en) | 1988-06-22 | 1988-06-22 | Microprocessor device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01320543A true JPH01320543A (en) | 1989-12-26 |
| JPH0621992B2 JPH0621992B2 (en) | 1994-03-23 |
Family
ID=15568999
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63153737A Expired - Fee Related JPH0621992B2 (en) | 1988-06-22 | 1988-06-22 | Microprocessor device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0621992B2 (en) |
-
1988
- 1988-06-22 JP JP63153737A patent/JPH0621992B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0621992B2 (en) | 1994-03-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| ATE115787T1 (en) | CIRCUIT ARRANGEMENT FOR POWERING A LOAD. | |
| JPH01320543A (en) | Microprocessor device | |
| JPH02254968A (en) | Voltage detection system | |
| JP2002123301A (en) | Control device | |
| JPS5918482Y2 (en) | electronic controller | |
| JPH03269320A (en) | Phase detector | |
| JPS5523547A (en) | Function control method of power controller | |
| JPH0317722A (en) | Reference time interruption method | |
| JPS62168204A (en) | digital control device | |
| JPH04291610A (en) | Microcomputer reset circuit | |
| JPS6068167A (en) | Dc power source device for arc welding | |
| JPS5929237Y2 (en) | controller | |
| KR920005240Y1 (en) | Synchronous signal switching circuit | |
| JPS62235813A (en) | Signal converter having fail safe function | |
| JPH0565881B2 (en) | ||
| JP2805902B2 (en) | DC-DC converter having alarm signal transmission function | |
| JPS6288039A (en) | Abnormality processing circuit for microcomputer | |
| WO1993004415A1 (en) | Method for dealing with instantaneous voltage drop of power supply in cnc equipment, and apparatus therefor | |
| JPH08275516A (en) | Power supply | |
| JPS5888447U (en) | Analog to digital converter | |
| JPS59142524A (en) | Laser exposing device | |
| JPS6188318A (en) | Clock function of microcomputer | |
| JPS58172761A (en) | Watchdog circuit | |
| JPS6012642B2 (en) | Auxiliary control method | |
| JPS62245815A (en) | Pulse width modulation circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |