JPH0652010A - Testing circuit - Google Patents

Testing circuit

Info

Publication number
JPH0652010A
JPH0652010A JP4201663A JP20166392A JPH0652010A JP H0652010 A JPH0652010 A JP H0652010A JP 4201663 A JP4201663 A JP 4201663A JP 20166392 A JP20166392 A JP 20166392A JP H0652010 A JPH0652010 A JP H0652010A
Authority
JP
Japan
Prior art keywords
test
circuit
ram
rom
user
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
JP4201663A
Other languages
Japanese (ja)
Inventor
Saburo Kumagai
三郎 熊谷
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 JP4201663A priority Critical patent/JPH0652010A/en
Publication of JPH0652010A publication Critical patent/JPH0652010A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To facilitate the change of instruction data and to eliminate the restriction of a test item due to the capacity by changing the test ROM of a single chip microcomputer from a mask ROM to a RAM. CONSTITUTION:A RAM 5 capable of writing arbitray instruction data from a port at the time of test mode is provided, a selective circuit 8 for selecting the data of the RAM 5 instead of the data of a user ROM 2 and outputting them to an instruction decoder circuit 7 is provided and a test mode setting circuit 6 for executing control at the time of test mode is provided on the testing circuit for executing an operation confirmation by other instruction than that of the user ROM 2 of a single chip microcomputer. In such a manner the test of different items can by executed many times without minding the restriction of the capacity by the same sample.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はテスト回路に関し、特に
ユーザROMにより動作するシングルチップ・マイクロ
コンピュータ(マイコン)のテスト・モード時、ユーザ
ROM以外の任意の命令により動作確認を行う事ができ
るテスト回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test circuit, and more particularly to a test capable of confirming the operation by an arbitrary instruction other than the user ROM in a test mode of a single chip microcomputer (microcomputer) operating by the user ROM. Regarding the circuit.

【0002】ここで、ユーザROMとは、ユーザの命令
データを格納したリード・オンリ・メモリをいう。RA
Mとは、モード1時にポートからの任意のデータを書き
込む事が可能なランダム・アクセス・メモリをいう。
Here, the user ROM refers to a read only memory that stores user command data. RA
M is a random access memory capable of writing arbitrary data from the port in mode 1.

【0003】[0003]

【従来の技術】従来、ユーザROM以外の任意の命令に
より動作確認を行う為のシングルチップマイコンのテス
ト回路では、図3に示す様に、ユーザの命令データを格
納したユーザROM21と、このユーザROM21のア
ドレスを示すユーザROMアドレス設定回路20と、テ
ストモード時にシングルチップマイコンの動作を確認す
る為、任意の命令データを格納したテストROM22
と、このテストROM22のアドレスを示すテストRO
Mアドレス設定回路23と、通常時はユーザROM21
の出力信号を選択し、テストモード時テストROM21
の出力信号を選択する選択回路25と、この選択回路2
5からの出力信号をデコードしてシングルチップマイコ
ンの動作をさせる為の命令信号を出力する命令デコーダ
回路24と、通常時とテストモードとを切り換えるテス
トモード設定回路26とを有していた。
2. Description of the Related Art Conventionally, in a test circuit of a single-chip microcomputer for confirming the operation by an arbitrary instruction other than a user ROM, as shown in FIG. 3, a user ROM 21 storing instruction data of the user and this user ROM 21. User ROM address setting circuit 20 that indicates the address of the test ROM 22 and a test ROM 22 that stores arbitrary command data to confirm the operation of the single-chip microcomputer in the test mode.
And a test RO indicating the address of this test ROM 22.
M address setting circuit 23 and user ROM 21 in normal times
Output signal of the test ROM21
Selection circuit 25 for selecting the output signal of
It has an instruction decoder circuit 24 that decodes the output signal from 5 and outputs an instruction signal for operating the single-chip microcomputer, and a test mode setting circuit 26 that switches between the normal mode and the test mode.

【0004】[0004]

【発明が解決しようとする課題】このような従来のテス
ト回路では、ユーザROM以外の任意の命令により、シ
ングルチップマイコンの動作確認を行う為の命令データ
がROMにより構成されていた為、テストROMのデー
タの変更ができなかった。又、ROMには命令ステップ
数の制限がある為、動作確認のテスト項目も容量を考慮
して設計しなければならなかった。
In such a conventional test circuit, since the instruction data for confirming the operation of the single chip microcomputer is constituted by the ROM by an arbitrary instruction other than the user ROM, the test ROM is used. The data of could not be changed. Further, since the ROM has a limited number of instruction steps, the test items for operation confirmation must be designed in consideration of capacity.

【0005】本発明の目的は、前記問題点を解決して、
命令データの変更が容易に行えるようにしたテスト回路
を提供することにある。
The object of the present invention is to solve the above-mentioned problems,
It is to provide a test circuit that can easily change instruction data.

【0006】[0006]

【課題を解決するための手段】本発明のテスト回路の構
成は、ユーザの命令データを格納したユーザROMと、
前記ユーザROMのアドレスを示すユーザROMアドレ
ス設定回路と、テストモード時ポートからのデータを書
き込む事が可能なRAMと、前記RAMのアドレスを示
すRAMアドレス設定回路と、通常モード時は前記ユー
ザROMの出力信号を選択し、前記テストモード時は前
記RAMの出力信号を選択して出力する選択回路と、前
記選択回路からの信号をデコードしてシングルチップマ
イクロコンピュータを動作させる為の命令信号を出力す
る命令デコード回路と、前記テストモードと前記通常モ
ードとを切り換えるテストモード設定回路とを備えてい
ることを特徴とする。
A test circuit according to the present invention comprises a user ROM storing instruction data of a user,
A user ROM address setting circuit indicating the address of the user ROM, a RAM capable of writing data from a port in the test mode, a RAM address setting circuit indicating the address of the RAM, and a RAM address setting circuit for the user ROM in the normal mode. An output signal is selected, and in the test mode, a selection circuit for selecting and outputting the output signal of the RAM, and a command signal for decoding the signal from the selection circuit and operating the single-chip microcomputer are output. An instruction decoding circuit and a test mode setting circuit for switching between the test mode and the normal mode are provided.

【0007】[0007]

【実施例】図1は本発明の一実施例のテスト回路を示す
ブロック図である。図1において、本実施例は、RAM
5,RAMアドレス設定回路4が用いられ、テストモー
ド設定回路6からの書き込みイネーブル信号9がRAM
5に印加されている点が、図3と異なり、その他の部分
は図3と同様である。
1 is a block diagram showing a test circuit according to an embodiment of the present invention. In FIG. 1, a RAM is used in this embodiment.
5, RAM address setting circuit 4 is used, and write enable signal 9 from test mode setting circuit 6 is RAM
5 is different from FIG. 3 in that it is applied to No. 5, and other parts are the same as in FIG.

【0008】通常モード時、ユーザROM2のアドレス
は、ユーザROMアドレス設定回路1により示され、ユ
ーザROM2はアドレスに対応した命令データを選択回
路8に出力する。この選択回路8は、ユーザROM2か
らの信号を命令デコーダ回路7に出力し、この命令デコ
ーダ回路7より出力された命令信号により、シングルチ
ップマイコンは動作する。
In the normal mode, the address of the user ROM 2 is indicated by the user ROM address setting circuit 1, and the user ROM 2 outputs the instruction data corresponding to the address to the selection circuit 8. The selection circuit 8 outputs the signal from the user ROM 2 to the instruction decoder circuit 7, and the instruction signal output from the instruction decoder circuit 7 causes the single-chip microcomputer to operate.

【0009】テストモード時においては、テストモード
設定回路6より、RAM書き込みイネーブル信号9が出
力され、RAM5がRAMアドレス設定回路4により示
されたアドレスにポート3から任意の命令データを書き
込む。必要な命令データを書き込んだ後、テストモード
設定回路6は、テスト信号10を出力し、選択回路8は
RAM5からの信号を命令デコーダ回路に出力し、命令
デコーダ回路7より出力された命令信号により、シング
ルチップマイコンは動作する。
In the test mode, the test mode setting circuit 6 outputs the RAM write enable signal 9 and the RAM 5 writes arbitrary instruction data from the port 3 to the address indicated by the RAM address setting circuit 4. After writing necessary instruction data, the test mode setting circuit 6 outputs the test signal 10, the selection circuit 8 outputs the signal from the RAM 5 to the instruction decoder circuit, and the instruction signal output from the instruction decoder circuit 7 , Single-chip microcomputer works.

【0010】尚、テスト信号10が出力されているテス
トモード時、ポート3は通常時と同じ動作をする。
In the test mode in which the test signal 10 is output, the port 3 operates in the same manner as in normal operation.

【0011】次に図2は本発明の他の実施例のテスト回
路を示すブロック図である。図2において、本実施例の
ユーザROM兼RAMアドレス設定回路11は、前記一
実施例のユーザROMアドレス設定回路1をRAMアド
レス設定回路4と兼用させたものである。よって、ユー
ザROM12とRAM15とは、ともにユーザROM兼
RAMアドレス設定回路11によりアドレスが示され
る。この他の動作は、前記一実施例と同一の動作をする
ので省略する。
Next, FIG. 2 is a block diagram showing a test circuit of another embodiment of the present invention. In FIG. 2, the user ROM / RAM address setting circuit 11 of the present embodiment is the one in which the user ROM address setting circuit 1 of the above embodiment is also used as the RAM address setting circuit 4. Therefore, the addresses of both the user ROM 12 and the RAM 15 are indicated by the user ROM / RAM address setting circuit 11. The other operations are the same as those in the above-described first embodiment, and are omitted.

【0012】[0012]

【発明の効果】以上説明した様に、本発明は、ユーザR
OM以外の任意の命令による特にシングルチップマイコ
ンの動作確認を行う為の命令データの格納をRAMにし
たので、命令データの変更が容易に行え、また特に同一
のシングルチップマイコンでRAMのデータを書き換え
る事により、複数のテスト項目が行えるという効果を有
する。
As described above, according to the present invention, the user R
Since the instruction data is stored in the RAM in order to check the operation of the single-chip microcomputer by an arbitrary instruction other than OM, the instruction data can be easily changed, and the RAM data can be rewritten by the same single-chip microcomputer. This has the effect that multiple test items can be performed.

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

【図1】本発明の一実施例のテスト回路を示すブロック
図である。
FIG. 1 is a block diagram showing a test circuit according to an embodiment of the present invention.

【図2】本発明の他の実施例のテスト回路を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a test circuit of another embodiment of the present invention.

【図3】従来のテスト回路を示すブロック図である。FIG. 3 is a block diagram showing a conventional test circuit.

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

1,20 ユーザROMアドレス設定回路 2,12,21 ユーザROM 3,13 ポート 4 RAMアドレス設定回路 5,15,22 RAM 6,16,26 テストモード設定回路 7,17,24 命令デコーダ回路 8,18,25 選択回路 9,19 RAM書き込みイネーブル信号 10,14,27 テスト信号 11 ユーザROM兼RAMアドレス設定回路 23 テストROMアドレス設定回路 1,20 User ROM address setting circuit 2,12,21 User ROM 3,13 Port 4 RAM address setting circuit 5,15,22 RAM 6,6,26 Test mode setting circuit 7,17,24 Instruction decoder circuit 8,18 , 25 selection circuit 9, 19 RAM write enable signal 10, 14, 27 test signal 11 user ROM / RAM address setting circuit 23 test ROM address setting circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ユーザの命令データを格納したユーザ
ROMと、前記ユーザROMのアドレスを示すユーザR
OMアドレス設定回路と、テストモード時ポートからの
データを書き込む事が可能なRAMと、前記RAMのア
ドレスを示すRAMアドレス設定回路と、通常モード時
は前記ユーザROMの出力信号を選択し、前記テストモ
ード時は前記RAMの出力信号を選択して出力する選択
回路と、前記選択回路からの信号をデコードしてシング
ルチップマイクロコンピュータを動作させる為の命令信
号を出力する命令デコード回路と、前記テストモードと
前記通常モードとを切り換えるテストモード設定回路と
を備えていることを特徴とするテスト回路。
1. A user ROM storing user instruction data, and a user R indicating an address of the user ROM.
The OM address setting circuit, the RAM capable of writing data from the port in the test mode, the RAM address setting circuit indicating the address of the RAM, and the output signal of the user ROM in the normal mode to select the test. In the mode, a selection circuit for selecting and outputting the output signal of the RAM, an instruction decoding circuit for decoding the signal from the selection circuit and outputting an instruction signal for operating a single-chip microcomputer, and the test mode And a test mode setting circuit for switching between the normal mode and the normal mode.
【請求項2】 ユーザROM及びRAMは、ユーザRO
Mアドレス設定回路とRAMアドレス設定回路との兼用
回路から、アドレスを受けるようにした請求項1に記載
のテスト回路。
2. The user ROM and RAM are user ROs.
2. The test circuit according to claim 1, wherein the address is received from a circuit which also serves as an M address setting circuit and a RAM address setting circuit.
JP4201663A 1992-07-29 1992-07-29 Testing circuit Withdrawn JPH0652010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4201663A JPH0652010A (en) 1992-07-29 1992-07-29 Testing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4201663A JPH0652010A (en) 1992-07-29 1992-07-29 Testing circuit

Publications (1)

Publication Number Publication Date
JPH0652010A true JPH0652010A (en) 1994-02-25

Family

ID=16444839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4201663A Withdrawn JPH0652010A (en) 1992-07-29 1992-07-29 Testing circuit

Country Status (1)

Country Link
JP (1) JPH0652010A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010007000A (en) * 1999-04-23 2001-01-26 마찌다 가쯔히꼬 Microcomputer having built-in nonvolatile memory and check system thereof and IC card packing microcomputer having built-in nonvolatile memory and check system thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010007000A (en) * 1999-04-23 2001-01-26 마찌다 가쯔히꼬 Microcomputer having built-in nonvolatile memory and check system thereof and IC card packing microcomputer having built-in nonvolatile memory and check system thereof

Similar Documents

Publication Publication Date Title
US6252807B1 (en) Memory device with reduced power consumption when byte-unit accessed
JPS621047A (en) Semiconductor device containing memory circuit
JPH0652010A (en) Testing circuit
JPS6330658B2 (en)
JPH05166391A (en) Memory device
US20020156964A1 (en) Reduction of bank switching instructions in main memory of data processing apparatus having main memory and plural memory
KR940020221A (en) Programmable Logic Controller Address Change Device
KR100396791B1 (en) Access apparatus of program memory
JPH0573404A (en) Single chip microcomputer
JPH03147164A (en) Information processor
JPH01283635A (en) Buffer control circuit
JPH097389A (en) Shared redundancy programming of memory with multiple accessport
JPH0865497A (en) Image processing system
JPH01261767A (en) Data communication system
JPH02155056A (en) Cache memory controller
JPH06131882A (en) Semiconductor storage device
JPH0863392A (en) Memory controller
JPH05342092A (en) Extended memory package mounting state recognizing system
JPH0449456A (en) Microcomputer system
JPH0728743A (en) Data processor
JPH02177095A (en) Semiconductor nonvolatile memory
JPH04333145A (en) Mode switching circuit
JPH05181705A (en) Program operation checking system
JPH01200450A (en) Memory extending circuit
JP2000329830A (en) Memory output control circuit

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: 19991005