JP2000200213A - Microcomputer, data rewriting system and data rewriting method - Google Patents
Microcomputer, data rewriting system and data rewriting methodInfo
- Publication number
- JP2000200213A JP2000200213A JP11001438A JP143899A JP2000200213A JP 2000200213 A JP2000200213 A JP 2000200213A JP 11001438 A JP11001438 A JP 11001438A JP 143899 A JP143899 A JP 143899A JP 2000200213 A JP2000200213 A JP 2000200213A
- Authority
- JP
- Japan
- Prior art keywords
- flash memory
- identification code
- device identification
- data
- microcomputer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Microcomputers (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】この発明は、外部に接続され
たフラッシュメモリに対するデータの書換処理を実行す
るマイクロコンピュータ、データ書換システム及びデー
タ書換方法に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer, a data rewriting system, and a data rewriting method for executing a data rewriting process on an externally connected flash memory.
【0002】[0002]
【従来の技術】従来のマイクロコンピュータ(以下、マ
イコンという)では、外部にフラッシュメモリを接続す
る場合、そのフラッシュメモリを実装基板(以下、ボー
ドという)に実装する前であれば、そのフラッシュメモ
リに対するデータの書換処理は、専用の書換ライタ等を
用いることにより、フラッシュ単体で実行することがで
きる(マイコンを介さずに直接データをフラッシュメモ
リに書き込むことができる)。2. Description of the Related Art In a conventional microcomputer (hereinafter, referred to as a microcomputer), when a flash memory is connected to an external device, the flash memory is not mounted before mounting the flash memory on a mounting board (hereinafter, referred to as a board). The data rewriting process can be executed by the flash alone by using a dedicated rewriting writer or the like (data can be written directly to the flash memory without using a microcomputer).
【0003】しかし、フラッシュメモリをボードに実装
した後は、マイコンとフラッシュメモリがボード上で結
線されるため、マイコンを介さなければ、フラッシュメ
モリに対するデータの書込処理を実行することができな
いのが一般的である。However, after the flash memory is mounted on the board, the microcomputer and the flash memory are connected on the board, so that data cannot be written to the flash memory without going through the microcomputer. General.
【0004】また、ボード設計者がボードを設計する
際、マイコンに接続されるフラッシュメモリのメーカや
容量などを自由に選択できるため、マイコンを介してフ
ラッシュメモリのデータを書き換える場合、マイコンに
接続されるフラッシュメモリの仕様を確認した上で、そ
のフラッシュメモリに対応する書込ルーチン(書込プロ
グラム)を外部からマイコンに与える必要がある。或い
は、複数種類のフラッシュメモリに対応する書込ルーチ
ンをマイコンがサポートしている場合には、マイコンに
接続されるフラッシュメモリに対応する書込ルーチンが
マイコンで実行されるように、マイコンに対してコマン
ド等を与える必要がある。Further, when designing a board, a board designer can freely select a maker and a capacity of the flash memory connected to the microcomputer. After checking the specifications of the flash memory to be used, it is necessary to externally provide a microcomputer with a write routine (write program) corresponding to the flash memory. Alternatively, if the microcomputer supports a write routine corresponding to a plurality of types of flash memories, the microcomputer is required to execute the write routine corresponding to the flash memory connected to the microcomputer. It is necessary to give a command etc.
【0005】そのため、オンボードでフラッシュメモリ
のデータを書き換える機器においては、複数種類のフラ
ッシュメモリが実装されている場合、データの書換処理
を実行するフラッシュメモリを確認する必要があり、フ
ラッシュメモリのデータの書換作業が非常に煩雑になっ
ていた。Therefore, in a device that rewrites data in a flash memory on-board, when a plurality of types of flash memories are mounted, it is necessary to confirm the flash memory that executes the data rewriting process. Rewriting work became very complicated.
【0006】これに対して、フラッシュメモリを内蔵す
るマイコンでは、書き換え作業が非常に簡単であり、書
換コマンドを実行するだけで、フラッシュメモリのデー
タを書き換えることができる。そのため、ユーザはマイ
コンに対するフラッシュメモリの内蔵化を要求する場合
が多いが、マイコンに内蔵できるフラッシュメモリの容
量には限界があり、マイコンに内蔵できないフラッシュ
メモリの容量になると、マイコン利用者は煩雑な作業を
実施して、外付けフラッシュメモリのデータを書き換え
る必要がある。On the other hand, in a microcomputer having a built-in flash memory, the rewriting operation is very simple, and data in the flash memory can be rewritten only by executing a rewrite command. For this reason, users often demand that the flash memory be built into the microcomputer. However, the capacity of the flash memory that can be built into the microcomputer is limited. It is necessary to carry out the work to rewrite the data in the external flash memory.
【0007】[0007]
【発明が解決しようとする課題】従来のマイクロコンピ
ュータは以上のように構成されているので、外部からフ
ラッシュメモリに対応する書込ルーチンを与えれば、フ
ラッシュメモリに対するデータの書換処理を実行するこ
とができるが、フラッシュメモリに対応する書込ルーチ
ンを与えるためには、ユーザがフラッシュメモリの仕様
を確認する等の面倒な作業を実施しなければならない課
題があった。Since the conventional microcomputer is configured as described above, if a write routine corresponding to the flash memory is provided from the outside, it is possible to execute the data rewriting process for the flash memory. However, in order to provide a write routine corresponding to the flash memory, there has been a problem that the user has to perform a troublesome operation such as checking the specifications of the flash memory.
【0008】この発明は上記のような課題を解決するた
めになされたもので、外付けのフラッシュメモリのデー
タを書き換える場合でも、簡単にデータを書き換えるこ
とができるマイクロコンピュータ、データ書換システム
及びデータ書換方法を得ることを目的とする。SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems. A microcomputer, a data rewriting system, and a data rewriting system capable of easily rewriting data even when rewriting data in an external flash memory. The aim is to get the method.
【0009】[0009]
【課題を解決するための手段】この発明に係るマイクロ
コンピュータは、フラッシュメモリのデバイス識別コー
ドを解析して、フラッシュメモリに対応する書込ルーチ
ンを取得するルーチン取得手段と、その書込ルーチンを
実行して、フラッシュメモリに対するデータの書換処理
を実行するデータ書換手段とを設けたものである。A microcomputer according to the present invention analyzes a device identification code of a flash memory and obtains a write routine corresponding to the flash memory, and executes the write routine. And a data rewriting means for executing a data rewriting process for the flash memory.
【0010】この発明に係るマイクロコンピュータは、
識別コード読込手段をソフトウエアで構成するようにし
たものである。[0010] The microcomputer according to the present invention comprises:
The identification code reading means is constituted by software.
【0011】この発明に係るマイクロコンピュータは、
フラッシュメモリから出力されたデバイス識別コードを
格納するメモリを設けたものである。[0011] The microcomputer according to the present invention comprises:
A memory for storing a device identification code output from the flash memory is provided.
【0012】この発明に係るマイクロコンピュータは、
フラッシュメモリから出力されたデバイス識別コードの
読込処理の正否を示す情報を格納するメモリを設けたも
のである。[0012] The microcomputer according to the present invention comprises:
A memory for storing information indicating whether the reading process of the device identification code output from the flash memory is correct or not is provided.
【0013】この発明に係るマイクロコンピュータは、
メモリに格納されたデバイス識別コードを外部出力する
出力手段を設けたものである。[0013] The microcomputer according to the present invention comprises:
An output unit for externally outputting the device identification code stored in the memory is provided.
【0014】この発明に係るデータ書換システムは、デ
ータの書換コマンドをマイクロコンピュータに発行する
コマンド発行手段を設けたものである。The data rewriting system according to the present invention is provided with command issuing means for issuing a data rewriting command to the microcomputer.
【0015】この発明に係るデータ書換方法は、フラッ
シュメモリのデバイス識別コードを解析して、フラッシ
ュメモリに対応する書込ルーチンを取得するとともに、
その書込ルーチンを実行して、フラッシュメモリに対す
るデータの書換処理を実行するようにしたものである。According to the data rewriting method of the present invention, a device identification code of a flash memory is analyzed to obtain a write routine corresponding to the flash memory.
By executing the write routine, data is rewritten to the flash memory.
【0016】[0016]
【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1. 図1はこの発明の実施の形態1による
マイクロコンピュータを示す構成図であり、図におい
て、1はマイクロコンピュータ(以下、マイコンとい
う)、2はマイコン1と接続された外付けのフラッシュ
メモリ、3はパソコンや書換ライタ等から書換コマンド
等を受信するUART、4は複数種類の書込ルーチン等
を格納するROM、5はRAMである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is a block diagram showing a microcomputer according to a first embodiment of the present invention. In the figure, reference numeral 1 denotes a microcomputer (hereinafter referred to as a microcomputer), 2 denotes an external flash memory connected to the microcomputer 1, and 3 denotes a microcomputer. A UART 4 for receiving a rewrite command or the like from a personal computer, a rewrite writer, or the like, 4 is a ROM for storing a plurality of types of write routines, and 5 is a RAM.
【0017】6はUART3がデータの書換コマンドを
受けると、イネーブル信号をデバイス識別コード読込回
路7に出力する一方、デバイス識別コード読込回路7が
デバイス識別コードを読み出すと、そのデバイス識別コ
ードを解析して、フラッシュメモリ2に対応する書込ル
ーチンをROM4から取得するとともに、その書込ルー
チンを実行して、フラッシュメモリ2に対するデータの
書換処理を実行するCPU(識別コード読込手段、ルー
チン取得手段、データ書換手段)、7はCPU6からイ
ネーブル信号を受けると、デバイス識別コードの出力を
要求する制御信号をフラッシュメモリ2に出力して、フ
ラッシュメモリ2からデバイス識別コードを読み出すデ
バイス識別コード読込回路(識別コード読込手段)であ
る。なお、図3はこの発明の実施の形態1によるデータ
書換方法を示すフローチャートである。When the UART 3 receives the data rewrite command, it outputs an enable signal to the device identification code reading circuit 7, and when the device identification code reading circuit 7 reads the device identification code, it analyzes the device identification code. A CPU (identification code reading means, routine acquisition means, data acquisition means) for executing a write routine corresponding to the flash memory 2 from the ROM 4 and executing the write routine to rewrite data to the flash memory 2. Upon receiving the enable signal from the CPU 6, the rewriting means 7 outputs a control signal requesting the output of the device identification code to the flash memory 2, and reads a device identification code from the flash memory 2. Reading means). FIG. 3 is a flowchart showing a data rewriting method according to the first embodiment of the present invention.
【0018】次に動作について説明する。例えば、パソ
コンがフラッシュメモリ2に格納されているデータを書
き換えるため、図2に示すように、書換アドレス(例え
ば、“30000H”)と書換データ(例えば、“55
H”)が付加された書換コマンド(例えば、“41
H”)を発行すると、UART3が書換アドレスと書換
データが付加された書換コマンドを受信する(ステップ
ST1)。Next, the operation will be described. For example, in order for the personal computer to rewrite the data stored in the flash memory 2, as shown in FIG. 2, the rewriting address (for example, "30000H") and the rewriting data (for example, "55
H ”) (for example,“ 41 ”).
H ”), the UART 3 receives a rewrite command to which a rewrite address and rewrite data are added (step ST1).
【0019】CPU6は、UART3がコマンドを受信
すると、そのコマンドが書換コマンドであるか否かを解
読し(ステップST2)、書換コマンドである場合に
は、フラッシュメモリ2を識別するデバイス識別コード
を取得するため、イネーブル信号をデバイス識別コード
読込回路7に出力する。When the UART 3 receives the command, the CPU 6 decodes whether or not the command is a rewrite command (step ST2). If the command is a rewrite command, the CPU 6 obtains a device identification code for identifying the flash memory 2. In order to perform this, an enable signal is output to the device identification code reading circuit 7.
【0020】そして、デバイス識別コード読込回路7
は、CPU6からイネーブル信号を受けると、デバイス
識別コードの出力を要求する制御信号をフラッシュメモ
リ2に出力して、フラッシュメモリ2からデバイス識別
コードを読み出す処理を実行する(ステップST4)。The device identification code reading circuit 7
Receives the enable signal from the CPU 6, outputs a control signal requesting the output of the device identification code to the flash memory 2, and executes a process of reading the device identification code from the flash memory 2 (step ST4).
【0021】CPU6は、デバイス識別コード読込回路
7がデバイス識別コードを読み込むと、そのデバイス識
別コードを解析して、フラッシュメモリ2に対応する書
込ルーチンをROM4から取得する(ステップST5〜
ST9)。即ち、ROM4には、各種のデバイス識別コ
ードに対応する書込ルーチンが格納されているので、デ
バイス識別コード読込回路7により読み込まれたデバイ
ス識別コードをキーにして、フラッシュメモリ2に対応
する書込ルーチンを取得する。When the device identification code reading circuit 7 reads the device identification code, the CPU 6 analyzes the device identification code and acquires a writing routine corresponding to the flash memory 2 from the ROM 4 (steps ST5 to ST5).
ST9). That is, since the ROM 4 stores write routines corresponding to various device identification codes, the device identification code read by the device identification code reading circuit 7 is used as a key to write data corresponding to the flash memory 2. Get the routine.
【0022】そして、CPU6は、フラッシュメモリ2
に対応する書込ルーチンを取得すると、その書込ルーチ
ンを実行して、フラッシュメモリ2に対するデータの書
換処理を実行する。即ち、書換コマンドに付加された書
換アドレスに書換データを書き込む処理を実行する。Then, the CPU 6 controls the flash memory 2
When the write routine corresponding to is obtained, the write routine is executed, and the data rewriting process for the flash memory 2 is executed. That is, a process of writing rewrite data to the rewrite address added to the rewrite command is executed.
【0023】以上で明らかなように、この実施の形態1
によれば、フラッシュメモリ2のデバイス識別コードを
解析して、フラッシュメモリ2に対応する書込ルーチン
を取得するとともに、その書込ルーチンを実行して、フ
ラッシュメモリ2に対するデータの書換処理を実行する
ように構成したので、内蔵するフラッシュメモリと同様
に書換コマンドを発行するだけでフラッシュメモリ2の
データを書き換えることができるようになり、その結
果、外付けのフラッシュメモリ2のデータを書き換える
場合でも、簡単にデータを書き換えることができる効果
を奏する。As is apparent from the above, the first embodiment
According to the method, the device identification code of the flash memory 2 is analyzed to obtain a write routine corresponding to the flash memory 2, and the write routine is executed to execute a data rewrite process on the flash memory 2. With this configuration, the data in the flash memory 2 can be rewritten only by issuing a rewrite command in the same manner as in the built-in flash memory. As a result, even when the data in the external flash memory 2 is rewritten, This has an effect that data can be easily rewritten.
【0024】実施の形態2.上記実施の形態1では、フ
ラッシュメモリ2のデバイス識別コードを専用のハード
ウエア、即ち、デバイス識別コード読込回路7を設けて
読み込むものについて示したが、そのデバイス識別コー
ドの読込処理をソフトウエアで実現するようにしてもよ
い。Embodiment 2 FIG. In the first embodiment described above, the device identification code of the flash memory 2 is read by providing dedicated hardware, that is, the device identification code reading circuit 7 is provided. However, the reading process of the device identification code is realized by software. You may make it.
【0025】具体的には、実施の形態1と同様にして、
CPU6が書換コマンドを受信すると、ROM4からデ
バイス識別コードの読込ルーチンを取得して、その読込
ルーチンを実行する。これにより、CPU6がデバイス
識別コードの出力を要求する制御信号をフラッシュメモ
リ2に出力して、フラッシュメモリ2からデバイス識別
コードを読み出す処理を実行する。More specifically, as in the first embodiment,
When the CPU 6 receives the rewrite command, it acquires a device identification code reading routine from the ROM 4 and executes the reading routine. As a result, the CPU 6 outputs a control signal requesting the output of the device identification code to the flash memory 2 and executes a process of reading the device identification code from the flash memory 2.
【0026】この実施の形態2によれば、デバイス識別
コードの読込処理をソフトウエアで実現するので、将
来、デバイス識別コードの読み出し方式が変更されて
も、ハードウエアを変更することなく、ソフトウエアを
変更するだけで対処することができる効果を奏する。ま
た、図4に示すように、デバイス識別コード読込回路7
が不要になるため、マイコン1を小型化することができ
る効果を奏する。According to the second embodiment, the reading process of the device identification code is realized by software. Therefore, even if the reading method of the device identification code is changed in the future, the software is not changed without changing the hardware. The effect that can be dealt with simply by changing the parameter is achieved. Also, as shown in FIG.
Is unnecessary, so that the microcomputer 1 can be downsized.
【0027】実施の形態3.図5はこの発明の実施の形
態3によるマイクロコンピュータを示す構成図であり、
図において、図4と同一符号は同一または相当部分を示
すので説明を省略する。8はフラッシュメモリ2から出
力されたデバイス識別コードを格納するレジスタ(メモ
リ)である。なお、図6はこの発明の実施の形態3によ
るデータ書換方法を示すフローチャートである。Embodiment 3 FIG. 5 is a configuration diagram showing a microcomputer according to Embodiment 3 of the present invention.
In the figure, the same reference numerals as those in FIG. Reference numeral 8 denotes a register (memory) for storing the device identification code output from the flash memory 2. FIG. 6 is a flowchart showing a data rewriting method according to the third embodiment of the present invention.
【0028】次に動作について説明する。フラッシュメ
モリ2に対するデータの書換処理が初めての場合(ステ
ップST11)、上記実施の形態1と同様にして、デー
タの書換処理を実行するが、その際、フラッシュメモリ
2から出力されたデバイス識別コードをレジスタ8に格
納する。Next, the operation will be described. When the data rewriting process for the flash memory 2 is performed for the first time (step ST11), the data rewriting process is executed in the same manner as in the first embodiment. At this time, the device identification code output from the flash memory 2 is replaced with the device identification code. Store in register 8.
【0029】2回目以降のデータの書換処理では、フラ
ッシュメモリ2からデバイス識別コードを読み込む処理
を実施せず、レジスタ8に格納されているデバイス識別
コードを参照して、データの書込処理を実行するように
する。これにより、2回目以降のデータの書換処理で
は、デバイス識別コードの読込処理の実施が不要になる
分、データの書換速度が速くなる効果を奏する。In the second and subsequent data rewriting processes, the process of reading the device identification code from the flash memory 2 is not performed, and the data writing process is executed with reference to the device identification code stored in the register 8. To do it. As a result, in the data rewriting process for the second and subsequent times, it is not necessary to perform the process of reading the device identification code, so that the data rewriting speed is increased.
【0030】実施の形態4.図7はこの発明の実施の形
態4によるマイクロコンピュータを示す構成図であり、
図において、図4と同一符号は同一または相当部分を示
すので説明を省略する。9はフラッシュメモリ2から出
力されたデバイス識別コードの読込処理の正否を示す情
報を格納する判読結果フラグ(メモリ)、10は判読結
果フラグ9の格納内容を外部出力するPORTである。
なお、図8はこの発明の実施の形態4によるデータ書換
方法を示すフローチャートである。Embodiment 4 FIG. 7 is a configuration diagram showing a microcomputer according to Embodiment 4 of the present invention.
In the figure, the same reference numerals as those in FIG. Reference numeral 9 denotes a reading result flag (memory) for storing information indicating whether the reading process of the device identification code output from the flash memory 2 is correct or not, and reference numeral 10 denotes a PORT for externally outputting the contents stored in the reading result flag 9.
FIG. 8 is a flowchart showing a data rewriting method according to the fourth embodiment of the present invention.
【0031】次に動作について説明する。上記実施の形
態3では、フラッシュメモリ2から出力されたデバイス
識別コードをレジスタ8に格納するものについて示した
が、フラッシュメモリ2から出力されたデバイス識別コ
ードの判読結果、即ち、デバイス識別コードを正常に読
み込むことができたか否かを示す情報を判読結果フラグ
9に格納するようにしてもよい(ステップST12)。Next, the operation will be described. In the third embodiment, the case where the device identification code output from the flash memory 2 is stored in the register 8 has been described. However, the result of reading the device identification code output from the flash memory 2, that is, the device identification code is normal. May be stored in the interpretation result flag 9 (step ST12).
【0032】これにより、PORT10を介して、判読
結果フラグ9の格納内容を外部に出力するようにすれ
ば、データの書換処理に不具合等を発生しても、その際
の解析性が向上する効果を奏する。Thus, if the contents stored in the interpretation result flag 9 are output to the outside through the PORT 10, even if a problem or the like occurs in the data rewriting process, the analyzing ability at that time is improved. To play.
【0033】実施の形態5.図9はこの発明の実施の形
態5によるマイクロコンピュータを示す構成図であり、
図において、図5と同一符号は同一または相当部分を示
すので説明を省略する。11はレジスタ8に格納された
デバイス識別コードを外部出力するPORT(出力手
段)である。Embodiment 5 FIG. FIG. 9 is a configuration diagram showing a microcomputer according to Embodiment 5 of the present invention.
In the figure, the same reference numerals as those in FIG. Reference numeral 11 denotes a PORT (output means) for externally outputting the device identification code stored in the register 8.
【0034】次に動作について説明する。上記実施の形
態3では、フラッシュメモリ2から出力されたデバイス
識別コードをレジスタ8に格納するものについて示した
が、例えば、外部のパソコンからの要求に応じて、PO
RT11がレジスタ8に格納されたデバイス識別コード
を外部出力するようにしてもよい。Next, the operation will be described. In the third embodiment, the case where the device identification code output from the flash memory 2 is stored in the register 8 has been described. For example, in response to a request from an external personal computer, the PO
The RT 11 may output the device identification code stored in the register 8 to the outside.
【0035】これにより、データの書換処理に不具合等
を発生したとき、フラッシュメモリ2のデバイス識別コ
ードを確認することができるので、書換処理の不具合に
対する解析性が飛躍的に向上する効果を奏する。Thus, when a problem or the like occurs in the data rewriting process, the device identification code of the flash memory 2 can be confirmed, so that the analysis performance for the problem in the rewriting process is greatly improved.
【0036】実施の形態6.図10はこの発明の実施の
形態6によるデータ書換システムを示す構成図であり、
図において、図1と同一符号は同一または相当部分を示
すので説明を省略する。12はマイコン1とフラッシュ
メモリ2が実装されたボード、13はマイコン1と接続
され、書換アドレスや書換データが付加されたデータの
書換コマンドを発行するパソコン(コマンド発行手段)
である。Embodiment 6 FIG. FIG. 10 is a configuration diagram showing a data rewriting system according to Embodiment 6 of the present invention.
In the figure, the same reference numerals as those in FIG. Reference numeral 12 denotes a board on which the microcomputer 1 and the flash memory 2 are mounted, and reference numeral 13 denotes a personal computer (command issuing means) connected to the microcomputer 1 for issuing a rewrite command of data to which a rewrite address or rewrite data is added.
It is.
【0037】次に動作について説明する。マイコン1と
フラッシュメモリ2が同一のボード12上に実装されて
いることを明記している点は上記実施の形態1と異なる
が、マイコン1の動作自体は上記実施の形態1と同様で
ある。したがって、パソコン13は、上記実施の形態1
と同様に、書換コマンドを発行するだけで、フラッシュ
メモリ2に格納されているデータを書き換えることがで
きる。Next, the operation will be described. Although the point that the microcomputer 1 and the flash memory 2 are mounted on the same board 12 is different from that of the first embodiment, the operation itself of the microcomputer 1 is the same as that of the first embodiment. Therefore, the personal computer 13 is compatible with the first embodiment.
Similarly to the above, the data stored in the flash memory 2 can be rewritten only by issuing a rewrite command.
【0038】これにより、ボード12上に複数種類のフ
ラッシュメモリ2が実装される場合でも、ユーザはフラ
ッシュメモリ2の仕様を確認することなく、簡単にフラ
ッシュメモリ2に対するデータの書換処理を実行するこ
とができる効果を奏する。なお、この実施の形態6で
は、マイコン1とパソコン13を接続するものについて
示したが、これに限るものではなく、書換ライタ等を接
続するようにしてもよいことは言うまでもない。Thus, even when a plurality of types of flash memories 2 are mounted on the board 12, the user can easily execute the data rewriting process on the flash memory 2 without checking the specifications of the flash memory 2. It has the effect of being able to. In the sixth embodiment, the connection between the microcomputer 1 and the personal computer 13 is described. However, the present invention is not limited to this, and it goes without saying that a rewrite writer or the like may be connected.
【0039】[0039]
【発明の効果】以上のように、この発明によれば、フラ
ッシュメモリのデバイス識別コードを解析して、フラッ
シュメモリに対応する書込ルーチンを取得するルーチン
取得手段と、その書込ルーチンを実行して、フラッシュ
メモリに対するデータの書換処理を実行するデータ書換
手段とを設けるように構成したので、外付けのフラッシ
ュメモリのデータを書き換える場合でも、簡単にデータ
を書き換えることができる効果がある。As described above, according to the present invention, the routine acquiring means for analyzing the device identification code of the flash memory and acquiring the write routine corresponding to the flash memory, and executing the write routine. Thus, since the data rewriting means for executing the data rewriting process for the flash memory is provided, even when rewriting the data of the external flash memory, the data can be easily rewritten.
【0040】この発明によれば、識別コード読込手段を
ソフトウエアで構成するようにしたので、将来、デバイ
ス識別コードの読み出し方式が変更されても、ハードウ
エアを変更することなく、ソフトウエアを変更するだけ
で対処することができる効果がある。また、デバイス識
別コード読込回路が不要になるため、マイコンを小型化
することができる効果がある。According to the present invention, since the identification code reading means is constituted by software, even if the reading method of the device identification code is changed in the future, the software is changed without changing the hardware. There is an effect that can be dealt with just by doing. Further, since the device identification code reading circuit is not required, there is an effect that the microcomputer can be miniaturized.
【0041】この発明によれば、フラッシュメモリから
出力されたデバイス識別コードを格納するメモリを設け
るように構成したので、2回目以降のデータの書換処理
では、デバイス識別コードの読込処理の実施が不要にな
る分、データの書換速度が速くなる効果がある。According to the present invention, since the memory for storing the device identification code output from the flash memory is provided, it is not necessary to execute the device identification code reading process in the second and subsequent data rewriting processes. Therefore, there is an effect that the data rewriting speed is increased.
【0042】この発明によれば、フラッシュメモリから
出力されたデバイス識別コードの読込処理の正否を示す
情報を格納するメモリを設けるように構成したので、デ
ータの書換処理に不具合等を発生しても、その際の解析
性が向上する効果がある。According to the present invention, since the memory for storing information indicating whether the reading process of the device identification code output from the flash memory is correct or not is provided, even if a problem occurs in the data rewriting process or the like. This has the effect of improving the analyticity at that time.
【0043】この発明によれば、メモリに格納されたデ
バイス識別コードを外部出力する出力手段を設けるよう
に構成したので、書換処理の不具合に対する解析性が飛
躍的に向上する効果がある。According to the present invention, since the output means for outputting the device identification code stored in the memory to the outside is provided, there is an effect that the resolvability of the rewriting process is greatly improved.
【0044】この発明によれば、データの書換コマンド
をマイクロコンピュータに発行するコマンド発行手段を
設けるように構成したので、ユーザはフラッシュメモリ
の仕様を確認することなく、簡単にフラッシュメモリに
対するデータの書換処理を実行することができる効果が
ある。According to the present invention, since the command issuing means for issuing the data rewriting command to the microcomputer is provided, the user can easily rewrite the data to the flash memory without checking the specifications of the flash memory. There is an effect that the processing can be executed.
【0045】この発明によれば、フラッシュメモリのデ
バイス識別コードを解析して、フラッシュメモリに対応
する書込ルーチンを取得する一方、その書込ルーチンを
実行して、フラッシュメモリに対するデータの書換処理
を実行するように構成したので、外付けのフラッシュメ
モリのデータを書き換える場合でも、簡単にデータを書
き換えることができる効果がある。According to the present invention, the device identification code of the flash memory is analyzed to obtain a write routine corresponding to the flash memory, and the write routine is executed to perform a data rewrite process on the flash memory. Since it is configured to execute, even when rewriting data in an external flash memory, there is an effect that data can be easily rewritten.
【図1】 この発明の実施の形態1によるマイクロコン
ピュータを示す構成図である。FIG. 1 is a configuration diagram showing a microcomputer according to a first embodiment of the present invention.
【図2】 書換コマンドの一例を示す説明図である。FIG. 2 is an explanatory diagram illustrating an example of a rewrite command.
【図3】 この発明の実施の形態1によるデータ書換方
法を示すフローチャートである。FIG. 3 is a flowchart showing a data rewriting method according to the first embodiment of the present invention.
【図4】 この発明の実施の形態2によるマイクロコン
ピュータを示す構成図である。FIG. 4 is a configuration diagram showing a microcomputer according to a second embodiment of the present invention.
【図5】 この発明の実施の形態3によるマイクロコン
ピュータを示す構成図である。FIG. 5 is a configuration diagram showing a microcomputer according to a third embodiment of the present invention.
【図6】 この発明の実施の形態3によるデータ書換方
法を示すフローチャートである。FIG. 6 is a flowchart showing a data rewriting method according to Embodiment 3 of the present invention.
【図7】 この発明の実施の形態4によるマイクロコン
ピュータを示す構成図である。FIG. 7 is a configuration diagram showing a microcomputer according to a fourth embodiment of the present invention.
【図8】 この発明の実施の形態4によるデータ書換方
法を示すフローチャートである。FIG. 8 is a flowchart showing a data rewriting method according to a fourth embodiment of the present invention.
【図9】 この発明の実施の形態5によるマイクロコン
ピュータを示す構成図である。FIG. 9 is a configuration diagram showing a microcomputer according to a fifth embodiment of the present invention.
【図10】 この発明の実施の形態6によるデータ書換
システムを示す構成図である。FIG. 10 is a configuration diagram showing a data rewriting system according to a sixth embodiment of the present invention.
2 フラッシュメモリ、6 CPU(識別コード読込手
段、ルーチン取得手段、データ書換手段)、7 デバイ
ス識別コード読込回路(識別コード読込手段)、8 レ
ジスタ(メモリ)、9 判読結果フラグ(メモリ)、1
1 PORT(出力手段)、13 パソコン(コマンド
発行手段)。2 flash memory, 6 CPU (identification code reading means, routine acquisition means, data rewriting means), 7 device identification code reading circuit (identification code reading means), 8 register (memory), 9 reading result flag (memory), 1
1 PORT (output means), 13 PC (command issuing means).
Claims (7)
イス識別コードの出力要求をフラッシュメモリに出力し
て、そのフラッシュメモリからデバイス識別コードの読
込処理を実行する識別コード読込手段と、上記識別コー
ド読込手段がフラッシュメモリからデバイス識別コード
を読み込むと、そのデバイス識別コードを解析して、上
記フラッシュメモリに対応する書込ルーチンを取得する
ルーチン取得手段と、上記ルーチン取得手段により取得
された書込ルーチンを実行して、上記フラッシュメモリ
に対するデータの書換処理を実行するデータ書換手段と
を備えたマイクロコンピュータ。An identification code reading means for outputting a device identification code output request to a flash memory upon receipt of a data rewrite command, and executing a device identification code reading process from the flash memory; When the means reads the device identification code from the flash memory, the device identification code is analyzed to obtain a writing routine corresponding to the flash memory, and a writing routine obtained by the routine obtaining means. And a data rewriting means for executing data rewriting processing for the flash memory.
成することを特徴とする請求項1記載のマイクロコンピ
ュータ。2. The microcomputer according to claim 1, wherein the identification code reading means is constituted by software.
ス識別コードを格納するメモリを設けたことを特徴とす
る請求項1または請求項2記載のマイクロコンピュー
タ。3. The microcomputer according to claim 1, further comprising a memory for storing a device identification code output from the flash memory.
ス識別コードの読込処理の正否を示す情報を格納するメ
モリを設けたことを特徴とする請求項1から請求項3の
うちのいずれか1項記載のマイクロコンピュータ。4. The apparatus according to claim 1, further comprising a memory for storing information indicating whether the reading process of the device identification code output from the flash memory is correct or not. Microcomputer.
を外部出力する出力手段を設けたことを特徴とする請求
項3記載のマイクロコンピュータ。5. The microcomputer according to claim 3, further comprising output means for externally outputting the device identification code stored in the memory.
ド発行手段と、上記コマンド発行手段からデータの書換
コマンドを受けると、デバイス識別コードの出力要求を
フラッシュメモリに出力して、そのフラッシュメモリか
らデバイス識別コードの読込処理を実行する識別コード
読込手段と、上記識別コード読込手段がフラッシュメモ
リからデバイス識別コードを読み込むと、そのデバイス
識別コードを解析して、上記フラッシュメモリに対応す
る書込ルーチンを取得するルーチン取得手段と、上記ル
ーチン取得手段により取得された書込ルーチンを実行し
て、上記フラッシュメモリに対するデータの書換処理を
実行するデータ書換手段とを備えたデータ書換システ
ム。6. A command issuing means for issuing a data rewrite command, and upon receiving a data rewrite command from the command issuing means, outputs a device identification code output request to the flash memory, and outputs the device identification code from the flash memory. Identification code reading means for executing a code reading process, and when the identification code reading means reads a device identification code from the flash memory, the device identification code is analyzed to obtain a writing routine corresponding to the flash memory. A data rewriting system comprising: a routine obtaining unit; and a data rewriting unit that executes a writing routine obtained by the routine obtaining unit and executes a data rewriting process on the flash memory.
イス識別コードの出力要求をフラッシュメモリに出力す
る一方、そのフラッシュメモリがデバイス識別コードを
出力すると、そのデバイス識別コードを解析して、その
フラッシュメモリに対応する書込ルーチンを取得すると
ともに、その書込ルーチンを実行して、そのフラッシュ
メモリに対するデータの書換処理を実行するデータ書換
方法。7. When a data rewrite command is received, a device identification code output request is output to the flash memory. When the flash memory outputs a device identification code, the device identification code is analyzed and the flash memory is output. A data rewriting method for acquiring a write routine corresponding to the flash memory, executing the write routine, and performing a data rewrite process on the flash memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11001438A JP2000200213A (en) | 1999-01-06 | 1999-01-06 | Microcomputer, data rewriting system and data rewriting method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11001438A JP2000200213A (en) | 1999-01-06 | 1999-01-06 | Microcomputer, data rewriting system and data rewriting method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2000200213A true JP2000200213A (en) | 2000-07-18 |
Family
ID=11501458
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11001438A Pending JP2000200213A (en) | 1999-01-06 | 1999-01-06 | Microcomputer, data rewriting system and data rewriting method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2000200213A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004511030A (en) * | 2000-07-07 | 2004-04-08 | レクサー メディア,インク. | Memory architecture for host compatible multi-flash memory banks that can be programmed simultaneously |
| US6983424B1 (en) | 2000-06-23 | 2006-01-03 | International Business Machines Corporation | Automatically scaling icons to fit a display area within a data processing system |
| KR100843193B1 (en) * | 2002-02-19 | 2008-07-02 | 삼성전자주식회사 | Flash memory device specification detection device and method |
-
1999
- 1999-01-06 JP JP11001438A patent/JP2000200213A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6983424B1 (en) | 2000-06-23 | 2006-01-03 | International Business Machines Corporation | Automatically scaling icons to fit a display area within a data processing system |
| JP2004511030A (en) * | 2000-07-07 | 2004-04-08 | レクサー メディア,インク. | Memory architecture for host compatible multi-flash memory banks that can be programmed simultaneously |
| KR100843193B1 (en) * | 2002-02-19 | 2008-07-02 | 삼성전자주식회사 | Flash memory device specification detection device and method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8645624B2 (en) | Portable electronic device, smartcard and control method for portable electronic device | |
| JPS60243795A (en) | Electronic register change program setting device | |
| JP2000200213A (en) | Microcomputer, data rewriting system and data rewriting method | |
| US20100146224A1 (en) | Request processing device, request processing system, and access testing method | |
| JPH11175667A (en) | Information card processor | |
| JP2845839B2 (en) | Radio selective call receiver | |
| JPH1145206A (en) | Electronic device, memory activation method, and recording medium recording memory activation program | |
| JP4083474B2 (en) | MEMORY DEVICE CONTROL METHOD, PROGRAM THEREOF, AND RECORDING MEDIUM | |
| JPS5848932B2 (en) | Memory expansion method | |
| JP4471947B2 (en) | Data processing apparatus and data processing method | |
| JPH1173368A (en) | Memory module, information processing device control method, and recording medium | |
| JPH0776895B2 (en) | Small portable devices | |
| JPH0330917Y2 (en) | ||
| US20030226081A1 (en) | On chip debugging method of microcontrollers | |
| JPH0855204A (en) | IC card with CPU and method of restricting accessible address in IC card with CPU | |
| JP2002541582A (en) | Method and system for updating user memory in an emulator system | |
| JP2978008B2 (en) | Memory management method | |
| EP2525285A1 (en) | Central processing unit and microcomputer | |
| CN120704586A (en) | Serial data transmission method, device, system, electronic device and storage medium | |
| CN119781873A (en) | File acquisition method, system, electronic device and storage medium | |
| US20050278466A1 (en) | Conversion apparatus | |
| JP2002140205A (en) | Data processing apparatus and boot processing method for data processing apparatus | |
| Model | Microcontroller | |
| JP2000322533A (en) | PC card and card information preparation method | |
| JP2004199186A (en) | Microcomputer and internal state control method |