JP2003022689A - Semiconductor device having non-volatile memory, and rewriting method for the non-volatile memory - Google Patents

Semiconductor device having non-volatile memory, and rewriting method for the non-volatile memory

Info

Publication number
JP2003022689A
JP2003022689A JP2001202978A JP2001202978A JP2003022689A JP 2003022689 A JP2003022689 A JP 2003022689A JP 2001202978 A JP2001202978 A JP 2001202978A JP 2001202978 A JP2001202978 A JP 2001202978A JP 2003022689 A JP2003022689 A JP 2003022689A
Authority
JP
Japan
Prior art keywords
volatile memory
logical value
mode
input
terminal
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
JP2001202978A
Other languages
Japanese (ja)
Inventor
Keizo Sumida
圭三 隅田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001202978A priority Critical patent/JP2003022689A/en
Publication of JP2003022689A publication Critical patent/JP2003022689A/en
Pending legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)
  • Semiconductor Integrated Circuits (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a semiconductor memory having a non-volatile memory in which connection can be confirmed by an easy method without changing the hardware of a general purpose ROM writer and a rewriting method for the non-volatile memory. SOLUTION: A semiconductor device incorporating a flash memory 104 is provided with a test mode storage circuit 109 and outputs an input from a control signal input terminal 101 from a data input/output terminal 102. Voltage outputted from the data input/output terminal 102 is taken in a general purpose PROM writer as a theoretical value, its input pattern is compared with an expected value pattern, and connection is confirmed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、プログラ
マブルROM(読み出し専用メモリ)を内蔵し、プログ
ラマブルROMの書き込みのためのPROMモードを有
するマイクロコンピュータ等の半導体装置、及びその半
導体装置への書き込み方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor device such as a microcomputer having a programmable ROM (read-only memory) and having a PROM mode for writing the programmable ROM, and a method for writing to the semiconductor device. Regarding

【0002】[0002]

【従来の技術】CPU(中央処理装置)、プログラム格
納用のROM、データ格納用のRAM(ランダムアクセ
スメモリ)、ならびに入出力制御部を同一半導体基板上
に形成し、システムの低コスト化と信頼性の向上を図っ
たシングルチップ型のマイクロコンピュータ(以下マイ
コンと略す)がある。プログラム格納用のROMにEE
PROM(情報の消去・書き込み可能なROM、例えば
フラッシュメモリ)を使用し、利用者のプログラム書き
込み・修正を可能とし、システムの開発期間を短縮する
方法が行われている。
2. Description of the Related Art A CPU (central processing unit), a ROM for storing programs, a RAM (random access memory) for storing data, and an input / output control unit are formed on the same semiconductor substrate to reduce system cost and reliability. There is a single-chip type microcomputer (hereinafter abbreviated as "microcomputer") that aims to improve the performance. EE in ROM for program storage
There is a method in which a PROM (ROM capable of erasing / writing information, such as a flash memory) is used to allow a user to write / modify a program and shorten the system development period.

【0003】フラッシュメモリを搭載したマイコンは、
基板に実装された状態で利用者のプログラムやデータの
書き換えが可能であるが、初期の書き込みには基板に実
装された状態ではなく、基板実装前に汎用PROMライ
ターのような書き込み装置を用いて書き込んだ方が効率
の良い場合が多い。
A microcomputer equipped with a flash memory is
The user's program and data can be rewritten in the state of being mounted on the board. However, for initial writing, the writing device such as a general-purpose PROM writer should be used before mounting on the board, not in the state of being mounted on the board. Writing is often more efficient.

【0004】フラッシュメモリを搭載したマイコンは、
外部端子の設定により内部のフラッシュメモリ端子と、
外部端子が論理的に同一となるモード(PROMモー
ド)の機能をもち、フラッシュメモリを搭載したマイコ
ンに適合するソケットと、汎用PROMライターに接続
できるようにDIP(Dual−In−Line Pl
astic Package)タイプの接続形態に合う
変換アダプターにてPROMライターとフラッシュメモ
リ搭載マイコンを結合する。
A microcomputer equipped with a flash memory is
By setting the external terminal, the internal flash memory terminal,
The DIP (Dual-In-Line Pl) has a function of a mode (PROM mode) in which the external terminals are logically the same, and is compatible with a microcomputer equipped with a flash memory and a general-purpose PROM writer.
A PROM writer and a flash memory-equipped microcomputer are connected by a conversion adapter that matches the connection type of the "static Package" type.

【0005】汎用PROMライターは、所定の電気信号
を論理的に制御することで、フラッシュメモリ搭載マイ
コンのフラッシュメモリに対してプログラム・データの
書き込みを行う。
The general-purpose PROM writer writes program data into the flash memory of the microcomputer equipped with the flash memory by logically controlling a predetermined electric signal.

【0006】[0006]

【発明が解決しようとする課題】セットの小型化に応え
るため、マイコンも多ピン、小型化が強く要望され、狭
ピッチのQFP(Quad Flat Packag
e)や、チップサイズパッケジのFLAGA(Fine
LAND Grid Array)等が使用されるよ
うになってきている。小型多ピンのパッケジのフラッシ
ュメモリ搭載マイコンをソケットにて基板と接合する場
合、マイコンの取り扱いや、ソケットの取り扱いによ
り、まれにマイコン端子とソケットの間で短絡や開放の
不具合が発生する。
In order to meet the miniaturization of the set, it is strongly demanded that the microcomputer also have a large number of pins and miniaturization, and a narrow pitch QFP (Quad Flat Packg).
e) or FLAGA (Fine of chip size package)
LAND Grid Array) has come to be used. When a small-sized multi-pin package flash memory-equipped microcomputer is joined to a board with a socket, handling of the microcomputer or the socket rarely causes a short circuit or an open defect between the microcomputer terminal and the socket.

【0007】半導体の検査の場合は、検査装置(半導体
テスター)で端子毎に定電流源を接続し、微小電流が流
れる電圧の測定により、各端子の接続を確認できる。汎
用のPROMライターでは論理値の出力と、論理値を取
り込み判断する機能しかもたないため、半導体テスター
と同様な接続検査ができない。PROMライターにてフ
ラッシュメモリに対して書き込む場合、マイコン端子と
変換アダプターのソケットの間で接続不具合があって
も、PROMライターではフラッシュメモリの不具合と
区別できない。
In the case of semiconductor inspection, a constant current source is connected to each terminal with an inspection device (semiconductor tester), and the connection of each terminal can be confirmed by measuring the voltage at which a minute current flows. Since a general-purpose PROM writer has only a function of outputting a logical value and a function of taking in and determining the logical value, the same connection inspection as a semiconductor tester cannot be performed. When writing to the flash memory with the PROM writer, even if there is a connection failure between the microcomputer terminal and the socket of the conversion adapter, the PROM writer cannot distinguish from the failure of the flash memory.

【0008】本発明は、かかる課題に鑑み、汎用ROM
ライターのハードウェアを変更することなく、容易な方
法で、接続確認ができる不揮発性メモリを有する半導体
装置及びその不揮発性メモリへの書き換え方法を提供す
ることを目的とする。
In view of the above problems, the present invention is a general-purpose ROM.
An object of the present invention is to provide a semiconductor device having a non-volatile memory in which connection can be confirmed by an easy method without changing the hardware of a writer, and a method of rewriting the non-volatile memory.

【0009】[0009]

【課題を解決するための手段】この課題を解決するた
め、本発明の半導体装置は、書込みモード、通常動作モ
ードを示す論理値を入力するモード入力端子と、書込み
モード時に不揮発性メモリへ論理値を入力する複数の制
御信号入力端子と、前記不揮発性メモリへの書き込み入
力データ及び書き込まれたデータを確認するための出力
データをやりとりするデータ入出力端子と、端子接続確
認モードを指定するテストモード記憶手段とを備え、端
子接続確認モード時に、前記複数の制御信号入力端子か
らの論理値入力を前記データ入出力端子より出力するこ
とを特徴とする。
To solve this problem, a semiconductor device of the present invention has a mode input terminal for inputting a logic value indicating a write mode and a normal operation mode, and a logic value to a nonvolatile memory in the write mode. A plurality of control signal input terminals, a data input / output terminal for exchanging write input data to the nonvolatile memory and output data for confirming the written data, and a test mode for specifying a terminal connection confirmation mode A storage means, and in the terminal connection confirmation mode, logical value inputs from the plurality of control signal input terminals are output from the data input / output terminals.

【0010】また、本発明の不揮発性メモリへの書き換
え方法は、前記半導体装置を、ソケットを有する変換ア
ダプターを用いて汎用ROMライターに電気的に接続
し、前記不揮発性メモリへ書き込む方法において、テス
トモード記憶手段に対して端子接続確認モードを指定す
る第1のステップと、複数の制御信号入力端子を任意の
論理値に指定し、データ入出力端子より出力される電圧
を論理値として読み出し、任意の期待値と比較して一致
を判定する第2のステップとを有し、前記半導体装置と
前記汎用ROMライターの電気的接続を確認することを
特徴とする。
Further, in the method for rewriting to the nonvolatile memory of the present invention, the semiconductor device is electrically connected to a general-purpose ROM writer by using a conversion adapter having a socket, and the method for writing to the nonvolatile memory is tested. The first step of designating the terminal connection confirmation mode for the mode storage means, designating a plurality of control signal input terminals to arbitrary logical values, reading the voltage output from the data input / output terminal as a logical value, and optionally And a second step of judging the coincidence by comparing with the expected value of 1), the electrical connection between the semiconductor device and the general-purpose ROM writer is confirmed.

【0011】[0011]

【発明の実施の形態】以下、発明の実施の形態につい
て、図1から図7を用いて説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to FIGS. 1 to 7.

【0012】図1は、本発明の一実施の形態におけるマ
イコンの構成を示すブロック図である。図1に示すマイ
コンの各ブロック構成要素は、公知の半導体集積回路の
製造技術により、1個の半導体基板上に形成される。な
お、以下の図面では本発明に直接関係ない部分について
は割愛している。
FIG. 1 is a block diagram showing the configuration of a microcomputer according to an embodiment of the present invention. Each block constituent element of the microcomputer shown in FIG. 1 is formed on one semiconductor substrate by a known semiconductor integrated circuit manufacturing technique. In the following drawings, parts that are not directly related to the present invention are omitted.

【0013】図1において、中央処理装置105(以後
CPUと略す)と、CPU105に接続されたフラッシ
ュメモリ104と、内部RAM106と、外部端子に論
理値を出力し、または外部回路が出力する論理値を入力
するポート制御回路103を備えている。
In FIG. 1, a central processing unit 105 (hereinafter abbreviated as CPU), a flash memory 104 connected to the CPU 105, an internal RAM 106, and a logical value output to an external terminal or a logical value output from an external circuit. A port control circuit 103 for inputting is input.

【0014】マイコンに内蔵してあるフラッシュメモリ
104への信号線は説明のため以下のように定める。書
き込み、読み出し位置を示すアドレス入力信号(PA
[17:0])、書き込みデータの入力、読み出しデー
タの出力を行うデータ入出力信号(FIO[15:
0])、フラッシュの動作モードを示すモード入力信号
(PMODE[3:0])、フラッシュメモリへのアク
セスタイミングを指定するチップセレクト入力信号(F
NCE)からなる。
The signal line to the flash memory 104 built in the microcomputer is defined as follows for the sake of explanation. Address input signal (PA
[17: 0]), a data input / output signal (FIO [15:
0]), a mode input signal (PMODE [3: 0]) indicating a flash operation mode, and a chip select input signal (F) designating access timing to the flash memory.
NCE).

【0015】フラッシュメモリ104は、コントロール
ゲートとフローティングゲートの2層ゲートで、メモリ
セルを構成し、フローティングゲートの電荷量により、
メモリセルの閾値を変化させることでデータを記憶す
る。フラッシュメモリ104はモードとして読み出し動
作(Read)、書き込み動作(Prog RAM)、
消去動作(Erase)、書き込み確認動作(Prog
RAM Verify)、消去確認動作(Erase
Verify)を持ち、それぞれの場合で、メモリセ
ルのソース、ドレイン、コントロールゲートに適切な電
圧をかけることで、その動作を実現する。
The flash memory 104 is a two-layer gate consisting of a control gate and a floating gate, which constitutes a memory cell.
Data is stored by changing the threshold value of the memory cell. The flash memory 104 has modes of read operation (Read), write operation (Prog RAM),
Erase operation (Erase), write confirmation operation (Prog
RAM Verify, erase confirmation operation (Erase)
Verify), and in each case, the operation is realized by applying an appropriate voltage to the source, drain, and control gate of the memory cell.

【0016】本実施の形態におけるフラッシュメモリ1
04は、4ビットのモード入力ピン(PMODE[3:
0])の論理値により各動作から1つを選択し、内部で
使用する電圧を作り、アドレス入力ピン(PA[17:
0])によって指定されるメモリセルに対して、チップ
セレクト入力ピン(FNCE)の論理値が0の時間メモ
リセルに各モードの適切な電圧が印加される構成になっ
ている。本実施の形態では、モード入力ピン(PMOD
E[3:0])の論理値を、読み出し動作時0x0、書
き込み動作0x1、消去動作0x2、書き込み確認動作
0x3、消去確認動作0x4とする。本実施の形態で
は、それ以外の論理値ではフラッシュメモリ104では
動作しない。書き込み動作の場合は、データ入出力ピン
(FIO[15:0])から入力されたデータ値によ
り、メモリセルに対する印加電圧を変えることで、書き
込むか、消去されたままかを決定する。読み出し動作
(Read)、消去確認動作(Erase Verif
y)、書き込み確認動作(Prog RAM Veri
fy)では、動作に応じた印加電圧をメモリセルに印加
し、メモリセルのフローティングゲートの状態により判
定値をデータ入出力ピン(FIO[15:0])より出
力する。
Flash memory 1 in the present embodiment
04 is a 4-bit mode input pin (PMODE [3:
0]), one of each operation is selected according to the logic value, and a voltage to be used internally is generated, and an address input pin (PA [17:
0]), an appropriate voltage for each mode is applied to the memory cell when the logic value of the chip select input pin (FNCE) is 0. In this embodiment, the mode input pin (PMOD
The logical value of E [3: 0]) is 0x0 at the time of read operation, 0x1 at the write operation, 0x2 at the erase operation, 0x3 at the write verify operation, and 0x4 at the erase verify operation. In this embodiment, the flash memory 104 does not operate with other logical values. In the case of the write operation, the voltage applied to the memory cell is changed according to the data value input from the data input / output pin (FIO [15: 0]) to determine whether the data is written or erased. Read operation (Read), erase confirmation operation (Erase Verif)
y), write confirmation operation (Prog RAM Veri
In fy), the applied voltage according to the operation is applied to the memory cell, and the determination value is output from the data input / output pin (FIO [15: 0]) depending on the state of the floating gate of the memory cell.

【0017】図3,図4,図5にタイミング図を示す。
モード入力ピン(PMODE[3:0])を適切な論理
値に設定し、規定された時間経過後、アクセスするメモ
リセルを指定するアドレスピン(PA[17:0])を
設定し、規定された時間経過後、チップセレクト信号を
Lにすることで、フラッシュメモリに対してアクセスす
る。図3は、データ入出力ピンを使用しない、消去動作
(Erase)の場合、図4はデータ入出力ピンを入力
として使用し、書き込みデータを与える場合の書き込み
動作(Prog RAM)の場合、図5はデータ入出力
ピンから、メモリセルの状態をPROMライターに出力
する場合で、読み出し動作(Read)、書き込み確認
動作(Prog RAM Verify)、消去確認動
作(Erase Verify)の場合である。
Timing diagrams are shown in FIGS. 3, 4 and 5. FIG.
Set the mode input pins (PMODE [3: 0]) to appropriate logic values, and set the address pins (PA [17: 0]) that specify the memory cell to be accessed after the specified time has elapsed. After the elapse of time, the chip select signal is set to L to access the flash memory. FIG. 3 shows an erase operation (Erase) without using the data input / output pin, and FIG. 4 shows a write operation (Prog RAM) using the data input / output pin as an input and FIG. Shows the case of outputting the state of the memory cell from the data input / output pin to the PROM writer, which is the case of read operation (Read), write confirmation operation (Prog RAM Verify), and erase confirmation operation (Erase Verify).

【0018】図1において、107はモード入力端子で
あり、PROMライターにて書き込む場合(以後PRO
Mモードと略す)と、実際にマイコンとして動作する場
合(以後マイコンモードと略す)を判別する。ポート制
御回路103はPROMモード時には、マイコンの外部
端子の一部を制御信号入力端子101として、外部から
制御された電圧の論理値を取り込み、フラッシュメモリ
104のアドレス入力ピン(PA[17:0])及びモ
ード入力ピン(PMODE[3:0])にその論理値を
接続する回路と、マイコンの外部端子の一部をデータ入
出力端子102として、モード入力ピン(PMODE
[3:0])の論理値をデコードし、読み出し動作(R
ead)、書き込み確認動作(Prog RAM Ve
rify)、消去確認動作(Erase Verif
y)の場合は、フラッシュメモリ104のデータ入出力
ピンから出力した論理値を出力し、書き込み動作(Pr
ogRAM)の場合は、外部から制御された電圧を論理
値として取り込み、フラッシュメモリ104のデータ入
出力ピン(FIO[15:0])にその論理値を接続す
る機能を持っている。またマイコンモード時にはCPU
104により制御され、ソフトウェアにより、外部から
制御された電圧を論理値としての取り込みや、外部へ出
力する機能を有している。
In FIG. 1, reference numeral 107 denotes a mode input terminal for writing with a PROM writer (hereinafter PRO.
M mode) and the case of actually operating as a microcomputer (hereinafter abbreviated as microcomputer mode) are determined. In the PROM mode, the port control circuit 103 uses a part of the external terminals of the microcomputer as the control signal input terminal 101 to take in the logical value of the voltage controlled from the outside, and the address input pin (PA [17: 0] of the flash memory 104. ) And a mode input pin (PMODE [3: 0]), and a part of an external terminal of the microcomputer as a data input / output terminal 102, and a mode input pin (PMODE [3: 0]).
[3: 0]) is decoded and the read operation (R
ead), write confirmation operation (Prog RAM Ve
rify), erase confirmation operation (Erase Verif
In the case of y), the logical value output from the data input / output pin of the flash memory 104 is output, and the write operation (Pr
In the case of an ogRAM), it has a function of fetching a voltage controlled from the outside as a logical value and connecting the logical value to a data input / output pin (FIO [15: 0]) of the flash memory 104. In the microcomputer mode, the CPU
It is controlled by 104 and has a function of fetching a voltage controlled from the outside by a software as a logical value and outputting it to the outside.

【0019】図2は、本発明の一実施の形態における変
換基板を説明するための概要図である。ライター基板1
32は、PROMライターと、ライター基板132を電
気的に接続するためにDIP形状のピンを持っている。
130はマイコンと基板を電気的に接続するためのソケ
ットである。131はソケット変換基板であり、PRO
Mモードにするためにモード入力端子107を論理的に
固定する手段と、PROMモードでPROMライターが
使用する端子をライター基板132に電気的に接続する
機能を有している。
FIG. 2 is a schematic diagram for explaining a conversion substrate according to one embodiment of the present invention. Lighter board 1
Reference numeral 32 has a DIP-shaped pin for electrically connecting the PROM writer and the writer board 132.
Reference numeral 130 is a socket for electrically connecting the microcomputer and the board. 131 is a socket conversion board, which is a PRO
It has a function of logically fixing the mode input terminal 107 for setting the M mode and a function of electrically connecting the terminal used by the PROM writer in the PROM mode to the writer substrate 132.

【0020】図1において、109はテストモード記憶
回路であり、図6にその詳細を示す。200はPMOD
E[3:0]の設定が読み出し動作であることを示すA
ND回路である。201はPMODE[3:0]の設定
が書き込み確認動作であることを示すAND回路であ
る。202はPMODE[3:0]の設定が消去確認動
作であることを示すAND回路である。203はPMO
DE[3:0]の設定がテストモードへの書き込み動作
であることを示すAND回路である。207はテストモ
ードを記憶するフリップフロップであり、論理値0でP
ROMモード、論理値1で接続テストモードを示す。2
04はPROMモード時にデータ入出力端子をマイコン
側が出力許可信号を生成するOR回路である。208は
フラッシュメモリ104のチップセレクト入力ピン(F
NCE)をテストモード時に論理値1固定するためのO
R回路である。本実施例では、データ入出力端子16
本、制御信号入力端子が23本であるので、アドレス信
号の一部PA[17]を利用して、出力する制御信号を
選択する6ビットのセレクタ211と、フラッシュメモ
リ104から出力される判定値と、制御信号入力端子の
論理値を選択する10ビットのセレクタ209と、フラ
ッシュメモリ104から出力される判定値と、セレクタ
211の出力を選択する6ビットのセレクタ211から
なる。
In FIG. 1, 109 is a test mode memory circuit, the details of which are shown in FIG. 200 is PMOD
A indicating that the setting of E [3: 0] is a read operation A
It is an ND circuit. An AND circuit 201 indicates that the setting of PMODE [3: 0] is a write confirmation operation. An AND circuit 202 indicates that the setting of PMODE [3: 0] is an erase confirmation operation. 203 is a PMO
It is an AND circuit showing that the setting of DE [3: 0] is a write operation to the test mode. 207 is a flip-flop that stores the test mode, and has a logical value of 0 and P
The ROM mode and the logical value 1 indicate the connection test mode. Two
Reference numeral 04 is an OR circuit for the microcomputer side to generate an output enable signal for the data input / output terminal in the PROM mode. Reference numeral 208 denotes a chip select input pin (F
O for fixing NCE) to logical value 1 in test mode
It is an R circuit. In this embodiment, the data input / output terminal 16
Since there are 23 main and control signal input terminals, a 6-bit selector 211 for selecting a control signal to be output by using a part of PA [17] of the address signal, and a judgment value output from the flash memory 104 A 10-bit selector 209 for selecting the logical value of the control signal input terminal, a determination value output from the flash memory 104, and a 6-bit selector 211 for selecting the output of the selector 211.

【0021】図1のフラッシュメモリ内蔵マイコンにお
いて、フラッシュメモリに書き込む場合について説明す
る。フラッシュメモリ内蔵マイコンを図2の変換アダプ
ターのソケット130に入れ、汎用ROMライターに接
続する。ソケット変換基板131により、モード入力端
子107がPROMモードの論理値に固定される。ポー
ト制御回路103により制御信号入力端子101、デー
タ入出力端子102がマイコン内部のフラッシュメモリ
104と電気的に論理値が同じになる。制御信号入力端
子101、データ入出力端子102はソケット130、
ソケット変換基板131、ライター基板132のDIP
ピンと電気的に接続しているので、PROMライターに
より、フラッシュメモリ104の内部ピンを論理値の設
定及び、データ入出力ピンの論理値を取り込むことがで
き、フラッシュメモリ104の仕様に従い、消去動作
(Erase)、消去確認動作(Erase Veri
fy)、書き込み動作(Prog RAM)、書き込み
確認動作(Prog RAMVerify)、読み出し
動作(Read)を行うことで、使用者のプログラムを
フラッシュメモリ104へ記憶させることができる。
In the microcomputer with built-in flash memory shown in FIG. 1, the case of writing to the flash memory will be described. A microcomputer with a built-in flash memory is put in the socket 130 of the conversion adapter shown in FIG. 2 and connected to a general-purpose ROM writer. The socket conversion board 131 fixes the mode input terminal 107 to the logical value of the PROM mode. The port control circuit 103 makes the control signal input terminal 101 and the data input / output terminal 102 electrically have the same logical value as the flash memory 104 in the microcomputer. The control signal input terminal 101 and the data input / output terminal 102 are sockets 130,
DIP of socket conversion board 131 and lighter board 132
Since it is electrically connected to the pin, the PROM writer can set the logical value of the internal pin of the flash memory 104 and capture the logical value of the data input / output pin, and the erasing operation (according to the specification of the flash memory 104 ( Erase), erase confirmation operation (Erase Veri
fy), write operation (Prog RAM), write confirmation operation (Prog RAM Verify), and read operation (Read), the user's program can be stored in the flash memory 104.

【0022】以上のような、使用者のプログラムのフラ
ッシュメモリ104への書き込み方法において、ソケッ
トとフラッシュメモリ内蔵マイコンのPROMモードに
おいて使用する端子の接続テスト方法について説明す
る。
A method for testing the connection between the socket and the terminal used in the PROM mode of the microcomputer with built-in flash memory in the method of writing the user's program into the flash memory 104 as described above will be described.

【0023】第1のステップとして、テストモード記憶
回路109にテストモードを示す論理値を記憶させる。
PROMライターは、MODE[3:0]をテストモー
ド設定である0xF論理値に設定し、データ入出力端子
のA[0]の外部論理値を0x1に設定し、チップセレ
クト信号NCEからロウパルスを出力する。PMODE
[3:0]が0xF設定なので、AND回路203は論
理値1となり、AND回路206はPNCEから受け取
るロウパルスを反転させて出力し、フリップフロップ2
07に1を記憶する。
As a first step, the test mode storage circuit 109 stores a logical value indicating the test mode.
The PROM writer sets MODE [3: 0] to the test mode setting 0xF logic value, sets the external logic value of A [0] of the data input / output terminal to 0x1, and outputs a low pulse from the chip select signal NCE. To do. PMODE
Since [3: 0] is set to 0xF, the AND circuit 203 has a logical value of 1, and the AND circuit 206 inverts and outputs the row pulse received from the PNCE, and the flip-flop 2
The value 1 is stored in 07.

【0024】第2のステップとして、PROMライター
はA[17]の端子を論理値0に、他の制御入力信号端
子101の1つを論理値1に、残りの端子を論理値0に
なるように出力し、データ入出力端子102からマイコ
ンが出力している電圧を論理値としてPROMライター
に取り込む。取り込んだ値は(表1)に従い期待値と比
較を行い同一であれば、順次入力パターンを変更して、
期待値比較を継続する。
As a second step, the PROM writer sets the terminal of A [17] to the logical value 0, one of the other control input signal terminals 101 to the logical value 1 and the remaining terminals to the logical value 0. To the PROM writer as a logical value. The captured value is compared with the expected value according to (Table 1), and if they are the same, the input pattern is changed sequentially,
Continue expected value comparison.

【0025】[0025]

【表1】 [Table 1]

【0026】本ステップ中マイコンではフリップフロッ
プ207に1を記憶しているので、データ入出力端子1
02はOR回路204によりデータ出力モードとなり、
PA[17]で指定された制御信号入力端子101から
入力された論理値を、セレクタ211により選択し、デ
ータ入出力端子102より出力する。またフラッシュメ
モリ104に対してはOR回路208によりフラッシュ
メモリのチップセレクト信号が論理値0になることはな
いので、フラッシュメモリセルに対してテストモードの
影響を受けることはない。
During this step, since the microcomputer stores 1 in the flip-flop 207, the data input / output terminal 1
02 becomes a data output mode by the OR circuit 204,
A logical value input from the control signal input terminal 101 designated by PA [17] is selected by the selector 211 and output from the data input / output terminal 102. Further, for the flash memory 104, since the OR circuit 208 does not cause the chip select signal of the flash memory to have a logical value of 0, the flash memory cell is not affected by the test mode.

【0027】第3のステップとして、PROMライター
はA[17]の端子を論理値1に、他の制御入力信号端
子101の1つを論理値1に、残りの端子を論理値0に
なるように出力し、データ入出力端子102からマイコ
ンが出力している電圧を論理値としてPROMライター
に取り込む。取り込んだ値は(表1)に従い期待値と比
較を行い同一であれば、順次入力パターンを変更して、
期待値比較を継続する。本ステップ中のマイコン動作は
前述した第2のステップの場合と同一である。
In the third step, the PROM writer sets the terminal of A [17] to the logical value 1, the other control input signal terminal 101 to the logical value 1 and the remaining terminals to the logical value 0. To the PROM writer as a logical value. The captured value is compared with the expected value according to (Table 1), and if they are the same, the input pattern is changed sequentially,
Continue expected value comparison. The microcomputer operation in this step is the same as that in the second step described above.

【0028】本実施の形態によれば、PROMモードで
使用する制御信号入力端子に対して、汎用PROMライ
ターにて、全ての入力端子に特定の論理値を設定し、半
導体装置の内部信号を経由して、データ入出力端子から
出力し、その論理値を汎用PROMライターにて比較可
能であり、ソケットと半導体装置の間で接続不具合があ
った場合、汎用PROMライターにてその判断が可能で
ある。
According to the present embodiment, with respect to the control signal input terminal used in the PROM mode, a general-purpose PROM writer sets a specific logical value to all the input terminals, and the internal signal of the semiconductor device is passed through. Then, the data can be output from the data input / output terminal and the logical values thereof can be compared by the general-purpose PROM writer, and if there is a connection failure between the socket and the semiconductor device, the general-purpose PROM writer can make the determination. .

【0029】[0029]

【発明の効果】以上説明したように、本発明によれば、
汎用PROMライターのハードウェアを変更することな
く、制御を追加することで、書き換え時に使用する半導
体装置の端子と、汎用PROMライターの接続を容易に
確認できる。またそのために追加される回路は小規模
で、半導体装置が通常動作時に使用する読み出しのパル
スには影響しないため、半導体装置の速度を低下させる
こともない。
As described above, according to the present invention,
By adding control without changing the hardware of the general-purpose PROM writer, it is possible to easily confirm the connection between the terminal of the semiconductor device used for rewriting and the general-purpose PROM writer. Further, the circuit added for that purpose is small in scale, and does not affect the reading pulse used in the normal operation of the semiconductor device, so that the speed of the semiconductor device is not reduced.

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

【図1】本発明の一実施の形態における半導体装置の構
成を示すブロック図
FIG. 1 is a block diagram showing a configuration of a semiconductor device according to an embodiment of the present invention.

【図2】本発明の一実施の形態における半導体装置を汎
用PROMライターに接続するための変換アダプターの
構成図
FIG. 2 is a configuration diagram of a conversion adapter for connecting the semiconductor device according to the embodiment of the present invention to a general-purpose PROM writer.

【図3】本発明の一実施の形態における内蔵フラッシュ
メモリの消去動作タイミング図
FIG. 3 is a timing diagram of an erase operation of the built-in flash memory according to the embodiment of the present invention.

【図4】本発明の一実施の形態における内蔵フラッシュ
メモリの書き込み動作タイミング図
FIG. 4 is a write operation timing chart of the built-in flash memory according to the embodiment of the present invention.

【図5】本発明の一実施の形態における内蔵フラッシュ
メモリの読み出し動作、書き込み確認動作、消去確認動
作タイミング図
FIG. 5 is a timing chart of a read operation, a write confirmation operation, and an erase confirmation operation of the built-in flash memory according to the embodiment of the present invention.

【図6】本発明の一実施の形態におけるテストモード回
路の詳細図
FIG. 6 is a detailed diagram of a test mode circuit according to an embodiment of the present invention.

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

101 制御信号入力端子 102 データ入出力端子 103 ポート制御回路 104 フラッシュメモリ 105 CPU 106 RAM 107 モード入力端子 109 テストモード記憶回路 130 ソケット 131 ソケット変換基板 132 ライター基板 101 Control signal input terminal 102 data input / output terminal 103-port control circuit 104 flash memory 105 CPU 106 RAM 107 Mode input terminal 109 test mode memory circuit 130 socket 131 socket conversion board 132 Lighter board

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H01L 27/04 G01R 31/28 W ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 Identification code FI theme code (reference) H01L 27/04 G01R 31/28 W

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 CPUと、前記CPUに接続された不揮
発性メモリと、内部RAMと、外部端子に論理値を出力
しまたは外部回路が出力する論理値を入力するポート制
御回路とを備えた半導体装置において、書込みモード、
通常動作モードを示す論理値を入力するモード入力端子
と、書込みモード時に前記不揮発性メモリへ論理値を入
力する複数の制御信号入力端子と、前記不揮発性メモリ
への書き込み入力データ及び書き込まれたデータを確認
するための出力データをやりとりするデータ入出力端子
と、端子接続確認モードを指定するテストモード記憶手
段とを備え、端子接続確認モード時に、前記複数の制御
信号入力端子からの論理値入力を前記データ入出力端子
より出力することを特徴とする不揮発性メモリを有する
半導体装置。
1. A semiconductor comprising a CPU, a non-volatile memory connected to the CPU, an internal RAM, and a port control circuit for outputting a logical value to an external terminal or inputting a logical value output by an external circuit. In the device, write mode,
A mode input terminal for inputting a logical value indicating a normal operation mode, a plurality of control signal input terminals for inputting a logical value to the nonvolatile memory in the write mode, write input data to the nonvolatile memory and written data A data input / output terminal for exchanging output data for confirming, and a test mode storage means for designating a terminal connection confirmation mode are provided, and a logical value input from the plurality of control signal input terminals is performed in the terminal connection confirmation mode. A semiconductor device having a non-volatile memory, which outputs data from the data input / output terminal.
【請求項2】 不揮発性メモリは、フラッシュメモリで
あることを特徴とする請求項1記載の不揮発性メモリを
有する半導体装置。
2. The semiconductor device having a non-volatile memory according to claim 1, wherein the non-volatile memory is a flash memory.
【請求項3】 不揮発性メモリを有する請求項1記載の
半導体装置を、ソケットを有する変換アダプターを用い
て汎用ROMライターに電気的に接続し、前記不揮発性
メモリへ書き込む方法において、テストモード記憶手段
に対して端子接続確認モードを指定する第1のステップ
と、複数の制御信号入力端子を任意の論理値に指定し、
データ入出力端子より出力される電圧を論理値として読
み出し、任意の期待値と比較して一致を判定する第2の
ステップとを有し、前記半導体装置と前記汎用ROMラ
イターの電気的接続を確認することを特徴とする不揮発
性メモリへの書き換え方法。
3. The method of electrically connecting the semiconductor device according to claim 1 having a non-volatile memory to a general-purpose ROM writer by using a conversion adapter having a socket, and writing to the non-volatile memory in a test mode storage means. The first step to specify the terminal connection confirmation mode for, and specify a plurality of control signal input terminals to any logical value,
A second step of reading the voltage output from the data input / output terminal as a logical value and comparing it with an arbitrary expected value to determine a match, and confirms the electrical connection between the semiconductor device and the general-purpose ROM writer. A method of rewriting to a non-volatile memory, characterized by:
JP2001202978A 2001-07-04 2001-07-04 Semiconductor device having non-volatile memory, and rewriting method for the non-volatile memory Pending JP2003022689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001202978A JP2003022689A (en) 2001-07-04 2001-07-04 Semiconductor device having non-volatile memory, and rewriting method for the non-volatile memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001202978A JP2003022689A (en) 2001-07-04 2001-07-04 Semiconductor device having non-volatile memory, and rewriting method for the non-volatile memory

Publications (1)

Publication Number Publication Date
JP2003022689A true JP2003022689A (en) 2003-01-24

Family

ID=19039688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001202978A Pending JP2003022689A (en) 2001-07-04 2001-07-04 Semiconductor device having non-volatile memory, and rewriting method for the non-volatile memory

Country Status (1)

Country Link
JP (1) JP2003022689A (en)

Similar Documents

Publication Publication Date Title
JP3925839B2 (en) Semiconductor memory device and test method thereof
JP5442789B2 (en) Method, system, and computer readable code for testing flash memory
US8051331B2 (en) Memory card and its initial setting method
US8201037B2 (en) Semiconductor integrated circuit and method for controlling semiconductor integrated circuit
TWI497511B (en) Chip with embedded non-volatile memory and testing method therefor
US20170045579A1 (en) Cpu bist testing of integrated circuits using serial wire debug
US20080016415A1 (en) Evaluation system and method
JP3353602B2 (en) Test method for semiconductor device
JP2009514088A (en) Method, system, and computer readable code for testing flash memory
US20080282119A1 (en) Memory device and built in self-test method of the same
KR0159447B1 (en) A non-volatile semiconductor memory
JP2003022689A (en) Semiconductor device having non-volatile memory, and rewriting method for the non-volatile memory
JPS603082A (en) Ic card
JP2000057120A (en) Eeprom incorporating one-chip microcomputer
KR100632338B1 (en) Semiconductor device and test method thereof
US6560764B1 (en) Dynamic pulse width programming of programmable logic devices
US7346712B2 (en) Semiconductor integrated circuit apparatus and circuit board and information readout method
JP3515328B2 (en) Wafer check method
JP4757196B2 (en) Memory system and test method thereof
JP2023035864A (en) Fail-safe ic production test
CN116609637A (en) Testing method for FPGA and FLASH units in microsystem
JPH0628533A (en) Ic card and data storage method for ic card
CN117992288A (en) Method of testing a memory controller included in a memory device
JP2003067690A (en) Ic card and manufacturing method therefor
JP2006038782A (en) Semiconductor integrated circuit