JPH0441392Y2 - - Google Patents

Info

Publication number
JPH0441392Y2
JPH0441392Y2 JP1985153227U JP15322785U JPH0441392Y2 JP H0441392 Y2 JPH0441392 Y2 JP H0441392Y2 JP 1985153227 U JP1985153227 U JP 1985153227U JP 15322785 U JP15322785 U JP 15322785U JP H0441392 Y2 JPH0441392 Y2 JP H0441392Y2
Authority
JP
Japan
Prior art keywords
flag
instruction
flip
reset
chip
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.)
Expired
Application number
JP1985153227U
Other languages
Japanese (ja)
Other versions
JPS6262358U (en
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 filed Critical
Priority to JP1985153227U priority Critical patent/JPH0441392Y2/ja
Publication of JPS6262358U publication Critical patent/JPS6262358U/ja
Application granted granted Critical
Publication of JPH0441392Y2 publication Critical patent/JPH0441392Y2/ja
Expired legal-status Critical Current

Links

Landscapes

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

Description

【考案の詳細な説明】 (イ) 産業上の利用分野 本考案は、量産用ワンチツプマイクロコンピユ
ータにプログラムを書き込む前に、プログラムの
評価を行うためのデバツグ装置に関する。
[Detailed Description of the Invention] (a) Field of Industrial Application The present invention relates to a debugging device for evaluating a program before it is written into a one-chip microcomputer for mass production.

(ロ) 従来の技術 一般に、ワンチツプマイクロコンピユータは、
プログラムを記憶するROM(リード・オンリ
ー・メモリ)を内蔵しており、ユーザー等が予め
作成したプログラムがワンチツプマイクロコンピ
ユータの製造時にマスクによつて書き込まれる。
そこで、プログラムを開発する場合、あるいは、
プログラムを評価する場合には、量産用のワンチ
ツプマイクロコンピユータと略同一機能を有した
エバリユエーシヨンチツプと呼ばれるマイクロコ
ンピユータを使用したデバツグ装置を利用してい
る。
(b) Conventional technology In general, one-chip microcomputers are
It has a built-in ROM (read-only memory) that stores programs, and programs created by the user or the like are written using a mask when the one-chip microcomputer is manufactured.
Therefore, when developing a program, or
When evaluating a program, a debugging device is used that uses a microcomputer called an evaluation chip, which has substantially the same functions as a one-chip microcomputer for mass production.

ところで、従来のエバリユエーシヨンチツプ
は、量産用ワンチツプマイクロコンピユータの入
出力端子の他に、命令コードを外部から印加する
ための端子、内部のプログラムカウンタ等のデー
タを出力するための端子、及び、各種の制御端子
が設けられる。プログラムの評価をする場合に
は、デバツグ装置の記憶回路内に記憶されたプロ
グラム順次読み出して、エバリユエーシヨンチツ
プの端子に命令コードを印加して実行させ、その
結果を入出力端子あるいは内部のRAMのデータ
を読み出して動作をチエツクしている。
By the way, conventional evaluation chips have, in addition to the input/output terminals of mass-produced one-chip microcomputers, terminals for applying instruction codes from the outside, terminals for outputting data from internal program counters, etc. , various control terminals are provided. When evaluating a program, the program stored in the memory circuit of the debugging device is sequentially read out, an instruction code is applied to the terminal of the evaluation chip to execute it, and the result is sent to the input/output terminal or to the internal RAM. The data is read out and the operation is checked.

上述のことは本願出願人が昭和55年2月15日に
発行したマイコン資料シリーズNo.3「LM6499マ
ニユアル」に記載されている。
The above is described in the microcomputer data series No. 3 "LM6499 Manual" published by the applicant on February 15, 1980.

(ハ) 考案が解決しようとする問題点 ところが、上述のエバリユエーシヨンチツプを
使用した場合、フラグの状態を例えば表示装置に
表示させてチエツクすることはできないので、フ
ラグの動作をチエツクするためには、その後のプ
ログラムを実行させて取り出されるデータ等から
判断するよりなかつた。一方、フラグの出力を外
部に取り出すためには、その出力端子が設けられ
た専用のエバリユエーシヨンチツプを作成しなけ
ればならず、設計等に時間がかかる欠点があつ
た。
(c) Problems to be solved by the invention However, when the above-mentioned evaluation chip is used, it is not possible to check the flag status by displaying it on a display device, for example, so it is not possible to check the flag operation. The only way to determine this was from the data retrieved by executing the subsequent program. On the other hand, in order to output the output of the flag to the outside, a dedicated evaluation chip must be prepared which is provided with the output terminal, which has the drawback that it takes time to design.

(ニ) 問題点を解決するための手段 本考案は上述した点に鑑みて為されたものであ
り、エバリユエーシヨンチツプに命令コードを与
えるプログラム記憶回路と、該プログラム記憶回
路から前記エバリユエーシヨンチツプに与えられ
る命令が同時に印加され、フラグのセツトあるい
はリセツト命令を解読するインストラクシヨンデ
コーダと、該インストラクシヨンデコーダから出
力されるフラグのセツト及びリセツト信号が印加
される複数のフリツプフロツプと、該フリツプフ
ロツプの内容を表示する複数の表示回路とを備え
たデバツグ装置であり、表示回路の表示状態によ
つてエバリユエーシヨンチツプのフラグ状態がモ
ニタできるものである。
(d) Means for Solving the Problems The present invention has been made in view of the above-mentioned points, and includes a program storage circuit that provides instruction codes to an evaluation chip, and a program storage circuit that supplies instruction codes to an evaluation chip. an instruction decoder to which instructions given to the chip are applied simultaneously and decodes flag set or reset instructions; a plurality of flip-flops to which flag set and reset signals outputted from the instruction decoder are applied; This debugging device is equipped with a plurality of display circuits that display the contents of a flip-flop, and the flag state of the evaluation chip can be monitored by the display state of the display circuit.

(ホ) 作用 上述の手段によれば、プログラムのデバツグ中
のフラグのセツト命令あるいはリセツト命令がプ
ログラム記憶装置から取り出されると、このセツ
ト命令あるいはリセツト命令は、エバリユエーシ
ヨンチツプに印加されると共にデバツグ装置内の
インストラクシヨンデコーダに印加される。そし
て、インストラクシヨンデコーダに於いて、セツ
ト命令あるいはリセツト命令が解読されるとセツ
ト信号あるいはリセツト信号が発生し、相当する
フリツプフロツプのセツト又はリセツトが為され
る。このフリツプフロツプの出力は表示回路によ
つて表示される。
(E) Effect According to the above-described means, when a flag set or reset instruction is retrieved from the program storage device during debugging of a program, this set or reset instruction is applied to the evaluation chip and also debugged. Applied to an instruction decoder within the device. When the set command or reset command is decoded in the instruction decoder, a set signal or a reset signal is generated, and the corresponding flip-flop is set or reset. The output of this flip-flop is displayed by a display circuit.

(ヘ) 実施例 図は本考案の実施例を示す回路図であり、1は
エバリユエーシヨンチツプ、2はプログラム記憶
回路、3はインストラクシヨンデコーダ、4,
5,6,7はフリツプフロツプ、8は表示回路、
9はイニシヤル設定回路である。
(F) Embodiment The figure is a circuit diagram showing an embodiment of the present invention, in which 1 is an evaluation chip, 2 is a program storage circuit, 3 is an instruction decoder, 4,
5, 6, 7 are flip-flops, 8 is a display circuit,
9 is an initial setting circuit.

エバリユエーシヨンチツプ1は、命令コードが
印加される外部端子が設けられてあり、その外部
端子はプログラム記憶回路2からのインストラク
シヨンバス10に接続される。プログラム記憶回
路2は、例えばEPROM等で構成され、予め作成
された評価すべきプログラムが書き込まれてお
り、プログラム記憶回路2の出力はインストラク
シヨンバス10に接続される。インストラクシヨ
ンバス10は8ビツトで構成され、インストラク
シヨンデコーダ3にも接続される。インストラク
シヨンデコーダ3は、8ビツトから成る命令コー
ドの上位4ビツトIR4〜IR7を入力してフラグ
のセツト命令であるかリセツト命令であるかを検
出するANDゲート11及び12と、命令コード
の下位4ビツトIR0〜IR3で指定されるフラグ
をセツトあるいはリセツトするためにセツト検出
信号FSETあるいはリセツト検出信号FRESの送出を
制御するANDゲート13乃至20を有している。
このANDゲート13乃至20の各出力は、セツ
ト信号SETあるいはリセツト信号RESとしてフ
ラグであるフリツプフロツプ4,5,6,7の各
セツト入力Sとリセツト入力Rに印加される。表
示回路8は、フリツプフロツプ4,5,6,7の
各出力Qによつて制御されるドライバ用のNチヤ
ンネル型のMOSFET21乃至24と、
MOSFET21乃至24で駆動されるLED25乃
至28とから構成される。従つて、フリツプフロ
ツプ4乃至7の出力が“0”であればLED25
乃至28は発光せず“1”であるときLED25
乃至28が発光する。一方、イニシヤル設定回路
9は、エバリユエーシヨンチツプ1に印加される
イニシヤルクリア信号INTが印加され、その信
号INTに従つてフリツプフロツプ4乃至7をエ
バリユエーシヨンチツプ1内のフラグと同じ初期
状態にする回路である。
The evaluation chip 1 is provided with an external terminal to which an instruction code is applied, and the external terminal is connected to an instruction bus 10 from a program storage circuit 2. The program storage circuit 2 is composed of, for example, an EPROM or the like, and has a program to be evaluated prepared in advance written therein, and the output of the program storage circuit 2 is connected to the instruction bus 10. The instruction bus 10 is composed of 8 bits and is also connected to the instruction decoder 3. The instruction decoder 3 includes AND gates 11 and 12 that input the upper 4 bits IR4 to IR7 of an 8-bit instruction code to detect whether it is a flag set instruction or a reset instruction, and It has AND gates 13 to 20 that control the sending of a set detection signal F SET or a reset detection signal F RES to set or reset the flag specified by 4 bits IR0 to IR3.
The outputs of the AND gates 13 to 20 are applied as a set signal SET or a reset signal RES to each set input S and reset input R of flip-flops 4, 5, 6, and 7, which are flags. The display circuit 8 includes driver N-channel MOSFETs 21 to 24 controlled by each output Q of the flip-flops 4, 5, 6, and 7;
It is composed of LEDs 25 to 28 driven by MOSFETs 21 to 24. Therefore, if the outputs of flip-flops 4 to 7 are "0", LED 25
to 28 do not emit light and are “1” when the LED 25
28 to 28 emit light. On the other hand, the initial setting circuit 9 receives the initial clear signal INT applied to the evaluation chip 1, and according to the signal INT, sets the flip-flops 4 to 7 to the same initial state as the flags in the evaluation chip 1. This is a circuit that does this.

そこで、図に於いて、プログラムのデバツクを
行う際には、プログラム記憶回路2のアドレスを
指定し命令コードを読み出して、エバリユエーシ
ヨンチツプ1及びインストラクシヨンデコーダ3
に印加する。このとき、アドレスデータは、エバ
リユエーシヨンチツプ1のプログラムカウンタか
ら取り出したデータ、あるいは、デバツグ装置内
に設けられたプログラムカウンタ(図示せず)の
データである。次に、プログラム記憶回路2から
読み出された命令コードがフラグのセツト命令
「11110010」であつたとすると、インストラクシ
ヨンデコーダ3のANDゲート11出力FSET
“1”となり、IR1が印加されたANDゲート1
7の出力SETが“1”となる。従つて、フリツ
プフロツプ6がセツトされ、その出力Q“1”に
よりMOSFET23がオンとなつてLED27が点
灯する。これにより、IR1で指定されたフラグ
が“1”であることが確認できる。この状態でフ
ラグのリセツト命令「11100010」が読み出される
と、インストラクシヨンデコーダ3のANDゲー
ト12出力FRESが“1”となり、IR1が印加され
たANDゲート18の出力RESが“1”となるた
め、セツト状態にあつたフリツプフロツプ6がリ
セツトされる。従つて、フリツプフロツプ6の出
力“0”によりMOSFET23がオフとなつて
LED27が消灯し、IR1で指定されたフラグが
リセツトされたことが確認される。
Therefore, in the figure, when debugging a program, the address of the program storage circuit 2 is specified, the instruction code is read out, and the evaluation chip 1 and instruction decoder 3 are debugged.
to be applied. At this time, the address data is data taken out from the program counter of the evaluation chip 1, or data from a program counter (not shown) provided in the debugging device. Next, if the instruction code read from the program storage circuit 2 is a flag set instruction "11110010", the AND gate 11 output FSET of the instruction decoder 3 becomes "1", and IR1 is applied. AND gate 1
The output SET of 7 becomes “1”. Therefore, the flip-flop 6 is set, and its output Q turns on the MOSFET 23, causing the LED 27 to light up. This confirms that the flag specified by IR1 is "1". When the flag reset command "11100010" is read in this state, the AND gate 12 output F RES of the instruction decoder 3 becomes "1", and the output RES of the AND gate 18 to which IR1 is applied becomes "1". Therefore, the flip-flop 6 which was in the set state is reset. Therefore, MOSFET 23 is turned off by the output "0" of flip-flop 6.
The LED 27 goes out, confirming that the flag specified by IR1 has been reset.

このように、デバツグ装置自身によつてLED
25乃至28の点灯及び消灯状況によつて、エバ
リユエーシヨンチツプ1のフラグの状態がモニタ
できる。
In this way, the LED
The states of the flags of the evaluation chip 1 can be monitored by the lighting and non-lighting states of 25 to 28.

(ト) 考案の効果 上述の如く本考案によれば、フラグモニタ用の
専用端子を設けたエバリユエーシヨンチツプを設
計及び製造する必要がなく、デバツグ装置自身で
フラグのモニタができるため、プログラムの評価
に有効であり、短期間でのデバツグが行える。よ
つて、プログラム作成からワンチツプマイクロコ
ンピユータの生産までの期間が短縮される利点を
有している。
(g) Effects of the invention As described above, according to the invention, there is no need to design and manufacture an evaluation chip equipped with a dedicated terminal for flag monitoring, and the flags can be monitored by the debugging device itself. It is effective for evaluation and allows debugging in a short period of time. Therefore, it has the advantage of shortening the period from program creation to production of a one-chip microcomputer.

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

図は本考案の実施例を示す回路図である。 主な図番の説明、1……エバリユエーシヨンチ
ツプ、2……プログラム記憶装置、3……インス
トラクシヨンデコーダ、4,5,6,7……フリ
ツプフロツプ、8……表示回路、9……イニシヤ
ル設定回路。
The figure is a circuit diagram showing an embodiment of the present invention. Explanation of main figure numbers, 1...Evaluation chip, 2...Program storage device, 3...Instruction decoder, 4, 5, 6, 7...Flip-flop, 8...Display circuit, 9... Initial setting circuit.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 量産用ワンチツプマイクロコンピユータと、略
同一機能を有するエバリユエーシヨンチツプを使
用し、プログラムの評価を行うデバツグ装置に於
いて、前記エバリユエーシヨンチツプに命令コー
ドを与えるプログラム記憶回路と、該プログラム
記憶回路から前記エバリユエーシヨンチツプに与
えられる命令が同時に印加され、フラグのセツト
あるいはリセツト命令を解読するインストラクシ
ヨンデコーダと、該インストラクシヨンデコーダ
から出力されるフラグのセツト及びリセツト信号
が印加される複数のフリツプフロツプと、該フリ
ツプフロツプの内容を表示する複数の表示回路と
を備え、前記インストラクシヨンデコーダは、前
記命令コードの所定ビツトに基づいてフラグをセ
ツト又はリセツトするための検出信号を発生し、
前記命令コードの残余ビツトに基づいてフラグを
指定すると共に前記検出信号に基づいて前記指定
されたフラグに対応する前記フリツプフロツプを
セツト又はリセツトするものであり、フラグの状
態を指示するための命令コードをデコードして得
られた前記フラグの状態を前記複数の表示回路で
モニタすることを特徴とするマイクロコンピユー
タのデバツグ装置。
In a debugging device that evaluates a program using a one-chip microcomputer for mass production and an evaluation chip having substantially the same functions, the program storage circuit provides instruction codes to the evaluation chip, and the program storage circuit. Instructions given from the circuit to the evaluation chip are simultaneously applied, and an instruction decoder that decodes the flag set or reset instruction and a flag set and reset signal output from the instruction decoder are applied. The instruction decoder includes a plurality of flip-flops and a plurality of display circuits for displaying the contents of the flip-flops, and the instruction decoder generates a detection signal for setting or resetting a flag based on a predetermined bit of the instruction code;
The flag is specified based on the remaining bits of the instruction code, and the flip-flop corresponding to the specified flag is set or reset based on the detection signal, and the instruction code for indicating the state of the flag is specified. A debugging device for a microcomputer, characterized in that the state of the flag obtained by decoding is monitored by the plurality of display circuits.
JP1985153227U 1985-10-07 1985-10-07 Expired JPH0441392Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1985153227U JPH0441392Y2 (en) 1985-10-07 1985-10-07

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1985153227U JPH0441392Y2 (en) 1985-10-07 1985-10-07

Publications (2)

Publication Number Publication Date
JPS6262358U JPS6262358U (en) 1987-04-17
JPH0441392Y2 true JPH0441392Y2 (en) 1992-09-29

Family

ID=31071919

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1985153227U Expired JPH0441392Y2 (en) 1985-10-07 1985-10-07

Country Status (1)

Country Link
JP (1) JPH0441392Y2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55138150A (en) * 1979-04-17 1980-10-28 Toshiba Mach Co Ltd Debugging unit of microcomputer
JPS57152053A (en) * 1981-03-14 1982-09-20 Okuma Mach Works Ltd Program tracing device
JPS5829048A (en) * 1981-08-13 1983-02-21 Omron Tateisi Electronics Co Programmable controller

Also Published As

Publication number Publication date
JPS6262358U (en) 1987-04-17

Similar Documents

Publication Publication Date Title
RU95112473A (en) MICROCOMPUTER
JPH0441392Y2 (en)
US5812834A (en) Single chip microcomputer having a plurality of timer counters
JP2002175198A (en) Arithmetic processing unit, method for debugging arithmetic processing unit, and system therefor
KR100253233B1 (en) Debugging message display
JPS6290734A (en) Debugging device
KR970004260B1 (en) Micro Channel Structural Bus Progress Detection Jig
JPS60262251A (en) Backup device for development of microprocessor
JPS6326740A (en) Logic circuit simulation method
JPS6048549A (en) State displaying circuit of microprocessor
JPH06103106A (en) Program debug device
KR890005353B1 (en) Error movement check method of micro processor
JPS5880741A (en) Interruption controlling system
Li et al. Interfacing An 8085 Based Microcontroller: A Practical Approach To Developing Computer Applications Skills
Zagari et al. Interfacing an 8085-Based Microcontroller: A Practical Approach to Developing Computer Applications Skills
JPH11272490A (en) Diagnostic control system
JPS605982B2 (en) Program counter setting method for 1-chip microprocessor
JPH1040093A (en) Microcomputer and program modification method thereof
JPH02307135A (en) Monitoring method for instruction executing action
JPH0827741B2 (en) Single-chip microcomputer
JPH0117156B2 (en)
JPS6128149A (en) visual memory map device
JPH04315231A (en) Microcompuer for evaluation
JPH05216716A (en) Microcomputer
JPS61160168A (en) Priority discriminating device