JPH03113543A - Cpu device - Google Patents
Cpu deviceInfo
- Publication number
- JPH03113543A JPH03113543A JP1251601A JP25160189A JPH03113543A JP H03113543 A JPH03113543 A JP H03113543A JP 1251601 A JP1251601 A JP 1251601A JP 25160189 A JP25160189 A JP 25160189A JP H03113543 A JPH03113543 A JP H03113543A
- Authority
- JP
- Japan
- Prior art keywords
- rom
- cpu
- program
- detection means
- light
- 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
Links
- 238000001514 detection method Methods 0.000 claims abstract description 13
- 238000010586 diagram Methods 0.000 description 8
- 238000000034 method Methods 0.000 description 5
- QPBSRMDNJOTFAL-AICCOOGYSA-N Ala-Leu-Leu-Thr Chemical compound C[C@H](N)C(=O)N[C@@H](CC(C)C)C(=O)N[C@@H](CC(C)C)C(=O)N[C@@H]([C@@H](C)O)C(O)=O QPBSRMDNJOTFAL-AICCOOGYSA-N 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 101100524644 Toxoplasma gondii ROM4 gene Proteins 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 229940124513 senna glycoside Drugs 0.000 description 1
Landscapes
- Microcomputers (AREA)
Abstract
Description
【発明の詳細な説明】
(a)産業上の利用分野
この発明は、CPUの処理プログラムを記憶したROM
が外付けされるCPU装置に関する。DETAILED DESCRIPTION OF THE INVENTION (a) Industrial field of application This invention relates to a ROM that stores a processing program for a CPU.
This invention relates to a CPU device that is externally attached.
(bl従来の技術
一般に、入出力機器の動作を制御する制御部としては、
第4図に示すようにROM31およびRAM32を接続
したCPU30によって構成されるCPU装置が用いら
れる。ROM31にはCPU30の処理動作を規定する
プログラムが予め記憶されている。RAM32はバッフ
ァ用メモリや制御動作に必要となるフラグ等の演算用領
域として使用される。CPU30はI10インタフェー
ス33を介して信号入力装置35から入力された信号に
応じてROM31に記憶されているプログラムにしたが
って制御データをI10インタフェ−ス34を介してド
ライバアレー36に出力する。ドライバアレー36はC
PU30から出力された制御データにしたがって各入出
力機器を駆動する。CPU30の処理動作が比較的単純
な場合にはROM31に記憶すべきプログラム量は少な
く、ROM31およびRAM32はCPU30とともに
ワンチップIC内に一体的に構成される。しかし、CP
tJ30の処理動作が複雑でありROM31に記憶すべ
きプログラム量が多い場合、または後のプログラムの交
換を考慮する場合には、ROM31はCPU30に対し
て外付けされる。(bl Conventional Technology Generally, a control unit that controls the operation of input/output equipment is
As shown in FIG. 4, a CPU device consisting of a CPU 30 to which a ROM 31 and a RAM 32 are connected is used. A program that defines the processing operations of the CPU 30 is stored in the ROM 31 in advance. The RAM 32 is used as a buffer memory and a calculation area for flags and the like required for control operations. CPU 30 outputs control data to driver array 36 via I10 interface 34 in accordance with a program stored in ROM 31 in response to signals input from signal input device 35 via I10 interface 33. The driver array 36 is C
Each input/output device is driven according to control data output from the PU 30. When the processing operation of the CPU 30 is relatively simple, the amount of programs to be stored in the ROM 31 is small, and the ROM 31 and the RAM 32 are integrated with the CPU 30 in a one-chip IC. However, C.P.
If the processing operation of tJ30 is complex and the amount of programs to be stored in the ROM 31 is large, or if replacing the program later is considered, the ROM 31 is externally attached to the CPU 30.
(C)発明が解決しようとする課題
しかしながら、CPU30に対してROM31を外付け
する場合、工作過程におけるミスによりRO’M31が
正常に接続されない場合がある。このようにCPU30
にROM31が接続されていない状態では、各アドレス
のプログラムデータは第5図に示すようにF F Hと
なる。この状態でCPU30に電源が投入されると、第
6図に示すようにCPU30はo o o o、のアド
レスから処理を実行しようとし、プログラムカウンタP
CにはFFFF、が格納される(nl)。これによって
CPU30はF F F F、のアドレスにジャンプし
、このアドレスのインストラクション(命令)、即ちC
ALLT (7Fu )を実行する(n2)。(C) Problems to be Solved by the Invention However, when the ROM 31 is externally attached to the CPU 30, the ROM 31 may not be properly connected due to a mistake in the manufacturing process. In this way CPU30
When the ROM 31 is not connected to the ROM 31, the program data at each address becomes F F H as shown in FIG. When the power is turned on to the CPU 30 in this state, as shown in FIG.
FFFF is stored in C (nl). As a result, the CPU 30 jumps to the address F F F F, and executes the instruction at this address, that is, C
Execute ALLT (7Fu) (n2).
これは007F)l、0080.のアドレスの内容(F
FFFH)をコールするものである。This is 007F)l, 0080. Contents of the address (F
FFFH).
この処理により、第7図に示すRAM32において、ス
タックポインタSPが指定するアドレスの一つ前および
二つ前のアドレスにプログラムカウンタPCに格納され
ているアドレスの次のアドレスを格納するとともに(n
3)、スタックポインタSPの内容を2ffA算する(
n4)。このため、スタックポインタSPの内容は、第
7図に示す5P−2のアドレスになる。As a result of this process, in the RAM 32 shown in FIG.
3) Calculate the contents of stack pointer SP by 2ffA (
n4). Therefore, the contents of the stack pointer SP become the address 5P-2 shown in FIG.
上記n2の処理においてOO7F、Iをコールするため
、プログラムカウンタPCの内容は常にFFFF□にさ
れ続け、02〜n4の処理が繰り返し実行されてしまう
。この結果、RAM32の全てのアドレスのメモリエリ
アに対して、大きい数字のアドレスから小さい数字のア
ドレスに向かってn3の処理が実行され、書き込み可能
な全てのメモリエリアの内容が0になることになり、C
PU30がいわゆる暴走を生じるとともに、暴走後の処
理作業も不可能になる問題があった。Since OO7F and I are called in the process of n2, the contents of the program counter PC are always set to FFFF□, and the processes of 02 to n4 are repeatedly executed. As a result, the process n3 is executed for the memory areas of all addresses in the RAM 32 from the address with the highest number to the address with the lowest number, and the contents of all the writable memory areas become 0. , C
There is a problem in that the PU 30 causes what is called a runaway, and also makes it impossible to carry out processing operations after the runaway.
この発明の目的は、CPUにROMが接続されていない
状態でCPUに電源が投入された際に、CPUがROM
に記憶されているプログラムを参照して行う通常の処理
動作を実行しないようにし、CPUの暴走を未然に防止
できるCPU装置を提供することにある。The purpose of this invention is to prevent the CPU from ROM-ROM when the power is turned on to the CPU with no ROM connected to the CPU.
It is an object of the present invention to provide a CPU device capable of preventing a CPU from running out of control by not executing a normal processing operation performed by referring to a program stored in a CPU.
(d)課題を解決するための手段
請求項(1)に記載した発明に係るCPU装置は、外付
けされるROMに予め書き込まれたプログラムにしたが
って処理動作を実行するCPU装置において、
ROMが接続されているか否かを検出する検出手段と、
検出手段がROMが接続されていることを検出した際に
のみCPUをリセットする動作選択手段と、を設けたこ
とを特徴とする。(d) Means for Solving the Problems The CPU device according to the invention described in claim (1) is a CPU device that executes processing operations according to a program written in advance in an externally attached ROM, and the ROM is connected to the CPU device. detection means for detecting whether or not the
The present invention is characterized in that it includes operation selection means for resetting the CPU only when the detection means detects that the ROM is connected.
また、請求項(2)に記載した発明に係るCPU装置は
、外付けされるROMに予め書き込まれたプログラムに
したがって処理動作を実行するCPU装置において、
ROMが接続されているか否かを検出する検出手段と、
RAMに書き込まれたプログラムを参照しないエラーモ
ードのプログラムを記憶した記憶手段と、検出手段がR
OMが接続されていることを検出したか否かに応じてR
OMのプログラムまたは記憶手段のプログラムの何れか
を択一的に有効にする切換手段と、を設けたことを特徴
とする(e1作用
上記請求項Tl)に記載した発明においては、CPUに
ROMが接続されている場合においてのみCPUがリセ
ットされる。したがって、ROMが接続されていない場
合にはCPUはリセットされることがなく、電源が投入
されてもCPUは処理動作を開始することがない。Further, the CPU device according to the invention described in claim (2) is a CPU device that executes processing operations according to a program written in advance in an externally attached ROM, and detects whether or not the ROM is connected. detection means;
The storage means that stores an error mode program that does not refer to the program written in the RAM, and the detection means are R.
R depending on whether the OM detects that it is connected or not.
In the invention described in claim Tl above (effect e1), the invention is characterized in that a switching means is provided for selectively validating either the program of the OM or the program of the storage means. The CPU will only be reset if it is connected. Therefore, when the ROM is not connected, the CPU is not reset, and even when the power is turned on, the CPU does not start processing operations.
また、請求項(2)に記載した発明においては、CPU
にROMが接続され°ζいる場合にはI?OMのプロゲ
ラ1)が有効にされ、CPUにROMが接続されていな
い場合には記憶手段のプログラムが有効にされる。この
記憶手段にはROMのプログラムを参照しないエラーモ
ードのプログラムが記憶されているため、ROMが接続
されていない状態ではCPUはエラーモードの処理動作
を実行するif)実施例
第1図は、請求項(1)に記載した発明に係るcpU装
置の実施例の構成を示す回路図である。Furthermore, in the invention described in claim (2), the CPU
If ROM is connected to °ζ, I? The programmer 1) of the OM is enabled, and if the ROM is not connected to the CPU, the program of the storage means is enabled. Since this storage means stores an error mode program that does not refer to the ROM program, the CPU executes the error mode processing operation when the ROM is not connected. FIG. 2 is a circuit diagram showing the configuration of an embodiment of the CPU device according to the invention described in item (1).
CPU6のリセット端子R3Tにはコンパレータ5の出
力端子が接続されている。このコンパレータ5の非反転
入力端子には、この発明の検出手段であるセンサlを構
成する受光素子3のコレクタ端子が接続されている。セ
ンサ1は発光素子2および受光素子3からなり、第2図
に示すようにROMの取付ソケット7の底部に上向きに
固定されている。したがって、ソケット7にROM4が
取り付けられると、発光素子2の光はROM4の底部に
反射し、受光素子3はこの反射光を受光してオンする。The output terminal of the comparator 5 is connected to the reset terminal R3T of the CPU 6. A non-inverting input terminal of this comparator 5 is connected to a collector terminal of a light receiving element 3 constituting a sensor l which is a detection means of the present invention. The sensor 1 consists of a light emitting element 2 and a light receiving element 3, and is fixed upward to the bottom of a ROM mounting socket 7, as shown in FIG. Therefore, when the ROM 4 is attached to the socket 7, the light from the light emitting element 2 is reflected at the bottom of the ROM 4, and the light receiving element 3 receives this reflected light and turns on.
このように受光素子3がオンするとコンパレータ5の出
力が“Hi”になり、リセット端子R3Tが“Hi”と
なってCPU6はROM4に記憶されているプログラム
にしたがって処理動作を実行する。When the light receiving element 3 is turned on in this manner, the output of the comparator 5 becomes "Hi", the reset terminal R3T becomes "Hi", and the CPU 6 executes processing operations according to the program stored in the ROM 4.
一方、ソケット7にROM4が装着されていない状態で
は受光素子3は発光素子2の光を受光することができず
、オンしない。このためコンパレータ5の出力は“Lo
”のままになり、CPU6は処理動作を実行しない。On the other hand, when the ROM 4 is not installed in the socket 7, the light receiving element 3 cannot receive the light from the light emitting element 2 and is not turned on. Therefore, the output of comparator 5 is “Lo
” and the CPU 6 does not execute any processing operation.
以上のようにしてセンサlによりROM4が装着された
か否かを判別し、ROM4が装着されていない状態では
CPU6が処理動作を実行しないようにし、第6図に示
した暴走を防止することができる。As described above, it is possible to determine whether or not the ROM 4 is installed using the sensor l, and prevent the CPU 6 from executing processing operations when the ROM 4 is not installed, thereby preventing the runaway shown in FIG. 6. .
第3図は、請求項(2)に記載した発明に係るcpU装
置の実施例の回路図である。FIG. 3 is a circuit diagram of an embodiment of the CPU device according to the invention set forth in claim (2).
CPU16のアドレスバスA15にコンパレータ5の出
力端子が接続されている。このコンパレータ5の反転入
力端子には、第1図に示すものと同様の構成のセンサ1
の受光素子3のコレクタ端子が接続されている。センサ
1は第1図に示した構成と同様に第2図に示す状態で取
り付けられており、ソケット7にROM4が装着される
か否かによって受光素子3がオン/オフする。The output terminal of the comparator 5 is connected to the address bus A15 of the CPU 16. The inverting input terminal of this comparator 5 is connected to a sensor 1 having a configuration similar to that shown in FIG.
The collector terminal of the light receiving element 3 is connected. The sensor 1 is installed in the state shown in FIG. 2, similar to the configuration shown in FIG. 1, and the light receiving element 3 is turned on/off depending on whether the ROM 4 is installed in the socket 7.
ROM4がソケット7に装着され、受光素子3がオンす
ると、アドレスバスA15が“Lo”になり、CPU1
6はr20M4に記憶されているプログラムを実行する
。一方ソケソト7にROM4が装着されておらず受光素
子3がオフしている場合には、アドレスバスA15が”
Hi”になり、この発明の記憶手段であるROM18
を有効にする。したがって、ROM4が装着されていな
い状態ではCPU16はROM18に記憶されているプ
ログラムにしたがって処理手順を実行する。このROM
18には図外の表示部にROMの接続不良に係るメンセ
ージを表示するプログラムが記憶されており、CPU1
6のこのプログラムにしたがってROMの接続不良を表
示部に表示する。以1−のようにしてこの実施例によれ
ばROM4が接続されていない状態においてROM18
に記憶されたエラーモードのプログラムを実行させるこ
とによりC1)Uの暴走を防止できる。When the ROM4 is installed in the socket 7 and the light receiving element 3 is turned on, the address bus A15 becomes "Lo" and the CPU1
6 executes the program stored in r20M4. On the other hand, if the ROM 4 is not installed in the socket 7 and the light receiving element 3 is off, the address bus A15 is "
ROM18, which is the storage means of this invention.
Enable. Therefore, when the ROM 4 is not installed, the CPU 16 executes the processing procedure according to the program stored in the ROM 18. This ROM
18 stores a program for displaying a message regarding a ROM connection failure on a display section (not shown), and the CPU 1
According to this program of No. 6, the ROM connection failure is displayed on the display section. As described in 1- below, according to this embodiment, when the ROM 4 is not connected, the ROM 18
By executing the error mode program stored in C1), runaway of C1) can be prevented.
なお、上記何れの実施例においても検出手段として反射
式のフォトセンサを用いたが、CPU4に接触してオン
するマイクロスインチ等を用いることもできる。In each of the above embodiments, a reflective photosensor is used as the detection means, but a microsinch or the like that turns on by contacting the CPU 4 may also be used.
(a発明の効果
請求項[1)に記載した発明によれば、ROMが接続さ
れていない状態ではCPUが動作しないため、実行すべ
きプログラムがないことに起因するCPUの暴走を未然
に防止できる利点がある。(Effect of invention a) According to the invention described in claim [1], since the CPU does not operate when the ROM is not connected, it is possible to prevent the CPU from running out of control due to the lack of a program to be executed. There are advantages.
また請求項(2)に記載した発明によれば、ROMが接
続されていない状態では記憶手段に記憶されているエラ
ーモードのプログラムが実行されるため、CPUが暴走
を生じることがない。Further, according to the invention described in claim (2), since the error mode program stored in the storage means is executed when the ROM is not connected, the CPU does not run out of control.
第1図は請求項+1)に記載した発明に係るCPU装置
の実施例の回路図、第2図は同CP U装置の一部を構
成する検出手段の平面図である。第3図は請求項(2)
に記載した発明に係るCPU装置の実施例を示す回路図
である。また、第4図はこの発明の実施例を含む一般的
なCPU装置によって構成される制御部のブロック図で
ある。更に、第5図〜第6図は従来のcpu装置の構成
および処理動作を示す図であり、第5図はROMが接続
されていない状態におりる各アドレスのデータおよびイ
ンストラクションを示す図、第6図はROMが接続され
ていない状態における処理動作を示すフローチャート、
第7図はCPUに接続されるRAMの構成を示す略図で
ある。
1−センナ(検出手段)、5−コンパレータ(動作選択
手段) 、6.16−CPU、15−コンパレータ(切
換手段)、18−ROM (記憶手段)第
6
図
第
図
/″′”パ′
PFIG. 1 is a circuit diagram of an embodiment of a CPU device according to the invention set forth in claim +1), and FIG. 2 is a plan view of a detection means forming a part of the CPU device. Figure 3 is claim (2)
FIG. 2 is a circuit diagram showing an embodiment of a CPU device according to the invention described in FIG. Further, FIG. 4 is a block diagram of a control section constituted by a general CPU device including an embodiment of the present invention. Furthermore, FIGS. 5 and 6 are diagrams showing the configuration and processing operation of a conventional CPU device, and FIG. 5 is a diagram showing data and instructions at each address when the ROM is not connected. Figure 6 is a flowchart showing the processing operation when the ROM is not connected;
FIG. 7 is a schematic diagram showing the configuration of the RAM connected to the CPU. 1-Senna (detection means), 5-Comparator (operation selection means), 6.16-CPU, 15-Comparator (switching means), 18-ROM (memory means) Fig. 6
Claims (2)
ムにしたがって処理動作を実行するCPU装置において
、 ROMが接続されているか否かを検出する検出手段と、
検出手段がROMが接続されていることを検出した際に
のみCPUをリセットする動作選択手段と、を設けたこ
とを特徴とするCPU装置。(1) In a CPU device that executes processing operations according to a program written in advance in an externally attached ROM, a detection means for detecting whether or not the ROM is connected;
A CPU device comprising operation selection means for resetting the CPU only when the detection means detects that a ROM is connected.
ムにしたがって処理動作を実行するCPU装置において
、 ROMが接続されているか否かを検出する検出手段と、
ROMに書き込まれたプログラムを参照しないエラーモ
ードのプログラムを記憶した記憶手段と、検出手段がR
OMが接続されていることを検出したか否かに応じてR
OMのプログラムまたは記憶手段のプログラムの何れか
を択一的に有効にする切換手段と、を設けたことを特徴
とするCPU装置。(2) in a CPU device that executes processing operations according to a program written in advance in an externally attached ROM, a detection means for detecting whether or not the ROM is connected;
The storage means that stores an error mode program that does not refer to the program written in the ROM, and the detection means are R.
R depending on whether the OM detects that it is connected or not.
A CPU device characterized by comprising: switching means for selectively validating either the OM program or the storage means program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1251601A JPH03113543A (en) | 1989-09-27 | 1989-09-27 | Cpu device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1251601A JPH03113543A (en) | 1989-09-27 | 1989-09-27 | Cpu device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03113543A true JPH03113543A (en) | 1991-05-14 |
Family
ID=17225247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1251601A Pending JPH03113543A (en) | 1989-09-27 | 1989-09-27 | Cpu device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03113543A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5949702A (en) * | 1997-01-22 | 1999-09-07 | Nec Corporation | Memory mounting judgment circuit |
-
1989
- 1989-09-27 JP JP1251601A patent/JPH03113543A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5949702A (en) * | 1997-01-22 | 1999-09-07 | Nec Corporation | Memory mounting judgment circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6158000A (en) | Shared memory initialization method for system having multiple processor capability | |
US4949241A (en) | Microcomputer system including a master processor and a slave processor synchronized by three control lines | |
JP3869049B2 (en) | Method for preventing loss of device configuration during standby in computer system and controller circuit for capturing device configuration | |
RU96107418A (en) | PERFORMING THE DATA PROCESSING INSTRUCTIONS | |
US6092135A (en) | System for reducing boot time by selectively executing a plug and play routine only after computer cases have been disassembled | |
US20180239610A1 (en) | Bios system with simulated cmos | |
US7856622B2 (en) | Computer program runtime bottleneck diagnostic method and system | |
KR100385493B1 (en) | Microcontroller with a reconfigurable program status word | |
JPH03113543A (en) | Cpu device | |
JPS5854418A (en) | Interruption processing system | |
KR20000008628A (en) | Booting music outputting method of computer system | |
US11372653B1 (en) | Runtime access to firmware platform configuration data | |
JP3283505B2 (en) | Microcomputer | |
KR100310307B1 (en) | How to provide shell function for developing operating system of embedded system | |
JPH04280334A (en) | One chip microcomputer | |
CN104978173A9 (en) | Sense digital independent device and its read method | |
KR100280638B1 (en) | Computer system that reduces boot time and control method | |
JP3166167B2 (en) | Microcomputer | |
JP2000020498A (en) | Microcomputer and its restoring method | |
JP2681379B2 (en) | Runaway detection method | |
JPH03208132A (en) | Single chip microcomputer | |
KR980010730A (en) | ID controller emulation device and its control method | |
JPH0679278B2 (en) | Microcomputer development equipment | |
JPS62241041A (en) | Information processor | |
JPH06295346A (en) | Microcomuputer |