JPH04177439A - Single chip microcomputer - Google Patents
Single chip microcomputerInfo
- Publication number
- JPH04177439A JPH04177439A JP2303447A JP30344790A JPH04177439A JP H04177439 A JPH04177439 A JP H04177439A JP 2303447 A JP2303447 A JP 2303447A JP 30344790 A JP30344790 A JP 30344790A JP H04177439 A JPH04177439 A JP H04177439A
- Authority
- JP
- Japan
- Prior art keywords
- memory space
- memory
- data
- internal
- logic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 1
Landscapes
- Microcomputers (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はシングルチップφマイクロコンピュータに関し
、特にソフトウェアにより内部メモリ空間を外部メモリ
空間に置き換えることを可能とするメモリ空間の制御回
路に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a single-chip φ microcomputer, and more particularly to a memory space control circuit that allows internal memory space to be replaced by external memory space by software.
シングルチップ・マイクロコンピュータは、データ処理
を行なう中央処理部に加え、プログラムや処理データ等
を記憶するメモリ部、外部とのデータのやりとりを行な
う入出力部などを単一の集積回路上に構成したものであ
り、ストアードプログラム制御の装置は、プログラムを
変えることによって各種の処理が実現できることから、
様々な分野で制御部品として利用されている。A single-chip microcomputer has a central processing unit that processes data, a memory unit that stores programs and processing data, an input/output unit that exchanges data with the outside, etc. on a single integrated circuit. Since stored program control devices can perform various types of processing by changing the program,
It is used as a control component in various fields.
近年、集積回路技術の進歩に伴い、マイクロコンピュー
タの高性能化が進んでいる。これと同時に応用される装
置等も高機能なものが増えている。高機能な装置を制御
する為には、プログラム・メモリを多く必要とし、この
要求に答える為に内蔵プログラムメモリ容量の多い製品
が次々と開発されている。従って、使用可能なプログラ
ムメモリ領域が多い事が望まれている。In recent years, with advances in integrated circuit technology, the performance of microcomputers has been increasing. At the same time, the number of highly functional devices being applied is increasing. In order to control highly functional devices, a large amount of program memory is required, and to meet this demand, products with large built-in program memory capacities are being developed one after another. Therefore, it is desirable to have a large usable program memory area.
第5図に、従来のシングルチップ・マイクロコンピュー
タのメモリ空間マツプを示す。FIG. 5 shows a memory space map of a conventional single-chip microcomputer.
第5図において、従来のシングルチップ・マイクロコン
ピュータとしては、内蔵された内部メモリ22に対応し
た内部メモリ空間23のみをプロダラムメモリ領域とす
るものや、内部メモリ空間23に加え、外部メモリ24
に対応する外部メモリ空間25をもち、両方を合わせた
プログラムメモリ領域をもつもの、プログラムメモリを
内蔵せず外部メモリ26に対応する外部メモリ空間27
のみをプログラムメモリ領域とするもの(ROMLES
S)等があった。In FIG. 5, there are conventional single-chip microcomputers in which only the internal memory space 23 corresponding to the built-in internal memory 22 is used as the program memory area, and in addition to the internal memory space 23, external memory 24
and an external memory space 27 corresponding to the external memory 26 without built-in program memory.
Only program memory area (ROMLES)
S) etc.
このような従来のシングルチップ・マイクロコンピュー
タでは、メモリ空間を拡張する為、プログラムメモリの
アドレスのビット数を増やしたり、バンクの切り換えな
どを行っていた。しかし、従来の構成であると、追加す
るアドレス信号やバンク切換えの為の制御信号をマイク
ロコンピュータから出力する必要がある。この為、メモ
リ空間の拡張によって拡張前の端子機能の幾つかを失な
うことになる。また、マイクロコンピュータの外部にお
いても、アドレスデコーダのビット数を増加したり、バ
ンク切換えの信号を解読する回路を追加しなくてはなら
ないという問題点があった。In such conventional single-chip microcomputers, in order to expand the memory space, the number of bits in the address of the program memory was increased or banks were switched. However, with the conventional configuration, it is necessary to output an additional address signal and a control signal for bank switching from the microcomputer. For this reason, some of the terminal functions before expansion will be lost due to expansion of the memory space. Further, there are also problems in that it is necessary to increase the number of bits of the address decoder and to add a circuit for decoding bank switching signals outside the microcomputer.
本発明の目的は、前記問題点を解決し、端子機能の幾つ
かを失なうことなく、また特別の解読回路を追加せずに
メモリ空間を拡張できるようにしたシングルチップ・マ
イクロコンピュータを提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a single-chip microcomputer that solves the above problems and allows memory space to be expanded without losing some of the terminal functions or adding special decoding circuits. It's about doing.
本発明のシングルチップ・マイクロコンピュータの構成
は、内部メモリ空間と外部外部メモリ空間との境界を決
定するデータを記憶する手段と、この記憶データを用い
てメモリ空間の判定を修飾する手段とを備えていること
を特徴とする。The configuration of the single-chip microcomputer of the present invention includes means for storing data that determines the boundary between an internal memory space and an external external memory space, and a means for modifying memory space determination using this stored data. It is characterized by
次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例のシングルチップ畳マイクロ
コンピュータを示すブロック図である。FIG. 1 is a block diagram showing a single-chip microcomputer according to an embodiment of the present invention.
第1図において、本実施例のシングルチップ・マイクロ
コンピュータは、データ処理を行ない回路全体を制御す
る中央処理部1.処理データを記憶スルデータメモリ部
2.プログラムを記憶する内部プログラムメモリ部3.
外部とのデータのやりとりを行なう入出力部4.内部メ
モリ空間と外部メモリ空間との境界を決定するデータを
格納し制御信号を作るメモリ空間制御部5.内部クロッ
クを発生するクロック発生部6を含み、構成される。こ
こでクロック発生部6を除いた各部は内部バス7を介し
てデータの転送を行なう。また外部メモリ8は、外部バ
ス9を介して、入出力部4との間でデータのやりとりを
行なう。In FIG. 1, the single-chip microcomputer of this embodiment has a central processing section 1.0 that performs data processing and controls the entire circuit. Data memory section 2 for storing processed data. Internal program memory section for storing programs 3.
Input/output unit for exchanging data with the outside 4. 5. A memory space control unit that stores data that determines the boundary between internal memory space and external memory space and generates control signals. It is configured to include a clock generation section 6 that generates an internal clock. Here, each section except the clock generating section 6 transfers data via the internal bus 7. Further, the external memory 8 exchanges data with the input/output section 4 via an external bus 9.
第2図に、第1図の実施例のメモリ空間制御部5の詳細
な回路図を示す。第3図に、従来例のメモリ空間制御部
の詳細な回路図を示す。第4図に第1図の実施例のメモ
リ空間マツプを示す。第5図に従来例のメモリ空間マツ
プを示す。FIG. 2 shows a detailed circuit diagram of the memory space control unit 5 of the embodiment shown in FIG. FIG. 3 shows a detailed circuit diagram of a conventional memory space control section. FIG. 4 shows a memory space map of the embodiment shown in FIG. FIG. 5 shows a memory space map of a conventional example.
ここでは、簡単の為プログラムメモリのアドレスを4ビ
ツト、全メモリ空間のうち半分の空間と等しい容量のメ
モリを内蔵するシングルチップ・マイクロコンピュータ
について説明する。Here, for the sake of simplicity, a single-chip microcomputer with a program memory address of 4 bits and a built-in memory with a capacity equivalent to half of the total memory space will be described.
また本実施例では、内部メモリ空間のうち半分を外部メ
モリ空間に置き換えられる回路について説明する。Further, in this embodiment, a circuit in which half of the internal memory space can be replaced with an external memory space will be described.
第3図に示すように、従来ではプログラムアドレスバス
13の最上位ビット(以下MSBと呼ぶ)をモニタする
バッファISが宵り、このバッファ15の出力をメモリ
空間制御信号14として、第1図に示すような中央処理
部1へ伝達する。中央処理部1ではメモリ空間制御信号
14が高(High)レベルのとき、外部メモリをアク
セスする制御を行ない、低(Low)レベルのとき、内
部メモリをアクセスする制御を行なう。As shown in FIG. 3, in the past, a buffer IS was provided to monitor the most significant bit (hereinafter referred to as MSB) of the program address bus 13, and the output of this buffer 15 was used as the memory space control signal 14, as shown in FIG. The information is transmitted to the central processing unit 1 as shown. When the memory space control signal 14 is at a high level, the central processing unit 1 controls access to the external memory, and when the signal is at a low level, controls access to the internal memory.
第5図に示すように、メモリ空間全体のうちアドレスの
大きい方の半分を外部メモリ空間25に、アドレスの小
さい方の半分を内部メモリ空間23に割り付けている。As shown in FIG. 5, half of the entire memory space with larger addresses is allocated to the external memory space 25, and half of the smaller address is allocated to the internal memory space 23.
一方本実施例は、第2図に示すように、メモリ空間の境
界を決定する為のデータを格納するラッチ10.プログ
ラムアドレスバス13のMSBと、MSBよりひとつ下
位のビットとをモニタするAND論理11.OR論理1
2より構成されている。ラッチ10にLowレベルが格
納された場合が、第4図の設定1の状態である。ラッチ
10の出力がLowレベルであると、AND論理11の
出力もプログラムアドレスバス13の値に関係なく、L
OWレベルとなり、プログラムアドレスバス13のMS
Hの値によって、OR論理12の出力即ぢメモリ空間制
御信号14の値が決まり、従来例と同じ制御が行われる
。On the other hand, in this embodiment, as shown in FIG. 2, a latch 10. AND logic 11. which monitors the MSB of the program address bus 13 and the bit one lower than the MSB. OR logic 1
It is composed of 2. The case where the low level is stored in the latch 10 is the state of setting 1 in FIG. When the output of the latch 10 is low level, the output of the AND logic 11 is also low regardless of the value of the program address bus 13.
The MS on the program address bus 13 becomes OW level.
The value of H determines the value of the output of the OR logic 12, i.e., the memory space control signal 14, and the same control as in the conventional example is performed.
従って、メモリ空間全体のうちアドレスの大キい方の半
分を外部メモリ空間16に、アドレスの小さい方の半分
を内部メモリ空間17に割り付ける。即ち外部メモリ1
8は外部メモリ空間16に、内部メモリ19は内部メモ
リ空間17に割り当てられる。Therefore, of the entire memory space, half of the larger addresses are allocated to the external memory space 16, and half of the smaller addresses are allocated to the internal memory space 17. That is, external memory 1
8 is allocated to the external memory space 16, and internal memory 19 is allocated to the internal memory space 17.
次に、ラッチ10にHighレベルが格納された場合が
、第4図の設定2の状態である。設定1の場合と同様に
、プログラムアドレスバス13のMSBがHi ghレ
ベル(D時、OR論理12の出力がHighレベル即ち
メモリ空間制御信号14がHighレベルとなり、外部
メモリをアクセスしにいく。またラッチ10の出力がH
ighレベルなので、プログラムアドレスバス13のM
SBカL o wレベルでもMSBよりひとつ下位のビ
ットがHighレベルの場合、AND論理11の出力が
Highレベルとなり、OR論理12の出力即ちメモリ
空間制御信号14かHighレベルとなり、外部メモリ
をアクセスしにいく。従って、プログラムアドレス13
のMSBとそのひとつ下位のビットきが共にLowレベ
ルのときのみ、メモリ空間制御信号14がLowレベル
となり、内部メモリをアクセスしにいく。このように、
設定1での外部メモリ空間16と、内部メモリ空間17
の中のアドレスの大きい方の半分が、設定2の外部メモ
リ空間20に、メモリ空間全体の1/4だけ残った空間
が内部メモリ空間21に割り付けられる。Next, the case where the high level is stored in the latch 10 is the state of setting 2 in FIG. As in the case of setting 1, when the MSB of the program address bus 13 is at a high level (D, the output of the OR logic 12 is at a high level, that is, the memory space control signal 14 is at a high level, and the external memory is accessed. The output of latch 10 is H
Since it is at high level, the M of program address bus 13
Even when the SB is at Low level, if the bit one lower than the MSB is at High level, the output of AND logic 11 becomes High level, and the output of OR logic 12, that is, the memory space control signal 14 becomes High level, and the external memory is not accessed. go to. Therefore, program address 13
Only when the MSB and the bit one bit below it are both at a low level, the memory space control signal 14 goes to a low level and the internal memory is accessed. in this way,
External memory space 16 and internal memory space 17 in setting 1
The larger half of the addresses in is allocated to the external memory space 20 of setting 2, and the remaining 1/4 of the entire memory space is allocated to the internal memory space 21.
以上説明したように、ラッチ10に格納するデータによ
って内部メモリ空間の半分を外部メモリ空間に切り換え
ることが可能であり、内部メモリと重複したアドレスに
外部メモリを増設することにより、適宜内部メモリと外
部メモリとを使い分けることが可能となる。従って、プ
ログラムメモリのアドレスのビット数を増やしたり、バ
ンク切り換えを行なうことなしに、外部メモリを増設し
、必要に応じてこの増設したメモリを使用することが可
能となる。As explained above, it is possible to switch half of the internal memory space to the external memory space depending on the data stored in the latch 10, and by adding external memory to an address that overlaps with the internal memory, the internal memory and external memory can be switched as appropriate. It becomes possible to use memory separately. Therefore, it is possible to add external memory and use the added memory as needed without increasing the number of bits in the address of the program memory or switching banks.
特に今日のように、内蔵メモリの容量が大きい場合、そ
の効果が大きい。This effect is especially significant when the built-in memory capacity is large, as is the case today.
本実施例では、内部メモリ空間の半分を外部メモリ空間
に切り換える構成について説明したが、ラッチの追加や
ラッチ出力のデコードとAND論理、OR論理の組み合
わせによってもっと細かく内部メモリ空間を制御するこ
とも可能であるし、内部メモリ全体を外部メモリに切り
換えてしまうことも可能である。In this embodiment, we have described a configuration in which half of the internal memory space is switched to the external memory space, but it is also possible to control the internal memory space in more detail by adding a latch, decoding the latch output, and combining AND logic and OR logic. It is also possible to switch the entire internal memory to external memory.
以上説明した様に、本発明は、ソフトウェアによって内
部メモリ空間の適当な部分を外部メモリ空間へと置き換
えることを可能としたので、プログラムメモリのアドレ
スのビット数を増やしたり、バンク切り換えなどを行な
わなくても、最大で内蔵メモリと同容量のメモリを外部
に増設することが可能となり、従ってメモリ空間拡張前
の端子機能を失うことな(、外部のアドレスデコーダの
ビット数を増やしたり、バンク切り換えの信号を解読す
る回路を追加することなしに、メモリ空間が拡張できる
という効果を宵する。As explained above, the present invention makes it possible to replace an appropriate portion of the internal memory space with the external memory space using software, so there is no need to increase the number of bits in the program memory address or switch banks. However, it is now possible to expand external memory with the same capacity as the internal memory at maximum, without losing the pin function before memory space expansion (increasing the number of bits of the external address decoder, changing banks, etc.). The effect is that the memory space can be expanded without adding circuitry to decode signals.
第1図は本発明の一実施例のシングルチップ拳マイクロ
コンピュータのブロック図、第2図は第1図に示したメ
モリ空間制御部の回路図、第3図は従来例のメモリ空間
制御部の回路図、第4図は第1図の実施例のメモリ空間
地図、第5図は従来例のメモリ空間地図である。
1・・・中央処理部、2・・・データメモリ部、3・・
・内部プログラムメモリ部、4・・・入出力部、5・・
・メモリ空間制御部、6・・・クロック発生部、7・・
・内部バス、8・・・外部メモリ、9・・・外部バス、
10・・・ラッチ、11・・・AND論理、12・・・
OR論理、13・・・プログラムアドレスバス、14・
・・メモリ空間制御信号、15・・・バッファ、16.
20,25.27・・・外部メモリ空間、17.21.
23・・・内部メモリ空間、18.24.26・・・外
部メモリ、19.22・・・内部メモリ。FIG. 1 is a block diagram of a single-chip fist microcomputer according to an embodiment of the present invention, FIG. 2 is a circuit diagram of the memory space control section shown in FIG. 1, and FIG. 3 is a circuit diagram of the memory space control section of the conventional example. In the circuit diagram, FIG. 4 is a memory space map of the embodiment shown in FIG. 1, and FIG. 5 is a memory space map of the conventional example. 1...Central processing unit, 2...Data memory unit, 3...
・Internal program memory section, 4...Input/output section, 5...
・Memory space control unit, 6... Clock generation unit, 7...
・Internal bus, 8...external memory, 9...external bus,
10...Latch, 11...AND logic, 12...
OR logic, 13...Program address bus, 14.
...Memory space control signal, 15...Buffer, 16.
20, 25.27...External memory space, 17.21.
23...Internal memory space, 18.24.26...External memory, 19.22...Internal memory.
Claims (1)
ータを記憶する手段と、前記手段で記憶されたデータを
用いてメモリ空間の判定を修飾する手段とを備えたシン
グルチップ・マイクロコンピュータ。A single-chip microcomputer comprising: means for storing data that determines a boundary between an internal memory space and an external memory space; and means for modifying a memory space determination using the data stored by the means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2303447A JPH04177439A (en) | 1990-11-08 | 1990-11-08 | Single chip microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2303447A JPH04177439A (en) | 1990-11-08 | 1990-11-08 | Single chip microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04177439A true JPH04177439A (en) | 1992-06-24 |
Family
ID=17921105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2303447A Pending JPH04177439A (en) | 1990-11-08 | 1990-11-08 | Single chip microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04177439A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002269551A (en) * | 2001-03-08 | 2002-09-20 | Canon Inc | Image processing unit |
-
1990
- 1990-11-08 JP JP2303447A patent/JPH04177439A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002269551A (en) * | 2001-03-08 | 2002-09-20 | Canon Inc | Image processing unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6032246A (en) | Bit-slice processing unit having M CPU's reading an N-bit width data element stored bit-sliced across M memories | |
US5751988A (en) | Microcomputer with memory bank configuration and register bank configuration | |
US5987581A (en) | Configurable address line inverter for remapping memory | |
US7162563B2 (en) | Semiconductor integrated circuit having changeable bus width of external data signal | |
EP0338317A2 (en) | Information processor operative both in direct mapping and in bank mapping and the method of switching the mapping schemes | |
JPH04177439A (en) | Single chip microcomputer | |
US4807119A (en) | Memory address mapping mechanism | |
JP2974071B2 (en) | Memory IC | |
JPH1139212A (en) | Microcomputer | |
US20030035323A1 (en) | Data write circuit | |
JPH07334420A (en) | Extended memory control circuit | |
JPH04115337A (en) | Semiconductor integrated circuit | |
KR920003845B1 (en) | Rom region expansion system for users of pc | |
JPS63159966A (en) | Single-chip microcomputer | |
JPS5999551A (en) | Address generating circuit | |
JP2581484B2 (en) | Data processing system | |
JPH03211641A (en) | Address designation method for memory device | |
JPS63129438A (en) | Memory controller | |
JPH03214275A (en) | Semiconductor integrated circuit | |
JPH09244963A (en) | Ic memory | |
JPH10161928A (en) | Storage device | |
JPS61128347A (en) | Memory address setting system | |
JPS6348688A (en) | Memory device | |
JPH0628245A (en) | Microcomputer | |
JPH04177697A (en) | Semiconductor memory |