JP2858816B2 - Initial setting method of EEPROM - Google Patents

Initial setting method of EEPROM

Info

Publication number
JP2858816B2
JP2858816B2 JP26965489A JP26965489A JP2858816B2 JP 2858816 B2 JP2858816 B2 JP 2858816B2 JP 26965489 A JP26965489 A JP 26965489A JP 26965489 A JP26965489 A JP 26965489A JP 2858816 B2 JP2858816 B2 JP 2858816B2
Authority
JP
Japan
Prior art keywords
data
eeprom
initial
initial setting
operation mode
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.)
Expired - Lifetime
Application number
JP26965489A
Other languages
Japanese (ja)
Other versions
JPH03130996A (en
Inventor
恵知子 東條
智之 木下
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.)
MYAGI NIPPON DENKI KK
NEC Corp
Original Assignee
MYAGI NIPPON DENKI KK
Nippon Electric 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 MYAGI NIPPON DENKI KK, Nippon Electric Co Ltd filed Critical MYAGI NIPPON DENKI KK
Priority to JP26965489A priority Critical patent/JP2858816B2/en
Publication of JPH03130996A publication Critical patent/JPH03130996A/en
Application granted granted Critical
Publication of JP2858816B2 publication Critical patent/JP2858816B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はEEPROMの初期設定方式に関し、特にEEPROMを
搭載した電子装置の製造時または検査時に於けるEEPROM
の初期設定方式に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an initialization method for an EEPROM, and more particularly, to an EEPROM for manufacturing or inspecting an electronic device equipped with the EEPROM.
Related to the initialization method.

〔従来の技術〕[Conventional technology]

従来、EEPROM(電気的消去再書込み可能リードオンリ
メモリ)を搭載した電子装置の製造時または検査時に於
けるEEPROMの初期設定方式は、その電子装置の動作モー
ドを指示する情報を外部の端末からマニュアル操作によ
り入力しEEPROMを初期設定している。これを第3図を参
照して説明する。同図に於て、参照番号101はEEPROM105
を搭載している装置、102は装置101を初期設定するため
の端末、103は端末102との通信を行うための通信用回
路、104はROM(リードオリリメモリ)、105はEEPROM、1
06はCPU(プロセッサ)をそれぞれ示す。
Conventionally, when manufacturing or inspecting an electronic device equipped with an EEPROM (electrically erasable and rewritable read-only memory), the initial setting method of the EEPROM is such that information indicating an operation mode of the electronic device is manually transmitted from an external terminal. The EEPROM is initialized by inputting data by operation. This will be described with reference to FIG. In the figure, reference numeral 101 is an EEPROM 105
, A terminal 102 for initializing the device 101, a communication circuit 103 for performing communication with the terminal 102, a ROM (read-only memory) 104, an EEPROM 105,
06 indicates a CPU (processor).

初期設定手順を以下に説明する。EEPROM105が初期設
定されていない状態で装置101は、EEPROM105上の不定の
データをもとに動作している。この状態で、端末102を
装置101に接続して、初期設定値をマニュアル入力す
る。CPU106は、通信用回路103を介して入力される初期
設定値をEEPROM105所定の番地に格納する。初期設定
後、CPU106はこのEEPROM105上のデータにより動作を行
うようになる。
The initial setting procedure will be described below. The device 101 operates based on undefined data in the EEPROM 105 in a state where the EEPROM 105 is not initialized. In this state, the terminal 102 is connected to the device 101, and an initial set value is manually input. The CPU 106 stores the initial setting value input via the communication circuit 103 at a predetermined address of the EEPROM 105. After the initial setting, the CPU 106 operates based on the data on the EEPROM 105.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上述した従来のEEPROMの初期設定方式は、端末からマ
ニュアル操作で行なうので、初期設定を行うために作業
工数を要し、端末の操作ミス等による作業効率低下を招
くという欠点がある。
The above-described conventional EEPROM initial setting method is performed manually from a terminal, so that it takes time and effort to perform the initial setting, and there is a disadvantage in that the operation efficiency is reduced due to a terminal operation error or the like.

〔課題を解決するための手段〕[Means for solving the problem]

本発明の方式は、初期データが書き込み済みであるこ
とを示すチェックデータを格納するための領域を設けて
ある電気的消去再書込み可能リードオンリメモリ(EEPR
OM)と、初期設定時の動作モードごとにこれに適合する
前記初期データを格納してあるリードオンリメモリ(RO
M)と、前記動作モードを示すデータを読み取るための
入力ポートと、初期設定時に前記入力ポートから前記動
作モードデータを読み取りこれに適合する前記初期デー
タを前記ROMから読出して前記EEPROMに転送して書き込
むと共に前記EEPROMに前記チェックデータを格納させる
よう動作制御するプロセッサとを有する装置と、 電圧プルアップ用抵抗におのおの接続された複数のス
トラップ端子対を有し各該ストラップ端子対間のストラ
ップ配線の有無に応じて前記動作モードデータを前記入
力ポートに与えるデータ発生回路とを備えている。
The method of the present invention employs an electrically erasable and rewritable read-only memory (EEPR) having an area for storing check data indicating that the initial data has been written.
OM) and a read-only memory (RO) storing the initial data suitable for each operation mode at the time of initial setting.
M), an input port for reading the data indicating the operation mode, and reading the operation mode data from the input port at the time of initial setting, reading the initial data conforming to the operation mode data from the ROM, and transferring the data to the EEPROM. A device having a processor for writing and controlling the operation of storing the check data in the EEPROM; and a plurality of strap terminal pairs each connected to a voltage pull-up resistor. A data generating circuit for providing the operation mode data to the input port according to the presence or absence.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のブロック図である。同図
における参照番号201はEEPROMを搭載している装置、202
は動作モード入力用の入力ポート、203はROM、204はEEP
ROM、205はCPU、Rは電圧VDDに接続されたプルアップ抵
抗、208ないし209は動作モード設定用のストラップ端子
対、をそれぞれ示す。
FIG. 1 is a block diagram of one embodiment of the present invention. In the figure, reference numeral 201 denotes a device equipped with an EEPROM, 202
Is an input port for operating mode input, 203 is ROM, 204 is EEP
ROM and 205 indicate a CPU, R indicates a pull-up resistor connected to the voltage VDD, and 208 to 209 indicate a pair of strap terminals for setting an operation mode.

第2図は、CPU205に於ける初期設定処理を示すフロー
チャートである。CPU205は、通常の初期設定を行なった
後(ステップ301)、EEPROM204の初期設定を行なうに先
立ち、EEPROM204に初期データが既に書き込まれている
か否かのチェックを行なう(ステップ302)。初期デー
タが書き込み済みか否かのチェック用に、EEPROM204に
は予め数バイト分のアドレス空間を用意してある。そし
て、初期データが書き込まれている場合、このチェック
用のアドレス空間には数バイト分の予め設定したパター
ンをもつチェックデータが書き込まれており、初期デー
タが書き込まれていない場合、チェックデータは不定と
なっている(チェックデータの書き込みについては後
述)。チェックデータが不定となっている場合に、予め
設定したパターンと一致する確率を十分小さくするた
め、チェックデータは数バイトの長さにしている。尚、
初期設定処理に於けるEEPROM204の初期設定は、一度で
もEEPROM204に初期データが書き込まれたあとでは行わ
れない処理となっており、チェックデータが不定となる
のは、EEPROM204が一度も書き込まれたことがない場合
に限られることから、不定データが予め設定したパター
ンと一致する確率はほとんど無い。CPU205は、このチェ
ックデータを読み込み、予め設定したパターンと一致し
ておればEEPROM204には既に初期データが書き込まれて
いると判断し、また不一致であればEEPROM204にはまだ
初期データが書き込まれていないと判断する(ステップ
302)。CPU205は、EEPROM204に初期データが書き込まれ
ていると判断した場合には、初期設定処理を終了し、ま
たEEPROM204に初期データが書き込まれていないと判断
した場合にはまず、入力ポート202を介して動作モード
を読み込む(ステップ303)。動作モードは、ストラッ
プ端子対208ないし209とプルアップ抵抗Rとで構成され
る回路が発する2値データで指示されるが、初期設定に
先立って予め各端子対間のストラップ配線の有無により
設定されている。CPU205は、入力した動作モードからそ
れに合ったROM203上の初期データを選択し、EEPROM204
に所定の番地に転送する(ステップ304)。ここでROM20
3上には、ストラップ端子対208ないし209で設定可能な
各動作モードに対応させて初期データを用意してある。
初期データのEEPROM204への転送が終了した後、CPU205
はEEPROM204のチェックデータ用の番地にチェックデー
タを書き込み(ステープ305)。初期設定処理を終了す
る。
FIG. 2 is a flowchart showing the initial setting process in the CPU 205. After performing the normal initialization (step 301), the CPU 205 checks whether or not the initial data has already been written to the EEPROM 204 before performing the initialization of the EEPROM 204 (step 302). For checking whether or not the initial data has been written, an address space for several bytes is prepared in the EEPROM 204 in advance. When the initial data is written, check data having a predetermined pattern of several bytes is written in the address space for the check, and when the initial data is not written, the check data is undefined. (Writing of check data will be described later). When the check data is indefinite, the length of the check data is set to several bytes in order to sufficiently reduce the probability of coincidence with a preset pattern. still,
The initial setting of the EEPROM 204 in the initial setting process is a process that is not performed after the initial data has been written to the EEPROM 204 even once, and the check data is undefined because the EEPROM 204 has been written once Since there is no data, there is almost no probability that the indefinite data matches a preset pattern. The CPU 205 reads the check data, determines that the initial data has already been written to the EEPROM 204 if it matches the pattern set in advance, and has not yet written the initial data to the EEPROM 204 if it does not match. Judge (step
302). When the CPU 205 determines that the initial data has been written to the EEPROM 204, the CPU 205 ends the initial setting process, and when it determines that the initial data has not been written to the EEPROM 204, The operation mode is read (step 303). The operation mode is specified by binary data generated by a circuit composed of the strap terminal pairs 208 to 209 and the pull-up resistor R, and is set in advance by the presence or absence of a strap wiring between each terminal pair prior to the initial setting. ing. The CPU 205 selects the initial data on the ROM 203 corresponding to the input operation mode, and
Is transferred to a predetermined address (step 304). Where ROM20
On the top of FIG. 3, initial data is prepared corresponding to each operation mode that can be set by the strap terminal pairs 208 to 209.
After the transfer of the initial data to the EEPROM 204 is completed, the CPU 205
Writes the check data to the address for the check data in the EEPROM 204 (Stape 305). The initialization processing ends.

次に、第2図中のステップ302に於てEEPROM204に初期
データが書き込まれていることを何故チェックする必要
があるかについて説明する。CPU205は、上述の初期設定
処理を終了するとEEPROM204上の初期データに従って動
作を開始する。通常、CPUD05は処理を行なっている間
に、内部処理上または外部からの要求によりEEPROM204
の設定内容を変えている。電源投入時やリセット時に、
初期設定処理を於てEEPROM204に初期データが書き込ま
れているかのチェックを行わないで一律にROM203のデー
タを転送してしまうと、前回までのEEPROM204の設定内
容を消してしまうことになってしまう。これを防止する
には、EEPROM204に初期データが書き込まれているかの
チェックをする必要がある。
Next, the reason why it is necessary to check that the initial data has been written in the EEPROM 204 in step 302 in FIG. 2 will be described. After finishing the above-described initialization processing, the CPU 205 starts operating according to the initial data on the EEPROM 204. Normally, while processing is being performed, the CPU
Is changed. When turning on the power or resetting,
If the data in the ROM 203 is uniformly transferred without checking whether or not the initial data has been written to the EEPROM 204 in the initial setting process, the settings in the EEPROM 204 up to the previous time will be erased. To prevent this, it is necessary to check whether the initial data has been written to the EEPROM 204.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、CPUがストラップ端子
対の設定状態により指示される動作モードに合った初期
設定値をROM上からEEPROMに転送することにより、EEPRO
Mの初期設定を自動的に行うことができる。この結果、
従来方式でのような端末のマニュアル操作が不必要にな
り、初期設定を行なうための作業工数を削減でき、端末
の操作ミス等による作業効率低下を防止できるという効
果がある。
As described above, the present invention enables the CPU to transfer an initial setting value suitable for the operation mode indicated by the setting state of the strap terminal pair from the ROM to the EEPROM.
The initial setting of M can be performed automatically. As a result,
This eliminates the need for manual operation of the terminal as in the conventional method, reduces the number of work steps for performing the initial setting, and has the effect of preventing a decrease in work efficiency due to a terminal operation error or the like.

【図面の簡単な説明】 第1図は本発明の一実施例を示すブロック図、第2図は
本発明の実施例での初期設定処理のフローチャート、第
3図は従来方式を示すブロック図である。 101,102……装置、202……入力ポート、104,203……RO
M、105,204……EEPROM、106,205……CPU、208〜209……
ストラップ端子対、R……プルアップ抵抗。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a flowchart of an initial setting process in an embodiment of the present invention, and FIG. 3 is a block diagram showing a conventional system. is there. 101,102 …… Device, 202 …… Input port, 104,203 …… RO
M, 105, 204 ... EEPROM, 106, 205 ... CPU, 208-209 ...
Strap terminal pair, R ... pull-up resistor.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】初期データが書き込み済みであることを示
すチェックデータを格納するための領域を設けてある電
気的消去再書込み可能リードオンリメモリ(EEPROM)
と、初期設定時の動作モードごとにこれに適合する前記
初期データを格納してあるリードオンリメモリ(ROM)
と、前記動作モードを示すデータを読み取るための入力
ポートと、初期設定時に前記入力ポートから前記動作モ
ードデータを読み取りこれに適合する前記初期データを
前記ROMから読出して前記EEPROMに転送して書き込むと
共に前記EEPROMに前記チェックデータを格納させるよう
動作制御するプロセッサとを有する装置と、 電圧プルアップ用抵抗におのおの接続された複数のスト
ラップ端子対を有し各該ストラップ端子対間のストラッ
プ配線の有無に応じて前記動作モードデータを前記入力
ポートに与えるデータ発生回路とを備えていることを特
徴とするEEPROMの初期設定方式。
1. An electrically erasable and rewritable read-only memory (EEPROM) having an area for storing check data indicating that initial data has been written.
And a read-only memory (ROM) storing the initial data suitable for each operation mode at the time of initial setting.
An input port for reading the data indicating the operation mode, and reading the operation mode data from the input port at the time of initial setting, reading the initial data conforming thereto from the ROM, transferring the data to the EEPROM, and writing the data. A device having a processor that controls the operation of storing the check data in the EEPROM; and a plurality of strap terminal pairs connected to the voltage pull-up resistors, respectively. A data generating circuit for providing the operation mode data to the input port in response to the operation mode data.
【請求項2】前記データ発生回路を前記装置に内蔵させ
た請求項(1)記載のEEPROMの初期設定方式。
2. The EEPROM initial setting method according to claim 1, wherein said data generation circuit is built in said device.
JP26965489A 1989-10-16 1989-10-16 Initial setting method of EEPROM Expired - Lifetime JP2858816B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26965489A JP2858816B2 (en) 1989-10-16 1989-10-16 Initial setting method of EEPROM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26965489A JP2858816B2 (en) 1989-10-16 1989-10-16 Initial setting method of EEPROM

Publications (2)

Publication Number Publication Date
JPH03130996A JPH03130996A (en) 1991-06-04
JP2858816B2 true JP2858816B2 (en) 1999-02-17

Family

ID=17475365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26965489A Expired - Lifetime JP2858816B2 (en) 1989-10-16 1989-10-16 Initial setting method of EEPROM

Country Status (1)

Country Link
JP (1) JP2858816B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100324278B1 (en) * 1999-09-21 2002-02-21 서평원 method for auto cognitive of board in router system
KR100909358B1 (en) * 2007-04-16 2009-07-24 삼성전자주식회사 Flash memory device providing reliable initialization data and method of initializing it

Also Published As

Publication number Publication date
JPH03130996A (en) 1991-06-04

Similar Documents

Publication Publication Date Title
JP3030342B2 (en) card
JPH0764770A (en) Microcontroller apparatus provided with remotely writable eprom and writing method
JP2000020391A (en) Storage device, data processor and its method
JP2001134629A (en) Simulation method and simulation system
JP2858816B2 (en) Initial setting method of EEPROM
JP2910745B2 (en) Storage device and data processing method
JPH10283172A (en) Flash rom data rewrite system
JPH08129629A (en) Information recording medium with memory check function
JP3497066B2 (en) Data write / read method in flash memory and storage device using flash memory
JPH04162300A (en) Semiconductor memory
JPH06259982A (en) Method and device for rewriting flash rom
JP2701591B2 (en) Self-diagnosis method for car telephone equipment
JPH11328089A (en) Id information write circuit in device for pci bus interface
JP2001084172A (en) Semiconductor storage device
JPH04152488A (en) Ic card
JP2558335B2 (en) Write control device for storage device
JPS61134856A (en) Ram check circuit
JPH0520474A (en) One chip microcomputer
JPH0528058A (en) Memory address bus test system
JPH10333992A (en) Flash memory write data and flash memory loading equipment
JPH0469742A (en) Electronic equipment
JPS60207989A (en) Recording system of electronic device
JPH0659900A (en) Memory writer
JPH0226252B2 (en)
JPH04257030A (en) Rom patch system