JP2009276921A - Microcomputer - Google Patents
Microcomputer Download PDFInfo
- Publication number
- JP2009276921A JP2009276921A JP2008126210A JP2008126210A JP2009276921A JP 2009276921 A JP2009276921 A JP 2009276921A JP 2008126210 A JP2008126210 A JP 2008126210A JP 2008126210 A JP2008126210 A JP 2008126210A JP 2009276921 A JP2009276921 A JP 2009276921A
- Authority
- JP
- Japan
- Prior art keywords
- microcomputer
- memory
- test
- address
- rom
- 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
Links
Images
Landscapes
- Microcomputers (AREA)
Abstract
Description
本発明はマイクロコンピュータに係り、1チップマイクロコンピュータに関する。 The present invention relates to a microcomputer, and more particularly to a one-chip microcomputer.
従来より、CPU、メモリ(RAM、ROM)、周辺LSI等の機能を1つの半導体チップに搭載した1チップマイクロコンピュータがある。 Conventionally, there is a one-chip microcomputer in which functions such as a CPU, a memory (RAM, ROM), and a peripheral LSI are mounted on one semiconductor chip.
上記のマイクロコンピュータには、アドレスバス及びデータバスを外部端子に導出している多ピン型マイクロコンピュータと、アドレスバス及びデータバスを外部端子に導出していない少ピン型マイクロコンピュータとがある。 The microcomputer includes a multi-pin type microcomputer in which an address bus and a data bus are led out to an external terminal, and a small pin type microcomputer in which the address bus and the data bus are not led out to an external terminal.
図6に従来の多ピン型マイクロコンピュータのテストの様子を示す。多ピン型マイクロコンピュータ1のROM1aの記憶データをテストする場合、マイクロコンピュータ1のアドレスバスの外部端子及びデータバスの外部端子をテスタ2のアドレスバスの外部端子A[15:0]及びデータバスの外部端子D[15:0]に接続する。
FIG. 6 shows a test state of a conventional multi-pin type microcomputer. When testing the data stored in the
そして、テスタ2からマイクロコンピュータ1のROM1aに読み出しアドレスを供給し、ROM1aからの読み出しデータをテスタ2に供給し、テスタ2において、上記読み出しデータを規格データ(ROM1aに書き込まれている元データ)と比較し、双方の一致/不一致を検出する。
Then, a read address is supplied from the
図7に従来の少ピン型マイクロコンピュータのテストの様子を示す。少ピン型マイクロコンピュータ3のROM3aの記憶データをテストする場合、マイクロコンピュータ3はアドレスバス及びデータバスの外部端子を持たないため、テスタ4から外部端子TESTを通してマイクロコンピュータ3のCPU3bにテスト指示信号を供給する。
FIG. 7 shows a test state of a conventional small pin type microcomputer. When testing the data stored in the
これにより、CPU3bはROM3aの一部に予め記憶されているテストプログラムを実行して、ROM3aからテスト対象の記憶データを順に読み出し、CPU3bにおいて各15ビットの読み出しデータを加算して総和を求める。
As a result, the
その後、CPU3bはROM3aの一部に予め記憶されているサムデータを読み出して上記の総和と比較し、双方の一致/不一致を検出し、検出結果を汎用の外部端子GPIO0〜GPIO3のいずれかからテスタ4に供給する。
Thereafter, the
なお、チャネルデータ設定回路に関する技術について公知文献を調査したが、これに対応する公知文献は発見できなかった。 In addition, although the publicly known literature was investigated about the technique regarding a channel data setting circuit, the publicly known literature corresponding to this was not found.
従来の少ピン型マイクロコンピュータのテストではROM3aに書き込まれているデータに誤りがあるか否かは判定できるものの、誤りがあった場合にROM3aのどのアドレスに誤りがあったのかを認識できない。このため、複数のマイクロコンピュータのROMで誤りが発生した場合に、製造過程のどの部分が原因となって誤りが発生したかを解析することができないという問題があった。
Although it is possible to determine whether or not there is an error in the data written in the
本発明は、記の点に鑑みてなされたもので、少ピン型マイクロコンピュータのメモリの記憶データを外部に出力できるマイクロコンピュータを提供することを目的とする。 The present invention has been made in view of the above points, and an object of the present invention is to provide a microcomputer capable of outputting data stored in a memory of a small pin microcomputer to the outside.
本発明の一実施態様によるマイクロコンピュータは、CPUとメモリと周辺回路を1つの半導体チップに搭載したマイクロコンピュータにおいて、
テスト時にクロックをカウントしてアドレスを発生するカウンタ(33)と、
テスト時に前記カウンタ(33)で発生したアドレスを前記メモリ(12)に供給するアドレススイッチ(34−1〜34−15)と、
テスト時に前記メモリ(12)から前記アドレスにより読み出されたデータを複数ブロックに分割して、外部から供給されるモード信号で指示される1つのブロックの信号を外部端子から出力するセレクタ(40)と、を有する。
A microcomputer according to an embodiment of the present invention is a microcomputer in which a CPU, a memory, and a peripheral circuit are mounted on one semiconductor chip.
A counter (33) for generating an address by counting a clock during a test;
An address switch (34-1 to 34-15) for supplying an address generated by the counter (33) during the test to the memory (12);
A selector (40) that divides the data read from the memory (12) by the address during the test into a plurality of blocks and outputs a signal of one block indicated by a mode signal supplied from the outside from an external terminal And having.
好ましくは、前記クロックを分周してリードイネーブル信号を生成するフリップフロップ(31)と、
テスト時に前記フリップフロップ(31)で生成したリードイネーブル信号を前記メモリ(12)に供給する信号スイッチ(32)と、を有する。
Preferably, a flip-flop (31) that divides the clock to generate a read enable signal;
A signal switch (32) for supplying a read enable signal generated by the flip-flop (31) to the memory (12) during a test.
好ましくは、前記カウンタ(33)は、タイマ(16)の一部である。 Preferably, the counter (33) is part of the timer (16).
好ましくは、前記メモリは、ROM(12)である。 Preferably, the memory is a ROM (12).
なお、上記括弧内の参照符号は、理解を容易にするために付したものであり、一例にすぎず、図示の態様に限定されるものではない。 Note that the reference numerals in the parentheses are given for ease of understanding, are merely examples, and are not limited to the illustrated modes.
本発明によれば、少ピン型マイクロコンピュータのメモリの記憶データを外部に出力できる。 According to the present invention, data stored in a memory of a small pin type microcomputer can be output to the outside.
<マイクロコンピュータの全体構成>
図1は、本発明のマイクロコンピュータの一実施形態のブロック構成図を示す。同図中、マイクロコンピュータ10は、CPU11と、ROM12と、RAM13と、シリアル入出力回路(UART)14と、8ビットタイマ15と、16ビットタイマ16と、アナログ入力回路17と、汎用ポート回路18を有しており、上記のCPU11,ROM12,RAM13,シリアル入出力回路14,8ビットタイマ15,16ビットタイマ16,アナログ入出力回路17,汎用ポート回路18それぞれは内部のアドレスバス20及びデータバス21に接続されている。これらの回路及びバス11〜21は1チップの半導体基板上にまとめて形成されている。
<Overall configuration of microcomputer>
FIG. 1 is a block diagram showing a microcomputer according to an embodiment of the present invention. In the figure, a
マイクロコンピュータ10の外部端子RXD,TXDは、シリアル入出力回路14に接続されており、通常時にはシリアル信号の入出力を行い、テスト時には2ビットのモード信号が図示しないテスタから入力される。
The external terminals RXD and TXD of the
外部端子TESTは、シリアル入出力回路14,16ビットタイマ16,汎用ポート回路18に接続されており、ローレベル(又は不定状態)で通常動作を指示し、ハイレベルでテスト動作を指示するテストモード信号が図示しないテスタから入力される。
The external terminal TEST is connected to the serial input /
外部端子RSTは、CPU11,シリアル入出力回路14,8ビットタイマ15,16ビットタイマ16,汎用ポート回路18等の各回路に接続されており、リセット信号が入力される。
The external terminal RST is connected to each circuit such as the
外部端子SGは、アナログ入出力回路17に接続されており、アナログ信号が入出力される。
The external terminal SG is connected to the analog input /
外部端子GPIO0〜GPIO3は、汎用ポート回路18に接続されており、通常時には各種信号の入出力を行い、テスト時には4ビットの分割データの出力を行う。
The external terminals GPIO0 to GPIO3 are connected to the general-
外部端子CLKは、CPU11,シリアル入出力回路14,8ビットタイマ15,16ビットタイマ16,汎用ポート回路18等の各回路に接続されており、外部クロック(システムクロック)が入力される。
The external terminal CLK is connected to each circuit such as the
<ROMテスト時の動作>
図2は、ROMテスト時の動作を説明するためのブロック構成図を示す。同図中、16ビットタイマ16内のT型フリップフロップ31は、外部端子RSTから供給される図3(B)に示すリセット信号がローレベルとなってリセット解除されると、外部端子CLKから供給される図3(A)に示す外部クロックを1/2分周して図3(E)に示す信号とし、スイッチ(信号スイッチ)32及びカウンタ33に供給する。
<Operation during ROM test>
FIG. 2 is a block diagram for explaining the operation during the ROM test. In the figure, the T-type flip-
カウンタ33は、16ビットのカウンタであり、外部端子RSTから供給されるリセット信号がローレベルとなってリセット解除されると初期値を0とし、フリップフロップ31から供給されるクロックをカウントして下位15ビットのカウント値をスイッチ(アドレススイッチ)34−1〜34−15に供給する。図3(C)にカウンタ33のカウント値を示す。図中、「H'」は16進表示を示している。また、カウンタ33の16ビットのカウント値は比較回路35に供給される。
The
スイッチ32,34−1〜34−15それぞれは、テストモード信号がハイレベルのテスト動作時にオンとなる。これにより、スイッチ32から図3(E)に示す信号がリードイネーブル信号(リード信号)としてROM12に供給される。また、スイッチ34−1〜34−15から図3(D)に示すカウンタ33の下位15ビットのカウント値がアドレスとして、アドレスバス20を通してROM12に供給される。
Each of the
なお、16ビットタイマ16は、比較回路35と、16ビットのレジスタ36を有しており、通常動作時にはカウンタ33のカウント値をレジスタ36に予め設定されている値と比較することで、所定時間となったときに比較回路35が一致信号を出力する。この一致信号はCPU11に供給される。
The 16-
テスト動作時には、リードイネーブル信号とアドレスがROM12に供給されることにより、ROM12からデータが読み出され、図3(F)に示すように、データバス21を通して汎用ポート回路18に供給される。
During the test operation, a read enable signal and an address are supplied to the
汎用ポート回路18は、セレクタ40を有している。セレクタ40にはテスト動作時に外部端子TESTからのテストモード信号と、外部端子RXD,TXDからの2ビットのモード信号が供給される。
The general-
セレクタ40は、図4の真理値表に示すように、テストモード信号が1(ハイレベル)であるとき、RXD=1,TXD=1のモードDであれば、データバス21の4ビットのdata[3:0]を外部端子GPIO0〜GPIO3に出力し、RXD=1,TXD=0のモードCであれば、データバス21の4ビットのdata[7:4]を外部端子GPIO0〜GPIO3に出力する。また、RXD=0,TXD=1のモードBであれば、データバス21の4ビットのdata[11:8]を外部端子GPIO0〜GPIO3に出力し、RXD=0,TXD=0のモードAであれば、データバス21の4ビットのdata[15:12]を外部端子GPIO0〜GPIO3に出力する。
As shown in the truth table of FIG. 4, when the test mode signal is 1 (high level), the
つまり、テスト動作時に、モードAであれば、図3(G)に示すように、ROM12出力の第0(LSB)〜第3ビットが外部端子GPIO0〜GPIO3から図示しないテスタに対して出力され、モードBであれば、図3(H)に示すように、ROM12出力の第4〜第7ビットが外部端子GPIO0〜GPIO3から出力される。また、モードCであれば、図3(I)に示すように、ROM12出力の第8〜第11ビットが外部端子GPIO0〜GPIO3から出力され、モードDであれば、図3(J)に示すように、ROM12出力の第12〜第15ビットが外部端子GPIO0〜GPIO3から出力される。
That is, if the mode is A during the test operation, as shown in FIG. 3G, the 0th (LSB) to 3rd bits of the
図5は、テスト動作で実行するROM読み出し処理のフローチャートを示す。同図中、ステップS1でCPU11を停止させる。ステップS2〜S7でループ処理を行う。このループ処理では、モードをA,B,C,Dと順に変更する。
FIG. 5 shows a flowchart of the ROM read process executed in the test operation. In the figure, the
ステップS3で16ビットタイマ16を起動し、ステップS4でROM11からデータを読み出し、読み出したデータのうちモードA,B,C,Dに応じた4ビットを外部端子GPIO0〜GPIO3から出力する。
In step S3, the 16-
ROM12の最終アドレスまで読み出しを終了するとステップS5からステップS6に進み、16ビットタイマ16をリセットする。
When reading to the final address of the
このようにして、ROM12の読み出しを4回繰り返して、ROM12から読み出したデータを全て出力する。
In this way, reading from the
上記実施形態によれば、ROM12の全てのアドレスから全てのデータを読み出すことができるため、テスタで各データを規格データ(ROM1aに書き込まれている元データ)と比較して誤りがあるか否かを判定でき、誤りがあった場合に、そのアドレスを認識することができる。このため、複数のマイクロコンピュータのROMで誤りが発生した場合に、製造過程のどの部分が原因となって誤りが発生したかを解析することができる。
According to the embodiment, since all data can be read from all addresses of the
また、元々マイクロコンピュータに備えられている16ビットタイマ16を利用してROM12のアドレスとリードイネーブル信号を生成しているため、テスタでアドレスとリードイネーブル信号を生成する必要がなく、テストが容易になる。また、フリップフロップ31,スイッチ34−1〜34−15,セレクタ40を追加するだけの簡単な構成で上記のテストを実現できる。
In addition, since the address and read enable signal of the
なお、上記実施形態ではROM12の読み出しをモードを切り替えて4回繰り返しているが、16ビットタイマ16が1つのアドレスを発生する間にモードをA,B,C,Dと4回切り替えて16ビットのデータを外部端子GPIO0〜GPIO3から4ビットずつ順に出力する構成としてもよい。
In the above embodiment, the
10 マイクロコンピュータ
11 CPU
12 ROM
13 RAM
14 シリアル入出力回路
15 8ビットタイマ
16 16ビットタイマ
17 アナログ入力回路
18 汎用ポート回路
20 アドレスバス
21 データバス
31 フリップフロップ
32,34−1〜34−15 スイッチ
33 カウンタ
35 比較回路
36 レジスタ
40 セレクタ
10
12 ROM
13 RAM
14 serial input /
Claims (4)
テスト時にクロックをカウントしてアドレスを発生するカウンタと、
テスト時に前記カウンタで発生したアドレスを前記メモリに供給するアドレススイッチと、
テスト時に前記メモリから前記アドレスにより読み出されたデータを複数ブロックに分割して、外部から供給されるモード信号で指示される1つのブロックの信号を外部端子から出力するセレクタと、
を有することを特徴とするマイクロコンピュータ。 In a microcomputer in which a CPU, memory and peripheral circuits are mounted on one semiconductor chip,
A counter that generates an address by counting the clock during testing,
An address switch that supplies the memory with an address generated by the counter during testing;
A selector that divides data read from the memory from the memory at the time of the test into a plurality of blocks, and outputs a signal of one block indicated by a mode signal supplied from the outside from an external terminal;
A microcomputer characterized by comprising:
前記クロックを分周してリードイネーブル信号を生成するフリップフロップと、
テスト時に前記フリップフロップで生成したリードイネーブル信号を前記メモリに供給する信号スイッチと、
を有することを特徴とするマイクロコンピュータ。 The microcomputer according to claim 1.
A flip-flop that divides the clock to generate a read enable signal;
A signal switch for supplying a read enable signal generated by the flip-flop to the memory during the test;
A microcomputer characterized by comprising:
前記カウンタは、タイマの一部である
ことを特徴とするマイクロコンピュータ。 The microcomputer according to claim 2.
The microcomputer, wherein the counter is a part of a timer.
前記メモリは、ROMである
ことを特徴とするマイクロコンピュータ。 The microcomputer according to claim 3.
The microcomputer is characterized in that the memory is a ROM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008126210A JP2009276921A (en) | 2008-05-13 | 2008-05-13 | Microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008126210A JP2009276921A (en) | 2008-05-13 | 2008-05-13 | Microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009276921A true JP2009276921A (en) | 2009-11-26 |
Family
ID=41442315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008126210A Pending JP2009276921A (en) | 2008-05-13 | 2008-05-13 | Microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009276921A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62125441A (en) * | 1985-11-26 | 1987-06-06 | Nec Corp | One-chip microcomputer |
JPH01243164A (en) * | 1988-03-24 | 1989-09-27 | Nec Yamaguchi Ltd | Single chip microcomputer incorporated with eprom |
JPH01277950A (en) * | 1988-04-30 | 1989-11-08 | Hitachi Ltd | Digital processor |
JPH04114289A (en) * | 1990-09-04 | 1992-04-15 | Mitsubishi Electric Corp | Data reloading circuit for microcomputer integrated circuit device |
JPH0676600A (en) * | 1992-08-27 | 1994-03-18 | Nec Ic Microcomput Syst Ltd | Microcomputer with built-in prom |
JPH117800A (en) * | 1997-06-13 | 1999-01-12 | Nec Corp | Semiconductor device and its monitoring burn-in method |
JP2000057121A (en) * | 1998-08-14 | 2000-02-25 | Hitachi Ltd | Semiconductor integrated circuit device and its testing method |
-
2008
- 2008-05-13 JP JP2008126210A patent/JP2009276921A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62125441A (en) * | 1985-11-26 | 1987-06-06 | Nec Corp | One-chip microcomputer |
JPH01243164A (en) * | 1988-03-24 | 1989-09-27 | Nec Yamaguchi Ltd | Single chip microcomputer incorporated with eprom |
JPH01277950A (en) * | 1988-04-30 | 1989-11-08 | Hitachi Ltd | Digital processor |
JPH04114289A (en) * | 1990-09-04 | 1992-04-15 | Mitsubishi Electric Corp | Data reloading circuit for microcomputer integrated circuit device |
JPH0676600A (en) * | 1992-08-27 | 1994-03-18 | Nec Ic Microcomput Syst Ltd | Microcomputer with built-in prom |
JPH117800A (en) * | 1997-06-13 | 1999-01-12 | Nec Corp | Semiconductor device and its monitoring burn-in method |
JP2000057121A (en) * | 1998-08-14 | 2000-02-25 | Hitachi Ltd | Semiconductor integrated circuit device and its testing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20080016415A1 (en) | Evaluation system and method | |
JP2001311766A (en) | Semiconductor device testing device and testing method | |
JP2009276921A (en) | Microcomputer | |
US7484147B2 (en) | Semiconductor integrated circuit | |
JP2009122009A (en) | Test circuit | |
JP6062795B2 (en) | Semiconductor device | |
TW201719400A (en) | Integrated circuit device with selectable processor core | |
JP3955708B2 (en) | Built-in self-test circuit | |
JP3605997B2 (en) | Semiconductor device | |
WO2004113941A1 (en) | Test equipment | |
JP4869911B2 (en) | Logic BIST circuit and modulo circuit | |
JP2901828B2 (en) | Semiconductor integrated circuit | |
TWI553648B (en) | Integrated circuit with self-verification function, verification method and method for generating a bist signature adjustment code. | |
JP4891055B2 (en) | Test circuit | |
JPH01274239A (en) | Data processor | |
JP2984628B2 (en) | Microcomputer | |
JP3453068B2 (en) | Semiconductor integrated circuit and test pattern creation method | |
JP2001306346A (en) | Arithmetic processor | |
JP5371808B2 (en) | Microcomputer, semiconductor device and microcomputer applied equipment | |
JP2002343097A (en) | Ram test circuit | |
JP4193336B2 (en) | Microcontroller test circuit | |
JP2001184260A (en) | Address generator | |
JPS63108438A (en) | Single chip microcomputer | |
JP2006268919A (en) | Built-in self test circuit of memory and self test method | |
JP2003302448A (en) | Test circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110309 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20121212 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121218 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20130409 |