JPH05241816A - Data processor - Google Patents
Data processorInfo
- Publication number
- JPH05241816A JPH05241816A JP4076294A JP7629492A JPH05241816A JP H05241816 A JPH05241816 A JP H05241816A JP 4076294 A JP4076294 A JP 4076294A JP 7629492 A JP7629492 A JP 7629492A JP H05241816 A JPH05241816 A JP H05241816A
- Authority
- JP
- Japan
- Prior art keywords
- data
- program
- prom
- storage means
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、予め装置の動作や動作
に必要なデータを記憶する不揮発性メモリを備えたデー
タ処理装置であって、プログラムやデータを順次読み出
して実行可能なデータ処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device having a non-volatile memory for storing the operation of the device and data necessary for the operation in advance, and the data processing device capable of sequentially reading and executing programs and data. Regarding
【0002】[0002]
【従来の技術】従来、マイクロプロセッサを内蔵したプ
リンタ等のデータ処理装置では、印刷等の処理に必要な
プログラムやデータはP−ROM等の記憶手段に格納、
固定されている。2. Description of the Related Art Conventionally, in a data processing apparatus such as a printer having a built-in microprocessor, programs and data required for processing such as printing are stored in a storage means such as a P-ROM.
It is fixed.
【0003】そして、PーROM等の記憶手段の実装形
態は、プリント基板等にICソケットを取り付け、プリ
ント基板を完成した後、そのICソケットに記憶手段を
装着するものである。The storage means such as a P-ROM is mounted in such a manner that an IC socket is mounted on a printed circuit board or the like, the printed circuit board is completed, and then the memory means is mounted on the IC socket.
【0004】[0004]
【発明が解決しようとする課題】ところで、このような
データ処理装置は、プログラムの不具合やバージョンア
ップ時、P−ROM等の記憶手段を交換するには便利で
ある反面、プリント基板等にICソケット等を取り付け
ておく必要があり、組立て時、ICソケットに手作業で
PーROM等を取り付ける作業が必要である。このた
め、プリント基板組立の完成自動化を図ることができ
ず、手作業を要する工程を経ることから製造コストがか
かるという欠点があった。By the way, such a data processing device is convenient for replacing the storage means such as a P-ROM at the time of a program defect or version upgrade, while it is an IC socket on a printed circuit board or the like. It is necessary to attach the P-ROM and the like to the IC socket by hand at the time of assembly. For this reason, there is a drawback in that it is impossible to automate the completion of the printed circuit board assembly, and the manufacturing cost is increased because a manual process is required.
【0005】そこで、本発明は、P−ROM等の記憶手
段を装着や交換作業を要することなく、必要なプログラ
ムやデータの書込みや書換えができるようにしたデータ
処理装置を提供することを目的とする。Therefore, it is an object of the present invention to provide a data processing apparatus capable of writing and rewriting necessary programs and data without the need for mounting or exchanging storage means such as a P-ROM. To do.
【0006】[0006]
【課題を解決するための手段】本発明のデータ処理装置
は、外部から入力すべきプログラムやデータの書込みを
行うための書込み処理プログラムを格納した第1の記憶
手段(ROM4)と、前記書込み処理プログラム(IP
Lプログラム)を実行する処理手段(CPU2)と、こ
の処理手段の前記書込み処理プログラムの実行に基づき
外部より前記プログラムや前記データを入力する入力手
段(RS−232Cインターフェイス10、I/Oポー
ト12)と、この入力手段を通して入力された前記プロ
グラムや前記データを記憶する書込み可能な不揮発性メ
モリで構成された第2の記憶手段(EE・PROM6)
とを備えたことを特徴とする。The data processing apparatus of the present invention comprises a first storage means (ROM 4) for storing a program to be input from the outside and a write processing program for writing data, and the write processing. Program (IP
Processing means (CPU 2) for executing the L program) and input means (RS-232C interface 10, I / O port 12) for inputting the program and the data from the outside based on the execution of the write processing program by the processing means. And a second storage means (EE / PROM 6) composed of a writable nonvolatile memory for storing the program and the data input through the input means.
It is characterized by having and.
【0007】[0007]
【作用】本発明のデータ処理装置では、必要なプログラ
ムやデータをP−ROM等に固定せず、プログラムやデ
ータをEE・PROM等の不揮発性メモリで構成された
第2の記憶手段に記憶させ、第1の記憶手段には外部か
ら入力されるプログラムやデータを不揮発性メモリから
なる第2の記憶手段に記憶させ、かつ固定させるための
書込み処理プログラムを格納したものである。そこで、
このデータ処理装置では、完成品の状態で外部よりプロ
グラムやデータをロードすることができる。したがっ
て、製品の組立後でも外部よりプログラムやデータの転
送又は修正が可能であり、製造コストの低減やバージョ
ンアップ等のサービス機能の向上を図ることができる。In the data processor of the present invention, the necessary programs and data are not fixed to the P-ROM or the like, but the programs and data are stored in the second storage means composed of the non-volatile memory such as EE / PROM. The first storage means stores a write processing program for storing and fixing a program or data input from the outside in the second storage means composed of a non-volatile memory. Therefore,
In this data processing device, a program or data can be loaded from the outside in the finished product state. Therefore, even after assembling the product, it is possible to transfer or modify the program or data from the outside, and it is possible to reduce the manufacturing cost and improve the service function such as version upgrade.
【0008】[0008]
【実施例】以下、本発明を図面に示した実施例を参照し
て詳細に説明する。The present invention will be described in detail below with reference to the embodiments shown in the drawings.
【0009】図1は、本発明のデータ処理装置の一実施
例を示している。このデータ処理装置には、各種のプロ
グラムを実行する処理手段として中央処理装置(CP
U)2が設置されているとともに、このCPU2の制御
を司る各種のプログラムを格納した第1の記憶手段とし
て読出し専用メモリ(ROM)4が設置されている。こ
の場合、ROM4に格納されているプログラムは、本発
明の根幹を成す外部からのプログラムやデータの格納処
理を実行するための書込み処理プログラムとしてIPL
(Initial Program Loader)プログラムを含んでいる。FIG. 1 shows an embodiment of the data processing apparatus of the present invention. This data processing device includes a central processing unit (CP) as processing means for executing various programs.
U) 2 is installed, and a read-only memory (ROM) 4 is installed as a first storage unit that stores various programs that control the CPU 2. In this case, the program stored in the ROM 4 is an IPL as a write processing program for executing a process of storing a program or data from the outside which is the basis of the present invention.
(Initial Program Loader) Contains the program.
【0010】このデータ処理装置には、ROM4に対応
し、不揮発性メモリからなる第2の記憶手段としてEE
・PROM6が併設されている。このEE・PROM6
は、外部からのプログラムやデータを格納する。This data processing device corresponds to the ROM 4 and corresponds to the EE as a second storage means composed of a non-volatile memory.
・ PROM6 is installed side by side. This EE / PROM6
Stores programs and data from the outside.
【0011】また、第3の記憶手段として随時書込み可
能なメモリ(RAM)8が設置されている。このRAM
8は、外部から入力されるデータを編集するためにその
データの一時的な格納等に用いられる。A memory (RAM) 8 that can be written at any time is installed as a third storage means. This RAM
Reference numeral 8 is used for temporarily storing the data input from the outside in order to edit the data.
【0012】また、プログラムやデータの入力手段とし
てRS−232Cインターフェイス10及びI/Oポー
ト12が設置されている。I/Oポート12には、プロ
グラムやデータの入力をするか否かを選択するスイッチ
としてデータローディングスイッチ14が設けられてい
る。即ち、このデータローディングスイッチ14が外部
からの操作によってON状態にあるとき、データローデ
ィングモードとなる。Further, an RS-232C interface 10 and an I / O port 12 are installed as means for inputting programs and data. The I / O port 12 is provided with a data loading switch 14 as a switch for selecting whether to input a program or data. That is, when the data loading switch 14 is turned on by an external operation, the data loading mode is set.
【0013】そして、CPU2にはリセット回路16が
接続されており、このリセット回路16は電源スイッチ
(図2)に連動する。したがって、電源投入時、このリ
セット回路16を通してCPU2は初期状態にリセット
される。A reset circuit 16 is connected to the CPU 2, and the reset circuit 16 works in conjunction with a power switch (FIG. 2). Therefore, when the power is turned on, the CPU 2 is reset to the initial state through the reset circuit 16.
【0014】次に、このデータ処理装置におけるIPL
プログラムを図2及び図3に示したフローチャートを参
照して説明する。図2及び図3において、丸で囲んだ符
号a及びbは、フローチャートの接続点を表している。Next, the IPL in this data processing device
The program will be described with reference to the flowcharts shown in FIGS. In FIGS. 2 and 3, circled symbols a and b represent connection points in the flowchart.
【0015】ステップS1で電源スイッチが投入される
と、リセット回路16によりCPU2にリセット信号が
入力されCPU2がリセットされる。CPU2がリセッ
トされると、CPU2はROM4のIPLプログラムを
順次読み出し、その実行を始める。この時、ステップS
2では、データローディングスイッチ14を検査し、デ
ータローディングスイッチ14がONであった場合は、
ステップS3に移行する。ステップS3において、EE
・PROM6のデータを消去した後、ステップS4に移
行し、CPU2はRS−232Cインターフェース10
より図示されない外部機器(ホストマシン)より送られ
てくるデータを読み込み、ステップS5でそのデータを
編集してRAM8に格納する。次に、ステップS6でR
AM8に編集されたデータが規定量に達すると、ステッ
プS7に移行し、CPU2はRAM8より編集されたデ
ータを読み出し、EE・PROM6へ格納する。次に、
ステップS8では、全データの転送が終了したか否かを
判断する。また、ステップS6で1ページ分のデータセ
ットが完了していない場合、又は、ステップS8で全デ
ータの転送が終了していない場合には、ステップS4に
戻り、ステップS4〜S8の処理を行う。When the power switch is turned on in step S1, the reset circuit 16 inputs a reset signal to the CPU 2 to reset the CPU 2. When the CPU 2 is reset, the CPU 2 sequentially reads the IPL program in the ROM 4 and starts its execution. At this time, step S
In 2, the data loading switch 14 is inspected, and if the data loading switch 14 is ON,
Control goes to step S3. In step S3, EE
-After erasing the data in PROM6, the process proceeds to step S4, and the CPU 2 uses the RS-232C interface 10
Data sent from an external device (host machine) (not shown) is read, and the data is edited and stored in the RAM 8 in step S5. Next, in step S6, R
When the amount of data edited in the AM 8 reaches the specified amount, the process proceeds to step S7, and the CPU 2 reads the edited data from the RAM 8 and stores it in the EE / PROM 6. next,
In step S8, it is determined whether or not the transfer of all data has been completed. If the data set for one page is not completed in step S6, or if the transfer of all data is not completed in step S8, the process returns to step S4 and the processes of steps S4 to S8 are performed.
【0016】このプログラム動作を繰り返し、全てのデ
ータがEE・PROM6へ転送されると、ステップS9
に移行する。ステップS9ではCPU2は全データの検
査コード即ち、チェックサムコートを計算してEE・P
ROM6にセットした後、ステップS10では、その書
込み済みコードをEE・PROM6の特定のアドレスに
書き込む。When all the data are transferred to the EE / PROM 6 by repeating this program operation, step S9
Move to. In step S9, the CPU 2 calculates the check code of all data, that is, the checksum code, and EE · P.
After setting in the ROM 6, the written code is written in a specific address of the EE / PROM 6 in step S10.
【0017】次に、ステップS11では、EE・PRO
M6の特定なアドレスにジャンプし、ステップS12で
外部機器より送られたプログラム等を実行する。Next, in step S11, EE / PRO
The program jumps to a specific address of M6 and executes the program or the like sent from the external device in step S12.
【0018】また、ステップS2でIPLプログラムが
データローディングスイッチ14を検査した時、OFF
であった場合は、ステップS13に移行し、EE・PR
OM6の書込み済みコードを検査した後、ステップS1
4に移行してチェックサムを検査し、正常であればEE
・PROM6の特定なアドレスへジャンプし、EE・P
ROM6に書き込まれているプログラムを実行する。ス
テップS13、S15で正常で無い場合には、ステップ
S16に移行してEE・PROM6のエラー処理を行
う。When the IPL program inspects the data loading switch 14 in step S2, it is turned off.
If it is, move to step S13, EE / PR
After checking the written code of OM6, step S1
Move to 4 and check the checksum, and if normal, EE
・ Jump to a specific address in PROM6 and EE ・ P
The program written in the ROM 6 is executed. If not normal in steps S13 and S15, the process proceeds to step S16 to perform error processing of the EE / PROM6.
【0019】次に、図4は、本発明のデータ処理装置の
応用例であるプリンタ装置を示しており、図1に示した
実施例と共通部分には同一符号を付してある。Next, FIG. 4 shows a printer device as an application example of the data processing device of the present invention, and the same parts as those of the embodiment shown in FIG.
【0020】このプリンタには、ホストコンピュータか
らの印刷情報を受け、印刷処理に必要な演算処理を実行
する処理手段としてCPU2、IPLプログラム等の各
種プログラムが書き込まれた第1の記憶手段としてのR
OM4、外部からのプログラムやデータを書き込むべき
第2の記憶手段としてEE・PROM6、一時的にデー
タを書き込むべき第3の記憶手段としてRAM8、プロ
グラムや印字データの入力手段としてセントロニクスイ
ンターフェイス10及びパラレルI/Oポート12が設
置されている。This printer receives the print information from the host computer and receives the print information from the host computer, the CPU 2 as a processing means for executing the arithmetic processing necessary for the print processing, and the R as a first storage means in which various programs such as an IPL program are written.
OM4, EE / PROM6 as second storage means for writing external programs and data, RAM8 as third storage means for temporarily writing data, Centronics interface 10 and parallel I as input means for programs and print data. / O port 12 is installed.
【0021】CPU2には、電源の解除等による電源電
圧VCCが低下したとき、処理動作を初期状態に復帰させ
るパワーオンリセットを行うリセット回路16が接続さ
れている。CPU2には、パワーオン時、リセット回路
16からリセット信号Rが加えられる。EE・PROM
6には、CPU2の誤動作やノイズ等により、不必要な
データ等のEE・PROM6への書込みを防止するた
め、書込み制御回路18とライトプロテクトスイッチ2
0が設置されている。The CPU 2 is connected with a reset circuit 16 for performing a power-on reset for returning the processing operation to the initial state when the power supply voltage V CC is lowered due to the release of the power supply or the like. The reset signal R is applied to the CPU 2 from the reset circuit 16 when the power is turned on. EE / PROM
6, a write control circuit 18 and a write protect switch 2 are provided in order to prevent unnecessary data and the like from being written into the EE / PROM 6 due to a malfunction of the CPU 2 or noise.
0 is set.
【0022】そして、印字機構の印字ヘッド22を制御
する印字ヘッド制御回路24が設置されているととも
に、駆動機構部を駆動するステップモータ制御回路26
が設置され、このステップモータ制御回路26には印刷
用紙を送るためのフィードモータ28とともに、印刷ヘ
ッド22を搭載したキャリッジを操作するキャリッジモ
ータ30が接続されている。A print head control circuit 24 for controlling the print head 22 of the print mechanism is installed and a step motor control circuit 26 for driving the drive mechanism section.
The step motor control circuit 26 is connected to a feed motor 28 for feeding a print sheet and a carriage motor 30 for operating a carriage on which the print head 22 is mounted.
【0023】さらに、表示素子やスイッチ等を配置した
操作パネル32が設置され、この操作パネル32に設置
されているスイッチ(SW)からの操作入力、LCDや
LED等の表示素子に対する表示信号を出力する入出力
手段として操作パネルインターフェイス34が設置され
ている。また、ホストコンピュータとの連携や仕様設定
のためのディップスイッチ(SW)36が設置され、こ
のディップスイッチ36からの設定入力を受けるディッ
プスイッチ(SW)インターフェイス38が設置されて
いる。Further, an operation panel 32 in which display elements, switches and the like are arranged is installed, and an operation input from a switch (SW) installed in the operation panel 32 and a display signal for a display element such as LCD or LED are output. An operation panel interface 34 is installed as an input / output means. Further, a DIP switch (SW) 36 for linking with a host computer and setting specifications is installed, and a DIP switch (SW) interface 38 for receiving setting input from the DIP switch 36 is installed.
【0024】パラレルI/Oポート12には、データロ
ーディングスイッチ14とともに、印刷用紙を検出する
用紙センサ42が接続され、その検出信号が加えられ
る。The parallel I / O port 12 is connected with a data loading switch 14 and a paper sensor 42 for detecting a printing paper, and a detection signal thereof is applied.
【0025】そして、CPU2、ROM4、EE・PR
OM6、RAM8、セントロニクスインターフェイス1
0、パラレルI/Oポート12、印字ヘッド制御回路2
4、ステップモータ制御回路26、操作パネルインター
フェイス34及びディップスイッチインターフェイス4
0は、データバス44及びアドレスバス46を以て連携
されている。And CPU2, ROM4, EE / PR
OM6, RAM8, Centronics interface 1
0, parallel I / O port 12, print head control circuit 2
4, step motor control circuit 26, operation panel interface 34, and DIP switch interface 4
The 0s are linked by the data bus 44 and the address bus 46.
【0026】次に、図5は、このプリンタにおける電源
装置を示している。この電源装置には、交流を整流する
とともに安定化直流電源を構成する電源回路50が設置
されている。この電源回路50は、電源プラグ52及び
電源スイッチ54を通して商用電源が供給されて、安定
化直流電圧である駆動電圧VCC、VH を発生し、図4に
示した各部に供給する。Next, FIG. 5 shows a power supply device in this printer. A power supply circuit 50 that rectifies alternating current and constitutes a stabilized direct current power supply is installed in this power supply device. The power supply circuit 50 is supplied with commercial power through a power plug 52 and a power switch 54, generates driving voltages V CC and V H which are stabilized DC voltages, and supplies them to the respective parts shown in FIG.
【0027】次に、図6は、図4に示したプリンタにお
ける書込み制御回路18の具体的な回路構成例を示して
いる。この書込み制御回路18には3入力のAND回路
180が設置されており、このAND回路180には、
CPU2から書込み信号WR、インバータ182を通し
て反転されたチップセレクト信号CS、ライトプロテク
トスイッチ20の操作によるスイッチ入力が加えられて
いる。ライトプロテクトスイッチ20が接続された入力
部は抵抗184を介して駆動電圧VCCにプルアップされ
ており、ライトプロテクトスイッチ20が閉じられたと
き、AND回路180の入力はLレベルに移行するよう
になっている。したがって、この書込み制御回路18
は、CPU2の書込み信号WRがLレベルで、かつ、リ
セット信号Rが非リセット状態(Hレベル)でかつライ
トプロテクトスイッチ20がON(非プロテクト状態)
のとき、EE・PROM6に対して書込みイネーブル信
号Next, FIG. 6 shows a specific circuit configuration example of the write control circuit 18 in the printer shown in FIG. A three-input AND circuit 180 is installed in the write control circuit 18, and the AND circuit 180 includes
A write signal WR from the CPU 2, a chip select signal CS inverted through an inverter 182, and a switch input by operating the write protect switch 20 are added. The input part to which the write protect switch 20 is connected is pulled up to the drive voltage V CC via the resistor 184, and when the write protect switch 20 is closed, the input of the AND circuit 180 shifts to the L level. Is becoming Therefore, this write control circuit 18
Indicates that the write signal WR of the CPU 2 is at the L level, the reset signal R is in the non-reset state (H level), and the write protect switch 20 is ON (the non-protected state).
At this time, a write enable signal to the EE / PROM 6
【外1】 を出力する。[Outer 1] Is output.
【0028】次に、このプリンタ装置におけるIPLプ
ログラムを、図7及び図8を参照して説明する。図7及
び図8において、丸で囲んだ符号c及びdは、フローチ
ャートの接続点を表している。Next, the IPL program in this printer will be described with reference to FIGS. 7 and 8. In FIGS. 7 and 8, the circled symbols c and d represent connection points in the flowchart.
【0029】商用電源等のコンセントに電源プラグ52
を接続した後、電源スイッチ54をOFF状態からON
状態にすると、電源回路50にはプリンタに必要な駆動
電圧VH 、VCCが出力される。ステップS1では、この
電源投入に基づく初期動作が行われる。即ち、リセット
回路16は駆動電圧VCCの電圧値を監視し、駆動電圧V
CCが規定の電圧に達した後、規定時間Tを経過する間、
リセット信号Rを出力する。このリセット信号Rにより
CPU2は初期状態に設定される。そして、このリセッ
ト信号Rが解除されると、ROM4から順次命令やデー
タを読み込み初期動作を行う。A power plug 52 is connected to an outlet such as a commercial power source.
After connecting, turn on the power switch 54 from the OFF state.
In this state, the drive voltages V H and V CC required for the printer are output to the power supply circuit 50. In step S1, the initial operation is performed based on this power-on. That is, the reset circuit 16 monitors the voltage value of the driving voltage V CC ,
After CC reaches the specified voltage, for the specified time T,
The reset signal R is output. The reset signal R sets the CPU 2 to the initial state. When the reset signal R is released, the instructions and data are sequentially read from the ROM 4 and the initial operation is performed.
【0030】この初期動作の後、ステップS2では、パ
ラレルI/Oポート12を介してデータローディングス
イッチ14の状態を検査する。ROM4に記憶されてい
る命令を実行している初期動作中、データローディング
スイッチ14の状態がデータローディング状態(ON状
態)であれば、ステップS3に移行し、データローディ
ングスイッチ14のONと同時に操作パネル32の表示
素子(LED)を点滅を開始させてステップS4に移行
する。ステップS4ではEE・PROM6のデータを消
去させ、セントロニクスインターフェイス10のデータ
読込みを行う。即ち、CPU2はセントロニクスインタ
ーフェイス10を介して接続されている上位機器、例え
ばホストコンピュータから送出されるデータをセントロ
ニクスインターフェイス10で読み込み、ステップS6
でそのデータを編集してRAM8に格納する。ステップ
S7では、1ページ分のデータセットが完了したか否か
を判断し、1ページ分未満の場合にはステップS5に戻
る。そして、ステップS7で1ページ分のデータセット
が完了した場合には、ステップS8に移行し、RAM8
内の編集済みデータをEE・PROM6に転送し、記憶
させる。このとき、ステップS9では、操作パネル32
のブザーを0.5秒間鳴動させ、EE・PROM6への
データの転送及び記憶をブザー音で告知する。After this initial operation, in step S2, the state of the data loading switch 14 is inspected via the parallel I / O port 12. During the initial operation of executing the command stored in the ROM 4, if the state of the data loading switch 14 is the data loading state (ON state), the process proceeds to step S3, and the operation panel is turned on at the same time when the data loading switch 14 is turned ON. The display elements (LEDs) 32 are started to blink, and the process proceeds to step S4. In step S4, the data in the EE / PROM 6 is erased and the data in the Centronics interface 10 is read. That is, the CPU 2 reads data sent from a higher-level device connected via the Centronics interface 10, for example, a host computer, with the Centronics interface 10, and step S6
Then, the data is edited and stored in the RAM 8. In step S7, it is determined whether or not the data set for one page is completed, and if it is less than one page, the process returns to step S5. Then, when the data set for one page is completed in step S7, the process proceeds to step S8 and the RAM 8
The edited data stored therein is transferred to the EE / PROM 6 and stored therein. At this time, in step S9, the operation panel 32
The buzzer of No. 3 is activated for 0.5 seconds to notify the transfer and storage of data to the EE / PROM 6 with a buzzer sound.
【0031】次に、ステップS10では、データ転送が
完了したか否かを判断し、データ転送が未了の場合に
は、ステップS5に戻り、データ転送が完了し、全デー
タを記憶後、ステップS11(図8)に移行し、チェッ
クサムコードを計算し、書込み済みコードとともにEE
・PROM6の特定のアドレスに書き込む。このとき、
ステップS12、S13が実行され、その動作中EE・
PROM6内に書き込み中であることを操作パネル32
のLEDの点滅を行うとともに、ステップS14では操
作パネル32のブザーを2秒間鳴動させ、EE・PRO
M6への書込み済みコードのEE・PROM6へのセッ
トを報知する。Next, in step S10, it is determined whether or not the data transfer is completed. If the data transfer is not completed, the process returns to step S5, the data transfer is completed, and after storing all the data, the step Go to S11 (Fig. 8), calculate the checksum code, and EE with the written code.
-Write to a specific address in PROM6. At this time,
Steps S12 and S13 are executed, and EE
The operation panel 32 indicates that the PROM 6 is being written.
LED blinks, and in step S14, the buzzer of the operation panel 32 is rung for 2 seconds to display EE / PRO.
Notify that the code already written in M6 is set in EE / PROM6.
【0032】次に、ステップS15ではEE・PROM
6に全てのデータを記憶し終わるとEE・PROM6の
特定なアドレス(エントリーアドレス)にジャンプし、
ステップS16ではEE・PROM6の命令やデータを
使って通常の機器、即ち、プリンタの通常動作である印
字動作等を行う。この際、セントロニクスインターフェ
イス10を介してホストコンピュータより送られる印字
データを、周知の手順にて印字媒体上に印刷記録を行
う。Next, in step S15, the EE / PROM
When all data is stored in 6, jump to a specific address (entry address) in EE / PROM6,
In step S16, the command and data of the EE / PROM 6 are used to perform a printing operation, which is a normal operation of a normal device, that is, a printer. At this time, the print data sent from the host computer via the Centronics interface 10 is printed and recorded on the print medium by a known procedure.
【0033】また、ステップS2でデータローディング
スイッチ14がOFF状態(データローディング禁止状
態)であれば、ステップS17に移行し、EE・PRO
M6の特定なアドレスにコードが書込み済みか否かを判
断し、書き込まれていれば、ステップS18に移行して
EE・PROM6のデータを読み込みチェックサムを計
算し、ステップS19でEE・PROM6に書き込まれ
ているチェックサムと比較し、一致していれば、ステッ
プS15に移行する。即ち、ステップS15では、EE
・PROM6内に特定なアドレス(エントリーアドレ
ス)へジャンプし、CPU2は、EE・PROM6に記
憶されている命令やデータを順次読み込み実行する。If the data loading switch 14 is in the OFF state (data loading prohibited state) in step S2, the process proceeds to step S17, where EE / PRO is set.
It is determined whether or not the code has been written to the specific address of M6. If the code has been written, the process proceeds to step S18, the data of EE / PROM6 is read, the checksum is calculated, and the data is written to EE / PROM6 in step S19. The checksum is compared with the existing checksum, and if they match, the process proceeds to step S15. That is, in step S15, EE
Jump to a specific address (entry address) in the PROM 6, and the CPU 2 sequentially reads and executes instructions and data stored in the EE / PROM 6.
【0034】また、ステップS19でROM4に書き込
まれている初期動作中、計算したチェックサムと、EE
・PROM6に書き込まれているチェックサムとが一致
しない場合や、EE・PROM6の特定なアドレスを読
み込んだ時、書込み済みコード以外のコードであった場
合は、ステップS20に移行する。ステップS20で
は、EE・PROM6のデータエラーと判断し、操作パ
ネル32上のエラーLEDやブザーの鳴動等で、EE・
PROM6がエラー状態であることを報知する。During the initial operation written in the ROM 4 in step S19, the calculated checksum and EE
If the checksum written in the PROM 6 does not match, or if it is a code other than the written code when a specific address of the EE / PROM 6 is read, the process proceeds to step S20. In step S20, it is determined that there is a data error in the EE / PROM 6, and the EE / PROM 6 is activated by an error LED on the operation panel 32, a buzzer,
It informs that the PROM 6 is in an error state.
【0035】なお、この実施例では、EE・PROM6
に対するプログラムやデータの書込みを行う場合、デー
タローディングスイッチ14の操作を一つの条件にした
が、電源投入時にEE・PROM6を検査し、プログラ
ムの書込みが行われていなければ、自動的にIPLプロ
グラムが起動するように構成しても良い。In this embodiment, the EE / PROM 6
The operation of the data loading switch 14 was set as one condition when writing a program or data to the, but the EE / PROM 6 is inspected when the power is turned on, and if the program is not written, the IPL program is automatically It may be configured to start.
【0036】次に、図9は、他のIPLプログラムを示
している。即ち、図1のデータ処理装置、図4のプリン
タでは、EE・PROM6にプログラムを書き込む条件
をリセット後に、ローディングスイッチ14をON状態
にすることとしているが、この実施例では、外部ホスト
機器からの指令を用いてEE・PROM6に対するプロ
グラムやデータの書込みを行うものである。ホスト機器
は、プログラムを書き込むべきプリンタ装置に対して、
プリンタ書込みモードにするためのコマンド例えば<E
SC>#(1BH,23H)を送出し、続いてEE・P
ROM6に書き込むプログラムをアドレス情報や誤り検
出コードとともに送出する。ステップS21ではそのデ
ータを受信し、ステップS22では受信したデータの誤
り検出コードを使ってデータがEE・PROM6への書
込みコマンドか否かを判定する。そのデータが正常であ
ると判断した場合には、ステップS23に移行し、レコ
ード長データを受信してステップS24に移行し、0以
外か否かを判定する。0以外の場合にはステップS25
に移行してロードアドレスを受信し、ステップS26で
データ受信を行い、ステップS27でチェックサムを計
算し、続いてステップS28でチェックサムを受信し、
ステップS29でチェックサムの一致を判断する。ステ
ップS29でチェックサムが一致した場合にはステップ
S30でEE・PROM6にデータの書込みを行った
後、ステップS23に戻る。Next, FIG. 9 shows another IPL program. That is, in the data processing device of FIG. 1 and the printer of FIG. 4, the loading switch 14 is turned on after the condition for writing the program in the EE / PROM 6 is reset. The program and data are written to the EE / PROM 6 by using the command. The host device tells the printer to write the program to
Command to enter printer write mode, eg <E
SC># (1BH, 23H) is sent out, followed by EE / P
The program to be written in the ROM 6 is sent out together with the address information and the error detection code. In step S21, the data is received, and in step S22, it is determined whether the data is a write command to the EE / PROM 6 using the error detection code of the received data. When it is determined that the data is normal, the process proceeds to step S23, the record length data is received and the process proceeds to step S24, and it is determined whether it is other than 0. If not 0, step S25
And the load address is received, the data is received in step S26, the checksum is calculated in step S27, and then the checksum is received in step S28.
In step S29, it is determined whether the checksums match. If the checksums match in step S29, the data is written in the EE / PROM 6 in step S30, and the process returns to step S23.
【0037】また、ステップS24で0であると判断さ
れた場合には、ステップS31に移行して書込み終了表
示を表示パネル32の表示素子を以て行う。また、ステ
ップS29でチェックサムが一致しない場合には、ステ
ップS32に移行してエラー表示を行う。即ち、操作パ
ネル32上の表示手段によって異常データであることを
報知する。If it is determined to be 0 in step S24, the process proceeds to step S31 and the writing completion display is performed by the display element of the display panel 32. If the checksums do not match in step S29, the process moves to step S32 to display an error. That is, the display means on the operation panel 32 notifies that the data is abnormal.
【0038】以上の動作を繰り返し、EE・PROM6
に順次にデータを書き込んで行き、終了コードを受信す
ると、操作パネル32上の表示手段によりプログラムの
完了を報知する。By repeating the above operation, the EE / PROM 6
When the end code is received, the completion of the program is notified by the display means on the operation panel 32.
【0039】次に、EE・PROM6に対するプログラ
ムの書込み処理は、操作パネル32上の複数の操作スイ
ッチの組合せ操作によっても良い。即ち、例えばプリン
タがONLINE状態でフィードスイッチと、オンライ
ン切換えスイッチを同時に操作したとき、IPLプログ
ラムが起動するようにし、この操作後、外部機器よりプ
ログラムデータを転送してEE・PROM6にプログラ
ムやデータを書き込む。また、EE・PROM6にデー
タを書き込む操作スイッチの組み合わせは、特にフィー
ドスイッチとオンライン切換えスイッチに決める必要は
ない。Next, the writing process of the program to the EE / PROM 6 may be performed by a combination operation of a plurality of operation switches on the operation panel 32. That is, for example, when the printer is ONLINE and the feed switch and the online changeover switch are operated at the same time, the IPL program is started, and after this operation, the program data is transferred from the external device and the program and data are transferred to the EE / PROM 6. Write. Further, the combination of operation switches for writing data in the EE / PROM 6 does not need to be a feed switch and an online changeover switch.
【0040】なお、実施例では、外部上位機器との接続
はセントロニクスインターフェイスとしてあるが、外部
上位機器との通信が可能な他のインターフェイスを用い
てもよい。In the embodiment, the Centronics interface is used for the connection with the external host device, but another interface capable of communicating with the external host device may be used.
【0041】また、実施例では、第2の記憶手段として
EE・PROM6を例示したが、不揮発性の他の記憶素
子でも可能である。また、EE・PROM6へのデータ
書込みを、電源投入時のリセット後としてあるが、ホス
ト機器よりの指令(転送コマンド)や、操作パネル32
のスイッチ操作等でも可能であり、CPU2のリセット
動作後に限定するものではない。Further, in the embodiment, the EE / PROM 6 is exemplified as the second storage means, but other non-volatile storage elements are also possible. Further, although the data writing to the EE / PROM 6 is performed after the reset at power-on, a command (transfer command) from the host device or the operation panel 32
It is also possible to operate the switch, etc., and is not limited to after the reset operation of the CPU 2.
【0042】[0042]
【発明の効果】以上説明したように、本発明によれば、
製品の組立後でも外部よりプログラムやデータの転送又
は修正が可能であり、製造コストの低減やバージョンア
ップ等のサービス性を向上させることができる。As described above, according to the present invention,
Even after assembling the product, it is possible to transfer or modify the program or data from the outside, and it is possible to reduce the manufacturing cost and improve the serviceability such as version upgrade.
【図1】本発明のデータ処理装置の一実施例を示すブロ
ック図である。FIG. 1 is a block diagram showing an embodiment of a data processing device of the present invention.
【図2】図1に示したデータ処理装置におけるIPLプ
ログラムを示すフローチャートである。FIG. 2 is a flowchart showing an IPL program in the data processing device shown in FIG.
【図3】図1に示したデータ処理装置におけるIPLプ
ログラムを示すフローチャートである。FIG. 3 is a flowchart showing an IPL program in the data processing device shown in FIG.
【図4】図1に示したデータ処理装置の応用例であるプ
リンタ装置を示すブロック図である。4 is a block diagram showing a printer device as an application example of the data processing device shown in FIG. 1. FIG.
【図5】図4に示したプリンタ装置における電源装置を
示すブロック図である。5 is a block diagram showing a power supply device in the printer device shown in FIG.
【図6】図4に示したプリンタ装置における書込み制御
回路の具体的な回路構成例を示す回路図である。6 is a circuit diagram showing a specific circuit configuration example of a write control circuit in the printer device shown in FIG.
【図7】図4に示したプリンタ装置におけるIPLプロ
グラムを示すフローチャートである。FIG. 7 is a flowchart showing an IPL program in the printer device shown in FIG.
【図8】図4に示したプリンタ装置におけるIPLプロ
グラムを示すフローチャートである。FIG. 8 is a flowchart showing an IPL program in the printer device shown in FIG.
【図9】図4に示したプリンタ装置における他のIPL
プログラムを示すフローチャートである。9 is another IPL in the printer apparatus shown in FIG.
It is a flow chart which shows a program.
2 CPU(処理手段) 4 ROM(第1の記憶手段) 6 EE・PROM(第2の記憶手段) 8 RAM(第3の記憶手段) 10 RS−232Cインターフェイス(入力手段) 12 I/Oポート(入力手段) 14 データローディングスイッチ 16 リセット回路 2 CPU (processing means) 4 ROM (first storage means) 6 EE / PROM (second storage means) 8 RAM (third storage means) 10 RS-232C interface (input means) 12 I / O port ( Input means) 14 Data loading switch 16 Reset circuit
Claims (1)
の書込みを行うための書込み処理プログラムを格納した
第1の記憶手段と、 前記書込み処理プログラムを実行する処理手段と、 この処理手段の前記書込み処理プログラムの実行に基づ
き外部より前記プログラムや前記データを入力する入力
手段と、 この入力手段を通して入力された前記プログラムや前記
データを記憶する書込み可能な不揮発性メモリで構成さ
れた第2の記憶手段と、 を備えたことを特徴とするデータ処理装置。1. A first storage means for storing a write processing program for writing a program or data to be input from the outside, a processing means for executing the write processing program, and the write processing of the processing means. Input means for inputting the program and the data from the outside based on the execution of the program, and second storage means composed of a writable nonvolatile memory for storing the program and the data input through the input means A data processing device comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4076294A JPH05241816A (en) | 1992-02-26 | 1992-02-26 | Data processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4076294A JPH05241816A (en) | 1992-02-26 | 1992-02-26 | Data processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05241816A true JPH05241816A (en) | 1993-09-21 |
Family
ID=13601332
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4076294A Pending JPH05241816A (en) | 1992-02-26 | 1992-02-26 | Data processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05241816A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9368239B2 (en) | 2012-03-13 | 2016-06-14 | Mitsubishi Electric Corporation | Ex-core nuclear instrumentation system |
-
1992
- 1992-02-26 JP JP4076294A patent/JPH05241816A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9368239B2 (en) | 2012-03-13 | 2016-06-14 | Mitsubishi Electric Corporation | Ex-core nuclear instrumentation system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7398331B2 (en) | Peripheral apparatus, firmware updating method thereof for determining whether an error has occurred during the installation of a rewrite operation | |
| US5933595A (en) | Computer apparatus having electrically rewritable nonvolatile memory, and nonvolatile semiconductor memory | |
| US20030076311A1 (en) | Computer having a display interface with two basic input/output systems | |
| JP4475618B2 (en) | Device start-up control method, device self-diagnosis test method, control board, equipment, inspection system | |
| US7337312B2 (en) | Processor and firmware download method for same | |
| JPH05241816A (en) | Data processor | |
| JP3486949B2 (en) | Printer device | |
| JPH11232183A (en) | Printer control information managing device and recording medium for recording control information management program | |
| JPH06314202A (en) | Image forming device | |
| JP2593007B2 (en) | Program embedded device | |
| JPH1011277A (en) | Computer device having electrically rewritable nonvolatile memory and nonvolatile semiconductor memory | |
| JPH11327367A (en) | Image forming apparatus and control method of image forming apparatus | |
| JP2001344156A (en) | Apparatus having flash memory and data rewriting method | |
| JPH08254922A (en) | Image forming device | |
| JP2007172391A (en) | Electronic device control method, electronic device control program, electronic device, and recording apparatus | |
| JPH05274157A (en) | Image forming device | |
| JP2008009799A (en) | Image forming device | |
| JP4681521B2 (en) | Printer | |
| JPH10289077A (en) | Printing equipment | |
| JPH11219077A (en) | Cartridge and image processing device | |
| JPH11149377A (en) | Image forming device | |
| KR100212072B1 (en) | Computer system booting method | |
| JPH03143660A (en) | Printer | |
| JPH04313117A (en) | Printer | |
| JPH11259306A (en) | Electronic control unit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040206 |
|
| A131 | Notification of reasons for refusal |
Effective date: 20040210 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
| A521 | Written amendment |
Effective date: 20040412 Free format text: JAPANESE INTERMEDIATE CODE: A523 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040609 |
|
| A61 | First payment of annual fees (during grant procedure) |
Effective date: 20040621 Free format text: JAPANESE INTERMEDIATE CODE: A61 |
|
| R150 | Certificate of patent (=grant) or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |