JPH01188937A - Device mode switching system - Google Patents

Device mode switching system

Info

Publication number
JPH01188937A
JPH01188937A JP1254488A JP1254488A JPH01188937A JP H01188937 A JPH01188937 A JP H01188937A JP 1254488 A JP1254488 A JP 1254488A JP 1254488 A JP1254488 A JP 1254488A JP H01188937 A JPH01188937 A JP H01188937A
Authority
JP
Japan
Prior art keywords
rom
terminal
signal
address
cpu
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
JP1254488A
Other languages
Japanese (ja)
Inventor
Atsuki Muramatsu
村松 篤樹
Hideaki Kato
秀章 加藤
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.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP1254488A priority Critical patent/JPH01188937A/en
Publication of JPH01188937A publication Critical patent/JPH01188937A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To reduce a ROM space while using a conventional software by providing a ROM storing a program common to systems and another ROM storing a program of each system and switching both ROMs in the same address space. CONSTITUTION:A 1st system is selected when a system switch signal is equal to 0 and a 1st buffer 13 is enable. A CPU 1 is reset in the same way as the application of a power supply and outputs an address FFFFO(H) to an address bus 5. Thus a ROM address decoding circuit 6 transmits a decoding signal and a selection signal is sent to a 1st system ROM 3 through a terminal 13c. Then a system ROM 3 is made access. In such a way, the ROM 3 outputs data to the CPU 1 and therefore the CPU 1 serves as the 1st system. When the system switch signal is equal to 1, a 2nd system ROM 4 is made access. Thus the CPU 1 serves as the 2nd system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は2つ以上の装置モードを共用している装置に
関し、特にシステム共通のプログラムを格納しているR
OMの切替え方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a device that shares two or more device modes, and particularly relates to an R device that stores a system-common program.
This relates to an OM switching method.

〔従来の技術〕[Conventional technology]

従来、この種の装置モード切替え方式はシステム共通の
プログラムもシステムごとのROMに格納されていた。
Conventionally, in this type of device mode switching system, a program common to all systems was also stored in a ROM for each system.

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

上述した従来の装置モード切替え方式はシステム共通の
プログラムをシステムごとのROMに入れていたため、
ROM内のプログラムの位置が前のシステムROMと変
わり、従来のソフトウェアにおけるROM内のプログラ
ムを参照しているソフトウェアが動作せず、またメモリ
空間内でのRQMの空間が大きくなるという欠点があっ
た。
In the conventional device mode switching method described above, a common program for each system was stored in the ROM of each system.
The location of the program in the ROM is different from the previous system ROM, which has the disadvantage that software that references the program in the ROM does not work in conventional software, and the RQM space in the memory space becomes large. .

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

この発明の装置モード切替え方式は、システム共通のプ
ログラムを格納している共通ROMとシステムごとのプ
ログラムを格納しているシステムROMを共通のアドレ
ス空間でデコードするアドレスデコード手段と、前記共
通ROMと前記システムROMを切替える切替え手段と
を備え、同じアドレス空間で切替えるようにしたもので
ちる。
The device mode switching method of the present invention includes an address decoding means for decoding a common ROM storing a program common to the system and a system ROM storing a program for each system in a common address space; The system ROM is equipped with a switching means for switching the system ROM, and is configured to switch in the same address space.

〔作用〕[Effect]

との発明の装置モード切替方式は同じアドレス空間で切
替えることができるので、従来のソフトウェアがそのま
ま使用でき、しかもメモリ空間内でのROM空間を小さ
くすることができる。
Since the device mode switching method of the invention can be performed in the same address space, conventional software can be used as is, and the ROM space within the memory space can be reduced.

〔実施例〕〔Example〕

第1図はこの発明に係る装置モード切替方式の一実施例
を示すブロック図である。同図において、1は第1シス
テムまたは第2システムとして動作し端子1aからライ
ト信号が出力するCPU、  2は初期設定などのシス
テム共通プログラムが格納されている共通システムRO
M13は第1システムのプログラムが格納されている第
1システムRoM、4ti第2システムのプログラムが
格納されている第2システムROM、5はアドレスバス
、6は端子6aにこのアドレスバス5からのアドレスが
入力し、アドレス空間FOOOO(H)〜FFFFF(
H)までをデコードし出力端子6bからデコード信号を
出力するROMアドレスデコーダ、7はデータバス、8
は電源投入時にハードウェアリセット信号が送られる送
号線、9は端子9aにデータバスγよシデータが入力し
、端子9bにアドレスバス5よシアドレスが入力し、端
子9Cにライト信号が入力し、端子9dにハードウェア
リセット信号が入力し、端子9eからCPU1に対する
リセット信号が出力し、端子9fからソフトウェアリセ
ット信号が出力するリセット制御回路、10は「0」の
とき第1システムが選択され、「1」のとき第2システ
ムが選択されるようにシステム切替信号が送られる信号
線、11は端子11aにソフトウェアリセット信号が入
力し、端子11b にハードウェアリセット信号が入力
し、端子11cにシステム切替え信号が入力し、第1シ
ステムおよび第2システムの切替えによシそれぞれ端子
11d、11e および11fから各システムROMに
対するバッファのイネーブル信号を出力する切替え回路
、12は端子12aにデコード信号が入力し、端子12
bにイネーブル時にイネーブル信号が入力し、端子12
eからセレクト信号が共通システムROM2に出力する
共通バッファ、13は端子13a にデコード信号が入
力し、端子13bにイネーブル時にイネーブル信号が入
力し、端子13cからセレクト信号が第1システムRO
M3に出力する第1バツフア、14は端子14aにデコ
ード信号が入力し、端子14bにイネーブル時にイネー
ブル信号が入力し、端子14cからセレクト信号が第2
システムROM4に出力する第2バツフアである。
FIG. 1 is a block diagram showing an embodiment of a device mode switching system according to the present invention. In the figure, 1 is a CPU that operates as a first system or a second system and outputs a write signal from a terminal 1a, and 2 is a common system RO in which system common programs such as initial settings are stored.
M13 is a first system RoM in which the program of the first system is stored, 4ti is a second system ROM in which the program of the second system is stored, 5 is an address bus, and 6 is an address from this address bus 5 to the terminal 6a. is input, and the address space FOOOO(H) ~ FFFFF(
ROM address decoder which decodes up to H) and outputs the decoded signal from the output terminal 6b, 7 is a data bus, 8
9 is a signal line to which a hardware reset signal is sent when the power is turned on, data from the data bus γ is input to the terminal 9a, a sea address from the address bus 5 is input to the terminal 9b, and a write signal is input to the terminal 9C. A reset control circuit in which a hardware reset signal is input to the terminal 9d, a reset signal for the CPU 1 is outputted from the terminal 9e, and a software reset signal is outputted from the terminal 9f.When 10 is "0", the first system is selected; 1", a signal line through which a system switching signal is sent so that the second system is selected; 11 is a signal line through which a software reset signal is input to the terminal 11a, a hardware reset signal is input to the terminal 11b, and a system switching signal is input to the terminal 11c. A switching circuit 12 receives a signal and outputs a buffer enable signal for each system ROM from terminals 11d, 11e, and 11f for switching between the first system and the second system; 12 has a decode signal input to a terminal 12a; terminal 12
An enable signal is input to b when enabled, and terminal 12
A common buffer 13 outputs a select signal to the common system ROM 2 from e, a decode signal is input to a terminal 13a, an enable signal is input to a terminal 13b when enabled, and a select signal is output from a terminal 13c to the first system ROM 2.
The first buffer 14 outputs to M3, a decode signal is input to the terminal 14a, an enable signal is input to the terminal 14b when enabled, and a select signal is input to the second buffer from the terminal 14c.
This is a second buffer output to the system ROM4.

なお、共通ROM2.第lROM3および第2ROM4
のアドレス空間は共通でF’0OOO(H)〜FFFF
F (H)とする。ただし、(H)は16進数を示す。
Note that the common ROM2. 1st ROM3 and 2nd ROM4
The address space is F'0OOOO(H) to FFFF in common.
Let it be F (H). However, (H) indicates a hexadecimal number.

次に、上記構成による装置モード切替方式の動作につい
て第2図に示すフローチャートを参照して説明する。ま
ず、ステップ81において、信号!!8を介して電源投
入時にノー−ドウエアリセット信号がリセット制御回路
9の端子9dおよび切替え回路11の端子11bにそれ
ぞれ入力する。そして、ステップS2において、切替え
回路11はその端子11bにハードウェアリセット信号
カ入力すると動作し、その端子11dからイネーブル信
号が共通バッファ12の端子12b に出力する。
Next, the operation of the device mode switching method with the above configuration will be explained with reference to the flowchart shown in FIG. First, in step 81, the signal! ! 8, a nodeware reset signal is input to the terminal 9d of the reset control circuit 9 and the terminal 11b of the switching circuit 11, respectively, when the power is turned on. Then, in step S2, the switching circuit 11 operates when a hardware reset signal is input to its terminal 11b, and an enable signal is output from its terminal 11d to the terminal 12b of the common buffer 12.

このため、共通バッファ12はとのイネーブル信号の入
力によりイネーブルになる。一方、リセット制御回路9
は前記ノ−−ウエアリセット信号の入力により動作しそ
の端子9eからリセット信号をCPU1 に出力する。
Therefore, the common buffer 12 is enabled by inputting the enable signal. On the other hand, the reset control circuit 9
operates upon input of the above-mentioned no-ware reset signal, and outputs the reset signal to the CPU 1 from its terminal 9e.

したがって、CPU 1  はこのリセット信号の入力
によシリセットされ、アドレスバス5上にアドレスFF
FF0 (H)をROMアドレスデコード回路6に出力
する。したがって、CPUI  aこのリセット信号の
入力によ)リセットされ、アドレスバス5上にアドレス
FFFF0(H)をROMアドレスデコード回路6に出
力する。したがって、このROMアドレスデコード回路
6はこのアドレスFFFF0(H)をデコードしてその
端子6bからデコード信号を出力する。このとき、共通
バッファ12がイネーブルとなっているので、端子12
aに入力するデコード信号はそのまま端子12c から
セレクト信号として共通システムROM2に出力される
。このため、ステップS3において、この共通システム
ROM2がアクセスされデータがデータバス7を介して
CPU1 に出力される。これによシ、ステップS4に
おいてCPU1で共通システムROM2 に格納されて
いるシステム共通プログラムが動作する。そして、ステ
ップ85において、システム共通プログラムの動作終了
時に第1システムROM3 および第2システムROM
4の格納外のプログラムによ、りCPU1があるI10
アドレスでソフトウェアリセットコマンドをリセット制
御回路9の端子9cに出力する。このリセット制御回路
9はこのソフトウェアリセットコマンドの入力により動
作し、その端子9eからリセット信号がCPUIに出力
すると共にその端子9fよシッフトウエアリセット信号
を切替え回路11に出力する。このため、切替え回路1
1はその端子11aにソフトウェアリセット信号が入力
すると動作し、端子11dよシ出力する共通バッファ1
2のイネーブル信号をディスイネーブルにすると共に信
号線10を介して端子11cに入力するシステム切替信
号が「0」ならば端子11eより出力する第1バツフア
13のイネーブル信号をイネーブルにし、このシステム
切替信号が「1」ならば端子11fよジ出力する第2バ
ツフア14のイネーブル信号をイネーブルにする。
Therefore, the CPU 1 is reset by inputting this reset signal, and the address FF is placed on the address bus 5.
Outputs FF0 (H) to the ROM address decode circuit 6. Therefore, the CPU Ia is reset (by inputting this reset signal) and outputs the address FFFF0 (H) on the address bus 5 to the ROM address decode circuit 6. Therefore, this ROM address decode circuit 6 decodes this address FFFF0 (H) and outputs a decoded signal from its terminal 6b. At this time, since the common buffer 12 is enabled, the terminal 12
The decoded signal inputted to the terminal a is directly output from the terminal 12c to the common system ROM 2 as a select signal. Therefore, in step S3, this common system ROM 2 is accessed and data is output to the CPU 1 via the data bus 7. Accordingly, in step S4, the system common program stored in the common system ROM 2 is operated by the CPU 1. Then, in step 85, when the operation of the system common program is finished, the first system ROM3 and the second system ROM
I10 with CPU1 due to a program outside of storage in 4.
A software reset command is output to the terminal 9c of the reset control circuit 9 at the address. The reset control circuit 9 operates upon input of this software reset command, and outputs a reset signal to the CPUI from its terminal 9e, and also outputs a shiftware reset signal to the switching circuit 11 from its terminal 9f. For this reason, switching circuit 1
1 is a common buffer 1 that operates when a software reset signal is input to its terminal 11a and outputs it from the terminal 11d.
If the system switching signal inputted to the terminal 11c via the signal line 10 is "0", the enable signal of the first buffer 13 outputted from the terminal 11e is enabled, and this system switching signal is disabled. If is "1", the enable signal of the second buffer 14 outputted from the terminal 11f is enabled.

ここで、システム切替信号が「O」とし第1バツフア1
3がイネーブルになっているとすると、ステップS6に
おいて、第1システムが選択される。
Here, when the system switching signal is "O", the first buffer 1
3 is enabled, the first system is selected in step S6.

そして、CPU1 は電源投入時と同様にリセットされ
るとアドレスFFFF0(H)をアドレスバス5上に出
力する。このため、ROMアドレスデコード回路6はこ
のアドレスF’FFFO(H)をデコードして端子6b
よりデコード信号を出力する。ここで、システム1が選
択されているため、第1バツフア13はイネーブルとな
っており、端子13Cよシセレクト信号が第1システム
ROM3 に出力される。このため、ステップS7にお
いて、第1システムRQM3はこのセレクト信号の入力
によりアクセスされる。このようにして第1システムR
QM3 がCPU1  に対してデータを出力するため
、CPU1  は第1システムとして動作することがで
きる。また、以下同様にして、システム切替信号が「1
」であれば第2システムRQM4がアクセスされて、C
PU1  は第2システムとして動作することができる
Then, when the CPU 1 is reset in the same way as when the power is turned on, it outputs the address FFFF0 (H) onto the address bus 5. Therefore, the ROM address decoding circuit 6 decodes this address F'FFFO(H) and outputs it to the terminal 6b.
outputs a decoded signal. Here, since the system 1 is selected, the first buffer 13 is enabled, and the select signal is output from the terminal 13C to the first system ROM 3. Therefore, in step S7, the first system RQM3 is accessed by inputting this select signal. In this way, the first system R
Since QM3 outputs data to CPU1, CPU1 can operate as the first system. In addition, in the same manner, the system switching signal is set to "1".
”, the second system RQM4 is accessed and C
PU1 can operate as a second system.

なお、上述の説明では装置モードを2個す々わち第1シ
ステムおよび第2システムを持つ場合について説明した
が、これに限、定せず装置モードを3個以上有する場合
についても同様にできることはもちろんである。
In addition, although the above explanation has been given for the case where there are two device modes, that is, the first system and the second system, the present invention is not limited to this, and the same can be done in the case where there are three or more device modes. Of course.

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

以上詳細に説明したように、この発明に係る装置モード
切替え方式によれは、システム共通のプログラムを格納
しているR(liとシステムごとのプログラムを格納し
たROMを設けて同じアドレス空間で切替えることによ
シ、従来のソフトウェアがそのまま動作し、メモリ空間
内でのROMの空間を小さくすることができる効果があ
る。
As explained in detail above, the device mode switching method according to the present invention is capable of switching in the same address space by providing an R (li) that stores a program common to the system and a ROM that stores a program for each system. Additionally, conventional software can operate as is, and the ROM space within the memory space can be reduced.

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

第1図はこの発明に係る装置モード切替方式の一実施例
を示すブロック図、第2図は第1図の動作を説明するた
めのフローチャートである。 1・・◆・CPU、2・・・串共通システムROM、3
・・響・第1システムROM、4・・・・第2システム
ROM、5・・・・アドレスバス、6・3@・ROMア
ドレスデコーダ、7・・・・データバス、8・・・・信
号線、9・・・・リセット制御回路、10・・・・信号
線、11・・・・切替え回路、12・・・争共通バッフ
ァ、13e・・・第1バツフア、14・・・・第2バツ
フア。 特許出頭人 日本電気株式会社 日本[エンジニアリング床式会社
FIG. 1 is a block diagram showing an embodiment of the device mode switching method according to the present invention, and FIG. 2 is a flowchart for explaining the operation of FIG. 1. 1...◆CPU, 2...Kushi common system ROM, 3
...Hibiki 1st system ROM, 4...2nd system ROM, 5...address bus, 6.3@-ROM address decoder, 7...data bus, 8...signal line, 9...reset control circuit, 10...signal line, 11...switching circuit, 12...common buffer, 13e...first buffer, 14...second Batsuhua. Patent applicant NEC Corporation Japan [Engineering floor type company

Claims (1)

【特許請求の範囲】[Claims]  2つ以上の装置モードを有する装置において、システ
ム共通のプログラムを格納している共通ROMとシステ
ムごとのプログラムを格納しているシステムROMを共
通のアドレス空間でデコードするアドレスデコード手段
と、前記共通ROMと前記システムROMを切替える切
替え手段とを備えたことを特徴とする装置モード切替方
式。
In a device having two or more device modes, an address decoding means for decoding a common ROM storing a program common to the system and a system ROM storing a program for each system in a common address space; and a switching means for switching the system ROM.
JP1254488A 1988-01-25 1988-01-25 Device mode switching system Pending JPH01188937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1254488A JPH01188937A (en) 1988-01-25 1988-01-25 Device mode switching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1254488A JPH01188937A (en) 1988-01-25 1988-01-25 Device mode switching system

Publications (1)

Publication Number Publication Date
JPH01188937A true JPH01188937A (en) 1989-07-28

Family

ID=11808278

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1254488A Pending JPH01188937A (en) 1988-01-25 1988-01-25 Device mode switching system

Country Status (1)

Country Link
JP (1) JPH01188937A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685499A (en) * 2013-12-06 2014-03-26 深圳酷派技术有限公司 Terminal, server, application program management system and application program management method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685499A (en) * 2013-12-06 2014-03-26 深圳酷派技术有限公司 Terminal, server, application program management system and application program management method

Similar Documents

Publication Publication Date Title
JPH01188937A (en) Device mode switching system
US4831572A (en) Polynomial vector arithmetic operation control system
JPS6330658B2 (en)
JP2503634B2 (en) Micro program controller
JP2522063B2 (en) Single-chip micro computer
JPH01266642A (en) Memory controller
JP2581298B2 (en) Memory access right information supply mechanism
JPH09160786A (en) Microprocessor
JPS5839322A (en) Data processor
JPH01227293A (en) Memory circuit
JPS59100906A (en) Sequence controller
JPS63265332A (en) Program jump system
JPH0432949A (en) I/o port address extension system
JPS6039223A (en) Microcomputer device
JPH0660205A (en) Data driving type information processor
JPH0969070A (en) Control circuit of information processor
JPS6254340A (en) Information processor
JPS6059442A (en) Controller
JPH05108478A (en) Memory access method
JPH0652010A (en) Testing circuit
JPH0844558A (en) Instruction extension system for central processing unit
JPS63165929A (en) Information processing system
JPH0664561B2 (en) Simultaneous writing circuit
JPS63234496A (en) Semiconductor memory
JP2000227881A (en) Process controller