JPS63247851A - Control system for read-only memory - Google Patents

Control system for read-only memory

Info

Publication number
JPS63247851A
JPS63247851A JP62082265A JP8226587A JPS63247851A JP S63247851 A JPS63247851 A JP S63247851A JP 62082265 A JP62082265 A JP 62082265A JP 8226587 A JP8226587 A JP 8226587A JP S63247851 A JPS63247851 A JP S63247851A
Authority
JP
Japan
Prior art keywords
signal
read
latch
address
decoder
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
JP62082265A
Other languages
Japanese (ja)
Inventor
Shuji Nakagawa
中川 修司
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
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP62082265A priority Critical patent/JPS63247851A/en
Publication of JPS63247851A publication Critical patent/JPS63247851A/en
Pending legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)

Abstract

PURPOSE:To read out a program having its capacity larger than the address space of a microprocessor MPU by latching and decoding the data signal received from the MPU with the address signal received from the MPU and selecting plural read-only memories ROM. CONSTITUTION:A decoder 12 decodes the address signal received from an MPU1 and outputs the signals LATCH, CHANGE and ROMCS with the prescribed address signal value. The latch circuits 13 and 14 latch the data signals 1 and 2 outputted from the MPU1 by the signal secured an AND between signals LATCH and WR via an AND gate 17. Then the latch circuits 15 and 16 latch the signals 1 and 2 latched by the circuits 13 and 14 via an AND secured by an AND gate 23. A decoder 18 decodes the signals 1 and 2 latched by the circuits 15 and 16.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マイクロプロセッサを使用した制御装置のり
一ドオンリメモリ制御方式に関する。特に、マイクロプ
ロセッサ(以下、MPUと云う。)を使用した制御装置
のリードオンリメモリ (以下、ROMと云う。)のア
ドレス拡張時のROMの制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control device glue-only memory control system using a microprocessor. In particular, the present invention relates to a control method for a read-only memory (hereinafter referred to as ROM) of a control device using a microprocessor (hereinafter referred to as MPU) during address expansion.

〔概 要〕〔overview〕

本発明はMPUを使用した制御装置のROMの制御方式
において、 MPUからのアドレス信号をデコードしたラッチ信号お
よびイネーブル信号に従ってMPUからのデータ信号を
ラッチし、デコードして複数のR0Mを選択することに
より、 MPUのアドレス空間より大きな容量のプログラムを読
み出せるるようにしたものである。
The present invention is a ROM control method for a control device using an MPU, in which a data signal from the MPU is latched and decoded to select a plurality of ROMs according to a latch signal and an enable signal obtained by decoding an address signal from the MPU. , it is possible to read programs with a capacity larger than the address space of the MPU.

〔従来の技術〕[Conventional technology]

第3図は従来例のリードオンリメモリの制御装置のブロ
ック構成図である。
FIG. 3 is a block diagram of a conventional read-only memory control device.

従来、リードオンリメモリ制御方式は、第3図に示すよ
うに、MPU31と、アドレス信号のデコーダ22と、
ROM33とから成り、MPU31のアドレス信号をデ
コードした信号C8でROM33を選択していた。
Conventionally, the read-only memory control method, as shown in FIG. 3, includes an MPU 31, an address signal decoder 22,
The ROM 33 is selected by a signal C8 obtained by decoding the address signal of the MPU 31.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、このような従来例のり一ドオンリメモリ制御方
式では、MPU31のアドレス信号を直接デコードした
信号C8でROM33を選択しているので、MPU31
のアドレス空間より大きな容量のプログラムをROM3
3に書き込んでも、M P U31のアドレス空間から
はみ出た部分のプログラムをMPU31は読み出すこと
ができない欠点があった。
However, in such a conventional glue-only memory control system, the ROM 33 is selected by the signal C8 which is directly decoded from the address signal of the MPU 31.
A program with a capacity larger than the address space of ROM3
Even if the program is written to MPU 3, there is a drawback that the MPU 31 cannot read out the portion of the program that extends beyond the address space of the MPU 31.

本発明は上記の欠点を解決するもので、MPUのアドレ
ス空間より大きな容量のプログラムを読み出すことがで
きるリードオンリメモリ制御方式を提供することを目的
とする。
The present invention solves the above-mentioned drawbacks, and aims to provide a read-only memory control system that can read a program with a capacity larger than the address space of an MPU.

c問題点を解決するための手段〕 本発明は、同一のアドレスに接続されたり一ドオンリメ
モリと、このリードオンリメモリにアドレス信号および
リード信号を与えその内容を読み出すマイクロプロセッ
サとを備えたり一ドオンリメモリ制御方式において、上
記リードオンリメモリは複数個であり、上記マイクロプ
ロセッサから出力されるアドレス信号をデコードしてラ
ッチ信号およびイネーブル信号を出力する第一のデコー
ダと、このラッチ信号に従って上記マイクロプロセッサ
から出力されるデータ信号をラッチする複数個のラッチ
回路と、上記、イネーブル信号に従ってこの複数個のラ
ッチ回路の出力をデコードして上記複数個のリードオン
リメモリの一つを選択する信号を出力する第二のデコー
ダとを備えたことを特徴とする。
Means for Solving Problem c] The present invention provides a one-domain memory control system that includes a one-domain memory connected to the same address and a microprocessor that supplies an address signal and a read signal to the read-only memory and reads out its contents. In this method, there are a plurality of read-only memories, including a first decoder that decodes an address signal output from the microprocessor and outputs a latch signal and an enable signal, and a first decoder that decodes an address signal output from the microprocessor and outputs a latch signal and an enable signal; a plurality of latch circuits that latch data signals, and a second latch circuit that decodes the outputs of the plurality of latch circuits according to the enable signal and outputs a signal for selecting one of the plurality of read-only memories. It is characterized by being equipped with a decoder.

〔作 用〕[For production]

第一のデコーダでMPUから出力されるアドレス信号を
デコードしてラッチ信号およびイネーブル信号を出力す
る。このラッチ信号に従って複数個のラッチ回路でMP
tJから出力されるデータ信号をラッチする。イネーブ
ル信号に従って複数個のラッチ回路の出力を第二のデコ
ニダでデコードし複数個のROMの一つを選択する信号
を出力する。以上の動作によりMPUのアドレス空間よ
り大きな容量のプログラムを読み出すことカーできる。
The first decoder decodes the address signal output from the MPU and outputs a latch signal and an enable signal. MP by multiple latch circuits according to this latch signal.
Latch the data signal output from tJ. The second decoder decodes the outputs of the plurality of latch circuits according to the enable signal and outputs a signal for selecting one of the plurality of ROMs. By the above operations, it is possible to read a program with a capacity larger than the address space of the MPU.

〔実施例〕〔Example〕

本発明の実施例について図面を参照して説明する。第1
図は本発明一実施例リードオンリメモリ制御装置のブロ
ック構成図である。第1図において、リードオンリメモ
リ制御装置は、MPUIと、MPUIからアドレスバス
を入力して信号LATCHlCHANGE、ROMC5
を出力するデコーダ12と、デコーダ12から信号LA
TCHを入力し、MPUIから信号WRを入力してその
論理積を出力するアンドゲート17と、デコーダ12か
ら信号CHANGEを入力し、MPUIから信号WRを
入力してその論理積を出力するアンドゲート23と、M
PUIからデータバス11を介してデータ信号1.2を
入力りにそれぞれ入力し、アンドゲート17の出力を入
力已にそれぞれ入力してラッチするラッチ回路13.1
4とを備える。
Embodiments of the present invention will be described with reference to the drawings. 1st
The figure is a block diagram of a read-only memory control device according to an embodiment of the present invention. In FIG. 1, the read-only memory control device inputs the MPUI and the address bus from the MPUI, and receives the signals LATCH1CHANGE and ROMC5.
A decoder 12 outputs a signal LA from the decoder 12.
AND gate 17 which inputs TCH, inputs signal WR from MPUI and outputs the logical product; AND gate 23 which inputs signal CHANGE from the decoder 12, inputs signal WR from MPUI and outputs the logical product. and M
A latch circuit 13.1 inputs data signals 1.2 from the PUI via the data bus 11 to each input terminal, and inputs and latches the output of the AND gate 17 to each input terminal.
4.

また、リードオンリメモリ制御装置は、ラッチ回路13
.14の出力Qからラッチされたデータ信号1.2を入
力りにそれぞれ入力し、アンドゲート23の出力を入力
Eにそれぞれ入力するラッチ回路15.16と、ラッチ
回路15.16の出力Qの出力をそれぞれ入力し、デコ
ーダ12から信号ROMC5を入力Eに入力して信号C
3I 、C3z 、C33を出力するデコーダ18と、
MPUIIからアドレス信号をアドレスバス12を介し
て入力し、また信号RDを入力し、さらにデコーダ18
から信号C8l、C82、C83をそれぞれ入力してデ
ータバスp1を介してデータ信号をそれぞれMPUIに
出力するROM19+ 〜193 とを備える。
Further, the read-only memory control device has a latch circuit 13.
.. Latch circuits 15 and 16 each input the latched data signal 1.2 from the output Q of 14 and input the output of the AND gate 23 to each input E, and the output of the output Q of the latch circuit 15 and 16. are input, and the signal ROMC5 from the decoder 12 is input to the input E, and the signal C
a decoder 18 that outputs 3I, C3z, and C33;
An address signal is input from the MPU II via the address bus 12, a signal RD is input, and the decoder 18
ROMs 19+ to 193 each receive signals C8l, C82, and C83 from the MPUI and output the data signals to the MPUI via the data bus p1.

このような構成のリードオンリメモリ制御装置の動作に
ついて説明する。デコーダ12は、MPU1からアドレ
ス信号をデコードし、あらかじめ定めたアドレス信号の
値で信号L A T CH2信号CHA N G Eお
よび信号ROMC5を出力する。ラッチ回路13.14
はそれぞれMPUIから出力されるデータ信号1.2を
アンドゲート17により信号L A T CHと信号W
Rとの論理積をとった信号によりラッチする。ラッチ回
路15.16はそれぞれラッチ回路13.14にラッチ
されているデータ信号1.2をアンドゲート23で信号
CHANGEと信号WRとの論理積をとった信号により
ラッチする。デコーダ18はラッチ回路15.16にラ
ッチされているデータ信号1.2をデコードし、信号R
OMC5が出力されたときに信号CS、 、信号C82
または信号CS、を出力する。信号C8,はROM19
゜を選択する信号で、信号cs、 、cs3はそれぞれ
ROM192.193を選択する信号である。ROM1
91〜19.はMPUIの同一アドレスに接続されてい
る。
The operation of the read-only memory control device having such a configuration will be explained. The decoder 12 decodes the address signal from the MPU 1 and outputs the signal LATCH2 signal CHANGE and the signal ROMC5 with a predetermined value of the address signal. Latch circuit 13.14
The data signals 1 and 2 output from the MPUI are connected to the signal L A T CH and the signal W by the AND gate 17, respectively.
The signal obtained by ANDing with R is latched. The latch circuits 15 and 16 each latch the data signals 1 and 2 latched in the latch circuits 13 and 14 using a signal obtained by ANDing the signal CHANGE and the signal WR using an AND gate 23. The decoder 18 decodes the data signal 1.2 latched in the latch circuit 15.16, and outputs the signal R
When OMC5 is output, signal CS, , signal C82
or outputs the signal CS. Signal C8, is ROM19
The signals cs, , and cs3 are signals for selecting ROMs 192 and 193, respectively. ROM1
91-19. are connected to the same address of MPUI.

第2図は、本発明のリードオンリメモリ制御装置のリー
ドオンリメモリの切り換えを行う場合のマイクロプロセ
ッサのプログラムのフローチャートである。ROM19
の切り換えを行うには、まずMPUIの同一アドレスに
接続されている複数のROM19のそれぞれXe番地か
らXe番地まで第2図に示すフローチャートに対応した
プログラムを書き込んで置かなければならない。
FIG. 2 is a flowchart of a microprocessor program when switching read-only memories in the read-only memory control device of the present invention. ROM19
In order to perform the switching, it is first necessary to write a program corresponding to the flowchart shown in FIG. 2 from address Xe to address Xe in each of the plurality of ROMs 19 connected to the same address of the MPUI.

ROM19の切り換えが必要になったらXe番地にジャ
ンプする(■)。Xe番地では切り換え先のROM19
の選択に対応したデータ信号1.2をそれぞれラッチ回
路13.14にラッチする(■)。
When it becomes necessary to switch the ROM 19, jump to address Xe (■). At address Xe, ROM19 is the switching destination.
The data signals 1 and 2 corresponding to the selection are latched in the latch circuits 13 and 14, respectively (■).

次のxb番地では切り換え先のROM19でプログラム
をスタートさせたいスタートアドレスADDRをレジス
タAに書き込んで置<(■)。
At the next address xb, write the start address ADDR at which you want to start the program in the ROM 19 at the switching destination into register A.

次のXe番地では信号CHANGEを出力する(■)。At the next address Xe, the signal CHANGE is output (■).

この信号CHANGEによりデータ信号1.2はそれぞ
れラッチ回路15.16にラッチされ、デコーダ18に
入力される。データ信号1.2は切り換え先のROM1
9の選択に対応したデータになっている。したがって、
次のXd番地から命令を読み出すときには、選択される
ROM19は切り換わっている。
By this signal CHANGE, data signals 1 and 2 are latched by latch circuits 15 and 16, respectively, and input to decoder 18. Data signal 1.2 is the switching destination ROM1
The data corresponds to selection 9. therefore,
When reading an instruction from the next address Xd, the selected ROM 19 has been switched.

Xd番地では、レジスタAからこのROM19でプログ
ラムをスタートさせたいスタートアドレスADDRを読
み出す(■)。次のXe番地でスタートアドレスADD
Rにジャンプを行い(■)、ROM切換えのためのプロ
グラムは終了する。
At address Xd, the start address ADDR at which the program is to be started in this ROM 19 is read from register A (■). Start address ADD at next Xe address
A jump is made to R (■), and the program for ROM switching ends.

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

以上説明したように、本発明は、MPUのアドレス空間
より大きな容量を必要とするプログラムでも複数のRO
Mに書き込んで使用することができる優れた効果がある
As explained above, the present invention allows programs that require a larger capacity than the address space of the MPU to have multiple ROs.
It has an excellent effect that it can be used by writing in M.

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

第1図は本発明一実施例リードオンリメモリ制御装置の
ブロック構成図。 第2図は本発明のリードオンリメモリ制御装置のリード
オンリメモリの切り換えを行う場合のプログラムのフロ
ーチャート。 第3図は従来例のリードオンリメモリ制御装置のブロッ
ク構成図。 1.2・・・データ信号、11・・・MPU、12.1
8.32・・・デコーダ、13〜16.32・・・ラッ
チ回路、17.23・・・アンドゲート、19.〜19
..33・・・ROM、CHANGE、C3+ 、CS
z 、C3z 、RD、ROMC8・・・信号、l、・
・・データバス、12・・・アドレスバス。 特許出願人 日本電気株式会社−へ、 代理人  弁理士 井 出 直 孝   1実施例フロ
ーチャート 第2図 第3図
FIG. 1 is a block diagram of a read-only memory control device according to an embodiment of the present invention. FIG. 2 is a flowchart of a program for switching read-only memories in the read-only memory control device of the present invention. FIG. 3 is a block diagram of a conventional read-only memory control device. 1.2...Data signal, 11...MPU, 12.1
8.32...Decoder, 13-16.32...Latch circuit, 17.23...And gate, 19. ~19
.. .. 33...ROM, CHANGE, C3+, CS
z, C3z, RD, ROMC8...signal, l,...
...Data bus, 12...Address bus. Patent Applicant: NEC Corporation, Agent: Naotaka Ide, Patent Attorney 1 Embodiment Flowchart Figure 2 Figure 3

Claims (1)

【特許請求の範囲】[Claims] (1)同一のアドレスに接続されたリードオンリメモリ
と、 このリードオンリメモリにアドレス信号およびリード信
号を与えその内容を読み出すマイクロプロセッサと を備えたリードオンリメモリ制御方式において、上記リ
ードオンリメモリは複数個であり、 上記マイクロプロセッサから出力されるアドレス信号を
デコードしてラッチ信号およびイネーブル信号を出力す
る第一のデコーダ(12)と、このラッチ信号に従って
上記マイクロプロセッサから出力されるデータ信号をラ
ッチする複数個のラッチ回路(13〜16)と、 上記イネーブル信号に従ってこの複数個のラッチ回路の
出力をデコードして上記複数個のリードオンリメモリの
一つを選択する信号を出力する第二のデコーダ(18)
と を備えたことを特徴とするリードオンリメモリ制御方式
(1) In a read-only memory control system that includes a read-only memory connected to the same address and a microprocessor that provides an address signal and a read signal to the read-only memory and reads its contents, the read-only memory may be connected to a plurality of read-only memories. a first decoder (12) that decodes the address signal output from the microprocessor and outputs a latch signal and an enable signal; and a first decoder (12) that latches the data signal output from the microprocessor in accordance with the latch signal. a plurality of latch circuits (13 to 16); and a second decoder (13 to 16) that decodes the outputs of the plurality of latch circuits according to the enable signal and outputs a signal for selecting one of the plurality of read-only memories. 18)
A read-only memory control method characterized by:
JP62082265A 1987-04-03 1987-04-03 Control system for read-only memory Pending JPS63247851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62082265A JPS63247851A (en) 1987-04-03 1987-04-03 Control system for read-only memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62082265A JPS63247851A (en) 1987-04-03 1987-04-03 Control system for read-only memory

Publications (1)

Publication Number Publication Date
JPS63247851A true JPS63247851A (en) 1988-10-14

Family

ID=13769644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62082265A Pending JPS63247851A (en) 1987-04-03 1987-04-03 Control system for read-only memory

Country Status (1)

Country Link
JP (1) JPS63247851A (en)

Similar Documents

Publication Publication Date Title
JPH0346850B2 (en)
CA1037159A (en) Processing link control system for data processing equipment
US4674063A (en) Information processing apparatus having a sequence control function
JPS63247851A (en) Control system for read-only memory
JPH03271829A (en) Information processor
JPS586970B2 (en) ROM address sequence control method
JPS6240538A (en) Data processor
JPS63195749A (en) Control system for selection signal of read-only memory
KR100262014B1 (en) Input/output port for operating bits
US5784574A (en) Control unit for data transmission
JPH05334074A (en) Microprocessor
JPH0713758A (en) Instruction decoding method
JPS63257044A (en) Programmable memory mapping system
JPH0497455A (en) Memory control circuit
JPH0128965B2 (en)
JPS63133243A (en) Data processor
JPH0498548A (en) Address decoder circuit
JPS6341091B2 (en)
JPH0963289A (en) Control circuit for ic rom
JPS59105148A (en) Microprogram controlling type central processing unit
JPH04205362A (en) Division processing circuit for memory data
JPS6121541A (en) Storage circuit
JPS61195438A (en) Information processor
JPS61123967A (en) Memory circuit
JPS5849897B2 (en) program control device