JPS61180346A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS61180346A
JPS61180346A JP60021571A JP2157185A JPS61180346A JP S61180346 A JPS61180346 A JP S61180346A JP 60021571 A JP60021571 A JP 60021571A JP 2157185 A JP2157185 A JP 2157185A JP S61180346 A JPS61180346 A JP S61180346A
Authority
JP
Japan
Prior art keywords
register
contents
memory
data
general
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
JP60021571A
Other languages
Japanese (ja)
Inventor
Hiroshi Kubo
博 久保
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP60021571A priority Critical patent/JPS61180346A/en
Publication of JPS61180346A publication Critical patent/JPS61180346A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To increase easily external memories by attaining the reference to an added external memory and also using a general-purpose register for reference to the external memory to increase the number of reference registers. CONSTITUTION:External memories (a-c) are connected to a CPU. Then registers R1 and R0 are put together and an instruction stored in the register R0 is set by an indirect address designation processing. A decoder connected to the CPU detects a data memory reference signal S2 and a register number S3 and activates the memory (b) is extracted by the contents of the register R1 sent to the outside from an address buffer AB. This extracted data is fetched by a data buffer DB via data buses D0-D7. Then the contents of the buffer DB are transferred to a tentative register TR1, and the contents of a tentative register TR0 are added with those of the TR1 by an arithmetic logic unit ALU. The result of this addition is stored in the register R0.

Description

【発明の詳細な説明】 く技術分野〉 本発明は外部データメモリの参照に係る改良を施こした
マイクロコンピュータに関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a microcomputer that has been improved in reference to external data memory.

〈従来技術〉 近年、8ピツトマイクロコンピユータが各種情報処理装
置として利用されている。従来の一般の8ビツトマイク
ロコンピユータではアドレスバッファが16ビツトであ
った為、CPU外部のRAMを使用する場合は最大64
にバイトまでしかメモリの使用が出来なかった。従って
それ以上の外部メモリの拡張を必要とする場合は、■外
部メモリを参照するための特別の命令語を別途設けたシ
、■外部メモリを間接アドレスパスやインデックスアド
レス指定するための特別のレージスタを設けたり、■外
部メモリの接続を切り換える為の切り換え用のレジスタ
を特別に設けたりしていた。しかし、これらの構成を実
現するには、多くの内部回路の追加を必要とし、■、■
の構成ではCPUの内部回路の都合で特別の命令語や特
別のし゛ジスタを自在に追加することは不可能であった
。又、■の様に外部メモリの接続を切換える為の切り換
え用のレジスタを設けた場合は、既存の外部メモリ空間
上に別の外部メモリヲ設定することになるため、異なる
外部メモリ間における同一アドレ゛スでのデータ転送は
直接には不可能になった0例えば第4図に示す様に同一
メモリ空間内にa、 b、 cの外部メモリが設定され
た場合において、これらの外部メモリ間のデータ転送は
切り換え用レジスタの書き換え無しでは不可能である。
<Prior Art> In recent years, 8-pit microcomputers have been used as various information processing devices. Conventional general 8-bit microcomputers had a 16-bit address buffer, so when using RAM external to the CPU, the address buffer could be up to 64 bits.
I was only able to use up to a byte of memory. Therefore, if you need to expand the external memory further, you need to: ■ Create a special instruction word to refer to the external memory, or ■ Create a special register to specify an indirect address path or index address for the external memory. ■Special switching registers were provided to switch external memory connections. However, to realize these configurations, it is necessary to add many internal circuits, and ■,■
In this configuration, it was impossible to freely add special command words or special registers due to the internal circuitry of the CPU. Also, if a switching register is provided to switch the connection of external memory as shown in ■, another external memory will be set on the existing external memory space, so it is impossible to use the same address between different external memories. For example, when external memories a, b, and c are set in the same memory space as shown in Figure 4, data transfer between these external memories is no longer possible. Transfer is not possible without rewriting the switching register.

く目的〉 本発明は以上の従来問題点を解消するべくなされたもの
であり、外部メモi拡張する際において柔軟性の高いマ
イクロコンピュータを提供することをその目的とする。
Purpose of the present invention The present invention has been made to solve the above-mentioned conventional problems, and an object of the present invention is to provide a microcomputer with high flexibility when expanding an external memory.

〈実施例〉 以下本発明に係る一実施例について図面を用いて詳細に
説明を行なう。
<Example> Hereinafter, an example according to the present invention will be described in detail using the drawings.

第1図に本発明に係るマイクロコンピュータの一実施例
のCPUの内部ブロック図を示す。同図でDBはデータ
バッファ、Do−D7は8本のデータバスであり、上記
データバッファDB’i−介して外部回路とのデータの
転送を実行する。Bは内部データバスである。TRO,
TRIはテンポラリレジスタ、A、LUは算術演算、論
理演算を実行する演算論理器、IRは命令を保持する命
令レジスタ、IDは命令を解読する命令デコーダ、TC
は各部へ命令の内容を伝えるコントロールタイミング部
、RO−R3は汎用レジスタ、SPはスタックポインタ
、PCはプログラムカウンタ、ABはアドレスバッファ
、Ao−A15 は16本のアドレスパスである。
FIG. 1 shows an internal block diagram of a CPU of an embodiment of a microcomputer according to the present invention. In the figure, DB is a data buffer, Do-D7 is eight data buses, and data is transferred to and from an external circuit via the data buffer DB'i-. B is an internal data bus. TRO,
TRI is a temporary register, A, LU is an arithmetic logic unit that performs arithmetic operations and logical operations, IR is an instruction register that holds instructions, ID is an instruction decoder that decodes instructions, TC
RO-R3 is a general-purpose register, SP is a stack pointer, PC is a program counter, AB is an address buffer, and Ao-A15 are 16 address paths.

以上の回路構成のCPUが第2図に示す様に外部メモ!
J EL+ be Qと接続されている。
As shown in Figure 2, the CPU with the above circuit configuration is an external memo!
Connected to JEL+beQ.

以上の構成のマイクロコンピュータを用いて間接アドレ
ス指定及びインデックスアドレス指定を行なう場合の処
理手順について説明を行なう。
The processing procedure for performing indirect addressing and index addressing using the microcomputer configured as described above will be explained.

・ 間接アドレス指定 命令・・・ADD @Ri、 RO 汎用レジスタR1の示すデータメモリの内容と汎用レジ
スタROの内容を加算してその結果を汎用レジスタRO
に格納する0 この命令の処理は次の通りである。
- Indirect addressing instruction...ADD @Ri, RO Adds the contents of the data memory indicated by general-purpose register R1 and the contents of general-purpose register RO, and writes the result to general-purpose register RO.
Store 0 in 0 The processing of this instruction is as follows.

■ 汎用レジスタROの内容をテンポラリレジスタTR
Oに転送する。
■ The contents of general-purpose register RO are transferred to temporary register TR.
Transfer to O.

■ 汎用レジスタR1の内容をアドレスバッファABに
送ると共に、既に命令レージスタIRに送られたレジス
タ番号(この場合汎用レジスタR1を示す1〕をし゛ジ
スタ番号出力線S3に送出する。更にコントロールタイ
ミング部rrCよシデータメモリ参照を行なう旨の信号
S2を送出する0 ■ 第2図に示される如<CPUに接続されたデコーダ
(第3図にその内部回路図を示す)は上記データメモリ
参照信号S2及びレジスタ番号信号S3を検出して外部
メモIJ b ’に作動可能せしめる。
■ Sends the contents of general-purpose register R1 to address buffer AB, and sends the register number already sent to instruction register IR (in this case, 1 indicating general-purpose register R1) to register number output line S3. Furthermore, control timing section rrC As shown in FIG. 2, the decoder connected to the CPU (the internal circuit diagram of which is shown in FIG. 3) transmits the data memory reference signal S2 and The register number signal S3 is detected and the external memory IJb' is enabled.

■ アドレスバッファABから外部に送出された汎用レ
ージスタR1の内容によってメモリbの求めるアドレス
のデータが取り出され、データバスD。−D7を介して
データバラフナDBに取り込まれる。
(2) Data at the desired address of memory b is retrieved from memory b according to the contents of general-purpose register R1 sent externally from address buffer AB, and then transferred to data bus D. - The data is taken into the data barafuna DB via D7.

■ データバッファDBの内容をテンポラリレジスタT
RIに転送する。
■ The contents of the data buffer DB are transferred to the temporary register T.
Transfer to RI.

■ 演算論理器ALUはテンポラリレジスタTROの内
容とテンポラリレジスタTRIの内容を加算し、その結
果を汎用レジスタROに格納する。
(2) Arithmetic logic unit ALU adds the contents of temporary register TRO and the contents of temporary register TRI, and stores the result in general-purpose register RO.

0 インデックスアドレス指定 命令・・・ADD  10(R1)、RO汎用レしジス
タR1の示すデータメモリの内容から10番目の内容と
汎用し゛ジスタROの内容を加算して汎用レジスタRO
に格納する。
0 Index address specification instruction... ADD 10 (R1), RO Adds the 10th content from the data memory contents indicated by general register R1 and the contents of general register RO, and writes the contents to general register RO.
Store in.

この命令の処理は次の通シである。The processing of this command is as follows.

■ データバッファDBに記憶された次ワード間とのア
ドレス差(この場合10)t−テンポラリレジスタTR
Oに転送する。
■ Address difference between next words stored in data buffer DB (10 in this case) t-Temporary register TR
Transfer to O.

■ 汎用し°ラスタR1の内容をテンポラリレジスタT
RIに転送する。
■ General-purpose ° The contents of raster R1 are stored in temporary register T.
Transfer to RI.

■ 演算論理器ALU−はテンポラリレジスタTROの
内容とテンポラリレジスタTRIの内容を加算し、その
結果をアドレスバッファABに格納する。又、既に命令
レジスタIRに送られたレジスタ番号(この場合汎用レ
ジスタR1を示す1)をレジスタ番号出力線S3に送出
する。更にコントロールタイミング部TCよシデータメ
モリ参照を行なう旨の信号S2を送出する0■ 第2図
に示される如<CPUに接続されたデコーダは上記デー
タメモリ参照信号S2及びレジスタ番号信号S3を検出
してメモリbt−作動可能せしめる。
(2) Arithmetic logic unit ALU- adds the contents of temporary register TRO and the contents of temporary register TRI, and stores the result in address buffer AB. Further, the register number already sent to the instruction register IR (in this case, 1 indicating general-purpose register R1) is sent to the register number output line S3. Furthermore, the control timing unit TC sends out a signal S2 indicating that the data memory is to be referenced.As shown in FIG. 2, the decoder connected to the CPU detects the data memory reference signal S2 and the register number signal S3. to enable memory bt.

■ アドレスバッファABから外部に送出された汎用レ
ジスタR1の内容によってメモリbの求めるアドレスの
データが取9出され、データバスD。〜D7を介してデ
ータバッフyDBに取す込まれる。
(2) Data at the desired address of memory b is extracted from memory b according to the contents of general-purpose register R1 sent externally from address buffer AB, and then transferred to data bus D. ~ D7 to the data buffer yDB.

■ データバッファDBの内容をテンポラリレジスタT
RIに転送する。
■ The contents of the data buffer DB are transferred to the temporary register T.
Transfer to RI.

■ 汎用レジスタROの内容をテンポラリレジスタTR
Oに転送する。
■ The contents of general-purpose register RO are transferred to temporary register TR.
Transfer to O.

■ 演算論理器ALUはテンポラリレジスタTROの内
容とテンポラリレジスタTRIの内容を加算し、その結
果を汎用レジスタROに格納する。
(2) Arithmetic logic unit ALU adds the contents of temporary register TRO and the contents of temporary register TRI, and stores the result in general-purpose register RO.

以上のマイクロコンピュータにおいて、CPUにはデー
タメモリ参照信号S2を送出する為の専用の端子及びレ
ジスタ番号信号S3i送出する為の専用の端子が設けら
れる。又、デコーダはレジスタ番号信号S3が0(00
)の時はメモリaを選択し、レジスタ番号信号S3が1
(01)の時はメモリb’6選択し、レジスタ番号信号
S3が2(10)の時はメモリcを選択する。
In the above microcomputer, the CPU is provided with a dedicated terminal for sending out the data memory reference signal S2 and a dedicated terminal for sending out the register number signal S3i. Also, the decoder detects that the register number signal S3 is 0 (00
), memory a is selected and register number signal S3 is 1.
(01), memory b'6 is selected, and when register number signal S3 is 2 (10), memory c is selected.

く効果〉 以上の本発明によれば回路構成上の特別な追加をしなく
とも外部メモリを付加して、その参照を実行でき、又、
汎用レジスタを用いて外部メモリの参照を実行するもの
であるから、参照用のレジスタの数を増すことによって
外部メモリの拡張が容易に行なえるものである。
Effects> According to the present invention, an external memory can be added and referred to without any special addition to the circuit configuration, and
Since the external memory is referenced using general-purpose registers, the external memory can be easily expanded by increasing the number of reference registers.

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

第1図は本発明に係°るマイクロコンピュータの一実施
例のCPUの内部ブロック図、第2図はCPUと外部メ
モリとの接続構成図、第3図はデコーダの内部回路図、
第4図はメモリ構成図を示す。 図中、DB:データバッフ7Do−D7 :データバス
 B:内部データバス TRO,TRI :テンポラリ
レジスタ ALU:演算論理器 ■R:命令レジスタ 
ID=命令デコーダ TC:コントロールタイミング部
 RO−R3:汎用レージスタSPニスタックポインタ
 PCニブログラムカウンタABニアドレスバッファ 
Ao〜A15ニアドレスパス 代理人 弁理士 福 士 愛 彦 (他2名)第1図
FIG. 1 is an internal block diagram of a CPU of an embodiment of a microcomputer according to the present invention, FIG. 2 is a connection configuration diagram between the CPU and external memory, and FIG. 3 is an internal circuit diagram of a decoder.
FIG. 4 shows a memory configuration diagram. In the figure, DB: Data buffer 7Do-D7: Data bus B: Internal data bus TRO, TRI: Temporary register ALU: Arithmetic logic unit ■R: Instruction register
ID=Instruction decoder TC: Control timing section RO-R3: General-purpose register SP Ni stack pointer PC nib program counter AB near address buffer
Ao~A15 Near address agent Patent attorney Aihiko Fukushi (and 2 others) Figure 1

Claims (1)

【特許請求の範囲】 1、a)外部データメモリのアドレスを指定することが
可能な汎用レジスタと、 b)該汎用レジスタの内容をアドレスパスに伝達する伝
達手段と、 c)上記外部データメモリ用に設定された汎用レジスタ
のレジスタ番号情報を出力する第1の出力端子と、 d)外部データメモリを参照する旨の信号を外部に出力
する第2の出力端子と、 をCPUに具備したことを特徴とするマイクロコンピュ
ータ。
[Scope of Claims] 1. a) a general-purpose register capable of specifying an address of an external data memory, b) a transmission means for transmitting the contents of the general-purpose register to an address path, and c) for the external data memory. d) a first output terminal that outputs register number information of a general-purpose register set to d); and a second output terminal that outputs a signal indicating that the external data memory is to be referenced. Features a microcomputer.
JP60021571A 1985-02-04 1985-02-04 Microcomputer Pending JPS61180346A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60021571A JPS61180346A (en) 1985-02-04 1985-02-04 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60021571A JPS61180346A (en) 1985-02-04 1985-02-04 Microcomputer

Publications (1)

Publication Number Publication Date
JPS61180346A true JPS61180346A (en) 1986-08-13

Family

ID=12058712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60021571A Pending JPS61180346A (en) 1985-02-04 1985-02-04 Microcomputer

Country Status (1)

Country Link
JP (1) JPS61180346A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04245580A (en) * 1991-01-31 1992-09-02 Japan Servo Co Ltd Decoder for computer peripheral element extension

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04245580A (en) * 1991-01-31 1992-09-02 Japan Servo Co Ltd Decoder for computer peripheral element extension

Similar Documents

Publication Publication Date Title
JP2633331B2 (en) Microprocessor
US4839797A (en) Microprocessor compatible with any software represented by different types of instruction formats
KR940009094B1 (en) Data processing system
US4240139A (en) Address generating system
JP3203401B2 (en) Data processing device
JPH0414385B2 (en)
GB1321851A (en) Multi-mode process control computer with bit processing
US5077659A (en) Data processor employing the same microprograms for data having different bit lengths
JPH027097B2 (en)
US6463483B1 (en) Low latency input-output interface
JPH01271838A (en) Microprogram branching method
EP0374830A2 (en) Control store address generator for developing unique instruction execution starting address
JPS61180346A (en) Microcomputer
JPS62232036A (en) Information processor
JPH01273132A (en) Microprocessor
KR950006585B1 (en) Micro program control apparatus and control method thereof
JPS5835660A (en) Microprocessor
JPH07111709B2 (en) Array processor system
JPS63271567A (en) Asymmetric closely-coupled multiprocessor system
JPH04112251A (en) Microcomputer
JPS6260033A (en) Microprocessor control system
JPS61151745A (en) Interruption processing system
JPS63159950A (en) Memory controller
JPS5936838A (en) Controlling method of interface
JPS61148549A (en) Address extending system