JP2645194B2 - Electronic weighing device - Google Patents

Electronic weighing device

Info

Publication number
JP2645194B2
JP2645194B2 JP3286916A JP28691691A JP2645194B2 JP 2645194 B2 JP2645194 B2 JP 2645194B2 JP 3286916 A JP3286916 A JP 3286916A JP 28691691 A JP28691691 A JP 28691691A JP 2645194 B2 JP2645194 B2 JP 2645194B2
Authority
JP
Japan
Prior art keywords
data
flash memory
program
chip
erasing
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 - Fee Related
Application number
JP3286916A
Other languages
Japanese (ja)
Other versions
JPH05126620A (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.)
Teraoka Seiko Co Ltd
Original Assignee
Teraoka Seiko 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 Teraoka Seiko Co Ltd filed Critical Teraoka Seiko Co Ltd
Priority to JP3286916A priority Critical patent/JP2645194B2/en
Publication of JPH05126620A publication Critical patent/JPH05126620A/en
Application granted granted Critical
Publication of JP2645194B2 publication Critical patent/JP2645194B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、電子秤装置に関し、
特に、フロッピディスク装置を備え、作業予約データや
集計データがフロッピディスクに記憶されるようになっ
ている電子秤装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic balance device,
In particular, the present invention relates to an electronic weighing apparatus that includes a floppy disk device and stores work reservation data and total data on a floppy disk.

【0002】[0002]

【従来の技術】近年、CPU(中央処理装置)やROM
(リード・オンリ・メモリ)等を内蔵して、マイクロコ
ンピュータ(マイコン)・システムによって動作する電
子秤装置が提供されている。この種の電子秤装置は、用
途・機能に応じて、電子料金秤や電子計数秤とも呼ば
れ、CPUがROMに記憶されている制御プログラム
(ファームウエア)を実行することによって、所定のマ
イコン制御を行う。
2. Description of the Related Art In recent years, CPUs (central processing units) and ROMs have been developed.
2. Description of the Related Art There is provided an electronic weighing apparatus which incorporates a (read only memory) and the like and is operated by a microcomputer system. This type of electronic weighing apparatus is also called an electronic toll weighing apparatus or an electronic counting weighing apparatus depending on the application and function. The CPU executes a control program (firmware) stored in a ROM to control a predetermined microcomputer. I do.

【0003】一方、上記マイコン制御機能に加えて、フ
ロッピディスク装置(FDD)を備え、プリセットデー
タ、作業予約データ、集計データ(実績データ)等をフ
ロッピディスク(FD)に記憶する電子秤装置も開発さ
れている(実開昭63−67938号公報)。
On the other hand, in addition to the above microcomputer control function, an electronic weighing apparatus which includes a floppy disk device (FDD) and stores preset data, work reservation data, total data (actual data) and the like on the floppy disk (FD) has also been developed. (Japanese Utility Model Laid-Open No. 63-67938).

【0004】ところで、上記いずれの電子秤装置におい
ても、上記内臓ROMとして、書き込み可能なPROM
(Programmable ROM)が使用されている。そして、上記
各装置にあっては、制御プログラムのバグやバージョン
アップ(仕様変更)等によってPROMの記憶内容(制
御プログラム)を変更する必要性が生じた場合には、P
ROMを交換することで対処している。
In any of the above electronic weighing devices, a writable PROM is used as the built-in ROM.
(Programmable ROM) is used. In each of the above devices, if it becomes necessary to change the storage contents (control program) of the PROM due to a bug or version upgrade (specification change) of the control program, the PROM
The problem is solved by replacing the ROM.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記従
来の装置においては、PROMを交換することによりプ
ログラムを変更する場合に、次のような不都合が指摘さ
れていた。 (1)装置の内部を開け、基板を取り出して作業をしな
ければならず、交換作業時に回路に関する特別な知識と
技術を必要とする。
However, in the above-mentioned conventional apparatus, the following inconvenience has been pointed out when a program is changed by replacing a PROM. (1) The inside of the apparatus must be opened, the substrate must be taken out, and the work must be performed, and a special knowledge and technique regarding the circuit are required at the time of the replacement work.

【0006】(2)ROM交換時、CPUの端子をショ
ートさせてCPUを破損したり、ROMをソケットには
め込む時に端子を折り曲げてROMを破損することがあ
る。
(2) When the ROM is replaced, the CPU terminal may be short-circuited to damage the CPU, or when the ROM is inserted into the socket, the terminal may be bent and the ROM may be damaged.

【0007】(3)工場等でPROMにプログラムを書
き込んだ後、それをユーザのところに持って行って交換
しなければならず、PROMの保管、管理、運搬等が面
倒である。
(3) After a program is written in a PROM at a factory or the like, the program must be brought to the user and exchanged, and the storage, management, transportation, and the like of the PROM are troublesome.

【0008】この発明は、上記事情に鑑みてなされたも
ので、簡単な操作で効率よく制御プログラムの変更をす
る事ができるマイコン制御の電子秤装置を提供すること
を目的としている。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to provide a microcomputer-controlled electronic weighing apparatus capable of efficiently changing a control program with a simple operation .

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
に、請求項1記載の発明は、装置各部を制御する中央処
理装置と、当該中央処理装置が実行する制御プログラム
やデータを記憶するROMと、作業データ、実績デー
タ、計量データ等の各種データをフロッピディスクに記
憶するフロッピディスク装置とを有し、小型コンピュー
タ・システムによって動作する電子秤装置において、前
記ROMは、各々オンボードで記憶内容を書き換えるこ
とができる複数のフラッシュメモリICチップからなる
と共に、新しく書き込まれるべき制御プログラムあるい
はデータと、その制御プログラムあるいはデータの書き
込み先であるフラッシュメモリICチップを前記複数の
フラッシュメモリICチップの中から選択するための識
別コードとを、予め記憶するプログラム書き換え用フロ
ッピディスクと、前記プログラム書き換え用フロッピデ
ィスクから、前記フロッピディスク装置を介して、前記
新しい制御プログラムあるいはデータ及び識別コードを
読み出す読出手段と、前記複数のフラッシュメモリIC
チップの中から、読み出した識別コードに該当する前記
フラッシュメモリICチップを選択する選択手段と、
選択したフラッシュメモリICチップの記憶内容を消去
する消去手段と、該消去手段によって記憶内容が消去さ
れたフラッシュメモリICチップに、前記新しい制御プ
ログラムあるいはデータを書き込む書込手段とを備えて
なることを特徴としている。
According to one aspect of the present invention, there is provided a central processing unit for controlling each unit of a device, and a ROM for storing a control program and data executed by the central processing unit. And a floppy disk device that stores various data such as work data, actual data, and weighing data on a floppy disk. In an electronic weighing device that is operated by a small computer system, the ROM has on-board storage contents. And a control program or data to be newly written and a flash memory IC chip to which the control program or data is to be written are written from among the plurality of flash memory IC chips. The identification code to select A floppy disk for the program rewriting of憶, from the program rewriting floppy disk, the via floppy disk device, reading means for to read out <br/> the new control program or data and the identification code, the plurality of flash Memory IC
Selecting means for selecting the flash memory IC chip corresponding to the read identification code from the chips, and erasing the storage contents of the selected flash memory IC chip
Erasing means for erasing stored contents by the erasing means.
And a writing means for writing the new control program or data in the flash memory IC chip .

【0010】請求項2記載の発明は、請求項1記載の電
子秤装置において、前記読出手段、選択手段、消去手段
および書込手段は、少なくとも前記ROMに記憶され、
かつ消去することができないプログラムを備えてなるも
のであることを特徴としている。
[0010] The invention according to claim 2 is the electric power supply according to claim 1.
In the child weighing apparatus, the reading means, the selecting means, and the erasing means
And writing means are stored at least in the ROM,
Further, it is characterized by having a program that cannot be erased.

【0011】請求項3記載の発明は、請求項2記載の電
子秤装置において、前記読出手段、選択手段、消去手段
および書込手段が備える前記プログラムは、前記制御プ
ログラムあるいはデータが記憶されている前記フラッシ
ュメモリICチップに記憶されていることを特徴として
いる。
According to the third aspect of the present invention, there is provided the electronic device according to the second aspect.
In the child weighing apparatus, the reading means, the selecting means, and the erasing means
And the program included in the writing means is stored in the flash memory IC chip in which the control program or data is stored.

【0012】請求項4記載の発明は、請求項2記載の電
子秤装置において、前記読出手段、選択手段、消去手段
および書込手段が備える前記プログラムは、前記制御プ
ログラムあるいはデータが記憶されている前記フラッシ
ュメモリICチップとは別のROMチップに記憶されて
いることを特徴としている。
[0012] The invention according to claim 4 is the same as that of claim 2.
In the child weighing apparatus, the reading means, the selecting means, and the erasing means
And the program included in the writing means is stored in a ROM chip different from the flash memory IC chip in which the control program or data is stored.

【0013】また、請求項5記載の発明は、請求項1記
載の電子秤装置において、前記読出手段、選択手段、消
去手段および書込手段は、予め決められている暗証番号
が入力されたときにのみ動作することを特徴としてい
る。
The invention according to claim 5 is the same as the invention according to claim 1.
The reading means, the selecting means, and the
The leaving means and the writing means operate only when a predetermined password is inputted.

【0014】[0014]

【作用】上記発明の構成において、ROM(フラッシュ
メモリ)に格納された制御プログラムに変更の必要が生
じた場合、読出手段が、プログラム書き換え用フロッピ
ディスクから、フロッピディスク装置を介して、新しい
制御プログラムあるいはデータ及び識別コードを読み出
し、選択手段が、複数のフラッシュメモリICチップの
中から、読み出した識別コードに該当するフラッシュメ
モリICチップを選択し、消去手段が、該選択したフラ
ッシュメモリICチップの記憶内容を消去し、書込手段
が、該消去手段によって記憶内容が消去されたフラッシ
ュメモリICチップに、新しい制御プログラムあるいは
データを書き込む。
In the configuration of the present invention, when it is necessary to change the control program stored in the ROM (flash memory), the reading means sets the program rewriting floppy disk.
From the disk, through the floppy disk unit,
Read control program or data and identification code
And selecting means for selecting a plurality of flash memory IC chips.
Flash memory corresponding to the read identification code
The memory IC chip is selected, and the erasing means selects the selected flash memory chip.
Means for erasing and writing contents stored in a flash memory IC chip
Is a flash memory whose contents have been erased by the erasing means.
New control program or
Write data.

【0015】したがって、ROMチップを交換すること
なく、また他の書換装置を使用することもなく、電子秤
装置自体で制御プログラムの書き換えを行うことができ
る。それゆえ、ROMチップを交換することによって生
じる不都合、すなはち、交換作業の煩雑さ、CPUやR
OMの破損の虞れ、及びROMの保管、管理、運搬の面
倒等の不都合を全て解消することができる。
Therefore, the control program can be rewritten by the electronic weighing device itself without replacing the ROM chip and using another rewriting device. Therefore, the inconvenience caused by replacing the ROM chip, that is, the complexity of the replacement operation, the CPU and R
All the inconveniences such as the risk of damage to the OM and the trouble of storing, managing, and transporting the ROM can be eliminated.

【0016】[0016]

【実施例】以下、図面を参照してこの発明の実施例につ
いて説明する。機械的構成 図1はこの発明の一実施例である電子秤装置の外観構成
を示す斜視図である。この図に示すように、電子秤装置
は、本体部1と付属部2とからなっている。上記本体部
1は、上段部1a及び下段部1bを有し、上段部1aに
は計量部を構成する第1スケール3及び第2スケール4
が、また下段部1bには操作部5及び表示部を構成する
ドットディスプレイ6が設けられている。上記付属部2
には、計量部を構成する第3スケール7が設けられてい
る。上記第1スケール3は最大500gまで、第2スケ
ール4は最大3,000gまで、また第3スケール7
は、最大5,000gまで、各々秤量できるように構成
されている。上記操作部5は、タッチパネル8、第1操
作部9及び第2操作部10を備えている。上記ドットデ
ィスプレイ6は、重量や単位重量等のデータの表示や風
袋引中等の各種の状態表示を行う。上記タッチパネル8
は、ドットディスプレイ6上に配設されており、表示画
面に表示されるキートップ表記部をオペレータが触れる
と当該部分の項目が入力されるようになっている。
Embodiments of the present invention will be described below with reference to the drawings. Mechanical Structure Fig. 1 is a perspective view showing an external configuration of an electronic scale device according to an embodiment of the present invention. As shown in this figure, the electronic weighing device includes a main body 1 and an attachment 2. The main body 1 has an upper section 1a and a lower section 1b, and the upper section 1a has a first scale 3 and a second scale 4 constituting a measuring section.
However, the lower section 1b is provided with an operation section 5 and a dot display 6 constituting a display section. Attached part 2
Is provided with a third scale 7 constituting a measuring section. The first scale 3 is up to 500 g, the second scale 4 is up to 3,000 g, and the third scale 7
Is configured to be able to weigh up to 5,000 g each. The operation unit 5 includes a touch panel 8, a first operation unit 9, and a second operation unit 10. The dot display 6 displays data such as weight and unit weight, and displays various states such as tare weight cancellation. Touch panel 8
Are arranged on the dot display 6, and when an operator touches a key top notation displayed on the display screen, an item of the portion is input.

【0017】さらに、上記本体部1の正面下部にはフロ
ッピディスク11a,11bを駆動するフロッピディス
ク装置が2台備えられている。これらのフロッピディス
ク装置は、フロッピディスク11a,11bの挿入方向
を示す矢印A,Bの方向にあるが、図1では操作部5等
に隠れて見えない。上記フロッピーディスク11a,1
1bは、交換用の制御プログラムやプリセットデータ、
作業予約データ、集計データ(実績データ)等の格納に
用いられるが、この実施例においては前者の格納用とし
て、特に、重要である。
Further, two floppy disk drives for driving the floppy disks 11a and 11b are provided at the lower front part of the main body 1. Although these floppy disk devices are in the directions of arrows A and B indicating the inserting direction of the floppy disks 11a and 11b, they are hidden by the operation unit 5 and the like in FIG. The floppy disk 11a, 1
1b is a replacement control program or preset data,
It is used for storing work reservation data, total data (actual data), and the like. In this embodiment, the former is particularly important for storing the former.

【0018】電気的構成 次に、図2を参照して、この例の電子秤装置の電気的構
成について説明する。同図において、CPU12は、R
OM13に格納された制御プログラムに従って、RAM
(ランダム・アクセス・メモリ)14をワークエリアと
して処理を行うことにより、装置各部を制御する。
Next, the electrical configuration of the electronic weighing device of this embodiment will be described with reference to FIG. Referring to FIG.
According to the control program stored in the OM 13, the RAM
The (random access memory) 14 is used as a work area for processing to control each unit of the apparatus.

【0019】ROM13は、計量処理、印字処理、表示
処理及びデータの書込み処理等を制御する制御プログラ
ムエリアと、文字パターン等を記憶するテーブルエリア
とから構成されている。また、制御プログラムエリアの
中には、ROM13の記憶内容自身を書き換える書き換
え処理プログラムも格納されている。ROM13の構成
はこの発明において特に重要であるので後述する。
The ROM 13 includes a control program area for controlling a weighing process, a printing process, a display process, a data writing process, and the like, and a table area for storing character patterns and the like. In the control program area, a rewrite processing program for rewriting the storage contents of the ROM 13 itself is also stored. The configuration of the ROM 13 is particularly important in the present invention, and will be described later.

【0020】RAM14は、各種のフラグやレジスタが
確保されたワーキングエリアと、プリセットデータを格
納するためのプリセットデータファイルと、集計データ
を格納するための集計データファイルと、予約データを
格納するための予約データファイルとから構成されてい
る。
The RAM 14 has a working area in which various flags and registers are secured, a preset data file for storing preset data, a total data file for storing total data, and a storage for reservation data. And a reservation data file.

【0021】計量部15は、第1スケール3、第2スケ
ール4、第3スケール7及び計量部インタフェイス(不
図示)からなり、被計量物を搭載して計量を行い、その
際発生する信号(計量値)をCPU12に送出する。
The weighing section 15 is composed of a first scale 3, a second scale 4, a third scale 7, and a weighing section interface (not shown). (Measurement value) is sent to the CPU 12.

【0022】表示部16は、ドットディスプレイ6と表
示部インタフェイス(不図示)とからなり、CPU12
から受け取る制御信号に基づいて各種の表示を行う。
The display unit 16 comprises the dot display 6 and a display interface (not shown).
Various displays are performed based on the control signal received from the PC.

【0023】上述した操作部5は、オペレータによって
キー操作ないしタッチ操作されることにより各種データ
やコマンドの入力を行う。
The above-described operation unit 5 inputs various data and commands by key operation or touch operation by an operator.

【0024】プリンタ・インタフェイス17は、CPU
12とプリンタ(外部機器)18との間の交信を可能と
するために、両者の間に介挿される。上記プリンタ18
は、プリントキーが押されるとRAM14からの入庫あ
るいは出庫に関する情報をプリンタ・インタフェイス1
7を介して受け取り、入庫票あるいは出庫票を印字す
る。
The printer interface 17 has a CPU
In order to enable communication between the printer 12 and the printer (external device) 18, it is interposed between them. The printer 18
When the print key is depressed, information relating to entry or exit from the RAM 14 is transmitted to the printer interface 1.
7 and print a receipt slip or a delivery slip.

【0025】回転ラック・インタフェイス19は、CP
U12と回転ラック20との間の交信を可能とするため
に、両者の間に介挿される。外部機器としての回転ラッ
ク20は、回転ラックインターフェイス19を介して棚
番号データを受け取り、その棚番号データに基づいて棚
の回転制御を行う(特願平1−225548号参照)。
The rotating rack interface 19 has a CP
It is interposed between the U12 and the carousel 20 to enable communication between them. The rotating rack 20 as an external device receives the shelf number data via the rotating rack interface 19 and controls the rotation of the shelf based on the shelf number data (see Japanese Patent Application No. 1-225548).

【0026】フロッピディスク装置21a,21bは、
フロッピディスク11a,11bを装着することによ
り、フロッピディスク・インタフェイス22を介してC
PU12との間でデータの授受を行う。この例のフロッ
ピディスク装置21a,21bとしては、コントロール
信号によって、2M/1.6Mモードの切り替えが可能
なものが用いられる(例えば、アルプス電気(株)製の
DFR783F)。
The floppy disk devices 21a and 21b are
By mounting the floppy disks 11a and 11b, the C is connected via the floppy disk interface 22.
Data is exchanged with the PU 12. As the floppy disk devices 21a and 21b of this example, those capable of switching between 2M / 1.6M modes by a control signal are used (for example, DFR783F manufactured by Alps Electric Co., Ltd.).

【0027】メモリマップのエリア構成 図3は、この例におけるメモリマップのエリア構成を示
す概念図である。この例においては、CPU12として
インテル社製の8086系のCPUを用いている関係か
ら、同図に示すように、1Mバイトのアドレス空間が設
定され、このうち、RAM14には「00000」から
「5FFFF」までのアドレス空間が、ROM13には
「60000」から「FFFFF」までのアドレス空間
が割り当てられている。
Area Configuration of Memory Map FIG. 3 is a conceptual diagram showing the area configuration of the memory map in this example. In this example, since an 8086 CPU manufactured by Intel Corporation is used as the CPU 12, an address space of 1 Mbyte is set as shown in FIG. , And the ROM 13 is assigned an address space from "60000" to "FFFFF".

【0028】ROM14は、1個のブート・ブロック・
フラッシュメモリIC(#1)と4個のフラッシュメモ
リIC(#2,#3,#4,#5)とから構成され、各フ
ラッシュメモリIC(#1,#2,#3,#4,#5)は、
いずれも1Mビット(128bytes×8)の記憶容量を
有している。ここで、フラッシュメモリ(#1,#2,#
3,#4,#5)は、チップ単位のデータをオンボードで
書き換えることができる不揮発性メモリであり、その基
本構造はEEPROM(電気的に消去可能で、書き込み
可能な読出専用メモリ)と同一である。
The ROM 14 has one boot block.
Each of the flash memory ICs (# 1, # 2, # 3, # 4, #) is composed of a flash memory IC (# 1) and four flash memory ICs (# 2, # 3, # 4, # 5). 5)
Each has a storage capacity of 1 Mbit (128 bytes × 8). Here, the flash memory (# 1, # 2, #
3, # 4, # 5) are non-volatile memories that can rewrite data in chip units on-board, and have the same basic structure as EEPROM (electrically erasable and writable read-only memory). It is.

【0029】それ故、この例においては、装置内蔵のC
PU12自身によって、ROM13の記憶内容を、チッ
プ単位で(フラッシュメモリIC(#1,#2,#3,#
4,#5)毎に)、直接(オンボードで)書き換えるこ
とができるように構成されている。
Therefore, in this example, the C
The PU 12 itself stores the contents stored in the ROM 13 in chip units (flash memory ICs (# 1, # 2, # 3, #
4, # 5) can be directly (on-board) rewritten.

【0030】上記フラッシュメモリIC(#1,#2,#
3,#4,#5)のうち、特に、ブート・ブロック・フラ
ッシュメモリ#1は、同図に示すように、メモリエリア
が、8Kバイトのロッカブルブロック1個と4Kバイト
のパラメータブロック2個と112Kバイトのメインコ
ードブロック1個とにブロック分けされて構成され、ブ
ロック毎に消去、書き込みを行うことができるようにな
っている。
The flash memory ICs (# 1, # 2, #
3, # 4, # 5), in particular, the boot block flash memory # 1 has a memory area of one lock block of 8 Kbytes and two parameter blocks of 4 Kbytes as shown in FIG. And one main code block of 112 Kbytes, and erasing and writing can be performed for each block.

【0031】この実施例においては、これらのブロック
のうち、上記ロッカブルブロックは、ハード的に「消去
不可」に構成され、このエリアには後述するフラッシュ
メモリの書き換え処理プログラム(消去・書き込み処理
プログラム)が予め記憶されている。
In this embodiment, of these blocks, the above-mentioned lockable block is configured to be "erasable" in terms of hardware, and a flash memory rewrite processing program (erase / write processing program) described later is provided in this area. ) Is stored in advance.

【0032】この書き換え処理プログラムは、電子秤装
置の電源をオンにした時に、所定のキー、この実施例に
おいては「ゼロー」キー(秤のゼロリッセトキー)が押
下した状態にある場合に実行されるようになっている。
This rewriting processing program is executed when a predetermined key, in this embodiment, a "zero-" key (a zero reset key of the scale) is depressed when the power supply of the electronic balance is turned on. It has become so.

【0033】なお、ブート・ブロックフラッシュメモリ
としては、例えば、インテル社製「28F001BXフ
ラッシュ・メモリ」が存在する。
As the boot block flash memory, there is, for example, "28F001BX flash memory" manufactured by Intel Corporation.

【0034】フラッシュメモリの原理説明 次に、フラッシュメモリの動作について説明する。上述
したように、この例の電子秤装置においては、装置内蔵
のCPU12自身によって、フラッシュメモリIC(#
1,#2,#3,#4,#5)の記憶内容を直接書き換える
(消去後書き込みを行う)ことができる。
[0034] The principle explanation of flash memory will be described operation of the flash memory. As described above, in the electronic weighing apparatus of this example, the flash memory IC (#
1, # 2, # 3, # 4, # 5) can be directly rewritten (writing after erasure is performed).

【0035】この例においては、消去・書き込み時に
は、読み出し時の電圧Vcc(=5V)の他に高電圧Vpp
(=12V)を印加する。例えばインテル社製のフラッ
シュメモリでは、Vpp端子に12Vを印加した状態で、
ROMの所定のアドレスを指定して、消去コマンドを2
回書き込むと、そのアドレスのデータが消去される。消
去処理時における指定されたメモリセルにおいては、ゲ
ートは接地されドレインは開放状態とされ、ソースには
高電圧Vpp(=12V)が印加される。かくして、フロ
ーティングゲートに蓄積した電子はソースに引き抜か
れ、消去が達成される。
In this example, at the time of erasing / writing, in addition to the voltage Vcc (= 5 V) at the time of reading, the high voltage Vpp
(= 12 V). For example, in a flash memory manufactured by Intel Corporation, when 12 V is applied to the Vpp terminal,
Specify a predetermined address of the ROM and execute the erase command
Writing once erases the data at that address. In the designated memory cell at the time of the erasing process, the gate is grounded and the drain is opened, and the source is applied with the high voltage Vpp (= 12 V). Thus, the electrons accumulated in the floating gate are extracted to the source, and erasing is achieved.

【0036】また、新しいプログラム・データの書き込
みは、プログラム・データを消去後、所定のアドレスを
指定して、プログラムコマンドを1回書き込んだ後、次
にプログラム・データを書き込むことによって行われ
る。書き込み処理時における指定されたメモリセルにお
いては、ゲートには高電圧Vpp(=12V)が、ドレイ
ンには例えば5V〜6Vがそれぞれ印加される。かくし
て、ドレイン近傍に発生したホットエレクトロンがフロ
ーティングゲートに注入され書き込みが達成される。
The writing of new program data is performed by erasing the program data, specifying a predetermined address, writing a program command once, and then writing the program data. In the designated memory cell at the time of the write process, a high voltage Vpp (= 12 V) is applied to the gate, and 5 V to 6 V, for example, is applied to the drain. Thus, the hot electrons generated near the drain are injected into the floating gate, and the writing is achieved.

【0037】なお、消去時及び書き込み時には、それぞ
れ消去動作及び書き込み動作が正常に行わたかを確認す
るためにベリファイ処理が行われるようになっている。
また、上述の消去に際しては、全てのメモリセルの電荷
を等しくし、均一で信頼性のある消去を行うために、消
去する前に、全ての番地に「00H」を書き込むように
している(フラッシュメモリでは、各ビットデータを消
去すると「1」、書き込むと「0」である)。
At the time of erasing and writing, a verifying process is performed to confirm whether the erasing operation and the writing operation have been performed normally, respectively.
In the above-mentioned erasing, "00H" is written to all addresses before erasing in order to equalize the charges of all the memory cells and perform uniform and reliable erasing (flash). In the memory, when each bit data is erased, it is "1" and when it is written, it is "0".)

【0038】一方、Vpp端子の電圧がVcc+2V(7
V)以下になると、リードオンリメモリとして動作す
る。読み出しは、ゲートに低電圧(Vcc+2V以下)が
印加され、スレッシュホールド電圧の高低に応じたドレ
イン電圧のON/OFFを増幅器によって検出すること
により行われる。
On the other hand, when the voltage of the Vpp terminal is Vcc + 2V (7
If V) or less, it operates as a read-only memory. Reading is performed by applying a low voltage (Vcc + 2 V or less) to the gate and detecting ON / OFF of the drain voltage according to the level of the threshold voltage by an amplifier.

【0039】ROM周辺の電気的構成 図4は、ROM周辺の電気的構成を示すブロック図であ
る。同図において、デコーダ23はCPU12からアド
レスの指定を受けると、該当するフラッシュメモリIC
(#1,#2,#3,#4,#5)を選択するチップセレク
ト信号を発生する。このチップセレクト信号は、各CE
端子から各フラッシュメモリIC(#1,#2,#3,#
4,#5)に入力される。WE(ライトイネーブル)信
号発生回路24は、指定を受けたフラッシュメモリIC
を書き込み可能な状態にするライトイネーブル信号WE
を発生する。このライトイネーブル信号WEは、各WE
端子から各フラッシュメモリIC(#1,#2,#3,#
4,#5)に入力される。Vpp発生回路25は、消去及
び書き込み用の電圧Vppを発生する。
The electrical configuration diagram 4 near ROM is a block diagram showing an electrical configuration of the peripheral ROM. In the figure, when an address is designated by a CPU 12, a decoder 23 receives a designated flash memory IC.
A chip select signal for selecting (# 1, # 2, # 3, # 4, # 5) is generated. The chip select signal, each CE
Terminal to connect each flash memory IC (# 1, # 2, # 3, #
4, # 5). The WE (write enable) signal generation circuit 24
Write enable signal WE for enabling
Occurs. The write enable signal WE, each WE
Terminal to connect each flash memory IC (# 1, # 2, # 3, #
4, # 5). The Vpp generation circuit 25 generates an erase and write voltage Vpp.

【0040】フロッピディスクの構成 この例においては、フロッピディスク11a,11bに
記憶されたプログラムファイルをフラッシュメモリ(#
1,#2,#3,#4,#5)に書き込むが、図3に示した
メモリマップの構成から、128Kバイト単位(ROM
チップ単位)での書き換えが可能となっている。このた
め、フロッピディスク11a,11bに記憶させるプロ
グラムファイルの名前から、どのフラッシュメモリIC
チップを書き換えるかの識別ができるようになってい
る。
[0040] In this example configuration of a floppy disk, a floppy disk 11a, a flash memory storing program files to 11b (#
1, # 2, # 3, # 4, # 5), but from the configuration of the memory map shown in FIG.
Rewriting on a chip basis is possible. For this reason, from the name of the program file stored in the floppy disks 11a and 11b,
It is possible to identify whether to rewrite the chip.

【0041】例えば、プログラムファイル名は、DC#
N.CONと書かれるようになっている。ここで、N=
1,2,3,4,5である。例えば、プログラムファイル名
として、DC#3.CONが書き込まれている場合に
は、フラッシュメモリIC(#3)の記憶内容を書き換え
るためのプログラムファイルであることを示している。
For example, the program file name is DC #
N. It is written as CON. Where N =
1,2,3,4,5. For example, as a program file name, DC # 3. When CON is written, it indicates that it is a program file for rewriting the storage content of the flash memory IC (# 3).

【0042】次に、動作について説明する。フラッシュメモリの書き換え処理手順 図5のフローチャートを参照して、フラッシュメモリの
書き換え(消去・書き込み)処理手順について説明す
る。電源が投入されると、CPUは、まず、ステップS
A1においてイニシャライズ処理を実行する。これによ
ってRAM14の所定の記憶内容がクリアされる。ステ
ップSA2において、操作部5の「ゼロ」キーがON状
態であるか否かが判断される。この判断の結果が「N
O」の時、すなわち「ゼロ」キーがOFF状態となって
いる時は、通常の処理ルーチンを実行する。
Next, the operation will be described. Flash Memory Rewrite Processing Procedure The flash memory rewrite (erase / write) processing procedure will be described with reference to the flowchart in FIG. When the power is turned on, the CPU first proceeds to step S
At A1, an initialization process is executed. As a result, predetermined storage contents of the RAM 14 are cleared. In step SA2, it is determined whether the “zero” key of the operation unit 5 is in the ON state. The result of this determination is "N
When "O", that is, when the "zero" key is in the OFF state, a normal processing routine is executed.

【0043】一方、ステップSA2において、「YE
S」の判断結果が得られた時、すなわち「ゼロ」キーが
ON状態となっている時は、ステップSA3以下のルー
チンが実行され、ステップSA3においてフロッピディ
スクからプログラムファイル名が読み取られる。
On the other hand, in step SA2, "YE
When the determination result of "S" is obtained, that is, when the "zero" key is in the ON state, the routine from step SA3 is executed, and the program file name is read from the floppy disk in step SA3.

【0044】ステップSA4のルーチンにおいては、読
み取られたフロッピディスクのプログラムファイル名か
ら書き換え先はどのROMチップ(メモリブロック)で
あるかが判断される。例えば、ステップSA3におい
て、プログラムファイル名としてDC#2.CONが読
み取られると、CPU12は、「書き換え先のROMチ
ップは番号#2のフラッシュメモリICである」ことを
認識する。
In the routine of step SA4, it is determined from the read program file name of the floppy disk which ROM chip (memory block) is to be rewritten. For example, in step SA3, DC # 2. When the CON is read, the CPU 12 recognizes that "the rewriting destination ROM chip is the flash memory IC of the number # 2".

【0045】次に、ステップSA5において、CPU1
2は、プログラム・データ消去の前処理として、書き換
え先の番号#2のフラッシュメモリIC(メモリブロッ
ク)の全てのバイトに「00H」を書き込む。この処理
は、上記したように、全てのメモリセルの電荷を等しく
し、均一で信頼性のある消去を行うためである。
Next, at step SA5, the CPU 1
No. 2 writes "00H" to all bytes of the flash memory IC (memory block) of the rewrite destination number # 2 as preprocessing of program / data erasure. This processing is for equalizing the charges of all the memory cells and performing uniform and reliable erasing, as described above.

【0046】ステップSA6においては、バイト毎に消
去・ベリファイ処理が実行される。この処理は、消去が
正常に達成されたかを確認するためである。
In step SA6, an erase / verify process is executed for each byte. This processing is for confirming whether the erasing has been normally achieved.

【0047】次に、ステップSA7へ移り、フロッピデ
ィスクに記憶されるプログラム・データを、バイト毎
に、番号#2のフラッシュメモリICに転送して書き込
み、書き込んだ後、ベリファイ処理を実行して書き込み
が正常に達成されたかを確認する(詳細は後述)。
Next, the process proceeds to step SA7, where the program data stored in the floppy disk is transferred byte by byte to the flash memory IC of number # 2, written, written, and then subjected to a verify process to write. Confirm whether the target was successfully achieved (details will be described later).

【0048】CPU12は、ステップSA7の書き込み
・ベリファイ処理が全てのバイトについて終了すると、
ステップSA8へ進み、「書換処理が終了した旨」をド
ットディスプレイ6に表示する。
When the write / verify processing of step SA7 is completed for all bytes, the CPU 12
Proceeding to step SA8, a message that "the rewriting process has been completed" is displayed on the dot display 6.

【0049】ドットディスプレイ6は、この時、「書換
処理が終了した旨」を表示すると共に、通常の処理へ移
行するための操作、例えば、「*」キーを押すことを指
示するガイドメッセージを表示する。
At this time, the dot display 6 displays "the rewriting process is completed" and displays an operation for shifting to a normal process, for example, a guide message instructing to press the "*" key. I do.

【0050】そこで、オペレータが、「*」キーを押下
すると、通常の処理プログラム(上記ステップSA1〜
ステップSA8の処理によって書き換えられた処理プロ
グラム)が実行される。なお、フラッシュメモリの消去
・書き込み処理中は表示部にその旨表示し、またブザー
を鳴らすようになっている。
Then, when the operator presses the "*" key, the normal processing program (steps SA1 to SA1) is executed.
The processing program rewritten by the processing of step SA8) is executed. During the erasing / writing process of the flash memory, the fact is displayed on the display unit and a buzzer sounds.

【0051】書き込み処理手順の詳細 次に、図6のフローチャートを参照して、プログラム・
データの書き込み処理手順(図5のステップSA7のル
ーチン)についてさらに詳述する。CPU12は、図5
のステップSA7のルーチンに移ると、まず、Vpp発生
回路25を「ON」として、フラッシュメモリIC(#
2)のVpp端子(図4)に電圧を印加する(ステップS
B1)。
Details of Write Processing Procedure Next, referring to the flowchart of FIG.
The data write processing procedure (routine of step SA7 in FIG. 5) will be described in further detail. The CPU 12 shown in FIG.
First, the Vpp generation circuit 25 is turned “ON” to set the flash memory IC (#
2) Apply a voltage to the Vpp terminal (FIG. 4) (Step S)
B1).

【0052】次に、書き込みが行われるべきフラッシュ
メモリIC(#2)の先頭アドレス(ステップSB
2)、及び書き込みデータをセットする(ステップSB
3)。ここで、書き込みデータは、いったんフロッピデ
ィスクからRAM14に転送され、RAM14からバイ
ト毎に読み出されてセットされるようになっている。
Next, the head address (step SB) of the flash memory IC (# 2) to be written
2) and set write data (step SB)
3). Here, the write data is temporarily transferred from the floppy disk to the RAM 14, and is read out from the RAM 14 for each byte and set.

【0053】CPU12は、上記セットが終了すると、
ライトコマンドをフラッシュメモリIC(#2)に送出
して(ステップSB4)、次いでプログラム・データの
書き込みを行う(ステップSB5)。
When the above set is completed, the CPU 12
A write command is sent to the flash memory IC (# 2) (step SB4), and then program data is written (step SB5).

【0054】プログラム・データの書き込みが終わる
と、ベリファイコマンドをフラッシュメモリIC(#
2)に送出し(ステップSB6)、次いでプログラム・
データの読み込みを行う(ステップSB7)。
When the writing of the program data is completed, a verify command is issued to the flash memory IC (#
2) (step SB6) and then the program
Data is read (step SB7).

【0055】CPU12は、プログラム・データを読み
込むと、読み込んだプログラム・データが、ステップS
B1において書き込んだプログラム・データと一致して
いるか否かを判断する(ステップSB8)。
When the CPU 12 reads the program data, the read program data is stored in the step S
It is determined whether or not it matches the program data written in B1 (step SB8).

【0056】ステップSB8における判断の結果が「Y
ES」、すなわち両データが一致したときは、書き換え
が全てのアドレスについて終了したかが判断され(ステ
ップSB9)。ステップSB9における判断の結果が
「YES」、すなわち、全てのアドレスについて書き換
えが終了している時は、Vpp発生回路25を「OFF」
として、当該書き込み処理を終了し、上記したステップ
SA8(図5)の「書換処理が終了した旨」を表示する
処理に移行する。
If the result of the determination in step SB8 is "Y
If "ES", that is, both data match, it is determined whether rewriting has been completed for all addresses (step SB9). If the result of determination in step SB9 is "YES", that is, if rewriting has been completed for all addresses, the Vpp generation circuit 25 is turned "OFF".
Then, the writing process is terminated, and the process proceeds to the process of displaying “the rewriting process is completed” in step SA8 (FIG. 5).

【0057】一方、ステップSB9における判断の結果
が「NO」、すなわち、書き換えが終了していないアド
レスが未だ存在する時は、ステップSB2においてセッ
トされたアドレスを更新(ステップSB10)する。こ
の後、該当する書き込みデータをセット(ステップSB
3)して、上述の処理(ステップSB4〜ステップSB
9)を再び繰り返す。
On the other hand, if the result of determination in step SB9 is "NO", that is, if there is still an address for which rewriting has not been completed, the address set in step SB2 is updated (step SB10). Thereafter, the corresponding write data is set (step SB).
3) Then, the above processing (step SB4 to step SB4)
Repeat step 9) again.

【0058】このようにして、ステップSB9における
判断の結果が「YES」になるまで、すなわち、全ての
アドレスについて書き換えが終了するまで、ステップS
B10,ステップSB4〜ステップSB9の処理を繰り
返す。
In this manner, until the result of the determination in step SB9 becomes "YES", that is, until the rewriting is completed for all the addresses, step S9 is executed.
B10, the processing of steps SB4 to SB9 is repeated.

【0059】一方、ステップSB8における判断の結果
が「NO」、すなわち読み込んだプログラム・データと
書き込んだプログラム・データが一致しないたときは、
再度ライトコマンドをフラッシュメモリIC(#1)に
送出(ステップSB4)して、上述の書き込み・ベリフ
ァイ処理(ステップSB5〜ステップSB8)を繰り返
す。
On the other hand, if the result of the determination in step SB8 is "NO", that is, if the read program data and the written program data do not match,
The write command is sent to the flash memory IC (# 1) again (step SB4), and the above-described write / verify processing (step SB5 to step SB8) is repeated.

【0060】このようにして、ステップSB8における
判断の結果が「YES」になるまで、すなわち、読み込
んだプログラム・データと書き込んだプログラム・デー
タが一致するまで、ステップSB4〜ステップSB8の
処理を繰り返す。
In this manner, the processing of steps SB4 to SB8 is repeated until the result of the determination at step SB8 becomes "YES", that is, until the read program data matches the written program data.

【0061】上記構成によれば、ROMチップを交換す
ることなく、また、他の書換装置を使用することもな
く、電子秤装置自体で制御プログラムの変更をすること
ができる。なお、通常ROMに記憶するのは、いわゆる
制御プログラムとこの制御プログラムで用いられる固定
的なデータ、例えば文字パターンデータ、郵便料金秤の
郵便料金データ等であり、これらのデータの変更も同様
に行なうことができる。、要するに、ROMの全ての記
憶内容を変更することができる。
According to the above configuration, the control program can be changed by the electronic weighing device itself without replacing the ROM chip and without using another rewriting device. Note that what is usually stored in the ROM is a so-called control program and fixed data used in the control program, for example, character pattern data, postage data of a postage scale, and the like. be able to. In short, all storage contents of the ROM can be changed.

【0062】また、この例の電子秤装置は、起動処理の
度に、制御プログラムをフロッピディスクからRAMに
アップロードして実行するものではなく、制御プログラ
ムは(不揮発性で、かつCPUの通常のSTORE命令
での書き込みができない)ROMに格納されているた
め、制御プログラムを変更するとき以外はフロッピディ
スク装置を拘束せず、このため、フロッピディスク装置
はROMの書込時以外は、プリセットデータ、作業予約
データ、集計データ等の記憶手段として使用することが
できる。
The electronic weighing apparatus of this example does not execute the control program by uploading it from the floppy disk to the RAM every time the startup process is performed. The control program is non-volatile and has a normal STORE of the CPU. (Writing by command is not possible.) Since it is stored in the ROM, the floppy disk device is not restricted except when the control program is changed. Therefore, the floppy disk device does not store the preset data and work data except when writing the ROM. It can be used as storage means for reservation data, total data and the like.

【0063】なお、上述の実施例においては、一のアド
レスに対して一のメモリをアクセスする場合について述
べたが、この例に限らず、例えば、同一アドレスに複数
のメモリ(バンク)を用意して、バンク切り替えによっ
て、必要なバンクをアクセスして使用するようにしても
良い。また、2つのROMチップを並列に用いて、一方
を16ビットのデータの上位バイト、他方を下位バイト
として用いても良い。
In the above embodiment, the case where one memory is accessed for one address has been described. However, the present invention is not limited to this example. For example, a plurality of memories (banks) are prepared at the same address. Then, a necessary bank may be accessed and used by bank switching. Alternatively, two ROM chips may be used in parallel, one of which may be used as the upper byte of 16-bit data and the other as the lower byte.

【0064】また、上述の実施例においては、1Mビッ
ト(128Kbytes×8)のフラッシュメモリICチップ
を用いて、128Kバイト単位で記憶内容の書き換えを
行うようにした場合について述べたが、これに限らず、
512Kビット以下のメモリICを用いて64Kバイト
単位で記憶内容の書き換えを行うようにしても良い。
Further, in the above-described embodiment, the description has been given of the case where the memory contents are rewritten in units of 128 Kbytes by using a flash memory IC chip of 1 M bits (128 Kbytes × 8). Without
Rewriting of the stored content may be performed in units of 64 Kbytes using a memory IC of 512 Kbits or less.

【0065】また、上述の実施例においては、フラッシ
ュメモリの書き換え処理プログラムは、フラッシュメモ
リのロッカブルブロックに固定的に記憶した場合につい
て述べたが、これに代えて、書き換え処理プログラムの
み別のROMチップに記憶するようにしても良い。
Further, in the above-described embodiment, the case where the rewrite processing program of the flash memory is fixedly stored in a lockable block of the flash memory has been described. You may make it memorize | store in a chip | tip.

【0066】また、上述の実施例においては、フラッシ
ュメモリの書き換え処理プログラム自身は書き換えるこ
とができない例について述べたが、この例に限らず、フ
ラッシュメモリの記憶内容を全て(書き換え処理プログ
ラムを含めて)書き換えるようにしても良い。全ての書
き換えを行う場合には、フラッシュメモリの書き換え処
理プログラムを、まずフラッシュメモリからRAMにロ
ードし、このRAMにロードされた書き換え処理プログ
ラムを実行するようにすれば、当該フラッシュメモリの
記憶内容を全て書き換えることができる。
Further, in the above-described embodiment, an example has been described in which the rewrite processing program for the flash memory itself cannot be rewritten. However, the present invention is not limited to this example, and all the storage contents of the flash memory (including the rewrite processing program ) It may be rewritten. When performing all the rewriting, the rewriting processing program of the flash memory is first loaded from the flash memory into the RAM, and the rewriting processing program loaded into the RAM is executed. All can be rewritten.

【0067】また、上述の実施例においては、図6及び
図7のフローチャートに示す手順に従ってフラッシュメ
モリの書き換え処理を行う場合について述べたが、これ
に限らず、例えば、日立製のフラッシュメモリがそうで
あるように、消去制御回路をICチップ内に構成して、
VPP端子へ電圧を印加して制御信号を供給するだけで消
去を行うようにしても良い。
In the above-described embodiment, the case where the rewriting process of the flash memory is performed according to the procedure shown in the flowcharts of FIGS. 6 and 7 has been described. However, the present invention is not limited to this. The erase control circuit is configured in the IC chip as follows.
Erasing may be performed only by applying a voltage to the VPP terminal and supplying a control signal.

【0068】さらにまた、図7のフローチャートに示す
ように、誤操作の発生を防止するために、予め登録され
ている暗号(コード)を入力した時にのみ(ステップS
C3〜ステップSC4)、ROMチップへの書き換え処
理が実行されるように構成しても良い。
Further, as shown in the flowchart of FIG. 7, in order to prevent an erroneous operation, only when a pre-registered code (code) is input (step S
C3 to step SC4), a configuration may be such that a rewriting process for the ROM chip is executed.

【0069】[0069]

【発明の効果】以上説明したように、この発明は、各々
オンボードでの書き換えが可能な複数のフラッシュメモ
リICチップによってROMを構成し、かつ、ROM
(フラッシュメモリ)に格納された制御プログラムに変
更の必要が生じた場合には、プログラム書き換え用フロ
ッピディスクから新しい制御プログラムあるいはデータ
及び識別コードを読み出す読出手段と、読み出した識別
コードに該当するフラッシュメモリICチップを選択す
る選択手段と、該選択したフラッシュメモリICチップ
の記憶内容を消去する消去手段と、該消去手段によって
記憶内容が消去されたフラッシュメモリICチップに、
新しい制御プログラムあるいはデータを書き込む書込手
とを備えるものなので、ROMチップを交換すること
なく、また他の書換装置を使用することもなく、電子秤
装置自体で制御プログラムの変更をすることができる。
As described above, according to the present invention, a ROM is constituted by a plurality of on-board rewritable flash memory IC chips,
If the control program stored in the (flash memory) needs to be changed, a new control program or data
Reading means for reading the identification code and the identification code;
Select the flash memory IC chip corresponding to the code
Selecting means, and the selected flash memory IC chip
Erasing means for erasing the stored contents of
The flash memory IC chip whose stored contents have been erased,
Writing method for writing new control programs or data
Because they are provided with a stage, without replacing the ROM chips, also possible without the use of other rewriting device, it is possible to change the control program in the electronic scale device itself.

【0070】したがって、ROMチップを交換すること
によって生じる不都合、すなわち、 (1)装置の内部を開け、基板を取り出してから交換し
なければならないという作業の煩雑さ、 (2)交換作業に熟練、知識、時間を要する、 (3)ROM交換時、CPUやROMを破損する虞れ、
及び、 (4)制御プログラムを書き込んだPROMの保管、管
理、運搬の面倒等の不都合を全て解消することができ
る。さらに、この発明によれば、プログラム書き換え用
フロッピディスクには、上記複数個のフラッシュメモリ
ICチップの中から、書き込み先となるフラッシュメモ
リICチップを選択するための識別コードが記憶されて
おり、読出手段は、プログラム書き換え用フロッピディ
スクから、フロッピディスク装置を介して、新しい制御
プログラムあるいはデータ及び識別コードを読み出し、
選択手段は、複数のフラッシュメモリICチップの中か
ら、読み出した識別コードに該当するフラッシュメモリ
ICチップを選択し、消去手段は、該選択したフラッシ
ュメモリICチップの記憶内容を消去し、書込手段は、
該消去手段によって記憶内容が消去されたフラッシュメ
モリICチップに、新しい制御プログラムあるいはデー
タを書き込むので、以下に示す効果が得られる。 (5) 制御プログラムの変更部分が該制御プログラム
全体の一部分である場合には、識別コードに基づいて、
書き換えを要するフラッシュメモリICチップのみを選
択し書き換えることにより、制御プログラム全体を書き
換える場合と比較して、制御プログラムの書き換えを短
時間で完了することが可能となる。 (6) 書き換え作業者は、複数個のフラッシュメモリ
ICチップの中から、どのフラッシュメモリICチップ
を選択するのか意識する必要がなく、また、フラッシュ
メモリICチップを選択するための特別な操作を要求さ
れることもない。 (7) 制御プログラムが記憶されていないフロッピデ
ィスクを、フロッピディスク装置に誤って挿入し、制御
プログラムの書き換え処理を実行しても、このフロッピ
ディスクには、上記識別コードが記憶されていないの
で、書き換え処理が実行されることはなく、これによ
り、誤書き換えが防止される。 (8) 該書き換え作業の途中で書き込みエラーが発生
しても、該書き込みエラーが発生したフラッシュメモリ
ICチップに対してのみ、再度、書き込み処理を行うだ
けでよい。
Therefore, inconveniences caused by replacing the ROM chip are as follows: (1) the complexity of the work of opening the inside of the device, taking out the substrate, and replacing it; Requires knowledge and time. (3) At the time of ROM replacement, CPU or ROM may be damaged.
And (4) all inconveniences such as troublesome storage, management, and transportation of the PROM in which the control program is written can be solved. Further, according to the present invention, the floppy disk for the program rewriting, from among the plurality of flash memory IC chip, the identification code is stored for selecting the flash memory IC chip in which to write, read The means is a floppy disk for program rewriting.
New control from disk via floppy disk drive
Read the program or data and identification code,
The selecting means determines whether a plurality of flash memory IC chips
Flash memory corresponding to the read identification code
The IC chip is selected, and the erasing means selects the selected flash.
Erasing the storage contents of the memory IC chip,
The flash memory whose stored contents have been erased by the erasing means.
A new control program or data is stored in the memory IC chip.
Because writing data, the following effects are obtained. (5) When the changed part of the control program is a part of the entire control program, based on the identification code,
By selecting and rewriting only the flash memory IC chip that requires rewriting, the rewriting of the control program can be completed in a shorter time than in the case where the entire control program is rewritten. (6) The rewriting operator does not need to be conscious of which flash memory IC chip is to be selected from the plurality of flash memory IC chips, and requires a special operation for selecting the flash memory IC chip. It will not be done. (7) Even if a floppy disk in which the control program is not stored is erroneously inserted into the floppy disk device and the rewriting process of the control program is executed, the floppy disk does not store the identification code. No rewriting process is performed, thereby preventing erroneous rewriting. (8) Even if a write error occurs during the rewriting operation, it is only necessary to perform the write process again only on the flash memory IC chip in which the write error has occurred.

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

【図1】この発明の一実施例である電子秤装置の外観構
成を示す斜視図である。
FIG. 1 is a perspective view showing an external configuration of an electronic balance device according to an embodiment of the present invention.

【図2】同電子秤装置の電気的構成を示すブロック図で
ある。
FIG. 2 is a block diagram showing an electrical configuration of the electronic weighing device.

【図3】同実施例におけるメモリマップのエリア構成を
示す概念図である。
FIG. 3 is a conceptual diagram showing an area configuration of a memory map in the embodiment.

【図4】同実施例におけるROM周辺の電気的構成を示
すブロック図である。
FIG. 4 is a block diagram showing an electrical configuration around a ROM in the embodiment.

【図5】同実施例によるフラッシュメモリの書き換え処
理手順を示すフローチャートである。
FIG. 5 is a flowchart showing a flash memory rewrite processing procedure according to the embodiment;

【図6】同フラッシュメモリへの書き込み処理手順を示
すフローチャートである。
FIG. 6 is a flowchart showing a writing procedure to the flash memory.

【図7】同フラッシュメモリへの書き込み処理手順の変
形例を示すフローチャートである。
FIG. 7 is a flowchart showing a modification of the procedure for writing to the flash memory.

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

12 CPU(中央処理装置、書換手段) 13 ROM 11a,11b フロッピディスク(プログラム書き換
え用フロッピディスク) 21a,21b フロッピディスク装置 #1,#2,#3,#4,#5 フラッシュメモリIC
チップ
12 CPU (Central Processing Unit, Rewriting Means) 13 ROM 11a, 11b Floppy Disk (Program Rewriting Floppy Disk) 21a, 21b Floppy Disk Device # 1, # 2, # 3, # 4, # 5 Flash Memory IC
Chips

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 装置各部を制御する中央処理装置と、当
該中央処理装置が実行する制御プログラムやデータを記
憶するROMと、作業データ、実績データ、計量データ
等の各種データをフロッピディスクに記憶するフロッピ
ディスク装置とを有し、小型コンピュータ・システムに
よって動作する電子秤装置において、前記ROMは、各
々オンボードで記憶内容を書き換えることができる複数
のフラッシュメモリICチップからなると共に、 新しく書き込まれるべき制御プログラムあるいはデータ
と、その制御プログラムあるいはデータの書き込み先で
あるフラッシュメモリICチップを前記複数のフラッシ
ュメモリICチップの中から選択するための識別コード
とを、予め記憶するプログラム書き換え用フロッピディ
スクと、 前記プログラム書き換え用フロッピディスクから、前記
フロッピディスク装置を介して、前記新しい制御プログ
ラムあるいはデータ及び識別コードを読み出す読出手段
と、 前記複数のフラッシュメモリICチップの中から、読み
出した識別コードに該当する前記フラッシュメモリIC
チップを選択する選択手段と、 該選択したフラッシュメモリICチップの記憶内容を
去する消去手段と、 該消去手段によって記憶内容が消去されたフラッシュメ
モリICチップに、 前記新しい制御プログラムあるいは
データを書き込む書込手段とを備えてなることを特徴と
する電子秤装置。
1. A central processing unit for controlling each part of the apparatus, a ROM for storing control programs and data executed by the central processing unit, and various data such as work data, performance data, and weighing data are stored on a floppy disk. In an electronic weighing apparatus having a floppy disk device and operated by a small computer system, the ROM is composed of a plurality of flash memory IC chips each of which can rewrite stored contents on-board, and a control to be newly written. A program rewriting floppy disk for storing in advance a program or data and an identification code for selecting a flash memory IC chip to which the control program or data is to be written from among the plurality of flash memory IC chips; program From a floppy disk for recombination can, via the floppy disk device, the new control program or data and reading means for to read out the identification code
And the flash memory IC corresponding to the identification code read from the plurality of flash memory IC chips.
Selecting means for selecting a chip, and erasing the storage contents of the selected flash memory IC chip.
Erasing means for erasing, and a flash memory whose stored contents have been erased by the erasing means.
An electronic weighing device comprising a memory IC chip and a writing means for writing the new control program or data.
【請求項2】 前記読出手段、選択手段、消去手段およ
び書込手段は、少なくとも前記ROMに記憶され、かつ
消去することができないプログラムを備えてなるもので
あることを特徴とする請求項1記載の電子秤装置。
2. The reading means, the selecting means, the erasing means and
2. An electronic weighing apparatus according to claim 1, wherein said writing means comprises at least a program which is stored in said ROM and cannot be erased.
【請求項3】 前記読出手段、選択手段、消去手段およ
び書込手段が備える前記プログラムは、前記制御プログ
ラムあるいはデータが記憶されている前記フラッシュメ
モリICチップに記憶されていることを特徴とする請求
項2記載の電子秤装置。
3. The reading means, the selecting means, the erasing means and
3. The electronic weighing apparatus according to claim 2, wherein the program provided in the writing means is stored in the flash memory IC chip in which the control program or data is stored.
【請求項4】 前記読出手段、選択手段、消去手段およ
び書込手段が備える前記プログラムは、前記制御プログ
ラムあるいはデータが記憶されている前記フラッシュメ
モリICチップとは別のROMチップに記憶されている
ことを特徴とする請求項2記載の電子秤装置。
4. The reading means, selecting means, erasing means and
3. The electronic weighing apparatus according to claim 2, wherein the program provided in the writing means is stored in a ROM chip different from the flash memory IC chip in which the control program or data is stored.
【請求項5】 前記読出手段、選択手段、消去手段およ
び書込手段は、予め決められている暗証番号が入力され
たときにのみ動作することを特徴とする請求項1記載の
電子秤装置。
5. The reading means, the selecting means, the erasing means and
2. The electronic weighing apparatus according to claim 1, wherein the writing means operates only when a predetermined password is input.
JP3286916A 1991-10-31 1991-10-31 Electronic weighing device Expired - Fee Related JP2645194B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3286916A JP2645194B2 (en) 1991-10-31 1991-10-31 Electronic weighing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3286916A JP2645194B2 (en) 1991-10-31 1991-10-31 Electronic weighing device

Publications (2)

Publication Number Publication Date
JPH05126620A JPH05126620A (en) 1993-05-21
JP2645194B2 true JP2645194B2 (en) 1997-08-25

Family

ID=17710638

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3286916A Expired - Fee Related JP2645194B2 (en) 1991-10-31 1991-10-31 Electronic weighing device

Country Status (1)

Country Link
JP (1) JP2645194B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08101794A (en) * 1994-09-30 1996-04-16 Nec Corp Rewriting system for firmware program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60196810A (en) * 1984-03-09 1985-10-05 Mitsubishi Electric Corp Numerical control device
JPH0658255B2 (en) * 1985-05-02 1994-08-03 株式会社石田衡器製作所 Data aggregation system

Also Published As

Publication number Publication date
JPH05126620A (en) 1993-05-21

Similar Documents

Publication Publication Date Title
US6009497A (en) Method and apparatus for updating flash memory resident firmware through a standard disk drive interface
US5781921A (en) Method and apparatus to effect firmware upgrades using a removable memory device under software control
EP0991081B1 (en) Emulated EEPROM memory device and corresponding method
KR100531192B1 (en) Non-volatile memory control method
US5548741A (en) IC memory card system having a host processor selectively operable with an IC memory card including either an SRAM or an EEPROM
US6789158B2 (en) Method of rewriting program in a flash microcomputer
US5542077A (en) Personal computer with CMOS memory not having a separate battery
KR100265266B1 (en) Microcomputer comprsing flash eeprom and method of erasing flash eeprom
JPH05233464A (en) Method for rewriting data in eeprom and eeprom card
JPH117393A (en) Portable information terminal equipment capable of updating program by using pc card and program updating method
US6092190A (en) Electronic apparatus including a memory device and method of reprogramming the memory device
US5724544A (en) IC memory card utilizing dual eeproms for image and management data
JPH08235028A (en) Data management method for flash memory and data processor using the data management method
KR100425229B1 (en) Microcomputer and method for rewriting data on flash memory
US6694460B2 (en) Semiconductor memory device having deterioration determining function
US5657301A (en) Automatic changer system capable of rewriting a control program for controlling the system
JP2645194B2 (en) Electronic weighing device
JP2547379B2 (en) Portable data carrier
US6687783B1 (en) Access apparatus and method for accessing a plurality of storage device having different characteristics
US6223311B1 (en) Semiconductor memory device having deterioration determining function
JP2000243093A (en) Data storing method for flash memory and data reading out method from flash memory
JPH03158184A (en) Sewing machine operated according to control program
JPH0554158B2 (en)
US20050060484A1 (en) Control device
KR20000033437A (en) Apparatus for implementing function of bootstrap loader

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19960130

LAPS Cancellation because of no payment of annual fees