JPS6356741A - Test circuit - Google Patents

Test circuit

Info

Publication number
JPS6356741A
JPS6356741A JP61203008A JP20300886A JPS6356741A JP S6356741 A JPS6356741 A JP S6356741A JP 61203008 A JP61203008 A JP 61203008A JP 20300886 A JP20300886 A JP 20300886A JP S6356741 A JPS6356741 A JP S6356741A
Authority
JP
Japan
Prior art keywords
test
serial
sck
register
shift register
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
JP61203008A
Other languages
Japanese (ja)
Inventor
Masahiro Nakamura
雅博 中村
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP61203008A priority Critical patent/JPS6356741A/en
Publication of JPS6356741A publication Critical patent/JPS6356741A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To miniaturize a circuit scale by using a register to operate as a serial shift register in a usual action condition as a test mode register in a test condition. CONSTITUTION:When a test signal TEST is '0', namely, in a usual action condition, an octal counter 2 counts a serial clock SCK, counts eight rounds, and each time the transferring of 1 byte serial data is completed, an internal interrupting signal INTS is generated. Simultaneously, a flip-flop 5 is reset and the succeeding SCK input is neglected. When the test signal TESt is '1' and SCK, SI are '0', the output of the flip-flop 4 comes to be '1', and an internal circuit is set to a test condition. The internal circuit is set to a test mode in accordance with the value of a serial shift register.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はシリアルインターフェースを内蔵したシングル
チップマイクロコンピュータのテスト回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a test circuit for a single-chip microcomputer with a built-in serial interface.

〔従来の技術〕[Conventional technology]

従来の内部回路をテスト状態に設だするテスト回路の一
例を第3図に示す。
FIG. 3 shows an example of a conventional test circuit for placing an internal circuit in a test state.

テスト信号とは、テスト用の端子を設け、テスト状態と
、通常動作状態を論理レベル゛1”または”0”で切換
る方法、通常動作電圧より絶対値の高い電圧を入力端子
に入力し、アナログレベルを判定してテスト状態に切換
る方法通常動作状態では起り得ない論理値の組合せによ
シ内部回路をテスト状態とする方法等によIE成される
信号である。
The test signal is a method in which a test terminal is provided, the test state and the normal operating state are switched at logic level "1" or "0", a voltage with an absolute value higher than the normal operating voltage is input to the input terminal, A method of determining an analog level and switching to a test state is a signal generated by IE by a method of putting an internal circuit into a test state using a combination of logical values that cannot occur in a normal operating state.

このテスト信号がアクティブの期間に内部システムクロ
ック“CLK同期してボートよシフリップフロップ24
.25.26にデータを書き込むことによシ、内部回路
を、フリップフロップ24゜25.26の出力値に応じ
たテストモードに設定する。
During the period when this test signal is active, the flip-flop 24 transfers the boat in synchronization with the internal system clock “CLK”.
.. By writing data to 25.26, the internal circuit is set to a test mode according to the output value of the flip-flop 24.25.26.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のテスト回路においては、テストモードレ
ジスタは、内部回路をテスト状態に設定する為にのみ用
いられ、通常動作状態においては機能していない。すな
わち、テストのために回路規模が大きくなるという欠点
があった。
In the conventional test circuit described above, the test mode register is used only to set the internal circuit in a test state, and does not function in the normal operating state. That is, there is a drawback that the circuit scale becomes large for testing.

C問題点を解決するための手段〕 本発明のテスト回路は、内部回路のテスト時には、シリ
アルシフトレジスタ?テストモードレジスタとして機能
させる手段を有している。
Means for Solving Problem C] The test circuit of the present invention uses a serial shift register when testing internal circuits. It has means for functioning as a test mode register.

〔実施例〕〔Example〕

次に本発明の実施例を図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のブロック構成図である。FIG. 1 is a block diagram of an embodiment of the present invention.

テスト信号TESTがロウレベルの場合、すなわち通常
動作状態の場合の動作について説明する。
The operation when the test signal TEST is at a low level, that is, in the normal operating state, will be described.

1は8ビツトのシリアルシフトレジスタであシ、シリア
ルクロックSCKの立下シで最上位ビットの内容がSO
端子よシ出力され、立上シでシリアルシフトレジスタの
内容が1ビツト下位から、上位にシフトされると同時に
、SI端子の論理レベルが最下位ビットにラッチされる
1 is an 8-bit serial shift register, and the contents of the most significant bit are set to SO at the falling edge of the serial clock SCK.
At the rising edge, the contents of the serial shift register are shifted from the lower bit to the upper bit, and at the same time, the logic level of the SI terminal is latched to the least significant bit.

8進カウンタ2ilt、シリアルクロックSCKをカウ
ントし、8発カウントして、1バイトシリアルデータの
転送が終了するごとに内部側シ込み信号INTSを発生
する。同時に、スリップ70ツブ5をリセットし、以後
のSCKの入力を無視する。
The octal counter 2ilt counts the serial clock SCK, counts eight times, and generates an internal input signal INTS every time the transfer of 1-byte serial data is completed. At the same time, the slip 70 knob 5 is reset and subsequent SCK inputs are ignored.

8進カウンタ2.7リツプ70ツブ5itリセット信号
RESET、シリアル転送開始を示す信号5TARTに
より、リセット、セットされる@第2図は前記実施例の
テスト状態設定時の動作を示すタイミング図である。第
1図、第2図を参照しながら本実施例のテスト状態設定
時の動作について説明する。
The octal counter 2.7 rip 70 tabs 5 it is reset and set by the reset signal RESET and the signal 5TART indicating the start of serial transfer @FIG. 2 is a timing diagram showing the operation when setting the test state of the embodiment. The operation of this embodiment when setting a test state will be described with reference to FIGS. 1 and 2.

テスト信号TESTが@1″かつ、SCKが10′″の
時にDタイプフリップ70ツブ(以下F/Fと記す)4
のクロックを生成するNORゲート8が1”となシ、F
/F4はNORゲート7の出力値をラッチする。7はT
ESTが61“、かつシリアル人力SIが“θ′″の時
11”となるゲートである。すなわち、TESTが@1
″かつ、SCK、S Iが−0”O時、F/F4O出力
は”1”となシ、内部回路をテスト状態に設定する。
When the test signal TEST is @1'' and SCK is 10'', D type flip 70 knob (hereinafter referred to as F/F) 4
If the NOR gate 8 that generates the clock is 1", F
/F4 latches the output value of NOR gate 7. 7 is T
This is a gate that becomes 11 when EST is 61" and serial human input SI is "θ'". That is, TEST is @1
"And when SCK and SI are -0", the F/F4O output is "1" and the internal circuit is set to the test state.

内部回路はシリアルシフトレジスタの値に応じたテスト
モードに設定される。
The internal circuit is set to a test mode according to the value of the serial shift register.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は通常動作状態においてはシ
リアルシフトレジスタとして動作するレジスタを、テス
ト状態においてはテストモードレジスタとして使用する
ため、テストO為に付加する回路が少くてすむという大
きな効果がある。
As explained above, the present invention uses a register that operates as a serial shift register in the normal operating state and as a test mode register in the test state, which has the great effect of reducing the need for additional circuitry for testing. .

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

第1図は本発明の一実施例を示す回路図、第2図は第1
図のテストモード設定時の動作を示すタイミング図、第
3図は従来のテスト回路でるる。 1・・・・・・シリアルシフトレジスタ、2・・・・・
・8進カウンタ、3・・・・・・ORゲート、4・・・
・・・リセット付りタイプフリップ70ツブ、5・・・
・・・RSフリンプ70ツ7”、6.9・・・・・・A
NDゲート、7,8・・・・・NORゲート、10・・
・・・・インバータ、11.27・・・・・・内部デー
タバス、21,22,23°°°°°“クロックバッフ
ァ、24,25.26・・・・・・Dタイプフリップフ
ロップ。 代理人 弁理士  内 原   1  °−a、−r:
゛。 箭1図
Fig. 1 is a circuit diagram showing one embodiment of the present invention, and Fig. 2 is a circuit diagram showing an embodiment of the present invention.
FIG. 3 is a timing diagram showing the operation when the test mode is set. FIG. 3 shows a conventional test circuit. 1... Serial shift register, 2...
・Octal counter, 3...OR gate, 4...
...Type flip 70 knobs with reset, 5...
...RS Flimp 70 pieces 7", 6.9...A
ND gate, 7, 8...NOR gate, 10...
...Inverter, 11.27...Internal data bus, 21,22,23°°°°°"Clock buffer, 24,25.26...D type flip-flop. Substitute Person Patent Attorney Uchihara 1 °-a,-r:
゛. Bamboo illustration 1

Claims (1)

【特許請求の範囲】[Claims] シリアルインターフェースを内蔵したシングルチップマ
イクロコンピュータにおいて、テスト時にシリアルシフ
トレジスタをテストモードレジスタとして機能させる手
段を設けたことを特徴とするテスト回路。
A test circuit for a single-chip microcomputer with a built-in serial interface, characterized in that it is provided with means for making a serial shift register function as a test mode register during testing.
JP61203008A 1986-08-28 1986-08-28 Test circuit Pending JPS6356741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61203008A JPS6356741A (en) 1986-08-28 1986-08-28 Test circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61203008A JPS6356741A (en) 1986-08-28 1986-08-28 Test circuit

Publications (1)

Publication Number Publication Date
JPS6356741A true JPS6356741A (en) 1988-03-11

Family

ID=16466804

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61203008A Pending JPS6356741A (en) 1986-08-28 1986-08-28 Test circuit

Country Status (1)

Country Link
JP (1) JPS6356741A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5727041A (en) * 1980-07-25 1982-02-13 Hitachi Ltd Large-scale integrated circuit having testing function
JPS5771035A (en) * 1980-10-22 1982-05-01 Toshiba Corp Input and output equipment for microcomputer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5727041A (en) * 1980-07-25 1982-02-13 Hitachi Ltd Large-scale integrated circuit having testing function
JPS5771035A (en) * 1980-10-22 1982-05-01 Toshiba Corp Input and output equipment for microcomputer

Similar Documents

Publication Publication Date Title
JPH0311036B2 (en)
JPH04319693A (en) Timer input controlling circuit and counter controlling circuit
JPS6356741A (en) Test circuit
JPS6316711A (en) Timing device
JPS5831620A (en) Ternary ring counter
JP2903548B2 (en) Logic circuit diagnostic system
JP2953713B2 (en) Semiconductor integrated circuit
JPS57166646A (en) Logical circuit
JPS6111786Y2 (en)
JPS62260418A (en) Flip-flop circuit
JP2658327B2 (en) Logic circuit
JPH073019U (en) Operation mode setting circuit
JPH0262797A (en) Dynamic type shift register
JPS61289448A (en) Buffer memory device
JPH02280263A (en) Microprocessor
JPS59229923A (en) Logical circuit for integrated circuit
JPS63103521A (en) Parallel/serial conversion circuit
JPH0653819A (en) Synchronizing counter
JPH0326976A (en) Test apparatus of semiconductor integrated circuit
JPH0752558B2 (en) Recording density switching circuit
JPH02113715A (en) D flip-flop circuit
JPH02124635A (en) Counter control circuit
JPH0241929B2 (en)
JPH0282135U (en)
JPS62266645A (en) Serial interface circuit