JPH06180664A - Programming device for memory - Google Patents

Programming device for memory

Info

Publication number
JPH06180664A
JPH06180664A JP35304192A JP35304192A JPH06180664A JP H06180664 A JPH06180664 A JP H06180664A JP 35304192 A JP35304192 A JP 35304192A JP 35304192 A JP35304192 A JP 35304192A JP H06180664 A JPH06180664 A JP H06180664A
Authority
JP
Japan
Prior art keywords
address
data
memory
stored
writing
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.)
Granted
Application number
JP35304192A
Other languages
Japanese (ja)
Other versions
JP3480957B2 (en
Inventor
Seiji Yoshida
誠二 吉田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP35304192A priority Critical patent/JP3480957B2/en
Publication of JPH06180664A publication Critical patent/JPH06180664A/en
Application granted granted Critical
Publication of JP3480957B2 publication Critical patent/JP3480957B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To provide the programming device of a memory capable of easily updating the entire area of the memory. CONSTITUTION:In the case of updating a part stored with a nonvolatile memory control processing and a vector table, the part of the nonvolatile memory control processing and the vector table for abnormality restoration is copied to the other part, then updated, and the copied part is returned to source data after updating. The copied vector table for the abnormality restoration and nonvolatile memory control processing are executed when address conversion is performed at a reset time by an address conversion circuit 5 inserted to the address buses 31 and 32 of a CPU 2 at an abnormal time such as power source interruption during data updating or the like.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データ書き換えが可能
なメモリのプログラミング装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data rewritable memory programming device.

【0002】[0002]

【従来の技術】OA機器や電子楽器、ゲーム機などに
は、プログラムや音の波形、文字フォントなどのデータ
を必要に応じて記憶させるためのメモリが用いられてい
る。このメモリには、通常、不揮発性で消去・書き込み
が自在なもの、例えば、機器の組み立て時に、一般的な
データをプログラミングしておき、ユーザーが機器を購
入した時や使用中に機器の用途や使用環境などを変える
時に、必要に応じて別のデータをプログラミングするこ
とにより、機器の汎用性を高めるようにしたものが多
い。
2. Description of the Related Art In OA equipment, electronic musical instruments, game machines and the like, a memory is used for storing data such as programs, sound waveforms and character fonts as needed. This memory is usually non-volatile and erasable / writable, for example, general data is programmed at the time of assembling the device, and when the user purchases or uses the device, In many cases, when changing the usage environment, other data is programmed to improve the versatility of the device.

【0003】[0003]

【発明が解決しようとする課題】ところで、上記の書き
換え可能なメモリに記憶させるデータに、機器やメモリ
の動作あるいはベクタの管理を行うための制御プログラ
ムが含まれている場合、そのメモリの記憶内容を書き換
える際に、消去もしくは書き込み中の不慮の電源断など
が発生すると、それに起因する誤動作によって処理プロ
グラムが破壊されることがある。このような事故を防ぐ
ために、従来、記憶内容の書き換え処理は、制御プログ
ラムなどの重要なデータが格納されている領域以外の記
憶領域に対してのみ行われていた。
If the data to be stored in the rewritable memory includes a control program for managing the operation of the device or the memory or the vector, the contents stored in the memory If the power is accidentally shut off during erasing or writing when rewriting, the processing program may be destroyed due to the malfunction caused by it. In order to prevent such an accident, conventionally, the rewriting process of the stored contents is performed only on the storage area other than the area where important data such as the control program is stored.

【0004】しかしながら、メモリがフラッシュ(一括
消去型)メモリ等のブロック単位で消去、書き込みを行
うものである場合は、記憶内容を効率よく書き換えるた
めに、メモリの所定の領域の記憶内容を一括して消去も
しくは書き換えることが望ましく、そのために、上記書
き換え可能なメモリ(以下、メインメモリ)の他、機器
の電源立ち上げ時や、メモリの記憶内容を更新する時に
起動する制御プログラムなどを格納するための書き換え
不可能なプログラムROMなど(以下、補助メモリ)を
別途備える必要が有り、その分だけ組み立てコストが高
くなっていた。
However, when the memory is a block (e.g., a flash (batch erasing type) memory) that is erased and written in block units, in order to efficiently rewrite the stored contents, the stored contents in a predetermined area of the memory are collectively stored. It is desirable to erase or rewrite the data in order to store the rewritable memory (hereinafter referred to as the main memory) as well as a control program that is activated when the power of the device is turned on or when the stored contents of the memory are updated. It is necessary to separately provide a non-rewritable program ROM (hereinafter, auxiliary memory), and the assembling cost is increased accordingly.

【0005】本発明は、上述した問題点を解決するため
になされたものであり、プログラムROMなどを補助メ
モリとして装備することなく、メインメモリの全領域の
更新が可能なメモリのプログラミング装置を提供するこ
とを目的とする。
The present invention has been made to solve the above problems, and provides a memory programming device capable of updating all areas of a main memory without equipping a program ROM or the like as an auxiliary memory. The purpose is to do.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
めに本発明は、データの書き換えが可能なメモリにおけ
る特定のアドレスを保持するアドレス保持手段と、前記
アドレス保持手段が保持するアドレスを変換するアドレ
ス変換手段と、前記メモリに記憶させるデータを入力す
るデータ入力手段と、この入力手段により入力されたデ
ータを前記メモリに書き込むデータ書き込み手段と、前
記メモリにおける特定のアドレスが該メモリにおける特
定の範囲内に含まれるか否かを判別するアドレス判別手
段と、このアドレス判別手段により、前記アドレス保持
手段が保持するアドレスが前記書き込み手段による書き
込み範囲内に含まれると判別された場合に前記メモリに
おける前記アドレス変換手段によって変換されたアドレ
スが示す箇所のデータを保存するデータ保存手段と、こ
のデータ保存手段により前記アドレス変換手段によって
変換されたアドレスが示す箇所のデータを保存されたメ
モリにおいて、前記アドレス保持手段が保持するアドレ
スが示す箇所のデータを、該メモリにおける前記アドレ
ス変換手段によって変換されたアドレスが示す箇所へ複
写するデータ複写手段と、前記データ書き込み手段によ
りデータが書き込まれたメモリに前記データ保存手段が
保存するデータを復元するデータ復元手段とを備えたメ
モリのプログラミング装置である。
In order to achieve the above object, the present invention converts an address holding unit that holds a specific address in a data rewritable memory and an address held by the address holding unit. Address conversion means, data input means for inputting data to be stored in the memory, data writing means for writing the data input by the input means in the memory, and a specific address in the memory is a specific address in the memory. An address discriminating means for discriminating whether or not it is included in the range, and in the memory when the address discriminating means discriminates that the address held by the address holding means is included in the write range by the writing means The data at the location indicated by the address translated by the address translation means is A data storage unit for storing data, and a memory for storing data at a location indicated by the address converted by the address conversion unit by the data storage unit, stores data at a location indicated by the address held by the address holding unit, Data copying means for copying to a location indicated by the address converted by the address converting means in the memory, and data restoring means for restoring the data saved in the memory by the data writing means in the memory Is a programming device of a memory provided with.

【0007】[0007]

【作用】上記の構成により、データの書き換えが可能な
メモリにおける特定のアドレスをアドレス保持手段によ
って保持しておき、該メモリに記憶させるデータが入力
手段により入力されると、その入力データをデータ書き
込み手段によってメモリに書き込む範囲内に、前記特定
アドレスが含まれるか否かをアドレス判別手段により判
別する。ここで、前記特定アドレスが書き込み手段によ
る書き込み範囲内に含まれると判断された場合は、アド
レス保持手段によって保持していた特定アドレスをアド
レス変換手段により変換し、その変換アドレスが示す箇
所のデータをデータ保存手段に保存し、データ複写手段
によって前記特定アドレスが示す箇所のデータを変換ア
ドレスが示す箇所に複写した後、入力データをデータ書
き込み手段によってメモリに書き込む。一方、アドレス
判別手段により前記特定アドレスが書き込み手段による
書き込み範囲内に含まれないと判断された場合は、その
まま、入力データをデータ書き込み手段によってメモリ
に書き込む。
With the above construction, when a specific address in a data rewritable memory is held by the address holding means and the data to be stored in the memory is inputted by the input means, the input data is written. The address determining means determines whether or not the specific address is included in the range to be written in the memory by the means. Here, when it is determined that the specific address is included in the writing range by the writing unit, the specific address held by the address holding unit is converted by the address converting unit, and the data at the location indicated by the converted address is converted. The data is stored in the data storing means, the data at the location indicated by the specific address is copied at the location indicated by the conversion address by the data copying means, and then the input data is written in the memory by the data writing means. On the other hand, when the address determining unit determines that the specific address is not included in the writing range of the writing unit, the data writing unit writes the input data to the memory as it is.

【0008】入力データの書き込みが終了すれば、入力
データを書き込んだ範囲内に前記変換アドレスが示す箇
所が含まれるか否かをアドレス判別手段により判別す
る。ここで、変換アドレスが示す箇所が含まれなかった
と判断された場合は、前記保存手段に保存されたデータ
を変換アドレスが示す箇所にデータ復元手段により復元
する。含まれたと判断された場合は、そのまま終了す
る。
When the writing of the input data is completed, the address discriminating means discriminates whether or not the portion indicated by the conversion address is included in the range in which the input data is written. If it is determined that the portion indicated by the conversion address is not included, the data stored in the storage unit is restored to the portion indicated by the conversion address by the data restoration unit. If it is determined that the content is included, the process ends.

【0009】[0009]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。図1は本発明の一実施例であるメモ
リのプログラミング装置1の概略構成を示すブロック図
である。この装置1は、BIOS、通常リセット処理プ
ログラム、異常リセット処理プログラム、異常復旧処理
プログラム、明朝体やゴシック体等の文字フォントデー
タなどをフラッシュメモリ3に記憶してプリンタに搭載
されるものである。装置1は、主体となるCPU2と、
メインメモリであるフラッシュメモリ3と、リセット信
号21を出力するリセット回路4と、CPU2から送ら
れるアドレスをリセット信号に同期して変換するアドレ
ス変換回路5と、このアドレス変換回路5の動作を選択
する選択スイッチ6と、補助メモリであるRAM7と、
外部とのデータ入出力を担うI/Oユニット8とから構
成されている。フラッシュメモリ3には、データを64
Kバイト単位で消去、書き込みできるフラッシュEEP
ROMを用いた。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of a memory programming device 1 according to an embodiment of the present invention. The device 1 is installed in a printer by storing a BIOS, a normal reset processing program, an abnormal reset processing program, an abnormal recovery processing program, character font data such as Mincho or Gothic font in a flash memory 3. . The device 1 includes a main CPU 2 and
A flash memory 3 which is a main memory, a reset circuit 4 which outputs a reset signal 21, an address conversion circuit 5 which converts an address sent from the CPU 2 in synchronization with the reset signal, and an operation of the address conversion circuit 5 are selected. A selection switch 6, a RAM 7 as an auxiliary memory,
The I / O unit 8 is responsible for data input / output with the outside. 64 data is stored in the flash memory 3.
Flash EEP that can be erased and written in Kbyte units
ROM was used.

【0010】CPU2とアドレス変換回路5とはアドレ
スバス31によって接続され、アドレス変換回路5は、
アドレスバス32によって、フラッシュメモリ3、RA
M7、I/Oユニット8と接続される。これにより、C
PU2からの出力信号がアドレス変換回路5を介してフ
ラッシュメモリ3、RAM7、I/Oユニット8へ送ら
れる。アドレス変換回路5は、リセット回路4より出力
されるリセット信号21と選択スイッチ6に従ってアド
レス変換を行う。さらに、アドレス変換回路5を介さず
に、CPU2と、フラッシュメモリ3、RAM7、I/
Oユニット8との間で信号を伝送するためにアドレスバ
ス33が設けられている。
The CPU 2 and the address conversion circuit 5 are connected by an address bus 31, and the address conversion circuit 5 is
The address bus 32 enables the flash memory 3 and RA
It is connected to the M7 and I / O unit 8. This gives C
The output signal from the PU 2 is sent to the flash memory 3, the RAM 7, and the I / O unit 8 via the address conversion circuit 5. The address conversion circuit 5 performs address conversion according to the reset signal 21 output from the reset circuit 4 and the selection switch 6. Further, without going through the address conversion circuit 5, the CPU 2, the flash memory 3, the RAM 7, the I / O
An address bus 33 is provided for transmitting signals to and from the O unit 8.

【0011】図2は、上記アドレス変換回路5の構成を
示すブロック図である。なお、例としてリセット時にC
PU2から出力されるアドレスを000000[H]と
し、アドレス変換回路5によって変換されるアドレスを
010000[H]とする。アドレス変換回路5は、リ
セット信号21と同期をとるためのラッチ11、変換後
のアドレス値を生成するための変換データ生成回路1
2、ANDゲート13、アドレス一致検出回路19など
から構成されている。リセット時に選択スイッチ6が押
下されていない場合は、ラッチ11がクリアされ、その
出力22はLowとなり、変換データ生成回路12から
の出力34(010000[H])がマスクされ、AN
Dゲート13の出力35がLowになる。従って、CP
U2から出力され、アドレスバス31上を伝送されるア
ドレス(000000[H])が、そのままアドレスバ
ス32へと出力される。
FIG. 2 is a block diagram showing the configuration of the address conversion circuit 5. As an example, C at reset
The address output from PU2 is set to 000000 [H], and the address converted by the address conversion circuit 5 is set to 010000 [H]. The address conversion circuit 5 includes a latch 11 for synchronizing with the reset signal 21, and a conversion data generation circuit 1 for generating a converted address value.
2, an AND gate 13, an address match detection circuit 19 and the like. If the selection switch 6 is not pressed at the time of reset, the latch 11 is cleared, its output 22 becomes Low, the output 34 (010000 [H]) from the conversion data generation circuit 12 is masked, and AN
The output 35 of the D gate 13 becomes Low. Therefore, CP
The address (000000 [H]) output from U2 and transmitted on the address bus 31 is output to the address bus 32 as it is.

【0012】一方、リセット時に選択スイッチ6が押下
されていた場合は、ラッチ11がセットされ、その出力
22はHighとなり、変換データ生成回路12の出力
34がANDゲート13の出力35となる。従って、C
PU2から出力されてアドレスバス31上を伝送される
アドレス信号が010000[H]へと変換され、アド
レスバス32へと出力される。このアドレス変換は、ア
ドレスバス32の出力が、ある値(本実施例では010
080[H])の時に、アドレス一致検出回路19が出
力する一致信号(Lowアクティブ)によってラッチ3
2がクリアされるまで続けられる。そして、リセット時
に、CPU2のプログラムカウンタが010080
[H]にセットされ、リセット直後にCPU2が010
080[H]をフェッチした時点で上記アドレス変換が
解除されるようにした。
On the other hand, when the selection switch 6 is pressed at the time of reset, the latch 11 is set, its output 22 becomes High, and the output 34 of the conversion data generating circuit 12 becomes the output 35 of the AND gate 13. Therefore, C
The address signal output from the PU 2 and transmitted on the address bus 31 is converted into 010000 [H] and output to the address bus 32. In this address conversion, the output of the address bus 32 has a certain value (010 in the present embodiment).
080 [H]), latch 3 is generated by the match signal (Low active) output from the address match detection circuit 19.
Continue until 2 is cleared. Then, at the time of reset, the program counter of the CPU 2 is 010080.
It is set to [H], and immediately after reset, the CPU 2
The address conversion is canceled when 080 [H] is fetched.

【0013】図3は、前記フラッシュメモリ3のメモリ
マップを示す図である。000000[H]番地40に
は、通常リセット時の実行開始番地000800[H]
が格納されている。また、000080[H]番地41
には、異常リセット時の実行開始番地010080
[H]が格納されており、000100[H]番地42
には、異常時にメモリ内部を復旧するための異常復旧処
理プログラムとBIOS(以下、この2つを合わせてB
IOS1という)が、リロケータブルな形で格納されて
いる。この000080[H]番地と000100
[H]番地の内容が、ある特定の場合に010000
[H]番地、010080[H]番地へそれぞれ複写さ
れる(以下、複写されたBIOS1をBIOS2と呼
ぶ)。
FIG. 3 is a diagram showing a memory map of the flash memory 3. In the 000000 [H] address 40, the execution start address at the time of normal reset is 000800 [H]
Is stored. Also, address 000080 [H] 41
Indicates the execution start address 010080 when the error is reset.
[H] is stored, and address 000100 [H] 42
Includes an error recovery processing program for recovering the inside of the memory in the event of an error, and a BIOS (hereinafter, these two are combined to create a B
IOS1) is stored in a relocatable form. This address 000080 [H] and 000100
The content of the address [H] is 010000 in a specific case.
It is copied to the address [H] and the address 010080 [H] (hereinafter, the copied BIOS1 is referred to as BIOS2).

【0014】上記の構成による装置1の動作を図4及び
図5に示すフローチャートを参照して説明する。新たに
フラッシュメモリ3に記憶させるデータ(以下、新デー
タ)を入力する(S1)。データの入力が完了すれば、
入力されたデータの先頭ブロックにフラッシュメモリ3
上のアドレスポインタをセットする(S2)。
The operation of the device 1 having the above structure will be described with reference to the flow charts shown in FIGS. Data (hereinafter, new data) to be newly stored in the flash memory 3 is input (S1). Once you have entered the data,
Flash memory 3 in the first block of the input data
The upper address pointer is set (S2).

【0015】次に、前記アドレスポインタが示すブロッ
クにBIOS1が含まれるか否かを判断する(S3)。
BIOS1が含まれないと判断された場合は(S3にて
No)、BIOS1を用いてアドレスポインタの示すブ
ロックに新データをプログラミングする(S4)。一
方、アドレスポインタの示すブロックにBIOS1が含
まれると判断された場合は(S3にてYes)、BIO
S2が有効か否かを判断する(S5)。有効であると判
断された場合は(S5にてYes)、そのままBIOS
2を用いてアドレスポインタの示すブロックに新データ
をプログラミングする。(S9)
Next, it is determined whether the block indicated by the address pointer includes the BIOS 1 (S3).
If it is determined that the BIOS 1 is not included (No in S3), new data is programmed in the block indicated by the address pointer using the BIOS 1 (S4). On the other hand, when it is determined that the block indicated by the address pointer includes the BIOS 1 (Yes in S3), the BIOS
It is determined whether S2 is valid (S5). If it is determined to be valid (Yes in S5), the BIOS remains unchanged.
2 is used to program new data in the block indicated by the address pointer. (S9)

【0016】また、無効であると判断された場合は(S
5にてNo)、010000[H]から01FFFF
[H]の内容をRAM7に退避させた後(S6)、BI
OS1を010000[H]から複写し(S7)、この
複写が正常終了したか否かを判断する(S8)。ここ
で、複写が異常であると判断された場合は(S8にてN
o)、エラー表示を行った後(S14)、プログラム処
理を終了する。また、正常であると判断された場合は
(S8にてYes)、BIOS2を用いてアドレスポイ
ンタの示すブロックに新データをプログラミングする
(S9)。
If it is determined that the data is invalid (S
5 No), 010000 [H] to 01FFFF
After saving the contents of [H] in RAM 7 (S6), BI
The OS1 is copied from 010000 [H] (S7), and it is determined whether or not the copying is normally completed (S8). If it is determined that the copying is abnormal (N in S8,
o) After displaying an error (S14), the program processing ends. If it is determined to be normal (Yes in S8), new data is programmed in the block indicated by the address pointer using the BIOS 2 (S9).

【0017】ブロックのプログラミングが終了したら、
入力された全データのプログラミングが終了したか否か
を判断する(S10)。終了していない場合は(S10
にてNo)、アドレスポインタを次のブロックの先頭に
セットし、S3乃至S10の処理を繰り返す。全データ
のプログラミングが終了した場合(S10にてYe
s)、新データをプログラミングした領域にBIOS2
が含まれるか否かを判断する(S12)。含まれる場合
は(S12にてYes)、そのままプログラミング処理
を終了し、含まれない場合は(S12にてNo)、S6
にてRAM7に退避させていたデータを010000
[H]番地に復元し(S13)、プログラム処理を終了
する。
After programming the block,
It is determined whether programming of all input data has been completed (S10). If not finished (S10
No), the address pointer is set to the head of the next block, and the processes of S3 to S10 are repeated. When programming of all data is completed (Yes in S10
s), BIOS2 in the area programmed with new data
It is determined whether or not is included (S12). If it is included (Yes in S12), the programming process is terminated as it is, and if it is not included (No in S12), S6.
The data saved in RAM 7 at 010,000
The program is restored to the address [H] (S13), and the program processing ends.

【0018】以上、本発明の一実施例を説明したが、こ
れに限られるものではなく、様々な変形が可能である。
例えば、図1に示した装置1において、必要に応じてC
PUやRAMを追加したり、フラッシュメモリ3をEE
PROMではなく他のメモリに置き換えた構成であって
もよく、さらには、装置の用途や使用環境に応じて他の
部品を備えてもよい。また、上記実施例ではアドレスバ
ス32から出力される変換後のアドレスを固定値とした
が、外部の回路によって可変値を設定し、そのアドレス
に従って、プログラミング処理するように構成してもよ
い。なお、装置としてはプリンタに搭載されるものを例
示したが、本発明はワードプロセッサやゲーム機、電子
楽器など、消去・書き込み可能なメモリを用いる機器に
広く適用でき、対象とするデータについても、装置の種
類や目的に応じてそれぞれの優先度を考慮し、上記BI
OS1やBIOS2と同様に扱えばよい。さらには、上
記ではリセット時に動作する例を示したが、本発明は、
リセット時のみならず、メモリの内容を書き換える際
に、常に効果的に適用できるものである。
Although one embodiment of the present invention has been described above, the present invention is not limited to this, and various modifications can be made.
For example, in the device 1 shown in FIG.
PU and RAM are added, and flash memory 3 is EE
The PROM may be replaced with another memory instead of the PROM, and further, other parts may be provided depending on the application and use environment of the apparatus. Further, although the converted address output from the address bus 32 is a fixed value in the above embodiment, a variable value may be set by an external circuit and programming processing may be performed according to the address. Although the device mounted on the printer has been exemplified as the device, the present invention can be widely applied to devices using an erasable / writable memory such as a word processor, a game machine, and an electronic musical instrument, and the target data can also be used in the device. Considering each priority according to the type and purpose of
It may be handled in the same manner as OS1 and BIOS2. Furthermore, although an example of operating at reset has been shown above, the present invention
It can be applied effectively not only at reset but also when rewriting the contents of the memory.

【0019】[0019]

【発明の効果】以上、説明したことから明かなように、
本発明のメモリのプログラミング装置によれば、メモリ
に記憶された重要なデータを必ず該メモリに常駐させつ
つ、全領域の書き換えが可能となる。従って、例えば、
異常時の復旧プログラムやこのプログラムを実行させる
ためのベクタテーブルなどをメモリに常駐させれば、動
作中の不慮の電源断等によってデータが破壊された場合
でも復旧処理が容易に実行できる。しかも、プログラム
ROMなどを別途装備する必要がないので、装置の組み
立てコストが低減でき、メンテナンス作業も容易にな
る。
As is apparent from the above description,
According to the memory programming device of the present invention, it is possible to rewrite the entire area while always making the important data stored in the memory resident in the memory. So, for example,
If a recovery program at the time of abnormality and a vector table for executing this program are made resident in the memory, the recovery process can be easily executed even if the data is destroyed due to an unexpected power failure during operation. Moreover, since it is not necessary to separately equip a program ROM or the like, the assembly cost of the device can be reduced and the maintenance work can be facilitated.

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

【図1】本発明の一実施例によるメモリのプログラミン
グ装置の概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a memory programming device according to an embodiment of the present invention.

【図2】同メモリのプログラミング装置におけるアドレ
ス変換回路5の構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an address conversion circuit 5 in the programming device for the memory.

【図3】同メモリのプログラミング装置におけるフラッ
シュメモリのメモリマップを示す図である。
FIG. 3 is a diagram showing a memory map of a flash memory in the programming device for the memory.

【図4】同メモリのプログラミング装置の動作を示すフ
ローチャートである。
FIG. 4 is a flowchart showing an operation of the programming device for the memory.

【図5】同メモリのプログラミング装置の動作を示すフ
ローチャートである。
FIG. 5 is a flowchart showing an operation of the programming device of the memory.

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

1 メモリのプログラミング装置 2 CPU(アドレス判別手段、データ書き込み手段、
データ複写手段、データ復元手段) 3 フラッシュメモリ 5 アドレス変換回路(アドレス変換手段) 7 RAM(データ保存手段) 8 I/Oユニット(データ入力手段) 31,32 アドレスバス(アドレス保持手段)
1 memory programming device 2 CPU (address discrimination means, data writing means,
Data copying means, data restoring means) 3 flash memory 5 address conversion circuit (address conversion means) 7 RAM (data storage means) 8 I / O unit (data input means) 31, 32 address bus (address holding means)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データの書き換えが可能なメモリにおけ
る特定のアドレスを保持するアドレス保持手段と、 前記アドレス保持手段が保持するアドレスを変換するア
ドレス変換手段と、 前記メモリに記憶させるデータを入力するデータ入力手
段と、 この入力手段により入力されたデータを前記メモリに書
き込むデータ書き込み手段と、 前記メモリにおける特定のアドレスが該メモリにおける
特定の範囲内に含まれるか否かを判別するアドレス判別
手段と、 このアドレス判別手段により、前記アドレス保持手段が
保持するアドレスが前記書き込み手段による書き込み範
囲内に含まれると判別された場合に前記メモリにおける
前記アドレス変換手段によって変換されたアドレスが示
す箇所のデータを保存するデータ保存手段と、 このデータ保存手段により前記アドレス変換手段によっ
て変換されたアドレスが示す箇所のデータを保存された
メモリにおいて、前記アドレス保持手段が保持するアド
レスが示す箇所のデータを、該メモリにおける前記アド
レス変換手段によって変換されたアドレスが示す箇所へ
複写するデータ複写手段と、 前記データ書き込み手段によりデータが書き込まれたメ
モリに前記データ保存手段が保存するデータを復元する
データ復元手段とを備えたことを特徴とするメモリのプ
ログラミング装置。
1. An address holding unit for holding a specific address in a rewritable memory, an address conversion unit for converting an address held by the address holding unit, and data for inputting data to be stored in the memory. Input means, data writing means for writing the data input by the input means to the memory, and address determining means for determining whether or not a specific address in the memory is included in a specific range in the memory, When the address discriminating unit discriminates that the address held by the address holding unit is included in the writing range by the writing unit, the data of the portion indicated by the address converted by the address converting unit in the memory is stored. Data storage means and this data storage In the memory in which the data of the location indicated by the address converted by the address translation means by the stage is stored, the data of the location indicated by the address held by the address holding means is converted into the address converted by the address translation means in the memory. A data programming means for copying to a location indicated by and a data restoring means for restoring the data stored by the data storing means in the memory in which the data is written by the data writing means. .
JP35304192A 1992-12-11 1992-12-11 Memory programming equipment Expired - Lifetime JP3480957B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35304192A JP3480957B2 (en) 1992-12-11 1992-12-11 Memory programming equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35304192A JP3480957B2 (en) 1992-12-11 1992-12-11 Memory programming equipment

Publications (2)

Publication Number Publication Date
JPH06180664A true JPH06180664A (en) 1994-06-28
JP3480957B2 JP3480957B2 (en) 2003-12-22

Family

ID=18428172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35304192A Expired - Lifetime JP3480957B2 (en) 1992-12-11 1992-12-11 Memory programming equipment

Country Status (1)

Country Link
JP (1) JP3480957B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5881295A (en) * 1995-02-07 1999-03-09 Hitachi, Ltd. Data processor which controls interrupts during programming and erasing of on-chip erasable and programmable non-volatile program memory
US6738894B1 (en) 1995-02-07 2004-05-18 Hitachi, Ltd. Data processor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5881295A (en) * 1995-02-07 1999-03-09 Hitachi, Ltd. Data processor which controls interrupts during programming and erasing of on-chip erasable and programmable non-volatile program memory
US6141700A (en) * 1995-02-07 2000-10-31 Hitachi, Ltd. Data processor which accesses a second memory while responding to an interrupt request during programming and erasing mode of first erasable and programmable non-volatile memory
US6738894B1 (en) 1995-02-07 2004-05-18 Hitachi, Ltd. Data processor
KR100444537B1 (en) * 1995-02-07 2004-11-12 가부시끼가이샤 히다치 세이사꾸쇼 Data processor
US7111150B2 (en) 1995-02-07 2006-09-19 Renesas Technology Corp. Data processor

Also Published As

Publication number Publication date
JP3480957B2 (en) 2003-12-22

Similar Documents

Publication Publication Date Title
JP4668416B2 (en) Protecting boot block code when enabling write access to the boot block
US6079016A (en) Computer with multi booting function
US7493484B2 (en) Method and apparatus for executing the boot code of embedded systems
JPH03141447A (en) Method and apparatus for updating farm ware residing in electrically reloadable programmable read-only memory
KR100265266B1 (en) Microcomputer comprsing flash eeprom and method of erasing flash eeprom
KR100381416B1 (en) Computer system and method for saving of product key of the same
US6925522B2 (en) Device and method capable of changing codes of micro-controller
JP3480957B2 (en) Memory programming equipment
JPH1011277A (en) Computer device with electrically rewritable nonvolatile memory and nonvolatile semiconductor memory
JPS5928300A (en) Semiconductor device
JPH06180993A (en) Programming device for memory
JPH04276838A (en) Cpu with built-in memory
KR100392453B1 (en) computer and controling method thereof
EP0473410A2 (en) Central processing unit
JPH0612245A (en) Personal computer
JPS6252334B2 (en)
JPH06187140A (en) Processor
JP2000029508A (en) Programmable controller
JP2002163243A (en) Micro-computer
JP2928216B1 (en) Semiconductor integrated circuit
JPH0537314Y2 (en)
JPH04304532A (en) Computer provided with debugging function for rom program
JPH0535499A (en) Data processing device and method
JPH07334353A (en) Microcomputer system
JP2002229853A (en) Memory control circuit

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071010

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081010

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091010

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091010

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101010

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101010

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121010

Year of fee payment: 9