JPH05342377A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH05342377A
JPH05342377A JP4150199A JP15019992A JPH05342377A JP H05342377 A JPH05342377 A JP H05342377A JP 4150199 A JP4150199 A JP 4150199A JP 15019992 A JP15019992 A JP 15019992A JP H05342377 A JPH05342377 A JP H05342377A
Authority
JP
Japan
Prior art keywords
mode
chip microcomputer
input
switched
output terminals
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.)
Withdrawn
Application number
JP4150199A
Other languages
Japanese (ja)
Inventor
Jiyun Ube
順 宇部
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 IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP4150199A priority Critical patent/JPH05342377A/en
Publication of JPH05342377A publication Critical patent/JPH05342377A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To easily develop a program to be stored by providing a single-chip microcomputer with the function which emulates its own operation. CONSTITUTION:With respect to single-chip microcomputers provided with a means (mode A) which switches a part of input/output terminals to an internal bus and an address data bus connected to an external memory and a means (mode B) which allows terminals switched by the mode A to function as normal input/output terminals and switches a part of the other input/output terminals to the internal bus, internal busses 14 of two single-chip microcomputers 11 and 12 switched to the mode A and the mode B respectively are connected, and a general PROM 13 is connected to an address data bus 15 on the mode A side, thereby equivalently emulating the operation of one single-chip microcomputers for the normal use.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はマイクロコンピュータに
関し、特にROMを内蔵したシングルチップマイクロコ
ンピュータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer, and more particularly to a single chip microcomputer containing a ROM.

【0002】[0002]

【従来の技術】従来、シングルチップマイクロコンピュ
ータは、内蔵のプログラムの開発において、実際に開発
装置上でプログラムのテストやデバックを行なうため、
ROM(リード・オンリ・メモリ)を書換え可能のP
(プログラマブル)ROMに置き換えたシングルチップ
マイクロコンピュータを使用するか、シングルチップマ
イクロコンピュータの動作をエミュレートするインサー
キットエミュレータ(以下ICE)を使用している。
2. Description of the Related Art Conventionally, in developing a built-in program, a single-chip microcomputer actually tests or debugs the program on a development device.
Rewritable ROM (Read Only Memory) P
A single-chip microcomputer replaced with a (programmable) ROM is used, or an in-circuit emulator (hereinafter, ICE) that emulates the operation of the single-chip microcomputer is used.

【0003】PROM版のシングルチップマイクロコン
ピュータでは、実行用のプログラムをPROMライタに
よりPROMに書き込んだシングルチップマイクロコン
ピュータを開発装置に装着してプログラムを実行する。
エラーがあった場合には、開発装置からシングルチップ
マイクロコンピュータをはずし、修正したプログラムを
書き込み、再度実行という手順を繰り返しデバッグを行
なっている。
In the PROM version of a single-chip microcomputer, a program for execution is written in a PROM by a PROM writer, and the single-chip microcomputer is mounted on a development apparatus to execute the program.
If there is an error, the single-chip microcomputer is removed from the development device, the modified program is written, and the program is re-executed to perform debugging.

【0004】ICEを使用する場合では、シングルチッ
プマイクロコンピュータの代わりに、ICEのプローブ
を装着しホストコンピュータからプログラムをロードし
実行する。エラーがあったときは、デバッガを用いてプ
ログラムを修正、再実行という手順でデバッグを行なっ
ている。
When using ICE, instead of a single-chip microcomputer, an ICE probe is mounted and a program is loaded from a host computer and executed. When there is an error, the program is debugged by using the debugger to modify and re-execute the program.

【0005】[0005]

【発明が解決しようとする課題】従来では、PROMを
内蔵したシングルチップマイクロコンピュータが用意さ
れていない場合がある上に、PROMにプログラムを書
き込む上で一般的なROMライタを使用するとき治具を
必要とする場合が多い。またICEは非常に高価な上に
端子レベルでの電気的特性が実際のシングルチップマイ
クロコンピュータと異なると、デバッグ後のプログラム
を書き込んだROMを内蔵するシングルチップマイクロ
コンピュータを開発装置上で動作させると、期待の動作
をしないなどの問題点が発生する場合がある。
Conventionally, there is a case where a single-chip microcomputer incorporating a PROM is not prepared, and a jig is used when a general ROM writer is used for writing a program in the PROM. Often needed. Further, if the ICE is very expensive and the electrical characteristics at the terminal level are different from those of an actual single-chip microcomputer, if a single-chip microcomputer containing a ROM in which a program after debugging is written is operated on the development device. , There may be problems such as not working as expected.

【0006】従って、本発明の目的は、前記欠点を解決
し、格別の治具を必要とせず、廉価で、期待の動作をす
るようにしたマイクロコンピュータを提供することにあ
る。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to solve the above-mentioned drawbacks, to provide a microcomputer which does not require a special jig, is inexpensive, and operates as expected.

【0007】[0007]

【課題を解決するための手段】本発明のマイクロコンピ
ュータの構成は、入出力端子の一部が内部バス、外部メ
モリと接続するアドレスデータバスに切り替わる手段
(Aモード)と、Aモードで切り替わる端子は通常の入
出力端子として機能し、それ以外の入出力端子の一部が
内部バスに切り替わる手段(Bモード)とを有し、Aモ
ード側のアドレスデータバスに外部メモリを接続するこ
とで、そとみえに通常使用時のシングルチップマイクロ
コンピュータの動作をエミュレートすることを特徴とす
る。
The microcomputer of the present invention has a structure in which a part of input / output terminals is switched to an internal data bus or an address data bus connected to an external memory (A mode) and a terminal switched in A mode. Has a function (B mode) of switching a part of the other input / output terminals to the internal bus by connecting the external memory to the address data bus on the A mode side. It is characterized by emulating the operation of a single-chip microcomputer in normal use.

【0008】[0008]

【実施例】図1は本発明の一実施例の、シングルチップ
マイクロコンピュータと汎用PROMとを用いて、通常
使用時のシングルチップマイクロコンピュータをエミュ
レートするブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram of an embodiment of the present invention, which emulates a single-chip microcomputer in normal use by using a single-chip microcomputer and a general-purpose PROM.

【0009】図1において、本実施例では、Aモードに
切り替えたシングルチップマイクロコンピュータ11
と、Bモードに切り替えたシングルチップマイクロコン
ピュータ12とに内部バス14を接続する。ここで、A
モードでは、入出力端子の一部が内部バス、外部メモリ
と接続するアドレスデータバスに切り替わる手段を有
し、Bモードでは、Aモードで切り替わる端子は通常の
入出力端子として機能し、それ以外の入出力端子の一部
が内部バスに切り替わる手段を有する。
In FIG. 1, in this embodiment, a single-chip microcomputer 11 switched to A mode.
And the internal bus 14 is connected to the single chip microcomputer 12 switched to the B mode. Where A
In the mode, a part of the input / output terminals has means for switching to the internal bus and the address data bus connected to the external memory. In the B mode, the terminals switching in the A mode function as normal input / output terminals, and other terminals. It has means for switching a part of the input / output terminals to the internal bus.

【0010】Aモードのシングルチップマイクロコンピ
ュータ11には、プログラムを書き込んだ汎用PROM
メモリ13をアドレスデータバス15で接続する。
The A-mode single-chip microcomputer 11 has a general-purpose PROM in which a program is written.
The memory 13 is connected by the address data bus 15.

【0011】シングルチップマイクロコンピュータ11
には、ポートA,B,C,Dがあり、他方のシングルチ
ップマイクロコンピュータ12にはポートA,C,Dが
あり、外部に対してはポートA,B,CD,がある。
Single-chip microcomputer 11
Has ports A, B, C, D, the other single-chip microcomputer 12 has ports A, C, D, and the outside has ports A, B, CD.

【0012】これにより、通常使用時のシングルチップ
マイクロコンピュータの動作をエミュレートできるの
で、開発装置に蒸着してプログラムのデバッグを行な
う。プログラムの修正は、PROMライタで再書き込み
することで行なう。
With this, the operation of the single-chip microcomputer at the time of normal use can be emulated, and the program is debugged by vapor deposition on the development device. The program is modified by rewriting with a PROM writer.

【0013】図2は、本発明の他の実施例の、シングル
チップマイクロコンピュータとROMエミュレータを用
いて通常使用時のシングルチップマイクロコンピュータ
とをエミュレートするブロック図である。
FIG. 2 is a block diagram for emulating a single-chip microcomputer and a single-chip microcomputer in normal use by using a ROM emulator according to another embodiment of the present invention.

【0014】図2において、本実施例は、図1の汎用P
ROM13の代わりにROMエミュレータのプローブ2
3を接続して使用している。さらに、プローブ23の外
部に、ROMエミュレータがある。その他の構成は、図
1と同様である。
In FIG. 2, this embodiment is based on the general-purpose P of FIG.
ROM emulator probe 2 instead of ROM 13
3 is connected and used. Further, a ROM emulator is provided outside the probe 23. Other configurations are the same as those in FIG.

【0015】ホストコンピュータから、ROMエミュレ
ータ26にプログラムをロードし、実行する。プログラ
ムの修正は、デバッガにより行なう。
The program is loaded from the host computer into the ROM emulator 26 and executed. The program is modified by the debugger.

【0016】[0016]

【発明の効果】以上のように、本発明のシングルチップ
マイクロコンピュータは、入出力端子の一部が内部バ
ス、外部メモリと接続するアドレスデータバスに切り替
わる手段(Aモード)と、Aモードで切り替わる端子は
通常の入出力端子として機能し、それ以外の入出力端子
の一部が内部バスに切り替わる手段(Bモード)を有す
る構成をとることにより、簡単に通常使用時のシングル
チップマイクロコンピュータの動作をエミュレートする
ことができるため、PROM版の対応のあるシングルチ
ップマイクロコンピュータを選ぶ必要はないうえに、P
ROM書き込み用の治具を必要が無く、また高価なIC
Eの代わりに安価なROMエミュレータを使用できるの
で、開発費用を抑えることができ、さらにエミュレーシ
ョンを実際に使用するシングルチップマイクロコンピュ
ータで行なうため、入出力ポートの電気的特性が通常使
用時と同じなので、デバック後のプログラムを書き込ん
だROMを内蔵するシングルチップマイクロコンピュー
タを開発装置上で動作させた場合でも、電気的特性によ
る異常動作を起こさないという効果がある。
As described above, in the single-chip microcomputer of the present invention, a part of the input / output terminals is switched to the internal bus and the address data bus connected to the external memory (A mode) and the A mode. The terminal functions as a normal input / output terminal, and a part of the other input / output terminals has a means (B mode) for switching to the internal bus. , It is not necessary to select a single-chip microcomputer compatible with the PROM version.
An expensive IC that does not require a jig for writing to ROM
Since an inexpensive ROM emulator can be used instead of E, the development cost can be reduced, and since the emulation is performed by the actual single-chip microcomputer, the electrical characteristics of the I / O port are the same as in normal use. Even when a single-chip microcomputer incorporating a ROM in which a program after debugging has been written is operated on the development device, there is an effect that abnormal operation due to electrical characteristics does not occur.

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

【図1】本発明の一実施例の、シングルチップマイクロ
コンピュータと汎用PROMとを用いて、通常使用時の
シングルチップマイクロコンピュータの動作をエミュレ
ートするブロック図である。
FIG. 1 is a block diagram for emulating the operation of a single-chip microcomputer during normal use by using a single-chip microcomputer and a general-purpose PROM according to an embodiment of the present invention.

【図2】本発明の他の実施例の、シングルチップマイク
ロコンピュータとROMエミュレータとを用いて、通常
使用時のシングルチップマイクロコンピュータの動作を
エミュレートするブロック図である。
FIG. 2 is a block diagram for emulating the operation of a single-chip microcomputer during normal use by using a single-chip microcomputer and a ROM emulator according to another embodiment of the present invention.

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

11,21 Aモードのシングルチップマイコンコン
ピュータ 12,22 Bモードのシングルチップマイクロコン
ピュータ 13 プログラム内蔵の汎用PROM 14,24 内部バス 15,25 アドレスデータバス 23 ROMエミュレータのプローブ 26 ROMエミュレータ
11, 21 A-mode single-chip microcomputer computer 12, 22 B-mode single-chip microcomputer 13 General-purpose PROM with built-in program 14, 24 Internal bus 15, 25 Address data bus 23 ROM emulator probe 26 ROM emulator

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入出力端子の一部が内部バス、外部メモ
リと接続するアドレスデータバスに切り替わるAモード
と、前記Aモードで切り替わる端子は通常の入出力端子
として機能し、それ以外の入出力端子の一部が内部バス
に切り替わるBモードとを有し、前記Aモードと前記B
モードとに切り替えた二つのシングルチップマイクロコ
ンピュータの内部バスを互いに接続し、前記Aモード側
のアドレスデータバスに外部メモリを接続し、等価的に
通常使用時のシングルチップマイクロコンピュータの動
作をエミュレートできることを特徴とするマイクロコン
ピュータ。
1. An A mode in which a part of the input / output terminals is switched to an internal data bus and an address data bus connected to an external memory, and a terminal switched in the A mode functions as a normal input / output terminal, and other input / output terminals. B mode in which some of the terminals are switched to the internal bus, and the A mode and the B mode
The internal buses of the two single-chip microcomputers switched to the mode are connected to each other, and the external memory is connected to the address data bus on the A mode side, equivalently emulating the operation of the single-chip microcomputer during normal use. A microcomputer characterized by being able to do so.
【請求項2】 外部メモリが、プローグを介したROM
エミュレータである請求項1に記載のマイクロコンピュ
ータ。
2. The external memory is a ROM via a plug.
The microcomputer according to claim 1, which is an emulator.
JP4150199A 1992-06-10 1992-06-10 Microcomputer Withdrawn JPH05342377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4150199A JPH05342377A (en) 1992-06-10 1992-06-10 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4150199A JPH05342377A (en) 1992-06-10 1992-06-10 Microcomputer

Publications (1)

Publication Number Publication Date
JPH05342377A true JPH05342377A (en) 1993-12-24

Family

ID=15491688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4150199A Withdrawn JPH05342377A (en) 1992-06-10 1992-06-10 Microcomputer

Country Status (1)

Country Link
JP (1) JPH05342377A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0957431A1 (en) * 1998-05-11 1999-11-17 Alcatel Processor system and method for testing a processor system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0957431A1 (en) * 1998-05-11 1999-11-17 Alcatel Processor system and method for testing a processor system
SG81279A1 (en) * 1998-05-11 2001-06-19 Cit Alcatel Processor system and method for testing a processor system

Similar Documents

Publication Publication Date Title
US6668339B1 (en) Microprocessor having a debug interruption function
JP2006127553A (en) Central processing unit for easily testing and debugging programs
JPH011039A (en) In-circuit emulator
US5574894A (en) Integrated circuit data processor which provides external sensibility of internal signals during reset
EP1016969B1 (en) Microcontroller provided with support for debugging
JPH05342377A (en) Microcomputer
JPH0727472B2 (en) Integrated circuit with debug environment
JP2004094451A (en) On-chip jtag interface circuit and system lsi
JPH0550016B2 (en)
JPS61112247A (en) Data processor
JPS646489B2 (en)
JPH08272770A (en) Microcontroller development system
US7194401B2 (en) Configuration for in-circuit emulation of a program-controlled unit
JP2619416B2 (en) emulator
JP3265284B2 (en) emulator
KR100557918B1 (en) Error Correction Device Using Joint Test Access Group
JPS59202546A (en) Debugging device
KR100658485B1 (en) Microprocessor development system
JPH05204701A (en) System debugging method
JPH1049401A (en) Method for debugging program
JPH0343837A (en) Debugging device
JPH07319723A (en) Microcomputer system
JPS63291135A (en) Microcomputer developing device
JPH11296408A (en) Software logic simulator for incorporation unit
JP2003263338A (en) Debug function-incorporated microcomputer

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990831