JPH05221082A - Printer - Google Patents

Printer

Info

Publication number
JPH05221082A
JPH05221082A JP2939292A JP2939292A JPH05221082A JP H05221082 A JPH05221082 A JP H05221082A JP 2939292 A JP2939292 A JP 2939292A JP 2939292 A JP2939292 A JP 2939292A JP H05221082 A JPH05221082 A JP H05221082A
Authority
JP
Japan
Prior art keywords
program
debugging
microprocessor
operation panel
display
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
JP2939292A
Other languages
Japanese (ja)
Inventor
Yoshikimi Yamada
禄公 山田
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.)
NEC Data Terminal Ltd
Original Assignee
NEC Data Terminal 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 NEC Data Terminal Ltd filed Critical NEC Data Terminal Ltd
Priority to JP2939292A priority Critical patent/JPH05221082A/en
Publication of JPH05221082A publication Critical patent/JPH05221082A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To perform a debugging action without an in-circuit emulator by entering a stop address for a program entended for debugging through an input switch on a control panel, then running a display program by a jump command during the execution of a debugging action, if the debugging mode is used. CONSTITUTION:If a control panel 7 is set to a debugging mode by operation of a mode changeover switch 10, a stop address of memory 3 for changing the content of an operating program is entered through a control panel 7, and a jump command is written in an area indicated by the stop address using a microprocessor 2. Further, a display program is run by the jump command during the execution of a debugging action in the operating program, and thereby information in the microprocessor 2 is displayed on the control panel 7. Consequently, it is possible to execute the debugging action without the use of an in-circuit emulator, and also make the operation easy.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプリンタ装置に関し、特
に動作プログラムをメモリに内蔵し、マイクロプロセッ
サによってその動作プログラムを実行するプリンタ装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer device, and more particularly to a printer device in which an operation program is built in a memory and the operation program is executed by a microprocessor.

【0002】[0002]

【従来の技術】動作プログラムをメモリに内蔵し、マイ
クロプロセッサによってその動作プログラムを実行する
いわゆるプログラム制御方式の従来のプリンタ装置は、
動作プログラムのデバッギングのときは、マイクロプロ
セッサを取外し、その代りに、マイクロプロセッサと同
じ動作ができ、しかも、動作の停止と、その停止した時
点におけるプロセッサの内部情報の表示が可能なマイク
ロコンピュータシステム(これをインサーキットエミュ
レータと称している)を接続してデバッギングを行って
いる。
2. Description of the Related Art A conventional printer apparatus of a so-called program control system in which an operation program is built in a memory and the operation program is executed by a microprocessor is
When debugging the operating program, the microprocessor is removed, and instead, the same operation as the microprocessor can be performed, and further, the operation can be stopped and the internal information of the processor at the time of the stop can be displayed. This is called an in-circuit emulator) and is connected for debugging.

【0003】[0003]

【発明が解決しようとする課題】上述したように、従来
のプリンタ装置は、デバッギングのときにインサーキッ
トエミュレータを必要とするため、インサーキットエミ
ュレータが用意できないときは、動作プログラムのデバ
ッギングができないという欠点を有している。またイン
サーキットエミュレータが用意できる場合も、マイクロ
プロセッサを取外してインサーキットエミュレータを接
続しなければならないため、作業が面倒であるという問
題点も有している。
As described above, the conventional printer device requires the in-circuit emulator for debugging, and therefore the operating program cannot be debugged when the in-circuit emulator cannot be prepared. have. Further, even when an in-circuit emulator can be prepared, it is necessary to remove the microprocessor and connect the in-circuit emulator, which causes a problem that the work is troublesome.

【0004】[0004]

【課題を解決するための手段】本発明のプリンタ装置
は、動作プログラムを格納する読書き可能なメモリと、
前記メモリから前記動作プログラムを読出して実行する
マイクロプロセッサと、表示器および入力スイッチを有
する操作パネルと、前記操作パネルをデバッギング状態
に設定するモード切替えスイッチとを備え、前記モード
切替えスイッチによって前記操作パネルをデバッギング
状態に設定したとき、前記操作パネルから前記動作プロ
グラムの内容を変更するためのメモリの停止アドレスを
入力し、前記マイクロプロセッサによってこの停止アド
レスが示す領域に対してジャンプ命令を書込み、前記動
作プログラムのデバッグを実行中に前記ジャンプ命令に
よって表示プログラムの実行に移行して前記マイクロプ
ロセッサの内部の情報を前記操作パネルに表示するよう
にしたものである。
A printer device according to the present invention comprises a readable / writable memory for storing an operation program,
The operation panel includes a microprocessor for reading the operation program from the memory and executing the operation program, an operation panel having a display and an input switch, and a mode changeover switch for setting the operation panel in a debugging state. Is set to the debugging state, the stop address of the memory for changing the contents of the operation program is input from the operation panel, the microprocessor writes a jump instruction to the area indicated by the stop address, and the operation is performed. While the program is being debugged, the display jumps to the execution of the display program by the jump instruction and the information inside the microprocessor is displayed on the operation panel.

【0005】[0005]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0006】図1は本発明の一実施例を示すブロック
図、図2は図1の実施例の主動作を示すフローチャー
ト、図3は図1の実施例の書換えプログラムの実行動作
を示すフローチャート、図4は図1の実施例の表示プロ
グラムの実行動作を示すフローチャートである。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flow chart showing the main operation of the embodiment of FIG. 1, FIG. 3 is a flow chart showing the rewriting program execution operation of the embodiment of FIG. FIG. 4 is a flowchart showing the execution operation of the display program of the embodiment of FIG.

【0007】図1のプリンタ装置1は、ホストコンピュ
ータ20から送られてくる印刷データを受診して、印字
機構部6においてそれを印字用紙上に印刷する。プロセ
ッサ2は、このプリンタ装置1全体の動作の制御を司ど
る。メモリ3は、プロセッサ2によって読書きが可能で
あり、プロセッサ2が制御のために実行する動作プログ
ラムを格納している。データ受信インタフェース4は、
ホストコンピュータ20とプロセッサ2との間のインタ
フェース制御を行う。印刷インタフェース5は、印字機
構部6とプロセッサ2との間のインタフェース制御を行
う。操作パネル7は、表示器8と入力スイッチ9とを有
しており、プリンタ装置1がホストコンピュータ20か
ら送られてくる印刷データを印字機構部6において印刷
する状態(印刷モード)のときは、入力スイッチ9から
文字の種類の選択等の印刷機能の指定の操作を行い、表
示器8にプリンタ装置1の操作のために必要な表示を行
う。プロセッサ2が実行する動作プログラムのデバッグ
を行うとき(デバッギングモード)は、入力スイッチ9
からアドレス値の入力を行い、表示器8にプロセッサ2
の内部情報の表示を行う。モード切替えスイッチ10
は、プリンタ装置1の動作モードを印刷モードまたはデ
バッギングモードに切替えるため、オペレータが操作す
るためのスイッチである。
The printer device 1 shown in FIG. 1 receives print data sent from the host computer 20, and prints it on the print paper in the print mechanism section 6. The processor 2 controls the operation of the printer device 1 as a whole. The memory 3 is readable and writable by the processor 2 and stores an operation program executed by the processor 2 for control. The data reception interface 4 is
It controls the interface between the host computer 20 and the processor 2. The print interface 5 controls the interface between the print mechanism unit 6 and the processor 2. The operation panel 7 has a display 8 and an input switch 9, and when the printer device 1 is in a state (print mode) for printing the print data sent from the host computer 20, in the print mechanism unit 6, An operation for designating a printing function such as selection of a character type is performed from the input switch 9, and a display necessary for operating the printer device 1 is displayed on the display unit 8. When debugging the operation program executed by the processor 2 (debugging mode), the input switch 9
Input the address value from the
The internal information of is displayed. Mode switch 10
Is a switch for the operator to operate in order to switch the operation mode of the printer device 1 to the printing mode or the debugging mode.

【0008】次に上述のように構成したプリンタ装置の
動作について図2〜図4を参照説明する。
Next, the operation of the printer device constructed as described above will be described with reference to FIGS.

【0009】プリンタ装置1の主動作は、図2に示すよ
うに動作する。オペレータが電源を投入するとき、ホス
トコンピュータ20から送られてくる印刷データを印刷
する状態にしたいときは、モード切替えスイッチ10を
印刷モードに設定し、プロセッサ2が実行する動作プロ
グラムのデバッグを行いたいときは、モード切替えスイ
ッチ10をデバッギングモードに設定する(ステップ1
1)。ステップ11において印刷モードに設定されたと
きは、プリンタ装置1は、通常の印刷動作を行う。すな
わち、ホストコンピュータ20からプリンタ装置1に対
して印刷データが送られてくると、プロセッサ2は、そ
れをデータ受診インタフェース4を介して受診する(ス
テップ13)。プロセッサ2は、この印刷データを印刷
可能な形式に加工し(ステップ14)、加工した印刷デ
ータを印刷インタフェース5を介して印字機構部6に送
って印刷させる(ステップ14)。この一連の動作を反
復し、ホストコンピュータ20から送られてきたすべて
の印刷データの出力印刷を終了することによって動作を
完了する。ステップ11においてデバッギングモードに
設定されたときは、プロセッサ2は、書換えプログラム
を実行した(ステップ12)後、ステップ13に移行す
る。
The main operation of the printer device 1 operates as shown in FIG. When the operator turns on the power and wants to print the print data sent from the host computer 20, the mode selector switch 10 is set to the print mode and the operation program executed by the processor 2 is debugged. In this case, the mode switch 10 is set to the debugging mode (step 1
1). When the print mode is set in step 11, the printer device 1 performs a normal print operation. That is, when the print data is sent from the host computer 20 to the printer device 1, the processor 2 receives the print data via the data check interface 4 (step 13). The processor 2 processes the print data into a printable format (step 14), and sends the processed print data to the print mechanism unit 6 via the print interface 5 to print (step 14). This series of operations is repeated to complete the output printing of all the print data sent from the host computer 20, thereby completing the operation. When the debugging mode is set in step 11, the processor 2 executes the rewriting program (step 12) and then proceeds to step 13.

【0010】書換えプログラムの実行は、図3に示すよ
うに、まずオペレータが操作パネル7の入力スイッチ9
から停止アドレスを入力する(ステップ16)。この停
止アドレスの入力が終ると、プロセッサ2は、メモリ3
のこの停止アドレスが示す領域に対して表示プログラム
にジャンプする命令(ジャンプ命令)を書込む(ステッ
プ17)。以上によって書換えプログラムの実行は終了
する。
To execute the rewriting program, as shown in FIG. 3, the operator first inputs the input switch 9 on the operation panel 7.
The stop address is input from (step 16). When the input of the stop address is completed, the processor 2 causes the memory 3
An instruction (jump instruction) for jumping to the display program is written in the area indicated by this stop address (step 17). With the above, the execution of the rewriting program ends.

【0011】書換えプログラムの実行が終了すると、プ
ロセッサ2は、デバッグの対象となっているプログラム
をステップ13〜15によって通常のように印刷する。
この印刷されたプログラム中には、ステップ17で書込
まれたジャンプ命令が含まれており、プロセッサ2は、
このジャンプ命令を実行した時点で表示プログラムの実
行に移行する。
When the execution of the rewriting program is completed, the processor 2 prints the program to be debugged as usual in steps 13 to 15.
The jump instruction written in step 17 is included in the printed program, and the processor 2
When this jump instruction is executed, the display program is executed.

【0012】表示プログラムの実行は、図4に示すよう
に、プロセッサ2のレジスタの値を操作パネル7の表示
器8に表示する(ステップ18)。
The display program is executed by displaying the register value of the processor 2 on the display 8 of the operation panel 7 as shown in FIG. 4 (step 18).

【0013】このように、デバッギングモードにおい
て、デバッグの対象となっているプログラムの停止アド
レスを操作パネル7の入力スイッチ9から入力し、プロ
セッサ2は、メモリ3のこの停止アドレスが示す領域に
対してジャンプ命令を書込み、デバッグを実行中にその
ジャンプ命令によって表示プログラムの実行に移行し、
プロセッサ2のレジスタの値を操作パネル7の表示器8
に表示することにより、従来のインサーキットエミュレ
ータを接続して行ってきた動作の停止と、その停止した
時点におけるプロセッサの内部情報の表示と同等の機能
を実行することが可能となる。
As described above, in the debugging mode, the stop address of the program to be debugged is input from the input switch 9 of the operation panel 7, and the processor 2 writes to the area indicated by the stop address of the memory 3. Write a jump instruction, and while executing debug, move to the execution of the display program by the jump instruction,
Display the value of the register of the processor 2 on the display 8 of the operation panel 7.
It is possible to execute the function equivalent to the stop of the operation performed by connecting the conventional in-circuit emulator and the display of the internal information of the processor at the time of the stop.

【0014】なお、表示プログラムの実行においては、
プロセッサ2のレジスタの値を操作パネル7の表示器8
に表示するのみでなく、メモリや入出力ポート等のプロ
セッサ2が認識できる値を一緒に表示することが可能で
ある。
In executing the display program,
Display the value of the register of the processor 2 on the display 8 of the operation panel 7.
It is possible to display not only the values displayed in the above, but also the values such as the memory and the input / output port that the processor 2 can recognize.

【0015】[0015]

【発明の効果】以上説明したように、本発明のプリンタ
装置は、プリンタ装置の動作モードを印刷モードまたは
デバッギングモードに切替えるモード切替えスイッチを
設け、デバッギングモードとしたとき、デバッグの対象
となっているプログラムの停止アドレスを操作パネルの
入力スイッチから入力し、プロセッサによってメモリの
この停止アドレスが示す領域に対してジャンプ命令を書
込み、デバッグを実行中にそのジャンプ命令によって表
示プログラムの実行に移行してプロセッサのレジスタの
値を操作パネルの表示器に表示することにより、従来の
インサーキットエミュレータを接続して行ってきた動作
の停止と、その停止した時点におけるプロセッサの内部
情報の表示と同等の機能を実行することが可能となるた
め、インサーキットエミュレータがなくてもデバッグを
実行することが可能になるという効果があり、また、マ
イクロプロセッサを取外してインサーキットエミュレー
タを接続する必要がなくなるため、作業を容易にするこ
とができるという効果もある。
As described above, the printer apparatus of the present invention is provided with a mode changeover switch for switching the operation mode of the printer apparatus to the printing mode or the debugging mode. The stop address of the program is input from the input switch on the operation panel, the processor writes a jump instruction to the area indicated by this stop address of the memory, and while the debug is being executed, the jump instruction shifts to the execution of the display program. By displaying the value of the register on the display of the operation panel, the same function as the operation stopped by connecting the conventional in-circuit emulator and the display of the internal information of the processor at the time of the stop can be executed. It is possible to There is an effect that the emulator is capable of executing debug without also it is not necessary to connect the in-circuit emulator to remove the microprocessor is eliminated, there is also an effect that it is possible to facilitate the work.

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

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

【図2】図1の実施例の主動作を示すフローチャートで
ある。
FIG. 2 is a flowchart showing the main operation of the embodiment of FIG.

【図3】図1の実施例の書換えプログラムの実行動作を
示すフローチャートである。
FIG. 3 is a flowchart showing an execution operation of a rewriting program of the embodiment of FIG.

【図4】図1の実施例の表示プログラムの実行動作を示
すフローチャートである。
FIG. 4 is a flowchart showing an execution operation of a display program of the embodiment of FIG.

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

1 プリンタ装置 2 プロセッサ 3 メモリ 4 データ受診インタフェース 5 印刷インタフェース 6 印字機構部 7 操作パネル 8 表示器 9 入力スイッチ 10 モード切替えスイッチ 11〜18 ステップ 20 ホストコンピュータ DESCRIPTION OF SYMBOLS 1 Printer device 2 Processor 3 Memory 4 Data receiving interface 5 Printing interface 6 Printing mechanism 7 Operation panel 8 Display 9 Input switch 10 Mode changeover switch 11-18 Step 20 Host computer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 動作プログラムを格納する読書き可能な
メモリと、前記メモリから前記動作プログラムを読出し
て実行するマイクロプロセッサと、表示器および入力ス
イッチを有する操作パネルと、前記操作パネルをデバッ
ギング状態に設定するモード切替えスイッチとを備え、
前記モード切替えスイッチによって前記操作パネルをデ
バッギング状態に設定したとき、前記操作パネルから前
記動作プログラムの内容を変更するためのメモリの停止
アドレスを入力し、前記マイクロプロセッサによってこ
の停止アドレスが示す領域に対してジャンプ命令を書込
み、前記動作プログラムのデバッグを実行中に前記ジャ
ンプ命令によって表示プログラムの実行に移行して前記
マイクロプロセッサの内部の情報を前記操作パネルに表
示するようにしたことを特徴とするプリンタ装置。
1. A readable / writable memory for storing an operation program, a microprocessor for reading and executing the operation program from the memory, an operation panel having a display and an input switch, and the operation panel in a debugging state. Equipped with a mode switch to set,
When the operation panel is set to the debugging state by the mode changeover switch, the stop address of the memory for changing the content of the operation program is input from the operation panel, and the microprocessor indicates the area indicated by the stop address. A jump command is written in the printer, and while the debugging of the operation program is being executed, the jump command causes the display program to be executed to display information inside the microprocessor on the operation panel. apparatus.
【請求項2】 動作プログラムを格納する読書き可能な
メモリと、前記メモリから前記動作プログラムを読出し
て実行するマイクロプロセッサと、表示器および入力ス
イッチを有する操作パネルと、前記操作パネルをデバッ
ギング状態に設定するモード切替えスイッチと、ホスト
コンピュータと前記マイクロプロセッサとの間のインタ
フェース制御を行うデータ受信インタフェースとを備
え、前記モード切替えスイッチによって前記操作パネル
をデバッギング状態に設定したとき、前記操作パネルか
ら前記動作プログラムの内容を変更するためのメモリの
停止アドレスを入力し、前記マイクロプロセッサによっ
てこの停止アドレスが示す領域に対してジャンプ命令を
書込み、前記動作プログラムのデバッグを実行中に前記
ジャンプ命令によって表示プログラムの実行に移行して
前記マイクロプロセッサの内部の情報を前記操作パネル
に表示するようにしたことを特徴とするプリンタ装置。
2. A readable / writable memory for storing an operation program, a microprocessor for reading and executing the operation program from the memory, an operation panel having a display and an input switch, and the operation panel in a debugging state. A mode changeover switch to be set and a data reception interface for performing interface control between the host computer and the microprocessor, and when the operation panel is set to the debugging state by the mode changeover switch, the operation from the operation panel is performed. The stop address of the memory for changing the contents of the program is input, a jump instruction is written to the area indicated by the stop address by the microprocessor, and the jump instruction is executed during the debugging of the operation program. A printer device, characterized in that the internal information of the microprocessor is displayed on the operation panel after execution of a display program.
JP2939292A 1992-02-17 1992-02-17 Printer Pending JPH05221082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2939292A JPH05221082A (en) 1992-02-17 1992-02-17 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2939292A JPH05221082A (en) 1992-02-17 1992-02-17 Printer

Publications (1)

Publication Number Publication Date
JPH05221082A true JPH05221082A (en) 1993-08-31

Family

ID=12274873

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2939292A Pending JPH05221082A (en) 1992-02-17 1992-02-17 Printer

Country Status (1)

Country Link
JP (1) JPH05221082A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57152056A (en) * 1981-03-13 1982-09-20 Fujitsu Ltd Detection system for hardware failure
JPH02219134A (en) * 1989-02-20 1990-08-31 Ricoh Co Ltd Data processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57152056A (en) * 1981-03-13 1982-09-20 Fujitsu Ltd Detection system for hardware failure
JPH02219134A (en) * 1989-02-20 1990-08-31 Ricoh Co Ltd Data processor

Similar Documents

Publication Publication Date Title
JP3003290B2 (en) Printing equipment
JPH05221082A (en) Printer
JPH0299379A (en) Printer
JPH07149002A (en) Printer
JPS62236745A (en) Data processing device
JP2003263340A (en) Debug device
JPH02232720A (en) Processing contents trace display device for printer
JPH068534A (en) Printer
JPH04276479A (en) Printing apparatus
JPH11288371A (en) In-circuit emulator
JPH05294017A (en) Recording device
JPH0997144A (en) Printer test method
JPH01108628A (en) Print processor with memory diagnosing function
JPS62235635A (en) Printing device
JPS6031659A (en) Microprogram control type data processor
JPH05165671A (en) Program debugging device
JPH11175366A (en) Electronic circuit analysis device, electronic circuit analysis method, medium recording electronic circuit analysis program and electronic circuit analysis system
JPS62168242A (en) Debug system for subprocessor
JP2000122896A (en) Method for supporting debug
JPH05216600A (en) Printer
JPH05204710A (en) Event tracer
JPH06149509A (en) Printer
JPH0675721A (en) Printer device
JPH05338279A (en) Printer
JPS6277656A (en) Program debugging system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980630