JPH02183331A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH02183331A
JPH02183331A JP240789A JP240789A JPH02183331A JP H02183331 A JPH02183331 A JP H02183331A JP 240789 A JP240789 A JP 240789A JP 240789 A JP240789 A JP 240789A JP H02183331 A JPH02183331 A JP H02183331A
Authority
JP
Japan
Prior art keywords
data
ram
rom
address
bus
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.)
Granted
Application number
JP240789A
Other languages
Japanese (ja)
Other versions
JPH0827714B2 (en
Inventor
Kenji Tanaka
健志 田中
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1002407A priority Critical patent/JPH0827714B2/en
Publication of JPH02183331A publication Critical patent/JPH02183331A/en
Publication of JPH0827714B2 publication Critical patent/JPH0827714B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To improve flexibility and versatility by providing a mechanism which can transfer in-RAM data to a ROM data bus and a in-ROM data to a RAM data bus. CONSTITUTION:A first control circuit 30 transfers address information to a second control circuit 40 and decides whether the address information are transferred from a ROM address bus 1 or a RAM address bus 3. The second control circuit 40 transfers the address information to a ROM 5 and a RAM 6 and transfers read data to either a ROM data bus 2 or a RAM data bus 4. Thus, since the data in the RAM and ROM can be handled without any discrimination, program data can be stored in RAM as well as data for reference can be stored in the ROM as well. Then, the flexibility or function can be increased as a computer.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、プログラム実行時の作業領域、−および変数
領域等のデータ領域に記憶されているRAMデータを、
プログラムとして実行可能であり、かつROM内に記憶
されているデータは、プログラムだけではなく、変数等
のデータとしても扱うことが可能なマイクロコンピュー
タに関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention provides a method for storing RAM data stored in data areas such as a work area, a variable area, etc. during program execution.
Data that is executable as a program and stored in the ROM relates to a microcomputer that can be handled not only as a program but also as data such as variables.

従来の技術 従来より、マイクロコンピュータは、ROM内のプログ
ラムデータにより制御が行われていた。
2. Description of the Related Art Conventionally, microcomputers have been controlled by program data stored in a ROM.

以下に、従来のワンチップマイクロコンピュータのメモ
リ回路の動作について説明する。
The operation of the memory circuit of a conventional one-chip microcomputer will be explained below.

第4図は、従来のワンチップマイクロコンピュータのメ
モリ配置である。第4図において、1はROMアドレス
バス、2はROMデータバス、3はRAMアドレスバス
、4はRAMデータバス、5はROM、6はRAM、7
は命令デコーダ、8はROMアドレスバス1の情報をR
OM5に転送する制御線、9はROM5のデータをRO
Mデータバス2に転送する制御線、10はRAMアドレ
スバス3の情報をRAM6に転送する制御線、11はR
AM6のデータをRAMデータバス4に転送する制御線
である。
FIG. 4 shows the memory arrangement of a conventional one-chip microcomputer. In FIG. 4, 1 is a ROM address bus, 2 is a ROM data bus, 3 is a RAM address bus, 4 is a RAM data bus, 5 is a ROM, 6 is a RAM, and 7 is a RAM address bus.
8 is an instruction decoder, and 8 is a ROM address bus 1 information R.
Control line 9 transfers data from ROM5 to OM5.
10 is a control line that transfers information on RAM address bus 3 to RAM 6; 11 is R
This is a control line that transfers data from AM6 to RAM data bus 4.

第5図は、従来の技術によるROM5.RAM6への読
み出し、書き込みのタイミング図である。
FIG. 5 shows a ROM5. 5 is a timing diagram of reading and writing to the RAM 6. FIG.

第5図において、a、b、c、dは、読み出し書き込み
の基準となる各同期信号である。まずROM5内のプロ
グラムの読み出しが行われ、実行されるまでの過程を示
す。ROM5内のデータを読み出すためのアドレス情報
か、ROMアドレスバス1および制御線8を介して、同
期信号Cに同期して、信号eのように出力される。上記
信号eの動作時に、ROMデータバス2に上記アドレス
情報に対応するROM5のデータか、信号fのように同
期信号すに同期して、制御線9および、ROMデータバ
ス2、制御線12を介して命令デコーダ7に転送され、
解読後、実行される。
In FIG. 5, a, b, c, and d are synchronization signals that serve as standards for reading and writing. First, the process from reading out the program in the ROM 5 to being executed will be described. Address information for reading data in the ROM 5 is output as a signal e in synchronization with the synchronizing signal C via the ROM address bus 1 and the control line 8. When the signal e is activated, the data in the ROM 5 corresponding to the address information is sent to the ROM data bus 2, or the control line 9, the ROM data bus 2, and the control line 12 are sent to the ROM data bus 2 in synchronization with the synchronization signal like the signal f. is transferred to the instruction decoder 7 via
After decoding, it is executed.

次に、RAM6のデータが読み出されるまでの過程を示
す。RAM6を読み出すためのアドレス情報か、RAM
アドレスバス3、制御線10を介して、同期信号aに同
期して、信号gのように出力される。上記信号gの動作
時にRAMデータバス4に、上記アドレス情報に対応す
るRAM6のデータか、信号りのように同期信号dに同
期して、制御線11、およびRAMデータバス4を介し
て転送される。
Next, the process until the data in the RAM 6 is read will be described. Address information for reading RAM6, RAM
The signal g is output via the address bus 3 and the control line 10 in synchronization with the synchronization signal a. When the signal g is activated, the data in the RAM 6 corresponding to the address information is transferred to the RAM data bus 4 via the control line 11 and the RAM data bus 4 in synchronization with the synchronization signal d. Ru.

さらに、RAM6に、データが書き込まれるまでの過程
を示す。RAM6にデータを書き込むためのアドレス情
報か、RAMアドレスバス3、制御線10を介して同期
信号aに同期して、信号iのように出力される。上記信
号iの動作時に、RAMデータバス4に、書き込むデー
タを、信号jのように、同期信号すに同期して、転送す
れば、制御1i111を介して、RAM6に送られ、書
き込みが行われる。
Furthermore, the process until data is written into the RAM 6 is shown. Address information for writing data into the RAM 6 is output as a signal i via the RAM address bus 3 and control line 10 in synchronization with the synchronization signal a. When the above signal i is activated, if the data to be written is transferred to the RAM data bus 4 in synchronization with the synchronization signal S as in the signal j, it will be sent to the RAM 6 via the control 1i 111 and writing will be performed. .

発明が解決しようとする課題 しかしなから上記従来の構成では、ROMデータとRA
Mデータが明確に分離され、ROM領域内のデータは、
プログラムとして利用され、RAMデータバスには上記
ROMデータを直接転送はできず、かつ、RAM記憶領
域のデータも上記ROMデータと同様に、ROMデータ
として、ROMデータバスに転送することができないた
め、RAM記憶領域には、プログラムを記憶させること
ができないという問題点を有していた。
Problem to be Solved by the Invention However, in the above conventional configuration, ROM data and RA
M data is clearly separated, and data in the ROM area is
Since the ROM data is used as a program and cannot be directly transferred to the RAM data bus, and the data in the RAM storage area cannot be transferred to the ROM data bus as ROM data like the ROM data, The RAM storage area has a problem in that programs cannot be stored therein.

本発明は、上記従来の問題点を解決するもので、RAM
領域内のデータアクセス時にも、ROMデータバスにR
AMデータの転送が可能であり、ROM領域内のデータ
アクセス時にもRAMデータバスにROMデータの転送
が可能とし、データの用途に柔軟性と汎用性を持たせた
マイクロコンピュータの提供を目的とする。
The present invention solves the above-mentioned conventional problems.
Even when accessing data in the area, R is sent to the ROM data bus.
The purpose of the present invention is to provide a microcomputer that is capable of transferring AM data, and also allows ROM data to be transferred to the RAM data bus when accessing data in the ROM area, and has flexibility and versatility in data usage. .

課題を解決するための手段 この目的を達するために、本発明のマイクロコンピュー
タは、ROMおよびRAM内データについて、一つのア
ドレスに対し、一つのデータの割り当てを行い、同一の
アドレスがROM、RAM空間を通じて存在しないよう
にし、かつ、上記アドレス情報によりROMまたはRA
Mアドレス空間のどちらであるかという、第1の判定を
行い、かつ、ROMアドレスバスまたは、RAMアドレ
スバスのどちらから、上記アドレス情報が送られてきた
かという第2の判定が行える第1の制御回路を設け、上
記第1の制御回路は、第2の制御回路へ、上記第1およ
び上記第2の判定結果を転送し、第2の制御回路は、上
記第1、および上記第2の判定結果に基づいて上記アド
レス情報に対応するデータを上記ROMアドレスバスか
ら、アドレス情報が送られてきた場合には、ROMデー
タバスに、ROMデータとして意味づけられる同期信号
に同期して転送が可能であり、また、上記RAMアドレ
スバスからアドレス情報が送られてきたときは、RAM
データとして、RAMデータバスにRAMデータとして
意味づけられる同期信号に同期して転送が可能であると
いう構成を有している。
Means for Solving the Problems In order to achieve this object, the microcomputer of the present invention allocates one data to one address for data in the ROM and RAM, and the same address is assigned to the ROM and RAM spaces. ROM or RA with the above address information.
A first control that can perform a first determination as to whether the address information is from the M address space and a second determination as to whether the address information is sent from the ROM address bus or the RAM address bus. a circuit is provided, the first control circuit transfers the first and second determination results to a second control circuit, and the second control circuit transfers the first and second determination results to a second control circuit; Based on the result, if address information is sent from the ROM address bus, data corresponding to the address information can be transferred to the ROM data bus in synchronization with a synchronization signal that is interpreted as ROM data. Yes, and when address information is sent from the RAM address bus above, the RAM
It has a configuration in which data can be transferred to the RAM data bus in synchronization with a synchronization signal that is meaningful as RAM data.

作用 この構成により、RAMおよびROM内のデータを区別
な(扱うことが可能であるので、RAM内データをRO
M内のプログラムと同じように解読実行が行えると共に
、ROM内データも、従来技術のRAMデータと同様に
読み出し参照することができる。
Effect: With this configuration, data in RAM and ROM can be treated separately, so data in RAM can be
It can be decoded and executed in the same way as the program in M, and the data in the ROM can also be read and referenced in the same way as RAM data in the prior art.

実施例 以下に本発明の実施例について、図面を参照しなから説
明する。
EXAMPLES Examples of the present invention will be described below with reference to the drawings.

第1図、第2図は、本発明実施例のマイクロコンピュー
タのメモリ回路を示すものであり、第3図は、上記コン
ピュータのメモリのアドレス空間を示す概念図である。
1 and 2 show a memory circuit of a microcomputer according to an embodiment of the present invention, and FIG. 3 is a conceptual diagram showing an address space of the memory of the computer.

第1図、第2図において、1はROMアドレスバス、2
はROMデータバス、3はRAMアドレスバス、4はR
AMデータバス、5はROM、6はRAMである。7は
命令デコーダ、30はアドレス情報を第2の制御回路4
0に転送すると共に、ROMアドレスバス1、または、
RAMアドレスバス3のどちらから転送されてきたかを
判定する第1の制御回路、40はアドレス情報をROM
5、RAM6に転送すると共に、読み出されたデータを
ROMデータバス2.RAMデータバス4のどちらかに
転送する制御回路、51はROMアドレス情報を制御回
路30に転送する制御線、52はRAMアドレス情報を
制御回路30に転送する制御線、53はアドレス情報を
制御回路40に転送する制御線、54は制御回路30が
判定した結果を、制御回路40に転送する制御線、55
は制御回路40からのアドレス情報をRAM6に転送す
る制御線、56はRAMデータをRAMと制御回路40
との間で転送させる制御線、57はROM5にアドレス
情報を転送する制御線、58はROM5のデータを制御
回路40に転送する制御線、59はRAMデータバス4
と制御回路40を接続する制御線、60はROMデータ
バス2と制御回路40を接続させる制御線である。
In Figures 1 and 2, 1 is a ROM address bus, 2
is the ROM data bus, 3 is the RAM address bus, and 4 is the R
AM data bus, 5 is ROM, and 6 is RAM. 7 is an instruction decoder, 30 is an instruction decoder, and 30 is a second control circuit 4 for transmitting address information.
0 and ROM address bus 1, or
A first control circuit 40 determines from which side of the RAM address bus 3 the address information is transferred.
5. Transfer the read data to the RAM 6 and the ROM data bus 2. 51 is a control line that transfers ROM address information to the control circuit 30; 52 is a control line that transfers RAM address information to the control circuit 30; 53 is a control circuit that transfers address information A control line 54 transfers the result determined by the control circuit 30 to the control circuit 40;
56 is a control line that transfers address information from the control circuit 40 to the RAM 6, and 56 is a control line that transfers RAM data to the RAM and the control circuit 40.
57 is a control line that transfers address information to ROM 5; 58 is a control line that transfers data in ROM 5 to control circuit 40; 59 is RAM data bus 4;
A control line 60 connects the ROM data bus 2 and the control circuit 40, and a control line 60 connects the ROM data bus 2 and the control circuit 40.

401はアドレス情報または、読み出したデータの転送
するタイミングを変更する制御回路、402はアドレス
情報を、−時記憶すると共に、制御回路401の制御信
号により、ROM5、またはRA M 6 ニ転送する
回路、403はROM5またはRAM6の読み出したデ
ータ、および、RAM6に書き込むデータを一時記憶す
ると共に、i!J御回路401の制御信号により、RO
Mデータバス2、RAMデータバス4に、上記データを
転送する回路である。
401 is a control circuit that changes the timing of transferring address information or read data; 402 is a circuit that stores address information and transfers it to ROM 5 or RAM 6 according to a control signal from control circuit 401; 403 temporarily stores data read from ROM 5 or RAM 6 and data written to RAM 6, and i! By the control signal of the J control circuit 401, the RO
This circuit transfers the above data to the M data bus 2 and the RAM data bus 4.

第3図において、501はROMのアドレス空間、50
2は従来技術のROMデータが記憶できるRAM空間、
503は従来技術のRAMとして扱える空間である。
In FIG. 3, 501 is the ROM address space, 50
2 is a RAM space where conventional ROM data can be stored;
503 is a space that can be treated as a conventional RAM.

つぎに、本実施例のマイクロコンピュータについて、そ
の動作を説明する。
Next, the operation of the microcomputer of this embodiment will be explained.

まず、ROM5内のデータを読み出すまでの過程を示す
First, the process up to reading data in the ROM 5 will be described.

アドレス情報がROMアドレスバス1を介して転送され
てきた場合は、上記アドレス情報が制御線51を介して
、制御回路30へ、従来技術の第5図でのeのように、
同期信号Cに同期して転送される。制御回路30は、ア
ドレス情報を制御線53を介して制御回路402に転送
すると共に、上記アドレス情報か、第3図の通り、50
1に示す空間であることを判定し、上記判定結果を制御
線54を介し、制御回路401へ転送する。制御回路4
01は、制御回路402のアドレス情報を制御線57を
介して、そのままROM5に通過転送する。上記アドレ
ス情報に対応するROMデータは、第5図、同期信号す
に同期して、制御線58を介して、制御回路403に転
送される。制御回路401は制御回路403のROMデ
ータを制御線60を介して、ROMデータバス2に通過
転送させ、第5図の信号fのように転送される。
When address information is transferred via the ROM address bus 1, the address information is transferred via the control line 51 to the control circuit 30, as shown in e in FIG. 5 of the prior art.
It is transferred in synchronization with the synchronization signal C. As shown in FIG.
1, and transfers the above determination result to the control circuit 401 via the control line 54. Control circuit 4
01 transfers the address information of the control circuit 402 directly to the ROM 5 via the control line 57. The ROM data corresponding to the address information is transferred to the control circuit 403 via the control line 58 in synchronization with the synchronization signal shown in FIG. The control circuit 401 causes the ROM data of the control circuit 403 to be passed through and transferred to the ROM data bus 2 via the control line 60, and is transferred as signal f in FIG. 5.

上記ROMデータは、制御線61を介して、命令デコー
ダ7に転送された後、解読され実行される。
The ROM data is transferred to the instruction decoder 7 via the control line 61, then decoded and executed.

また、上記アドレス情報か、RAMアドレスバス3を介
して、転送されてきた場合は、上記アドレス情報が制御
線52を介して、制御回路30へ、第5図の信号gのよ
うに同期信号aに同期して転送される。制御回路30は
、上記アドレス情報を制御#153を介して、制御回路
402に転送すると共に、上記アドレス情報か、第3図
501に示す空間であることを判定し、上記判定結果を
制御線54を介して、制御回路401へ転送する。制御
回路402は、転送された上記アドレス情報を一時記憶
すると共に、制御回路401は、第5図における同期信
号Cに同期して、制御回路402のデータを制御線57
を介して、ROM5に転送する。上記アドレス情報に対
応するROMデータは、第5図の同期信号すに同期して
制御線58を介して、制御回路403に転送される。制
御回路403は、上記ROMデータを一時記憶すると共
に、制御回路401は、第5図の同期信号dに同期して
、制御回路403の上記ROMデータを制御線59を介
して、RAMデータバス4に転送する。
Further, when the address information is transferred via the RAM address bus 3, the address information is sent via the control line 52 to the control circuit 30 by a synchronization signal a like the signal g in FIG. will be transferred in sync with The control circuit 30 transfers the address information to the control circuit 402 via the control #153, determines whether the address information is the space shown in FIG. The data is transferred to the control circuit 401 via. The control circuit 402 temporarily stores the transferred address information, and the control circuit 401 transfers the data of the control circuit 402 to the control line 57 in synchronization with the synchronization signal C in FIG.
The data is transferred to the ROM 5 via the ROM 5. The ROM data corresponding to the address information is transferred to the control circuit 403 via the control line 58 in synchronization with the synchronization signal shown in FIG. The control circuit 403 temporarily stores the ROM data, and the control circuit 401 transfers the ROM data of the control circuit 403 to the RAM data bus 4 via the control line 59 in synchronization with the synchronization signal d in FIG. Transfer to.

次に、RAM6内のデータを読み出すまでの過程を示す
Next, the process up to reading data in the RAM 6 will be described.

アドレス情報か、RAMアドレス3を介して転送されて
きた場合は、上記アドレス情報が制御線52を介して制
御回路30へ、第5図、同期信号aに同期して、gのよ
うに転送される。制御回路30は、上記アドレス情報を
制御線53を介して、制御回路402に転送すると共に
、上記アドレス情報か、第3図502.503に示すR
AM空間であることを判定し、上記判定結果を制御線5
4を介して制御回路401に転送する。制御回路401
は、制御回路402の上記アドレス情報を制御線55を
介して、RAM6に通過転送する。上記アドレス情報に
対応するRAMデータは、第5図の同期信号dに同期し
て、制御線56を介して、制御回路403に転送される
。制御回路401は、制御回路403の上記RAMデー
タを制御線60を介して、RAMデータバス4に通過転
送させ、第5図の信号りのように転送される。
If the address information is transferred via the RAM address 3, the address information is transferred to the control circuit 30 via the control line 52 as shown in g in synchronization with the synchronization signal a in FIG. Ru. The control circuit 30 transfers the address information to the control circuit 402 via the control line 53, and also transfers the address information to the R shown in FIG. 3 at 502 and 503.
It is determined that it is an AM space, and the above determination result is applied to the control line 5.
4 to the control circuit 401. Control circuit 401
transfers the address information of the control circuit 402 to the RAM 6 via the control line 55. The RAM data corresponding to the address information is transferred to the control circuit 403 via the control line 56 in synchronization with the synchronization signal d in FIG. The control circuit 401 causes the RAM data of the control circuit 403 to be passed through and transferred to the RAM data bus 4 via the control line 60, and is transferred as shown in the signals in FIG.

また、上記アドレス情報か、ROMアドレスバス1を介
して転送されてきた場合は、上記アドレス情報か、制御
線51を介して制御回路30へ、第5図、同期信号Cに
同期して信号eのように転送される。制御回路30は、
上記アドレス情報を、制御線53を介して、制御回路4
02に転送すると共に、上記アドレス情報か、第3図5
02に示すROMデータとして記憶可能であるRAM領
域ということを判定し、制御回路402に転送する。制
御回路402は、上記アドレス情報を一時記憶すると共
に、制御回路401は、第5図における同期信号aに同
期させて、RAM6に、制御回路402のデータを制御
線55を介して転送する。上記アドレス情報に対するR
AMデータは、第5図の同期信号dに同期して、RAM
6より制御線56を介して制御回路403に転送される
。制御回路403は、上記RAMデータを一時記憶する
と共に、制御回路401は、第5図の同期信号すに同期
して、制御回路403のデータを制御線60を介して、
ROMデータバス2に、第5図のfのように転送される
。そして、制御線61、および命令デコーダ7を介して
解読実行される。
In addition, if the address information is transferred via the ROM address bus 1, the address information is sent via the control line 51 to the control circuit 30 by a signal e in synchronization with the synchronization signal C in FIG. It is transferred as follows. The control circuit 30 is
The address information is sent to the control circuit 4 via the control line 53.
02 and the above address information or Figure 3-5.
It is determined that the RAM area can be stored as ROM data shown in 02, and the data is transferred to the control circuit 402. The control circuit 402 temporarily stores the address information, and the control circuit 401 transfers the data of the control circuit 402 to the RAM 6 via the control line 55 in synchronization with the synchronization signal a in FIG. R for the above address information
The AM data is transferred to the RAM in synchronization with the synchronization signal d in FIG.
6 to the control circuit 403 via the control line 56. The control circuit 403 temporarily stores the RAM data, and the control circuit 401 transmits the data of the control circuit 403 via the control line 60 in synchronization with the synchronization signal shown in FIG.
The data is transferred to the ROM data bus 2 as indicated by f in FIG. Then, it is decoded and executed via the control line 61 and the instruction decoder 7.

RAM6にデータが書き込まれるまでの過程を示す。The process until data is written to RAM6 is shown.

アドレス情報か、RAMアドレスバス3、および、制御
線52を介して制御回路30に第5図の同期信号aに同
期して転送される。制御回路30は、上記アドレス情報
を、制御線53を介して制御回路402に転送すると共
に、上記アドレス情報か、第3図502.503に示す
RAM空間であることを判定し、上記判定結果を制御線
54を介して制御回路401に転送する。制御回路40
1は、上記アドレス情報である制御回路402のデータ
を制御線55を介して、RAM6へ通過転送させる。R
AM6に書き込まれるデータは、RAMデータバス4お
よび、制御線59を介して、第5図の同期信号すに同期
して、制御回路403へ、第5図jのように転送される
。制御回路401は、制御回路403のデータを制御線
56を介して、RAM6に転送され、書き込みが行われ
る。
The address information is transferred to the control circuit 30 via the RAM address bus 3 and the control line 52 in synchronization with the synchronization signal a shown in FIG. The control circuit 30 transfers the address information to the control circuit 402 via the control line 53, determines whether the address information is the RAM space shown in 502 and 503 in FIG. It is transferred to the control circuit 401 via the control line 54. Control circuit 40
1 causes the data of the control circuit 402, which is the address information, to be passed through and transferred to the RAM 6 via the control line 55. R
The data written in AM6 is transferred to the control circuit 403 via the RAM data bus 4 and the control line 59 in synchronization with the synchronization signal shown in FIG. 5, as shown in FIG. 5j. The control circuit 401 transfers the data of the control circuit 403 to the RAM 6 via the control line 56, and writes the data.

以上のように本実施例によれば、RAM内のデータを従
来技術のROMデータにも、あるいは、ROM内データ
も従来技術のRAMデータとして読み出せるようにした
ことにより、RAM内にも、プログラムデータ、ROM
内にも参照用データの記憶が行え、コンピュータとして
の柔軟性や、機能を増大させることができる。
As described above, according to this embodiment, by making it possible to read data in RAM as ROM data in the prior art, or read out data in ROM as RAM data in the prior art, programs can also be read out in RAM. data, ROM
Reference data can also be stored within the computer, increasing the flexibility and functionality of the computer.

なお、本実施例では、第5図における同期信号は、4相
としたか、3相、2相でもかまわず、また、ROMアド
レスバス、RAMアドレスバスにアドレス情報が転送さ
れるタイミング、あるいは、アドレス情報に対応するデ
ータが転送されるタイミングは、従来例に示す様式でな
くてもかまわず、ROM内データがRAMデータとして
意味づけられる同期信号に同期して、RAMデータバス
へ、または、RAM内データか、ROMデータバスへR
OMデータとして意味づけられる同期して転送されるの
であるならば、どのような、タイミングに転送されても
なんらさしつかえない。
In this embodiment, the synchronization signal in FIG. 5 may be 4-phase, 3-phase, or 2-phase, and the timing at which address information is transferred to the ROM address bus or RAM address bus, or The timing at which the data corresponding to the address information is transferred does not have to be in the format shown in the conventional example, and the data in the ROM is transferred to the RAM data bus or to the RAM in synchronization with a synchronization signal that is interpreted as RAM data. Internal data or R to ROM data bus
As long as the data is transferred synchronously, which is meaningful as OM data, it does not matter what timing the data is transferred.

発明の効果 以上のように、本発明によれば、RAM内データをRO
Mデータバスへ、ROM内データをRAMデータバスへ
転送できる機構を設けたことにより、RAM内データを
従来技術のROMデータ、すなわちプログラムとして実
行が行え、かつ、上記プログラムの編集、修正、追加等
が簡単に行え、また、ROM内にも、参照用データを記
憶することができる優れたマイクロコンピュータが実現
可能である。
Effects of the Invention As described above, according to the present invention, data in RAM can be RO
By providing a mechanism that can transfer data in ROM to the M data bus to the RAM data bus, data in RAM can be executed as conventional ROM data, that is, a program, and the program can be edited, modified, added, etc. It is possible to realize an excellent microcomputer that can easily perform this process and also store reference data in a ROM.

ピユータのメモリ構成図、第3図はアドレス空間配置図
、第4図は従来技術のメモリ構成図、第5図はRAMお
よびROM内データの読み込み、書き出しのタイミング
チャートである。
3 is an address space layout diagram, FIG. 4 is a memory configuration diagram of a conventional technology, and FIG. 5 is a timing chart for reading and writing data in RAM and ROM.

1・・・・・・ROMアドレスバス、2・・・・・・R
OMデータバス、3・・・・・・RAMアドレスバス、
4・・・・・・RAMデータバス、5・・・・・・RO
M、6・・・・・・RAM、?・・・・・・命令デコー
ダ、30.40・・・・・・制御回路、8゜9、 10
,11. 12,51.52.53,54゜55.56
,57.58,59,60.61・・・・・・制御線、
402.403・・・・・・−時記憶できる制御回路、
401・・・・・・402,403を制御する制御回路
、501・・・・・・ROMアドレス空間、502・・
・・・・従来技術のROMデータを記憶できるRAMア
ドレス空間、503・・・・・・従来技術と同じ用途の
RAMアドレス空間。
1...ROM address bus, 2...R
OM data bus, 3...RAM address bus,
4...RAM data bus, 5...RO
M, 6...RAM,? ...Instruction decoder, 30.40 ...Control circuit, 8゜9, 10
, 11. 12,51.52.53,54゜55.56
,57.58,59,60.61...control line,
402.403...- Control circuit that can store time,
401... Control circuit that controls 402 and 403, 501... ROM address space, 502...
...RAM address space that can store ROM data of the prior art, 503... RAM address space that has the same purpose as the prior art.

代理人の氏名 弁理士 粟野重孝 ほか1名C’)Is (/’l怖 図 ぐq Q a〕 寸Name of agent: Patent attorney Shigetaka Awano and one other person C’) Is (/’l scary figure Guq Q a] size

Claims (3)

【特許請求の範囲】[Claims] (1)プログラムデータの記憶領域とプログラム実行時
の作業領域及び変数領域等のデータ領域とに分離され、
かつ、命令語長とデータ語長が等しく、命令とデータの
アクセスが同一時間に並行して行え、上記プログラムデ
ータの記憶領域の一部分をROMで構成し、かつ、上記
プログラムデータの記憶領域のROM部分を除く残り部
分とデータ領域とをRAMで構成し、上記RAMに記憶
したデータをプログラムデータとして実行可能としたこ
とを特徴とするマイクロコンピュータ。
(1) Separated into a storage area for program data and a data area such as a work area and variable area during program execution,
and the instruction word length and data word length are equal, the instruction and data can be accessed in parallel at the same time, a part of the storage area for the program data is constituted by a ROM, and the storage area for the program data is a ROM. 1. A microcomputer characterized in that the remaining part and a data area are made up of a RAM, and the data stored in the RAM can be executed as program data.
(2)RAMには、RAMアドレスバス、RAMデータ
バスが接続され、また、ROMには、ROMアドレスバ
ス、ROMデータバスが接続され、かつ、上記RAMへ
のアクセスは、上記RAMアドレスバスまたは上記RO
Mアドレスバスを介してアドレス情報を転送することに
より可能であり、上記ROMには、上記RAMアドレス
バスまたは、上記ROMアドレスバスを介してアドレス
情報を転送することにより可能であると同時に、ROM
アドレス空間、およびRAMアドレス空間内に記憶され
たデータについては、一つのアドレスに対し、単一のデ
ータの割り当てが行われ、これにより、上記RAMアド
レスバス、または上記ROMアドレスバスから転送され
るアドレス情報に基づき、上記ROMまたは、プログラ
ムが記憶された上記RAM、または、データ記憶領域の
上記RAMかの判定が可能な回路を有することにより上
記三つの領域にアクセスが可能であることを特徴とする
マイクロコンピュータ。
(2) A RAM address bus and a RAM data bus are connected to the RAM, and a ROM address bus and a ROM data bus are connected to the ROM, and the RAM can be accessed by the RAM address bus or the RAM data bus. R.O.
This is possible by transferring address information via the RAM address bus or the ROM address bus;
Regarding the data stored in the address space and the RAM address space, a single piece of data is assigned to one address, and this causes the address to be transferred from the RAM address bus or the ROM address bus. The three areas can be accessed by having a circuit that can determine, based on information, whether the ROM is the ROM, the RAM in which a program is stored, or the RAM is a data storage area. microcomputer.
(3)RAMアドレスバスおよび、ROMアドレスバス
を介して、ROMアドレス空間内のデータのアクセスを
行なうとき、上記ROMアドレスバスまたは、上記RA
Mアドレスバスのアドレス情報が、上記ROMアドレス
空間内か、上記RAMアドレス空間内かを判定する第1
の制御回路を有し、上記第1の制御回路の判定に基づき
、上記アドレス情報が上記ROMアドレスバスを介して
転送されてきたときは、ROMデータバスに、ROMデ
ータであるということを意味づける同期信号に同期させ
て転送され、または、上記アドレス情報が上記RAMア
ドレスバスを介して転送されてきたときは、RAMデー
タバスに、RAMデータであることを意味づける同期信
号に同期させて、転送が可能な第2の制御回路を有し、
かつ、上記RAMアドレス空間内のデータのアクセスを
行うとき、アドレス情報が上記ROMアドレスバスを介
して転送されれば、上記第1の制御回路の判定に基づき
、上記第2の制御回路から、上記アドレス情報に対応す
るRAMデータが、上記ROMデータバスにROMデー
タとして意味づけられる同期信号に同期させられて転送
され、また、上記アドレス情報が、上記RAMアドレス
バスを介して転送されてきたときは、上記第1の制御回
路の判定に基づき、上記第2の判御回路から、上記アド
レス情報に対応するRAMデータが、上記RAMデータ
バスに、RAMデータとして意味づけられる同期信号に
同期させられて転送され、および上記ROMデータバス
に転送されたデータは、プログラムとして解読できる命
令デコーダを備えたマイクロコンピュータ。
(3) When accessing data in the ROM address space via the RAM address bus and the ROM address bus, the ROM address bus or the RA
A first step for determining whether the address information of the M address bus is within the ROM address space or the RAM address space.
a control circuit, and based on the determination of the first control circuit, when the address information is transferred via the ROM address bus, it gives a meaning to the ROM data bus that it is ROM data. The address information is transferred in synchronization with a synchronization signal, or when the address information is transferred via the RAM address bus, it is transferred to the RAM data bus in synchronization with a synchronization signal that indicates that it is RAM data. has a second control circuit capable of
Further, when accessing data in the RAM address space, if address information is transferred via the ROM address bus, the second control circuit transfers the When RAM data corresponding to address information is transferred to the ROM data bus in synchronization with a synchronization signal that is interpreted as ROM data, and when the address information is transferred via the RAM address bus, Based on the determination of the first control circuit, the RAM data corresponding to the address information is sent from the second judgment circuit to the RAM data bus in synchronization with a synchronization signal that is interpreted as RAM data. A microcomputer equipped with an instruction decoder capable of decoding the data transferred and transferred to the ROM data bus as a program.
JP1002407A 1989-01-09 1989-01-09 Microcomputer Expired - Lifetime JPH0827714B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1002407A JPH0827714B2 (en) 1989-01-09 1989-01-09 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1002407A JPH0827714B2 (en) 1989-01-09 1989-01-09 Microcomputer

Publications (2)

Publication Number Publication Date
JPH02183331A true JPH02183331A (en) 1990-07-17
JPH0827714B2 JPH0827714B2 (en) 1996-03-21

Family

ID=11528392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1002407A Expired - Lifetime JPH0827714B2 (en) 1989-01-09 1989-01-09 Microcomputer

Country Status (1)

Country Link
JP (1) JPH0827714B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0659971A (en) * 1992-08-10 1994-03-04 Matsushita Electric Ind Co Ltd Memory reader

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5694451A (en) * 1979-12-27 1981-07-30 Fujitsu Ltd Microprocessor incorporating memory
JPS59117651A (en) * 1982-12-24 1984-07-07 Matsushita Electric Ind Co Ltd Memory extension circuit of single-chip microcomputer
JPS60129856A (en) * 1983-12-19 1985-07-11 Matsushita Electric Ind Co Ltd Memory control circuit
JPS6375852A (en) * 1986-09-18 1988-04-06 Toyo Commun Equip Co Ltd Memory access system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5694451A (en) * 1979-12-27 1981-07-30 Fujitsu Ltd Microprocessor incorporating memory
JPS59117651A (en) * 1982-12-24 1984-07-07 Matsushita Electric Ind Co Ltd Memory extension circuit of single-chip microcomputer
JPS60129856A (en) * 1983-12-19 1985-07-11 Matsushita Electric Ind Co Ltd Memory control circuit
JPS6375852A (en) * 1986-09-18 1988-04-06 Toyo Commun Equip Co Ltd Memory access system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0659971A (en) * 1992-08-10 1994-03-04 Matsushita Electric Ind Co Ltd Memory reader

Also Published As

Publication number Publication date
JPH0827714B2 (en) 1996-03-21

Similar Documents

Publication Publication Date Title
US6851036B1 (en) Method and apparatus for controlling external devices through address translation buffer
JPH02183331A (en) Microcomputer
JPH0223892B2 (en)
JPH0447349A (en) Data storage device
JP2006331391A (en) Data processor and data processing method
JP2522412B2 (en) Communication method between programmable controller and input / output device
JP2004013289A (en) On-chip debugging method of microcontroller
JP3127620B2 (en) Command decoding device
JP2581144B2 (en) Bus control device
JPH0154729B2 (en)
JPH1027153A (en) Bus transfer device
JPS6215645A (en) Central processing unit
JPS6143321A (en) Output device of pulse signal
JPH0381854A (en) Memory access system
JPS6126701B2 (en)
JPS5919287A (en) Input and output processing system by memory access instruction
JPH10134013A (en) Multi-cpu system
JPH05204866A (en) Data conversion system for multi-cpu system
JPH10247162A (en) Electronic computer system
JPH03142536A (en) Diagnostic system for storage
JPH03259491A (en) Memory controller
JPH04346153A (en) Method for controlling memory access bus and its information processor
JP2005078483A (en) Fifo memory controller and controlling method of fifo memory device
JPH06187307A (en) Coprocessor
JPH07248966A (en) Transmission/reception controller