JPH02190944A - Reset system for processor - Google Patents

Reset system for processor

Info

Publication number
JPH02190944A
JPH02190944A JP1010166A JP1016689A JPH02190944A JP H02190944 A JPH02190944 A JP H02190944A JP 1010166 A JP1010166 A JP 1010166A JP 1016689 A JP1016689 A JP 1016689A JP H02190944 A JPH02190944 A JP H02190944A
Authority
JP
Japan
Prior art keywords
processor
reset
frame pattern
pattern
output
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
JP1010166A
Other languages
Japanese (ja)
Inventor
Kazuo Yano
一雄 矢野
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1010166A priority Critical patent/JPH02190944A/en
Publication of JPH02190944A publication Critical patent/JPH02190944A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To collectly reset a processor by allowing a processor to generate a frame pattern with the same period as that of a program or a longer period and comparing the frame pattern with a reference frame pattern in each bit to decide coincidence/discrepancy. CONSTITUTION:The reset system is provided with the processor 1 for outputting a prescribed frame pattern with the same period as that of the program or a longer period, a frame synchronizing circuit 2 for comparing a reference frame pattern included in itself with the frame pattern outputted from the processor in each bit and each period and outputting the compared result and a reset signal generating part 3 for applying a reset signal to the processor 1 when the compared result indicates discrepancy. Thereby, all pulse patterns have meaning and only one pattern out of various pulses is decided as a normal one. Consequently, the processor 1 can be correctly reset independently of the state of a runaway pulse pattern and the runaway can be evaded.

Description

【発明の詳細な説明】 〔概   要〕 プロセッサーをリセットしてプログラムの暴走を防止す
る方式に関し、 プロセッサーから発生される暴走パルスパターンがどの
ようなものであってもプロセッサーのリセットを行い暴
走を回避する方式を実現することを目的とし、 プログラムの周期と同一か又はより長い周期で所定のフ
レームパターンを発生するプロセッサーと、基準フレー
ムパターンを有し、該基準フレームパターンを8亥プロ
セッサーからのフレームパタ−ンと該周期毎にビット比
較してその比較結果を出力するフレーム同期回路と、該
比較結果が不一致を示している時、該プロセッサーにリ
セット信号を与えるリセット信号発生部とで構成する。
[Detailed Description of the Invention] [Summary] Regarding a method for resetting a processor to prevent a program from running out of control, the processor is reset to avoid runaway regardless of the runaway pulse pattern generated by the processor. The purpose is to realize a system in which the processor generates a predetermined frame pattern at a cycle equal to or longer than the program cycle, and a reference frame pattern, and the reference frame pattern is converted into a frame pattern from the processor. - a frame synchronization circuit that compares bits with each cycle and outputs the comparison result, and a reset signal generator that provides a reset signal to the processor when the comparison result indicates a mismatch.

〔産業上の利用分野〕[Industrial application field]

本発明はプロセッサーのリセット方式に関し、特にプロ
セッサーをリセットしてプログラムの暴走を防止する方
式に関するものである。
The present invention relates to a method for resetting a processor, and more particularly to a method for resetting a processor to prevent a program from running out of control.

近年、宅内に設置される回線終端装置にもマイクロプロ
セッサーが搭載されるようになって来ており、プロセッ
サーは非常に利用価値の高いものであるが、ハードウェ
アだけでなく、ソフトウェアをファームウェア(プログ
ラム)と−緒に組み込むが、そのファームウェアは、電
源立ち上げ時やボート増設の際のボード挿入時に暴走す
ることがあり、このようなときには、プロセッサーを、
ハードウェアによって自動的に検出してリセットするか
又は手動でリセットする必要がある。
In recent years, line termination equipment installed in homes has come to be equipped with microprocessors, and processors are extremely useful. ), but the firmware may run out of control when turning on the power or inserting a board when adding a boat, and in such cases, the processor
Must be automatically detected and reset by hardware or manually reset.

特に、宅内回線終端装置では、一般の建物に設置される
ため、保守監視要員が不在なので、運用中でのプログラ
ム暴走の対策が必要である。
In particular, since the in-home line termination device is installed in a general building and maintenance and monitoring personnel are not available, measures must be taken to prevent program runaway during operation.

〔従来の技術〕[Conventional technology]

従来のプロセッサーのリセット方式としては、第6図に
示すようなものが用いられており、これはプロセッサー
1をタイマ回路50とリセットパス発生部60とにより
リセットするもので、第6図に示すように、正常時はタ
イマ回路50のタイマ周期より短いウォッチドッグタイ
マ(WDT)パルスがプロセッサー1より常に発生され
てタイマ回路50に与えられており、このWDTパルス
を受けるとタイマ回路50がリセットされて再びカウン
トを開始し、プロセッサー1が暴走してWDTパルスが
発生されなくなるとタイマ回路50がカウントアツプす
るので暴走と判定し、リセットパルス発生部60からプ
ロセッサー1にリセットパルスを送るものである。
As a conventional processor reset method, the one shown in FIG. 6 is used. In this method, the processor 1 is reset by a timer circuit 50 and a reset path generation section 60, as shown in FIG. During normal operation, a watchdog timer (WDT) pulse shorter than the timer period of the timer circuit 50 is always generated by the processor 1 and given to the timer circuit 50, and when this WDT pulse is received, the timer circuit 50 is reset. Counting is started again, and when the processor 1 goes out of control and the WDT pulse is no longer generated, the timer circuit 50 counts up, so it is determined that there is a runaway, and the reset pulse generator 60 sends a reset pulse to the processor 1.

このような従来例としては特開昭62−31452号公
報に開示されたものを挙げることができる。
An example of such a conventional example is the one disclosed in Japanese Patent Laid-Open No. 62-31452.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記のようなプロセッサーのリセット方式においては、
暴走したときのWDTパルスには第7図に示すように幾
通りかのパターンがあり、パターン■の場合には特に問
題は無いが、パターン■〜■が発生した場合にはタイマ
回路50がリセットされてしまいプロセッサー1の暴走
を停止させることができないという問題点があった。
In the processor reset method described above,
There are several patterns for the WDT pulse when it goes out of control, as shown in Figure 7. There is no particular problem in the case of pattern ■, but when patterns ■ to ■ occur, the timer circuit 50 is reset. There was a problem in that it was impossible to stop the processor 1 from running out of control.

従って、本発明は、プロセッサーから発生される暴走パ
ルスパターンがどのようなものであってもプロセッサー
のリセットを行い暴走を回避する方式を実現することを
目的とする。
Therefore, it is an object of the present invention to realize a system that resets the processor and avoids runaway, regardless of the runaway pulse pattern generated by the processor.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は、上記の目的を達成するための本発明に係るプ
ロセッサーのリセット方式を原理的に示したもので、本
発明では、プログラムの周期と同一か又はより長い周期
で所定のフレームパターンを出力するプロセッサー1と
、基準フレームパターンを有し、該基準フレームパター
ンを該プロセッサーlからのフレームパターンと該周期
毎にビット比較してその比較結果を出力するフレーム同
期回路2と、該比較結果が不一致を示している時、該プ
ロセッサーlにリセット信号を与えるリセット信号発生
部3と、を備えている。
FIG. 1 shows the principle of a processor reset method according to the present invention to achieve the above object. a frame synchronization circuit 2 which has a reference frame pattern and compares bits of the reference frame pattern with the frame pattern from the processor I at each cycle and outputs the comparison result; A reset signal generating section 3 is provided which provides a reset signal to the processor 1 when a mismatch is indicated.

また本発明では、該比較結果による不一致数が所定の保
護段数を越えたときに暴走検出信号を発生する同期保護
回路4を該フレーム同期回路2と該リセット信号発生部
3との間に設けることができる。
Further, in the present invention, a synchronization protection circuit 4 is provided between the frame synchronization circuit 2 and the reset signal generation section 3, which generates a runaway detection signal when the number of discrepancies resulting from the comparison exceeds a predetermined number of protection stages. Can be done.

更に本発明では、該フレーム同期回路2が、該暴走検出
信号を入力し該基準フレームパターンをリセットされた
言亥プロセッサー1からのフレームパターンに同期引込
するように構成することができる。
Furthermore, in the present invention, the frame synchronization circuit 2 can be configured to input the runaway detection signal and synchronize the reference frame pattern with the frame pattern from the reset processor 1.

〔作  用〕[For production]

本発明では、プロセッサー1がプログラムの周期と同一
かより長い周期のフレームパターン(これはプログラム
の周期より短いと暴走を検出できないため)をソフトウ
ェアにより発生するようになっており、このフレームパ
ターンを、フレーム同期回路2では基準フレームパター
ンを発生して両フレームパターンをビット毎に一致/不
一致比較する。そして、この比較結果を上記の周期毎に
出力する。リセット信号発生部3ではその比較結果が1
ビツトでも不一致であればリセット信号を発生してプロ
セッサー1をリセットする。
In the present invention, the processor 1 uses software to generate a frame pattern with a cycle equal to or longer than the program cycle (this is because runaway cannot be detected if it is shorter than the program cycle), and this frame pattern is The frame synchronization circuit 2 generates a reference frame pattern and compares the two frame patterns for each bit for coincidence/mismatch. Then, this comparison result is outputted at each of the above-mentioned cycles. In the reset signal generator 3, the comparison result is 1.
If even the bits do not match, a reset signal is generated to reset the processor 1.

従って、第2図に簡略的に示すように、従来例ではプロ
グラム周期中に所定のパルスが在るということに意味が
あった(第2図(a)参照)が、本発明ではパルスパタ
ーン全てが意味のあるものとなり(第2図山)参照)、
種々多様なパルスに対しても一つのパターンしか正常と
判定しないため、正確に暴走状態が検出できる。
Therefore, as shown briefly in FIG. 2, in the conventional example, it was meaningful that a predetermined pulse existed during the program cycle (see FIG. 2(a)), but in the present invention, all of the pulse patterns becomes meaningful (see Figure 2),
Since only one pattern is determined to be normal for a variety of pulses, runaway conditions can be detected accurately.

また本発明では、該フレーム同期回路2と該リセット信
号発生部3との間に所定の保護段数を有する同期保護回
路4を設けることにより、フレーム同期回路2での比較
結果による不一致の数がその保護段数を越えたときに暴
走検出信号を発生することができ、ノイズにより誤って
プロセッサー1がリセットされるのを防止することがで
きる。
Further, in the present invention, by providing a synchronization protection circuit 4 having a predetermined number of protection stages between the frame synchronization circuit 2 and the reset signal generation section 3, the number of discrepancies in the comparison results in the frame synchronization circuit 2 can be reduced. A runaway detection signal can be generated when the number of protection stages is exceeded, and it is possible to prevent the processor 1 from being erroneously reset due to noise.

更に本発明では、フレーム同期回路2が、該暴走検出信
号により該基準フレームパターンをリセットされた該プ
ロセッサー1からのフレームパターンに同期引込するこ
ともできるので、リセットされて正常なものになったプ
ロセッサー1のフレームパターンと基準フレームパター
ンとを同期させておくことができ、次にプロセッサー1
に暴走が生じたときに正確にリセットすることが可能と
なる。
Furthermore, in the present invention, the frame synchronization circuit 2 can synchronize the reference frame pattern with the frame pattern from the reset processor 1 by the runaway detection signal, so that the processor 1 that has been reset and becomes normal can also synchronize the reference frame pattern with the frame pattern from the reset processor 1. The frame pattern of processor 1 and the reference frame pattern can be synchronized, and then the frame pattern of processor 1 can be synchronized with the reference frame pattern.
It becomes possible to accurately reset when a runaway occurs.

〔実 施 例〕〔Example〕

第3図は本発明に係るプロセッサーのリセット方式に用
いるフレーム同期回路2と同期保護回路4の一実施例を
示したもので、この実施例では、フレーム同M回’&8
2は基準フレームパルスパターン(以下、フレームパタ
ーンという)をリップルキャリイ(以下、RCという)
信号の形で出力する7進カウンタ21と、このRC信号
とプロセッサー1からのフレームパルスとの不一致を検
出するEORゲート22と、:亥EORゲート22の出
力をクロックCLKで打ってヒゲをとるためのフリップ
フロップ(以下、FFという)23と、カウンタ21の
RC信号を、クロックCLKをインバータ24で反転さ
せたクロック入力CKにより半ピントづつずらすための
FF25及び26と、FF23の口出力を反転クリア端
子CLRに入力し、0人力は+5vのH″に固定され、
クロック人力CKをFF25のζ出力としたFF27と
、FF26のζ出力とFF27のζ出力を入力とするA
NDゲート2日と、このANDゲート28の出力と同期
保護回路4からの判定信号とを入力するNANDゲート
29と、このNANDゲート29の出力とクロックCL
Kとを人力するANDゲート30と、で構成されている
FIG. 3 shows an embodiment of the frame synchronization circuit 2 and the synchronization protection circuit 4 used in the processor reset method according to the present invention.
2 is a ripple carry (hereinafter referred to as RC) of the reference frame pulse pattern (hereinafter referred to as frame pattern).
A heptadary counter 21 that outputs in the form of a signal, an EOR gate 22 that detects a mismatch between this RC signal and the frame pulse from the processor 1; Flip-flop (hereinafter referred to as FF) 23, FFs 25 and 26 for shifting the RC signal of the counter 21 by half the focus by a clock input CK obtained by inverting the clock CLK by the inverter 24, and inverting and clearing the output of the FF 23. Input to terminal CLR, 0 human power is fixed to +5v H'',
FF27 with the clock input CK as the ζ output of FF25, and A with the ζ output of FF26 and the ζ output of FF27 as inputs.
ND gate 2, a NAND gate 29 which inputs the output of this AND gate 28 and the judgment signal from the synchronization protection circuit 4, and the output of this NAND gate 29 and the clock CL.
It is composed of an AND gate 30 that manually operates K and K.

また、同期保護回路4は、FF27のζ出力を入力とし
FF25のζ出力をクロックCKとし、フレーム同期回
路2の比較結果を溜めておく保護段数前方3段後方3段
のシフトレジスタ31と、このシフトレジスタ31のQ
1〜Q3出力を入力とするNANDゲート32と、シフ
トレジスタ31の?:L1〜σ3出力を人力とするNA
NDゲート33と、これらのNANDゲート32及び3
3の出力状態を保持し、暴走検出信号をリセ7)信号発
生部3に出力するランチ回路34と、で構成されている
The synchronization protection circuit 4 also includes a shift register 31 with three forward protection stages and three rear protection stages, which receives the ζ output of the FF 27 and uses the ζ output of the FF 25 as a clock CK, and stores the comparison results of the frame synchronization circuit 2. Q of shift register 31
The NAND gate 32 which receives the outputs from Q1 to Q3 as input, and the shift register 31? :NA with L1 to σ3 output manually
ND gate 33 and these NAND gates 32 and 3
3) and a launch circuit 34 which holds the output state of 7) and outputs the runaway detection signal to the signal generator 3.

次に上記の実施例の動作を第4図及び第5図のタイムチ
ャートを参照して説明する。
Next, the operation of the above embodiment will be explained with reference to the time charts of FIGS. 4 and 5.

第4図はプロセッサーlからのフレームパターンが正常
の場合、即ちこのフレームパターンとフレーム同期回路
2のカウンタ21からRC信号として発生される基準フ
レームパターンとが同期している場合のタイムチャート
を示しており、この場合には、EOR22の出力は常に
“L″レベルなり、従ってFF23のζ出力は“H″レ
ベルFF27のζ出力は“Lルベルとなる。
FIG. 4 shows a time chart when the frame pattern from processor I is normal, that is, when this frame pattern is synchronized with the reference frame pattern generated as an RC signal from counter 21 of frame synchronization circuit 2. In this case, the output of the EOR 22 is always at the "L" level, so the ζ output of the FF 23 is at the "H" level, and the ζ output of the FF 27 is at the "L" level.

また、カウンタ21のRC信号を半ビットずらしたFF
25のζ出力をクロックCKとし、FF27の口出力を
0人力とするシフトレジスタ31ではQ1〜Q3出力が
′L″レベルとなり、′C11〜ζ3出力が“H″レベ
ルなるため、ANDゲート32.33の出力はそれぞれ
H”   ”L″レベルなる。従って、ラッチ回路34
の出力も”L“レベルとなり、暴走検出は行わないので
、リセット信号発生部3からはリセット信号は発生され
ない。
In addition, an FF that shifts the RC signal of the counter 21 by half a bit
In the shift register 31 in which the ζ output of FF 25 is used as the clock CK and the output of the FF 27 is 0 manual output, the Q1 to Q3 outputs are at the 'L' level and the 'C11 to ζ3 outputs are at the 'H' level, so the AND gate 32. The outputs of 33 are at H" and "L" levels, respectively. Therefore, the latch circuit 34
The output of the reset signal generating section 3 also becomes "L" level, and runaway detection is not performed, so that the reset signal generating section 3 does not generate a reset signal.

ラッチ回路34の出力が″L″レベルであると、AND
ゲート28の出力が何であろうとNANDゲート29の
出力は1H″レベルとなり、クロックCLKをANDゲ
ート30からカウンタ21に通す、これによりカウンタ
21は7進カウンタとしての動作を行い、クロックCL
Kが7個入力された時点で図示のように”H″レベルパ
ルス、即ちRC信号を出力する。
When the output of the latch circuit 34 is at "L" level, AND
No matter what the output of gate 28 is, the output of NAND gate 29 will be at the 1H'' level, passing clock CLK from AND gate 30 to counter 21, which causes counter 21 to operate as a heptad counter, and clock CLK
When seven K's are input, an "H" level pulse, ie, an RC signal, is output as shown in the figure.

従って、正常時にはこのRC信号はプロセッサー1から
のフレームパターンと一致し、上記と同じ動作を繰り返
すことになる。
Therefore, under normal conditions, this RC signal matches the frame pattern from processor 1, and the same operation as described above is repeated.

第5図はフレームパターン同士の同期が捕れていない場
合(カウンタ21のRC信号ガフレームパターンに対し
前に1ビツトずれている場合)の同期引込(ハンティン
グ)タイムチャートを示しており、まずカウンタ21が
クロックCLKによりカウントアツプしてRC信号を発
生すると、EORゲート22は不一致出力を発生し、こ
れをFF23でクロックCLKにより打つとFF23の
ζ出力は不一致期間だけ1L″レベルの信号となり、こ
れをクリア端子CLRに受けたFF27の回出力は立ち
上がりFF25のQ出力が立ち上がりるまで“H”レベ
ルを継続する。即ち、基準フレームパターンの一周期の
間に1ビツトでも不一致が検出されると、このように−
周期間中“H”レベルとなる。
FIG. 5 shows a synchronization pull-in (hunting) time chart when the frame patterns are not synchronized (when the RC signal of the counter 21 is shifted by 1 bit in front of the frame pattern). is counted up by the clock CLK and generates an RC signal, the EOR gate 22 generates a mismatch output, and when this is input to the FF 23 by the clock CLK, the ζ output of the FF 23 becomes a 1L'' level signal only during the mismatch period, and this The output of the FF27 received at the clear terminal CLR rises and remains at the "H" level until the Q output of the FF25 rises.In other words, if even one bit of mismatch is detected during one cycle of the reference frame pattern, this Like-
It is at "H" level during the cycle.

従って、二0FF27のζ出力をリセット信号発生部3
に送れば、リセット信号がプロセッサー1に送られてプ
ロセッサー1の暴走をリセットすることができる。
Therefore, the ζ output of the second FF27 is set to the reset signal generator 3.
If the reset signal is sent to the processor 1, the runaway of the processor 1 can be reset.

しかしながら、EORゲート22等においてノイズによ
り両フレームパターンの不一致が検出されたときもプロ
セッサー1をリセットしてしまう虞れがあるので、本発
明ではこれを無くすために所定の保護段数を有する同期
保護回路3を設けている。
However, even when a mismatch between both frame patterns is detected due to noise in the EOR gate 22 or the like, there is a risk that the processor 1 will be reset.In order to eliminate this, the present invention provides a synchronization protection circuit having a predetermined number of protection stages. There are 3.

即ち、シフトレジスタ31は“H″レベル0FF2フζ
出力を受け、FF25のQ出力の立ち上がりにより一周
朋毎にシフトして行く。
That is, the shift register 31 is at "H" level 0FF2
After receiving the output, it is shifted every round according to the rising edge of the Q output of the FF 25.

この場合、シフトレジスタ31は保護段数として前方・
後方共に3段有しているので、3周期連続してEORゲ
ート22によりパターン不一致が検出されたときのみ、
出力Ql−Q3が共に′H″レベル(′C11〜′c1
3の出力が共に“L”レベル)になり、NANDゲート
32の出力は′L″レベル(NANDゲート33の出力
は“H”レベル)となってラッチ回路34の出力を反転
させる。
In this case, the shift register 31 has forward and forward protection stages.
Since both the rear and rear stages have three stages, only when a pattern mismatch is detected by the EOR gate 22 for three consecutive periods,
Outputs Ql-Q3 are both at 'H' level ('C11 to 'c1
The outputs of the NAND gate 32 both become "L" level), and the output of the NAND gate 32 becomes the "L" level (the output of the NAND gate 33 becomes the "H" level), thereby inverting the output of the latch circuit 34.

また、ラッチ回路34の出力が反転されたときには、そ
れ以後3周期連続してEORゲート23によりパターン
一致(完全な一敗)が検出されるまで(NANDゲート
32の出力が“H”レベルでNANDゲート33の出力
が”L″レベルなるまで)、この状態を保つ。
Furthermore, when the output of the latch circuit 34 is inverted, the output of the NAND gate 32 remains at "H" level until a pattern match (complete failure) is detected by the EOR gate 23 for three consecutive cycles. This state is maintained until the output of the gate 33 becomes "L" level.

即ち、ラッチ34の出力は、NANDゲート32又は3
3の出力が“L″レベルなる時のみ変化するものである
That is, the output of the latch 34 is connected to the NAND gate 32 or 3.
It changes only when the output of No. 3 becomes "L" level.

今、3周期連続してパターン不一致が検出されたとする
と、第5図に示すようにラッチ回路34の出力は“H”
レベルとなって暴走検出信号を発生しリセット信号発生
部4に送る。これによりプロセッサー1はリセットされ
ることとなる。
Now, if pattern mismatch is detected for three consecutive cycles, the output of the latch circuit 34 is "H" as shown in FIG.
level and generates a runaway detection signal, which is sent to the reset signal generator 4. This causes processor 1 to be reset.

このままだと、プロセッサー1をリセットしても、正常
状態になったフレームパターンとフレーム同期回路2の
基準フレームパターンとは同期しないままになってしま
う。
If this continues, even if the processor 1 is reset, the normal frame pattern and the reference frame pattern of the frame synchronization circuit 2 will remain out of synchronization.

これを防ぐため、本発明では更に暴走検出信号を用いて
カウンタ21のRC信号(基準フレームパターン)をプ
ロセッサーlからのフレームパターンに位相同期させる
ことができる。
In order to prevent this, the present invention further uses the runaway detection signal to synchronize the phase of the RC signal (reference frame pattern) of the counter 21 with the frame pattern from the processor l.

即ち、暴走検出信号が発生されたことにより、NAND
ゲート29の一方の入力は#H″レベルとなるが、他方
の入力はANDゲート28がカウンタ21のRC信号の
ビットずらし分だけ1Hmレベルとなるため、NAND
ゲート29の出力はその間のみL”レベルとなり、AN
Dゲート30によりクロックCLKを1個分マスクして
取り除く。
That is, due to the runaway detection signal being generated, the NAND
One input of the gate 29 is at the #H'' level, but the other input is at the 1Hm level due to the bit shift of the RC signal of the counter 21, so the other input is NAND.
The output of the gate 29 becomes L” level only during that period, and the AN
The D gate 30 masks and removes one clock CLK.

この結果、カウンタ21のカウント動作はクロックCL
K1個分行われないこととなり、カウントアツプする7
個目のカウントビットは本来なら8個目のカウントピン
トであり、この1ビツト分だけRC信号は遅らされる形
となって図示のようにフレームパターンのI)゛レベル
と一致スることとなる。
As a result, the counting operation of the counter 21 is performed using the clock CL.
K1 will not be performed, and the count will increase to 7.
The 8th count bit is originally the 8th count focus, and the RC signal is delayed by this 1 bit so that it matches the I) level of the frame pattern as shown in the figure. Become.

このように、3周期連続してパターン不一致が検出され
た時には暴走検出信号を発生するとともに、カウンタ2
1の歩進を1つ停止し、フレームパターンと基準フレー
ムパターンとしてのRC信号のパターンとが一致するよ
うに追い掛けて同期引込を行う。
In this way, when a pattern mismatch is detected for three consecutive cycles, a runaway detection signal is generated and the counter 2
1 is stopped by one step, and the synchronization pull-in is performed by chasing the frame pattern so that it matches the pattern of the RC signal as the reference frame pattern.

このカウンタ21のクロックCKのマスク動作は両フレ
ームパターンが3周期連続して一致するまで行われるの
で、必ず同期引込を行うことができる。
This masking operation of the clock CK of the counter 21 is performed until both frame patterns match for three consecutive cycles, so that synchronization can be carried out without fail.

この結果、第4図に示すような両フレームパターンが同
期した状態となり、その後にプロセッサー1に暴走が発
生すれば上記の保護段数を含めて正確に暴走を検出する
ことができる。
As a result, both frame patterns become synchronized as shown in FIG. 4, and if a runaway occurs in the processor 1 thereafter, the runaway can be accurately detected including the number of protection stages described above.

〔発明の効果〕〔Effect of the invention〕

以上のように、本発明のプロセッサーのリセット方式に
よれば、プロセッサーから発生されるフレームパターン
を、フレーム同期回路の基準フレームパターンと各プロ
グラム周期毎にビット毎の一致/不一敗を比較して1ビ
ツトでも不一致であればリセット信号を発生してプロセ
ッサーlをリセットするように構成したので、パルスパ
ターン全てが意味のあるものとなり種々多様なパルスに
対しても一つのパターンしか正常と判定しないため、正
確にプログラムを監視することができ、特に保守要員の
いない加入者宅内のデータ伝送装置にもプロセッサーを
安全に搭載することができる。
As described above, according to the processor reset method of the present invention, the frame pattern generated by the processor is compared with the reference frame pattern of the frame synchronization circuit for bit-by-bit coincidence/inconsistency at each program cycle. Since the configuration is configured so that if even one bit does not match, a reset signal is generated to reset the processor l, all pulse patterns are meaningful, and only one pattern is determined to be normal even for a variety of pulses. , programs can be accurately monitored, and the processor can be safely installed even in data transmission equipment in the subscriber's premises, especially when there are no maintenance personnel.

また本発明では、所定の保護段数を有する同期保護回路
を設けることにより、フレーム同期回路での比較結果に
よる不一致の数がその保護段数を越えたときに暴走検出
信号を発生することができ、ノイズにより誤ってプロセ
ッサーがリセットされるのを防止することができる。
Furthermore, in the present invention, by providing a synchronization protection circuit having a predetermined number of protection stages, it is possible to generate a runaway detection signal when the number of discrepancies resulting from the comparison results in the frame synchronization circuit exceeds the number of protection stages, thereby generating noise. This prevents the processor from being reset accidentally.

更に本発明では、暴走検出時に基準フレームパターンを
リセットされたプロセッサーからのフレームパターンに
同期引込することもできるので、リセットされて正常な
ものになったプロセッサーのフレームパターンと基準フ
レームパターンとを同期させておくことができ、次にプ
ロセッサーに暴走が生したときに正確にリセットするこ
とが可能となる。
Furthermore, in the present invention, when a runaway is detected, the reference frame pattern can be synchronized with the frame pattern from the reset processor, so the frame pattern of the processor that has been reset and becomes normal can be synchronized with the reference frame pattern. This makes it possible to accurately reset the processor the next time it goes out of control.

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

第1図は本発明に係るプロセッサーのリセット方式を原
理的に示したブロック図、 第2図は本発明に係るプロセッサーのリセット方式を概
念的に説明するためのタイムチャート図、第3図は本発
明に係るプロセッサーのリセット方式に用いるフレーム
同期回路と同期保護回路の一実施例を示す回路図、 第4図及び第5図は第3図の実施例を用いたときの動作
タイムチャート図、 第6図は従来のプロセッサーのリセット方式を示すブロ
ック図、 第7図は暴走パターンを示すためのパルス波形図、であ
る。 第1図において、 ■・・・プロセッサー 2・・・フレーム同期回路、 3・・・同期保護回路、 4・・・リセット信号発生部。 図中、同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram showing the principle of the processor reset method according to the present invention, FIG. 2 is a time chart diagram conceptually explaining the processor reset method according to the present invention, and FIG. A circuit diagram showing an embodiment of a frame synchronization circuit and a synchronization protection circuit used in the processor reset method according to the invention; FIGS. 4 and 5 are operation time charts when the embodiment of FIG. 3 is used; FIG. 6 is a block diagram showing a conventional processor reset method, and FIG. 7 is a pulse waveform diagram showing a runaway pattern. In FIG. 1, ■...Processor 2...Frame synchronization circuit, 3...Synchronization protection circuit, 4...Reset signal generation section. In the figures, the same reference numerals indicate the same or corresponding parts.

Claims (3)

【特許請求の範囲】[Claims] (1)プログラムの周期と同一か又はより長い周期で所
定のフレームパターンを発生するプロセッサー(1)と
、 基準フレームパターンを有し、該基準フレームパターン
を該プロセッサー(1)からのフレームパターンと該周
期毎にビット比較してその比較結果を出力するフレーム
同期回路(2)と、 該比較結果が不一致を示している時、該プロセッサー(
1)にリセット信号を与えるリセット信号発生部(3)
と、 を備えたことを特徴とするプロセッサーのリセット方式
(1) A processor (1) that generates a predetermined frame pattern at a cycle equal to or longer than the cycle of the program, and a reference frame pattern, and the processor (1) has a reference frame pattern that is matched with the frame pattern from the processor (1). a frame synchronization circuit (2) that compares bits every cycle and outputs the comparison results; and when the comparison results indicate a mismatch, the processor (2);
Reset signal generator (3) that provides a reset signal to 1)
A processor reset method characterized by comprising: and.
(2)該比較結果による不一致数が所定の保護段数を越
えたときに暴走検出信号を発生する同期保護回路(4)
を該フレーム同期回路(2)と該リセット信号発生部(
3)との間に設けたことを特徴とする請求項1記載のプ
ロセッサーのリセット方式。
(2) A synchronization protection circuit (4) that generates a runaway detection signal when the number of discrepancies resulting from the comparison exceeds a predetermined number of protection stages.
The frame synchronization circuit (2) and the reset signal generator (
3) The processor reset method according to claim 1, wherein the processor reset method is provided between 3) and 3).
(3)該フレーム同期回路(2)が、該暴走検出信号を
入力し該基準フレームパターンをリセットされた該プロ
セッサー(1)からのフレームパターンに同期引込する
ことを特徴とした請求項2記載のプロセッサーのリセッ
ト方式。
(3) The frame synchronization circuit (2) receives the runaway detection signal and synchronizes the reference frame pattern with the reset frame pattern from the processor (1). Processor reset method.
JP1010166A 1989-01-19 1989-01-19 Reset system for processor Pending JPH02190944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1010166A JPH02190944A (en) 1989-01-19 1989-01-19 Reset system for processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1010166A JPH02190944A (en) 1989-01-19 1989-01-19 Reset system for processor

Publications (1)

Publication Number Publication Date
JPH02190944A true JPH02190944A (en) 1990-07-26

Family

ID=11742696

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1010166A Pending JPH02190944A (en) 1989-01-19 1989-01-19 Reset system for processor

Country Status (1)

Country Link
JP (1) JPH02190944A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011147058A (en) * 2010-01-18 2011-07-28 Fujitsu Ltd Clock device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011147058A (en) * 2010-01-18 2011-07-28 Fujitsu Ltd Clock device
US8564355B2 (en) 2010-01-18 2013-10-22 Fujitsu Limited Clock device

Similar Documents

Publication Publication Date Title
JPH07177130A (en) Error count circuit
EP1237282B1 (en) Circuit for the detection of clock signal period abnormalities
JPH02190944A (en) Reset system for processor
EP1097513B1 (en) Clock pulse degradation detector
RU2058679C1 (en) Information system monitoring and backup device
JPH05324391A (en) Fault detector, fault detecting method and bus comparator
JPS58189745A (en) Fault detecting method of multiplex device
JPH0385844A (en) Fault diagnostic system for pulse signal repeater
JP3629825B2 (en) Sampling synchronization monitoring system for digital relay
KR100219596B1 (en) Apparatus for discriminating state of transmission line
JPH06216881A (en) Parity error monitor circuit
JPS63148737A (en) Data communication equipment
JPH01296838A (en) Noise detecting system for external input
JPS63311829A (en) Reception synchronizing circuit
JPH01255334A (en) Non-correlation detecting type synchronizing circuit
JPS63232652A (en) Frame synchronization protection circuit
JPS62214733A (en) Code error detector
JPH0242516A (en) Wrong clock detecting system
JPS62213337A (en) Frame synchronizing protection system
JPS62176234A (en) Frame synchronization protecting system
JPH01233850A (en) Timing system
JPH08149111A (en) Parity monitoring circuit
JPH01205643A (en) Frame synchronizing circuit
JPS58115923A (en) Clock supply circuit
JPH0440376A (en) Clock checking system