JPH10283173A - Program write system - Google Patents

Program write system

Info

Publication number
JPH10283173A
JPH10283173A JP8504697A JP8504697A JPH10283173A JP H10283173 A JPH10283173 A JP H10283173A JP 8504697 A JP8504697 A JP 8504697A JP 8504697 A JP8504697 A JP 8504697A JP H10283173 A JPH10283173 A JP H10283173A
Authority
JP
Japan
Prior art keywords
rom
program
storing
microcomputer
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.)
Pending
Application number
JP8504697A
Other languages
Japanese (ja)
Inventor
Makoto Hasegawa
誠 長谷川
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.)
Hitachi Denshi KK
Original Assignee
Hitachi Denshi KK
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 Hitachi Denshi KK filed Critical Hitachi Denshi KK
Priority to JP8504697A priority Critical patent/JPH10283173A/en
Publication of JPH10283173A publication Critical patent/JPH10283173A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To perform on-board write at a low cost with excellent work efficiency by providing a means for packaging or connecting an ROM storing a boot program means for writing a firmware program in the ROM through a microcomputer. SOLUTION: In the state of packaging the ROM 6 storing a boot program, a personal computer 4 is activated. At the time, the personal computer 4 and the microcomputer 1 are connected through terminals 14 and 15 and an interface 12. Then, immediately after the microcomputer 1 is activated, a processing for reading serial data (firmware program) from the personal computer 4 by a program for booting stored in the ROM 6 storing the boot program and writing it in the ROM 2 for storing the firmware program is performed. After write is ended, the ROM 6 storing the boot program is detached from the terminal 16.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は電子機器におけるフ
ァームウエアプログラムのオンボード書き込み方式の改
良に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement in an on-board writing method for a firmware program in an electronic device.

【0002】[0002]

【従来の技術】図2及び図3に従来のオンボード書き込
み方式を示すブロック図の一例を示す。図2はファーム
ウエアプログラムを格納するROMに対しアドレス及び
データ信号線を介して外部書き込み装置から直接書き込
む方式である。
2. Description of the Related Art FIGS. 2 and 3 are block diagrams showing a conventional on-board writing method. FIG. 2 shows a method of directly writing data from an external writing device to a ROM storing a firmware program via address and data signal lines.

【0003】図3は予めマイコン内のプログラム格納
(ROM)領域にブートプログラムを格納したものであ
る。図3は、外部(この場合はパソコンである)からシ
リアルデータでマイコンに取り込んだファームウエアプ
ログラムを、マイコン内のブートプログラムに従ってR
OMに格納する方式である。
FIG. 3 shows an example in which a boot program is stored in a program storage (ROM) area in a microcomputer in advance. FIG. 3 shows a firmware program loaded into the microcomputer as serial data from outside (in this case, a personal computer) according to the boot program in the microcomputer.
This is a method of storing in OM.

【0004】図2、図3において、1はマイコン、2は
ファームウエアプログラムを格納するROM、3は装置
周辺回路、4はパソコン、5はファームウエを格納する
ROM2に直接ファームウエアプログラムを書き込むた
めの制御回路、6はブート用ROM、7はアドレスバ
ス、8はデータバス、9はファームウエアを格納するR
OMに与える制御信号、10は装置周辺回路に与える制
御信号、11はブート用ROMに与える制御信号、12
はシリアル転送用インタフェース、13はファームウエ
アを格納するROM2に直接書き込みするための制御回
路からマイコンに与える制御信号、14はマイコン1内
のブートプログラム領域を示す。
In FIGS. 2 and 3, 1 is a microcomputer, 2 is a ROM for storing a firmware program, 3 is a device peripheral circuit, 4 is a personal computer, and 5 is a firmware for directly writing the firmware program to the ROM 2 for storing firmware. , A boot ROM, 7 an address bus, 8 a data bus, and 9 an R for storing firmware.
A control signal given to the OM, a control signal given to the device peripheral circuit, a control signal given to the boot ROM,
Denotes a serial transfer interface, 13 denotes a control signal supplied from a control circuit for directly writing to the ROM 2 storing firmware to the microcomputer, and 14 denotes a boot program area in the microcomputer 1.

【0005】図2の方式では外部に書き込み用アダプタ
(ROMライタ等)及び多芯の接続ケーブル及び多芯の
接続用コネクタが必要となったり、書き込みの時、準備
に多くの時間を要する欠点があった。 従って小ロット
他品種の製品の場合頻繁に接続換えが発生し、製造効率
が低下する欠点もある。 また、数多くのROMにファ
ームウエアを書き込む場合これらのジグ類の接続がRO
Mの数だけ必要となる欠点もあった。
The method shown in FIG. 2 requires externally a write adapter (ROM writer, etc.), a multi-core connection cable and a multi-core connection connector, and requires a lot of time to prepare for writing. there were. Therefore, in the case of a product of a small lot or another kind, there is also a disadvantage that the connection is frequently changed and the manufacturing efficiency is reduced. When writing firmware to many ROMs, the connection of these jigs is RO
There is also a disadvantage that the number of M is required.

【0006】図3の方式ではマイコン1自体に予めファ
ームウエアを書き込むためのブート用プログラムを書き
込んだ後(ブートプログラム領域14)実装しなければ
ならず、一旦マイコン1にブート用プログラムを書き込
むための作業工程が入り作業工程が煩雑になる欠点があ
った。 また当該マイコンにプログラムを書き込むため
にROMライタとマイコンを接続するための変換アダプ
タが必要となる欠点もある。 更に当該マイコンにはブ
ートプログラムを格納するためのROM領域があるもの
としなければならず、このようなマイコンの価格はRO
M領域の無いマイコンより高価となる欠点があった。
In the method shown in FIG. 3, a boot program for writing firmware into the microcomputer 1 itself must be written in advance (boot program area 14) and then mounted. There is a drawback that the work process enters and the work process becomes complicated. Another drawback is that a conversion adapter for connecting the ROM writer and the microcomputer is required to write the program into the microcomputer. Further, the microcomputer must have a ROM area for storing a boot program, and the price of such a microcomputer is RO
There was a drawback that it was more expensive than a microcomputer without the M area.

【0007】[0007]

【発明が解決しようとする課題】本発明はこれらの欠点
を解決するため、作業効率良く安価にオンボード書き込
みを実現するものである。
SUMMARY OF THE INVENTION In order to solve these disadvantages, the present invention realizes on-board writing with good work efficiency and at low cost.

【0008】[0008]

【課題を解決するための手段】本発明は上記の目的を達
成するため、予めブート用プログラムをもったROMを
実装できる領域に、オンボード書き込みのときのみ当該
ROM(ブートプログラムをもった)を実装し、そのブ
ート用プログラムに従って外部からシリアルでマイコン
に取り込んだファームウエアプログラムをブートプログ
ラムに従ってそのROMに書き込むものである。
According to the present invention, in order to attain the above object, the ROM (having a boot program) is provided only in an on-board writing operation in an area where a ROM having a boot program can be mounted in advance. A firmware program that is mounted and externally serially loaded into the microcomputer according to the boot program is written into the ROM according to the boot program.

【0009】その結果、図2のような専用のジグは必要
とせずまた図3のようなROMを内蔵した高価なマイコ
ンとすることなく、ROMの無い安価なマイコンを使用
することができ、安価な構成でオンボード書き込み機能
を提供することができる。
As a result, a dedicated jig as shown in FIG. 2 is not required, and an inexpensive microcomputer without ROM can be used without using an expensive microcomputer with a built-in ROM as shown in FIG. An on-board writing function can be provided with a simple configuration.

【0010】書き込み後はブートプログラム用のROM
ははずしても問題ない(通常の動作ではブートプログラ
ムは必要としないため)。
After writing, ROM for boot program
There is no problem if you remove (because a normal operation does not require a boot program).

【0011】またブートプログラム用のROMが無けれ
ば書き込みが出来ないため誤って書き込みされず、プロ
グラム書き込みミスを防止出来る利点もある。
There is also an advantage that writing cannot be performed without a ROM for a boot program, so that writing is not erroneously performed and a program writing error can be prevented.

【0012】[0012]

【発明の実施の形態】本発明の実施例を図1により説明
する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIG.

【0013】図1は本発明の一実施例を示すブロック図
である。
FIG. 1 is a block diagram showing one embodiment of the present invention.

【0014】1はマイコン、2はファームウエアを格納
するROM、3は装置周辺回路、4はパソコン、6はブ
ートプログラムを格納するROM、7はアドレスバス、
8はデータバス、9はファームウエアを格納するROM
に与える制御信号、10は装置周辺回路に与える制御信
号、11はブートプログラムを格納したROM6に与え
る制御信号、12はシリアル転送用インタフェース。
1 is a microcomputer, 2 is a ROM for storing firmware, 3 is a device peripheral circuit, 4 is a personal computer, 6 is a ROM for storing a boot program, 7 is an address bus,
8 is a data bus, 9 is a ROM for storing firmware
10 is a control signal applied to the peripheral circuits of the device, 11 is a control signal applied to the ROM 6 storing a boot program, and 12 is a serial transfer interface.

【0015】まず、ファームウエアプログラムをROM
2に書き込む方法について説明する。この状態ではブー
トプログラムを格納したROM6を実装した状態でパソ
コン4を起動する。このとき、パソコン4とマイコン1
は端子14、15、インターフェース12を介して接続
されている。マイコン1が起動した直後はブートプログ
ラムを格納したROM6に格納されたブート用プログラ
ムによってパソコン4からのシリアルデータ(ファーム
ウエアプログラム)を読み込み、ファームウエアプログ
ラムを格納するROM2に書き込む処理が行われる。
このとき、同時に、制御信号9によりROM2に対し書
き込み処理であることを知らせる制御信号10はROM
2が書き込み処理中であることを知らせ周辺回路3が不
用意に動作し、この書き込み処理に影響を及ぼさないよ
うにする。 書き込み終了後はブートプログラムを格納
したROM6は端子16から取り外す。 取り外した後
マイコン1が起動してもブートプログラムを格納したR
OM6が接続されていないことをマイコン1が判定し、
ファームウエアプログラムをROM2に書き込む処理は
行われず以降ROM2のファームウエアプログラムに従
って当該装置は動作する。
First, a firmware program is stored in a ROM
2 will be described. In this state, the personal computer 4 is started while the ROM 6 storing the boot program is mounted. At this time, the personal computer 4 and the microcomputer 1
Are connected via terminals 14 and 15 and an interface 12. Immediately after the microcomputer 1 is started, a process of reading serial data (firmware program) from the personal computer 4 by the boot program stored in the ROM 6 storing the boot program and writing the serial data (firmware program) into the ROM 2 storing the firmware program is performed.
At this time, at the same time, the control signal 10 for notifying the ROM 2 of the write processing by the control signal 9 is transmitted to the ROM 2.
2 notifies that the writing process is being performed, and the peripheral circuit 3 operates carelessly so as not to affect the writing process. After the writing is completed, the ROM 6 storing the boot program is removed from the terminal 16. R that stores the boot program even if microcomputer 1 starts after removal
The microcomputer 1 determines that the OM 6 is not connected,
The process of writing the firmware program into the ROM 2 is not performed, and the device operates thereafter according to the firmware program in the ROM 2.

【0016】ファームウエアプログラムの改版が生じた
場合は再度ブートプログラムを格納したROM6を実装
した状態でマイコン1を起動する。 前に述べた動作と
同じく、マイコン1はブートプログラムを格納したRO
M6が実装されたことを検知しパソコン4からの改版さ
れたファームウエアプログラムをシリアルデータを通し
てROM2に書き込む処理が行われる。また、前記ブー
トプログラム格納したROM6は端子16を介する接続
ではなく、実装してもよい。
When the firmware program is revised, the microcomputer 1 is started again with the ROM 6 storing the boot program mounted thereon. Similar to the operation described above, the microcomputer 1 uses the RO storing the boot program.
Detecting that M6 has been implemented, a process of writing the revised firmware program from the personal computer 4 to the ROM 2 through serial data is performed. The ROM 6 storing the boot program may be mounted instead of being connected via the terminal 16.

【0017】[0017]

【発明の効果】以上説明したように本発明によれば、予
めブート用ROMを実装してパソコンをシリアルインタ
フェースに接続した後当該装置を起動するのみのため、
書き込み時準備時間を短縮することが出来る。また、書
き込み用の専用の多芯の接続ケーブル及び多芯の接続用
コネクタが不要で、書き込み用の設備を安価に実現出来
る。 また、マイコン内に予めブート用プログラムを書
き込む必要が無いため、ROMを内蔵しない安価なマイ
コンで実現出来る利点がある。 更に入荷後マイコンに
ブートプログラムを書き込みする行程が無く、作業工程
が減らすことが出来る。よってマイコンにブートプログ
ラムを書き込んだ後実装するときより短時間で当該装置
を製造出来る利点がある。
As described above, according to the present invention, since only a boot ROM is mounted in advance and a personal computer is connected to a serial interface and then the apparatus is started,
Preparation time for writing can be reduced. In addition, a dedicated multi-core connection cable and multi-core connection connector for writing are not required, and writing equipment can be realized at low cost. Further, since there is no need to write a boot program in the microcomputer in advance, there is an advantage that it can be realized by an inexpensive microcomputer without a built-in ROM. Furthermore, there is no step of writing the boot program in the microcomputer after the arrival, and the number of working steps can be reduced. Therefore, there is an advantage that the device can be manufactured in a shorter time than when a boot program is written and mounted in a microcomputer.

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

【図1】本発明の一実施例を示すブロック図FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】従来の書き込み方式を示すブロック図FIG. 2 is a block diagram showing a conventional writing method.

【図3】従来の書き込み方式を示すブロック図FIG. 3 is a block diagram showing a conventional writing method.

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

1:マイコン、2:ファームウエアを格納するROM、
3:装置周辺回路、4:パソコン、5:ファームウエア
を格納するROM2に直接書き込みするための制御回
路、6:ブート用ROM、7:アドレスバス、8:デー
タバス、9:ファームウエアを格納するROMに与える
制御信号、10:装置周辺回路に与える制御信号、1
1:ブート用ROMに与える制御信号、12:シリアル
転送用インタフェース、13:ファームウエアを格納す
るROM2に直接書き込みするための制御回路からマイ
コンに与える制御信号。
1: microcomputer, 2: ROM for storing firmware,
3: device peripheral circuit, 4: personal computer, 5: control circuit for directly writing in ROM 2 for storing firmware, 6: boot ROM, 7: address bus, 8: data bus, 9: storing firmware Control signal given to ROM, 10: control signal given to device peripheral circuits, 1
1: a control signal given to a boot ROM, 12: a serial transfer interface, 13: a control signal given to a microcomputer from a control circuit for directly writing in a ROM 2 storing firmware.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 プログラム処理により動作する電子装置
のファームウエアプログラムを格納するROM及びマイ
クロコンピュータを該電子装置より取り外すことなしに
前記ファームウエアプログラムを前記ROMに書き込む
方法に於いて、前記マイクロコンピュータを介して前記
ROMに前記ファームウエアプログラムを書き込むブー
トプログラム手段を記憶したROMを実装または接続す
る手段を備えたことを特徴とするプログラム書き込み方
式。
1. A method for writing a firmware program into a ROM without removing a ROM and a microcomputer from the electronic device, the firmware storing a firmware program of an electronic device operating by a program processing. And a means for mounting or connecting a ROM storing boot program means for writing the firmware program into the ROM via the ROM.
JP8504697A 1997-04-03 1997-04-03 Program write system Pending JPH10283173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8504697A JPH10283173A (en) 1997-04-03 1997-04-03 Program write system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8504697A JPH10283173A (en) 1997-04-03 1997-04-03 Program write system

Publications (1)

Publication Number Publication Date
JPH10283173A true JPH10283173A (en) 1998-10-23

Family

ID=13847743

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8504697A Pending JPH10283173A (en) 1997-04-03 1997-04-03 Program write system

Country Status (1)

Country Link
JP (1) JPH10283173A (en)

Similar Documents

Publication Publication Date Title
EP0403117B1 (en) Feature board with automatic adjustment to slot position
EP0784818B1 (en) Microprocessor programming using a state machine
EP0552873A1 (en) Modifying system configuration in a computer system
JPH07113907B2 (en) card
US6175890B1 (en) Device for efficiently handling interrupt request processes
JPH10283173A (en) Program write system
CN100552627C (en) A kind of method of electronic product being carried out Data Update
JPS6227409B2 (en)
GB2192076A (en) Data backup system for use with photographic printer
JP3269582B2 (en) Control scheme for unit multiplex system.
JPH07239921A (en) Pc card
JPH10144088A (en) Write-in method for electrically erasable programmable rom
JP3353819B2 (en) Connection mechanism and connection method between intelligent board and console terminal
JP3002282B2 (en) Emulation tester connection device
JPH09130089A (en) Electronic part mounting method and device
JPH03154922A (en) Terminal equipment capable of changing program
JP2002182939A (en) Memory writing method and memory writer
JP3305474B2 (en) Activation device for information processing device
JP2001318907A (en) Microcomputer incorporating flash memory
JPH10222454A (en) Unit identification device
JPH1165884A (en) Microcomputer and debugging method therefor
JPH05120146A (en) Decoding preventing method for storage
JPH10340189A (en) Boot data writing method utilizing cpu bus and adapter corresponding to the writing method
JP2000089949A (en) Program writing method
JPH0887896A (en) Card-shaped circuit block and writing method thereof