JPH04112251A - Microcomputer - Google Patents
MicrocomputerInfo
- Publication number
- JPH04112251A JPH04112251A JP2232109A JP23210990A JPH04112251A JP H04112251 A JPH04112251 A JP H04112251A JP 2232109 A JP2232109 A JP 2232109A JP 23210990 A JP23210990 A JP 23210990A JP H04112251 A JPH04112251 A JP H04112251A
- Authority
- JP
- Japan
- Prior art keywords
- address
- bus
- access
- instruction
- latch
- 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
- 230000006870 function Effects 0.000 description 4
- 238000000034 method Methods 0.000 description 2
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Memory System (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は外部アドレスアクセス機能を有するマイクロコ
ンピュータに関し、特に外部アクセスG二おけるアドレ
ス制御手段に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer having an external address access function, and particularly to address control means in external access G2.
従来外部アドレスアクセス機能を有するマイクロコンピ
ュータにおいては1回の外部アクセス動作でアクセスす
ることができる外部容量は内部アドレスバスの本数によ
って制限されていた。第4図はこの関係すなわち内部ア
ドレスバスの本数とそれによってアクセスできる外部容
量との関係を示すもので、16ビツトのアドレスバス3
3では64にバイトの外部容量しかアクセスできず、2
0ビツトアドレスバス34では1Mバイトの外部空間し
かアクセスできない。この容量よりも大きな容量空間を
アクセスできる機能をもつ拡張アドレスアクセス手段を
実現する方法としては、外部アクセス命令の前にアドレ
スバスで可能なアドレスよりも上位のアドレスを外部デ
バイスに対してあらかじめ出力しておくのが一般的な方
法であった。Conventionally, in microcomputers having an external address access function, the external capacity that can be accessed in one external access operation is limited by the number of internal address buses. Figure 4 shows this relationship, that is, the relationship between the number of internal address buses and the external capacity that can be accessed by them.
3, only 64 bytes of external capacity can be accessed, and 2
The 0-bit address bus 34 can only access 1M byte of external space. A method for realizing an extended address access means that has the function of accessing a capacity space larger than this capacity is to output an address higher than the address possible on the address bus to the external device in advance before issuing an external access command. The common method was to keep it.
第5図は従来の拡張アドレスのアクセスを実現する命令
群の例を示し、第6図はそのための手段のブロック図の
例を示す。この例では16ビットのアドレスバスをもつ
マイクロコンピュータで通常の250倍の16Mバイト
の外部空間をアクセスしている。第5図(a)の命令3
5はアドレスバスでアクセス可能な16ビツトのアドレ
スよりも上位の8ビツトのアドレスをデータアクセスで
第6図のADHレジスタ38にラッチさせるための命令
である。この命令によって第6図のブロック図では8ビ
ツトのデータバス37からADHレジスタ38にラッチ
されると同時に8ビツトのアドレスバス39を介して外
部デバイス41に出力することになる。次に第5図(b
)の命令36で3456H番地にAを書き込む。この一
連の操作によって第6図の8ビツトのアドレスバス39
と16ビツトのアドレスバ40との合計24ビツトのア
ドレスバスによって123456H番地にAを書き込ん
だことになる。従って最上位アドレスが頻繁に変化する
アドレスへのアクセスの場合は常に2つの命令を実行す
る必要があった。FIG. 5 shows an example of a group of instructions for realizing conventional extended address access, and FIG. 6 shows an example of a block diagram of means for that purpose. In this example, a microcomputer with a 16-bit address bus accesses an external space of 16 Mbytes, which is 250 times the normal size. Instruction 3 in Figure 5(a)
5 is an instruction for causing the ADH register 38 in FIG. 6 to latch the 8-bit address higher than the 16-bit address accessible by the address bus in data access. In the block diagram of FIG. 6, this instruction causes the 8-bit data bus 37 to be latched into the ADH register 38 and simultaneously output to the external device 41 via the 8-bit address bus 39. Next, Figure 5 (b
) writes A to address 3456H with instruction 36. Through this series of operations, the 8-bit address bus 39 in FIG.
A is written to address 123456H using a total of 24 bits of address bus including 16 bits of address bus 40 and 16 bits of address bus 40. Therefore, when accessing an address whose most significant address changes frequently, it is necessary to always execute two instructions.
上述した従来のマイクロコンピュータにおける外部アク
セス機能では、内部アドレスがアクセスできる外部容量
を越えてのアクセスの場合アドレスバスで指定可能なア
ドレスよりも更に上位のアドレスを指定しておくための
本来余分な命令を付加しなければならず、アクセス時間
が非常に長くなるという欠点があった。In the external access function of the conventional microcomputer described above, in the case of an access exceeding the external capacity that can be accessed by an internal address, an extra instruction is originally required to specify an address higher than the address that can be specified on the address bus. has to be added, resulting in a very long access time.
したがって本発明の目的は、アクセス時間を長くせずに
拡張アドレスアクセスを実行することのできるマイクロ
コンピュータを提供することにある。SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a microcomputer that can perform extended address access without increasing access time.
本発明のマイクロコンピュータは、通常のマイクロコン
ピュータが持つアドレスバス、データバスおよびアクセ
ス制御線の他に拡張外部アクセス命令に含まれる拡張ア
ドレス情報を直接外部へ出力する端子を設け、プログラ
ムから読み出した命令が拡張外部アクセス命令であるこ
とを検出して外部アクセスのアドレス情報を送出すると
ともに前記端子から拡張アドレス情報を送出することを
特徴とする。In addition to the address bus, data bus, and access control line that a normal microcomputer has, the microcomputer of the present invention is provided with a terminal for directly outputting extended address information included in an extended external access instruction to the outside, and has a terminal that outputs extended address information included in an extended external access instruction directly to the outside. The present invention is characterized in that it detects that the command is an extended external access command and sends address information for external access, and also sends extended address information from the terminal.
次に本発明をその一実施例について図面を用いて説明す
る。Next, one embodiment of the present invention will be described with reference to the drawings.
第1図を参照すると、本発明の実施例においては拡張ア
ドレスの外部アクセスを実現するために、拡張アドレス
情報すなわち内部アドレスバスで指定可能なアドレスよ
りも上位のアドレスを出力するための最上位アドレス出
力端子7を設け、この出力端子7に最上位アドレスバス
31を介して最上位アドレススレーブラッチ16を接続
している。ラッチ16にはバス30を介して最上位アド
レスマスタラッチ15が接続し、両ラッチ1516はマ
イクロプログラム12によって制御信号線5.6を介し
て制御される。Referring to FIG. 1, in the embodiment of the present invention, in order to realize external access to the extended address, the most significant address is used to output extended address information, that is, an address higher than the address that can be specified on the internal address bus. An output terminal 7 is provided, and the highest address slave latch 16 is connected to the output terminal 7 via the highest address bus 31. The most significant address master latch 15 is connected to the latch 16 via the bus 30, and both latches 1516 are controlled by the microprogram 12 via the control signal line 5.6.
この実施例は、内部ビットアドレスバスの8ビツトCP
Uで16Mバイトの外部空間を直接アクセスするもので
ある。プログラムメモリ1oがら読み出された命令コー
ド(命令の1バイト目)はメモリ出力バス28を通って
プログラムデータラッチ11にラッチされ、次いでプロ
グラムデータバス29を通ってマイクロプログラム12
に送られ命令の種類が判別される。命令の2バイト目は
、外部アクセス命令であれば最上位のアドレスに相当す
るためプログラムメモリ10からメモリ出力バス28を
介してプログラムデータラッチ11に送られると同時に
、プログラムメモリ10からメモリ出力バス28を介し
て最上位アドレスマスタラッチ15にも送られる。この
動作は外部アクセス命令に限らず全ての命令で実行され
る。そして命令の1バイト目の命令コード判別がマイク
ロプログラム12で行なわれた結果、外部アクセス命令
であると判別されたときのみ制御線5.6を介して最上
位アドレスマスタラッチ15および最上位アドレススレ
ーブラッチ16を制御し、ラッチ15の内容(すなわち
この場合は最上位アドレス)がマスタラッチ15からマ
スタラッチ出力バス30を介して最上位アドレススレー
ブラッチ16へ送られ、外部アクセスタイミングに同期
して最上位アドレスバス31を介して最上位アドレスバ
ス出力端子7へ出力される。下位アドレスはアドレス生
成回路13からアドレスバス32を経てアドレスバス出
力端子8がら出力される。This embodiment uses the 8-bit CP of the internal bit address bus.
U directly accesses the 16 MB external space. The instruction code (first byte of the instruction) read from the program memory 1o passes through the memory output bus 28 and is latched into the program data latch 11, and then passes through the program data bus 29 to the microprogram 12.
The type of command is determined. The second byte of the instruction corresponds to the highest address if it is an external access instruction, so it is sent from the program memory 10 to the program data latch 11 via the memory output bus 28, and at the same time it is sent from the program memory 10 to the memory output bus 28. It is also sent to the highest address master latch 15 via the address. This operation is executed not only for external access instructions but also for all instructions. Then, as a result of the instruction code determination of the first byte of the instruction performed by the microprogram 12, only when it is determined that it is an external access instruction, the highest address master latch 15 and the highest address slave are transmitted via the control line 5.6. The latch 16 is controlled, and the contents of the latch 15 (that is, the highest address in this case) are sent from the master latch 15 to the highest address slave latch 16 via the master latch output bus 30, and the highest address is synchronized with external access timing. It is output to the highest address bus output terminal 7 via the bus 31. The lower address is outputted from the address generation circuit 13 via the address bus 32 and from the address bus output terminal 8.
第2図および第3図をも参照して外部アクセスのタイミ
ングを説明する。第2図(a)に外部アクセス命令17
の二一モニックを示し、第2図(b)にそのhexデー
タを示す。この命令は123456H番地にAレジスタ
の内容を書き込む命令であり、命令の1バイト目18は
外部アクセス命令を示す命令コード“’ 78 H”で
あり、命令の2バイト目19はアドレスの最上位“12
H”。The timing of external access will be explained with reference also to FIGS. 2 and 3. External access command 17 is shown in FIG. 2(a).
The hex data is shown in FIG. 2(b). This instruction is an instruction to write the contents of the A register to address 123456H, the first byte 18 of the instruction is an instruction code "' 78 H" indicating an external access instruction, and the second byte 19 of the instruction is the most significant address " 12
H”.
を、3バイト目20は上位アドレス“34H”を、4バ
イト目21は下位アドレス“’ 56 H”をそれぞれ
示す。第3図にはクロックと対比させてこの命令のフェ
ッチと命令の実行(ステップ22〜27)および各ラッ
チ15.16とアドレスバス31,32の信号の時間関
係を示す、最上位アドレスである命令の2バイト目19
がフェッチされると同時に最上位マスタラッチ15にも
ラッチされる。命令コード18により外部アクセス命令
であることを判断すると、最上位マスタラッチ15の内
容は最上位スレーブラッチ16に転送される。そして、
外部アクセスサイクルの期間にアドレスバス32からの
上位および下位のアドレス” 3456 H”の出力に
同期して最上位スレーブラッチ16の内容“12H”が
最上位アドレスバス31から端子7へ出力される。, the third byte 20 indicates the upper address "34H", and the fourth byte 21 indicates the lower address "'56H". FIG. 3 shows the fetching and execution of this instruction (steps 22 to 27) and the time relationship of the signals on each latch 15, 16 and the address bus 31, 32 in comparison with the clock, and shows the instruction at the highest address. 2nd byte of 19
is also latched in the highest master latch 15 at the same time as it is fetched. When the instruction code 18 determines that it is an external access command, the contents of the highest master latch 15 are transferred to the highest slave latch 16. and,
During the external access cycle, the content "12H" of the highest slave latch 16 is output from the highest address bus 31 to the terminal 7 in synchronization with the output of the upper and lower addresses "3456 H" from the address bus 32.
以上説明したように本発明によれば外部アクセス手段と
して拡張アドレス情報を直接外部へ出力する端子を付加
したことにより、アドレスバス本数をn本として、2n
の容量を越える外部アクセスが連続した場合でも通常の
外部アクセスと同等のアクセス時間で動作することがで
きるという効果がある。As explained above, according to the present invention, by adding a terminal for directly outputting extended address information to the outside as an external access means, assuming the number of address buses to be n, 2n
This has the advantage that even if external accesses that exceed the capacity of the system occur continuously, the operation can be performed in the same access time as normal external accesses.
第1図は本発明の一実施例のブロック図、第2図(a)
および(b)は実施例における拡張アドレス命令を示す
図、第3図は実施例の動作を示すタイミング図、第4図
はアドレスバス本数によるアクセス可能な外部容量を示
す図、第5図(a)および(b)は従来の外部アクセス
命令を示す図、第6図は従来例の外部アクセス部分のブ
ロック図である。
7・・・最上位アドレス出力端子、8・・・アドレスバ
ス出力端子、1o・・・プログラムメモリ、11・・・
プログラムデータラッチ、12・・・マイクロプログラ
ム、13・・・アドレス生成回路、15・・・最上位ア
ドレスマスタラッチ、16・・・最上位アドレススレー
ブラッチ、28・・・メモリ出力バス、29・・・プロ
グラムデータバス、3o・・・マスタラッチ出力バス、
31・・・最上位アドレスバス、32・・・アドレスバ
ス、18・・・命令の1バイト目(命令コード)19・
・・命令の2バイト目、2o・・・命令の3バイト目、
21・・・命令の4バイト目、22〜27・・・命令の
実行ステップ、33・・・16ビツトアドレスバス、3
4・・・20ビツトアドレスバス、37・・・データバ
ス、38・・・アドレスラッチ、39・・・最上位アド
レスバス、40・・・アドレスバス、17,35゜36
・・・命令。Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2(a)
3 is a timing diagram showing the operation of the embodiment, FIG. 4 is a diagram showing accessible external capacity depending on the number of address buses, and FIG. ) and (b) are diagrams showing conventional external access instructions, and FIG. 6 is a block diagram of the external access part of the conventional example. 7...Most significant address output terminal, 8...Address bus output terminal, 1o...Program memory, 11...
Program data latch, 12... Micro program, 13... Address generation circuit, 15... Most significant address master latch, 16... Most significant address slave latch, 28... Memory output bus, 29...・Program data bus, 3o...master latch output bus,
31...Most significant address bus, 32...Address bus, 18...1st byte of instruction (instruction code) 19.
...2nd byte of the instruction, 2o...3rd byte of the instruction,
21...4th byte of instruction, 22-27...instruction execution step, 33...16-bit address bus, 3
4...20-bit address bus, 37...Data bus, 38...Address latch, 39...Most significant address bus, 40...Address bus, 17, 35°36
···order.
Claims (1)
タにおいて、拡張外部アクセス命令に含まれる拡張アド
レス情報を直接外部へ出力する端子を設け、プログラム
から読み出した命令が拡張外部アクセス命令であること
を検出して外部アクセスのアドレス情報を送出するとと
もに前記端子から拡張アドレス情報を送出することを特
徴とするマイクロコンピュータ。A microcomputer with an external address access function is equipped with a terminal that directly outputs the extended address information included in the extended external access instruction to the outside, and detects that the instruction read from the program is an extended external access instruction and performs external access. A microcomputer characterized in that it transmits address information and also transmits extended address information from the terminal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2232109A JPH04112251A (en) | 1990-08-31 | 1990-08-31 | Microcomputer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2232109A JPH04112251A (en) | 1990-08-31 | 1990-08-31 | Microcomputer |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04112251A true JPH04112251A (en) | 1992-04-14 |
Family
ID=16934149
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2232109A Pending JPH04112251A (en) | 1990-08-31 | 1990-08-31 | Microcomputer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04112251A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2021508878A (en) * | 2017-12-28 | 2021-03-11 | シリコン モーション インコーポレイティッドSilicon Motion Inc. | Flash memory controller, SD card device, method used in flash memory controller, and host device coupled to SD card device |
-
1990
- 1990-08-31 JP JP2232109A patent/JPH04112251A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2021508878A (en) * | 2017-12-28 | 2021-03-11 | シリコン モーション インコーポレイティッドSilicon Motion Inc. | Flash memory controller, SD card device, method used in flash memory controller, and host device coupled to SD card device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS61175845A (en) | Microprocessor system | |
| JPS61156358A (en) | Bus converter | |
| JPH0248747A (en) | Microprocessor | |
| JPS5925254B2 (en) | Digital data processing equipment | |
| JPH0140366B2 (en) | ||
| JPH04112251A (en) | Microcomputer | |
| JPH0344748A (en) | Read control system for memory data | |
| JPH04171542A (en) | Microprocessor containing debugging function | |
| JPS603049A (en) | Bus interface apparatus | |
| JPH03276357A (en) | I/O address conversion method | |
| JPS623353A (en) | Address space expanding device | |
| JPH0373040A (en) | Cache memory | |
| JP3269435B2 (en) | Bus interface unit | |
| JP3242474B2 (en) | Data processing device | |
| JPH0212358A (en) | Data transfer system | |
| JP2513846B2 (en) | Vector instruction generation method | |
| JPH03182956A (en) | Buffer memory sharing system | |
| JPH01255933A (en) | Sweeping-out control system | |
| JPS63245757A (en) | Direct memory access controller | |
| JPH0431939A (en) | external storage device | |
| JP2002318779A (en) | Device, and access method for its register | |
| JPS6252334B2 (en) | ||
| JPH10105457A (en) | Memory control system and memory control circuitt | |
| JPH04162159A (en) | Write buffer | |
| JP2001100991A (en) | Digital signal processor |