[go: up one dir, main page]

JPH0827741B2 - Single-chip microcomputer - Google Patents

Single-chip microcomputer

Info

Publication number
JPH0827741B2
JPH0827741B2 JP62066035A JP6603587A JPH0827741B2 JP H0827741 B2 JPH0827741 B2 JP H0827741B2 JP 62066035 A JP62066035 A JP 62066035A JP 6603587 A JP6603587 A JP 6603587A JP H0827741 B2 JPH0827741 B2 JP H0827741B2
Authority
JP
Japan
Prior art keywords
test
chip microcomputer
access
external
peripheral circuits
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 - Fee Related
Application number
JP62066035A
Other languages
Japanese (ja)
Other versions
JPS63231637A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62066035A priority Critical patent/JPH0827741B2/en
Publication of JPS63231637A publication Critical patent/JPS63231637A/en
Publication of JPH0827741B2 publication Critical patent/JPH0827741B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Microcomputers (AREA)

Description

【発明の詳細な説明】 〔概要〕 本発明はシングルチップ・マイクロコンピュータにお
いて、テストモード時にアドレスをデコードして得たア
クセス検出信号を外部端子より出力することにより、テ
スチオ時間及びテストパターンファイルの作成時間を短
縮する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] In a single-chip microcomputer, the present invention outputs an access detection signal obtained by decoding an address in a test mode from an external terminal to generate a test time and a test pattern file. Save time.

〔産業上の利用分野〕[Industrial applications]

本発明はシングルチップ・マイクロコンピュータに関
し、単一の半導体チップ上にCPUの他に内部メモリ及び
周辺回路を内蔵したシングルチップ・マイクロコンピュ
ータに関する。
The present invention relates to a single-chip microcomputer, and more particularly to a single-chip microcomputer in which a CPU, an internal memory and peripheral circuits are incorporated on a single semiconductor chip.

シングルチップ・マイクロコンピュータはCPUの他にR
OM,RAMなどの内部メモリとI/Oポート,タイマ,A/Dコン
バータ等の周辺回路とを内蔵している。
Single-chip microcomputer is R in addition to CPU
It has internal memory such as OM and RAM, and peripheral circuits such as I / O port, timer, and A / D converter.

上記シングルチップ・マイクロコンピュータは個々の
ユーザーが使用するプログラムの開発時に外部メモリを
接続され、この外部メモリを用いたプログラム・デバッ
グ等が行なわれる。
The above-mentioned single-chip microcomputer is connected to an external memory at the time of developing a program used by an individual user, and the program / debugging or the like using this external memory is performed.

従ってシングルチップ・マイクロコンピュータの製造
後、テスターを接続して行なうテスト時には、内蔵内部
メモリ及び周辺回路のアクセスと外部メモリのアクセス
とが正しく行なわれるかどうかをチェックする必要があ
る。
Therefore, at the time of testing after connecting the tester after manufacturing the single-chip microcomputer, it is necessary to check whether the internal internal memory and peripheral circuits are properly accessed and the external memory is accessed.

〔従来の技術〕[Conventional technology]

従来のシングルチップ・マイクロコンピュータは内部
メモリ及び周辺回路のアクセスか外部メモリのアクセス
かを指示する信号を外部に出力していない。
The conventional single-chip microcomputer does not output a signal for instructing access to the internal memory and peripheral circuits or access to the external memory to the outside.

従来はテスト前に予め内部メモリに所定の値を書き込
んでおく等の周辺回路の初期設定を行ない、テスト時デ
ータバスより外部に出力されるデータの値が所定の値で
あるかどうかを判別して、アクセスか内部メモリ及び周
辺回路であるか外部メモリであるかを判別している。
Conventionally, the peripheral circuits are initialized, such as writing a predetermined value to the internal memory in advance before the test, and it is determined whether the value of the data output to the outside from the data bus during the test is the predetermined value. It is determined whether it is an access, an internal memory and a peripheral circuit, or an external memory.

なおテスト時には外部メモリは接続されないので外部
メモリのアクセス時にデータバスのデータは全1で
ある。
Since the external memory is not connected during the test, the data on the data bus is all 1 when accessing the external memory.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

従来のシングルチップ・マイクロコンピュータは、テ
スト前に内部メモリ及び周辺回路の初期設定を行なわね
ばならず、かつデータバスのデータが所定の値であるか
どうかを判別しなければならないのでテストに時間がか
かり、かつテスターにおけるテストデータのファイルで
あるテストパターンファイルの作成に時間がかかるとい
う問題点があった。
The conventional single-chip microcomputer requires initialization of the internal memory and peripheral circuits before the test, and it is necessary to determine whether the data on the data bus has a predetermined value. In addition, there is a problem that it takes time to create a test pattern file which is a test data file in the tester.

本発明は上記の点に鑑みてなされたものであり、テス
ト時間及びテストパターンファイルの作成時間が短かく
て済むシングルチップ・マイクロコンピュータを提供す
ることを目的とする。
The present invention has been made in view of the above points, and an object of the present invention is to provide a single-chip microcomputer in which a test time and a test pattern file creation time are short.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のシングルチップ・マイクロコンピュータは、
CPU(11)、内部メモリ(12,13)、周辺回路(14〜16)
を接続するアドレスバス(18)のアドレスをデコードし
て、内部メモリ(12,13)及び周辺回路(14〜16)の内
部アクセスと外部メモリ(20)の外部アクセスとを区別
するアクセス検出信号を生成するアドレスデコーダ(1
7)と、 テストモードを指示する信号によって切換えられ、テ
ストモードでは、通常モードで入力又は出力される信号
に代えて、アドレスデコーダ(17)よりのアクセス検出
信号を外部端子(21n)よりチップの外部に出力するス
イッチ(22)とを有する。
The single-chip microcomputer of the present invention is
CPU (11), internal memory (12,13), peripheral circuits (14-16)
The address of the address bus (18) that connects the Generate address decoder (1
7) and a signal for instructing the test mode. In the test mode, the access detection signal from the address decoder (17) is transferred from the external terminal (21 n ) to the chip instead of the signal input or output in the normal mode. And a switch (22) for outputting to outside.

〔作用〕[Action]

本発明においては、アドレスデコーダによってシング
ルチップ・マイクロコンピュータ内部の内部メモリ(1
2,13)及び周辺回路(14〜16)のアクセスと外部(20)
のアクセスとを区別するアクセス検出信号を生成してい
る。またスイッチ(22)はテストモードにおいて上記ア
クセス検出信号を外部端子(21n)より切換え出力す
る。
In the present invention, the internal memory (1
2,13) and peripheral circuits (14-16) access and external (20)
An access detection signal is generated to distinguish the access from. The switch (22) switches and outputs the access detection signal from the external terminal (21n) in the test mode.

これによってテスト前に内部メモリ及び周辺回路の初
期設定の必要がなくテスト時間を短縮化でき、またデー
タバスのデータが所定の値であるかの判別をする必要が
ないのでテストパターンファイルの作成が簡単でその作
成時間を短縮化できる。
As a result, it is not necessary to initialize the internal memory and peripheral circuits before the test, and the test time can be shortened. Also, it is not necessary to determine whether the data on the data bus has a predetermined value, so the test pattern file can be created. It is easy and can shorten the creation time.

〔実施例〕〔Example〕

第1図は本発明のシングルチップ・マイクロコンピュ
ータの一実施例のブロック系統図を示す。
FIG. 1 shows a block system diagram of an embodiment of a single-chip microcomputer of the present invention.

同図中、シングルチップ・マイクロコンピュータ10は
CPU11、内部メモリとしての内部RAM12及び内部ROM13、
周辺回路としてのI/Oインターフェース14、タイマ15、A
/Dコンバータ16、及びアドレスデコーダ17等より構成さ
れている。CPU11と内部メモリ及び周辺回路との間はア
ドレスバス18及びデータバス19によって接続されてお
り、またアドレスデコーダ17はアドレスバス18に接続さ
れている。
In the figure, the single-chip microcomputer 10 is
CPU11, internal RAM12 and internal ROM13 as internal memory,
I / O interface 14 as a peripheral circuit, timer 15, A
The / D converter 16 and the address decoder 17 are included. The CPU 11 and the internal memory and peripheral circuits are connected by an address bus 18 and a data bus 19, and the address decoder 17 is connected to the address bus 18.

また、上記アドレスバス18、データバス19にはユーザ
ー等におけるプログラム開発時に外部メモリ20が接続さ
れる。
An external memory 20 is connected to the address bus 18 and the data bus 19 when a program is developed by a user or the like.

I/Oインターフェース14はシングルチップ・マイクロ
コンピュータ10の外部とのn(整数)ビットの信号入出
力を行なうもので、I/Oインターフェース回路14のみn
ビットの端子のうち(n−1)ビットの端子は、外部端
子211〜21n-1に直接接続され、残りの1ビットの端子は
スイッチ22の端子a,cを介して外部端子21nに接続されて
いる。
The I / O interface 14 inputs / outputs n (integer) bit signals to / from the outside of the single-chip microcomputer 10. Only the I / O interface circuit 14 has n.
Of the bit terminals, the (n-1) bit terminal is directly connected to the external terminals 21 1 to 21 n-1 , and the remaining 1-bit terminal is connected to the external terminal 21 n via the terminals a and c of the switch 22. It is connected to the.

CPU11は内部RAM12又は内部ROM13をアクセスすると
き、内部RAM12、内部ROM13夫々にイネーブル信号RAMEN,
ROMENに供給する。更にCPU11はテスターが内部メモリ及
び周辺回路を直接テストするテストダイレクトモードに
おいてHレベルの制御信号TDIRを生成してスイッチ22の
制御端子に供給する。テストダイレクトモード以外のモ
ードでは制御信号TDIRはLレベルである。
When the CPU 11 accesses the internal RAM 12 or the internal ROM 13, the enable signal RAMEN,
Supply to ROMEN. Further, the CPU 11 generates the H-level control signal TDIR and supplies it to the control terminal of the switch 22 in the test direct mode in which the tester directly tests the internal memory and the peripheral circuits. In modes other than the test direct mode, the control signal TDIR is at L level.

アドレスデコーダ17はアドレスバス19より入来するア
ドレスをデコードしてI/Oインターフェース14、タイマ
ー15、A/Dコンバータ16等の周辺回路夫々にイネーブル
信号IOEN,TEN,ADENを各別に供給して、CPU11が周辺回路
を各別にアクセスすることを可能としている。
The address decoder 17 decodes the address coming from the address bus 19 and supplies the enable signals IOEN, TEN, and ADEN to the peripheral circuits such as the I / O interface 14, the timer 15 and the A / D converter 16 respectively. The CPU 11 can access the peripheral circuits separately.

また、アドレスデコーダ17はアドレスがシングルチッ
プ・マイクロコンピュータ10内の内部RAM12、内部ROM1
3、I/Oインターフェース14、タイマ15、A/Dコンバータ1
6夫々をアクセスする値であるときLレベルで、アドレ
スが外部メモリ20をアクセスする値であるときHレベル
のアクセス検出信号ADSを生成してスイッチ22の端子b
に供給する。
The address decoder 17 has an internal RAM 12 and an internal ROM 1 in the single-chip microcomputer 10.
3, I / O interface 14, timer 15, A / D converter 1
6 Generates an access detection signal ADS of L level when it is a value for accessing each of them and H level when the address is a value of accessing the external memory 20,
Supply to.

スイッチ22は制御信号TDIRがHレベルのテストダイレ
クトモード時に端子bc間を接続し、制御信号TDIRがLレ
ベルの通常動作時等に端子ac間を接続する。
The switch 22 connects the terminals bc in the test direct mode in which the control signal TDIR is at the H level, and connects the terminals ac in the normal operation when the control signal TDIR is at the L level.

テスト時には外部端子211〜21nにテスターが接続され
る。
During the test, the tester is connected to the external terminals 21 1 to 21 n .

シングルチップ・マイクロコンピュータ10の電源が投
入されるとリセットシーケンスにより、テスターからI/
Oインターフェース14、データバス18を介してテストデ
ータがCPU11に取り込まれ、テストダイレクトモードと
なる。これによってCPU11はテストダイレクトモードと
なった時刻t1から第2図(A)に示す如く制御信号TDIR
をHレベルとし、この後スイッチ22は端子bc間を接続
し、外部端子21nから第2図(B)に示す如くアクセス
検出信号ADSが出力される。
When the power of the single-chip microcomputer 10 is turned on, the reset sequence causes the I / O
The test data is taken into the CPU 11 via the O interface 14 and the data bus 18, and the test direct mode is set. As a result, the CPU 11 goes into the test direct mode from time t 1 as shown in FIG.
After that, the switch 22 connects the terminals bc to each other, and the access detection signal ADS is output from the external terminal 21 n as shown in FIG. 2 (B).

このアクセス検出信号ADSは時刻t1t2間,t3t4間,t5t
6間で内部メモリ及び周辺回路のアクセスを指示し、時
刻t2t3間,t4t5間で外部メモリ20のアクセスを指示す
る。
This access detection signal ADS is for time t 1 t 2 , t 3 t 4 , t 5 t
The access to the internal memory and the peripheral circuit is instructed during the interval 6 and the access to the external memory 20 is instructed during the times t 2 t 3 and t 4 t 5 .

時刻t6でテストダイレクトモードが終了すると、スイ
ッチ22は端子ac間を接続し、外部端子21nよりのアクセ
ス検出信号の出力が終了する。
When the test direct mode ends at time t 6 , the switch 22 connects the terminals ac, and the output of the access detection signal from the external terminal 21 n ends.

このようにアドレスデコーダ17でアクセス検出信号を
生成し、テストダイレクトモード時にのみスイッチ22を
介して外部端子21nより上記アクセス検出信号を出力す
るので、従来の如くテスト前に内部メモリ及び周辺回路
の初期設定の必要がなくテスト時間を短縮化できる。ま
たアクセス検出信号は内部メモリ及び周辺回路のアクセ
スか外部メモリのアクセスかをレベルで指示しているの
でテスターでは従来の如くデータバスのデータがどのよ
うな値となっているかを調べる必要がなく、テストデー
タつまりテストパターンファイルの作成時間が短縮化さ
れる。
In this way, the address decoder 17 generates the access detection signal, and the access detection signal is output from the external terminal 21 n via the switch 22 only in the test direct mode. Test time can be shortened without the need for initial setting. Further, since the access detection signal indicates the access to the internal memory and the peripheral circuit or the access to the external memory at the level, it is not necessary for the tester to check the value of the data on the data bus as in the conventional case. The creation time of test data, that is, the test pattern file is shortened.

さらにスイッチ22によってテストダイレクトモード時
にのみ外部端子21nをアクセス検出信号ADSの出力に切換
えているため外部端子の数が増加することもない。
Further, since the switch 22 switches the external terminal 21 n to the output of the access detection signal ADS only in the test direct mode, the number of external terminals does not increase.

〔発明の効果〕〔The invention's effect〕

上述の如く、本発明のシングルチップ・マイクロコン
ピュータによれば、テスト時間及びテストパターンファ
イルの作成時間が短縮化され、実用上きわめて有用であ
る。
As described above, according to the single-chip microcomputer of the present invention, the test time and the test pattern file creation time are shortened, which is extremely useful in practice.

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

第1図は本発明のシングルチップ・マイクロコンピュー
タの一実施例のブロック系統図、 第2図は第1図に示すマイクロコンピュータの各部の信
号波形図である。 第1図において、 10はシングルチップ・マイクロコンピュータ、11はCP
U、12は内部RAM、13は内部ROM、14はI/Oインターフェー
ス、15はタイマ、16はA/Dコンバータ、17はアドレスデ
コーダ、18はデータバス、19はアドレスバス、20は外部
メモリ、211〜21nは外部端子、22はスイッチである。
FIG. 1 is a block system diagram of an embodiment of a single chip microcomputer of the present invention, and FIG. 2 is a signal waveform diagram of each part of the microcomputer shown in FIG. In FIG. 1, 10 is a single-chip microcomputer and 11 is a CP.
U, 12 is internal RAM, 13 is internal ROM, 14 is I / O interface, 15 is timer, 16 is A / D converter, 17 is address decoder, 18 is data bus, 19 is address bus, 20 is external memory, 21 1 to 21 n are external terminals, and 22 is a switch.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】単一のチップ上にCPU(11)の他に内部メ
モリ(12,13)及び周辺回路(14〜16)を内蔵してお
り、外部メモリ(20)を接続可能なシングルチップ・マ
イクロコンピュータにおいて、 該CPU(11)、内部メモリ(12,13)、周辺回路(14〜1
6)を接続するアドレスバス(18)のアドレスをデコー
ドして、該内部メモリ(12,13)及び周辺回路(14〜1
6)の内部アクセスと該外部メモリ(20)の外部アクセ
スとを区別するアクセス検出信号を生成するアドレスデ
コーダ(17)と、 テストモードを指示する信号によって切換えられ、テス
トモードでは、通常モードで入力又は出力される信号に
代えて、該アドレスデコーダ(17)よりのアクセス検出
信号を外部端子(21n)より該チップの外部に出力する
スイッチ(22)とを有することを特徴とするシングルチ
ップ・マイクロコンピュータ。
1. A single chip which has an internal memory (12, 13) and peripheral circuits (14-16) in addition to a CPU (11) on a single chip and which can be connected to an external memory (20). -In a microcomputer, the CPU (11), internal memory (12, 13), peripheral circuits (14 to 1)
The address of the address bus (18) connecting 6) is decoded and the internal memory (12, 13) and peripheral circuits (14-1) are decoded.
6) The address decoder (17) that generates an access detection signal that distinguishes the internal access from the external access of the external memory (20) and the signal that instructs the test mode. Or a switch (22) for outputting an access detection signal from the address decoder (17) to the outside of the chip from an external terminal (21 n ) instead of the output signal. Microcomputer.
JP62066035A 1987-03-20 1987-03-20 Single-chip microcomputer Expired - Fee Related JPH0827741B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62066035A JPH0827741B2 (en) 1987-03-20 1987-03-20 Single-chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62066035A JPH0827741B2 (en) 1987-03-20 1987-03-20 Single-chip microcomputer

Publications (2)

Publication Number Publication Date
JPS63231637A JPS63231637A (en) 1988-09-27
JPH0827741B2 true JPH0827741B2 (en) 1996-03-21

Family

ID=13304222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62066035A Expired - Fee Related JPH0827741B2 (en) 1987-03-20 1987-03-20 Single-chip microcomputer

Country Status (1)

Country Link
JP (1) JPH0827741B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5421958A (en) * 1993-06-07 1995-06-06 The United States Of America As Represented By The Administrator Of The United States National Aeronautics And Space Administration Selective formation of porous silicon

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58127255A (en) * 1982-01-25 1983-07-29 Toshiba Corp Test circuit of microcomputer

Also Published As

Publication number Publication date
JPS63231637A (en) 1988-09-27

Similar Documents

Publication Publication Date Title
JP2597153B2 (en) Write protector
EP0127440A2 (en) Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein
JPH0869391A (en) Data processor and its method
JPS62249264A (en) Data processor
US4802089A (en) Status flag handling in a digital data processing system
US6550015B1 (en) Scalable virtual timer architecture for efficiently implementing multiple hardware timers with minimal silicon overhead
JPH0827741B2 (en) Single-chip microcomputer
JP2594130B2 (en) Semiconductor circuit
JPS5965356A (en) Single-chip microcomputer
JPH06324906A (en) Single chip microcomputer
JP2001228936A (en) Microcomputer provided with internal reset signal generation circuit
JPS61206035A (en) Device for preventing illegal use of computer program
JPH01274239A (en) Data processor
JPS63108438A (en) Single chip microcomputer
JP3071044B2 (en) Test method for semiconductor integrated circuit with microcomputer
JP2754786B2 (en) Information processing device
JP2598088B2 (en) Simple evaluation device for processing equipment
JP2924392B2 (en) Microcomputer system
JPS648381B2 (en)
JPS61134982A (en) memory access circuit
JPH0716188Y2 (en) Test mode designation circuit
JPS61282946A (en) Programmable controller
JPS61112248A (en) Easy-to-test logic large-scale integrated circuits
JP2777133B2 (en) Central processing unit
JPH0160792B2 (en)

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees