JPH0876989A - Electronic apparatus driven by program and rewriting method for program - Google Patents

Electronic apparatus driven by program and rewriting method for program

Info

Publication number
JPH0876989A
JPH0876989A JP6232274A JP23227494A JPH0876989A JP H0876989 A JPH0876989 A JP H0876989A JP 6232274 A JP6232274 A JP 6232274A JP 23227494 A JP23227494 A JP 23227494A JP H0876989 A JPH0876989 A JP H0876989A
Authority
JP
Japan
Prior art keywords
program
rewriting
cpu
predetermined program
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6232274A
Other languages
Japanese (ja)
Inventor
Shuichi Saito
秀一 斎藤
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.)
Teac Corp
Original Assignee
Teac Corp
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 Teac Corp filed Critical Teac Corp
Priority to JP6232274A priority Critical patent/JPH0876989A/en
Publication of JPH0876989A publication Critical patent/JPH0876989A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Recording Or Reproducing By Magnetic Means (AREA)

Abstract

PURPOSE: To easily rewrite a program for controlling an electronic apparatus such as a magnetic tape device. CONSTITUTION: A magnetic tape device 1 is provided with a data recording/ reproducing device 2, a CPU 4 for controlling the device 2, a flash PROM 5, and a RAM 6. A main program for controlling the device 2 is stored in an area 5a of the PROM 5 and a rewriting program is stored in an area 5b. At the time of rewriting the main program, the rewriting program is transferred to the RAM 6.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば磁気テープ装置
のようなプログラム制御可能な電子機器、及びプログラ
ムの書換え方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program controllable electronic device such as a magnetic tape device and a program rewriting method.

【0002】[0002]

【従来の技術】例えば、パソコン等のコンピュータシス
テムの外部記憶装置としてのバックアップ用の磁気テー
プ装置(ストリーマ)をプログラム制御可能に構成する
ことがある。この種の磁気テープ装置は、磁気テープ駆
動装置と、CPU(中央処理装置)と、RAM(ランダ
ム・アクセス・メモリ)と、制御プログラム(所望プロ
グラム)が格納されたPROM(プログラム可能なリー
ド・オンリー・メモリ)又はEPROM(消去可能なP
ROM)から成る。
2. Description of the Related Art For example, a backup magnetic tape device (streamer) as an external storage device of a computer system such as a personal computer may be configured to be program controllable. This type of magnetic tape device includes a magnetic tape drive device, a CPU (central processing unit), a RAM (random access memory), and a PROM (programmable read only memory) storing a control program (desired program).・ Memory) or EPROM (erasable P
ROM).

【0003】[0003]

【発明が解決しようとする課題】ところで、磁気テープ
装置等の電子装置の制御プログラムを変更したい場合が
ある。この場合、古いPROM又はEPROMを新しい
プログラムが書込まれたPROM又はEPROMに変換
することが必要になり、この交換には少なからぬ時間及
び費用を要する。PROM又はEPROMの代りに、フ
ラッシュPROM即ちEEPROMを使用することもあ
る。このフラッシュPROMは電子装置に実装したまま
でプログラムの書換え処理を行うことができる。しか
し、プログラムの書換えを実行するためのプログラムを
格納した個別のメモリを電子装置に搭載することが必要
であり、電子装置の部品点数が増大し、コスト高にな
る。
By the way, there are cases where it is desired to change the control program of an electronic device such as a magnetic tape device. In this case, it is necessary to convert the old PROM or EPROM into a PROM or EPROM in which a new program is written, and this replacement requires considerable time and cost. Flash PROMs or EEPROMs may be used instead of PROMs or EPROMs. This flash PROM can be rewritten while the program is still installed in the electronic device. However, it is necessary to mount an individual memory storing a program for executing the rewriting of the program on the electronic device, which increases the number of parts of the electronic device and increases the cost.

【0004】そこで、本発明の目的は、書換え可能な不
揮発性メモリに格納されているプログラムをコストの増
大を抑えて容易に書換えることができる電子機器、及び
プログラムの書換え方法を提供することにある。
Therefore, an object of the present invention is to provide an electronic device and a program rewriting method capable of easily rewriting a program stored in a rewritable nonvolatile memory while suppressing an increase in cost. is there.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
の本発明は、所定のプログラムに従って動作する電子装
置と、前記電子装置を前記所定のプログラムに従うよう
に動作させるために前記電子装置に接続されたCPU
と、前記CPUに接続されたRAMと、前記CPU及び
前記RAMに接続された書換え可能な不揮発性メモリと
から成り、前記書換え可能な不揮発性メモリに前記所定
のプログラムが書込まれていると共に、少なくとも前記
所定のプログラムの書換えを実行するための書換えプロ
グラムが予め書込まれていることを特徴とする電子機器
に係わるものである。また、請求項2の発明は、所定の
プログラムに従って動作する電子装置と、前記電子装置
を前記所定のプログラムに従うように動作させるために
前記電子装置に接続されたCPUと、前記CPUに接続
されたRAMと、前記CPU及び前記RAMに接続され
た書換え可能な不揮発性メモリとから成り、前記書換え
可能な不揮発性メモリに前記所定のプログラムが書込ま
れていると共に、少なくとも前記所定のプログラムの書
換えを実行するための書換えプログラムが予め書込まれ
ている電子機器において、前記不揮発性メモリの少なく
とも前記所定のプログラムを書換える方法であって、前
記CPUに所定のプログラムの書換え指令を与えるステ
ップと、前記CPUが前記書換え指令に応答して前記書
換え可能な不揮発性メモリの前記書換えプログラムを読
出して前記RAMに転送するステップと、前記CPUを
前記所定プログラムに従う動作から前記RAMの書換え
プログラムに従う動作に切り換えるステップと、新しい
所定プログラムを用意するステップと、前記CPUが前
記RAMの書換えプログラムに従って前記新しい所定プ
ログラムを前記書換え可能な不揮発性メモリに書込むス
テップとを有していることを特徴とするプログラム書換
え方法に係わるものである。なお、請求項3に示すよう
に、プログラムの書換え指令及び新しいプログラムをホ
スト装置から供給することができる。また、請求項4に
示すように、新しいプログラムを記録媒体から供給する
ことができる。
The present invention for achieving the above object provides an electronic device which operates according to a predetermined program, and an electronic device which is connected to the electronic device for operating the electronic device according to the predetermined program. CPU
And a RAM connected to the CPU, and a rewritable non-volatile memory connected to the CPU and the RAM, and the predetermined program is written in the rewritable non-volatile memory, The present invention relates to an electronic device in which a rewriting program for executing at least the rewriting of the predetermined program is prewritten. The invention according to claim 2 is an electronic device that operates according to a predetermined program, a CPU that is connected to the electronic device to operate the electronic device according to the predetermined program, and a CPU that is connected to the CPU. The rewritable non-volatile memory comprises a RAM and a rewritable non-volatile memory connected to the CPU and the RAM. The rewritable non-volatile memory stores the predetermined program and at least rewrites the predetermined program. A method of rewriting at least the predetermined program of the non-volatile memory in an electronic device in which a rewriting program to be executed is written in advance, comprising a step of giving a predetermined program rewriting command to the CPU, Rewriting of the rewritable non-volatile memory by the CPU in response to the rewriting command A program for transferring the program to the RAM, switching the CPU from an operation according to the predetermined program to an operation according to a rewriting program in the RAM, preparing a new predetermined program, and causing the CPU to rewrite the program in the RAM. And writing the new predetermined program in the rewritable non-volatile memory in accordance with the above method. As described in claim 3, a program rewriting command and a new program can be supplied from the host device. Further, as described in claim 4, a new program can be supplied from the recording medium.

【0006】[0006]

【発明の作用及び効果】各請求項の発明によれば、電子
機器を制御するための所定のプログラムが格納されてい
る書換え可能な不揮発性メモリ(例えばEEPROM)
に、この書換えを実行するためのプログラムも書込むの
で、所定のプログラムの書換えを低コスト及び容易に実
行することができる。
According to the invention of each claim, a rewritable non-volatile memory (for example, EEPROM) in which a predetermined program for controlling electronic equipment is stored.
Further, since the program for executing this rewriting is also written, the rewriting of a predetermined program can be easily executed at low cost.

【0007】[0007]

【実施例】次に、図1〜図4を参照して本発明の実施例
に係わるコンピュータシステムの外部記憶装置としての
磁気テープ装置を説明する。電子機器としての磁気テー
プ装置1は所定のプログラムに従って制御することがで
きる電子装置としての記録再生装置2の他に、SCSI
インタフェース3、CPU(中央処理装置)4、書換え
可能な不揮発性メモリ(固定メモリ)としてのフラッシ
ュPROM(EEPROM)5と、RAM(ランダム・
アクセス・メモリ)6と、バス7とを有し、それぞれが
バス7に結合されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A magnetic tape device as an external storage device of a computer system according to an embodiment of the present invention will be described below with reference to FIGS. The magnetic tape device 1 as an electronic device can be controlled by a SCSI program in addition to the recording / reproducing device 2 as an electronic device that can be controlled according to a predetermined program.
Interface 3, CPU (central processing unit) 4, rewritable nonvolatile memory (fixed memory) flash PROM (EEPROM) 5, and RAM (random memory)
Access memory) 6 and a bus 7, each coupled to bus 7.

【0008】磁気テープ装置1の本体部である記録再生
装置2は、テープカセット8の記録媒体磁気テープ9が
巻回された一対のリール10に係合されているテープ駆
動装置11を有する。テープ駆動装置11は一対のリー
ルモータとテープ速度検出手段とモータの制御回路とを
含む周知の装置であって、テープ9をほぼ一定の速度で
走行させるように構成されている。
The recording / reproducing device 2 which is the main body of the magnetic tape device 1 has a tape drive device 11 which is engaged with a pair of reels 10 around which a recording medium magnetic tape 9 of a tape cassette 8 is wound. The tape driving device 11 is a known device including a pair of reel motors, a tape speed detecting means, and a motor control circuit, and is configured to run the tape 9 at a substantially constant speed.

【0009】テープ9の走行路に沿って信号変換用の記
録磁気ヘッド12及び再生磁気ヘッド13が配置され、
記録ヘッド12には記録回路14が接続され、再生ヘッ
ド13には再生回路15が接続されている。なお、記録
ヘッド12と再生ヘッド13とは機械的に一体化され、
複合ヘッドに構成されている。また、図示が省略されて
いるがヘッド12、13をテープ9の幅方向(トラック
交差方向)に移動してトラック切換えを行う手段が設け
られている。テープ駆動装置11はバス7を介してCP
U4に接続され、CPU4の指令に従ってテープ9の走
行、停止、巻戻し等の制御を行う。
A recording magnetic head 12 for signal conversion and a reproducing magnetic head 13 are arranged along the running path of the tape 9.
A recording circuit 14 is connected to the recording head 12, and a reproducing circuit 15 is connected to the reproducing head 13. The recording head 12 and the reproducing head 13 are mechanically integrated,
It is composed of a composite head. Further, although not shown, means for moving the heads 12 and 13 in the width direction of the tape 9 (track crossing direction) to switch tracks is provided. The tape drive device 11 sends CP via the bus 7.
It is connected to U4 and controls the running, stopping, rewinding, etc. of the tape 9 in accordance with instructions from the CPU 4.

【0010】記録回路14はバス7を介してCPU4、
インタフェース3等の接続されており、バス7にインタ
ーフェース3を介して接続されているパソコンから成る
ホスト装置16から供給されたデータを所定のトラック
フォーマットに従ってテープ9に記録する。
The recording circuit 14 is connected to the CPU 4 via the bus 7,
The data supplied from the host device 16 which is connected to the interface 3 and the like and is connected to the bus 7 via the interface 3 is recorded on the tape 9 according to a predetermined track format.

【0011】再生回路15はバス7を介してインタフェ
ース3、CPU4、フラッシュPROM5、RAM6に
接続されており、テープカセット8が主データの再生用
のものである場合には、この再生データをホスト装置に
送り、テープカセット8が書換えるための新しいプログ
ラムを含む場合には、この再生データRAM6を介して
をフラッシュPROM5に送る。
The reproducing circuit 15 is connected to the interface 3, the CPU 4, the flash PROM 5, and the RAM 6 via the bus 7, and when the tape cassette 8 is for reproducing the main data, this reproduced data is sent to the host device. If the tape cassette 8 contains a new program for rewriting, the data is sent to the flash PROM 5 via the reproduction data RAM 6.

【0012】フラッシュPROM5は、記録再生装置2
を制御するためのメインプログラムをストアするための
メインプログラム領域5aと、フラッシュPROM5の
書換えを実行する時に使用する書換えプログラムをスト
アするための書換えプログラム領域5bとを有する。な
お、書換えプログラム領域5bには、ホスト装置16に
基づいてメインプログラムの書換えを実行するための第
1の書換えプログラムと、記録再生装置2に基づいてメ
インプログラムの書換えを実行するための第2の書換え
プログラムとの両方がストアされている。
The flash PROM 5 is a recording / reproducing device 2
It has a main program area 5a for storing a main program for controlling, and a rewrite program area 5b for storing a rewrite program used when rewriting the flash PROM 5. In the rewriting program area 5b, a first rewriting program for executing the rewriting of the main program based on the host device 16 and a second rewriting program for executing the rewriting of the main program based on the recording / reproducing device 2 are performed. Both the rewriting program is stored.

【0013】ここでのメインプログラムは、例えば図2
に概略的に示すように構成されている。まず、ブロック
20でプログラムがスタートすると、次に、ブロック2
1に示すようにホスト装置16からコマンドが与えられ
ているか否かを判断する。ホスト装置16からコマンド
が与えられている場合には、次にブロック22に示すよ
うにフラッシュPROM5の内容の書換えを実行するコ
マンドか否かを判断する。書換え不要を示すNO出力の
場合にはブロック23に示すように記録再生装置2のテ
ープ9による主データの記録再生のためのプログラムに
よる処理に移り、主データの記録再生を実行する。これ
が終了すれば、ブロック21に戻り、再びコマンドの有
無を判断する。一方、ブロック22で書換えを示すコマ
ンドであると判断された時には、ブロック24に示すよ
うに、フラッシュPROM5の書換えプログラム領域5
bの第1の書換えプログラムをRAM6に転送する。ブ
ロック21において、ホスト装置16からのコマンドで
ないと判断された時には、ブロック25において記録再
生装置2にテ−プカセット8が今装着されたか否かが判
断される。テ−プカセット8が装着された場合には次の
ブロック26において記録再生装置2を初期駆動する。
即ち、テ−プ9のトラックT0 の頭の部分の読み取りが
実行される。なお、テ−プ9のトラックT0 の頭の部分
には書換用テ−プか否を示す信号が記録されている。ブ
ロック25でテ−プカセット8が未装着と判断された時
にはブロック21に戻る。次に、ブロック27において
テ−フ9からの再生出力に基づいて書換え用テ−プカセ
ットか否かが判断される。ブロック27において書換え
用テ−プカセットであると判断された時にはブロック2
8において、第2の書換えプログラム即ち記録再生装置
2に基づいてメインプロクラムの書換えを実行するため
のプログラムをフラッシュPROM5の領域5bからR
AM6に転送する。ブロック27において、書換え用テ
−プカセットでないと判断された時にはブロック23に
移り、デ−タ記録再生のためのプログラムによる処理を
実行する。
The main program here is, for example, as shown in FIG.
It is configured as shown in FIG. First, the program starts at block 20, then block 2
As shown in 1, it is determined whether or not a command is given from the host device 16. When the command is given from the host device 16, it is then determined whether or not the command is for executing the rewriting of the contents of the flash PROM 5 as shown in block 22. In the case of NO output indicating that rewriting is not necessary, as shown in block 23, the process shifts to the processing by the program for recording / reproducing the main data by the tape 9 of the recording / reproducing apparatus 2, and the recording / reproducing of the main data is executed. When this is completed, the process returns to block 21, and it is determined again whether or not there is a command. On the other hand, when it is determined in block 22 that the command indicates rewriting, as shown in block 24, the rewriting program area 5 of the flash PROM 5 is read.
The first rewriting program of b is transferred to the RAM 6. When it is determined in block 21 that the command is not from the host device 16, it is determined in block 25 whether or not the tape cassette 8 is now mounted in the recording / reproducing device 2. When the tape cassette 8 is mounted, the recording / reproducing apparatus 2 is initially driven in the next block 26.
That is, the reading of the head portion of the track T0 of the tape 9 is executed. A signal indicating whether or not the tape is a rewriting tape is recorded in the head portion of the track T0 of the tape 9. When it is determined in block 25 that the tape cassette 8 is not mounted, the process returns to block 21. Next, at block 27, it is judged based on the reproduction output from the tape 9 whether or not the tape cassette is a rewriting tape cassette. When it is determined in block 27 that the tape cassette is a rewritable tape cassette, block 2
8, a second rewriting program, that is, a program for executing the rewriting of the main program based on the recording / reproducing apparatus 2 is read from the area 5b of the flash PROM 5 to R.
Transfer to AM6. When it is determined in block 27 that the tape cassette is not the rewriting tape cassette, the process proceeds to block 23, and the processing by the program for data recording / reproducing is executed.

【0014】なお、ブロック23に示すデータ記録再生
のためのプログラム(実質的なメインプログラム)は、
ホスト装置16から供給された主データを所定の方式に
従ってテープ9に書込むためのプログラム及びテープ9
に記録されている主データを所定の方式に従って読出し
てホスト装置16に送るためのプログラムであって、例
えば記録時におけるエラーチェック、このエラーチェッ
クに基づく再書込み、二重記録制御等のためのプログラ
ム、再生時におけるエラーチェック、リトライ等のため
のプログラムである。
The program for recording / reproducing data (substantially the main program) shown in block 23 is
A program for writing the main data supplied from the host device 16 to the tape 9 according to a predetermined method and the tape 9
A program for reading out the main data recorded in the above in accordance with a predetermined method and sending it to the host device 16, for example, a program for error check at the time of recording, rewriting based on this error check, double recording control, etc. It is a program for error check, retry, etc. during playback.

【0015】次に、ホスト装置16に基づいてメインプ
ログラムの書換えを実行するための第1の書換えプログ
ラム及びこれに従う書換え動作を説明する。図3はフラ
ッシュPROM5の領域5bに書込まれている第1の書
換えプログラムを概略的に示す。ホスト装置16からフ
ラッシュPROM5の内容の書換え指令が発生すると、
図2のブロック24に従って第1の書換えプログラムが
RAM6に転送され、この後はRAM6に転送された図
3に示す第1の書換えプログラムに従う動作が生じる。
主データのテープ9に対する記録再生が実行されない時
にはRAM6の大部分は未使用であるので、書換えプロ
グラムをストアする容量を十分に有する。図3のブロッ
ク30に示すように書換えプログラムがスタートする
と、ブロック31に示すようにフラッシュPROM5を
書込み可能状態に制御する。即ちフラッシュPROM5
の内容を消去し、新しいプログラムの書込みができる状
態を設定する。次に、ブロック32に示すように新しい
プログラムのフラッシュPROM5に対する書込み可能
状態が設定されたことをホスト装置16に通知する。ホ
スト装置16はこの通知を受けて新しいプログラムをテ
ープ装置1に送る。この時、ホスト装置16側では、テ
ープ装置1の書込み可能状態の通知をディスプレイ又は
音声等によって操作者に知らせる。これに応答して操作
者はホスト装置16から新しいプログラムを送信する。
テープ装置1においては、ブロック33に示すように新
しいプログラムを受信し、RAM6にストアする。な
お、新しいプログラムはRAM6の記憶容量以上である
ことが普通であるから、新しいプロクラムを分割してホ
スト装置16からテ−プ装置1に送る。次に、ブロック
34に示すように、RAM6からフラッシュPROM5
に新しいプログラムを転送し、領域5aには新しいメイ
ンプログラムを書込み、領域5bには新しい書換えプロ
グラムを書込む。前述したように新しいプログラムの全
部をRAM6にストアできないので、プログラム35に
おいて、次のプログラムの有無を判断し、有る場合には
プログラム32に戻って新しいプログラムの書き込みを
続ける。次のプログラムが無い場合にはブロック36に
示すように書換えプログラムを終了させる。なお、新し
いプログラムのフラッシュPROM5に対する書込み終
了後に、ホスト装置16に対してこの旨を通知し、ホス
ト装置16はこれをディスプレイ又は音声等で操作者に
通知し、ホスト装置16、テープ装置1を含む全システ
ムをリセットさせることが望ましい。
Next, the first rewriting program for rewriting the main program based on the host device 16 and the rewriting operation according to the first rewriting program will be described. FIG. 3 schematically shows a first rewriting program written in the area 5b of the flash PROM 5. When the host device 16 issues a command to rewrite the contents of the flash PROM 5,
The first rewriting program is transferred to the RAM 6 according to the block 24 of FIG. 2, and thereafter, the operation according to the first rewriting program shown in FIG.
Since most of the RAM 6 is unused when the recording / reproduction of the main data on the tape 9 is not executed, the RAM 6 has a sufficient capacity for storing the rewriting program. When the rewriting program starts as shown in block 30 of FIG. 3, the flash PROM 5 is controlled to the writable state as shown in block 31. That is, the flash PROM 5
Erase the contents of and set the state where a new program can be written. Next, as shown in block 32, the host device 16 is notified that the writable state of the new program for the flash PROM 5 has been set. Upon receiving this notification, the host device 16 sends a new program to the tape device 1. At this time, the host device 16 side notifies the operator of the notice of the writable state of the tape device 1 by a display or voice. In response to this, the operator sends a new program from the host device 16.
The tape device 1 receives the new program as shown in block 33 and stores it in the RAM 6. Since the new program is usually larger than the storage capacity of the RAM 6, the new program is divided and sent from the host device 16 to the tape device 1. Next, as shown in block 34, RAM 6 to flash PROM 5
, A new main program is written in the area 5a, and a new rewriting program is written in the area 5b. As described above, since all the new programs cannot be stored in the RAM 6, the program 35 determines whether or not there is a next program, and if there is, returns to the program 32 to continue writing the new program. If there is no next program, the rewriting program is terminated as shown in block 36. It should be noted that after writing the new program to the flash PROM 5, the host device 16 is notified of this fact, and the host device 16 notifies the operator of this by a display or voice, and includes the host device 16 and the tape device 1. It is desirable to reset the entire system.

【0016】上述から明らかなように、メインプログラ
ムのためのフラッシュPROM5にこれを書き替えるた
めの書換えプログラムをストアしておくので、書換えプ
ログラムのための専用のROMが不要になり、磁気テー
プ装置1の低コスト化が達成される。また、メインプロ
グラムの書換えを簡単に達成することができる。
As is apparent from the above, since the rewriting program for rewriting the flash PROM 5 for the main program is stored, the dedicated ROM for the rewriting program becomes unnecessary and the magnetic tape device 1 Cost reduction is achieved. Also, rewriting of the main program can be easily achieved.

【0017】次に、記録再生装置2に基づく新しいプロ
グラムの書込みを説明する。図1のシステムにおいて
は、新しいプログラムをホスト装置16から供給する代
りに記録再生装置2から供給することができる。この場
合には、テープカセット8のテープ9に、図1のシステ
ムによって又は別のシステムによって新しいプログラム
を予め書込む。即ち、テープ9を新しいプログラムのソ
ースとしてフラッシュPROM5にこれを書込む。
Next, writing of a new program based on the recording / reproducing apparatus 2 will be described. In the system of FIG. 1, a new program can be supplied from the recording / reproducing apparatus 2 instead of being supplied from the host apparatus 16. In this case, the tape 9 of the tape cassette 8 is prewritten with the new program by the system of FIG. 1 or by another system. That is, the tape 9 is written in the flash PROM 5 as a new program source.

【0018】テープ9に対する新しいプログラムの書込
みは例えば図4〜図6に示すように行う。テープ9は図
4に示すように多数のトラックT0 〜T4 を有するの
で、リファレンストラックTr 後の最初のトラックT0
に書換えコマンドを記録する。図5は最初のトラックT
0 の最初の部分である複数(4個)のデータブロックD
B1 〜DB4 に書換えコマンドを記録することを示す。
この書換えコマンドは複数のデータブロックDB1 〜D
B4 に繰返し記録(多重記録)する。
Writing of a new program to the tape 9 is performed as shown in FIGS. 4 to 6, for example. Since the tape 9 has a large number of tracks T0 to T4 as shown in FIG. 4, it is the first track T0 after the reference track Tr.
Record the rewrite command in. Figure 5 shows the first track T
Multiple (4) data blocks D that are the first part of 0
Indicates that a rewrite command is recorded in B1 to DB4.
This rewrite command is made up of a plurality of data blocks DB1 to DB.
Repeat recording (multiple recording) on B4.

【0019】図5のデータブロックDB1 〜DB7 はそ
れぞれ図6に示すフォーマットに形成されており、同期
信号(バースト信号)領域41と、ギャップ領域42
と、コントロールフィールド領域43と、データフィー
ルド領域44と、CRC領域45と、ギャップ領域46
とから成る。書換えコマンドはコントロールフィールド
領域43に記録する。新しいプログラムは図5のデータ
ブロックDB5 以後のデータフィールド44に記録す
る。
The data blocks DB1 to DB7 in FIG. 5 are formed in the format shown in FIG. 6, respectively, and include a sync signal (burst signal) area 41 and a gap area 42.
A control field area 43, a data field area 44, a CRC area 45, and a gap area 46.
It consists of and. The rewrite command is recorded in the control field area 43. The new program is recorded in the data field 44 after the data block DB5 in FIG.

【0020】新しいプログラムをテープ9から供給して
フラッシュPROM5に書込む動作は次の通りである。
まず、新しいプログラムが記録されているテープカセッ
ト8を記録再生装置に装着すると、図2のプロック26
に従ってフテ−プ9の種類を判断するために自動的にテ
−プ9のトラックT0 の再生が開始する。これにより、
最初のトラックT0 のデータブロックDB1 〜DB4 か
ら書換えコマンドが読み取られ、これが再生回路15と
バス7を介してCPU4に送られる。図2のブロック2
7で書換え用テ−プカセット27と判断された時には、
ブロック28に従って、フラッシュPROM5の領域5
bの第2の書換えプログラムがRAM6に転送される。
The operation of supplying a new program from the tape 9 and writing it in the flash PROM 5 is as follows.
First, when the tape cassette 8 in which the new program is recorded is mounted in the recording / reproducing apparatus, the block 26 in FIG.
In order to judge the type of the tape 9, the reproduction of the track T0 of the tape 9 automatically starts. This allows
The rewrite command is read from the data blocks DB1 to DB4 of the first track T0 and sent to the CPU 4 via the reproducing circuit 15 and the bus 7. Block 2 of FIG.
When it is judged to be the rewriting tape cassette 27 in 7,
Area 5 of flash PROM 5 according to block 28
The second rewriting program of b is transferred to the RAM 6.

【0021】その後は、RAM6に転送された図7の第
2の書換えプログラムに従って磁気テープ装置1が動作
する。書換えプログラムは図3の一部を変更したもので
あって、ブロック50でプログラムがスタートすると、
次にブロック51においてフラッシュPROM5を書込
み可能状態に設定する。次に、ブロック52に示すよう
に記録再生装置2を駆動する。次に、ブロック53に示
すように記録再生装置2から得られた新しいプログラム
をRAM6にストアする。次に、ブロック54に示すよ
うにRAM6の新しいプログラムをフラッシュPROM
5に転送し、領域5aに新しいメインプログラムを書込
み、領域5bに新しい書換えプログラムを書込む。な
お、図3において既に説明したように、新しいプログラ
ムの全部をRAM6にストアできないので、新しいプロ
グラムを分割してRAM6にストアし、これをフラッシ
ュPROM5に転送する。このため、ブロック55にお
いて次の、プログラムがあるか否かが判断され、次のプ
ログラムが有る時にはブロック52に戻り、無い時には
ブロック56ですべての動作を終了させる。
After that, the magnetic tape device 1 operates according to the second rewriting program of FIG. 7 transferred to the RAM 6. The rewriting program is a modification of part of FIG. 3, and when the program starts at block 50,
Next, in block 51, the flash PROM 5 is set to the writable state. Next, as shown in block 52, the recording / reproducing apparatus 2 is driven. Next, as shown in block 53, the new program obtained from the recording / reproducing apparatus 2 is stored in the RAM 6. Then, as shown in block 54, the new program in RAM 6 is flashed to PROM.
5, the new main program is written in the area 5a, and the new rewriting program is written in the area 5b. As already described with reference to FIG. 3, since the entire new program cannot be stored in the RAM 6, the new program is divided and stored in the RAM 6 and transferred to the flash PROM 5. Therefore, in block 55, it is judged whether or not there is a next program. When there is a next program, the process returns to block 52, and when there is no next program, all the operations are completed in block 56.

【0022】図7に従う書換え方法の場合には、図3の
方法と同一の利点を有する他に、ホスト装置16に頼ら
ないで磁気テープ装置1のみでプログラムの書換えがで
きるという利点も有する。
The rewriting method according to FIG. 7 has the same advantages as the method of FIG. 3 and also has the advantage that the program can be rewritten only by the magnetic tape device 1 without relying on the host device 16.

【0023】[0023]

【変形例】本発明は上述の実施例に限定されるものでな
く、例えば次の変形が可能なものである。 (1) ホスト装置16と磁気テープ装置1との間のイ
ンタフェースを、フロッピーディスクインタフェースを
使用するように構成することができる。 (2) ホスト装置16から磁気テープ装置等の電子装
置にプログラム書換えコマンドを送る時に、専用の制御
信号線を使用しないで、別の目的のための制御信号線を
時分割で使用してもよい。 (3) フラッシュPROM5の領域5aのメインプロ
グラムのみを書換え、領域5bの書換えプログラムの書
換えは実行しないようにすることもできる。この場合に
は、RAM6に転送された書換えプログラムをメインプ
ログラムの書換え前又は後にRAM6からフラッシュP
ROM5の領域5bに戻すことが望ましい。 (4) 実施例ではホスト装置16に基づくメインプロ
グラムの書換えの時には第1の書換えプログラムのみを
RAM6に転送し、テ−プ9に基づくメインプログラム
の書換えの時には第2の書換えプログラムのみをRAM
6に転送したが、第1及び第2の書換えプログラムの両
方をRAM6に転送するようにすることができる。 (5) 図2のブロック23のデ−タ記録再生のための
プログラムのみを書換えるように構成することができ
る。 (6) 磁気テープ装置1に限ることなく、プログラム
制御される光磁気記録装置等の種々の電子機器に本発明
を適用することができる。 (7) フラッシュPROM5の代りにこれに類似の書
換え可能な固定(不揮発性)メモリを使用できる。
[Modifications] The present invention is not limited to the above-described embodiment, and for example, the following modifications are possible. (1) The interface between the host device 16 and the magnetic tape device 1 can be configured to use a floppy disk interface. (2) When the program rewriting command is sent from the host device 16 to an electronic device such as a magnetic tape device, a dedicated control signal line may be used in a time-division manner without using a dedicated control signal line. . (3) It is possible to rewrite only the main program in the area 5a of the flash PROM 5 and not rewrite the rewriting program in the area 5b. In this case, the rewriting program transferred to the RAM 6 is flashed from the RAM 6 before or after the rewriting of the main program.
It is desirable to return it to the area 5b of the ROM 5. (4) In the embodiment, when rewriting the main program based on the host device 16, only the first rewriting program is transferred to the RAM 6, and when rewriting the main program based on the tape 9, only the second rewriting program is RAM.
However, it is possible to transfer both the first and second rewriting programs to the RAM 6. (5) It is possible to rewrite only the program for data recording / reproducing in block 23 of FIG. (6) The present invention can be applied not only to the magnetic tape device 1 but also to various electronic devices such as a program-controlled magneto-optical recording device. (7) A similar rewritable fixed (non-volatile) memory can be used instead of the flash PROM 5.

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

【図1】本発明の実施例に係わる磁気テープ装置を示す
ブロック図である。
FIG. 1 is a block diagram showing a magnetic tape device according to an embodiment of the present invention.

【図2】図1の装置のメインプログラムを概略的に示す
図である。
FIG. 2 is a diagram schematically showing a main program of the apparatus shown in FIG.

【図3】図1の装置の第1の書換えプログラムを概略的
に示す図である。
3 is a diagram schematically showing a first rewriting program of the apparatus of FIG.

【図4】図1の装置の別の書換え方法のための磁気テー
プ装置の一部を示す平面図である。
4 is a plan view showing a part of a magnetic tape device for another rewriting method of the device of FIG. 1. FIG.

【図5】図4のトラックの一部を示す図である。5 is a diagram showing a part of the track of FIG. 4. FIG.

【図6】図5のデータブロックのフォーマットを示す図
である。
FIG. 6 is a diagram showing a format of a data block of FIG.

【図7】第2の書換えプログラムを概略的に示す図であ
る。
FIG. 7 is a diagram schematically showing a second rewriting program.

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

1 磁気テープ装置 4 CPU 5 フラッシュPROM 6 RAM 1 magnetic tape device 4 CPU 5 flash PROM 6 RAM

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 所定のプログラムに従って動作する電子
装置と、前記電子装置を前記所定のプログラムに従うよ
うに動作させるために前記電子装置に接続されたCPU
と、前記CPUに接続されたRAMと、前記CPU及び
前記RAMに接続された書換え可能な不揮発性メモリと
から成り、 前記書換え可能な不揮発性メモリに前記所定のプログラ
ムが書込まれていると共に、前記所定のプログラムの書
換えを実行するための書換えプログラムが予め書込まれ
ていることを特徴とする電子機器。
1. An electronic device operating according to a predetermined program, and a CPU connected to the electronic device for operating the electronic device according to the predetermined program.
And a RAM connected to the CPU, and a rewritable nonvolatile memory connected to the CPU and the RAM, and the predetermined program is written in the rewritable nonvolatile memory, An electronic device in which a rewriting program for executing rewriting of the predetermined program is prewritten.
【請求項2】 所定のプログラムに従って動作する電子
装置と、前記電子装置を前記所定のプログラムに従うよ
うに動作させるために前記電子装置に接続されたCPU
と、前記CPUに接続されたRAMと、前記CPU及び
前記RAMに接続された書換え可能な不揮発性メモリと
から成り、 前記書換え可能な不揮発性メモリに前記所定のプログラ
ムが書込まれていると共に、前記所定のプログラムの書
換えを実行するための書換えプログラムが予め書込まれ
ている電子機器において、前記不揮発性メモリの前記所
定のプログラムを書換える方法であって、 前記CPUに所定のプログラムの書換え指令を与えるス
テップと、 前記CPUが前記書換え指令に応答して前記書換え可能
な不揮発性メモリの前記書換えプログラムを読出して前
記RAMに転送するステップと、 前記CPUを前記所定プログラムに従う動作から前記R
AMの書換えプログラムに従う動作に切り換えるステッ
プと、 新しい所定プログラムを用意するステップと、 前記CPUが前記RAMの書換えプログラムに従って前
記新しい所定プログラムを前記書換え可能な不揮発性メ
モリに書込むステップとを有していることを特徴とする
プログラム書換え方法。
2. An electronic device operating according to a predetermined program, and a CPU connected to the electronic device for operating the electronic device according to the predetermined program.
And a RAM connected to the CPU, and a rewritable nonvolatile memory connected to the CPU and the RAM, and the predetermined program is written in the rewritable nonvolatile memory, A method for rewriting the predetermined program in the non-volatile memory in an electronic device in which a rewriting program for executing the rewriting of the predetermined program is previously written, comprising: In response to the rewriting command, the CPU reads the rewriting program of the rewritable non-volatile memory and transfers the rewriting program to the RAM;
The method includes the steps of switching to an operation according to the rewriting program of AM, preparing a new predetermined program, and writing the new predetermined program into the rewritable nonvolatile memory by the CPU according to the rewriting program of the RAM. A program rewriting method characterized in that
【請求項3】 前記電子機器はホスト装置に接続されて
使用されるものであり、前記所定のプログラムの書換え
指令及び前記新しい所定プログラムの用意を前記CPU
に接続されたホスト装置によって行うことを特徴とする
請求項2記載のプログラム書換え方法。
3. The electronic device is used by being connected to a host device, and the CPU prepares a rewriting command of the predetermined program and preparation of the new predetermined program.
The program rewriting method according to claim 2, wherein the program rewriting method is performed by a host device connected to.
【請求項4】 前記電子装置は、記録媒体と、信号変換
ヘッドと、前記記録媒体と前記ヘッドとの間に相対的走
査運動を生じさせるための駆動装置とを有するものであ
り、 前記所定のプログラムの書換え指令及び前記新しい所定
プログラムの用意は前記所定プログラムの書換え指令及
び前記新しい所定プログラムが書込まれた記録媒体を用
意し、この記録媒体から前記ヘッドによって前記所定プ
ログラムの書換え指令及び前記新しい所定プログラムを
読取って前記CPUに送ることである請求項2記載のプ
ログラム書換え方法。
4. The electronic device comprises a recording medium, a signal conversion head, and a drive device for causing relative scanning movement between the recording medium and the head, and the predetermined device. To prepare the program rewriting command and the new predetermined program, a recording medium in which the predetermined program rewriting command and the new predetermined program are written is prepared, and from this recording medium, the head rewrite command and the new recording program are written by the head. The program rewriting method according to claim 2, wherein the predetermined program is read and sent to the CPU.
JP6232274A 1994-08-31 1994-08-31 Electronic apparatus driven by program and rewriting method for program Pending JPH0876989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6232274A JPH0876989A (en) 1994-08-31 1994-08-31 Electronic apparatus driven by program and rewriting method for program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6232274A JPH0876989A (en) 1994-08-31 1994-08-31 Electronic apparatus driven by program and rewriting method for program

Publications (1)

Publication Number Publication Date
JPH0876989A true JPH0876989A (en) 1996-03-22

Family

ID=16936676

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6232274A Pending JPH0876989A (en) 1994-08-31 1994-08-31 Electronic apparatus driven by program and rewriting method for program

Country Status (1)

Country Link
JP (1) JPH0876989A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321979B1 (en) 1998-04-24 2001-11-27 Nec Corporation Magnetic tape apparatus and computer-readable magnetic tape medium
JP2006113998A (en) * 2004-09-17 2006-04-27 Yamaha Corp Electronic device, method for controlling same, digital signal generating method, and recording medium
JP2006133986A (en) * 2004-11-04 2006-05-25 Funai Electric Co Ltd Firmware rewriting system for disk device
JP2006285587A (en) * 2005-03-31 2006-10-19 Fujitsu Ltd Information processor, and program preparing method
JP2009163532A (en) * 2008-01-08 2009-07-23 Funai Electric Co Ltd Electronic device
US8095696B2 (en) 2004-09-17 2012-01-10 Yahama Corporation Control method for rewriting firmware on an electronic device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02236730A (en) * 1989-03-10 1990-09-19 Nec Corp Program rewritable type computer
JPH03273424A (en) * 1990-03-23 1991-12-04 Canon Inc Recording and reproducing device for commutative storage medium
JPH04109334A (en) * 1990-08-30 1992-04-10 Toshiba Corp Program changing device
JPH04291421A (en) * 1991-03-20 1992-10-15 Fujitsu Ltd Microprogram code installing system
JPH04299728A (en) * 1991-03-28 1992-10-22 Sony Corp Data recorder
JPH05204653A (en) * 1990-12-06 1993-08-13 Tandberg Data As Device and method of storing data
JPH05210599A (en) * 1992-01-31 1993-08-20 Mitsubishi Plastics Ind Ltd Information processor
JPH05242559A (en) * 1991-10-15 1993-09-21 Tandberg Data As Data-identifying device for magnetic medium driving device and thereof
JPH05265739A (en) * 1992-03-16 1993-10-15 Sankyo Seiki Mfg Co Ltd Program changing method for magnetic tape device
JPH05342094A (en) * 1992-06-05 1993-12-24 Sharp Corp Computer device
JPH06187142A (en) * 1992-12-17 1994-07-08 Sony Corp Data processor

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02236730A (en) * 1989-03-10 1990-09-19 Nec Corp Program rewritable type computer
JPH03273424A (en) * 1990-03-23 1991-12-04 Canon Inc Recording and reproducing device for commutative storage medium
JPH04109334A (en) * 1990-08-30 1992-04-10 Toshiba Corp Program changing device
JPH05204653A (en) * 1990-12-06 1993-08-13 Tandberg Data As Device and method of storing data
JPH04291421A (en) * 1991-03-20 1992-10-15 Fujitsu Ltd Microprogram code installing system
JPH04299728A (en) * 1991-03-28 1992-10-22 Sony Corp Data recorder
JPH05242559A (en) * 1991-10-15 1993-09-21 Tandberg Data As Data-identifying device for magnetic medium driving device and thereof
JPH05210599A (en) * 1992-01-31 1993-08-20 Mitsubishi Plastics Ind Ltd Information processor
JPH05265739A (en) * 1992-03-16 1993-10-15 Sankyo Seiki Mfg Co Ltd Program changing method for magnetic tape device
JPH05342094A (en) * 1992-06-05 1993-12-24 Sharp Corp Computer device
JPH06187142A (en) * 1992-12-17 1994-07-08 Sony Corp Data processor

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321979B1 (en) 1998-04-24 2001-11-27 Nec Corporation Magnetic tape apparatus and computer-readable magnetic tape medium
JP2006113998A (en) * 2004-09-17 2006-04-27 Yamaha Corp Electronic device, method for controlling same, digital signal generating method, and recording medium
US8095696B2 (en) 2004-09-17 2012-01-10 Yahama Corporation Control method for rewriting firmware on an electronic device
JP2006133986A (en) * 2004-11-04 2006-05-25 Funai Electric Co Ltd Firmware rewriting system for disk device
JP2006285587A (en) * 2005-03-31 2006-10-19 Fujitsu Ltd Information processor, and program preparing method
JP2009163532A (en) * 2008-01-08 2009-07-23 Funai Electric Co Ltd Electronic device

Similar Documents

Publication Publication Date Title
JP3870215B1 (en) Data writing / reading control method for tape recorder
EP2328144B1 (en) Device and method for writing data in tape media
JP5065203B2 (en) Apparatus and method for converting data format
JP5567260B2 (en) Apparatus and method for writing data to tape medium
JPH0876989A (en) Electronic apparatus driven by program and rewriting method for program
JPWO2011058794A1 (en) Apparatus and method for controlling data writing
JPS61241824A (en) Control method for magnetic disk device
JP2002074903A (en) Magnetic recording and reproducing device and magnetic recording and reproducing method
JPH1011878A (en) Disk device, and monitor value keeping and controlling method in the device
WO2000014742A1 (en) Recording device and method, reproducing device and method, and recording medium
JPH10161881A (en) Data recording and reproducing device capable of downloading of control program
JP2616738B2 (en) Servo track writer
JPH04285783A (en) System for managing magnetic tape storage device
JPH03214315A (en) Digital data recording and reproducing device
JP3336044B2 (en) Recording method on information recording medium
JP2001256695A (en) Magnetic recording and reproducing device and access method for magnetic tape
JP2504256B2 (en) Control method of library type magnetic tape subsystem
JPH1031564A (en) Data recording device
JP2972365B2 (en) Access control method for magnetic tape storage
JPH10133867A (en) Data reproducing device and data recording medium
JPH09282603A (en) Disk device and monitor value preservation control method in the same device
JPH0258707A (en) Magnetic tape device
JPH0612187A (en) Magnetic tape controller
JPH05314490A (en) Optical disk drive apparatus and controlling method thereof
JPH05173724A (en) Magnetic tape storage device