JPH04315230A - One-chip microcomputer - Google Patents

One-chip microcomputer

Info

Publication number
JPH04315230A
JPH04315230A JP3082386A JP8238691A JPH04315230A JP H04315230 A JPH04315230 A JP H04315230A JP 3082386 A JP3082386 A JP 3082386A JP 8238691 A JP8238691 A JP 8238691A JP H04315230 A JPH04315230 A JP H04315230A
Authority
JP
Japan
Prior art keywords
cpu
test
chip microcomputer
circuit
testing
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
Application number
JP3082386A
Other languages
Japanese (ja)
Inventor
Nobuyuki Saiki
伸之 齋木
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3082386A priority Critical patent/JPH04315230A/en
Publication of JPH04315230A publication Critical patent/JPH04315230A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To simultaneously and parallelly test a circuit to use a built-in CPU for the test and a circuit not to use the CPU for the test according by setting a test mode. CONSTITUTION:A switch 5 is interposed to a bus 2 connecting a CPU 1, circuit 3 to use this CPU 1 for the test and circuit 4 not to use the CPU 1 for the test and under the test mode, the switch 5 is turned off.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は周辺回路用のテストモー
ド機能を備えたワンチップマイクロコンピュータに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a one-chip microcomputer with a test mode function for peripheral circuits.

【0002】0002

【従来の技術】近年機能チェックのため半導体集積回路
それ自体に本来の動作モードに加えてテストモード機能
を備えたワンチップマイクロコンピュータが知られてい
る。ところでテストモードを実行する場合には、そのポ
ートにテスト用の各種外部装置が接続され、これらテス
ト用の外部装置及びワンチップマイクロコンピュータそ
れ自体に内蔵されているCPU を用いてテストが実行
される。ただテスト対象である周辺回路にはテスト用の
外部装置のみでテストが可能な回路とこれに加えて内蔵
されているCPU を用いる周辺回路とがあるため、こ
れらに対応した構成が必要となる。
2. Description of the Related Art In recent years, one-chip microcomputers have been known in which a semiconductor integrated circuit itself has a test mode function in addition to its original operating mode for function checking. By the way, when executing the test mode, various external devices for testing are connected to the port, and the test is executed using these external devices for testing and the CPU built in the one-chip microcomputer itself. . However, the peripheral circuits to be tested include circuits that can be tested using only an external device for testing, and peripheral circuits that additionally use the built-in CPU, so a configuration compatible with these is required.

【0003】図2は従来のワンチップマイクロコンピュ
ータの模式図であり、図中1は内蔵されているCPU 
、2はバス、3はテストに際しCPU 1を用いる必要
のある周辺回路、4はテストに際しCPU 1を用いる
必要のない周辺回路、5はスイッチを示している。CP
U 1はバス2を通じて前記周辺回路3,4及び各外部
装置を接続するポートP0 〜P7と接続されている。 スイッチ5はCPU 1の入,出力端の直近においてバ
ス2に介装されており、テストモードにおいて、周辺回
路3のテストを実行する際にはスイッチ5をオンし、C
PU 1と、ポートP0 〜P7 に接続したテスト用
の外部装置を用いてテストを行う。また周辺回路4のテ
ストを実行する際にはスイッチ5をオフし、ポートP0
 〜P7 に接続したテスト用の外部装置を用いてテス
トを行う。即ち周辺回路3又は4のいずれか一方のテス
トが終了した後、他方の周辺回路に対するテストが行わ
れることとなる。
FIG. 2 is a schematic diagram of a conventional one-chip microcomputer, in which 1 indicates the built-in CPU.
, 2 is a bus, 3 is a peripheral circuit that needs to use the CPU 1 during testing, 4 is a peripheral circuit that does not need to use the CPU 1 during testing, and 5 is a switch. C.P.
U1 is connected through a bus 2 to ports P0 to P7 for connecting the peripheral circuits 3 and 4 and external devices. The switch 5 is connected to the bus 2 in close proximity to the input and output terminals of the CPU 1. When testing the peripheral circuit 3 in the test mode, the switch 5 is turned on and the CPU 1 is turned on.
A test is performed using PU 1 and external testing devices connected to ports P0 to P7. Also, when testing the peripheral circuit 4, turn off the switch 5 and turn off the port P0.
A test is performed using an external device for testing connected to ~P7. That is, after the test for either one of the peripheral circuits 3 or 4 is completed, the test for the other peripheral circuit is performed.

【0004】0004

【発明が解決しようとする課題】ところでこのような従
来のワンチップマイクロコンピュータにあっては、テス
ト対象となる周辺回路3,4はいずれか一方の周辺回路
をテスト中は、他方の周辺回路をテストすることが出来
ないこととなるため、テストに長い時間を要するという
問題があった。本発明はかかる事情に鑑みなされたもの
であって、その目的とするところはテストに際して内蔵
されているCPU を用いる回路と、内蔵されているC
PU を用いないでテストする回路とを同時並行的にテ
ストすることが可能なワンチップマイクロコンピュータ
を提供するにある。
[Problems to be Solved by the Invention] However, in such a conventional one-chip microcomputer, when one of the peripheral circuits 3 and 4 is being tested, the other peripheral circuit is not being tested. Since it becomes impossible to test, there is a problem that the test takes a long time. The present invention was made in view of the above circumstances, and its purpose is to test a circuit that uses a built-in CPU and a built-in CPU.
To provide a one-chip microcomputer capable of simultaneously testing a circuit to be tested without using a PU.

【0005】[0005]

【課題を解決するための手段】本発明に係るワンチップ
マイクロコンピュータは、内蔵されているCPU 及び
テストに際しこのCPU を用いる周辺回路とテストに
際しこのCPU を用いない周辺回路との間を結ぶバス
に開閉スイッチを設ける。
[Means for Solving the Problems] A one-chip microcomputer according to the present invention provides a bus that connects a built-in CPU and peripheral circuits that use this CPU during testing and peripheral circuits that do not use this CPU during testing. Provide an on/off switch.

【0006】[0006]

【作用】本発明にあってはこれによって、テストに際し
内蔵されているCPUを使用する周辺回路はCPU 及
びポートに接続されたテスト用の外部装置を用いて、ま
たCPUを用いない周辺回路のテストにはポートに接続
されている外部装置のみを用いて同時並行的にテストす
ることが可能となる。
[Operation] According to the present invention, when testing, peripheral circuits that use the built-in CPU can be tested using an external device for testing connected to the CPU and ports, and peripheral circuits that do not use the CPU can be tested. It is now possible to test in parallel using only external devices connected to the port.

【0007】[0007]

【実施例】以下本発明をその実施例を示す図面に基づい
て具体的に説明する。図1は本発明に係るワンチップマ
イクロコンピュータの模式図であり、図中1はCPU 
、2はバス、3はテストに際し内蔵されているCPU 
1を用いる必要のある周辺回路、4はテストに際し内蔵
されているCPU 1を用いる必要のない周辺回路、5
はスイッチを示している。CPU 1、周辺回路3,4
及び各ポートP0 〜P7 はバス2を通じて相互にデ
ータの送受が可能なよう接続されている。そしてこのバ
ス2にはCPU 1,周辺回路3,及びポートP0 〜
P3 と、周辺回路4,及びポートP4 〜P7 とを
結ぶ中間位置のバス2にスイッチ5が介装されている。 スイッチ5の開閉制御はテストモードに設定したときC
PU 1又は外部からの信号の入力にてオフとなるよう
制御される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be specifically explained below based on drawings showing embodiments thereof. FIG. 1 is a schematic diagram of a one-chip microcomputer according to the present invention, in which 1 is a CPU
, 2 is the bus, and 3 is the built-in CPU for testing.
1 is a peripheral circuit that needs to be used, 4 is a built-in CPU during testing, a peripheral circuit that does not need to use 1, 5
indicates a switch. CPU 1, peripheral circuits 3, 4
The ports P0 to P7 are connected to each other via a bus 2 so as to be able to exchange data with each other. This bus 2 includes the CPU 1, peripheral circuit 3, and ports P0 to
A switch 5 is interposed in the bus 2 at an intermediate position connecting P3, the peripheral circuit 4, and ports P4 to P7. The opening/closing control of switch 5 is set to C when set to test mode.
It is controlled to be turned off by inputting a signal from PU 1 or the outside.

【0008】而してこのようなワンチップマイクロコン
ピュータにあってはテストモードに設定したときは各ポ
ートP0 〜P7 に必要なテスト用の外部装置を接続
し、スイッチ5をオフとする。これによって、周辺回路
3はCPU 1及びポートP0 〜P3 に接続されて
いるテスト用の外部装置によって、また周辺回路4はポ
ートP4 〜P7 に接続されているテスト用の外部装
置によって夫々テストを同時並行的に実施し得ることと
なる。なお上述の実施例ではテストに際しCPU 1を
用いる周辺回路3とCPU 1を用いない周辺回路4と
に分けた構成につき説明したが、CPU 1を使用しな
いで外部装置のみで周辺回路を複数同時にテストが可能
なようにしてもよい。
When such a one-chip microcomputer is set to the test mode, necessary external devices for testing are connected to each port P0 to P7, and the switch 5 is turned off. As a result, the peripheral circuit 3 is simultaneously tested by the external test device connected to the CPU 1 and ports P0 to P3, and the peripheral circuit 4 is simultaneously tested by the external test device connected to the ports P4 to P7. This means that they can be implemented in parallel. Note that in the above embodiment, the configuration was explained in which the peripheral circuit 3 using the CPU 1 and the peripheral circuit 4 not using the CPU 1 were divided during testing, but it is also possible to simultaneously test multiple peripheral circuits using only an external device without using the CPU 1. may be made possible.

【0009】[0009]

【発明の効果】以上の如く本発明に係るワンチップマイ
クロコンピュータにあっては、テストに際し内蔵されて
いるCPU を用いる必要のある回路及びテストに際し
このCPU を用いる必要のない回路に対するテストを
、スイッチ操作によって同時並行的に実施することが可
能となり、大幅なテスト時間の短縮を図れる等本発明は
優れた効果を奏するものである。
As described above, in the one-chip microcomputer according to the present invention, testing of circuits that require the use of the built-in CPU during testing and circuits that do not require the use of this CPU during testing can be performed using a switch. The present invention has excellent effects such as being able to perform tests in parallel depending on the operation, thereby significantly shortening the test time.

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

【図1】本発明に係るワンチップマイクロコンピュータ
のブロック図である。
FIG. 1 is a block diagram of a one-chip microcomputer according to the present invention.

【図2】従来のワンチップマイクロコンピュータのブロ
ック図である。
FIG. 2 is a block diagram of a conventional one-chip microcomputer.

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

1  CPU 2  バス 3,4  周辺回路 5  スイッチ 1 CPU 2 Bus 3,4 Peripheral circuit 5 Switch

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  テストモードの設定が可能なCPU 
と、該CPUを用いてテストする一の回路及び該CPU
 を用いないでテストする他の回路とを備え、これらC
PU及び前記両回路は同一バスを用いて情報の送受を行
うようにしてあるワンチップマイクロコンピュータにお
いて、前記一の回路及びCPU と、他の回路との中間
にて前記バスを切り離すスイッチを設けたことを特徴と
するワンチップマイクロコンピュータ。
[Claim 1] CPU capable of setting test mode
and a circuit to be tested using the CPU and the CPU.
and other circuits to be tested without using these C
In a one-chip microcomputer in which a PU and both circuits transmit and receive information using the same bus, a switch is provided to disconnect the bus between the first circuit and CPU and the other circuit. A one-chip microcomputer characterized by:
JP3082386A 1991-04-15 1991-04-15 One-chip microcomputer Pending JPH04315230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3082386A JPH04315230A (en) 1991-04-15 1991-04-15 One-chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3082386A JPH04315230A (en) 1991-04-15 1991-04-15 One-chip microcomputer

Publications (1)

Publication Number Publication Date
JPH04315230A true JPH04315230A (en) 1992-11-06

Family

ID=13773146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3082386A Pending JPH04315230A (en) 1991-04-15 1991-04-15 One-chip microcomputer

Country Status (1)

Country Link
JP (1) JPH04315230A (en)

Similar Documents

Publication Publication Date Title
JPH0450678A (en) Test facilitating circuit
JPH1073641A5 (en)
JPH04315230A (en) One-chip microcomputer
JPH0267979A (en) Testing circuit for logic circuit
JP2004094451A (en) On-chip JTAG interface circuit and system LSI
JPH0358141A (en) Integrated circuit with logic for user
KR0184154B1 (en) One chip micro-computer unit
JPS6031641A (en) One chip microcomputer
JPH045217B2 (en)
JP2935710B2 (en) Test equipment for processor integrated circuit devices
JPS63298173A (en) integrated circuit
KR19980021249A (en) Parallel interface unit
JP2861001B2 (en) Input/Output Circuit
JPS6349870A (en) Microcomputer
JPH01101478A (en) Integrated circuit
JPH06201794A (en) Semiconductor device test circuit
JPH03269377A (en) Input/output circuit for semiconductor device
JPH02195723A (en) Programmable logic array
JPH0361873A (en) Testing circuit for integrated circuit element
JPH01116736A (en) Input/output port system for one-chip microcomputer
JP2002304386A (en) Semiconductor device
JPH02241092A (en) Signal output circuit having testing function
JPS5822974A (en) Large scale integration testing device
JPH02214328A (en) Output control device
JPH02277347A (en) Two-way bus test circuit