JPH04123440U - micro computer - Google Patents

micro computer

Info

Publication number
JPH04123440U
JPH04123440U JP2699591U JP2699591U JPH04123440U JP H04123440 U JPH04123440 U JP H04123440U JP 2699591 U JP2699591 U JP 2699591U JP 2699591 U JP2699591 U JP 2699591U JP H04123440 U JPH04123440 U JP H04123440U
Authority
JP
Japan
Prior art keywords
program
counter
value
area range
program counter
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
JP2699591U
Other languages
Japanese (ja)
Inventor
徹 小倉
Original Assignee
日本電気アイシーマイコンシステム株式会社
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 日本電気アイシーマイコンシステム株式会社 filed Critical 日本電気アイシーマイコンシステム株式会社
Priority to JP2699591U priority Critical patent/JPH04123440U/en
Publication of JPH04123440U publication Critical patent/JPH04123440U/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】 【目的】 プログラム・カウンタ値の設定ミスに起因す
る、マイクロコンピュータの動作異常を防止する。 【構成】 プログラム・カウンタ値監視ブロック3にお
いて、プログラム・カウンタ2のカウンタ値と、プログ
ラム領域範囲情報記憶回路4より入力されるプログラム
領域とが比較照合され、プログラム・カウンタ2のカウ
ンタ値が、当該プログラム領域内にあるか否かが検索さ
れる。仮に当該カウンタ値がプログラム領域範囲外の値
であった場合には、プログラム・カウンタ設定回路5よ
り、プログラム・カウンタ2に対して、プログラム領域
範囲内の値に対応する任意のアドレス情報が出力され、
プログラム・カウンタ2に設定される。これにより、マ
イクロコンピュータ1は、前記任意のアドレス情報に対
応するプログラムの値より、正常動作が実行され、マイ
クロコンピュータの異常動作は防止される。
(57) [Summary] [Purpose] To prevent malfunctions in microcomputers caused by incorrect settings of program counter values. [Structure] In the program counter value monitoring block 3, the counter value of the program counter 2 and the program area input from the program area range information storage circuit 4 are compared and verified, and the counter value of the program counter 2 is A search is made to see if it is within the program area. If the counter value is outside the program area range, the program counter setting circuit 5 outputs arbitrary address information corresponding to the value within the program area range to the program counter 2. ,
Set to program counter 2. As a result, the microcomputer 1 performs normal operation based on the value of the program corresponding to the arbitrary address information, and abnormal operation of the microcomputer is prevented.

Description

【考案の詳細な説明】[Detailed explanation of the idea]

【0001】0001

【産業上の利用分野】[Industrial application field]

本考案はマイクロコンピュータに関し、特に、マイクロコンピュータにおける 、プログラム・ミス等に伴なうプログラム・カウンタ値の異常発生を監視する機 能を有するマイクロコンピュータに関する。 The present invention relates to microcomputers, particularly microcomputers. , a device that monitors abnormalities in program counter values due to program errors, etc. The present invention relates to a microcomputer having the following functions.

【0002】0002

【従来の技術】[Conventional technology]

従来のマイクロコンピュータにおいては、当該マイクロコンピュータにおける ブログラム・カウンタ値がプログラム領域の範囲外の値になっているか否かにつ いては、何等の監視機能が持たれていないのが現状である。 In a conventional microcomputer, the microcomputer Check whether the program counter value is outside the range of the program area. The current situation is that these systems do not have any kind of monitoring function.

【0003】0003

【考案が解決しようとする課題】[Problem that the idea aims to solve]

上述した従来のマイクロコンピュータには、ブログラム・カウンタ値が、所定 のプログラム領域外の値になったか否かについての監視機能が付与されていない ため、プログラム・ミス等に伴なうプログラム・カウンタ値の異常発生(プログ ラム領域範囲外の値設定)時に、それ以後のマイクロコンピュータの動作が正常 に動作し得ないという欠点がある。 In the conventional microcomputer mentioned above, the program counter value is No monitoring function is provided to check whether the value is outside the program area. Therefore, an abnormality in the program counter value may occur due to a program error (program error). When setting a value outside the RAM area range), the microcomputer operates normally after that. The disadvantage is that it cannot work.

【0004】0004

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

本考案のマイクロコンピュータは、予めプログラム領域範囲情報を格納してお くプログラム領域範囲情報記憶回路と、プログラムのアドレス情報を格納するプ ログラム・カウンタと、前記プログラム・カウンタにプログラムのアドレス情報 を設定するプログラム・カウンタ値設定回路と、前記プログラム・カウンタにお けるカウンタ値と、前記プログラム領域範囲情報記憶回路より入力されるプログ ラム領域範囲情報とを比較照合して、前記カウンタ値がプログラム領域範囲外の 値になった時点において、当該プログラム・カウンタ値を、前記プログラム領域 範囲内の所定のカウンタ値に強制的に変更するプログラム・カウンタ値監視ブロ ックと、を備えて構成される。 The microcomputer of this invention stores program area range information in advance. A program area range information storage circuit and a program area storage circuit that stores program address information. program counter and program address information in the program counter. A program counter value setting circuit for setting the program counter, and a program counter value setting circuit for setting the program counter. and the program area range information storage circuit input from the program area range information storage circuit. The counter value is outside the program area range by comparing with the RAM area range information. When the value is reached, the program counter value is transferred to the program area. Program counter value monitoring block that forcibly changes the counter value to a predetermined value within the range. It consists of a

【0005】[0005]

【実施例】【Example】

次に、本考案について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

【0006】 図1は本考案の一実施例を示すブロック図である。図1に示されるように、本 実施例のマイクロコンピュータ1は、プログラム・カウンタ2と、プログラム・ カウンタ値監視ブロック3と、プログラム領域範囲情報記憶回路4と、プログラ ム・カウンタ設定回路5とを備えて構成される。なお、図1においては、本来マ イクロコンピュータ1に含まれている、他の構成要素については、本考案には特 に関連がないため、一切省略されており記載されていない。また、図2に示され のは、本考案の動作を示すフローチャートである。[0006] FIG. 1 is a block diagram showing one embodiment of the present invention. As shown in Figure 1, the book The microcomputer 1 of the embodiment includes a program counter 2 and a program counter 2. Counter value monitoring block 3, program area range information storage circuit 4, and program and a time counter setting circuit 5. Note that in Figure 1, the original Other components included in the microcomputer 1 are not specifically covered by this invention. Since it is not related, it is completely omitted and not listed. Also shown in Figure 2 is a flowchart showing the operation of the present invention.

【0007】 図1において、プログラム・カウンタ2はマイクロコンピュータ1のプログラ ム・メモリのアドレス情報を保持しているカウンタであり、プログラム・カウン タ設定回路5により、内部バス101を介して、所定のプログラム・メモリのア ドレス情報が設定される。一方、プログラム領域範囲情報記憶回路4には、マイ クロコンピュータ1におけるブログラム領域の範囲を規定する情報が格納されて おり、プログラム・カウンタ値監視ブロック3においては、プログラム・カウン タ2より、内部バス101を介して入力されるカウンタ値と、プログラム領域範 囲情報記憶回路4より、内部バス101を介して入力されるプログラム領域とが 比較照合され、プログラム・カウンタ2より入力されるカウンタ値が、当該プロ グラム領域内にあるか否かが検索され、仮にカウンタ値がプログラム領域範囲外 の値であった場合には、プログラム・カウンタ2に対してアドレス情報修正を指 示する制御信号が出力されて、プログラム・カウンタ設定回路5に入力される。 プログラム・カウンタ設定回路5においては、前記制御信号を受けて、前記プロ グラム領域範囲外の値の誤設定に対処するため、プログラム・カウンタ2内のプ ログラム・メモリに対する任意のアドレス情報(プログラム領域内)が出力され 、内部バス101を経由してプログラム・カウンタ2に送られて、当該任意アド レス情報が設定される。これにより、マイクロコンピュータ1は、前記任意のア ドレス情報に対応するプログラムの値より、正常動作が開始される。[0007] In FIG. 1, program counter 2 is the program counter of microcomputer 1. This is a counter that holds address information for program memory. A predetermined program memory address is set by the data setting circuit 5 via the internal bus 101. Dress information is set. On the other hand, the program area range information storage circuit 4 contains Information defining the range of the program area in the computer 1 is stored. In the program counter value monitoring block 3, the program counter The counter value input from the counter 2 via the internal bus 101 and the program area range The program area input from the surrounding information storage circuit 4 via the internal bus 101 is The counter value input from program counter 2 after comparison is verified. The counter value is searched to see if it is within the program area, and if the counter value is outside the program area. If the value is , it instructs program counter 2 to correct the address information. A control signal shown is output and input to the program counter setting circuit 5. In the program counter setting circuit 5, in response to the control signal, the program counter setting circuit 5 receives the control signal. To deal with incorrect settings of values outside the program area range, the program counter 2 Arbitrary address information (in the program area) for program memory is output. , is sent to the program counter 2 via the internal bus 101, and the arbitrary address is sent to the program counter 2 via the internal bus 101. response information is set. As a result, the microcomputer 1 Normal operation starts from the program value corresponding to the address information.

【0008】 なお、上述のように、図2は、本考案の動作を示すフローチャートであり、ス テップ21の判断処理を介して、プログラム・カウンタ値がプログラム領域範囲 外の値となった場合には、ステップ22の処理手順により、プログラム・カウン タ2には、プログラム・カウンタ設定回路5により、任意のアドレス情報が設定 される。[0008] As mentioned above, FIG. 2 is a flowchart showing the operation of the present invention. Through the judgment process in step 21, the program counter value is determined to be within the program area range. If the value is outside the range, the program counter is Arbitrary address information is set in the counter 2 by the program counter setting circuit 5. be done.

【0009】[0009]

【考案の効果】[Effect of the idea]

以上説明したように、本考案は、マイクロコンピュータ内のプログラム・カウ ンタの値がプログラム領域外の値となるような異常事態において、強制的に前記 プログラム・カウンタの値を変更することにより、プログラム・ミス等により発 生する上記のプログラム値における異常事態を回避し、プログラムの任意の場所 から当該プログラムの実行を継続させることが可能となり、マイクロコンピュー タの異常動作を防止することができるという効果がある。 As explained above, the present invention is a program counter in a microcomputer. In an abnormal situation where the value of the parameter is outside the program area, the above By changing the value of the program counter, you can Avoid abnormal situations in the above program values that occur, and This makes it possible to continue executing the program from the microcomputer. This has the effect of preventing abnormal operation of the device.

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

【図1】本考案の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】本実施例における動作のフローチャートを示す
図である。
FIG. 2 is a diagram showing a flowchart of operations in this embodiment.

【符号の説明】[Explanation of symbols]

1 マイクロコンピュータ 2 プログラム・カウンタ 3 プログラム・カウンタ値監視ブロック 4 プログラム領域範囲情報記憶回路 5 プログラム・カウンタ設定回路 1 Microcomputer 2 Program counter 3 Program counter value monitoring block 4 Program area range information storage circuit 5 Program counter setting circuit

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 予めプログラム領域範囲情報を格納して
おくプログラム領域範囲情報記憶回路と、プログラムの
アドレス情報を格納するプログラム・カウンタと、前記
プログラム・カウンタにプログラムのアドレス情報を設
定するプログラム・カウンタ値設定回路と、前記プログ
ラム・カウンタにおけるカウンタ値と、前記プログラム
領域範囲情報記憶回路より入力されるプログラム領域範
囲情報とを比較照合して、前記カウンタ値がプログラム
領域範囲外の値になった時点において、当該プログラム
・カウンタ値を、前記プログラム領域範囲内の所定のカ
ウンタ値に強制的に変更するプログラム・カウンタ値監
視ブロックと、を備えることを特徴とするマイクロコン
ピュータ。
1. A program area range information storage circuit that stores program area range information in advance, a program counter that stores program address information, and a program counter that sets program address information in the program counter. A value setting circuit compares and verifies the counter value in the program counter with the program area range information inputted from the program area range information storage circuit, and when the counter value becomes a value outside the program area range. A microcomputer comprising: a program counter value monitoring block that forcibly changes the program counter value to a predetermined counter value within the program area range.
JP2699591U 1991-04-20 1991-04-20 micro computer Pending JPH04123440U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2699591U JPH04123440U (en) 1991-04-20 1991-04-20 micro computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2699591U JPH04123440U (en) 1991-04-20 1991-04-20 micro computer

Publications (1)

Publication Number Publication Date
JPH04123440U true JPH04123440U (en) 1992-11-09

Family

ID=31911382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2699591U Pending JPH04123440U (en) 1991-04-20 1991-04-20 micro computer

Country Status (1)

Country Link
JP (1) JPH04123440U (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54124650A (en) * 1978-03-20 1979-09-27 Toshiba Corp Computer
JPS56105545A (en) * 1980-01-25 1981-08-22 Nippon Electric Ind Co Ltd Program abnormality signal generating circuit of microcomputer
JPS57157363A (en) * 1981-03-25 1982-09-28 Fujitsu Ltd Address stop controlling circuit
JPS5920060A (en) * 1982-07-23 1984-02-01 Mitsubishi Electric Corp Maintenance method of digital device
JPS61103251A (en) * 1984-10-26 1986-05-21 Nec Corp Debug device for microprocessor system
JPS61241848A (en) * 1985-04-19 1986-10-28 Nec Corp Fault detecting circuit for electronic computer
JPS61281342A (en) * 1985-06-07 1986-12-11 Hitachi Ltd Runaway preventing device for program
JPS6335143B2 (en) * 1981-02-20 1988-07-13 Aippon Kk
JPH02264340A (en) * 1989-04-04 1990-10-29 Nec Corp Microprocessor

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54124650A (en) * 1978-03-20 1979-09-27 Toshiba Corp Computer
JPS56105545A (en) * 1980-01-25 1981-08-22 Nippon Electric Ind Co Ltd Program abnormality signal generating circuit of microcomputer
JPS6335143B2 (en) * 1981-02-20 1988-07-13 Aippon Kk
JPS57157363A (en) * 1981-03-25 1982-09-28 Fujitsu Ltd Address stop controlling circuit
JPS5920060A (en) * 1982-07-23 1984-02-01 Mitsubishi Electric Corp Maintenance method of digital device
JPS61103251A (en) * 1984-10-26 1986-05-21 Nec Corp Debug device for microprocessor system
JPS61241848A (en) * 1985-04-19 1986-10-28 Nec Corp Fault detecting circuit for electronic computer
JPS61281342A (en) * 1985-06-07 1986-12-11 Hitachi Ltd Runaway preventing device for program
JPH02264340A (en) * 1989-04-04 1990-10-29 Nec Corp Microprocessor

Similar Documents

Publication Publication Date Title
US20140136570A1 (en) Controller and program
JPH04123440U (en) micro computer
JP2695300B2 (en) Portable information terminal
JPS59216250A (en) Control method of general-purpose pc peripheral device
JP2983221B2 (en) Memory configuration setting method
JPS6243408Y2 (en)
JP2001256071A (en) Redundant system
CN116610486A (en) Setting data using method for basic input output system
JPH0477039A (en) Communication equipment
JPH0784786A (en) Program execution control method
JPH0651826A (en) Teaching device for robot
JPS63265327A (en) System production system
JPH04105137A (en) Check system for input/output function of computer
JPH052254U (en) Microprocessor device
JPS61160106A (en) Sequence control device
JPH056318A (en) Dynamic loading system for application program in pos controller
JPS63126056A (en) Terminal equipment control system
JPH0423001A (en) Controller for industrial machine
JPH0432939A (en) Specifying method for faulty position
JPS59212967A (en) Monitor system for runaway of program
JPH0229815A (en) Initializing control system
JP2001238353A (en) Power system monitor controller and storage medium with program to carry out the same
JPH05127937A (en) Multiprocessor system
JPH04112225A (en) Integrated circuit device
JPH0363731A (en) System fault processing method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19971014