JPH08221297A - Program debugging device - Google Patents

Program debugging device

Info

Publication number
JPH08221297A
JPH08221297A JP7053617A JP5361795A JPH08221297A JP H08221297 A JPH08221297 A JP H08221297A JP 7053617 A JP7053617 A JP 7053617A JP 5361795 A JP5361795 A JP 5361795A JP H08221297 A JPH08221297 A JP H08221297A
Authority
JP
Japan
Prior art keywords
program
external device
communication interface
ram
debug
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
JP7053617A
Other languages
Japanese (ja)
Inventor
Takao Yoshida
孝夫 吉田
Hiroyuki Takahama
浩之 高濱
Iwao Azuma
岩男 東
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.)
CHIYOUFU SEISAKUSHO KK
Chofu Seisakusho Co Ltd
Original Assignee
CHIYOUFU SEISAKUSHO KK
Chofu Seisakusho 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 CHIYOUFU SEISAKUSHO KK, Chofu Seisakusho Co Ltd filed Critical CHIYOUFU SEISAKUSHO KK
Priority to JP7053617A priority Critical patent/JPH08221297A/en
Publication of JPH08221297A publication Critical patent/JPH08221297A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE: To provide an inexpensive program debugging device in which memory data is easy to understand, and a program need not be stopped during the display of the memory data, and the display of the memory data of plural machine built-in type microcomputers is facilitated. CONSTITUTION: The microcomputer 10 is provided with a CPU 13, a ROM 14 in which an application program and a debugging program to be executed by this CPU 13 are stored, a communication interface 12, and a RAM 15. The CPU 13 executes the application program in response to a debugging command through the communication interface 12 from an external device 11, and executes debugging, and informs the external device 11 of this result, and also, rewrites the constant of the RAM 15 by the command of the external device 11. The external device 11 receives the memory data of the RAM 15 through the communication interface 12, and displays this memory data after converting it by the use of a conversion table.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ROM(読出し専用メ
モリ)に書き込まれたプログラムのデバッグを行なうプ
ログラムデバッグ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program debug device for debugging a program written in a ROM (read only memory).

【0002】[0002]

【従来の技術】近年、マイクロコンピュータは、プログ
ラムによってさまざまな用途に適用できる汎用の電子部
品として、工作機器や工場の工程制御用装置への組込
み、さらには家電製品への組込みなど、多岐の分野に適
用されている。このような機器組込み形マイクロコンピ
ュータは一般に、ROMにアプリケーションプログラム
を格納し、そのプログラムを実行することにより被制御
機器と共に多用な機能を実現している。このような機器
組込み形マイクロコンピュータのプログラム開発は一般
に、従来のプログラムデバッグ装置としてのインサーキ
ットエミュレータ(IEC、In Circuit E
mulator)を用いて行なわれていた。
2. Description of the Related Art In recent years, microcomputers have been used in a wide variety of fields as general-purpose electronic components that can be applied to various purposes by programs, such as being incorporated in machine tools and process control devices in factories, and even in home appliances. Has been applied to. Such a device-embedded microcomputer generally stores an application program in a ROM and executes the program to realize various functions together with the controlled device. Generally, the program development of such a device-embedded microcomputer is performed by an in-circuit emulator (IEC, In Circuit E) as a conventional program debug device.
mutator).

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
たようなインサーキットエミュレータを用いたプログラ
ム開発におけるプログラムデバッグは、インサーキット
エミュレータが高価であり、また、機器組込み形マイク
ロコンピュータに搭載されるCPU(中央処理装置)の
種類に応じた専用のインサーキットエミュレータを使用
しなければならないため、開発コストが上昇するという
問題点があった。また、インサーキットエミュレータは
マイクロコンピュータのメモリのデータを10進法、2
進法、16進法による数字で表示するのみであり、メモ
リデータの理解が容易でなかった。さらに、インサーキ
ットエミュレータは機器組込み形マイクロコンピュータ
のプログラムを停止させなければそのメモリデータを読
み出すことができず、インサーキットエミュレータにメ
モリデータを表示するときには機器組込み形マイクロコ
ンピュータのプログラムの実行を停止する必要があっ
た。さらに、複数の機器組込み形マイクロコンピュータ
のメモリデータを表示するには複数台のインサーキット
エミュレータが必要であった。
However, in the program debugging in the program development using the in-circuit emulator as described above, the in-circuit emulator is expensive, and the CPU (central CPU) incorporated in the device-embedded microcomputer is used. Since there is a need to use a dedicated in-circuit emulator according to the type of processing device, there is a problem that the development cost rises. The in-circuit emulator uses the data in the memory of the microcomputer in decimal notation, 2
It was only displayed as numbers in base and hexadecimal, and it was not easy to understand the memory data. Further, the in-circuit emulator cannot read the memory data unless the program of the device-embedded microcomputer is stopped, and the execution of the program of the device-embedded microcomputer is stopped when the memory data is displayed on the in-circuit emulator. There was a need. Furthermore, in order to display the memory data of a plurality of device-embedded microcomputers, a plurality of in-circuit emulators are required.

【0004】本発明は上記事情を考慮してなされたもの
であり、その目的とするところは、安価で、メモリデー
タの理解が容易で、メモリデータ表示中にプログラムを
停止する必要がなく、複数の機器組込み形マイクロコン
ピュータのメモリデータの表示が容易なプログラムデバ
ッグ装置を提供することにある。
The present invention has been made in consideration of the above circumstances, and an object thereof is to make it inexpensive, to easily understand memory data, and to prevent a program from being stopped while displaying memory data. To provide a program debug device capable of easily displaying memory data of a device-embedded microcomputer.

【0005】[0005]

【課題を解決するための手段】この目的を達成するため
に本発明の請求項1記載のプログラムデバッグ装置は、
各種機器に組み込まれる機器組込み形マイクロコンピュ
ータと、機器組込み形マイクロコンピュータと接続され
る外部装置とから成るプログラムデバッグ装置におい
て、機器組込み形マイクロコンピュータは、CPUと、
このCPUにより実行されるアプリケーションプログラ
ムとこのアプリケーションプログラムをデバッグするた
めのデバッグ用プログラムとを格納するROMと、外部
装置と双方向のデータ通信を行う通信インタフェース
と、ランダムアクセスおよびデータ書換えが可能なRA
Mとを有し、CPUは、通信インタフェースを介して外
部装置から受信されるデバッグ用コマンドに応じてアプ
リケーションプログラムとデバッグ用プログラムとを実
行させ、アプリケーションプログラムのデバッグを行な
い、アプリケーションプログラムデバッグの結果を通信
インタフェースを介して外部装置に通知すると共に、通
信インタフェースを介して受信する外部装置からのコマ
ンドによりRAMに格納されている任意の定数の書換え
を行ない、外部装置は、通信インタフェースを介してR
AMのメモリデータを受信し、受信したメモリデータを
予め設定した変換テーブルにより変換して表示する。
In order to achieve this object, a program debug device according to claim 1 of the present invention comprises:
In a program debug device including a device-embedded microcomputer incorporated in various devices and an external device connected to the device-embedded microcomputer, the device-embedded microcomputer includes a CPU,
A ROM storing an application program executed by the CPU and a debugging program for debugging the application program, a communication interface for bidirectional data communication with an external device, and an RA capable of random access and data rewriting.
The CPU has M and executes the application program and the debug program in accordance with a debug command received from an external device via the communication interface, debugs the application program, and outputs the result of the application program debug. The external device is notified via the communication interface, and an arbitrary constant stored in the RAM is rewritten by a command from the external device received via the communication interface.
The memory data of AM is received, and the received memory data is converted by a preset conversion table and displayed.

【0006】請求項2記載のプログラムデバッグ装置
は、各種機器に組み込まれる機器組込み形マイクロコン
ピュータと、機器組込み形マイクロコンピュータと接続
される外部装置とから成るプログラムデバッグ装置にお
いて、機器組込み形マイクロコンピュータは、CPU
と、このCPUにより実行されるアプリケーションプロ
グラムとこのアプリケーションプログラムをデバッグす
るためのデバッグ用プログラムとを格納するROMと、
外部装置と双方向のデータ通信を行う通信インタフェー
スと、ランダムアクセスおよびデータ書換えが可能なR
AMとを有し、CPUは、通信インタフェースを介して
外部装置から受信されるデバッグ用コマンドに応じてア
プリケーションプログラムとデバッグ用プログラムとを
実行させ、アプリケーションプログラムのデバッグを行
ない、アプリケーションプログラムデバッグの結果を通
信インタフェースを介して外部装置に通知すると共に、
通信インタフェースを介して受信する外部装置からのコ
マンドによりRAMに格納されている任意の定数の書換
えを行ない、外部装置は、通信インタフェースを介して
RAMの複数のメモリデータを受信し、受信した複数の
メモリデータの各々を予め設定した複数の変換テーブル
により変換して表示する。
According to a second aspect of the present invention, there is provided a program debug device comprising a device-embedded microcomputer incorporated in various devices and an external device connected to the device-embedded microcomputer, wherein the device-embedded microcomputer is , CPU
And a ROM storing an application program executed by the CPU and a debugging program for debugging the application program,
Communication interface for bidirectional data communication with external devices and R for random access and data rewriting
The CPU, which has an AM, executes the application program and the debug program in accordance with a debug command received from an external device via the communication interface, debugs the application program, and outputs the result of the application program debug. Notify the external device via the communication interface,
An arbitrary constant stored in the RAM is rewritten by a command from the external device received via the communication interface. The external device receives a plurality of memory data in the RAM via the communication interface and receives a plurality of received data. Each of the memory data is converted by a plurality of preset conversion tables and displayed.

【0007】請求項3記載のプログラムデバッグ装置
は、請求項2記載のプログラムデバッグ装置において、
機器組込みマイクロコンピュータが複数台から成り、複
数台の機器組込みマイクロコンピュータの各々の通信イ
ンタフェースを切り換えて接続する切換え部を備え、外
部装置は、複数台の機器組込みマイクロコンピュータの
各々のRAMのメモリデータを同時に表示する表示制御
部を有する。
A program debug device according to a third aspect is the program debug device according to the second aspect,
The device-embedded microcomputer comprises a plurality of devices, and a switching unit for switching and connecting the communication interfaces of the device-embedded microcomputers is provided. The external device is the memory data of the RAM of each of the device-embedded microcomputers. Is displayed at the same time.

【0008】[0008]

【作用】この構成によって、高価なインサーキットエミ
ュレータを用いることなく一般的なパーソナルコンピュ
ータを用いてアプリケーションプログラムのデバッグを
行なうことができるので、安価な構成とすることがで
き、また、メモリデータが伝送される外部装置の変換テ
ーブルによりメモリデータが変換されて表示されるの
で、メモリデータの理解が容易となり、さらに、外部装
置による機器組込み形マイクロコンピュータのメモリデ
ータの読み出しは極めて短時間に行なわれるので、メモ
リデータの外部装置での表示中に機器組込み形マイクロ
コンピュータのプログラムを停止する必要がない。さら
に、切換え部により複数の機器組込み形マイクロコンピ
ュータを切り換えることができるので、複数の機器組込
み形マイクロコンピュータのメモリデータであっても表
示が容易となる。
With this configuration, the application program can be debugged using a general personal computer without using an expensive in-circuit emulator, so that the configuration can be made inexpensive and the memory data can be transmitted. Since the memory data is converted and displayed by the conversion table of the external device, it is easy to understand the memory data, and the memory data of the device-embedded microcomputer is read by the external device in an extremely short time. , It is not necessary to stop the program of the device-embedded microcomputer while the memory data is displayed on the external device. Furthermore, since a plurality of device-embedded microcomputers can be switched by the switching unit, even memory data of a plurality of device-embedded microcomputers can be easily displayed.

【0009】[0009]

【実施例】以下、本発明の一実施例について図を用いて
説明する。図1は本発明の一実施例に係るプログラムデ
バッグ装置を示すブロック図である。図1において、1
0は各種機器に組み込まれる機器組込み形マイクロコン
ピュータ、11は機器組込み形マイクロコンピュータ1
0と後述の通信インタフェースを介して接続される外部
装置、12はRS232C、RS422、同期シリアル
通信などの一般的な通信インタフェース、13はCP
U、14はCPU13により実行されるアプリケーショ
ンプログラムとこのアプリケーションプログラムをデバ
ッグするためのデバッグ用プログラムと外部装置11と
通信を行なうための通信用プログラムとを格納するRO
M、15はランダムアクセスおよびデータ書換えが可能
なRAM、16は入出力機器との接続を行なうためのI
/O部である。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a program debug device according to an embodiment of the present invention. In FIG. 1, 1
0 is a device-embedded microcomputer to be incorporated in various devices, 11 is a device-embedded microcomputer 1
0 is an external device connected via a communication interface described later, 12 is a general communication interface such as RS232C, RS422, and synchronous serial communication, 13 is a CP
U and 14 are ROs for storing an application program executed by the CPU 13, a debug program for debugging the application program, and a communication program for communicating with the external device 11.
M and 15 are RAMs capable of random access and data rewriting, and 16 is an I for connecting to input / output devices.
/ O section.

【0010】次に、このような構成のプログラムデバッ
グ装置の機能、動作について説明する。まず、プログラ
ムデバッグ装置の主機能について説明する。機器組込み
形マイクロコンピュータ10は、通信インタフェース1
2を介して、ROM14に記憶されたアプリケーション
プログラムにより外部装置11を制御する。外部装置1
1は、機器組込み形マイクロコンピュータ10と通信イ
ンタフェース12を介してデータ通信を行ない、機器組
込み形マイクロコンピュータ10のRAM15のメモリ
データを読み出したり、そのメモリ(RAM)15に書
き込んだりする。また外部装置11は、機器組込み形マ
イクロコンピュータ10の実行を制御し、機器組込み形
マイクロコンピュータ10のメモリデータを変換テーブ
ルによりデータ変換し、変換されたデータを表示する。
Next, the function and operation of the program debug device having such a configuration will be described. First, the main function of the program debug device will be described. The device-embedded microcomputer 10 includes a communication interface 1
The external device 11 is controlled by the application program stored in the ROM 14 via the server 2. External device 1
1 performs data communication with the device-embedded microcomputer 10 via the communication interface 12, and reads the memory data of the RAM 15 of the device-embedded microcomputer 10 or writes it in the memory (RAM) 15. Further, the external device 11 controls the execution of the device-embedded microcomputer 10, converts the memory data of the device-embedded microcomputer 10 by a conversion table, and displays the converted data.

【0011】次に、プログラムデバッグ装置の動作につ
いて説明する。機器組込み形マイクロコンピュータ10
のアプリケーションプログラムを起動させた後に外部装
置11のプログラムを起動する。外部装置11は、その
プログラムにより一定時間間隔で、機器組込み形マイク
ロコンピュータ10に対して、データ通信と停止の指
示、停止解除の指示、受信したメモリデータの変換とそ
の表示を繰り返し行なう。機器組込み形マイクロコンピ
ュータ10は、アプリケーションプログラムを実行しな
がら、割り込み処理などによって外部装置11とデータ
通信を行なうので、外部装置11には随時、マイクロコ
ンピュータのメモリデータを表示することができる。そ
して、そのメモリデータの表示は数字でなく、デバッグ
する人にわかりやすい表現に変換されているので、仕様
通りの動作をしているか否かの判別が容易で、デバッグ
がしやすい。
Next, the operation of the program debug device will be described. Built-in type microcomputer 10
After activating the application program, the program of the external device 11 is activated. The external device 11 repeatedly performs the data communication and the stop instruction, the stop release instruction, the conversion of the received memory data and the display thereof to the device built-in type microcomputer 10 at a constant time interval by the program. Since the device-incorporated microcomputer 10 performs data communication with the external device 11 by executing interrupt processing or the like while executing the application program, the external device 11 can display the memory data of the microcomputer at any time. Since the display of the memory data is not a number but is converted into an expression that is easy for the person who debugs, it is easy to determine whether or not it is operating according to the specifications, and it is easy to debug.

【0012】このように本実施例では、高価なインサー
キットエミュレータを用いることなく、外部装置11に
おける結果に基づき、機器組込み形マイクロコンピュー
タ10のアプリケーションプログラムのデバッグを行な
うことができる。外部装置11は例えば一般的なパーソ
ナルコンピュータである。また、機器組込み形マイクロ
コンピュータ10はROM14、RAM15、I/O部
16を内蔵したワンチップマイクロコンピュータでもよ
い。
As described above, in this embodiment, the application program of the device-embedded microcomputer 10 can be debugged based on the result of the external device 11 without using an expensive in-circuit emulator. The external device 11 is, for example, a general personal computer. The device-embedded microcomputer 10 may be a one-chip microcomputer including the ROM 14, the RAM 15, and the I / O unit 16.

【0013】図2は図1のプログラムデバッグ装置をさ
らに詳細に示すブロック図である。図2において、10
は機器組込み形マイクロコンピュータ、11は外部装
置、13はCPU、14はROM、15はRAM、16
はI/O部であり、これらは図1と同様なものなので、
同一符号を付して説明は省略する。また、17は複数の
入出力機器(図示せず)および外部装置11とデータ通
信を行なうための通信インタフェースとしてのシリアル
I/O部、18は複数のシリアルI/O部を切り換えて
接続するシリアル信号切換え部(以下、単に「切換え
部」という)、20は機器組込み形マイクロコンピュー
タ10と同一構成の機器組込み形マイクロコンピュー
タ、27は機器組込み形マイクロコンピュータ20のシ
リアルI/O部、111はフロッピーディスクドライ
ブ、112はCRT、113はキーボード、114はC
PU、115はフロッピーディスクドライブ111と接
続されるディスクコントローラ、116はCRT112
と接続されるディスプレイ制御部、117はキーボード
113と接続されるI/O部、118はRAM、119
はROM、120は機器組込み形マイクロコンピュータ
10、20とデータ通信を行なうためのシリアルI/O
部である。
FIG. 2 is a block diagram showing the program debug device of FIG. 1 in more detail. In FIG. 2, 10
Is a device-embedded microcomputer, 11 is an external device, 13 is a CPU, 14 is a ROM, 15 is a RAM, 16
Is the I / O section, and these are the same as in FIG.
The same reference numerals are given and the description is omitted. Further, 17 is a serial I / O unit as a communication interface for performing data communication with a plurality of input / output devices (not shown) and the external device 11, and 18 is a serial I / O unit for switching and connecting a plurality of serial I / O units. A signal switching unit (hereinafter simply referred to as "switching unit"), 20 is a device-embedded microcomputer having the same configuration as the device-embedded microcomputer 10, 27 is a serial I / O unit of the device-embedded microcomputer 20, and 111 is a floppy disk. Disk drive, 112 CRT, 113 keyboard, 114 C
PU, 115 is a disk controller connected to the floppy disk drive 111, and 116 is a CRT 112
Is connected to the keyboard 113, an I / O unit connected to the keyboard 113, 118 is a RAM, 119
Is a ROM and 120 is a serial I / O for performing data communication with the device-embedded microcomputers 10 and 20.
It is a department.

【0014】図2において、外部装置11は一般的なパ
ーソナルコンピュータであり、一般的なパーソナルコン
ピュータ11はデータ通信するためのハードウェアを内
蔵している。また、機器組込み形マイクロコンピュータ
10、20のシリアルI/O部17、27はそれぞれ切
換え部18と接続されている。さらに、ROM14には
アプリケーションプログラムと共にデバッグ用プログラ
ムが格納されている。さらに、フロッピーディスクドラ
イブ111には、外部装置11を制御するプログラムフ
ァイルと共に、デバッグのためのRAMアドレス設定フ
ァイル、複数のRAMデータ変換ファイルが格納されて
いる。
In FIG. 2, the external device 11 is a general personal computer, and the general personal computer 11 has built-in hardware for data communication. The serial I / O units 17 and 27 of the device-embedded microcomputers 10 and 20 are connected to the switching unit 18, respectively. Further, the ROM 14 stores a debugging program as well as an application program. Further, the floppy disk drive 111 stores a RAM address setting file for debugging and a plurality of RAM data conversion files together with a program file for controlling the external device 11.

【0015】図3はシリアルI/O部17、27を示す
ブロック図である。図3において、201はCPUデー
タバス、202はシフトレジスタ、203、204、2
05は信号線、206はカウンタ、207は信号線であ
る。前記図3の回路は、組込み用ワンチップマイクロコ
ンピュータなどに多く利用される外部クロック同期シリ
アル通信回路である。CPU13は、プログラムによ
り、CPUデータバス201からシフトレジスタ202
にデータを書き込み、信号線205に外部クロックXC
LKを入力することによりシフトレジスタ202をシフ
トさせて、シリアル信号SOを信号線204へ出力す
る。入力信号SIのシフトレジスタ202への入力は信
号線203を介して行なわれ、外部クロックXCLKの
入力によりシフトレジスタ202にシフト入力されると
共に、外部クロックXCLKはカウンタ206によりカ
ウントされ、シフトレジスタ202のビット幅のカウン
トを過ぎると、信号線207を介してCPU13、11
4に対して割り込み要求を発生させる。図3の回路で
は、1バイト受信する毎に1バイト送信される仕組みで
送受信を同時に行なう。また、図3のシリアルI/O部
は外部クロックXCLKが入力されない限り動作しない
し、割り込みが発生しないようになっている。
FIG. 3 is a block diagram showing the serial I / O units 17 and 27. In FIG. 3, 201 is a CPU data bus, 202 is a shift register, 203, 204, 2
Reference numeral 05 is a signal line, 206 is a counter, and 207 is a signal line. The circuit shown in FIG. 3 is an external clock synchronous serial communication circuit that is often used in embedded one-chip microcomputers. The CPU 13 shifts the CPU data bus 201 to the shift register 202 according to a program.
Write data to the signal line 205 and the external clock XC
The shift register 202 is shifted by inputting LK, and the serial signal SO is output to the signal line 204. The input signal SI is input to the shift register 202 via the signal line 203. The input signal SI is input to the shift register 202 by the input of the external clock XCLK, and the external clock XCLK is counted by the counter 206. When the bit width count is exceeded, the CPUs 13 and 11 are connected via the signal line 207.
4 generates an interrupt request. In the circuit of FIG. 3, transmission / reception is performed at the same time by a mechanism in which one byte is transmitted every time one byte is received. Further, the serial I / O unit of FIG. 3 does not operate unless an external clock XCLK is input, and no interrupt is generated.

【0016】図4は機器組込み形マイクロコンピュータ
が1台の場合のシリアルI/O部17、27による外部
装置11との接続例を示す接続図である。図4で、左の
信号CLK、SO、SIは外部装置11における信号、
右の信号XCLK、SIA、SOAは機器組込み形マイ
クロコンピュータ10における信号である。外部装置1
1から出力される同期通信用クロックCLKは信号線2
11を介して機器組込み形マイクロコンピュータ10に
クロックXCLKとして入力され、外部装置11から出
力されるシリアル信号SOは信号線212を介して機器
組込み形マイクロコンピュータ10にシリアル信号SI
Aとして入力され、機器組込み形マイクロコンピュータ
10から出力されるシリアル信号SOAは信号線213
を介して外部装置11にシリアル信号SIとして入力さ
れる。
FIG. 4 is a connection diagram showing an example of connection with the external device 11 by the serial I / O units 17 and 27 in the case where there is one built-in type microcomputer. In FIG. 4, the left signals CLK, SO, and SI are signals in the external device 11,
The signals XCLK, SIA, and SOA on the right are signals in the device-incorporated microcomputer 10. External device 1
The synchronous communication clock CLK output from 1 is the signal line 2
The serial signal SO, which is input as the clock XCLK to the device-embedded microcomputer 10 via 11 and is output from the external device 11, is transmitted to the device-embedded microcomputer 10 via the signal line 212.
A serial signal SOA input as A and output from the device-embedded microcomputer 10 is a signal line 213.
Is input as a serial signal SI to the external device 11 via.

【0017】図5は機器組込み形マイクロコンピュータ
が2台の場合の切換え部18を示す回路図である。図5
において、220〜229は信号線、230は論理和回
路、231、232は論理積回路である。信号線220
を介する外部装置11からの選択信号SELにより、外
部装置11から信号線221を介して入力されるクロッ
クCLKは2台の機器組込み形マイクロコンピュータ1
0、20に信号線227、224を介してクロックXC
LKA、XCLKBとして入力される。信号線222を
介して入力される機器組込み形マイクロコンピュータ1
0、20へのシリアル信号SOは信号線228、信号線
225を介してシリアル信号SIA、SIBとして機器
組込み形マイクロコンピュータ10、20に入力され
る。2台の機器組込み形マイクロコンピュータ10、2
0からのシリアル信号SOA、SOBは論理和回路23
0により論理和され、信号線223を介するシリアル信
号SIとなって外部装置11に入力される。(表1)
に、フロッピーディスクドライブ111に格納されてい
るRAMアドレス設定ファイルの一例を示す。
FIG. 5 is a circuit diagram showing the switching unit 18 in the case where there are two device-embedded microcomputers. Figure 5
In the figure, 220 to 229 are signal lines, 230 is a logical sum circuit, 231 and 232 are logical product circuits. Signal line 220
The clock CLK input from the external device 11 via the signal line 221 by the selection signal SEL from the external device 11 via the two device-embedded microcomputers 1
0, 20 to the clock XC via signal lines 227, 224
It is input as LKA and XCLKB. A device-embedded microcomputer 1 input through a signal line 222
The serial signals SO to 0 and 20 are input to the device built-in type microcomputers 10 and 20 as serial signals SIA and SIB via the signal lines 228 and 225. Two device-embedded microcomputers 10, 2
The serial signals SOA and SOB from 0 are OR circuits 23.
It is logically ORed by 0 and becomes a serial signal SI via the signal line 223 and is input to the external device 11. (Table 1)
An example of the RAM address setting file stored in the floppy disk drive 111 is shown in FIG.

【0018】[0018]

【表1】 [Table 1]

【0019】(表1)に示すファイルの内容は文字列デ
ータが1変数1行に記述されている。行頭から、プログ
ラムの変数(label1、label2、……)、変
換の必要があれば記号@に続く変換ファイル名(@1、
@2、@3)、CPUチップ番号(chip1、chi
p2)、16進RAMアドレス(b0h、b1h、…
…)、表示形式(DEC、HEX)、書込み許可指示
(r、w)の順で記述する。表示形式ではDECは10
進、HEXは16進を表し、書込み許可指示ではrは読
出しのみ、wは書込み許可を表す。(表2)に、フロッ
ピーディスクドライブ111に格納されているRAMデ
ータ変換ファイルの一例を示す。
In the contents of the file shown in (Table 1), character string data is described in one variable and one line. From the beginning of the line, the variables of the program (label1, label2, ...) and the conversion file name (@ 1,
@ 2, @ 3), CPU chip number (chip1, chi)
p2), hexadecimal RAM address (b0h, b1h, ...
...), display format (DEC, HEX), and write permission instruction (r, w). DEC is 10 in display format
HEX and HEX represent hexadecimal notation, and in the write permission instruction, r represents only read and w represents write permission. Table 2 shows an example of the RAM data conversion file stored in the floppy disk drive 111.

【0020】[0020]

【表2】 (表2)に示すそれぞれのファイルは(表1)のRAM
アドレス設定ファイルに指定されている変換ファイルで
ある。ファイルには1行に1つの値とその値が表す任意
の文字列とが記述されている。RAMデータが取り得る
全ての値を記述する必要はない。
[Table 2] Each file shown in (Table 2) is RAM in (Table 1)
It is a conversion file specified in the address setting file. In the file, one value is described in one line and an arbitrary character string represented by the value. It is not necessary to describe all possible values for RAM data.

【0021】図6は、機器組込み形マイクロコンピュー
タ10、20のアプリケーションプログラムの内容を示
すフローチャートである。図6において、まずシリアル
I/O部17、27の初期化を行ない(ステップS
1)、停止フラグがオンか否かを判別する(ステップS
2)。停止フラグがオンと判別した場合は、なにも処理
せずループし、停止フラグがオンでないと判別した場合
は、機器本来の処理を行ない続ける(ステップS3)。
FIG. 6 is a flow chart showing the contents of the application program of the device-embedded microcomputers 10, 20. In FIG. 6, first, the serial I / O units 17 and 27 are initialized (step S
1) It is determined whether or not the stop flag is on (step S
2). If it is determined that the stop flag is on, no processing is performed to loop, and if it is determined that the stop flag is not on, the device's original processing continues (step S3).

【0022】図7は、機器組込み形マイクロコンピュー
タ10、20における外部装置11からの割り込みルー
チン、すなわちデバッグ用プログラム内容のルーチンを
示すフローチャートである。図6のプログラムの実行中
に外部装置11からのシリアル通信(シリアル信号入
力)があると、図3のシリアルI/O部17、27より
割り込みが発生する。この割り込みにより実行されるル
ーチンでは、コマンドの種類によって、RAM読出し処
理(ステップS11、S12)、RAM書込み処理(ス
テップS13、S14)、停止処理(ステップS15、
S16)、停止解除処理(ステップS17、S18)を
行なう。割り込みルーチンはデバッグ用ルーチンであ
り、機器本来の処理とは無関係であるが、外部装置11
からのシリアル信号入力がない限り実行されないので、
最終的に製品のプログラムに残しても問題はない。
FIG. 7 is a flow chart showing an interrupt routine from the external device 11 in the device-embedded microcomputers 10 and 20, that is, a routine of contents of a program for debugging. If there is serial communication (serial signal input) from the external device 11 during execution of the program of FIG. 6, an interrupt occurs from the serial I / O units 17 and 27 of FIG. In the routine executed by this interrupt, RAM read processing (steps S11 and S12), RAM write processing (steps S13 and S14), and stop processing (step S15, depending on the type of command)
S16) and stop release processing (steps S17 and S18) are performed. The interrupt routine is a debugging routine and has nothing to do with the original processing of the device, but the external device 11
It will not be executed unless there is a serial signal input from
There is no problem in finally leaving it in the product program.

【0023】図8は、上記シリアル通信における通信手
順を説明するためのデータ図である。このシリアル通信
では図8に示すように3バイトを基本にしていて、1バ
イト目はコマンド、2バイト目はアドレス、3バイト目
はデータを送受信するようにプログラムされている。1
バイト目のコマンドは、1が停止解除、2が停止、3が
読出し、4が書込みのコマンドである。2バイト目のア
ドレスは0から255まで表すことができ、3バイト目
のデータも0から255まで表することができる。上記
3バイトは、外部装置11と機器組込み形マイクロコン
ピュータ10、20とが図3のシリアルI/O部17、
27により同時に送受信を行なうことにより通信され
る。しかし、コマンドバイトは外部装置11から出力さ
れ、停止解除、停止、読出し、書込みに対する数値は上
述のように定められている。2バイト目のアドレスバイ
トは外部装置11から出力され、機器組込み形マイクロ
コンピュータ10、20のRAMアドレスを指定する。
3バイト目のデータバイトは外部装置11から機器組込
み形マイクロコンピュータ10、20のRAMにデータ
を書き込む場合は有効であるが、読出しの場合は3バイ
ト目のデータは廃棄され、機器組込み形マイクロコンピ
ュータ10、20の出力データのみが有効となる。
FIG. 8 is a data diagram for explaining the communication procedure in the serial communication. In this serial communication, as shown in FIG. 8, 3 bytes are basically used, and the first byte is programmed to send / receive a command, the second byte is an address, and the third byte is data. 1
As for the command of the byte, 1 is a stop release command, 2 is a stop command, 3 is a read command, and 4 is a write command. The address of the second byte can be represented from 0 to 255, and the data of the third byte can be represented from 0 to 255. The 3 bytes are stored in the serial I / O unit 17 of FIG. 3 by the external device 11 and the device-embedded microcomputers 10, 20.
Communication is performed by simultaneously transmitting and receiving by 27. However, the command byte is output from the external device 11, and the numerical values for stop release, stop, read, and write are defined as described above. The second address byte is output from the external device 11 and specifies the RAM address of the device-embedded microcomputer 10 or 20.
The data byte of the third byte is effective when data is written from the external device 11 to the RAM of the device-embedded microcomputer 10 or 20, but when read, the data of the third byte is discarded, and the device-embedded microcomputer. Only the output data of 10 and 20 are valid.

【0024】図9は、外部装置11のプログラムを説明
するためのフローチャートである。上記プログラムで
は、はじめに表1のRAMアドレス指定ファイルとRA
Mデータ変換ファイルをフロッピーディスクドライブ1
11(図2)から読み出し、RAM118にセットする
(ステップS31)。RAM118にセットされた変換
テーブル文字列配列データは変換テーブルを構成する。
BASIC言語でRAMアドレス設定配列データと変換
テーブル文字列配列データを記述すると、それぞれ次の
ようになる。 DIM RAMDEF(10)(5) DIM TRANSTBL$(10)(256) ここで、RAMアドレス設定配列データは10個のRA
Mデータを扱い、変数は次の意味を表す。 RAMDEF(I)(1)はI番目のRAMアドレス変
数のRAMアドレス RAMDEF(I)(2)はI番目のRAMアドレス変
数の変換テーブル番号 RAMDEF(I)(3)はI番目のRAMアドレス変
数の表示データ形式 RAMDEF(I)(4)はI番目のRAMアドレス変
数のCPU選択番号 RAMDEF(I)(5)はI番目のRAMアドレス変
数の書込み許可フラグ また、文字列変数TRANSTBL$(I)(J)はI
番目の変換テーブルの値Jに相当する文字列である。
FIG. 9 is a flow chart for explaining the program of the external device 11. In the above program, first, the RAM address specification file and RA of Table 1
M data conversion file to floppy disk drive 1
It is read from 11 (FIG. 2) and set in the RAM 118 (step S31). The conversion table character string array data set in the RAM 118 constitutes a conversion table.
The RAM address setting array data and the conversion table character string array data are described in the BASIC language as follows. DIM RAMDEF (10) (5) DIM TRANSBL $ (10) (256) Here, the RAM address setting array data is 10 RAs.
M data is handled, and variables have the following meanings. RAMDEF (I) (1) is the RAM address of the Ith RAM address variable RAMDEF (I) (2) is the conversion table number of the Ith RAM address variable RAMDEF (I) (3) is the Ith RAM address variable Display data format RAMDEF (I) (4) is the CPU selection number of the I-th RAM address variable RAMDEF (I) (5) is the write enable flag of the I-th RAM address variable Also, character string variable TRANSTBL $ (I) ( J) is I
It is a character string corresponding to the value J of the th conversion table.

【0025】次に、キー入力コマンドがあるか否かを判
別する(ステップS32)。キー入力なしと判別した場
合には、RAMアドレス設定配列データに指定されたア
ドレスの機器組込み形マイクロコンピュータ10、20
のRAM15のデータを読み出し(ステップS33)、
RAMアドレス設定配列データに指定されている変換テ
ーブル番号の変換テーブル文字列配列データの中から、
RAMデータの値に対応する文字列を検索し(ステップ
S34)、これを表示する(ステップS35)。変換テ
ーブル番号が指定されていない場合には表示データ形式
にて表示する。また、指定した番号の変換テーブルに、
読み出したRAMデータの値に等しい文字列がない場合
には表示しない(ステップS35)。この一連の処理を
繰り返すことにより、実行中の機器組込み形マイクロコ
ンピュータ10、20の指定したRAMデータの内容が
数値及び変換された文字列でCRT112に表示され続
ける。この表示内容の一例を(表3)に示す。
Next, it is determined whether or not there is a key input command (step S32). When it is determined that there is no key input, the device-embedded microcomputer 10, 20 having the address specified in the RAM address setting array data
Reading the data from the RAM 15 (step S33),
From the conversion table character string array data of the conversion table number specified in the RAM address setting array data,
A character string corresponding to the value of the RAM data is retrieved (step S34) and displayed (step S35). If the conversion table number is not specified, it will be displayed in the display data format. Also, in the conversion table of the specified number,
If there is no character string equal to the read RAM data value, it is not displayed (step S35). By repeating this series of processing, the contents of the RAM data designated by the device-incorporated microcomputer 10 or 20 being executed are continuously displayed as numerical values and converted character strings on the CRT 112. An example of this display content is shown in (Table 3).

【0026】[0026]

【表3】 [Table 3]

【0027】(表3)におけるlabel〜DEC r
は前述した通りの内容である。同一行の次のRAM=1
はRAMの「b0」番地データが「1」であることを示
し、状態Aは(表2)に示すようにRAM=1に対応す
る文字列である。状態Aとは例えばサーミスタ温度t=
60℃のような状態である。ステップS32でキー入力
コマンドがあると判別された場合には、そのキー入力が
示すコマンドキャラクタにより、RAM書込み処理(ス
テップS36、S37)、停止処理(ステップS38、
S39)、停止解除処理(ステップS40、S41)の
各コマンド処理を行なう。
Label to DEC r in (Table 3)
Is as described above. Next RAM on same line = 1
Indicates that the address data "b0" of the RAM is "1", and the state A is a character string corresponding to RAM = 1 as shown in (Table 2). State A is, for example, the thermistor temperature t =
It is in a state of 60 ° C. When it is determined in step S32 that there is a key input command, the RAM writing process (steps S36 and S37) and the stop process (step S38, depending on the command character indicated by the key input).
S39), each command processing of stop release processing (steps S40, S41) is performed.

【0028】次に、このようなハードウェア、ソフトウ
ェア構成のプログラムデバッグ装置の動作について説明
する。最初に機器組込み形マイクロコンピュータ10、
20が起動されると、この時点で停止フラグはオフに初
期化されているので(図6のステップS1)、機器本来
の処理を行なう(ステップS2、S3)。その後、外部
装置11およびそのプログラムが起動されると、図9の
プログラムにより、機器組込み形マイクロコンピュータ
10、20のRAMデータを数値および分かりやすく変
換された文字列でCRT112によりモニタすることが
できる。これで、機器本来の仕様通りに動作しているか
否かをRAM15格納の内部変数(メモリデータ)で確
認しながら調べることができる。機器に異常があった場
合、停止コマンドをキーボード113から入力して、機
器組込み形マイクロコンピュータ10、20の動作を停
止させて(ステップS38、S39)、上記内部変数を
確認したり、内部変数を変更したりできる。また、機器
組込み形マイクロコンピュータ10、20の動作中に上
記内部変数を変更して、最適な定数を設定することもで
きる(ステップS36、S37)。さらに、機器組込み
形マイクロコンピュータ10、20の動作中に、外部装
置11のプログラムを停止させてもコンピュータ10、
20には全く影響せず、コンピュータ10、20は動作
を継続できる。なお、本実施例ではコンピュータ10、
20のRAMが1個の場合を示したが、RAMが複数で
あっても、外部装置11が、通信インタフェース17を
介してRAMの複数のメモリデータを受信し、受信した
複数のメモリデータの各々を予め設定した複数の変換テ
ーブルにより変換して表示するようにすれば、上記複数
のメモリに対して対応が可能となる。
Next, the operation of the program debug device having such a hardware and software configuration will be described. First, a device-embedded microcomputer 10,
When 20 is activated, the stop flag is initialized to OFF at this point (step S1 in FIG. 6), and the original processing of the device is performed (steps S2 and S3). After that, when the external device 11 and its program are activated, the RAM data of the device-embedded microcomputers 10, 20 can be monitored by the CRT 112 with numerical values and character strings converted in an easily understandable manner by the program of FIG. This makes it possible to check whether or not the device is operating according to the original specifications while confirming the internal variable (memory data) stored in the RAM 15. When there is an abnormality in the device, a stop command is input from the keyboard 113 to stop the operation of the device-embedded microcomputers 10 and 20 (steps S38 and S39) to check the internal variables and set the internal variables. You can change it. Further, it is also possible to change the internal variables during operation of the device-embedded microcomputers 10 and 20 to set optimum constants (steps S36 and S37). Furthermore, even if the program of the external device 11 is stopped during the operation of the device-embedded microcomputers 10, 20, the computer 10,
The computer 10 or 20 can continue to operate without affecting 20 at all. In the present embodiment, the computer 10,
Although the case where 20 RAMs are one is shown, even if there are a plurality of RAMs, the external device 11 receives a plurality of RAM memory data via the communication interface 17, and receives each of the plurality of memory data. Is converted and displayed by a plurality of preset conversion tables, it becomes possible to cope with the plurality of memories.

【0029】このように、本実施例では、機器組込み形
マイクロコンピュータ10、20を切換え部18を介し
て外部装置11、すなわち図2では一般的なパーソナル
コンピュータ11と接続するようにしたので、外部装置
11における表示内容に基づいて、機器組込み形マイク
ロコンピュータ10、20のROM14格納のプログラ
ムのデバッグが可能となる。また、外部装置11のプロ
グラムを変更する必要はなく、機器組込み形マイクロコ
ンピュータ10、20に組み込むデバッグ用プログラム
を変更するだけで、多種多様の機器組込み形マイクロコ
ンピュータに対応可能である。さらに、通信インタフェ
ースとしてのシリアルI/O部17、27はインサーキ
ットエミュレータで使用するような高い周波数で動作す
ることはないので、本装置はノイズにも強く、現場での
デバッグ作業にも適している。
As described above, in this embodiment, the device-embedded microcomputers 10 and 20 are connected to the external device 11 via the switching unit 18, that is, the general personal computer 11 in FIG. It is possible to debug the program stored in the ROM 14 of the device-embedded microcomputer 10, 20 based on the display content on the device 11. Further, it is not necessary to change the program of the external device 11, and it is possible to deal with a wide variety of device-embedded microcomputers simply by changing the debugging program installed in the device-embedded microcomputers 10 and 20. Further, since the serial I / O units 17 and 27 as the communication interface do not operate at the high frequency used in the in-circuit emulator, this device is resistant to noise and suitable for on-site debugging work. There is.

【0030】[0030]

【発明の効果】以上のように本発明は、機器組込み形マ
イクロコンピュータに、CPUと、このCPUにより実
行されるアプリケーションプログラムとこのアプリケー
ションプログラムをデバッグするためのデバッグ用プロ
グラムとを格納するROMと、外部装置と双方向のデー
タ通信を行う通信インタフェースと、ランダムアクセス
およびデータ書換えが可能なRAMとを有し、CPU
は、通信インタフェースを介して外部装置から受信され
るデバッグ用コマンドに応じてアプリケーションプログ
ラムとデバッグ用プログラムとを実行させ、アプリケー
ションプログラムのデバッグを行ない、アプリケーショ
ンプログラムデバッグの結果を通信インタフェースを介
して外部装置に通知すると共に、通信インタフェースを
介して受信する外部装置からのコマンドによりRAMに
格納されている任意の定数の書換えを行ない、外部装置
は、通信インタフェースを介してRAMのメモリデータ
を受信し、受信したメモリデータを予め設定した変換テ
ーブルにより変換して表示するようにしたことにより、
高価なインサーキットエミュレータを用いることなく一
般的なパーソナルコンピュータを外部装置として用いて
アプリケーションプログラムのデバッグを行なうことが
できるので、安価な構成とすることができる。また、メ
モリデータが伝送される外部装置の変換テーブルにより
メモリデータが変換されて表示されるので、メモリデー
タの理解が容易となり、さらに、外部装置による機器組
込み形マイクロコンピュータのメモリデータの読み出し
はデバッグ用プログラムにより極めて短時間に行なわれ
るので、メモリデータの外部装置での表示中に機器組込
み形マイクロコンピュータのプログラムを停止する必要
がない。
As described above, the present invention provides a device-embedded microcomputer with a CPU, an application program executed by the CPU, and a ROM for storing a debugging program for debugging the application program. A CPU having a communication interface for bidirectional data communication with an external device and a RAM capable of random access and data rewriting.
Causes an application program and a debugging program to be executed in accordance with a debugging command received from an external device via the communication interface, debugs the application program, and outputs the result of the application program debugging to the external device via the communication interface. To the memory device, and rewrites an arbitrary constant stored in the RAM according to a command from the external device received via the communication interface, and the external device receives the memory data in the RAM via the communication interface and receives the data. By converting the displayed memory data using the conversion table set in advance and displaying it,
Since a general personal computer can be used as an external device to debug an application program without using an expensive in-circuit emulator, an inexpensive configuration can be obtained. In addition, since the memory data is converted and displayed by the conversion table of the external device to which the memory data is transmitted, the memory data can be easily understood. Furthermore, the reading of the memory data of the device-embedded microcomputer by the external device can be debugged. It is not necessary to stop the program of the built-in type microcomputer while the memory data is being displayed on the external device, because the program is executed in an extremely short time.

【0031】さらに、外部装置が、通信インタフェース
を介してRAMの複数のメモリデータを受信し、受信し
た複数のメモリデータの各々を予め設定した複数の変換
テーブルにより変換して表示することにより、複数のメ
モリに対して対応が可能となる。
Further, the external device receives a plurality of memory data in the RAM through the communication interface, converts each of the plurality of received memory data by a plurality of preset conversion tables, and displays the converted data. It is possible to correspond to the memory of.

【0032】さらに、切換え部により複数の機器組込み
形マイクロコンピュータを切り換えることができるの
で、複数の機器組込み形マイクロコンピュータに対して
あたかも1台の場合と同等の対応が可能であり、上記と
同様の効果を奏することができる。
Furthermore, since a plurality of device-embedded microcomputers can be switched by the switching unit, it is possible to deal with a plurality of device-embedded microcomputers as if they were one unit, and the same as above. It is possible to exert an effect.

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

【図1】本発明の一実施例に係るプログラムデバッグ装
置を示すブロック図である。
FIG. 1 is a block diagram showing a program debug device according to an embodiment of the present invention.

【図2】図1のプログラムデバッグ装置を詳細に示すブ
ロック図である。
FIG. 2 is a detailed block diagram of the program debug device of FIG.

【図3】図2のシリアルI/O部を示すブロック図であ
る。
3 is a block diagram showing a serial I / O unit in FIG. 2. FIG.

【図4】機器組込み形マイクロコンピュータが1台の場
合のシリアルI/O部を示す接続図である。
FIG. 4 is a connection diagram showing a serial I / O unit in the case where there is one device-embedded microcomputer.

【図5】図2のシリアル信号切換え部を示す回路図であ
る。
5 is a circuit diagram showing a serial signal switching unit of FIG.

【図6】機器組込み形マイクロコンピュータのアプリケ
ーションプログラムを説明するためのフローチャートで
ある。
FIG. 6 is a flowchart for explaining an application program of a device-embedded microcomputer.

【図7】機器組込み形マイクロコンピュータの割り込み
ルーチンを示すフローチャートである。
FIG. 7 is a flowchart showing an interrupt routine of a device-embedded microcomputer.

【図8】シリアル通信における通信手順を説明するため
のデータ図である。
FIG. 8 is a data diagram for explaining a communication procedure in serial communication.

【図9】外部装置のプログラムを説明するためのフロー
チャートである。
FIG. 9 is a flowchart illustrating a program of an external device.

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

10、20 機器組込み形マイクロコンピュータ 11 外部装置 12 通信インタフェース 13、114 CPU 14、119 ROM 15、118 RAM 16、117 I/O部 17、27、120 シリアルI/O部 18 シリアル信号切換え部 111 フロッピーディスクドライブ 112 CRT 113 キーボード 115 ディスクコントローラ 116 ディスプレイ制御部 10, 20 Device-embedded microcomputer 11 External device 12 Communication interface 13, 114 CPU 14, 119 ROM 15, 118 RAM 16, 117 I / O unit 17, 27, 120 Serial I / O unit 18 Serial signal switching unit 111 Floppy Disk drive 112 CRT 113 Keyboard 115 Disk controller 116 Display controller

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 各種機器に組み込まれる機器組込み形マ
イクロコンピュータと、前記機器組込み形マイクロコン
ピュータと接続される外部装置とから成るプログラムデ
バッグ装置において、前記機器組込み形マイクロコンピ
ュータは、CPUと、このCPUにより実行されるアプ
リケーションプログラムとこのアプリケーションプログ
ラムをデバッグするためのデバッグ用プログラムとを格
納するROMと、前記外部装置と双方向のデータ通信を
行う通信インタフェースと、ランダムアクセスおよびデ
ータ書換えが可能なRAMとを有し、前記CPUは、前
記通信インタフェースを介して前記外部装置から受信さ
れるデバッグ用コマンドに応じて前記アプリケーション
プログラムとデバッグ用プログラムとを実行させ、前記
アプリケーションプログラムのデバッグを行ない、前記
アプリケーションプログラムデバッグの結果を前記通信
インタフェースを介して前記外部装置に通知すると共
に、前記通信インタフェースを介して受信する前記外部
装置からのコマンドにより前記RAMに格納されている
任意の定数の書換えを行ない、前記外部装置は、前記通
信インタフェースを介して前記RAMのメモリデータを
受信し、前記受信したメモリデータを予め設定した変換
テーブルにより変換して表示することを特徴とするプロ
グラムデバッグ装置。
1. A program debug device comprising a device-embedded microcomputer incorporated in various devices and an external device connected to the device-embedded microcomputer, wherein the device-embedded microcomputer includes a CPU and the CPU. ROM for storing an application program executed by the above and a debugging program for debugging the application program, a communication interface for bidirectional data communication with the external device, and a RAM capable of random access and data rewriting And the CPU executes the application program and the debug program in response to a debug command received from the external device via the communication interface, and the application program is executed. An arbitrary program stored in the RAM in accordance with a command from the external device that is received via the communication interface and that notifies the external device of the result of the application program debug via the communication interface. A program for rewriting the constants in the external device, the external device receiving the memory data of the RAM through the communication interface, converting the received memory data by a preset conversion table, and displaying the converted data. Debug device.
【請求項2】 各種機器に組み込まれる機器組込み形マ
イクロコンピュータと、前記機器組込み形マイクロコン
ピュータと接続される外部装置とから成るプログラムデ
バッグ装置において、前記機器組込み形マイクロコンピ
ュータは、CPUと、このCPUにより実行されるアプ
リケーションプログラムとこのアプリケーションプログ
ラムをデバッグするためのデバッグ用プログラムとを格
納するROMと、前記外部装置と双方向のデータ通信を
行う通信インタフェースと、ランダムアクセスおよびデ
ータ書換えが可能なRAMとを有し、前記CPUは、前
記通信インタフェースを介して前記外部装置から受信さ
れるデバッグ用コマンドに応じて前記アプリケーション
プログラムとデバッグ用プログラムとを実行させ、前記
アプリケーションプログラムのデバッグを行ない、前記
アプリケーションプログラムデバッグの結果を前記通信
インタフェースを介して前記外部装置に通知すると共
に、前記通信インタフェースを介して受信する前記外部
装置からのコマンドにより前記RAMに格納されている
任意の定数の書換えを行ない、前記外部装置は、前記通
信インタフェースを介して前記RAMの複数のメモリデ
ータを受信し、前記受信した複数のメモリデータの各々
を予め設定した複数の変換テーブルにより変換して表示
することを特徴とするプログラムデバッグ装置。
2. A program debug device comprising a device-embedded microcomputer incorporated in various devices and an external device connected to the device-embedded microcomputer, wherein the device-embedded microcomputer includes a CPU and the CPU. ROM for storing an application program executed by the above and a debugging program for debugging the application program, a communication interface for bidirectional data communication with the external device, and a RAM capable of random access and data rewriting And the CPU executes the application program and the debug program in response to a debug command received from the external device via the communication interface, and the application program is executed. An arbitrary program stored in the RAM in accordance with a command from the external device that is received via the communication interface and that notifies the external device of the result of the application program debug via the communication interface. The external device receives a plurality of memory data of the RAM via the communication interface, and converts each of the received plurality of memory data by a plurality of conversion tables set in advance. A program debug device characterized by displaying.
【請求項3】 前記機器組込みマイクロコンピュータは
複数台から成り、前記複数台の機器組込みマイクロコン
ピュータの各々の通信インタフェースを切り換えて接続
する切換え部を備え、前記外部装置は、前記複数台の機
器組込みマイクロコンピュータの各々のRAMのメモリ
データを同時に表示する表示制御部を有することを特徴
とする請求項2記載のプログラムデバッグ装置。
3. The device-embedded microcomputer comprises a plurality of units, and a switching unit for switching and connecting each communication interface of the plurality of device-embedded microcomputers is provided, and the external device includes the plurality of device-embedded microcomputers. 3. The program debug device according to claim 2, further comprising a display control unit for simultaneously displaying memory data of each RAM of the microcomputer.
JP7053617A 1995-02-16 1995-02-16 Program debugging device Pending JPH08221297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7053617A JPH08221297A (en) 1995-02-16 1995-02-16 Program debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7053617A JPH08221297A (en) 1995-02-16 1995-02-16 Program debugging device

Publications (1)

Publication Number Publication Date
JPH08221297A true JPH08221297A (en) 1996-08-30

Family

ID=12947875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7053617A Pending JPH08221297A (en) 1995-02-16 1995-02-16 Program debugging device

Country Status (1)

Country Link
JP (1) JPH08221297A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0951819A1 (en) 1998-04-24 1999-10-27 Createrra Inc. Cased planting ground material
US7047443B2 (en) 1998-03-31 2006-05-16 Seiko Epson Corporation Microcomputer, electronic equipment and debugging system
JP2007328501A (en) * 2006-06-07 2007-12-20 Mitsubishi Electric Corp Program debug support processor, adapter for communication and program debug support processing program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7047443B2 (en) 1998-03-31 2006-05-16 Seiko Epson Corporation Microcomputer, electronic equipment and debugging system
US7100086B1 (en) 1998-03-31 2006-08-29 Seiko Epson Corporation Microcomputer, electronic equipment and debugging system
US7114101B2 (en) 1998-03-31 2006-09-26 Seiko Epson Corporation Microcomputer, electronic equipment and debugging system
EP0951819A1 (en) 1998-04-24 1999-10-27 Createrra Inc. Cased planting ground material
JP2007328501A (en) * 2006-06-07 2007-12-20 Mitsubishi Electric Corp Program debug support processor, adapter for communication and program debug support processing program

Similar Documents

Publication Publication Date Title
US5978584A (en) Debugging apparatus for debugging a program by changing hardware environments without changing program operation state
JP2573566B2 (en) Bus converter
EP1066563A1 (en) A method and apparatus for evaluating software programs for semiconductor circuits
KR920010975B1 (en) Input and output control system and its method
JPH08221297A (en) Program debugging device
JPS61269444A (en) Data transmission system
US5761482A (en) Emulation apparatus
US7089140B1 (en) Programmable logic device and method of testing a programmable logic device
JPH10326203A (en) Debugging devices capable of taking over operation from each other between hardware environments while running programs therein
KR200343611Y1 (en) When you integrate the main board of the system
JPH05241619A (en) Programming device for programmable controller
KR20000008628A (en) Booting music outputting method of computer system
JPS6410854B2 (en)
JP3349940B2 (en) Link unit for programmable controller
JPS5834854B2 (en) information processing equipment
JP3396107B2 (en) Microcomputer and debugging device
KR930001099B1 (en) Microcomputer system with a using bit-slice element
JP3456002B2 (en) Image processing inspection equipment
SU1132282A1 (en) Interface for linking processor unit with input-output devices
JPH03237502A (en) Programmable controller
RU1829034C (en) Device for testing computing unit controlled by programs
JPS6240721B2 (en)
JPH02293948A (en) Microcomputer lsi
JPH06230958A (en) Processor
JPH0612252A (en) Microcomputer