JPH04169918A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH04169918A
JPH04169918A JP2296006A JP29600690A JPH04169918A JP H04169918 A JPH04169918 A JP H04169918A JP 2296006 A JP2296006 A JP 2296006A JP 29600690 A JP29600690 A JP 29600690A JP H04169918 A JPH04169918 A JP H04169918A
Authority
JP
Japan
Prior art keywords
reset
address
microcomputer
program
vector
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
JP2296006A
Other languages
Japanese (ja)
Inventor
Takenori Nagao
長尾 豪教
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2296006A priority Critical patent/JPH04169918A/en
Publication of JPH04169918A publication Critical patent/JPH04169918A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To momently and easily operate a microcomputer against plural reset factors by providing a function which selects and sets different branch destination addresses in accordance with plural reset inputs. CONSTITUTION:The high level and the low level are inputted to reset signal lines A101 and B102 from the external respectively to turn on and off tristate buffers A103 and B104, respectively, and a reset vector A105 is outputted as the address to an address signal line 107. Contents of the address indicated by the reset vector A105 are read out from a memory 108 to a data bus 109, and a start address A is loaded to a program controller 110. As the result, the microcomputer starts execution of an initializing program from the start address A. When the low level and the high level are inputted to reset signal lines A101 and B102 from the external respectively, execution of the initializing program is started from a start address B. Thus, the initializing program is simplified and the immediateness is improved.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、マイクロコンピュータに関し、特にリセット
方法の改良に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer, and particularly relates to an improvement in a reset method.

[発明の概要] 本発明はマイクロコンピュータに対して、複数のリセッ
ト入力端子、及びプログラムのスタートアドレスを格納
しているメモリのアドレスを示す複数のポインタ(以下
リセットベクタと呼ぶ)を設け、各々のリセット入力か
ら、それに対応するリセットベクタを用いてメモリを参
照し、各々のリセット入力の応じた異なる分岐先アドレ
スを選択し、セットすることを可能とする。
[Summary of the Invention] The present invention provides a microcomputer with a plurality of reset input terminals and a plurality of pointers (hereinafter referred to as reset vectors) indicating memory addresses storing program start addresses. From the reset input, the memory is referenced using the corresponding reset vector, and it is possible to select and set a different branch destination address according to each reset input.

[従来の技術] 従来のマイクロコンピュータでは、リセット入力端子が
アクティブ状態になると、プログラムのスタートアドレ
スを格納しているメモリをリセットベクタが参照し、そ
のメモリ内容をプログラムカウンタに転送して、プログ
ラムがスタートした。
[Prior Art] In a conventional microcomputer, when the reset input terminal becomes active, the reset vector refers to the memory that stores the program start address, transfers the memory contents to the program counter, and the program starts. It started.

[発明が解決しようとする課M] しかし前記の従来の技術では、リセット時におけるリセ
ットベクタの参照メモリアドレスが、1アドレスに固定
されていたため、リセットが入力された際に、その入力
が使用者によって意図的に入力されたものなのか、マイ
クロコンピュータの動作を監視する外部システム(電源
電圧異常検出装置、ウォッチドッグタイマ等)からの入
力なのか、その時点で判別できなかった。
[Problem M to be Solved by the Invention] However, in the above-mentioned conventional technology, the reference memory address of the reset vector at the time of reset is fixed to one address, so when the reset is input, the input is At that point, it was not possible to determine whether the input was intentional or from an external system (power supply voltage abnormality detection device, watchdog timer, etc.) that monitors the operation of the microcomputer.

そのため、それ以後に外部システムから入力されるステ
ータスをプログラムの初期化ルーチンが認識して、処理
を意図的な初期化なのか異常処理なのか振り分けなけれ
ばならず、即時性に欠は且つプログラムに負荷がかかる
という課題を有した。
Therefore, the program's initialization routine must recognize the status input from the external system after that and determine whether the process is an intentional initialization or an abnormal process, which lacks immediacy and causes problems for the program. The problem was that it was a heavy load.

そこで本発明はこのような問題点を解決するもので、そ
の目的とするところは、複数のリセット要因対しても、
マイクロコンピュータを瞬時に、しかも容易に動作させ
る手段を提供することにある。
Therefore, the present invention is intended to solve these problems, and its purpose is to
To provide a means for instantly and easily operating a microcomputer.

[課題を解決するための手段] 本発明のマイクロコンピュータは、かかる課題を解決す
るために、 リセット入力により、次に実行するプログラムのアドレ
ス情報を保持するプログラムカウンタ(PC)の分岐先
アドレスをセットできるマイクロコンピュータおいて、 複数のリセット入力を有し、各々のリセット入力に応じ
て異なる分岐先アドレスを選択し、セットする機能を有
するこのを特徴とする。
[Means for Solving the Problem] In order to solve the problem, the microcomputer of the present invention sets the branch destination address of a program counter (PC) that holds address information of the next program to be executed by a reset input. This microcomputer is characterized by having a plurality of reset inputs and a function of selecting and setting a different branch destination address in accordance with each reset input.

[実施例] 以下、本発明について実施例に基づき詳細に説明する。[Example] Hereinafter, the present invention will be described in detail based on examples.

第1図は本発明のブロック図である。FIG. 1 is a block diagram of the present invention.

101及び102はマイクロコンピュータをリセットす
るリセット信号線A及びリセット信号線B0103及び
104はそれぞれ、リセット信号線AIDI及びリセッ
ト信号@B102に結合されるトライステートバファA
及びトライステートバファB、105はトライステート
バファAlO3に結合され、リセットA入力に対してリ
セットベクタを発生するリセットベクタA、106はト
ライステートバファB104に結合され、リセットB入
力に対してリセットベクタを発生するリセットベクタB
、107はトライステートバファAlO3及びトライス
テートバファB104に結合され、ベクタアドレスを出
力するアドレス信号線。
101 and 102 are reset signal lines A for resetting the microcomputer, and reset signal lines B0103 and 104 are tri-state buffers A coupled to the reset signal line AIDI and the reset signal @B102, respectively.
and tri-state buffer B, 105 are coupled to tri-state buffer AlO3 and generate a reset vector for the reset A input.Reset vector A, 106 is coupled to tri-state buffer B 104 and generates a reset vector for the reset B input. Generated reset vector B
, 107 are address signal lines coupled to the tri-state buffer AlO3 and the tri-state buffer B104 and outputting a vector address.

108はアドレス信号fi107に結合され、リセット
時にリセットベクタAlO3及びリセットベクタB10
6によって指定されるプログラムのスタートアドレスを
格納するメモリ。109はメモリ108に結合されるデ
ータバス。110はデータバス109に結合され、デー
タバス109から転送されるスタートアドレスをロード
するプログラムカウンタ。
108 is coupled to the address signal fi107, and is connected to the reset vector AlO3 and the reset vector B10 at the time of reset.
Memory that stores the start address of the program specified by 6. 109 is a data bus coupled to memory 108; A program counter 110 is coupled to the data bus 109 and loads a start address transferred from the data bus 109.

以上によって本発明が構成される。The present invention is constituted by the above.

まず、外部からリセット信号線Al0LにHIGHレベ
ル、リセット信号線B102にLOWレベルを入力する
。ここでトライステートバファAlO3がON、トライ
ステートバファB104がOFFされ、リセットベクタ
Al 05がアドレスとしてアドレス信号線107に出
力される。次にメモリ108から前記リセットベクタA
lO3が示すアドレスの内容をデータバス109に読み
出し、プログラムカウンタ110にスタートアドレスA
をロードする。その結果、マイクロコンピュータはスタ
ートアドレスAがら初期化プログラムを実行し始める。
First, a HIGH level is inputted to the reset signal line Al0L and a LOW level is inputted to the reset signal line B102 from the outside. Here, the tristate buffer AlO3 is turned on, the tristate buffer B104 is turned off, and the reset vector Al05 is outputted to the address signal line 107 as an address. Next, the reset vector A is transferred from the memory 108.
The contents of the address indicated by lO3 are read to the data bus 109, and the start address A is input to the program counter 110.
Load. As a result, the microcomputer starts executing the initialization program from start address A.

前記とは逆に、外部からリセット信号線Al01にLO
Wレベル、リセット信号111B102にHIGHを入
力した場合は、トライステートバファAlO3がOFF
、トライステートバファBIO4がONされる。前記に
より、リセットベクタB106がアドレスとしてアドレ
ス信号線107に出力され、メモリ108から前記fノ
セットベクタB106が示すアドレスの内容をデータバ
ス109を経由して読み出し、プログラムカウンタ11
0にスタートアドレスBをロードする。その結果、マイ
クロコンピュータはスタートアドレスBから初期化プロ
グラムを実行し始める。
Contrary to the above, LO is applied to the reset signal line Al01 from the outside.
When W level and HIGH are input to the reset signal 111B102, the tri-state buffer AlO3 is turned off.
, tristate buffer BIO4 is turned on. As a result of the above, the reset vector B106 is output as an address to the address signal line 107, and the contents of the address indicated by the f noset vector B106 are read from the memory 108 via the data bus 109, and the program counter 11
Load start address B into 0. As a result, the microcomputer starts executing the initialization program from start address B.

[発明の効果] 以上述べたように、本発明では従来1アドレスに固定さ
れていたリセット時のスタートアドレスに対して、リセ
ット入力端子とリセットベクタを複数設け、各々のリセ
ットがアクティブになった際にそれに対応するリセット
ベクタをアドレスとして出力し、異なるスタートアドレ
スをリセット要因ごとに得ることで、従来必要であった
外部システムからのステータスの入力、及びマイクロコ
ンビュータ側での前記ステータスの判定が不要となる。
[Effects of the Invention] As described above, in the present invention, a plurality of reset input terminals and reset vectors are provided for the start address at reset, which was conventionally fixed to one address, and when each reset becomes active, By outputting the corresponding reset vector as an address and obtaining a different start address for each reset cause, inputting the status from an external system and determining the status on the microcomputer side, which were previously required, are no longer necessary. Become.

以上により、各々のリセット要因に対する分岐処理が自
動的に行われるため、初期化プログラムを簡略化し、且
つ即時性を高めることができる。
As described above, since branch processing for each reset factor is automatically performed, the initialization program can be simplified and immediacy can be improved.

また前記のとおりステータス入力が不要となるため、外
部システムの回路構成を単純化することができる。
Furthermore, as described above, since status input is not required, the circuit configuration of the external system can be simplified.

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

第1図は本発明のマイクロコンピュータのブロック図。 101・・・・・・リセット信号線A lO2・・・・・・リセット信号線B 103・・・・・・トライステートバファAlO4・・
・・・・トライステートバファB105・・・・・・リ
セットベクタA 106・・・・・・リセットベクタB 107・・・・・・アドレス信号線 108・・・・・・メモリ 109・・・・・・データバス 110・・・・・・プログラムカウンタ以   上 出願人 セイコーエプソン株式会社 代理人 弁理士 鈴木喜三部 他1名
FIG. 1 is a block diagram of a microcomputer according to the present invention. 101... Reset signal line A lO2... Reset signal line B 103... Tri-state buffer AlO4...
... Tri-state buffer B105 ... Reset vector A 106 ... Reset vector B 107 ... Address signal line 108 ... Memory 109 ... ...Data bus 110...Program counter or more Applicant Seiko Epson Co., Ltd. agent Patent attorney Kizobe Suzuki and 1 other person

Claims (1)

【特許請求の範囲】 リセット入力により、次に実行するプログラムのアドレ
ス情報を保持するプログラムカウンタ(PC)の分岐先
アドレスをセットできるマイクロコンピュータおいて、 複数のリセット入力を有し、各々のリセット入力に応じ
て異なる分岐先アドレスを選択し、セットする機能を有
することを特徴とするマイクロコンピュータ。
[Scope of Claim] A microcomputer that can set a branch destination address of a program counter (PC) that holds address information of a program to be executed next by a reset input, which has a plurality of reset inputs, and each reset input has a plurality of reset inputs. A microcomputer characterized by having a function of selecting and setting a different branch destination address depending on the address.
JP2296006A 1990-11-01 1990-11-01 Microcomputer Pending JPH04169918A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2296006A JPH04169918A (en) 1990-11-01 1990-11-01 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2296006A JPH04169918A (en) 1990-11-01 1990-11-01 Microcomputer

Publications (1)

Publication Number Publication Date
JPH04169918A true JPH04169918A (en) 1992-06-17

Family

ID=17827914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2296006A Pending JPH04169918A (en) 1990-11-01 1990-11-01 Microcomputer

Country Status (1)

Country Link
JP (1) JPH04169918A (en)

Similar Documents

Publication Publication Date Title
EP0127440A2 (en) Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein
US6175890B1 (en) Device for efficiently handling interrupt request processes
JPH0773156A (en) Data driving-type information processor
JPH04169918A (en) Microcomputer
US4807178A (en) Programmable sequence controller having indirect and direct input/output apparatus
US4928238A (en) Scalar data arithmetic control system for vector arithmetic processor
US5179668A (en) Signal processor
JPS6260038A (en) Watchdog circuit
JP2802091B2 (en) Interrupt vector control method
EP0381140A2 (en) Data processing apparatus
JPS59123933A (en) Address comparison system
JPH0540510A (en) Controller
JPH03225546A (en) Method for confirming whether option board is mounted or not
JPH04140831A (en) Microcomputer
JPS59189462A (en) Information processing system of system constitution state reading method
JP2814849B2 (en) Communication control device
JP2841405B2 (en) Microcomputer control circuit
JP3348177B2 (en) Programmable controller
JPH01201762A (en) Micro computer
JPH01261747A (en) Computer device
JPH02259842A (en) System for testing tight-coupling multiprocessor system
JPH0363731A (en) System fault processing method
JPS6347828A (en) Console message output control system
JPS6375831A (en) Method for switching execution mode of processor
JPH04241026A (en) Sequence control part