JP2643803B2 - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JP2643803B2
JP2643803B2 JP5301396A JP30139693A JP2643803B2 JP 2643803 B2 JP2643803 B2 JP 2643803B2 JP 5301396 A JP5301396 A JP 5301396A JP 30139693 A JP30139693 A JP 30139693A JP 2643803 B2 JP2643803 B2 JP 2643803B2
Authority
JP
Japan
Prior art keywords
signal
address
peripheral
data
microcomputer
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.)
Expired - Lifetime
Application number
JP5301396A
Other languages
Japanese (ja)
Other versions
JPH07152599A (en
Inventor
昭典 東條
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.)
NEC Corp
Original Assignee
Nippon 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP5301396A priority Critical patent/JP2643803B2/en
Publication of JPH07152599A publication Critical patent/JPH07152599A/en
Application granted granted Critical
Publication of JP2643803B2 publication Critical patent/JP2643803B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、マイクロコンピュータ
に関し、特に複数のターゲットデバイスを1つのエミュ
レーションチップでエミュレーションできるマイクロコ
ンピュータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer, and more particularly to a microcomputer capable of emulating a plurality of target devices with one emulation chip.

【0002】[0002]

【従来の技術】第1の従来例として従来のシングルチッ
プマイクロコンピュータのエミュレーション構成図を示
す図3を参照すると、このシングルチップマイクロコン
ピュータはCPUエバリュエーションチップ2から周辺
エミュレーションチップ1(周辺エミュレーション機能
品)に対して周辺アドレス信号3、周辺データ信号4お
よび周辺書き込み信号5を出力し周辺エミュレーション
チップ1に内蔵されている所望の番地の周辺回路にデー
タを書き込む。
2. Description of the Related Art As a first prior art example, referring to FIG. 3 which shows an emulation configuration diagram of a conventional single-chip microcomputer, this single-chip microcomputer includes a CPU evaluation chip 2 and a peripheral emulation chip 1 (a peripheral emulation function product). ), A peripheral address signal 3, a peripheral data signal 4, and a peripheral write signal 5 are output to write data to a peripheral circuit at a desired address built in the peripheral emulation chip 1.

【0003】また、周辺書き込み信号5にかわって周辺
読みだし信号6が出力された場合には、所望の番地の周
辺回路のデータが周辺エミュレーションチップ1よりC
PUエバリュエーションチップ2に対して読みだされ
る。このようにCPUエバリュエーションチップ2によ
り周辺エミュレーションチップ1を制御することにより
エミュレーションができる。
When the peripheral read signal 6 is output in place of the peripheral write signal 5, the data of the peripheral circuit at the desired address is transmitted from the peripheral emulation chip 1 to the peripheral emulation chip 1.
Read to the PU evaluation chip 2. As described above, emulation can be performed by controlling the peripheral emulation chip 1 by the CPU evaluation chip 2.

【0004】図4は図3のエミュレーションチップ1に
相当するチップを本チップ仕様(マスクROM品と同等
の機能仕様)のPROM内蔵のシングルチップマイクロ
コンピュータ7で行なう場合のブロック図である。この
エミュレーションチップ1をPROM内蔵のシングルチ
ップマイクロコンピュータ7で構成する方法は従来から
行なわれている。
FIG. 4 is a block diagram in the case where a chip corresponding to the emulation chip 1 of FIG. 3 is implemented by a single-chip microcomputer 7 with a built-in PROM of this chip specification (functional specification equivalent to a mask ROM product). A method of configuring the emulation chip 1 with a single-chip microcomputer 7 with a built-in PROM has been conventionally performed.

【0005】図4を参照すると、通常のシングルチップ
マイクロコンピュータとして動作する場合、この従来の
シングルチップマイクロコンピュータは、CPU9より
PROMアドレス信号13がPROM8に出力され、P
ROM8からはPROMアドレス信号13に対応するP
ROMデータ信号14がCPU9に出力されCPU9か
らは内部書き込み信号23、内部周辺読みだし信号2
4、周辺アドレスバス25および周辺データバス26を
介して内部の周辺回路(15,16,17)に対してア
クセスを行なう構成である。
Referring to FIG. 4, when operating as a normal single-chip microcomputer, the conventional single-chip microcomputer outputs a PROM address signal 13 from a CPU 9 to a PROM 8,
From the ROM 8, the P corresponding to the PROM address signal 13
The ROM data signal 14 is output to the CPU 9 and the CPU 9 outputs the internal write signal 23 and the internal peripheral read signal 2
4. Access to internal peripheral circuits (15, 16, 17) via peripheral address bus 25 and peripheral data bus 26.

【0006】また、周辺エミュレーションチップとして
動作させる場合このシングルチップマイクロコンピュー
タは、外部エミュレーション信号10をエミュレーショ
ン入力端子11に与えて、内部エミュレーション制御信
号12によりPROM8とCPU9の上述の通常のシン
グルチップマイコンとしての動作を停止させ、周辺回路
(15,16,17)へのアクセスを停止させる。内部
エミュレーション制御信号12によりポート18、ポー
ト19およびポート20のそれぞれを制御して周辺アド
レス信号3、周辺データ信号4、周辺書き込み信号5お
よび周辺読みだし信号6のそれぞれをシングルチップマ
イクロコンピュータ7の内部に伝達させ、周辺アドレス
信号3は内部周辺アドレス信号21に、周辺データ信号
4は内部周辺データ信号22に、周辺書き込み信号5は
内部周辺書き込み信号23に、周辺読みだし信号6は内
部周辺読み出し信号24とにそれぞれなり、周辺アドレ
スバス25および周辺データバス26を介して周辺回路
(15,16,17)を動作させる構成を有する。
When operating as a peripheral emulation chip, this single-chip microcomputer supplies an external emulation signal 10 to an emulation input terminal 11 and uses an internal emulation control signal 12 as a normal single-chip microcomputer of the PROM 8 and CPU 9 described above. Is stopped, and access to the peripheral circuits (15, 16, 17) is stopped. Each of the ports 18, 19 and 20 is controlled by the internal emulation control signal 12 so that the peripheral address signal 3, the peripheral data signal 4, the peripheral write signal 5, and the peripheral read signal 6 can be controlled by the internal emulation control signal 12. The peripheral address signal 3 becomes the internal peripheral address signal 21, the peripheral data signal 4 becomes the internal peripheral data signal 22, the peripheral write signal 5 becomes the internal peripheral write signal 23, and the peripheral read signal 6 becomes the internal peripheral read signal. 24, and has a configuration for operating peripheral circuits (15, 16, 17) via a peripheral address bus 25 and a peripheral data bus 26.

【0007】以上説明したように外部エミュレーション
信号10にしたがってシングルチップマイクロコンピュ
ータ7はエミュレーションモードになり、周辺アドレス
信号3の内容と同一の信号が周辺回路(15,16,1
7)に伝達され、この周辺アドレス信号3に対応する番
地の周辺回路がアクセスされる。
As described above, the single-chip microcomputer 7 enters the emulation mode in accordance with the external emulation signal 10, and the same signal as the contents of the peripheral address signal 3 is transmitted to the peripheral circuit (15, 16, 1).
7), and the peripheral circuit at the address corresponding to the peripheral address signal 3 is accessed.

【0008】次に、第2の従来例として特開昭62−2
12859号公報に開示される入出力制御方式について
説明する。
Next, a second conventional example is disclosed in
An input / output control method disclosed in Japanese Patent No. 12859 will be described.

【0009】この第2の従来例の入出力制御方式におい
ては、入出力装置のアドレス情報を保持したデータ保持
手段とデータ保持手段の保持するデータとアドレスバス
情報の一致を検出する一致検出手段とCPUとから構成
され、一致検出手段が入出力装置に対応するアドレス情
報を検出すると、CPUは参照用ソフトウェアを起動
し、このソフトウェア処理により入出力装置に対する処
理を行う。
In the second conventional input / output control method, the data holding means holding the address information of the input / output device, and the coincidence detecting means detecting the coincidence between the data held by the data holding means and the address bus information are provided. When the coincidence detecting means detects address information corresponding to the input / output device, the CPU activates reference software and performs processing for the input / output device by this software processing.

【0010】すなわち、バスに出力されたアドレスを読
みとり、予め設定された任意のアドレスにソフトウェア
により書き換え変換する方式が記述され、その装置とし
てソフトウェアによる書き換えが可能なデータ記憶機能
とデータとの比較機能を兼備えたコンテストアドレッサ
ブルメモリが用いられている。
That is, a method of reading an address output to the bus and rewriting and converting the address to an arbitrary address set in advance by software is described. As a device, a data storage function rewritable by software and a function of comparing data with data are described. Is used.

【0011】[0011]

【発明が解決しようとする課題】しかしながら上述の第
1の従来例のPROM内蔵のシングルチップマイクロコ
ンピュータでは、エミュレーション機能品として使用す
る場合には次のような問題点があった。
However, the above-described single-chip microcomputer with a built-in PROM according to the first conventional example has the following problems when used as an emulation function product.

【0012】すなわち、図4に示す従来例の場合には周
辺回路(15,16,17)の番地は番地(A,Bおよ
びC)として製品上固定されているため、番地Aは番地
Aに相当するアドレス信号が外部より与えられた場合の
み有効であり、番地Bおよび番地Cについても番地Aと
同様である。
That is, in the case of the conventional example shown in FIG. 4, the addresses of the peripheral circuits (15, 16, 17) are fixed on the product as addresses (A, B, and C). It is valid only when the corresponding address signal is externally supplied, and the address B and the address C are the same as the address A.

【0013】そのため、このチップを使ってエミュレー
ションできる製品は搭載する周辺回路(15,16,1
7)がそれぞれ1個以内でかつその番地がそれぞれ番地
(A,BおよびC)に割りつけられたものに限られてし
まう。その結果周辺回路15を2個搭載した製品(この
場合周辺回路15の番地は番地Aと番地Dのように異な
る番地になる)のような同一周辺回路を複数内蔵したシ
ングルチップマイクロコンピュータまたは周辺回路(1
5,16,17)の番地が番地(D,EおよびF)に割
りつけられた製品のような同一周辺回路でありながら番
地が異なるシングルチップマイクロコンピュータのエミ
ュレーションができず、これらの製品のエミュレーショ
ンをするためにはエミュレーション機能を有する周辺回
路15を2個搭載したPROM内蔵シングルチップマイ
コンおよび周辺回路(15,16,17)の番地が番地
(D,EおよびF)に割りつけられたPROM内蔵シン
グルチップマイコンを開発しなければならない。そのP
ROM内蔵シングルチップマイコンの開発が終了するま
ではエミュレーション構成ができないためにソフト開発
が遅れてしまう問題点があった。
Therefore, products that can be emulated using this chip are equipped with peripheral circuits (15, 16, 1).
7) is not more than one each and the addresses are limited to those assigned to the addresses (A, B and C). As a result, a single-chip microcomputer or a peripheral circuit incorporating a plurality of identical peripheral circuits such as a product having two peripheral circuits 15 mounted thereon (in this case, the addresses of the peripheral circuits 15 are different addresses such as address A and address D) (1
5, 16, 17) cannot emulate a single-chip microcomputer having the same peripheral circuit but a different address, such as a product assigned to addresses (D, E, and F), and emulation of these products. In order to perform this operation, a single-chip microcomputer with a built-in PROM equipped with two peripheral circuits 15 having an emulation function and a built-in PROM in which the addresses of the peripheral circuits (15, 16, 17) are assigned to addresses (D, E and F) A single-chip microcomputer must be developed. That P
Until the development of a single-chip microcomputer with a built-in ROM is completed, there is a problem in that software development is delayed because an emulation configuration cannot be made.

【0014】本発明の目的はかかる問題点に鑑みてなさ
れたものであって、少数のエミュレーション機能を有す
るチップで多様な周辺回路を有する複数のターゲットデ
バイスをエミュレーションできる装置を第2の従来例の
ようなコンテストアドレッサブルメモリのような特別な
負荷回路なしに提供することができる。
SUMMARY OF THE INVENTION An object of the present invention has been made in view of the above-mentioned problems, and an apparatus capable of emulating a plurality of target devices having various peripheral circuits with a small number of chips having an emulation function is described in the second conventional example. It can be provided without a special load circuit such as a contest addressable memory.

【0015】[0015]

【課題を解決するための手段】本発明のマイクロコンピ
ュータは、中央処理装置と、PROMと、それぞれ固有
の番地を割り付けられた複数の周辺回路と、前記PRO
Mに格納されたデータを読み出し前記中央処理装置に供
給する手段とを1チップに集積したマイクロコンピュー
タであって、前記マイクロコンピュータの外部から供給
されるエミュレーションモード信号に対応して、前記中
央処理装置の動作と前記PROMの前記中央処理装置に
対する動作を停止させ、前記マイクロコンピュータの外
部から入力される前記周辺回路の番地を指定する信号
らびに前記マイクロコンピュータの外部から入力される
クロック信号、データ信号およびデータ読み書き制御信
号のそれぞれにより周辺回路の番地を指定する信号を周
辺回路に与えるアドレス信号として前記周辺回路を動作
させる手段と、前記エミュレーションモード信号に対応
して、前記周辺回路の番地を指定する信号を前記PRO
Mの番地指定の有効信号とさせる第1の手段と、前記番
地指定の有効信号に対応した前記PROMのデータを読
み出す第2の手段と、前記データを前記周辺回路の番地
を指定する有効信号とする第3の手段とを具備したマイ
クロコンピュータにおいて、前記周辺回路に与えるアド
レス信号として、前記外部から入力された周辺回路を指
定する信号を有効信号するまたは前記PROMのデータ
を有効信号とするかを選択できる第1の選択手段を設け
構成である。
A microcomputer according to the present invention comprises a central processing unit, a PROM, a plurality of peripheral circuits each assigned a unique address, and the PRO.
And a means for reading data stored in the M and supplying the data to the central processing unit on a single chip, wherein the central processing unit responds to an emulation mode signal supplied from outside the microcomputer. Operation and the central processing unit of the PROM
Operation of the peripheral circuit is stopped , and a signal for designating the address of the peripheral circuit input from outside the microcomputer.
Input from outside the microcomputer
Clock signal, data signal and data read / write control signal
Signals that specify the addresses of peripheral circuits
Operates the peripheral circuit as an address signal to be applied to the side circuit
Corresponding to the emulation mode signal
Then, a signal designating the address of the peripheral circuit is transmitted to the PRO.
First means for providing a valid signal for specifying the address of M;
Reads the PROM data corresponding to the
Second means for extracting the data and the address of the peripheral circuit
And a third means for providing an effective signal for designating the peripheral circuit.
Peripheral signal input from the outside as the
A valid signal or a PROM data
First selecting means for selecting whether or not is a valid signal is provided.
And is a configuration.

【0016】また、本発明のマイクロコンピュータの前
記第1の選択手段は、前記エミュレーションモード信号
により制御される構成とすることもできる。
Further , before the microcomputer of the present invention,
The first selecting means includes an emulation mode signal.
May be controlled by the following .

【0017】さらにまた、本発明のマイクロコンピュー
タは、前記周辺回路に与えるアドレス信号として、前記
外部から入力された周辺回路を指定する信号を有効信号
とするまたは前記PROMのデータを有効信号とするか
を選択できる前記エミュレーションモード信号とは別の
エミュレーションモード信号により制御される第2の選
択手段を設けた構成とすることもできる。
Further, the microcomputer according to the present invention may further comprise an address signal to be supplied to said peripheral circuit.
Validates a signal that specifies a peripheral circuit input from outside
Or whether the PROM data is a valid signal
Different from the emulation mode signal
Second selection controlled by emulation mode signal
It is also possible to adopt a configuration provided with selection means .

【0018】[0018]

【作用】本発明のマイクロコンピュータにおいては、内
蔵する周辺回路の番地が固定されているにもかかわら
ず、内蔵するPROM部に書き込ませたデータ内容を書
き換えることによりチップ外部から入力される周辺回路
の番地指定信号の内容によらず所望の周辺回路を選択動
作させることができる。
In the microcomputer according to the present invention, although the address of the built-in peripheral circuit is fixed, the data content written in the built-in PROM section is rewritten, so that the peripheral circuit input from outside the chip is rewritten. A desired peripheral circuit can be selectively operated irrespective of the contents of the address designating signal.

【0019】[0019]

【実施例】本発明は異なる周辺アドレスを個々に有する
複数のターゲットデバイスを最小数のエミュレーション
チップでいかにエミュレーションするかを課題としてい
る。以下、本発明の実施例を図面を参照して説明する。
図1は本発明の第1の実施例のマイクロコンピュータの
構成を示すブロック図である。
The object of the present invention is to emulate a plurality of target devices individually having different peripheral addresses with a minimum number of emulation chips. Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a microcomputer according to a first embodiment of the present invention.

【0020】図1を参照すると、本発明の第1の実施例
のマイクロコンピュータは、周辺アドレス信号3を受け
るポート18が出力する内部周辺アドレス信号21をP
ROM8に伝達する構成とし、さらにPROM8から出
力されるPROMデータ信号14と内部エミュレーショ
ン制御信号12によりこのPROMデータ信号14aを
周辺アドレスバス25に出力するよう切換える切換え回
路27を有する構成以外は、図4に示す第1の従来技術
のマイクロコンピュータと同じ構成でその同一構成要素
には同一参照符号を付して図示してある。
Referring to FIG. 1, a microcomputer according to a first embodiment of the present invention outputs an internal peripheral address signal 21 output from a port 18 receiving a peripheral address signal 3 to P.
4 except that the switching circuit 27 is configured to transmit the PROM data signal 14a to the peripheral address bus 25 in accordance with the PROM data signal 14 output from the PROM 8 and the internal emulation control signal 12. The same components as those of the first prior art microcomputer shown in FIG. 1 are denoted by the same reference numerals.

【0021】次に、本発明の第1の実施例のマイクロコ
ンピュータの動作について説明する。
Next, the operation of the microcomputer according to the first embodiment of the present invention will be described.

【0022】外部エミュレーション制御信号10が入力
されるとCPU9はPROM8や周辺回路へのアクセス
を停止する。そして周辺アドレス信号3はポート18を
介して内部周辺アドレス信号21がPROM8に伝達さ
れる。PROM8は内部エミュレーション制御信号12
により、PROM8のアドレス信号として通常はCPU
9から発生させる信号13を有効信号としているがこの
場合には、内部周辺アドレス信号21を有効信号として
選択する。
When the external emulation control signal 10 is input, the CPU 9 stops accessing the PROM 8 and peripheral circuits. As for the peripheral address signal 3, the internal peripheral address signal 21 is transmitted to the PROM 8 via the port 18. The PROM 8 has an internal emulation control signal 12
As a result, an address signal of the PROM 8
The signal 13 generated from 9 is a valid signal. In this case, the internal peripheral address signal 21 is selected as a valid signal.

【0023】PROM8からは内部周辺アドレス信号2
1で指定される番地に書き込まれているデータが読み出
されそのPROMデータ信号14となる。PROMデー
タ信号14は内部エミュレーション制御信号12により
制御される切り換え回路27を介して周辺アドレスバス
25に出力され周辺回路(15,16および17)の番
地を指定する有効信号14aとして機能し、エミュレー
ションモードにおける周辺回路の番地指定信号14aと
なる。
From the PROM 8, the internal peripheral address signal 2
The data written at the address designated by 1 is read and becomes the PROM data signal 14. The PROM data signal 14 is output to the peripheral address bus 25 via the switching circuit 27 controlled by the internal emulation control signal 12, and functions as a valid signal 14a for specifying the address of the peripheral circuit (15, 16 and 17). Becomes the address designating signal 14a of the peripheral circuit.

【0024】このように周辺アドレス信号3の内容が番
地A、番地Bおよび番地Cの内容に対応しない内容(例
えば番地D、番地Eおよび番地F)の場合でもPROM
8にあらかじめ書き込むデータとして番地Dのところに
番地Aの内容を、番地Eのところに番地Bの内容を、番
地Fのところに番地Cの内容をそれぞれ書き込んでおく
ことにより、PROMデータ信号14としては周辺アド
レス信号3が番地Dの時番地Aのアドレス内容が出力さ
れ、周辺回路15をアクセスできる。同様に周辺アドレ
ス信号3が番地Eの時周辺回路16をアクセスでき、周
辺アドレス信号3が番地Fの時周辺回路17をアクセス
することができる。
As described above, even when the contents of the peripheral address signal 3 do not correspond to the contents of the addresses A, B and C (for example, addresses D, E and F), the PROM is used.
By writing the contents of the address A at the address D, the contents of the address B at the address E, and the contents of the address C at the address F as data to be written in advance to the PROM data signal 8, When the peripheral address signal 3 is the address D, the address content of the address A is output and the peripheral circuit 15 can be accessed. Similarly, when the peripheral address signal 3 is at the address E, the peripheral circuit 16 can be accessed, and when the peripheral address signal 3 is at the address F, the peripheral circuit 17 can be accessed.

【0025】以上説明したように、機能仕様の同一な周
辺回路であればその番地がいかなる内容になっているタ
ーゲットデバイスでも1つのエミュレーションチップで
エミュレーションできる。
As described above, a target device having any address can be emulated by a single emulation chip as long as the peripheral circuit has the same functional specification.

【0026】また、ターゲットデバイスが周辺回路15
に相当する2個の周辺回路を搭載し、それぞれの番地が
番地Aおよび番地Dの場合のエミュレーションをする場
合には、本エミュレーションチップを2個使用し、一方
のエミュレーションチップのPROMデータとして番地
Aのところに番地Aの内容を書き込み、他方のエミュレ
ーションチップのPROMデータとして番地Dのところ
に番地Aの内容を書き込んでおくことにより、周辺アド
レス信号3の内容が番地Aの時には一方のエミュレーシ
ョンの周辺回路がアクセスされ、周辺アドレス信号3の
内容が番地Dの時には他方の周辺回路がアクセスされ、
本エミュレーションチップでエミュレーションが可能と
なる。
The target device is a peripheral circuit 15
In the case where two peripheral circuits corresponding to the above are mounted and each address is an address A and an address D, two emulation chips are used, and the address A is used as PROM data of one emulation chip. Is written at the address D as the PROM data of the other emulation chip, and the contents of the address A are written at the address D at the address D, so that when the contents of the peripheral address signal 3 are the address A, the peripheral of one emulation is written. When the circuit is accessed and the content of the peripheral address signal 3 is address D, the other peripheral circuit is accessed,
Emulation is possible with this emulation chip.

【0027】また第1の従来例のマイクロコンピュータ
の周辺アドレス信号3をPROM8に伝達するパスはP
ROM内蔵シングルチップマイクロコンピュータにて通
常有するチップ外部からPROMにデータを書き込むモ
ードのパスを利用することができ、PROMデータ信号
14を切り換え回路27を介して周辺アドレスバス25
に出力するパスはシングルチップマイクロコンピュータ
における通常の周辺回路に対する転送命令にあるような
CPUの制御によりPROMから読み出されたデータを
番地指定内容の場合に直接周辺アドレスバスに出力する
パスを利用することができる。
The path for transmitting the peripheral address signal 3 of the microcomputer of the first conventional example to the PROM 8 is P
A single-chip microcomputer with a built-in ROM can use a path for writing data to the PROM from outside the chip, which is usually provided by the single-chip microcomputer. The PROM data signal 14 is transferred to the peripheral address bus 25 via the switching circuit 27.
The path for outputting the data read from the PROM under the control of the CPU under the control of the CPU as in the transfer instruction to the normal peripheral circuit in the single-chip microcomputer directly to the peripheral address bus is used. be able to.

【0028】以上説明したように外部エミュレーション
制御信号12に対応させて周辺アドレス信号3をPRO
M8に伝達することおよびPROMデータ信号14を周
辺アドレスバス25に出力させることを制御することに
より、特別な回路を追加させてチップ面積を大きくする
ことなく複数のターゲットデバイスを1つのエミュレー
ションチップでエミュレーションできることが可能とな
る。
As described above, the peripheral address signal 3 is set to the PRO level in accordance with the external emulation control signal 12.
By controlling the transmission to the M8 and the output of the PROM data signal 14 to the peripheral address bus 25, a plurality of target devices can be emulated by one emulation chip without adding a special circuit and increasing the chip area. What you can do is possible.

【0029】次に、本発明の第2の実施例のマイクロコ
ンピュータについて説明する。本発明の第2の実施例の
マイクロコンピュータのブロック図を示す図2を参照す
ると、この実施例のマイクロコンピュータは、第1の実
施例のマイクロコンピュータの構成要素に、外部エミュ
レーション制御信号29とその信号を入力するエミュレ
ーション入力端子30と内部エミュレーション制御信号
31と内部エミュレーション制御信号31により制御さ
れ内部周辺アドレス信号21を周辺アドレスバス25の
出力するアドレス信号21aとPROM8へ伝達するア
ドレス信号21bとを切換える切り換え回路28を付加
する構成である。
Next, a microcomputer according to a second embodiment of the present invention will be described. Referring to FIG. 2, which is a block diagram of a microcomputer according to a second embodiment of the present invention, the microcomputer according to the second embodiment includes an external emulation control signal 29 and an external emulation control signal 29 as components of the microcomputer according to the first embodiment. An emulation input terminal 30 for inputting a signal, an internal emulation control signal 31, and an internal peripheral address signal 21 controlled by the internal emulation control signal 31 are switched between an address signal 21 a output from a peripheral address bus 25 and an address signal 21 b transmitted to the PROM 8. This is a configuration in which a switching circuit 28 is added.

【0030】さらに、この実施例のマイクロコンピュー
タは、切り換え回路7を内部エミュレーション制御信
号31で制御する構成にし、かつ、内部エミュレーショ
ン制御信号31をPROM8に入力する構成で、それ以
外の構成要素は、第1の実施例のマイクロコンピュータ
と同一で同一構成要素には同一参照符号を付してある。
Furthermore, the microcomputer of this embodiment, the configuration for controlling the switching circuit 2 7 inside the emulation control signal 31, and a configuration of inputting the internal emulation control signal 31 to the PROM 8, the other components The same components as those of the microcomputer of the first embodiment are denoted by the same reference numerals.

【0031】この第2の実施例のマイクロコンピュータ
の動作は第1の実施例のマイクロコンピュータの動作と
全く同じなのでその詳細な説明は省略する。
The operation of the microcomputer according to the second embodiment is exactly the same as the operation of the microcomputer according to the first embodiment, and a detailed description thereof will be omitted.

【0032】このように、エミュレーション機能を外部
エミュレーション信号10と外部エミュレーション制御
信号29とで制御する構成をとることにより周辺アドレ
ス信号3をそのままの内容で周辺アドレスバス25に接
続しアドレス変換しない場合とPROM8を介して接続
しアドレス変換する場合とを切り換えることができる。
As described above, by adopting a configuration in which the emulation function is controlled by the external emulation signal 10 and the external emulation control signal 29, the case where the peripheral address signal 3 is connected to the peripheral address bus 25 as it is and the address conversion is not performed. It is possible to switch between the case where the connection is performed via the PROM 8 and the address conversion is performed.

【0033】[0033]

【発明の効果】以上述べたように本発明は、PROM内
蔵シングルチップマイクロコンピュータにおいて、エミ
ュレーション制御信号をPROMに対するアドレスライ
ンと周辺回路に対するアドレスラインとを切り換え、内
蔵するPROMをアドレス変換に使用することで、エミ
ュレーションチップに内蔵される周辺回路の番地が固定
されているにもかかわらず、PROMのデータを書き換
えるだけで複数のターゲットデバイスのエミュレーショ
が可能となる。
As described above, according to the present invention, in a single-chip microcomputer with a built-in PROM, an emulation control signal is switched between an address line for a PROM and an address line for a peripheral circuit, and the built-in PROM is used for address conversion. Thus, emulation of a plurality of target devices can be performed only by rewriting the data in the PROM, even though the addresses of the peripheral circuits incorporated in the emulation chip are fixed.

【0034】そのため、エミュレーションチップを新た
に開発する期間と費用と金額を大幅に削減できるという
効果とともに、ユーザーに対して短期間にソフト開発環
境を提供できデバッグ期間を大きくとれるという効果を
有する。
Therefore, the period for newly developing an emulation chip, the cost and the amount of money can be greatly reduced, and the software development environment can be provided to the user in a short time, so that the debugging period can be extended.

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

【図1】本発明の第1の実施例のマイクロコンピュータ
のブロック図である。
FIG. 1 is a block diagram of a microcomputer according to a first embodiment of the present invention.

【図2】本発明の第2の実施例のマイクロコンピュータ
のブロック図である。
FIG. 2 is a block diagram of a microcomputer according to a second embodiment of the present invention.

【図3】シングルチップマイクロコンピュータのエミュ
レーション構成図である。
FIG. 3 is an emulation configuration diagram of a single-chip microcomputer.

【図4】従来のエミュレーション機能を有するシングル
チップマイコンのブロック図である。
FIG. 4 is a block diagram of a conventional single-chip microcomputer having an emulation function.

【符号の説明】[Explanation of symbols]

1 周辺エミュレーションチップ 2 CPUエバリュエーションチップ 3 周辺アドレス信号 4 周辺データ信号 5 周辺書き込み信号 6 周辺読み出し信号 7 シングルチップマイクロコンピュータ 8 PROM 9 CPU 10 外部エミュレーション制御信号 11 エミュレーション制御信号 12 内部エミュレーション制御信号 13 PROMアドレス信号 14,14a PROMデータ信号 15 周辺回路(番地A) 16 周辺回路(番地B) 17 周辺回路(番地C) 18,19,20 ポート 21,21a,21b 内部周辺アドレス信号 22 内部周辺データ信号 23 内部周辺書き込み信号 24 内部周辺読みだし信号 25 周辺アドレスバス 26 周辺データバス 27,28 切り換え回路 29 外部エミュレーション制御信号 30 エミュレーション入力端子 31 内部エミュレーション制御信号 1 peripheral emulation chip 2 CPU evaluation chip 3 peripheral address signal 4 peripheral data signal 5 peripheral write signal 6 peripheral read signal 7 single chip microcomputer 8 PROM 9 CPU 10 external emulation control signal 11 emulation control signal 12 internal emulation control signal 13 PROM Address signal 14, 14a PROM data signal 15 Peripheral circuit (address A) 16 Peripheral circuit (address B) 17 Peripheral circuit (address C) 18, 19, 20 Port 21, 21a, 21b Internal peripheral address signal 22 Internal peripheral data signal 23 Internal peripheral write signal 24 Internal peripheral read signal 25 Peripheral address bus 26 Peripheral data bus 27, 28 switching circuit 29 External emulation control signal 30 Emulation Shon input terminal 31 internal emulation control signals

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 中央処理装置と、PROMと、それぞれ
固有の番地を割り付けられた複数の周辺回路と、前記P
ROMに格納されたデータを読み出し前記中央処理装置
に供給する手段とを1チップに集積したマイクロコンピ
ュータであって、前記マイクロコンピュータの外部から
供給されるエミュレーションモード信号に対応して、前
記中央処理装置の動作と前記PROMの前記中央処理装
置に対する動作を停止させ、前記マイクロコンピュータ
の外部から入力される前記周辺回路の番地を指定する信
ならびに前記マイクロコンピュータの外部から入力さ
れるクロック信号、データ信号およびデータ読み書き制
御信号のそれぞれにより周辺回路の番地を指定する信号
を周辺回路に与えるアドレス信号として前記周辺回路を
動作させる手段と、前記エミュレーションモード信号に
対応して、前記周辺回路の番地を指定する信号を前記P
ROMの番地指定の有効信号とさせる第1の手段と、前
記番地指定の有効信号に対応した前記PROMのデータ
を読み出す第2の手段と、前記データを前記周辺回路の
番地を指定する有効信号とする第3の手段とを具備した
マイクロコンピュータにおいて、前記周辺回路に与える
アドレス信号として、前記外部から入力された周辺回路
を指定する信号を有効信号するまたは前記PROMのデ
ータを有効信号とするかを選択できる第1の選択手段を
設けたことを特徴とするマイクロコンピュータ。
A central processing unit; a PROM; a plurality of peripheral circuits each assigned a unique address;
Means for reading data stored in the ROM and supplying the read data to the central processing unit on a single chip, wherein the central processing unit responds to an emulation mode signal supplied from outside the microcomputer. Operation and the central processing unit of the PROM
Operation of the peripheral circuit is stopped , and a signal designating the address of the peripheral circuit inputted from outside the microcomputer and a signal inputted from outside the microcomputer are inputted.
Clock signal, the signal that specifies the address of the peripheral circuits by the respective data signal and a data read-write control signal
To the peripheral circuit as an address signal for giving
Means for operating, and the emulation mode signal
Correspondingly, a signal designating the address of the peripheral circuit
A first means for providing a valid signal for designating a ROM address;
PROM data corresponding to a valid signal for specifying an address
Second means for reading out the data from the peripheral circuit.
In <br/> microcomputer provided with the third means for an effective signal specifying the address, given to the peripheral circuit
Peripheral circuit input from outside as the address signal
Valid signal or specify the data of the PROM.
First selection means for selecting whether the data is a valid signal
A microcomputer characterized by being provided .
【請求項2】 前記第1の選択手段は前記エミュレーシ
ョンモード信号により制御される請求項1記載のマイク
ロコンピュータ。
2. The emulator according to claim 1, wherein
2. The microcomputer according to claim 1, wherein the microcomputer is controlled by an operation mode signal .
【請求項3】 前記周辺回路に与えるアドレス信号とし
て、前記外部から入力された周辺回路を指定する信号を
有効信号とするまたは前記PROMのデータを有効信号
とするかを選択できる前記エミュレーションモード信号
とは別のエミュレーションモード信号により制御される
第2の選択手段を設けたことを特徴とする請求項1また
は2記載のマイクロコンピュータ。
3. An address signal applied to the peripheral circuit.
A signal designating the peripheral circuit input from the outside.
A valid signal, or the PROM data as a valid signal
Emulation mode signal for selecting whether to
Controlled by another emulation mode signal
3. The microcomputer according to claim 1 , further comprising a second selection unit .
JP5301396A 1993-12-01 1993-12-01 Microcomputer Expired - Lifetime JP2643803B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5301396A JP2643803B2 (en) 1993-12-01 1993-12-01 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5301396A JP2643803B2 (en) 1993-12-01 1993-12-01 Microcomputer

Publications (2)

Publication Number Publication Date
JPH07152599A JPH07152599A (en) 1995-06-16
JP2643803B2 true JP2643803B2 (en) 1997-08-20

Family

ID=17896365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5301396A Expired - Lifetime JP2643803B2 (en) 1993-12-01 1993-12-01 Microcomputer

Country Status (1)

Country Link
JP (1) JP2643803B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63188225A (en) * 1987-01-31 1988-08-03 Toshiba Corp Self-diagnosing device for printer

Also Published As

Publication number Publication date
JPH07152599A (en) 1995-06-16

Similar Documents

Publication Publication Date Title
US5175831A (en) System register initialization technique employing a non-volatile/read only memory
US5944806A (en) Microprocessor with versatile addressing
KR0142033B1 (en) Micro computer
US5168559A (en) Emulation system capable of complying with microcomputers having different on-chip memory capacities
US5754863A (en) System for downloading program code to a microprocessor operative as a slave to a master microprocessor
US4344130A (en) Apparatus to execute DMA transfer between computing devices using a block move instruction
JP2000194551A (en) Flash memory rewriting circuit
JP2643803B2 (en) Microcomputer
US4814977A (en) Apparatus and method for direct memory to peripheral and peripheral to memory data transfers
JPH03668B2 (en)
JP2597409B2 (en) Microcomputer
US20020004877A1 (en) Method and system for updating user memory in emulator systems
JPH06103106A (en) Program debug device
JPH0756847A (en) Portable computer
JP3283505B2 (en) Microcomputer
JPS6239450B2 (en)
JP3481666B2 (en) Method and apparatus for controlling memory access of processor
KR0171173B1 (en) One-chip microcomputer
JPH0736154B2 (en) Data storage
JP3006487B2 (en) Emulation device
JPH04148344A (en) Rom emulator
JPH0232440A (en) Storage device
JPH064469A (en) Input/output device control system
GB2226433A (en) Microcontroller peripheral expansion bus
JPH04155454A (en) Information processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970401