JPH03265030A - Computer loading device - Google Patents

Computer loading device

Info

Publication number
JPH03265030A
JPH03265030A JP6251690A JP6251690A JPH03265030A JP H03265030 A JPH03265030 A JP H03265030A JP 6251690 A JP6251690 A JP 6251690A JP 6251690 A JP6251690 A JP 6251690A JP H03265030 A JPH03265030 A JP H03265030A
Authority
JP
Japan
Prior art keywords
memory
program
module
modules
rewritable memory
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
JP6251690A
Other languages
Japanese (ja)
Inventor
Fumio Sumita
住田 文雄
Manabu Iguchi
学 井口
Yoshihisa Kagaya
加賀谷 善久
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.)
OKI FARM WEAR SYST KK
Oki Electric Industry Co Ltd
Original Assignee
OKI FARM WEAR SYST KK
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OKI FARM WEAR SYST KK, Oki Electric Industry Co Ltd filed Critical OKI FARM WEAR SYST KK
Priority to JP6251690A priority Critical patent/JPH03265030A/en
Publication of JPH03265030A publication Critical patent/JPH03265030A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To partially change a program by storing a minutely divided module into an unreloadable memory and calling these modules by a host routine stored in a reloadable memory. CONSTITUTION:A processor 1 is composed of an arithmetic unit or the like and the programs stored in unreloadable and reloadable memories 2 and 3 are successively taken out through a bus line 10 and executed. The memory 2 stores plural modules A, B... which are divided to be small about 256 bytes in respect to the 48K bytes as full capacity. When the module A is changed for changing the program, a call instruction CALL 4000 of the host routine in the memory 3 is changed to 2000. Next, a changed module A' is prepared at addresses 2000-20FF in the memory 3. Thus, it is enough only to change the memory 3 and the program can be changed without changing a memory 4.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、プロセッサ及び不揮発性メモリ等から1成る
コンピュータを搭載した装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an apparatus equipped with a computer consisting of a processor, a nonvolatile memory, and the like.

(従来の技術) 第2図は、従来のマイクロコンピュータ搭載装置の構成
例を示すブロック図である。
(Prior Art) FIG. 2 is a block diagram showing a configuration example of a conventional microcomputer-equipped device.

図示の装置は、パスライン20に接続された、プロセッ
サ21と、メモリ22と、駆動回路4等から成る。この
装置は、例えば、プリンタ等の制御を行なうための装置
である。
The illustrated device includes a processor 21, a memory 22, a drive circuit 4, etc., which are connected to a pass line 20. This device is, for example, a device for controlling a printer or the like.

プロセッサ21は、演算装置等から成り、メモリ22に
格納されたプログラムを逐次取り出して実行する。例え
ば、3000番地からプログラムが格納されているとす
ると、3000番地から1バイトずつのデータが読み出
されて実行される。
The processor 21 is composed of an arithmetic unit and the like, and sequentially retrieves and executes programs stored in the memory 22. For example, if a program is stored starting at address 3000, data one byte at a time is read out from address 3000 and executed.

メモリ22は、例えば、不揮発性のメモリであり、マス
クROM又はEFROMから成る。このメモリ22には
、プログラムの全体が格納されている。マスクROMは
、書き換え不能なメモリの−種である。  EFROM
は、書き換え可能なメモリの一種である。このメモリ2
2には、プロセッサ21で実行されるプログラムの全体
が格納される。
The memory 22 is, for example, a non-volatile memory and includes a mask ROM or an EFROM. This memory 22 stores the entire program. Mask ROM is a type of memory that cannot be rewritten. EFROM
is a type of rewritable memory. This memory 2
2 stores the entire program executed by the processor 21.

駆動回路4は、モータ5及びプリンタの印字ヘッド6を
制御する。即ち、モータ5は、パルスモータ等から成り
、駆動回路4がプロセッサ21の演算結果のデータに従
って出力するパルス信号数に応じた変位をする。
A drive circuit 4 controls a motor 5 and a print head 6 of the printer. That is, the motor 5 is composed of a pulse motor or the like, and is displaced in accordance with the number of pulse signals output by the drive circuit 4 according to the data of the calculation result of the processor 21.

プログラムの開発段階では、 EFROMが使用され、
開発後は、マスクROMが使用される。メモリ22に格
納されるプログラムは、複数のモジュールA、Bに分割
されている。従来は、1つ1つのモジュール自体がメモ
リ22の全容量に比較して大きかった。例えば、図示の
例では、メモリ22の全容量が65キロバイトであるの
に対し、モジュールA、Bは4キロバイトであった。
During the program development stage, EFROM is used,
After development, a mask ROM is used. The program stored in the memory 22 is divided into a plurality of modules A and B. Conventionally, each module itself was large compared to the total capacity of the memory 22. For example, in the illustrated example, the total capacity of memory 22 is 65 kilobytes, while modules A and B have 4 kilobytes.

また、それぞれのモジュールを呼び出す親ルーチンは、
存在しておらず、モジュールA%Bは図示の格納順に実
行された。このため、プログラムを書き込んだメモリを
搭載した装置においては、プログラムを2つ以上のメモ
リチップに分割して格納し、一部分を先行してマスク化
することができなかった。従って、プログラムの開発が
完全に終了した時点でプログラム全体なEFROMから
マスクROMに切り換えていた。
Also, the parent routine that calls each module is
No, modules A%B were executed in the storage order shown. For this reason, in a device equipped with a memory in which a program has been written, it has been impossible to divide the program into two or more memory chips and store it, and mask a portion of the program in advance. Therefore, when the development of a program is completely completed, the entire program is switched from EFROM to mask ROM.

(発明が解決しようとする課題) しかしながら、上述した従来の技術には、次のような問
題点があった。
(Problems to be Solved by the Invention) However, the above-described conventional technology has the following problems.

即ち、プログラムの開発が完全に終了するまで、 EF
ROMをマスクROMに切り換えることができなかった
。プログラムのマスクROM化には、通常2〜4か月程
度の期間が必要である。このため、その間、コストの高
いEFROMを使用せざるを得なかった。
That is, until the development of the program is completely completed, EF
It was not possible to switch ROM to mask ROM. It usually takes about 2 to 4 months to convert a program into a mask ROM. For this reason, during that time, an expensive EFROM had to be used.

また、ROMを一部マスク化してしまうと、後にプログ
ラムの変更の必要性が生じた場合には、マスクROM全
体を取り換えなければならず、無駄なコストがかかって
しまった。
Furthermore, if a portion of the ROM is masked, if it becomes necessary to change the program later, the entire mask ROM must be replaced, resulting in unnecessary costs.

本発明は以上の点に着目してなされたもので、プログラ
ムの開発段階の早期にROMをマスク化することができ
、プログラムの部分的な変更に対応できるコンピュータ
搭載装置を提供することを目的とするものである。
The present invention has been made with attention to the above points, and an object of the present invention is to provide a computer-equipped device that can mask a ROM at an early stage of program development and can handle partial changes to a program. It is something to do.

(課題を解決するための手段) 本発明のコンピュータ搭載装置は、プロセッサ及び当該
プロセッサで実行される制御プログラムを書き込んだメ
モリを備えたコンピュータを搭載し、当該コンピュータ
により所定の制御を行なうコンピュータ搭載装置におい
て、前記メモリに書き込まれたプログラムを、複数のモ
ジュールに分割して当該複数のモジュールを集めたモジ
ュール群と、当該モジュール群内のそれぞれのモジュー
ルを呼び出す親ルーチンとで構成し、前記モジュール群
を書き換え不能なメモリに格納し、前記親ルーチンのみ
を書き換え可能なメモリに格納するか、又は前記親ルー
チン及び前記モジュール群内の一部のモジュールを書き
換え可能なメモリに格納するようにしたことを特徴とす
るものである。
(Means for Solving the Problems) A computer-equipped device of the present invention is a computer-equipped device that is equipped with a computer that includes a processor and a memory in which a control program to be executed by the processor is written, and that performs predetermined control using the computer. The program written in the memory is divided into a plurality of modules, and consists of a module group that collects the plurality of modules, and a parent routine that calls each module in the module group, and the module group is divided into a plurality of modules. Either the parent routine is stored in a non-rewritable memory and only the parent routine is stored in a rewritable memory, or the parent routine and some modules in the module group are stored in a rewritable memory. That is.

(作用) 本発明のコンピュータ搭載装置によれば、書き換え不能
なメモリに格納されるのは、分割されたモジュールであ
り、これらのモジュールを呼び出す親ルーチンは、書き
換え可能なメモリに格納されている。従って、一部のモ
ジュールを変更する場合は、変更後のモジュールを書き
換え可能なメモリに作成し、変更前のモジュールの飛び
先アドレスの代りにこの変更後のモジュールの飛び先ア
ドレスを指定するようにすることによりプログラムの変
更を行なうことができる。
(Operation) According to the computer-equipped device of the present invention, the divided modules are stored in the non-rewritable memory, and the parent routines that call these modules are stored in the rewritable memory. Therefore, when changing some modules, create the new module in rewritable memory and specify the new module's jump address instead of the old module's jump address. By doing this, you can change the program.

(実施例) 第1図は、本発明の一実施例を示すマイクロコンピュー
タ搭載装置の構成を示すブロック図である。
(Embodiment) FIG. 1 is a block diagram showing the configuration of a microcomputer-equipped device showing an embodiment of the present invention.

図示の装置は、パスライン10に接続された、プロセッ
サ1と、書き換え不能なメモリ2と、書き換え可能なメ
モリ3とから成る。
The illustrated device comprises a processor 1, a non-rewritable memory 2, and a rewritable memory 3, which are connected to a pass line 10.

プロセッサ1は、演算装置等から成り、書き換え不能な
メモリ2及び書き換え可能なメモリ3に格納されたプロ
グラムを逐次取り出して実行する。即ち、アドレス00
00〜3FFFには、書き換え可能なメモリ3が割り当
てられており、アドレス4000〜FFFFには、書き
換え不能なメモリ2が割り当てられている。
The processor 1 consists of an arithmetic unit and the like, and sequentially retrieves and executes programs stored in a non-rewritable memory 2 and a rewritable memory 3. That is, address 00
A rewritable memory 3 is assigned to addresses 00 to 3FFFF, and a non-rewritable memory 2 is assigned to addresses 4000 to FFFF.

書き換え不能なメモリ2は、不揮発性メモリであり、マ
スクROM等から成る。この書き換え不能なメモリ2に
は、その全容量48キロバイトに対して256バイト程
度に小さく分割された複数のモジュールA、B・・・が
格納されている。
The non-rewritable memory 2 is a non-volatile memory and includes a mask ROM or the like. This non-rewritable memory 2 stores a plurality of modules A, B, . . . which are divided into about 256 bytes out of its total capacity of 48 kilobytes.

書き換え可能なメモリ3は、不揮発性メモリであり、 
EFROM等から成る。この書き換え可能なメモリ3に
は、モジュールA、Bを呼び出す親ルーチンが格納され
ている。この親ルーチンは、例えば、スタート命令(S
TART)で始まり、各モジュールA、B・・・を呼び
出しくCALL)、エンド命令(END)で終わるもの
である。
The rewritable memory 3 is a non-volatile memory,
Consists of EFROM etc. This rewritable memory 3 stores a parent routine that calls modules A and B. This parent routine is, for example, a start command (S
It starts with TART), calls CALL to call each module A, B, etc., and ends with an end command (END).

駆動回路4は、モータ5及びプリンタの印字ヘッド6を
制御する。即ち、モータ5は、パルスモータ等から成り
、駆動回路4がプロセッサ1の演算結果のデータに従っ
て出力するパルス信号数に応じた変位をする。
A drive circuit 4 controls a motor 5 and a print head 6 of the printer. That is, the motor 5 is composed of a pulse motor or the like, and is displaced in accordance with the number of pulse signals outputted by the drive circuit 4 according to the data of the calculation result of the processor 1.

次に、上述のようにしてプログラムを分割して格納した
装置の動作を説明する。
Next, the operation of the apparatus in which the program is divided and stored as described above will be explained.

第3図は、プログラムの変更を生じたモジュールAの内
容を示すフローチャートである。
FIG. 3 is a flowchart showing the contents of module A that caused the program change.

第3図(a)は、変更前のモジュールを示すフローチャ
ートであり、第3図(b)は、変更後のモジュールを示
すフローチャートである。
FIG. 3(a) is a flowchart showing the module before change, and FIG. 3(b) is a flowchart showing the module after change.

図示のステップS1においてプログラムの変更の必要性
が生じたものとする。この場合、従来は第2図に示す不
揮発性メモリ22に格納されたプログラム全体が使用不
能となってしまった。従って、不揮発性メモリ22が書
き換え不能なメモリであるときは、その全体が不要とな
ってしまった。同じようにして、書き換え不能なメモリ
2が不要となることがあった。
It is assumed that the need to change the program arises in step S1 shown in the figure. In this case, conventionally, the entire program stored in the nonvolatile memory 22 shown in FIG. 2 has become unusable. Therefore, when the non-volatile memory 22 is a non-rewritable memory, the entire non-volatile memory 22 is no longer necessary. In the same way, the non-rewritable memory 2 may become unnecessary.

ところが、本発明では、書き換え可能なメモリ3を以下
のようにして書き換えることにより、書き換え不能なメ
モリ2を不要とせずに利用することができる。
However, in the present invention, by rewriting the rewritable memory 3 in the following manner, it is possible to use the non-rewritable memory 2 without making it unnecessary.

第4図は、第1図に示したマイクロコンピュータ搭載装
置の変更後の状態を示すブロック図である。
FIG. 4 is a block diagram showing the state of the microcomputer-equipped device shown in FIG. 1 after modification.

図示の装置では、モジュールAに変更を生じたので、書
き換え可能なメモリ3内の親ルーチンの呼出し命令CA
LL 4000をCALL 2000に変更する。
In the illustrated device, since a change has occurred in module A, the parent routine call instruction CA in the rewritable memory 3 is
Change LL 4000 to CALL 2000.

そして、書き換え可能なメモリ3内のアドレス2000
〜2OFFに変更後のモジュールA′を作成する。
Then, address 2000 in rewritable memory 3
Create module A' after changing to ~2OFF.

つまり、書き換え可能なメモリ内のプログラムは、追加
変更になるが、書き換え不能なメモリにおいては、収容
されているモジュール群のうち、モジュールAが使用さ
れなくなるだけで書き換え不能なメモリ2内体の内容に
は変更が生じない。
In other words, the program in rewritable memory is subject to additional changes, but in non-rewritable memory, only module A is no longer used among the stored modules, and the contents of memory 2 are not rewritable. No change occurs.

即ち、書き換え不能なメモリ2内でのモジュールの分割
が細かく、ごく一部のモジュールだけが変更になる場合
に、特に効果が大きくなる。
That is, the effect becomes particularly large when the modules in the non-rewritable memory 2 are divided finely and only a small number of modules are changed.

尚、本発明は、上述した実施例に限定されるものではな
い。
Note that the present invention is not limited to the embodiments described above.

即ち、上述した実施例においては、プリンタにマイクロ
コンピュータを搭載して印字圧等を制御する場合につい
て説明したが、本発明は、これに限らず、他の機器にマ
イクロコンピュータ又はその他各種のコンピュータを搭
載する場合についても適用できることは勿論である。
That is, in the above-mentioned embodiment, a case has been described in which a microcomputer is installed in a printer to control printing pressure, etc., but the present invention is not limited to this, and the present invention is not limited to this. Of course, this can also be applied to the case where it is mounted.

(発明の効果) 以上説明したように、本発明のコンピュータ搭載装置に
よれば、書き換え不能なメモリに格納するのは、細かく
分割したモジュールとし、書き換え可能なメモリに格納
した親ルーチンによりこれらのモジュールを呼び出すよ
うにしたので、次のような効果がある。
(Effects of the Invention) As explained above, according to the computer-equipped device of the present invention, the non-rewritable memory stores finely divided modules, and the parent routine stored in the rewritable memory divides these modules. By calling , we have the following effect:

即ち、プログラムに変更の必要性が生じた場合でも、書
き換え可能なメモリのみを変更すればよく、書き換え不
能なメモリはそのまま変更することなく使用できる。
That is, even if it is necessary to change the program, only the rewritable memory needs to be changed, and the non-rewritable memory can be used as is without being changed.

更に、一般に装置の開発において、通常プログラムは、
開発の最終段階まで多くの変更を行なわざるを得す、開
発の完了までプログラムのマスク化は大変困難であった
が、本発明により開発が完全には終わっていない状態で
あっても、プログラムのマスク化を行なうことができる
Furthermore, in general, in the development of devices, the normal program is
It was very difficult to mask the program until the development was completed, as many changes had to be made until the final stage of development. Masking can be performed.

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

第1図は本発明の一実施例を示すマイクロコンピュータ
搭載装置の構成を示すブロック図、第2図は従来のマイ
クロコンピュータ搭載装置の構成を示すブロック図、第
3図(a)及び(b)はそれぞれ変更前及び変更後の第
1図のプログラム中のモジュールAの内容の例を示す図
、第4図は第11gに示したマイクロコンピュータ搭載
装置の変更後の構成を示すブロック図である。 1・・・プロセッサ、2・・・書き換え不能なメモリ、
3・・・書き換え可能なメモリ。 特許出顕人 株式会社沖ファームウェアシステムズ (他1名) 従来のマイクロコンピュータ#!置101の構成例第2
図 本発明の一実施例を示すブロック図 第  l  図 変l’lllのモジュール (a) 変更後のモジュール (b) 161図のプログラム中のモジュールAの内容第  3
  図
FIG. 1 is a block diagram showing the configuration of a microcomputer-equipped device according to an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of a conventional microcomputer-equipped device, and FIGS. 3(a) and (b). FIG. 4 is a block diagram showing the configuration of the microcomputer-equipped device shown in FIG. 11g after the change. 1... Processor, 2... Non-rewritable memory,
3...Rewritable memory. Oki Firmware Systems Co., Ltd. (1 other person) Conventional microcomputer #! Configuration example 2 of station 101
Figure 1. Block diagram showing an embodiment of the present invention. Module (a) of Figure I'llll. Modified module (b). Contents of module A in the program in Figure 161. 3.
figure

Claims (1)

【特許請求の範囲】 プロセッサ及び当該プロセッサで実行される制御プログ
ラムを書き込んだメモリを備えたコンピュータを搭載し
、当該コンピュータにより所定の制御を行なうコンピュ
ータ搭載装置において、前記メモリに書き込まれたプロ
グラムを、 複数のモジュールに分割して当該複数のモ ジュールを集めたモジュール群と、 当該モジュール群内のそれぞれのモジュールを呼び出す
親ルーチンとで構成し、 前記モジュール群を書き換え不能なメモリに格納し、 前記親ルーチンのみを書き換え可能なメモリに格納する
か、又は前記親ルーチン及び前記モジュール群内の一部
のモジュールを書き換え可能なメモリに格納するように
したことを特徴とするコンピュータ搭載装置。
[Scope of Claims] A computer-equipped device equipped with a computer equipped with a processor and a memory in which a control program to be executed by the processor is written, and which performs predetermined control by the computer, wherein the program written in the memory is It consists of a module group that is divided into a plurality of modules and collects the plurality of modules, and a parent routine that calls each module in the module group, stores the module group in a non-rewritable memory, and the parent routine A computer-equipped device characterized in that only the parent routine and some modules in the module group are stored in a rewritable memory.
JP6251690A 1990-03-15 1990-03-15 Computer loading device Pending JPH03265030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6251690A JPH03265030A (en) 1990-03-15 1990-03-15 Computer loading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6251690A JPH03265030A (en) 1990-03-15 1990-03-15 Computer loading device

Publications (1)

Publication Number Publication Date
JPH03265030A true JPH03265030A (en) 1991-11-26

Family

ID=13202426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6251690A Pending JPH03265030A (en) 1990-03-15 1990-03-15 Computer loading device

Country Status (1)

Country Link
JP (1) JPH03265030A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7002853B2 (en) 1999-02-26 2006-02-21 Renesas Technology Corp. Memory card having a buffer memory for storing testing instruction

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6041133A (en) * 1983-08-16 1985-03-04 Nec Corp Correcting method of control program
JPS6240721A (en) * 1985-08-17 1987-02-21 Fujitsu Ltd Liquid-phase growing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6041133A (en) * 1983-08-16 1985-03-04 Nec Corp Correcting method of control program
JPS6240721A (en) * 1985-08-17 1987-02-21 Fujitsu Ltd Liquid-phase growing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7002853B2 (en) 1999-02-26 2006-02-21 Renesas Technology Corp. Memory card having a buffer memory for storing testing instruction
US7292480B2 (en) 1999-02-26 2007-11-06 Renesas Technology Corp. Memory card having buffer memory for storing testing instruction
US7440337B2 (en) 1999-02-26 2008-10-21 Renesas Technology Corp. Nonvolatile semiconductor memory apparatus having buffer memory for storing a program and buffering work data

Similar Documents

Publication Publication Date Title
KR100310486B1 (en) Microcumputer
KR100223844B1 (en) Option circuit
JPH03265030A (en) Computer loading device
US6182207B1 (en) Microcontroller with register system for the indirect accessing of internal memory via auxiliary register
JPH0430399A (en) Semiconductor memory system
JPS6234260A (en) Access system for nonvolatile memory
JPS5856165A (en) Record update system
JPH10161942A (en) Method, device for storing information, and information processor
JP2002269992A (en) Non-volatile memory device and system
JP3207333B2 (en) Programmable controller
US5434979A (en) Disk drive controller
JP2853593B2 (en) Download device
JPH06236695A (en) Non-volatile memory device with exchange display function
JPH0764796A (en) Firmware program down-load system
JP2000035916A (en) Memory operation management method
JP2697022B2 (en) Unit operation setting method
JPS6058493B2 (en) information processing equipment
JP2928216B1 (en) Semiconductor integrated circuit
JPH07319744A (en) File system using flush memory
JPH07191842A (en) Method for effectively utilizing one-time memory
JPS5856292A (en) Initializing system of memory
JPH1139222A (en) Microcomputer
JPH05181738A (en) Data storage system
JPH10248267A (en) Setting and storage apparatus for inverter constant
JPH06103056A (en) Address controller