JPH0390943A - Method and device for controlling memory of microcomputer - Google Patents

Method and device for controlling memory of microcomputer

Info

Publication number
JPH0390943A
JPH0390943A JP22461389A JP22461389A JPH0390943A JP H0390943 A JPH0390943 A JP H0390943A JP 22461389 A JP22461389 A JP 22461389A JP 22461389 A JP22461389 A JP 22461389A JP H0390943 A JPH0390943 A JP H0390943A
Authority
JP
Japan
Prior art keywords
address
memory
microprocessor
read
rom
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
JP22461389A
Other languages
Japanese (ja)
Inventor
Kouji Onodaka
小野高 功二
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.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric Co 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP22461389A priority Critical patent/JPH0390943A/en
Publication of JPH0390943A publication Critical patent/JPH0390943A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain an access to the entire area of a RAM with no waste by eliminating the overlapping between the RAM and ROM areas. CONSTITUTION:When a designated address exceeds the maximum address of a ROM 3, an address obtained by applying a subtraction shift to the address given from a subtractor by an extent equal to the address of the ROM 3 is outputted via a selector. Then a RAM 2 receives an access based on the outputted address. If the designated address is less than the minimum address of the ROM 3, the designated address is outputted as it is via the selector. Then the RAM 2 receives an access based on the designated address. When the ROM area receives an access, a ROM enable signal is outputted and the ROM 3 receives an access based on the designated address received from a microprocessor 1. Thus the entire area of the RAM 2 can receive an access with no waste.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、読出し専用メモリ、ランダム・アクセス・メ
モリ及びこの各メモリをアクセスするマイクロプロセッ
サを設け、ランダム・アクセス・メモリ領域のアドレス
内に読出し専用メモリ領域が介在するマイクロコンピュ
ータのメモリ制御方法及びメモリ制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention provides a read-only memory, a random access memory, and a microprocessor for accessing each of these memories, and provides a read-only memory, a random access memory, and a microprocessor for accessing each of these memories. The present invention relates to a memory control method and a memory control device for a microcomputer that includes a dedicated memory area.

[従来の技術] 近年マイクロコンピュータにおいてはランダム・アクセ
ス・メモリ(以下、RAMと称する。)の容量がかなり
大きくなり、1つのメモリICに指定できるメモリ空間
が幅広くなっている。このため読出し専用メモリ(以下
、ROMと称する。)を配置したい領域にRAMが存在
する不都合が生じる。
[Prior Art] In recent years, the capacity of random access memory (hereinafter referred to as RAM) in microcomputers has become considerably larger, and the memory space that can be specified for one memory IC has become wider. For this reason, there arises the inconvenience that a RAM exists in an area where a read-only memory (hereinafter referred to as ROM) is desired to be placed.

このようなことから従来ではROMとRAMを同時にア
クセスしないようにROM 領域を切り離しメモリ空間
をすべてRA M 領域にしたもの(特開昭58−58
665号公報参照)やRAMとROMをモード信号で切
替えてアクセスするもの(特開昭58−203560号
公報参照)が知られている。
For this reason, in the past, the ROM area was separated so that ROM and RAM were not accessed at the same time, and the entire memory space was made into a RAM area (Japanese Patent Laid-Open No. 58-58
665 (see Japanese Patent Application Laid-open No. 58-203560) and one in which RAM and ROM are accessed by switching between them using a mode signal (see Japanese Patent Laid-Open No. 58-203560).

[発明が解決しようとする課題] しかしこの従来装置のものでは、ROMをイネーブルに
しておくと第4図に斜線で示すRAM領域におけるRO
M領域と重なる部分がアクセスできなくなり、このため
ROM容量と同容量のRAMが無駄になる問題があった
[Problems to be Solved by the Invention] However, in this conventional device, when the ROM is enabled, the RO in the RAM area shown by diagonal lines in FIG.
There is a problem in that the portion that overlaps with the M area cannot be accessed, and therefore RAM having the same capacity as the ROM capacity is wasted.

そこで本発明は、RAM領域内にROM領域が存/1三
するものにおいて、RAM領域とROM nR域の重な
りを無くし、RAM領域のすべてを無駄無くアクセスで
きるマイクロコンピュータのメモリ制御方法及びメモリ
制御装置を提供しようとするものである。
Therefore, the present invention provides a memory control method and a memory control device for a microcomputer that can eliminate the overlap between the RAM area and the ROM nR area and access all of the RAM area without waste in a system where a ROM area exists within the RAM area. This is what we are trying to provide.

[課題を解決するための手段] 本発明は、読出し専用メモリ、ランダム・アクセス・メ
モリ及びこの各メモリをアクセスするマイクロプロセッ
サを設け、ランダム・アクセス・メモリ領域のアドレス
内に読出し専用メモリ領域が介在するマイクロコンピュ
ータにおいて、マイクロプロセッサが読出し専用メモリ
の最大アドレス以上のメモリ領域をアクセスするときに
はマイクロプロセッサによる指定アドレスを読出し専用
メモリの容量分減算シフトしてランダム・アクセス◆メ
モリをアクセスし、マイクロプロセッサが読出し専用メ
モリの最小アドレス未満のメモリ領域をアクセスすると
きにはマイクロプロセッサによる指定アドレスを変換せ
ずにランダム・アクセス・メモリをアクセスし、かつマ
イクロプロセッサが読出し専用メモリの領域内のメモリ
領域をアクセスするときには読出し専用メモリにイネー
ブル信号を出力してマイクロプロセッサによる指定アド
レスを変換せずに読出し専用メモリをアクセスするメモ
リ制御方法である。
[Means for Solving the Problems] The present invention provides a read-only memory, a random access memory, and a microprocessor that accesses each memory, and a read-only memory area is interposed within the address of the random access memory area. When the microprocessor accesses a memory area larger than the maximum address of the read-only memory in a microcomputer, the address specified by the microprocessor is subtracted and shifted by the capacity of the read-only memory, and random access is performed. When accessing a memory area below the minimum address of read-only memory, random access memory is accessed without converting the specified address by the microprocessor, and when the microprocessor accesses a memory area within the read-only memory area, This is a memory control method in which an enable signal is output to a read-only memory and the read-only memory is accessed without converting a specified address by a microprocessor.

また本発明は、マイクロプロセッサによる指定アドレス
から読出し専用メモリの容量分のアドレスを減算する減
算器と、マイクロプロセッサによる指定アドレスが読出
し専用メモリの最大アドレス以上か否かを比較判定する
第1の比較器と、マイクロプロセッサによる指定アドレ
スが読出し専用メモリの最小アドレス未満か否かを比較
判定する第2の比較器と、第1の比較器が最大アドレス
以上を比較判定したとき減算器からのアドレスを出力し
、また第1の比較器が最大アドレス未満を比較判定した
ときマイクロプロセッサによる指定アドレスをそのまま
出力するセレクタと、第1の比較器が最大アドレス未満
を比較判定し、かつ第2の比較器が最小アドレス以上を
比較判定したとき読出し専用メモリのイネーブル信号を
出力する信号出力手段を設け、信号出力手段からイネー
ブル信号が出力されないときセレクタから出力されるア
ドレスに基づいてランダム・アクセス・メモリをアクセ
スし、信号出力手段からイネーブル信号が出力されると
きマイクロプロセッサによる指定アドレスに基づいて読
出し専用メモリをアクセスするメモリ制御装置である。
The present invention also provides a subtracter that subtracts an address corresponding to the capacity of the read-only memory from an address specified by the microprocessor, and a first comparison device that compares and determines whether the address specified by the microprocessor is equal to or greater than the maximum address of the read-only memory. a second comparator that compares and determines whether the address specified by the microprocessor is less than the minimum address of the read-only memory; a selector that outputs the address designated by the microprocessor as is when the first comparator compares and determines that it is less than the maximum address; and a second comparator that compares and determines that the first comparator is less than the maximum address. A signal output means is provided for outputting an enable signal for the read-only memory when the signal output means compares and determines that the address is greater than or equal to the minimum address, and when the enable signal is not output from the signal output means, the random access memory is accessed based on the address output from the selector. The memory control device accesses the read-only memory based on an address designated by the microprocessor when an enable signal is output from the signal output means.

[作用] このような構成の本発明においては、減算器によってマ
イクロプロセッサによる指定アドレスから読出し専用メ
モリの容量分のアドレスが減算される。
[Operation] In the present invention having such a configuration, the address corresponding to the capacity of the read-only memory is subtracted from the address designated by the microprocessor by the subtracter.

一方、指定アドレスが読出し専用メモリの最大アドレス
以上か否かが第1の比較器によって比較判定されると共
に、指定アドレスが読出し専用メモリの最小アドレス未
満か否かが第2の比較器によって比較判定される。
On the other hand, a first comparator compares and determines whether the specified address is greater than or equal to the maximum address of the read-only memory, and a second comparator compares and determines whether the specified address is less than the minimum address of the read-only memory. be done.

そして指定アドレスが読出し専用メモリの最大アドレス
以上であればセレクタを介して減算器からのアドレス、
すなわち指定アドレスを読出し専用メモリのアドレス分
減算シフトしたアドレスが出力されそのアドレスに基づ
いてランダム・アクセス・メモリがアクセスされる。ま
た指定アドレスが読出し専用メモリの最小アドレス未満
であればセレクタを介してその指定アドレスがそのまま
出力され、その指定アドレスに基づいてランダム・アク
セス・メモリがアクセスされる。こうしてランダム・ア
クセス・メモリはすべての領域にわたって連続したアド
レスでアクセスされることになる。
If the specified address is greater than or equal to the maximum address of the read-only memory, the address from the subtracter is sent via the selector,
That is, an address obtained by subtracting and shifting the designated address by the address of the read-only memory is output, and the random access memory is accessed based on that address. If the designated address is less than the minimum address of the read-only memory, the designated address is output as is through the selector, and the random access memory is accessed based on the designated address. In this way, random access memory is accessed at consecutive addresses across all areas.

またROM領域をアクセスするときには指定アドレスが
読出し専用メモリの最大アドレス未満で最小アドレス以
上の範囲になっているのでこのときは読出し専用メモリ
のイネーブル信号が出力され読出し専用メモリはマイク
ロプロセッサからの指定アドレスによってアクセスされ
ることになる。
Also, when accessing the ROM area, the specified address is within the range of less than the maximum address of the read-only memory and greater than the minimum address, so in this case, the read-only memory enable signal is output, and the read-only memory is accessed from the specified address from the microprocessor. will be accessed by.

[実施例コ 以下、本発明の実施例を図面を参照して説明する。[Example code] Embodiments of the present invention will be described below with reference to the drawings.

第1図はマイクロコンピュータの構成を示すブロック図
で、1は制御部本体を構成するマイクロプロセッサ、2
はRAM (ランダム◆アクセス・メモリ)、3はRO
M (読出し専用メモリ)、4はI10コントローラ、
5は要部を構成するメモリ制御回路である。
FIG. 1 is a block diagram showing the configuration of a microcomputer, in which 1 is a microprocessor that constitutes the main body of the control section, 2
is RAM (random access memory), 3 is RO
M (read-only memory), 4 is I10 controller,
Reference numeral 5 denotes a memory control circuit constituting a main part.

前記マイクロプロセッサ1とROM3、I10コントロ
ーラ4とはアドレス・パスライン6、データ・パスライ
ン7及びコントロール・パスライン8によって接続され
ている。
The microprocessor 1, ROM 3, and I10 controller 4 are connected by an address path line 6, a data path line 7, and a control path line 8.

また前記マイクロプロセッサ1とRAM2とは前記デー
タ・パスライン7及びコントロール・パスライン8によ
って接続されている。
Further, the microprocessor 1 and the RAM 2 are connected by the data path line 7 and the control path line 8.

また前記マイクロプロセッサ1とメモリ制御回路5とは
前記アドレス・パスライン6及びデータ・パスライン7
によって接続されている。
Further, the microprocessor 1 and the memory control circuit 5 are connected to the address path line 6 and the data path line 7.
connected by.

そして前記メモリ制御回路5は前記RAM2に対してR
AMアドレス・パスライン9を介して接続されている。
Then, the memory control circuit 5 performs R for the RAM 2.
It is connected via an AM address path line 9.

また前記メモリ制御回路5からROMイネーブル信号E
Nを前記ROM3に供給するようになっている。
Further, a ROM enable signal E is sent from the memory control circuit 5.
N is supplied to the ROM 3.

前記メモリ制御回路5は第2図に示すように構成されて
いる。すなわち前記データ・パスライン7に対してRO
M領域先頭アドレスレジスタ21及びROM領域終了ア
ドレスレジスタ22が接続されている。前記各レジスタ
21.22にはまた書込み制御信号IOWが入力される
ようになっている。そして前記ROM領域先頭アドレス
レジスタ21には書込み制御信号10Wの人力によって
データ・パスライン7を介して前記マイクロプロセッサ
1によりROM領域の最大アドレスデータである先頭ア
ドレスデータADDHが格納され、また前記ROM領域
終了アドレスレジスタ22には書込み制御信号10Wの
人力によってデータ・パスライン7を介して前記マイク
ロプロセッサ1によりROM領域の最小アドレスデータ
である終了アドレスデータADDLが格納されるように
なっている。
The memory control circuit 5 is constructed as shown in FIG. That is, RO for the data path line 7
An M area start address register 21 and a ROM area end address register 22 are connected. A write control signal IOW is also input to each of the registers 21 and 22. Then, in the ROM area start address register 21, the start address data ADDH, which is the maximum address data of the ROM area, is stored by the microprocessor 1 via the data path line 7 by the manual input of the write control signal 10W. End address data ADDL, which is the minimum address data of the ROM area, is stored in the end address register 22 by the microprocessor 1 via the data path line 7 by the manual input of the write control signal 10W.

前82 ROM領域先頭アドレスレジスタ21に格納さ
れた先頭アドレスデータADDHを第1の減算器23及
び第1の比較器24にそれぞれ供給するようになってい
る。また前記ROM領域終了アドレスレジスタ22に格
納された終了アドレスデータADDLを前記第1の減算
器23及び第2の比較器25にそれぞれ供給するように
なっている。
The first address data ADDH stored in the first 82 ROM area first address register 21 is supplied to a first subtracter 23 and a first comparator 24, respectively. Further, the end address data ADDL stored in the ROM area end address register 22 is supplied to the first subtracter 23 and the second comparator 25, respectively.

前記第1の減算器23は先頭アドレスデータADDHか
ら終了アドレスデータADDLを減算してROM3の容
量に対応したアドレス量を求め、そのアドレス量を第2
の減算器26に供給している。
The first subtracter 23 subtracts the end address data ADDL from the start address data ADDH to obtain an address amount corresponding to the capacity of the ROM 3, and then subtracts the end address data ADDL from the start address data ADDH to obtain an address amount corresponding to the capacity of the ROM 3.
is supplied to the subtracter 26.

前記アドレス・パスライン6を介して転送されるマイク
ロプロセッサ1からの指定アドレスLAを前記第2の減
算器26、第1、第2の比較器24.25及びセレクタ
27にそれぞれ入力している。
The designated address LA from the microprocessor 1 transferred via the address path line 6 is input to the second subtracter 26, the first and second comparators 24 and 25, and the selector 27, respectively.

前記第2の減算器26はマイクロプロセッサ1からの指
定アドレスLAから前記第1の減算器23からのアドレ
ス量を減算して指定アドレスをROM3の容量分減算シ
フトし、そのシフトしたアドレスを前記セレクタ27に
供給している。
The second subtracter 26 subtracts the address amount from the first subtracter 23 from the specified address LA from the microprocessor 1, subtracts and shifts the specified address by the capacity of the ROM 3, and transfers the shifted address to the selector. 27.

前記第1の比較器24はマイクロプロセッサ1からの指
定アドレスLAが先頭アドレスADDH以上か否かを比
較判定し、ADDH≦LAのときハイレベル信号、AD
DH>LAのときローレベル信号を前記セレクタ27に
供給すると共に反転回路28を介して2人力アンドゲー
ト回路29に供給している。
The first comparator 24 compares and determines whether the specified address LA from the microprocessor 1 is greater than or equal to the start address ADDH, and when ADDH≦LA, it outputs a high level signal, AD
When DH>LA, a low level signal is supplied to the selector 27 and also supplied to the two-manual AND gate circuit 29 via the inversion circuit 28.

前記セレクタ27は第1の比較器24からハイレベル信
号が入力されると前記第2の減算器26からのアドレス
データがRAMアドレス・パスライン9を介して前記R
AM2に供給されるように選択動作を行い また第1の
比較器24からローレベル信号が人力されると前記アド
レス・パスライン6からの指定アドレスデータがそのま
まRAMアドレス・パスライン9を介して前記RAM2
に供給されるように選択動作を行うようになっている。
When the selector 27 receives a high level signal from the first comparator 24, the address data from the second subtracter 26 is sent to the R address via the RAM address pass line 9.
When a low level signal is input from the first comparator 24, the specified address data from the address pass line 6 is directly passed through the RAM address pass line 9 to the RAM address pass line 9. RAM2
The selection operation is performed so that the signal is supplied to the terminal.

前記第2の比較器25はマイクロプロセッサ1からの指
定アドレスLAが終了アドレスADDL未満か否かを比
較判定し、ADDL5LAのときハイレベル信号、AD
DL>LAのときローレベル信号を前記アンドゲート回
路29に供給している。
The second comparator 25 compares and determines whether or not the designated address LA from the microprocessor 1 is less than the end address ADDL, and when ADDL5LA, a high level signal, AD
When DL>LA, a low level signal is supplied to the AND gate circuit 29.

前記アンドゲート回路29は2人力が共にハイレベルの
とき前記ROM3にROMイネーブル信号ENを供給す
るようになっている。
The AND gate circuit 29 supplies a ROM enable signal EN to the ROM 3 when both of the two input signals are at a high level.

このような構成の本実施例においては、例えば第3図の
(a)に示すようにRA M M域のアドレスが0〜F
FFFFFで、そのRAM領域内にROM領域のアドレ
スADDL−ADDHが存7Eするとすると、マイクロ
プロセッサ1からの指定アドレスLAがLA≧ADDH
のときには第1の比較器24の出力によってセレクタ2
7は第2の減算器26からのアドレスデータを選択する
。このアドレスデータは指定アドレスLAがrLA−(
ADDH−ADDL)Jにアドレス変換されている。
In this embodiment with such a configuration, for example, as shown in FIG. 3(a), the addresses in the RAM area are 0 to F.
In FFFFF, if the address ADDL-ADDH of the ROM area exists in the RAM area, then the specified address LA from the microprocessor 1 is LA≧ADDH.
When , the selector 2 is selected by the output of the first comparator 24.
7 selects the address data from the second subtractor 26. This address data indicates that the specified address LA is rLA-(
The address is converted to ADDH-ADDL)J.

しかしてアドレスrLA−(ADDH−ADDL)Jに
よってRAM2がアクセスされるようになる。
Thus, RAM2 is accessed by address rLA-(ADDH-ADDL)J.

またマイクロプロセッサ1からの指定アドレスLAがL
A<ADDHのときには第1の比較器24の出力によっ
てセレクタ27はアドレス・パスライン6からの指定ア
ドレスデータを選択する。
Also, the specified address LA from microprocessor 1 is L.
When A<ADDH, the selector 27 selects designated address data from the address pass line 6 based on the output of the first comparator 24.

この場合はLA<ADDLであれば指定アドレスLAに
よって直接RAM2がアクセスされるようになる。
In this case, if LA<ADDL, the RAM 2 will be directly accessed by the designated address LA.

従ってRAM2は第3図の(b)に示すように0〜rF
FFFFF−(ADDH−ADDL)Jまで連続したア
ドレスでアクセスされるようになる。
Therefore, RAM2 is 0 to rF as shown in FIG. 3(b).
Accesses are made with consecutive addresses up to FFFFF-(ADDH-ADDL)J.

また指定アドレスLAがADDH>LA≧ADDLのと
きにはアンドゲート回路29への人力が共にハイレベル
となるためそのアンドゲート回路29からROMイネー
ブル信号ENが出力されてROM3に供給されるように
なる。従ってこの場合にはマイクロプロセッサ1からの
指定アドレスLAがアドレス・パスライン6を介してR
OM3に直接供給されROM 3がアクセスされること
になる。
Further, when the specified address LA is ADDH>LA≧ADDL, both the input signals to the AND gate circuit 29 are at high level, so the ROM enable signal EN is outputted from the AND gate circuit 29 and supplied to the ROM 3. Therefore, in this case, the specified address LA from the microprocessor 1 is sent to R via the address path line 6.
It will be directly supplied to OM3 and ROM3 will be accessed.

このようにRAM領域とROM領域とは重ならないよう
にアドレス指定が行われてアクセスされるので、RAM
領域においてアクセスされない無駄な領域は存在しない
ことになる。
In this way, the RAM area and ROM area are addressed and accessed so that they do not overlap, so the RAM area
There is no useless area that is not accessed in the area.

また、ROM領域のアドレスを任意に変更しても各レジ
スタ21.22に格納する先頭アドレスと終了アドレス
をそれに応じて変更すれば簡単に対処することができる
。またROMの容量を増加させることがあってもそれに
応じて先頭アドレス、終了アドレスを設定すればよく簡
単に対処することができる。
Further, even if the address of the ROM area is arbitrarily changed, this can be easily handled by changing the start address and end address stored in each register 21, 22 accordingly. Furthermore, even if the capacity of the ROM is to be increased, this can be easily handled by setting the start address and end address accordingly.

なお、前記実施例においてROM領域先頭アドレスレジ
スタ21、ROM領域終了アドレスレジスタ22及び第
1の減算器23を省略し、第1、第2の比較器24.2
5及び第2の減算器26に予め設定された固定データA
DDH,ADDL。
In the above embodiment, the ROM area start address register 21, the ROM area end address register 22, and the first subtracter 23 are omitted, and the first and second comparators 24.2 are omitted.
5 and the fixed data A preset in the second subtractor 26
DDH, ADDL.

(ADDH−ADDL)を直接人力させるようにしても
よい。
(ADDH-ADDL) may be manually operated directly.

[発明の効果] 以上詳述したように本発明によれば、RA M領域内に
ROM領域が存在するものにおいて、RAM領域とRO
M領域の重なりを無くし、RA M領域のすべてを無駄
無くアクセスできるマイクロコンピュータのメモリ制御
方法及びメモリ制御装置を提供できるものである。
[Effects of the Invention] As detailed above, according to the present invention, in a device in which a ROM area exists within a RAM area, the RAM area and RO
It is possible to provide a memory control method and a memory control device for a microcomputer that eliminates overlapping of M areas and allows access to all RAM areas without waste.

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

第1図乃至第3図は本発明の実施例を示すもので、第1
図はマイクロコンピュータの構成を示すブロック図、第
2図はメモリ制御回路の具体的構成を示すブロック図、
第3図はRA M nA域及びROM領域とアドレスの
関係を示すメモリマツプ、第4図は従来におけるRAM
領域とROM eM域の関係を示すメモリマツプである
。 1・・・マイクロプロセッサ、 2・・・RAM (ランダム・アクセス・メモリ)、3
・・・ROM (読出し専用メモリ)、5・・・メモリ
制御回路、 24・・・第1の比較器、 25・・・第2の比較器、 26・・・第2の減算器、 27・・・セレクタ、 28・・・反転回路、 29・・・アンドゲート回路。 出廓人代理人
1 to 3 show embodiments of the present invention.
The figure is a block diagram showing the configuration of the microcomputer, FIG. 2 is a block diagram showing the specific configuration of the memory control circuit,
Figure 3 is a memory map showing the relationship between the RAM nA area, ROM area and addresses, and Figure 4 is a conventional RAM map.
This is a memory map showing the relationship between areas and ROM eM areas. 1... Microprocessor, 2... RAM (Random Access Memory), 3
... ROM (read-only memory), 5... memory control circuit, 24... first comparator, 25... second comparator, 26... second subtractor, 27. ...Selector, 28...Inversion circuit, 29...AND gate circuit. Outsourcing agent

Claims (2)

【特許請求の範囲】[Claims] (1)読出し専用メモリ、ランダム・アクセス・メモリ
及びこの各メモリをアクセスするマイクロプロセッサを
設け、前記ランダム・アクセス・メモリ領域のアドレス
内に読出し専用メモリ領域が介在するマイクロコンピュ
ータにおいて、前記マイクロプロセッサが前記読出し専
用メモリの最大アドレス以上のメモリ領域をアクセスす
るときには前記マイクロプロセッサによる指定アドレス
を前記読出し専用メモリの容量分減算シフトして前記ラ
ンダム・アクセス・メモリをアクセスし、前記マイクロ
プロセッサが前記読出し専用メモリの最小アドレス未満
のメモリ領域をアクセスするときには前記マイクロプロ
セッサによる指定アドレスを変換せずに前記ランダム・
アクセス・メモリをアクセスし、かつ前記マイクロプロ
セッサが前記読出し専用メモリの領域内のメモリ領域を
アクセスするときには前記読出し専用メモリにイネーブ
ル信号を出力して前記マイクロプロセッサによる指定ア
ドレスを変換せずに前記読出し専用メモリをアクセスす
ることを特徴とするマイクロコンピュータのメモリ制御
方法。
(1) In a microcomputer that is provided with a read-only memory, a random access memory, and a microprocessor that accesses each of these memories, and in which the read-only memory area is interposed within the address of the random access memory area, the microprocessor When accessing a memory area larger than the maximum address of the read-only memory, the address designated by the microprocessor is subtracted and shifted by the capacity of the read-only memory to access the random access memory, and the microprocessor accesses the random access memory. When accessing a memory area less than the minimum address of the memory, the random address is used without converting the specified address by the microprocessor.
When the access memory is accessed and the microprocessor accesses a memory area within the area of the read-only memory, an enable signal is output to the read-only memory so that the microprocessor reads the specified address without converting it. A memory control method for a microcomputer characterized by accessing a dedicated memory.
(2)読出し専用メモリ、ランダム・アクセス・メモリ
及びこの各メモリをアクセスするマイクロプロセッサを
設け、前記ランダム・アクセス・メモリ領域のアドレス
内に読出し専用メモリ領域が介在するマイクロコンピュ
ータにおいて、前記マイクロプロセッサによる指定アド
レスから前記読出し専用メモリの容量分のアドレスを減
算する減算器と、前記マイクロプロセッサによる指定ア
ドレスが前記読出し専用メモリの最大アドレス以上か否
かを比較判定する第1の比較器と、前記マイクロプロセ
ッサによる指定アドレスが前記読出し専用メモリの最小
アドレス未満か否かを比較判定する第2の比較器と、前
記第1の比較器が最大アドレス以上を比較判定したとき
前記減算器からのアドレスを出力し、また前記第1の比
較器が最大アドレス未満を比較判定したとき前記マイク
ロプロセッサによる指定アドレスをそのまま出力するセ
レクタと、前記第1の比較器が最大アドレス未満を比較
判定し、かつ前記第2の比較器が最小アドレス以上を比
較判定したとき前記読出し専用メモリのイネーブル信号
を出力する信号出力手段を設け、前記信号出力手段から
イネーブル信号が出力されないとき前記セレクタから出
力されるアドレスに基づいて前記ランダム・アクセス・
メモリをアクセスし、前記信号出力手段からイネーブル
信号が出力されるとき前記マイクロプロセッサによる指
定アドレスに基づいて前記読出し専用メモリをアクセス
することを特徴とするマイクロコンピュータのメモリ制
御装置。
(2) In a microcomputer that is provided with a read-only memory, a random access memory, and a microprocessor that accesses each of these memories, and in which the read-only memory area is interposed within the address of the random access memory area, the microprocessor a subtracter that subtracts an address corresponding to the capacity of the read-only memory from a designated address; a first comparator that compares and determines whether the address designated by the microprocessor is equal to or greater than the maximum address of the read-only memory; a second comparator that compares and determines whether the address designated by the processor is less than the minimum address of the read-only memory; and when the first comparator compares and determines whether or not the address specified by the processor is equal to or greater than the maximum address, outputs the address from the subtracter. and a selector that outputs the address designated by the microprocessor as is when the first comparator compares and determines that the address is less than the maximum address; signal output means for outputting an enable signal for the read-only memory when the comparator compares and determines the minimum address or more; Random access
A memory control device for a microcomputer, wherein the read-only memory is accessed based on an address designated by the microprocessor when an enable signal is output from the signal output means.
JP22461389A 1989-09-01 1989-09-01 Method and device for controlling memory of microcomputer Pending JPH0390943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22461389A JPH0390943A (en) 1989-09-01 1989-09-01 Method and device for controlling memory of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22461389A JPH0390943A (en) 1989-09-01 1989-09-01 Method and device for controlling memory of microcomputer

Publications (1)

Publication Number Publication Date
JPH0390943A true JPH0390943A (en) 1991-04-16

Family

ID=16816464

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22461389A Pending JPH0390943A (en) 1989-09-01 1989-09-01 Method and device for controlling memory of microcomputer

Country Status (1)

Country Link
JP (1) JPH0390943A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5515782A (en) * 1992-11-30 1996-05-14 Komori Corporation Cylinder cleaning apparatus for printing press

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5515782A (en) * 1992-11-30 1996-05-14 Komori Corporation Cylinder cleaning apparatus for printing press

Similar Documents

Publication Publication Date Title
US5765025A (en) Digital signal processor with on board program having arithmetic instructions and direct memory access instructions for controlling direct memory access thereof
JPH0390943A (en) Method and device for controlling memory of microcomputer
US20050135402A1 (en) Data transfer apparatus
JPH064469A (en) Input/output device control system
JPH03201036A (en) Microcomputer
KR100275210B1 (en) The method for controlling special key of system console
JPS63228498A (en) Semiconductor storage device
KR20000014889A (en) Direct memory access control apparatus
JPH0240760A (en) Information processor
JPS60220441A (en) Memory control system
JPS61289444A (en) Data processing system
JPH0713920A (en) Dma transferring method
JP2003186864A (en) Microcomputer input/output terminal control device and electronic equipment provided with this microcomputer input/output terminal control device
JPS60101662A (en) Dma transfer system
JPH056215B2 (en)
JPS63146143A (en) Transfer control system for storage device
JPH11308258A (en) Power source control system for terinal
JPH07129458A (en) Memory controller
JPH01321542A (en) Data converting circuit
JP2003345651A (en) Information processor
JPH04349392A (en) Lighting control device
JPH02219105A (en) Programmable controller
JPH0721054A (en) Test method for semiconductor integrated circuit
JPH04304547A (en) Data transferring system
JPH0548033U (en) Arithmetic device control device