JPS5866198A - Microcomputer resetting circuit - Google Patents

Microcomputer resetting circuit

Info

Publication number
JPS5866198A
JPS5866198A JP56164780A JP16478081A JPS5866198A JP S5866198 A JPS5866198 A JP S5866198A JP 56164780 A JP56164780 A JP 56164780A JP 16478081 A JP16478081 A JP 16478081A JP S5866198 A JPS5866198 A JP S5866198A
Authority
JP
Japan
Prior art keywords
output
microcomputer
pulse
cpu
time
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
JP56164780A
Other languages
Japanese (ja)
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.)
Yokogawa Electric Corp
Original Assignee
Hokushin Electric Works 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 Hokushin Electric Works Ltd filed Critical Hokushin Electric Works Ltd
Priority to JP56164780A priority Critical patent/JPS5866198A/en
Publication of JPS5866198A publication Critical patent/JPS5866198A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)
  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 この発明は、マイクロコンピュータを応用した計11器
のマイクロコンピュータリセット1路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a microcomputer reset path for a total of 11 units using a microcomputer.

マイクロコンfエータを利用した計測器では、ノイズ等
の影響に′よりマイクロコンビュータカ停止した。場合
の対策を講じる会費があり、従来は第1図に示すような
構成としている。すなわち、計測器10に内蔵されたマ
イク四プロセッサ(マイクロコンピュータ;以下、単K
CPU、uする)11の出力を出力回路12を介して他
装置に伝送すると共に、CPUIIからの繰返パルスB
Pをリセット信号としてカウンタ13に入力するように
なっている。そして、カウンタ13は外部からのりpツ
クパルスCPを計数してオアゲー)14に与えると共に
、を帥リセット回路15からのリセット信号R8をオア
ゲート14に与え、オアゲート14から出力されるリセ
ツこのような構成において、電源投入時には電源リセッ
ト回路15からリセット信号R8か出力され、オアゲー
ト14を介してリセット信号RFがCPUIIK入力さ
れ、CPUIIはリセットされる。また、通常動作時は
、カウンタ13はクロックパルスCPを数によってカウ
ンタ13がオーバフローする前に繰返パルスRPでリセ
ットされるようになっているため、カウンタ13の出力
RPBは常にrLJレベルとなっている。したがって、
この場合にはオアゲート14からのリセット信号RFも
rLJレベルであり、’CPU 11はリセットされる
ことはない。しかして、CPUIIが停止すると繰返パ
ルスRPが出力されないため、カウンタ13はクロック
パルスCPを計数してオーバフローし、その出力RPB
がrHJレベルとなることKよってオアゲート14から
のり従来のリセット方式ではCPUIIの故障判定機能
を有していないため、実際にCPUIIが故障した場合
でもその異常を簡単に検知することができないといった
欠点がある。よって、この発明の目的は上述の如き欠点
のないマイクロコンピュータリセット回路を提供するこ
とkある。
Measuring instruments that use micro-computers have stopped working due to the effects of noise and other factors. There is a membership fee to take measures for such cases, and the conventional structure is as shown in Figure 1. That is, a microphone built into the measuring instrument 10 has four processors (microcomputers; hereinafter referred to as single K).
The output of the CPU (U) 11 is transmitted to other devices via the output circuit 12, and the repetitive pulse B from the CPU II is transmitted to other devices via the output circuit 12.
P is input to the counter 13 as a reset signal. Then, the counter 13 counts the positive pulse CP from the outside and supplies it to the OR gate 14, and also supplies the reset signal R8 from the reset circuit 15 to the OR gate 14, so that the reset signal R8 output from the OR gate 14 is When the power is turned on, a reset signal R8 is outputted from the power supply reset circuit 15, and a reset signal RF is inputted to the CPUIIK via the OR gate 14, thereby resetting the CPUII. In addition, during normal operation, the counter 13 is reset by the repeated pulse RP before the counter 13 overflows depending on the number of clock pulses CP, so the output RPB of the counter 13 is always at the rLJ level. There is. therefore,
In this case, the reset signal RF from the OR gate 14 is also at the rLJ level, and the CPU 11 is not reset. However, when the CPU II stops, the repetitive pulse RP is not output, so the counter 13 counts the clock pulse CP and overflows, and the output RPB
Since the conventional reset method does not have a CPU II failure determination function, it has the disadvantage that even if the CPU II actually fails, it cannot easily detect the abnormality. be. SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a microcomputer reset circuit that does not have the above-mentioned drawbacks.

以下にこの発明を設明する。This invention is established below.

この発明は、マイクロコンピュータを電源投入時又は再
スタート時にリセットするためのiイクロコンピュータ
リセット回路に関し、第2図に示すように、マイクロコ
ンピュータ(CPU ) 11の停設け、パルスRPB
の発生時間が予め定めた設定時間を経過しても、CPU
IIが再スタ=lLない場合にのみ警報信号ALを出力
して、警報動作を行なうようにしたものである。しかし
て、パルス発生回路加は再トリガ可能な単安定マルチバ
イブレータ(以下、単に単安定マルチとする)21及び
年安定マルチηで構成されており、単安定マルチ21に
はCPUIIからの繰返パルスRPがトリガパルスとし
て入力されるようになっており、単安定マルチ22には
単安定マルチ21のQ出力信号RM及びクロックパルス
CPがトリガとして入力されるようになっている。また
、時間測定回路(9)は単安定マルチ21のQ出力信号
RMでトリガされる単安定マル入力するDW7リツプ7
0ツブあとで構成されている。そして、フリップフロッ
プおのQ出力が警〜(ト)のタイムチャートを参照して
欽明する。
The present invention relates to an i-microcomputer reset circuit for resetting a microcomputer when the power is turned on or restarted, and as shown in FIG.
Even if the occurrence time of the CPU elapses after the predetermined setting time, the CPU
The alarm signal AL is outputted to perform an alarm operation only when II is not restarted = 1L. Therefore, the pulse generator circuit is composed of a retriggerable monostable multivibrator (hereinafter simply referred to as monostable multi) 21 and a stable multivibrator η, and the monostable multivibrator 21 receives repeated pulses from the CPU II. RP is input as a trigger pulse, and the Q output signal RM of the monostable multi 21 and the clock pulse CP are input to the monostable multi 22 as a trigger. In addition, the time measurement circuit (9) receives the monostable multi input DW7 which is triggered by the Q output signal RM of the monostable multi 21.
It is composed of 0 tsubu after. Then, the Q output of the flip-flop is determined with reference to the time chart.

先ず、通常動作時にはCPUIIから第3図(A)VC
示す如き繰返パルスRPが出力され、これにより再トリ
ガ可能な単安定マルチ21がトリガされるのでその出力
KMはrHJレベルになっている(第3図(B))。し
かして、単安定iルテηは信号膓がrLJレベルで、か
つクロックパルスCPがrHJレベルの時にトリガされ
るため、かかる通常動作時には非トリガ状態となってお
り、その出力RPBはrLJレベルでありCPUIIは
リセットされることはない。なお、単安定マルチ31は
信号RMが「I(」レベVから「L」レベルに変化した
時にトC’PUIIが停止すると、周期的な繰返パルス
R,Pが消失する、しかして、再トリガ可能な単安定マ
ルチ21はそのパルス幅より長い期間トリガを入力しな
(・とQ出力信号KMを[L]レベルとしく時点11)
、信号囮がrLJレベルになることにより単安定マルチ
31がトリガされ、そのQ出力信号RTがI’llレベ
ルとなる(第3図(B)、(ト))。一方、単安定マル
チnは信号RMが[IL、)レベルとなって以降、クロ
ックパルスCPが、j’l−i Jレベルになった時(
時点”2)K)9ガされ、以仮信号RTがrLJレベル
になっている間クロックパルスCP K同期したパルス
RFBを出力する(第3図(H) 、 (C) 、 (
D) )。そして、このパルスR1’Hけオアゲート1
4を経てリセットパルスRFとしてCPU 11に入力
され、CPU11がリセットされる。しかして、CPU
IIが再スタートしないまま所定時間が経過し、単安定
マルチ31のQ出力信号RTがrHJレベルになると(
時点13)フリップフロップおが竜ットされ、そのQ出
力から警報信号ALが出力される(第31W(El、(
ト))。なお、単安定マルチ31の(出力信号RTがr
HJレベルになる前にCPUIIが再スタートした場合
、起動後直ぐに繰返パルスRPKよって単安定マルチ2
1がトリガされ、その出力KMがIf−IJレベルにな
ることによりインバータ諺な介してrLJレベル信号が
D端子に入力されるので、単安定マルチ31の出力RT
がその稜rHJCPUのリセットパルスが自動的に繰返
し与えられ一方、第4図はこの発明の他の実施例を第1
図及び第2図に対応させて示すものであり、パルス発生
回路としてカラン月3を用いると共に、時間測定回路(
資)をカウンタあ及びフリップフロップあで構成したも
のであイ、。なお、カウンタ】3及びあけ繰返パルスR
,Pによってリセットされると共に、このような構成に
おいて、CPUIIが停止してカウンタ13からリセッ
トパルスRPBか出力されると、オアゲート14を介し
てCPTJIIがリセットされると共に、カウンタあが
その回数を計1する。しかして、リセットパルス)(P
B (T(、F )を所定の回数CPU108与えても
再スタートしな(・場合、カウンタあの計数がオーバフ
ローしてフリップフロップ火をセットする。かくして、
フリップフロップあによって外部に異常を知らせるよう
にして(・るが、異常時の出力状態をどのようなものと
するのが望ましく・かけ、計測益の使い方によって相違
する。
First, during normal operation, from CPU II to Figure 3 (A) VC
A repetitive pulse RP as shown is output, which triggers the retriggerable monostable multi 21, so that its output KM is at the rHJ level (FIG. 3(B)). However, since the monostable i-rute η is triggered when the signal voltage is at the rLJ level and the clock pulse CP is at the rHJ level, it is in a non-triggered state during normal operation, and its output RPB is at the rLJ level. CPU II is never reset. In addition, in the monostable multi 31, when the signal RM changes from the "I(" level V to the "L" level) and the C'PUII stops, the periodic repetitive pulses R and P disappear. Do not input a trigger to the triggerable monostable multi 21 for a period longer than its pulse width (and set the Q output signal KM to [L] level at time 11).
When the signal decoy becomes rLJ level, the monostable multi 31 is triggered, and its Q output signal RT becomes I'll level (FIGS. 3(B) and (G)). On the other hand, in the monostable multi n, after the signal RM becomes the [IL, ) level, when the clock pulse CP becomes the j'l-i J level (
At time point "2)K)9", while the temporary signal RT is at the rLJ level, the clock pulse RFB synchronized with the clock pulse CPK is output (Fig. 3 (H), (C), (
D) ). Then, this pulse R1'H is OR gate 1
4 and is input to the CPU 11 as a reset pulse RF, and the CPU 11 is reset. However, the CPU
If a predetermined period of time passes without II restarting and the Q output signal RT of the monostable multi 31 reaches the rHJ level (
Time point 13) The flip-flop is turned off, and the alarm signal AL is output from its Q output (31st W (El, (
to)). Note that the output signal RT of the monostable multi 31 is r
If the CPU II restarts before reaching the HJ level, the monostable multi-2
1 is triggered and its output KM becomes If-IJ level, and the rLJ level signal is input to the D terminal through the inverter, so the output RT of the monostable multi 31
4 shows another embodiment of the present invention.
It is shown in correspondence with FIG.
It consists of a counter (A) and a flip-flop (A). In addition, counter] 3 and opening repetition pulse R
, P. In this configuration, when the CPU II is stopped and the reset pulse RPB is output from the counter 13, the CPTJII is reset via the OR gate 14, and the counter counts the number of times. Do 1. Therefore, the reset pulse) (P
If B (T(, F ) is applied to the CPU 108 a predetermined number of times, it does not restart (), then the counter overflows and sets the flip-flop. Thus,
Flip-flops are used to notify the outside of an abnormality, but what kind of output state is desirable at the time of an abnormality depends on how the measurement gain is used.

たトエば、マイクロコンピュータの異常時、計測に適用
した場合の例を示すと第5図のようkなるが、図にお〜
・て101は電磁流量針の励磁コイル、102は導管で
あり、この例では励磁コイル101は導管102内の流
体流れ方向と導管102における電極103m 、 1
03bの取付方向に直交した磁界を発生するように配設
されている。そして、104及び105はそれぞれ高入
力インピーダンスのバッファ増幅器、106は同相ノイ
ズ除去用の外部抵抗R1〜)L4 を付した差動増幅器
、107はサンプリング機能を備えたAD変換器、10
8はマイクロプロセッサ(CPU )、109はCPU
108とデータバス110及びアドレスバス111で接
続されたメモリ(RoM/RAM)、112は入出力ポ
ート、113は入出カポシ ー ) 112からのデータ情報なりA変換して最終出
力V。とするDA変換益であり、上述したような4yチ
FIN   、5w1−b、1M2−、、FM、−bi
k介シ−8 て接続されており、これらスイッチSW、a〜5w2−
bは励磁コイタ101に正、零、負、零の4つの期間で
1周期となる短形波状励磁電流が流れるミンクでAI)
変換器107によりサンプリングされ、そのディジタル
化されたデータがメモリ109に格納される。そして、
CPIJlogはメモリ109に時系列的に得られたこ
れらデータに対し、データを1つずつ更新しながら連続
する4つのデータを1組とした演算を逐次性なって流量
信号のサンプル値を出力する。演算式は4つのデータの
うち最初のものが励磁周期中どの期間のものであるかに
よつて異なり、各タイミングt1〜t7におけるサンプ
リングデータを■、〜■7と表示すれば、■、正の励磁
期間でのデータ■1 から始まる場合:■。1=−v、
 + 3V2− av、 +v、   ・曲間(1)■
、正に続く零の休止期間でのデータ■、から始まる場合
: Vo!=V、−V3−V4+V、     −・・・・
・・・−(2)■、負の励磁期間でのデータ■、から始
まる場合:■。3=v、−av4+sv、 −v、  
 ・・・・・曲(3)となる。
An example of how this is applied to measurement when a microcomputer malfunctions is as shown in Figure 5.
- 101 is an excitation coil of the electromagnetic flow needle, 102 is a conduit, and in this example, the excitation coil 101 is connected to the fluid flow direction in the conduit 102 and the electrode 103m in the conduit 102, 1
03b is arranged so as to generate a magnetic field perpendicular to the mounting direction. 104 and 105 are buffer amplifiers with high input impedance, respectively, 106 is a differential amplifier equipped with an external resistor R1 to L4 for removing common mode noise, 107 is an AD converter with a sampling function, and 10
8 is a microprocessor (CPU), 109 is a CPU
108 is connected to a memory (RoM/RAM) by a data bus 110 and an address bus 111, 112 is an input/output port, 113 is an input/output port (113 is an input/output port), data information from 112 is converted to A, and the final output is V. is the DA conversion profit, and the above-mentioned 4ychi FIN, 5w1-b, 1M2-,, FM, -bi
These switches SW, a to 5w2-
b is a mink in which a rectangular wave-shaped excitation current flows through the excitation coiler 101, with one cycle consisting of four periods: positive, zero, negative, and zero (AI)
The data sampled by converter 107 and digitized is stored in memory 109 . and,
CPIJlog outputs sample values of flow rate signals by sequentially performing calculations on a set of four consecutive data while updating the data one by one on these data obtained in time series in the memory 109. The calculation formula differs depending on which period of the excitation cycle the first one of the four data is from.If the sampling data at each timing t1 to t7 is expressed as ■, ~■7, ■, positive Data in the excitation period ■When starting from 1:■. 1=-v,
+3V2- av, +v, ・Between songs (1) ■
, Data in a zero pause period starting from ■, which immediately follows: Vo! =V, -V3-V4+V, -...
...-(2) ■, data in the negative excitation period starts from ■: ■. 3=v, -av4+sv, -v,
...This becomes song (3).

ここにおいて、CPU108は上記(1)〜(4)式の
演算をデータが更新される毎に順を追って繰返して行な
い、通常は各式の演算の度毎にその演算値■。1〜■o
4を流量信号のサンプル値とし、DA変換儀113を通
して出力する。このようなデータ更新毎の演算処理を採
ると、応答特性が極め【早くなる。
Here, the CPU 108 repeatedly performs the calculations of the above equations (1) to (4) in order every time the data is updated, and usually calculates the calculated value (2) each time each equation is calculated. 1~■o
4 is taken as a sample value of the flow rate signal and outputted through the DA converter 113. If such arithmetic processing is performed every time data is updated, the response characteristics will become extremely fast.

この通常のサンプル値出力に対し、この例のCPU10
8は各サンプル値を逐次1つ前のサンプル値と比較し、
その差1■。4  ’0111 l■ot  ’。81
゜1■02  ’oat又はI■03  ’o41が予
め定めた値よりも太き(・場合は、電気化学的直流ノイ
ズに突変が生じたと判定する突変検出機能と、突変があ
った場合はその時のサンプル値を含めてそれ以後3回の
サンプル値に対して、突変直前のサンプル値に適宜な変
化分)Vを累積加算した値を代用して出力し、4回目以
後は上記(1)〜(4)式の演算によめ設定された情報
に基いて正側振切れ、負側振切れ又は現在値に保持する
制御を行なうようになっている。
For this normal sample value output, the CPU 10 in this example
8 sequentially compares each sample value with the previous sample value,
The difference is 1■. 4 '0111 l■ot'. 81
゜1■02 'oat or I■03 'o41 is thicker than a predetermined value (・If the value is larger than the predetermined value, the sudden change detection function determines that a sudden change has occurred in the electrochemical DC noise. In this case, for the three subsequent sample values including the sample value at that time, the value obtained by cumulatively adding V (appropriate change) to the sample value immediately before the sudden change is output as a substitute, and from the fourth time onwards, the above Based on the information preset by the calculations of equations (1) to (4), control is performed to maintain the positive end, the negative end, or the current value.

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

第1図は従来のマイクロコンピュータリセット回路の一
例を示すブロック構成図、第2図はこの発明の一寮施例
を示すブロック構成図、第3図(A)〜(ト)はその動
作例、を示すタイムチャート、第4図1はこの発明の他
の実施例を示すブロック構成図、第5図はこの発明を電
磁流量計に適用した場合の構成図である。 lO・・・計測器、11・・・CPU (マイクロコン
ピュータ、マイクロプロセッサ)、12・・・出力回路
、13.34・・・カウンタ、14・・・オアゲート、
15・・・電源リセット回路、加・・・パルス発生回路
、I・・・時間測定回路。
FIG. 1 is a block diagram showing an example of a conventional microcomputer reset circuit, FIG. 2 is a block diagram showing an embodiment of the present invention, and FIGS. 3(A) to (G) are examples of its operation. FIG. 4 is a block configuration diagram showing another embodiment of the present invention, and FIG. 5 is a configuration diagram when the present invention is applied to an electromagnetic flowmeter. lO...Measuring instrument, 11...CPU (microcomputer, microprocessor), 12...Output circuit, 13.34...Counter, 14...OR gate,
15...Power supply reset circuit, addition...pulse generation circuit, I...time measurement circuit.

Claims (1)

【特許請求の範囲】[Claims] マイクロコンピュータを電源投入時又は再スタート時に
リセットするための回路において、前記マイタロコンピ
ュータの停止時、再スタートさせるためのパルスを繰返
し発生するパルス発生回路と、前記パルスが発生されて
いる時間を測定する時間測定回路とを具え、前記パルス
発生時間が予め定めた設定時間を経過しても前記マイク
ロコンピュータか再スタートしない場合にのみ警報動作
を行なうようにしたことを41−とするマイクロココン
ピュータリセット回路。
In a circuit for resetting a microcomputer when the power is turned on or restarted, a pulse generation circuit repeatedly generates a pulse to restart the microcomputer when the microcomputer is stopped, and the time during which the pulse is generated is measured. 41-, the microcomputer reset comprises a time measuring circuit for detecting the pulse generation time, and performs an alarm operation only when the microcomputer does not restart even after the pulse generation time has passed a predetermined set time. circuit.
JP56164780A 1981-10-15 1981-10-15 Microcomputer resetting circuit Pending JPS5866198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56164780A JPS5866198A (en) 1981-10-15 1981-10-15 Microcomputer resetting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56164780A JPS5866198A (en) 1981-10-15 1981-10-15 Microcomputer resetting circuit

Publications (1)

Publication Number Publication Date
JPS5866198A true JPS5866198A (en) 1983-04-20

Family

ID=15799799

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56164780A Pending JPS5866198A (en) 1981-10-15 1981-10-15 Microcomputer resetting circuit

Country Status (1)

Country Link
JP (1) JPS5866198A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61189349U (en) * 1985-05-14 1986-11-26
JPS6476332A (en) * 1987-09-18 1989-03-22 Fujitsu Ltd Restart control system
JPH01205238A (en) * 1988-02-10 1989-08-17 Fujitsu Ltd Run-away condition stopping device for microprocessor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61189349U (en) * 1985-05-14 1986-11-26
JPS6476332A (en) * 1987-09-18 1989-03-22 Fujitsu Ltd Restart control system
JPH01205238A (en) * 1988-02-10 1989-08-17 Fujitsu Ltd Run-away condition stopping device for microprocessor

Similar Documents

Publication Publication Date Title
KR20040068971A (en) High accuracy method for determining the frequency of a pulse input signal over a wide frequency range
US5220519A (en) Method and apparatus for self-testing a transducer system
JPS5866198A (en) Microcomputer resetting circuit
JP3926241B2 (en) Apparatus and method for adaptive track zero crossing signal generation in a disk drive
JPH0633427Y2 (en) Jitter measuring device
JP2002055128A (en) Ac signal measuring instrument
JPH0560808A (en) Period measuring instrument, frequency measuring instrument, period and frequency measuring method, and meter driving device
JP2604562B2 (en) Pulse interval measuring device
JP2000074962A (en) Cycle-measuring device and method therefor, and storage medium
JP2949914B2 (en) Speed detector
JPH1164399A (en) Voltage drop detector and detecting method
JP3125291B2 (en) Period measurement device
RU1786443C (en) System for measuring voltage root-mean-square value
JPH0814968A (en) Electromagnetic flowmeter
JP2854718B2 (en) Electromagnetic flow meter
SU1446574A1 (en) Apparatus for measuring the amplitude of pulsed signal
JPH05326845A (en) Semiconductor integrated circuit device
SU1224743A1 (en) Apparatus for measuring insulation resistance of electrical networks
JPH0450496Y2 (en)
JPH08201148A (en) Electronic balance
JPS5843698B2 (en) Kouriyuden Atsuhisokuteisouchi
JPS6061662A (en) Digital speed detection system
JPH0659942A (en) Operation state monitoring system for information apparatus
JPH0894660A (en) Pulse measuring apparatus
JPS6059993A (en) Stopping time difference measuring device for stepping motor