JPH0815387A - Microcomputer test circuit - Google Patents

Microcomputer test circuit

Info

Publication number
JPH0815387A
JPH0815387A JP6146483A JP14648394A JPH0815387A JP H0815387 A JPH0815387 A JP H0815387A JP 6146483 A JP6146483 A JP 6146483A JP 14648394 A JP14648394 A JP 14648394A JP H0815387 A JPH0815387 A JP H0815387A
Authority
JP
Japan
Prior art keywords
system bus
external system
function
microcomputer
test
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
JP6146483A
Other languages
Japanese (ja)
Inventor
Toshio Fujiwara
俊夫 藤原
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.)
Renesas Design Corp
Mitsubishi Electric Corp
Mitsubishi Electric Semiconductor Systems Corp
Original Assignee
Renesas Design Corp
Mitsubishi Electric Corp
Mitsubishi Electric Semiconductor Systems 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 Renesas Design Corp, Mitsubishi Electric Corp, Mitsubishi Electric Semiconductor Systems Corp filed Critical Renesas Design Corp
Priority to JP6146483A priority Critical patent/JPH0815387A/en
Publication of JPH0815387A publication Critical patent/JPH0815387A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a microcomputor test circuit in which the I/O port function at a multifunction block can be tested using a same test program by switching the external system bus function and the I/O port function based on a control signal for a plurality of multipurpose blocks. CONSTITUTION:When a test is started by a microcomputor 1, multipurpose blocks 8, 9 exhibit external system bus function and I/O port function, respectively. Address and data are then communicated between an address bus 3 and a data bus 4 through the switching circuit 12 and an allocation switching control circuit 10 for external system bus based on the test program of a test unit 2 thus testing the I/O port function of the block 9. A data for setting the alteration of address is also written into a bus selection register 11 through the circuits 12, 10 and the bus 4 according to same test program. The circuit 10 takes in the data and changes allocation of the address and data on the bus from block 8 to block 9 in order to switch the function thus testing the I/O port function of the block 8 through a bus switching circuit 13.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、民生用、家電用、産
業用などの機器に用いられるシングルチップマイクロコ
ンピュータ等のマイクロコンピュータ(以下マイコンと
いう)の、入出力ポート機能と外部システムバス機能を
合わせ持つ兼用ブロックのテストを行うマイコンテスト
回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention provides an input / output port function and an external system bus function of a microcomputer such as a single-chip microcomputer (hereinafter referred to as "microcomputer") used for appliances for consumer use, home appliances, industrial use, etc. The present invention relates to a microcomputer test circuit that tests a combined block that is also used.

【0002】[0002]

【従来の技術】図7は従来のマイコンテスト回路を示す
構成図である。図において、1はテストされるマイコ
ン、2はこのマイコン1のテストを実施するテスト装置
としてのLSIテスタであり、3はマイコン1のアドレ
スバス、4は同じくデータバスである。5はこのマイコ
ン1内に配置された、入出力ポート機能と外部システム
バス機能を併せ持つ兼用ブロックであり、6はこの兼用
ブロック5内にあって、マイコン1のモードに応じて兼
用ブロック5を入出力ポート機能から外部システムバス
機能に切り換える外部システムバス切り換え回路であ
る。なお、ここでは、外部システムバスとは、外付けの
ICとのアドレス/データバスや、テスト時のLSIテ
スタ2とのアドレス/データバスを指すものであり、外
部システムバス切り換え回路6は例えば、テストモード
やマイクロプロセッサモード時には兼用ブロック5を外
部システムバス機能にし、シングルチップモード時には
入出力ポート機能にするものである。また、7はこのマ
イコン1内に配置された、入出力ポート機能のみを持つ
入出力ポートブロックである。
2. Description of the Related Art FIG. 7 is a block diagram showing a conventional microcomputer test circuit. In the figure, 1 is a microcomputer to be tested, 2 is an LSI tester as a test device for performing the test of the microcomputer 1, 3 is an address bus of the microcomputer 1, and 4 is a data bus. Reference numeral 5 is a dual-purpose block arranged in the microcomputer 1 having both an input / output port function and an external system bus function, and 6 is a dual-purpose block 5 in which the dual-purpose block 5 is inserted according to the mode of the microcomputer 1. It is an external system bus switching circuit that switches from the output port function to the external system bus function. Here, the external system bus refers to an address / data bus with an external IC or an address / data bus with the LSI tester 2 at the time of testing, and the external system bus switching circuit 6 is, for example, The dual-purpose block 5 has an external system bus function in the test mode or the microprocessor mode, and has an input / output port function in the single chip mode. Reference numeral 7 is an input / output port block arranged in the microcomputer 1 and having only an input / output port function.

【0003】次に動作について説明する。ここで、図8
は図7のように構成されたマイコン1の兼用ブロック5
と入出力ポートブロック7をテストする際の処理の流れ
を示すフローチャートである。テストがスタートする
と、ステップST1においてマイコン1がテストモード
となるため、兼用ブロック5は外部システムバス機能と
なる。これによって、テストプログラムを実行している
LSIテスタ2からのアドレスやデータが、この兼用ブ
ロック5の外部システムバス切り換え回路6を経由し
て、マイコン1のアドレスバス3やデータバス4との間
でやり取りされ、入出力ポートブロック7の入出力ポー
ト機能のテストが可能となる。しかしながら、このまま
では兼用ブロック5の入出力ポート機能のテストは不可
能である。そこで、ステップST2において一旦テスト
をストップさせて、入出力ポートブロック7の入出力ポ
ート機能のテストとは別に、兼用ブロック5の入出力ポ
ート機能テスト専用のテストプログラムを準備する。そ
して、ステップST3においてマイコン1を再度テスト
モードにし、外部システムバス機能となった兼用ブロッ
ク5よりそのテストプログラムをマイコン1の内部メモ
リ(図示省略)に書き込む。その後ステップST4で、
マイコン1のモードをテストモードからシングルチップ
モードに変更する。これにより、兼用ブロック5は外部
システムバス機能から入出力ポート機能に切り換えら
れ、ステップST5にてこの兼用ブロック6の入出力ポ
ート機能のテストが、マイコン1の内部メモリに書き込
まれたテストプログラムを動作させることによって実施
される。
Next, the operation will be described. Here, FIG.
Is a dual-purpose block 5 of the microcomputer 1 configured as shown in FIG.
3 is a flowchart showing a flow of processing when testing the I / O port block 7. When the test starts, the microcomputer 1 enters the test mode in step ST1, and the dual-purpose block 5 functions as an external system bus. As a result, the address and data from the LSI tester 2 which is executing the test program are transferred between the address bus 3 and the data bus 4 of the microcomputer 1 via the external system bus switching circuit 6 of the dual-purpose block 5. As a result of the exchange, the input / output port function of the input / output port block 7 can be tested. However, as it is, it is impossible to test the input / output port function of the dual-purpose block 5. Therefore, in step ST2, the test is temporarily stopped, and in addition to the test of the input / output port function of the input / output port block 7, a test program dedicated to the input / output port function test of the shared block 5 is prepared. Then, in step ST3, the microcomputer 1 is put into the test mode again, and the test program is written in the internal memory (not shown) of the microcomputer 1 from the dual-purpose block 5 having the external system bus function. After that, in step ST4,
The mode of the microcomputer 1 is changed from the test mode to the single chip mode. As a result, the dual-purpose block 5 is switched from the external system bus function to the I / O port function, and the test of the I / O port function of the dual-purpose block 6 operates the test program written in the internal memory of the microcomputer 1 in step ST5. Is carried out.

【0004】[0004]

【発明が解決しようとする課題】従来のマイコンテスト
回路は以上のように構成されているので、兼用ブロック
5の入出力ポート機能をテストするためには、入出力ポ
ートブロック7のテストのためのものとは別にテストプ
ログラムを用意して、それぞれ異なったモードで実施す
ることが必要であり、また、そのテストプログラムはマ
イコン1の内部メモリで動作するため、その内容がマイ
コン1の外部に出力されず、テストプログラムのデバッ
グが困難となるばかりか、兼用ブロック5の外部システ
ムバス機能に不具合がある場合にはテストが不可能にな
るなどの問題点があった。
Since the conventional microcomputer test circuit is constructed as described above, in order to test the input / output port function of the dual-purpose block 5, the input / output port block 7 must be tested. It is necessary to prepare a test program separately from the ones to be executed in different modes, and since the test program operates in the internal memory of the microcomputer 1, its contents are output to the outside of the microcomputer 1. In addition, it is difficult to debug the test program, and if the external system bus function of the dual-purpose block 5 is defective, the test cannot be performed.

【0005】請求項1〜3に記載の発明は、上記のよう
な問題点を解消するためになされたもので、マイコンの
モードを変更することなく、同一のテストプログラムに
て兼用ブロックの入出力ポート機能のテストを行うこと
ができ、LSIテスタでのテストプログラムのデバッグ
も可能にするマイコンテスト回路を得ることを目的とす
る。
The inventions set forth in claims 1 to 3 were made in order to solve the above problems, and the input / output of the dual-purpose block can be performed by the same test program without changing the mode of the microcomputer. It is an object of the present invention to obtain a microcomputer test circuit capable of testing a port function and enabling debugging of a test program on an LSI tester.

【0006】また、請求項4に記載の発明はさらに、1
つの兼用ブロックの外部システムバス機能に不具合が生
じてもテストが可能なマイコンテスト回路を得ることも
目的とする。
The invention according to claim 4 further comprises:
Another objective is to obtain a microcomputer test circuit that can be tested even if a problem occurs in the external system bus function of the dual-purpose block.

【0007】[0007]

【課題を解決するための手段】請求項1に記載の発明に
係るマイコンテスト回路は、外部システムバス機能と入
出力ポート機能とを切り換え可能に備えた兼用ブロック
を複数用意し、これら各兼用ブロックの機能の割り振り
の切り換えを、入力される制御信号に基づいて制御する
外部システムバス割り振り切り換え制御回路を設けたも
のである。
According to a first aspect of the present invention, there is provided a microcomputer test circuit having a plurality of dual-purpose blocks capable of switching between an external system bus function and an input / output port function. The external system bus allocation switching control circuit for controlling the switching of the allocation of the function of 1) on the basis of the input control signal is provided.

【0008】また、請求項2に記載の発明に係るマイコ
ンテスト回路は、外部システムバス選択レジスタに設定
されたデータを外部システムバス割り振り切り換え制御
回路の制御信号としたものである。
According to the second aspect of the present invention, the microcomputer test circuit uses the data set in the external system bus selection register as a control signal for the external system bus allocation switching control circuit.

【0009】また、請求項3に記載の発明に係るマイコ
ンテスト回路は、外部入力端子に入力される入力電圧を
外部システムバス割り振り切り換え制御回路の制御信号
としたものである。
Further, in the microcomputer test circuit according to the third aspect of the present invention, the input voltage input to the external input terminal is used as the control signal of the external system bus allocation switching control circuit.

【0010】また、請求項4に記載の発明に係るマイコ
ンテスト回路は、外部入力端子に入力される入力電圧と
当該マイコンのリセット信号との論理演算結果を、外部
システムバス割り振り切り換え制御回路の制御信号とし
たものである。
According to a fourth aspect of the present invention, in a microcomputer test circuit, a logical operation result of an input voltage input to an external input terminal and a reset signal of the microcomputer is controlled by an external system bus allocation switching control circuit. It is a signal.

【0011】[0011]

【作用】請求項1に記載の発明における外部システムバ
ス割り振り切り換え制御回路は、複数用意された兼用ブ
ロックが外部システムバス機能もしくは入出力ポート機
能となる機能の割り振りを、与えられる制御信号に基づ
いて切り換えることにより、マイコンのモードを変更せ
ずに、同一のテストプログラムで兼用ブロックの入出力
ポート機能のテストを行うことができ、LSIテスタで
のデバッグも可能なマイコンテスト回路を実現する。
In the external system bus allocation switching control circuit according to the first aspect of the present invention, the allocation of the function in which a plurality of shared blocks serve as the external system bus function or the input / output port function is allocated based on the control signal given. By switching, it is possible to test the input / output port function of the shared block with the same test program without changing the mode of the microcomputer, and to realize a microcomputer test circuit that can be debugged by an LSI tester.

【0012】また、請求項2に記載の発明における外部
システムバス割り振り切り換え制御回路は、外部システ
ムバス選択レジスタに設定されたデータに基づいて、各
兼用ブロックの機能の割り振りを切り換えることによ
り、兼用ブロックが外部システムバス機能もしくは入出
力ポート機能となる機能の割り振りをプログラマブルに
変更することを可能とする。
The external system bus allocation switching control circuit according to the second aspect of the present invention switches the allocation of the function of each dual-purpose block based on the data set in the external system bus selection register, thereby enabling the dual-purpose block. Enables to programmatically change the allocation of functions that become external system bus functions or I / O port functions.

【0013】また、請求項3に記載の発明における外部
システムバス割り振り切り換え制御回路は、外部入力端
子の入力電圧のレベルに基づいて、兼用ブロックの機能
の割り振りを切り換えることにより、マイコンテスト回
路のハードウェア構成を簡略化する。
Further, the external system bus allocation switching control circuit in the invention according to claim 3 switches the allocation of the function of the dual-purpose block based on the level of the input voltage of the external input terminal, and thereby the hardware of the microcomputer test circuit is switched. Simplify the hardware configuration.

【0014】また、請求項4に記載の発明における外部
システムバス割り振り切り換え制御回路は、外部入力端
子の入力電圧とリセット信号の論理演算結果に基づい
て、兼用ブロックの機能の割り振りを切り換えることに
より、1つの兼用ブロックの外部システムバス機能に不
具合が生じても他の兼用ブロックでテストを行うことを
可能とする。
Further, the external system bus allocation switching control circuit in the invention according to claim 4 switches the allocation of the function of the shared block based on the logical operation result of the input voltage of the external input terminal and the reset signal, Even if a failure occurs in the external system bus function of one shared block, it is possible to perform a test in another shared block.

【0015】[0015]

【実施例】【Example】

実施例1.以下、この発明の実施例1を図について説明
する。図1は請求項1および2に記載した発明の一実施
例を示す構成図である。図において、1はマイコン、2
はLSIテスタ、3はアドレスバス、4はデータバスで
あり、図7に同一符号を付した従来のそれらと同一、も
しくは相当部分であるため詳細な説明は省略する。ま
た、8および9はマイコン1内に複数個(図示の場合に
は2個)配置され、それぞれが入出力ポート機能と外部
システムバス機能を併せ持った兼用ブロックである。1
0はこれら各兼用ブロック8〜9が外部システムバス機
能または入出力ポート機能となる機能の割り振りの切り
換えを、与えられる制御信号に基づいて制御する外部シ
ステムバス割り振り切り換え制御回路であり、11はこ
の外部システムバス割り振り切り換え制御回路10によ
る機能の割り振りの切り換えを制御するための制御信号
となるデータが格納される外部システムバス選択レジス
タである。12および13は前記兼用ブロック8または
9内に配置され、マイコン1のモードに応じて兼用ブロ
ック8または9を入出力ポート機能から外部システムバ
ス機能に切り換える外部システムバス切り換え回路であ
るが、その切り換え動作は、外部システムバス割り振り
切り換え制御回路10にて外部システムバスのアドレス
/データが割り振られた兼用ブロック8または9内のも
ののみで行われる。
Example 1. Embodiment 1 of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the invention described in claims 1 and 2. In the figure, 1 is a microcomputer, 2
Is an LSI tester, 3 is an address bus, and 4 is a data bus, which are the same as or equivalent to those of the conventional one denoted by the same reference numeral in FIG. A plurality of (8 in the illustrated case) 8 and 9 are arranged in the microcomputer 1, and each is a dual-purpose block having both an input / output port function and an external system bus function. 1
Reference numeral 0 denotes an external system bus allocation switching control circuit for controlling the switching of allocation of the functions of these dual-purpose blocks 8 to 9 as the external system bus function or the input / output port function, based on a control signal supplied thereto. It is an external system bus selection register in which data serving as a control signal for controlling the switching of the function allocation by the external system bus allocation switching control circuit 10 is stored. The external system bus switching circuits 12 and 13 are arranged in the dual-purpose block 8 or 9 and switch the dual-purpose block 8 or 9 from the input / output port function to the external system bus function according to the mode of the microcomputer 1. The operation is performed only in the shared block 8 or 9 to which the address / data of the external system bus is allocated by the external system bus allocation switching control circuit 10.

【0016】次に動作について説明する。ここで、図2
は図1のように構成されたマイコン1の兼用ブロック8
および9をテストする際の処理の流れを示すフローチャ
ートである。このマイコン1は通常、外部システムバス
割り振り切り換え制御回路10によって、兼用ブロック
8には外部システムバス機能、兼用ブロック9には入出
力ポート機能がそれぞれ割り振られている。従って、ス
テップST11において、マイコン1がテストモードと
なってテストがスタートすると、兼用ブロック8は外部
システムバス機能に切り換えられ、兼用ブロック9は入
出力ポート機能に切り換えられる。これによって、LS
Iテスタ2からのテストプログラムに基づくアドレスや
データが、兼用ブロック8の外部システムバス切り換え
回路12より外部システムバス割り振り切り換え制御回
路10を経由してマイコン1のアドレスバス3やデータ
バス4との間でやり取りされ、兼用ブロック9の入出力
ポート機能がテストされる。
Next, the operation will be described. Here, FIG.
Is a dual-purpose block 8 of the microcomputer 1 configured as shown in FIG.
11 is a flowchart showing a flow of processing when testing 9 and 9. In the microcomputer 1, the external system bus allocation switching control circuit 10 normally allocates the external system bus function to the dual function block 8 and the input / output port function to the dual function block 9. Therefore, in step ST11, when the microcomputer 1 enters the test mode and the test starts, the dual-purpose block 8 is switched to the external system bus function, and the dual-purpose block 9 is switched to the input / output port function. By this, LS
Addresses and data based on the test program from the I tester 2 are transferred from the external system bus switching circuit 12 of the shared block 8 to the address bus 3 and the data bus 4 of the microcomputer 1 via the external system bus allocation switching control circuit 10. And the input / output port function of the dual-purpose block 9 is tested.

【0017】一方、兼用ブロック8の入出力ポート機能
のテストを実施する場合には、ステップST12におい
て、マイコン1のモードをテストモードにしたまま、マ
イコン1にテストプログラムによって、外部システムバ
ス選択レジスタ11のアドレスを指定してその内容を変
更するための設定データを送る。この時、兼用ブロック
8は外部システムバス機能となっているので、その設定
データは兼用ブロック8の外部システムバス切り換え回
路12より外部システムバス割り振り切り換え制御回路
10を経由してデータバス4より、アドレス指定された
外部システムバス選択レジスタ11に書き込まれ、その
内容が変更される。ここで例えば、この外部システムバ
ス選択レジスタ11が8ビットで構成されており、兼用
ブロック8を入出力ポート機能に、兼用ブロック9を外
部システムバス機能に割り振る場合の設定データが“0
3”であるとすると、外部システムバス選択レジスタ1
1の内容はこの“03”に変更される。
On the other hand, when the test of the input / output port function of the dual-purpose block 8 is carried out, in step ST12, the microcomputer 1 is kept in the test mode, and the microcomputer 1 is tested by the external system bus selection register 11 by the test program. Specify the address of and send the setting data to change its contents. At this time, since the dual-purpose block 8 has an external system bus function, its setting data is transferred from the external system bus switching circuit 12 of the dual-purpose block 8 to the address of the data bus 4 via the external system bus allocation switching control circuit 10. It is written in the designated external system bus selection register 11 and its contents are changed. Here, for example, the external system bus selection register 11 is composed of 8 bits, and the setting data when the dual function block 8 is assigned to the input / output port function and the dual function block 9 is assigned to the external system bus function is "0".
3 ", the external system bus selection register 1
The content of 1 is changed to "03".

【0018】外部システムバス割り振り切り換え制御回
路10は、ステップST13にてこの外部システムバス
選択レジスタ11の内容を取り込み、それが“03”で
あることから、外部システムバスのアドレス/データの
割り振りを兼用ブロック8から兼用ブロック9に変更す
る。これによって、兼用ブロック8は外部システムバス
機能から入出力ポート機能に、兼用ブロック9は入出力
ポート機能から外部システムバス機能にそれぞれ切り換
えられる。従って、この外部システムバス機能となった
兼用ブロック9の外部システムバス切り換え回路13を
経由して、ステップST11における兼用ブロック9の
入出力ポート機能のテストの場合と同様にして、ステッ
プST14において兼用ブロック8の入出力ポート機能
のテストが実施される。
The external system bus allocation switching control circuit 10 fetches the contents of the external system bus selection register 11 in step ST13, and since it is "03", it also serves as the allocation of the address / data of the external system bus. The block 8 is changed to the combined block 9. As a result, the dual-purpose block 8 is switched from the external system bus function to the input / output port function, and the dual-purpose block 9 is switched from the input / output port function to the external system bus function. Therefore, in the same way as in the case of the test of the input / output port function of the dual-purpose block 9 in step ST11, the dual-purpose block is passed through the external system bus switching circuit 13 of the dual-purpose block 9 having the external system bus function. Eight I / O port function tests are performed.

【0019】このように、この実施例1によれば、兼用
ブロックが外部システムバス機能と入出力ポート機能と
なる機能の割り振りを、外部システムバス選択レジスタ
11の書き換えによってプログラマブルに変更し、マイ
コン1のモードをテストモードとしたまま、同一のテス
トプログラムで兼用ブロック8および9の入出力ポート
機能のテストを行うことが可能となり、テストプログラ
ムの内容もLSIテスタ2に出力されるため、テストデ
バッグも容易となる。
As described above, according to the first embodiment, the allocation of the functions of the dual-purpose block serving as the external system bus function and the input / output port function is programmably changed by rewriting the external system bus selection register 11, and the microcomputer 1 It is possible to test the input / output port functions of the dual-purpose blocks 8 and 9 with the same test program while the mode of No. 2 is set to the test mode, and the contents of the test program are also output to the LSI tester 2. It will be easy.

【0020】実施例2.次に、この発明の実施例2を図
について説明する。図3は請求項3に記載した発明の一
実施例の要部を示す構成図で、この実施例2は、外部シ
ステムバス割り振り切り換え制御回路10における兼用
ブロック8、9の機能の割り振りを、外部システムバス
選択レジスタ11の設定データではなく、外部入力端子
の入力電圧のレベルによって制御している。図におい
て、14はその外部入力端子であり、15はこの外部入
力端子14に入力された入力電圧を外部システムバス割
り振り切り換え制御回路10に伝達するバッファであ
る。なお、他の部分には図1の相当部分と同一符号を付
してその説明を省略する。
Example 2. Next, a second embodiment of the present invention will be described with reference to the drawings. FIG. 3 is a block diagram showing an essential part of an embodiment of the invention described in claim 3. In this embodiment 2, the allocation of functions of the shared blocks 8 and 9 in the external system bus allocation switching control circuit 10 is externally It is controlled not by the setting data of the system bus selection register 11 but by the level of the input voltage of the external input terminal. In the figure, 14 is its external input terminal, and 15 is a buffer for transmitting the input voltage input to this external input terminal 14 to the external system bus allocation switching control circuit 10. The other parts are given the same reference numerals as the corresponding parts in FIG. 1 and their explanations are omitted.

【0021】次に動作について説明する。ここで、図4
は図3のように構成されたマイコン1の兼用ブロックを
テストする際の処理の流れを示すフローチャートであ
る。なお、基本的な動作は図2に示した実施例1の場合
と同様であるため、それについての説明はここでは省略
する。兼用ブロック8の入出力ポート機能のテストを実
施する場合、マイコン1はテストモードで、兼用ブロッ
ク8を外部システムバス機能としたまま、ステップST
22において、テストプログラムによって一時外部入力
端子14への入力待ちのウェイト状態にする。そのとき
外部入力端子14の入力電圧をハイレベル(例えば5
V)からローレベル(例えば0V)変化させると、その
入力電圧のレベルの変化が制御信号として、バッファ1
5経由で外部システムバス割り振り切り換え制御回路1
0に伝えられる。外部システムバス割り振り切り換え制
御回路10は、ステップST23にてこの外部入力端子
14の入力電圧のレベルを取り込み、それがローレベル
(0V)であることから、外部システムバスのアドレス
/データの割り振りを兼用ブロック8から兼用ブロック
9に変更する。これにより、ステップST23にて兼用
ブロック8は外部システムバス機能から入出力ポート機
能に、兼用ブロック9は入出力ポート機能から外部シス
テムバス機能にそれぞれ切り換えられ、以下、実施例1
の場合と同様にして兼用ブロック8の入出力ポート機能
のテストが実施される。
Next, the operation will be described. Here, FIG.
4 is a flow chart showing the flow of processing when testing a dual-purpose block of the microcomputer 1 configured as shown in FIG. Since the basic operation is the same as that of the first embodiment shown in FIG. 2, the description thereof will be omitted here. When carrying out the test of the input / output port function of the dual-purpose block 8, the microcomputer 1 is in the test mode, and the dual-purpose block 8 is set to the external system bus function, and step ST
At 22, the test program temporarily sets a wait state for waiting for input to the external input terminal 14. At that time, the input voltage of the external input terminal 14 is set to a high level (for example, 5
V) to a low level (0 V, for example), the change in the level of the input voltage is used as a control signal in the buffer 1
External system bus allocation switching control circuit 1 via 5
It is transmitted to 0. The external system bus allocation switching control circuit 10 takes in the level of the input voltage of the external input terminal 14 in step ST23, and since it is at the low level (0 V), it also serves as the allocation of the address / data of the external system bus. The block 8 is changed to the combined block 9. As a result, in step ST23, the dual-purpose block 8 is switched from the external system bus function to the input / output port function, and the dual-purpose block 9 is switched from the input / output port function to the external system bus function.
The test of the input / output port function of the dual-purpose block 8 is carried out in the same manner as in the above case.

【0022】このように、この実施例2によれば、外部
システムバス選択レジスタ11などのハードウェアを別
途設けなくとも、外部入力端子14への入力電圧のレベ
ルによって、兼用ブロック8と9の入出力ポート機能
を、マイコン1をテストモードにしたまま同一のテスト
プログラムでのテストすることが可能となり、テストプ
ログラムのデバッグも容易に行うことができる。
As described above, according to the second embodiment, even if the hardware such as the external system bus selection register 11 is not separately provided, the input / output of the dual-purpose blocks 8 and 9 depends on the level of the input voltage to the external input terminal 14. The output port function can be tested by the same test program while the microcomputer 1 is in the test mode, and the test program can be easily debugged.

【0023】実施例3.次に、この発明の実施例3を図
について説明する。図5は請求項4に記載した発明の一
実施例の要部を示す構成図で、相当部分には図3と同一
符号を付してその説明を省略する。図において、16は
このマイコン1のリセット信号が入力されるリセット端
子であり、17はこのリセット端子16に入力された信
号と、バッファ15からの外部入力端子14の入力電圧
との論理演算(この場合にはナンド論理演算)を行い、
その演算結果を外部システムバス割り振り切り換え制御
回路10に制御信号として入力する論理回路である。
Example 3. Next, a third embodiment of the present invention will be described with reference to the drawings. FIG. 5 is a configuration diagram showing a main part of an embodiment of the invention described in claim 4, and corresponding parts are denoted by the same reference numerals as those in FIG. 3 and their description is omitted. In the figure, 16 is a reset terminal to which the reset signal of the microcomputer 1 is input, and 17 is a logical operation of the signal input to the reset terminal 16 and the input voltage of the external input terminal 14 from the buffer 15 (this In case of NAND logic operation),
It is a logic circuit that inputs the calculation result to the external system bus allocation switching control circuit 10 as a control signal.

【0024】次に動作について説明する。ここで、この
実施例3によるマイコンテスト回路は、実施例2で説明
した、外部入力端子14の入力信号のレベルに基づく、
外部システムバス割り振り切り換え制御回路10による
外部システムバスのアドレス/データの割り振りを、マ
イコン1のリセット解除時に決定できるようにしたもの
である。図6はそのときの各部の信号の関係を示すタイ
ムチャートである。例えばリセット端子16に入力され
るリセット信号がローレベルからハイレベルに変化して
マイコン1のリセットが解除された時、図示のように外
部入力端子14の入力電圧のレベルがハイレベルであれ
ば、そのナンド論理に基づいて論理回路17より出力さ
れる制御信号はローレベルとなる。この論理回路17の
出力する制御信号を受けた外部システムバス割り振り切
り換え制御回路10は実施例2の場合と同様にして、兼
用ブロック8を外部システムバス機能から入出力ポート
機能に、兼用ブロック9を入出力ポート機能から外部シ
ステムバス機能にそれぞれ切り換える。
Next, the operation will be described. Here, the microcomputer test circuit according to the third embodiment is based on the level of the input signal of the external input terminal 14 described in the second embodiment.
The allocation of the address / data of the external system bus by the external system bus allocation switching control circuit 10 can be determined when the reset of the microcomputer 1 is released. FIG. 6 is a time chart showing the relationship of the signals of the respective parts at that time. For example, when the reset signal input to the reset terminal 16 changes from low level to high level and the reset of the microcomputer 1 is released, if the level of the input voltage of the external input terminal 14 is high level as shown in the figure, The control signal output from the logic circuit 17 based on the NAND logic becomes low level. The external system bus allocation switching control circuit 10 which receives the control signal output from the logic circuit 17 changes the shared block 8 from the external system bus function to the input / output port function and the shared block 9 in the same manner as in the second embodiment. Switch from the I / O port function to the external system bus function.

【0025】このようにこの実施例3によれば、マイコ
ン1のリセット解除時に外部システムバスの割り振りを
決定することができるため、外部システムバス機能に不
具合のある兼用ブロックが存在しても、他の兼用ブロッ
クを用いてテストを行うことが可能となる。
As described above, according to the third embodiment, since the allocation of the external system bus can be determined when the reset of the microcomputer 1 is released, even if there is a shared block having a defect in the external system bus function, other It is possible to perform a test using the dual-purpose block.

【0026】[0026]

【発明の効果】以上のように、請求項1に記載の発明に
よれば、外部システムバス機能と入出力ポート機能との
切り換えが可能な兼用ブロックを複数用意し、外部シス
テムバス割り振り切り換え制御回路が制御信号に基づい
て、これら各兼用ブロックの前記機能の割り振りの切り
換えを制御するように構成したので、前記各兼用ブロッ
クを含む複数の入出力ポート機能のテストが、同一のテ
ストプログラムで、マイコンのモードを変更することな
く実施することが可能となって、テストプログラム数を
削減することができ、また、テストプログラムのデバッ
グも容易になることで、テストプログラム開発の負荷を
軽減することができるマイコンテスト回路が得られる効
果がある。
As described above, according to the first aspect of the invention, a plurality of combined blocks capable of switching between the external system bus function and the input / output port function are prepared, and the external system bus allocation switching control circuit is provided. Is configured to control the switching of the allocation of the functions of these dual-purpose blocks based on the control signal, so that a plurality of I / O port functions including the dual-purpose blocks can be tested by the same test program by the microcomputer. It is possible to carry out without changing the mode of, the number of test programs can be reduced, and the debugging of the test programs is facilitated, so that the load of the test program development can be reduced. There is an effect that a microcomputer test circuit can be obtained.

【0027】また、請求項2に記載の発明によれば、外
部システムバス割り振り切り換え制御回路が兼用ブロッ
クの機能の割り振りの切り換えを、外部システムバス選
択レジスタに設定されたデータに基づいて制御するよう
に構成したので、兼用ブロックが外部システムバス機能
もしくは入出力ポート機能となる割り振りをプログラマ
ブルに変更することができ、制御信号を入力するための
外部入力端子が不要であるため、端子数に余裕がない場
合にも実施が可能となる効果がある。
According to the second aspect of the invention, the external system bus allocation switching control circuit controls switching of allocation of the function of the shared block based on the data set in the external system bus selection register. Since it is configured as above, the allocation of the dual-purpose block to be the external system bus function or the input / output port function can be changed in a programmable manner, and the external input terminal for inputting the control signal is not required, so there is a margin in the number of terminals. Even if there is not, there is an effect that it can be implemented.

【0028】また、請求項3に記載の発明によれば、外
部システムバス割り振り切り換え制御回路が兼用ブロッ
クの機能の割り振りの切り換えを、外部入力端子の入力
電圧のレベルに基づいて制御するように構成したので、
外部システムバス選択レジスタなどのハードウェアを別
途設ける必要がなく、ハードウェア構成を簡略化できる
効果がある。
According to the third aspect of the present invention, the external system bus allocation switching control circuit controls the switching of the allocation of the function of the shared block based on the level of the input voltage of the external input terminal. Because I did
Since there is no need to separately provide hardware such as an external system bus selection register, the hardware configuration can be simplified.

【0029】また、請求項4に記載の発明によれば、外
部システムバス割り振り切り換え制御回路が兼用ブロッ
クの機能の割り振りの切り換えを、外部入力端子の入力
電圧とリセット信号の論理演算結果に基づいて制御する
ように構成したので、1つの兼用ブロックの外部システ
ムバス機能に不具合が生じた場合でも、他の兼用ブロッ
クに切り換えてテストを行うことが可能となり、不良解
析時に有効となる効果がある。
According to the invention of claim 4, the external system bus allocation switching control circuit switches the allocation of the function of the shared block based on the logical operation result of the input voltage of the external input terminal and the reset signal. Since the configuration is such that control is performed, even if a failure occurs in the external system bus function of one shared block, it is possible to switch to another shared block for testing and be effective during failure analysis.

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

【図1】 この発明の実施例1によるマイコンテスト回
路を示す構成図である。
FIG. 1 is a configuration diagram showing a microcomputer test circuit according to a first embodiment of the present invention.

【図2】 上記実施例の処理の流れを示すフローチャー
トである。
FIG. 2 is a flowchart showing a processing flow of the above embodiment.

【図3】 この発明の実施例2によるマイコンテスト回
路を示す構成図である。
FIG. 3 is a configuration diagram showing a microcomputer test circuit according to a second embodiment of the present invention.

【図4】 上記実施例の処理の流れを示すフローチャー
トである。
FIG. 4 is a flowchart showing a processing flow of the above embodiment.

【図5】 この発明の実施例3によるマイコンテスト回
路を示す構成図である。
FIG. 5 is a configuration diagram showing a microcomputer test circuit according to a third embodiment of the present invention.

【図6】 上記実施例の動作を説明するためのタイムチ
ャートである。
FIG. 6 is a time chart for explaining the operation of the above embodiment.

【図7】 従来のマイコンテスト回路を示す構成図であ
る。
FIG. 7 is a configuration diagram showing a conventional microcomputer test circuit.

【図8】 その処理の流れを示すフローチャートであ
る。
FIG. 8 is a flowchart showing the flow of the processing.

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

1 マイコン、2 テスト装置(LSIテスタ)、8,
9 兼用ブロック、10 外部システムバス割り振り切
り換え制御回路、11 外部システムバス選択レジス
タ、14 外部入力端子、17 論理回路。
1 microcomputer, 2 test equipment (LSI tester), 8,
9 dual-purpose block, 10 external system bus allocation switching control circuit, 11 external system bus selection register, 14 external input terminal, 17 logic circuit.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 外部システムバス機能と入出力ポート機
能とを併せ持った兼用ブロックの前記機能を、マイクロ
コンピュータのモードによって切り換え、テストモード
時には前記外部システムバス機能を選択して、外部のテ
スト装置との間でアドレス/データの授受を行わせてテ
ストを実施するマイクロコンピュータテスト回路におい
て、前記兼用ブロックを複数用意し、制御信号に基づい
て、前記各兼用ブロックが外部システムバス機能もしく
は入出力ポート機能となる機能の割り振りの切り換えを
制御する外部システムバス割り振り切り換え制御回路を
設けたことを特徴とするマイクロコンピュータテスト回
路。
1. A function of a dual-purpose block having both an external system bus function and an input / output port function is switched according to a mode of a microcomputer, and in the test mode, the external system bus function is selected to be used as an external test device. In a microcomputer test circuit that conducts a test by sending and receiving addresses / data between the plurality of shared blocks, each shared block is provided with an external system bus function or an input / output port function based on a control signal. A microcomputer test circuit, which is provided with an external system bus allocation switching control circuit for controlling switching of allocation of functions to be used.
【請求項2】 前記外部システムバス割り振り切り換え
制御回路への制御信号となるデータが設定される外部シ
ステムバス選択レジスタを設けたことを特徴とする請求
項1に記載のマイクロコンピュータテスト回路。
2. The microcomputer test circuit according to claim 1, further comprising an external system bus selection register in which data as a control signal to the external system bus allocation switching control circuit is set.
【請求項3】 前記外部システムバス割り振り切り換え
制御回路への制御信号を、外部入力端子からの入力電圧
としたことを特徴とする請求項1に記載のマイクロコン
ピュータテスト回路。
3. The microcomputer test circuit according to claim 1, wherein the control signal to the external system bus allocation switching control circuit is an input voltage from an external input terminal.
【請求項4】 前記外部システムバス割り振り切り換え
制御回路への制御信号を、論理回路による、前記外部入
力端子からの入力電圧と当該マイクロコンピュータのリ
セット信号との論理演算結果としたことを特徴とする請
求項3に記載のマイクロコンピュータテスト回路。
4. The control signal to the external system bus allocation switching control circuit is a result of logical operation of an input voltage from the external input terminal and a reset signal of the microcomputer by a logic circuit. The microcomputer test circuit according to claim 3.
JP6146483A 1994-06-28 1994-06-28 Microcomputer test circuit Pending JPH0815387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6146483A JPH0815387A (en) 1994-06-28 1994-06-28 Microcomputer test circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6146483A JPH0815387A (en) 1994-06-28 1994-06-28 Microcomputer test circuit

Publications (1)

Publication Number Publication Date
JPH0815387A true JPH0815387A (en) 1996-01-19

Family

ID=15408665

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6146483A Pending JPH0815387A (en) 1994-06-28 1994-06-28 Microcomputer test circuit

Country Status (1)

Country Link
JP (1) JPH0815387A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6415393B2 (en) 1997-07-16 2002-07-02 Nec Corporation Inspection of an integrated circuit device while being mounted on a circuit board
CN103487742A (en) * 2013-10-09 2014-01-01 惠州市蓝微电子有限公司 Test circuit for single lithium battery protection board
WO2017080373A1 (en) * 2015-11-12 2017-05-18 丰唐物联技术(深圳)有限公司 Smart household appliance test method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6415393B2 (en) 1997-07-16 2002-07-02 Nec Corporation Inspection of an integrated circuit device while being mounted on a circuit board
CN103487742A (en) * 2013-10-09 2014-01-01 惠州市蓝微电子有限公司 Test circuit for single lithium battery protection board
WO2017080373A1 (en) * 2015-11-12 2017-05-18 丰唐物联技术(深圳)有限公司 Smart household appliance test method and system
CN106707771A (en) * 2015-11-12 2017-05-24 丰唐物联技术(深圳)有限公司 Test method and system for intelligent appliance

Similar Documents

Publication Publication Date Title
US6668339B1 (en) Microprocessor having a debug interruption function
US5566303A (en) Microcomputer with multiple CPU'S on a single chip with provision for testing and emulation of sub CPU's
KR19980080308A (en) Bus-to-bus bridge circuit with integrated loopback test capability and method of use
EP0418932A2 (en) Microcomputer having easily testable interrupt controller
JP2005316559A (en) Debugging circuit and debugging control method
US6311303B1 (en) Monitor port with selectable trace support
JPH0815387A (en) Microcomputer test circuit
KR100206680B1 (en) Data processor having shared terminal for monitoring internal and external memory events
JP2004094451A (en) On-chip jtag interface circuit and system lsi
JPH1040130A (en) Microcomputer
JPH0535391B2 (en)
JP2004021833A (en) Semiconductor integrated circuit incorporated with self-test function and system comprising it
JPH0934748A (en) Microcomputer for emulation
JPS646489B2 (en)
JPH10123221A (en) Circuit including structure testing means without testing pad exclusively for testing
JPH0358141A (en) Integrated circuit with logic for user
JP2006302162A (en) Multiprocessor system
JP2704935B2 (en) Processor with test function
JPS62125441A (en) One-chip microcomputer
JP2861001B2 (en) I / O circuit
KR19980021249A (en) Parallel interface unit
JPS6011941A (en) Data processor
JPH0442329A (en) Data processor
JPH02103482A (en) Integrated circuit device
JPH04155278A (en) Lsi tester