JPS63186341A - Program testing circuit - Google Patents

Program testing circuit

Info

Publication number
JPS63186341A
JPS63186341A JP62017937A JP1793787A JPS63186341A JP S63186341 A JPS63186341 A JP S63186341A JP 62017937 A JP62017937 A JP 62017937A JP 1793787 A JP1793787 A JP 1793787A JP S63186341 A JPS63186341 A JP S63186341A
Authority
JP
Japan
Prior art keywords
interruption
program
signal
processor
data
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
JP62017937A
Other languages
Japanese (ja)
Inventor
Toshio Kuwayama
桑山 敏夫
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP62017937A priority Critical patent/JPS63186341A/en
Publication of JPS63186341A publication Critical patent/JPS63186341A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To facilitate a program test even in an interruption inhibiting state by transmitting a mask unable interruption signal at the time of transmission/ reception of data and inhibiting the interruption until the transmission/reception of data carried out by the interruption caused in response to said interruption signal is through. CONSTITUTION:The output of an AND gate 8 is turned on by the input of a reception data signal 21 while an FF 3 is previously is kept turned on and a mask unable interruption signal NMI22 is sent to a processor 1. Then the processor 1 applies an interruption to a program which is read out of a memory 2 and processed. Thus the processor 1 performs a mask unable interruption processing job to immediately turn off the FF 3. The interruptions are inhibited until the FF 3 is turned on again. As a result, an interruption is applied to the program of the processor 1 only at the time of the first rise of the signal 21. Thus a programming job is facilitated. Furthermore the program can be tested despite an inhibition state of the processor 1 owing to the interruption processing carried out by the signal NMI22. Then the processing state can be tested even in its busy mode.

Description

【発明の詳細な説明】 1亙丘1 本発明はプログラム試験回路に関し、特にマイクロプロ
セッサなどのプログラムの試験を行うプログラム試験回
路に関する。
DETAILED DESCRIPTION OF THE INVENTION 1. Field of the Invention The present invention relates to a program test circuit, and more particularly to a program test circuit that tests a program for a microprocessor or the like.

灸困且I 従来、この種のプログラム試験回路では、プロセッサの
入出力制御部である汎用通信制御回路を用いている。一
般の端末機は他のm器と接続する場合、低速であればE
 tA−R8232C規格のインタフェースを用い、高
速のときはIEEε−488規格のインタフェース(G
PIB)や5AS1.5C8Iなどのインタフェースを
使用する。
Conventionally, this type of program test circuit uses a general-purpose communication control circuit that is an input/output control section of a processor. When connecting a general terminal to another M device, if the speed is low, E
tA-R8232C standard interface is used, and for high speed, IEEε-488 standard interface (G
PIB) or 5AS1.5C8I.

この汎用通信制御回路では低速でよいため、R8232
Cインタフエースを用いており、このインタフェースは
シリアルインタフェースである。
Since this general-purpose communication control circuit requires low speed, R8232
A C interface is used, and this interface is a serial interface.

一般的には、マイクロプロセッサのプログラムでシリア
ルパラレル変換を行うことはなく、外付けの回路におい
てシリアルパラレル変換を行う。
Generally, serial-to-parallel conversion is not performed by a microprocessor program, but by an external circuit.

この汎用通信制御回路は各々1文字以上の受信データや
送信データを格納するバッファを有し、このバッファに
データが入ったときやこのバッファにデータが無くなっ
たときに割込みを発生して、この割込みによってプログ
ラムでデータの制御を行っている。また、この割込み信
号にはマスク可能な割込み信号が用いられている。
This general-purpose communication control circuit each has a buffer that stores one or more characters of received data and transmitted data, and generates an interrupt when data enters or runs out of this buffer. The data is controlled by the program. Moreover, a maskable interrupt signal is used for this interrupt signal.

すなわち、この汎用通信制御回路としてEIA−R32
32Cインタフエース用に設計されたものを用いるため
、また、低速であるため、DMA(ダイレクトメモリア
クセス)によらずに1文字分のデータを送受信する度に
割込みが発生する。
That is, EIA-R32 is used as this general-purpose communication control circuit.
Since it is designed for a 32C interface and is slow, an interrupt occurs every time one character's worth of data is sent or received without using DMA (direct memory access).

このような従来のプログラム試験回路では、受信データ
や送信データを格納するバッファを有し、このバッファ
にデータが入ったとぎゃこのバッファにデータが無くな
ったとぎにマスク可能な割込み信号を用いて割込みを発
生し、この割込みによってプログラムでデータの制御を
行っていたので、割込み禁止状態ではプログラムの試験
ができないという欠点がある。
Such conventional program test circuits have a buffer that stores received data and transmitted data, and use a maskable interrupt signal to generate an interrupt when data enters the buffer and when there is no more data in the buffer. Since the data was controlled by the program using this interrupt, there is a drawback that the program cannot be tested in the interrupt disabled state.

また、この汎用通信制御回路では1文字分のデータを送
受信する度に割込みを発生するために、プログラムの割
込み処理中にさらに他の割込み処理を行うこととなり、
この多数の割込みを正しく処l!l!することが困難と
なり、割込み処理を行うためのプログラムの試験が容易
ではないという欠点が、ある。
In addition, this general-purpose communication control circuit generates an interrupt every time one character's worth of data is transmitted or received, so another interrupt process must be performed during the program interrupt process.
Handle this large number of interrupts correctly! l! This has the disadvantage that it is difficult to perform interrupt processing, and it is not easy to test a program for processing interrupts.

さらに、試験回路として汎用通信ii制御回路を用いて
おり、この汎用通信制御回路ではシリアルデータとパラ
レルデータとの変換を行ったりするため、回路が複雑と
なる。
Furthermore, a general-purpose communication II control circuit is used as a test circuit, and since this general-purpose communication control circuit converts serial data and parallel data, the circuit becomes complicated.

λ肚立且刀 本発明は上記のような従来の乙のの欠点を除去すべくな
されたもので、割込み禁止状態でもプログラムの試験を
行うことができ、割込み処理を(1うためのプログラム
の試験を容易に行うことができるプログラム試験回路の
提供を目的とする。
The present invention has been made in order to eliminate the drawbacks of the conventional system B as described above, and it is possible to test a program even when interrupts are disabled, and it is possible to The purpose is to provide a program test circuit that can be easily tested.

Z」Jと1風 本発明によるプログラム試験回路は、データの送受信時
に中央処理装置にマスク不可能な割込み信号を送出し、
前記マスク不可能な割込み信号に応答して生じた割込み
による前記データの送受信処理が終了するまで前記中央
処理装置への割込みを禁止する手段を有することを特徴
とする。
The program test circuit according to the present invention sends a non-maskable interrupt signal to the central processing unit when transmitting or receiving data,
The present invention is characterized by comprising means for prohibiting an interrupt to the central processing unit until the data transmission/reception process due to an interrupt generated in response to the non-maskable interrupt signal is completed.

丸施1 次に、本発明の一実施例について図面を参照して説明す
る。
Maruse 1 Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。図
において、本発明の一実施例は、プログラムによってセ
ットリセットできるフリツブフ[1ツブ3〜5と、指令
デコーダ6と、アンドゲート7.8と、レシーバつと、
ドライバ10とにより構成されている。
FIG. 1 is a block diagram showing one embodiment of the present invention. In the figure, one embodiment of the present invention includes fritsubbufs [1] that can be set and reset by a program, a command decoder 6, an AND gate 7.8, and a receiver.
It is composed of a driver 10.

第2図は本発明の一実施例におけるデータの受信動作を
示すタイムチャート、第3図は本発明の一実施例におけ
るデータの送信動作を示すタイムチャー1−である。
FIG. 2 is a time chart showing a data receiving operation in an embodiment of the present invention, and FIG. 3 is a time chart 1- showing a data transmitting operation in an embodiment of the present invention.

第1図〜第3図を用いて本発明の一実施例の動作につい
て説明する。
The operation of an embodiment of the present invention will be explained using FIGS. 1 to 3.

シリアルインタフェースを有する簡易端末機11からの
受信データ信号21はレシーバ9により受信されている
。この簡易端末機11のシリアルインタフェースはE 
[A−R3232Cに準拠しているものとする。
A received data signal 21 from the simple terminal 11 having a serial interface is received by the receiver 9. The serial interface of this simple terminal 11 is E.
[Assumed to be compliant with A-R3232C.]

JISC6220による8甲位符号で文字rAJを表す
と、r010000012  (=4116)Jであり
、E IA−R8232Cではこのコードの前後にスタ
ートビット(ST)とストップビット(SP)とを付加
するので、rsTloooooloSPJ  (第2図
の受信データ信号21参照、STは0と同一極性、SP
は1と同一極性)のように送出する(下位ビットから順
次送出する)。
If the character rAJ is expressed in the 8-digit code according to JISC6220, it is r010000012 (=4116)J, and in E IA-R8232C, a start bit (ST) and a stop bit (SP) are added before and after this code, so rsTloooooloSPJ (See received data signal 21 in Figure 2, ST has the same polarity as 0, SP
is the same polarity as 1) (sent sequentially from the lower bit).

簡易端末機11からコマンドとしてrA[リターン]」
([リターン]キーの入力は簡易端末機11からの指示
の終了を意味する)と入力すると、受信データ信号21
の信号線上にrsTloooooloSP  5TIO
I100OO3PJのように出力される(第2図受信デ
ータ信号21参照)。
rA [return] as a command from the simple terminal 11
(The input of the [Return] key means the end of the instruction from the simple terminal 11), the received data signal 21
rsTloooooloSP 5TIO on the signal line of
It is output as I100OO3PJ (see received data signal 21 in FIG. 2).

フリップフロップ3が予めオンにセットされている状態
で、受信データ信号21の入力によってアンドゲート8
の出力がオンになり、マスク不可能な割込み信号(以下
NMIとする)22がプロセッサ1に送出され、プロセ
ッサ1でメモリ2から読出されて処理中のプログラムに
割込みがかかり、プロセッサ1においてマスク不可能な
割込み処理が実行される。
With the flip-flop 3 set to ON in advance, the AND gate 8 is turned on by inputting the received data signal 21.
output is turned on, a non-maskable interrupt signal (hereinafter referred to as NMI) 22 is sent to the processor 1, which interrupts the program being read from the memory 2 and is being processed. Possible interrupt processing is executed.

このマスク不可能な割込み処理によりフリップフロップ
3は直ちにオフにされ、このNMI22の入力以後は、
フリップフロップ3がオンとなるまで割込みが禁止され
る。
The flip-flop 3 is immediately turned off by this non-maskable interrupt processing, and after the input of this NMI 22,
Interrupts are prohibited until flip-flop 3 is turned on.

フリップフロップ3がオフとされた後、プロセッサ1か
らの取込み命令が指令デコー゛ダ6で検出されると、受
信データ信号21の伝送速度に見合った時間間隔で、ア
ンドゲート7を介して1ビツトずつ送られてくる受信デ
ータ信号21がプロセッサ1に取込まれ、プロセッサ”
1では受信データ信号21の状態を監視しながら、受信
データ信号 21を文字(この場合はA)に組立てて処
理するとともに、[リターン]を検出して指示の終了を
検出する。
After the flip-flop 3 is turned off, when a fetch command from the processor 1 is detected by the command decoder 6, one bit is read through the AND gate 7 at a time interval commensurate with the transmission speed of the received data signal 21. The received data signal 21 that is sent to the processor 1 is taken in by the processor 1.
1, while monitoring the state of the received data signal 21, it assembles and processes the received data signal 21 into a character (A in this case), and detects [return] to detect the end of the instruction.

[リターン]を検出すると、ある程度時間を経過しない
とデータが送られてこないので、あるいは、次に送られ
てくるデータが別の意味を持って、いるので、フリップ
70ツブ3.ヲ再び1ンにして、次のデータの受信処理
に備える。
When [Return] is detected, the data will not be sent until a certain amount of time has elapsed, or the next data that will be sent will have a different meaning, so flip 70 knob 3. Set it to 1 again and prepare for the next data reception process.

送信データ信号20シよプロセッサ1から送出され、フ
リップ70ツブ4を介してフリップ70ツブ5に入力さ
れる。送信データ信号20はフリップ70ツブ5でクロ
ック23により一定間隔に整形され、ドライバ10を介
して1ビツトずつ送信される(第3図参照、送信データ
信号20は受信データ信号21と同様にこのデータの前
後にスタートビット(ST)とストップビット(SP)
とが付加される)。
A transmission data signal 20 is sent out from the processor 1 and inputted to the flip 70 block 5 via the flip 70 block 4. The transmission data signal 20 is shaped into regular intervals by the clock 23 in the flip 70 block 5, and is transmitted bit by bit via the driver 10 (see FIG. 3; the transmission data signal 20, like the reception data signal 21, Start bit (ST) and stop bit (SP) before and after
).

全ての送信処理が終了すると、プロセッサ1はフリップ
フロップ3をオンにして次のデータの送受信処理に備え
る。
When all the transmission processing is completed, the processor 1 turns on the flip-flop 3 to prepare for the next data transmission/reception processing.

このように、データの送受信時にプロセッサ1にNMI
22を送出し、このNMI22に応答して生じた割込み
によるデータの送受信処理が終了するまで、フリップフ
ロップ3をオフとすることによりプロセッサ1への割込
みを禁止するようにすることによって、プロセ、ツサ1
のプログラムに受信データ信@21の最初の立上り時に
だけ割込みをかけることができるので、プログラミング
が容易となる。
In this way, NMI is sent to processor 1 when transmitting and receiving data.
22 and disables interrupts to the processor 1 by turning off the flip-flop 3 until the data transmission/reception process due to the interrupt generated in response to the NMI 22 is completed. 1
Since the program can be interrupted only at the first rise of the received data signal @21, programming becomes easy.

また、NMI22による割込み処理であるため、プロセ
ッサ1が割込み禁止状態でもプログラムの試験を行うこ
とができ、プロセッサ1のプログラムが割込み処理を実
行中であっても、容易にその処理の試験を行うことがで
きる。
Furthermore, since the interrupt processing is performed by the NMI 22, the program can be tested even when the processor 1 is in an interrupt-disabled state, and even if the program of the processor 1 is executing interrupt processing, the processing can be easily tested. Can be done.

さらに、シリアルデータとパラレルデータ゛との、゛変
換をプログラムによりプロセッサ1で行うので、シリア
ルパラレル変換の回路を必要としない。
Furthermore, since the conversion between serial data and parallel data is performed by the processor 1 according to a program, a serial-to-parallel conversion circuit is not required.

l工立左」 以上説明したように本発明・、によれば、データの ゛
送受信時にマスク不可能な割込み信号を送出し、このマ
スク不可能な割込み信号に応答して生じた割込みによる
データの送受信処理が終了するまで、割込みを禁止する
ようにすることによって、処理中のプログラムにデータ
の最初の立上り時にだけ割込みをかレプることができる
ので、プログラミングが容易となり、また、マスク不可
能な割込み信、。
As explained above, according to the present invention, a non-maskable interrupt signal is sent during data transmission and reception, and the data is processed by an interrupt generated in response to the non-maskable interrupt signal. By disabling interrupts until the sending/receiving process is completed, the program being processed can receive an interrupt only at the first rise of data, which simplifies programming and prevents non-maskable data. Interrupt signal.

号による割込み処理であるため、割込み禁止状態でもプ
ログラムの試験を行うことができ、プログラムが割込み
処理を実行中であっても′、容易にその処理の試験を行
うことができるという効果がある。
Since interrupt processing is performed by a signal, the program can be tested even when interrupts are disabled, and even if the program is executing interrupt processing, the processing can be easily tested.

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

第1図は本発明一実施例を示すブロック図、第2図は本
発明の一実施例におけるデータの受信動作を示すタイム
チャート、第3図は本発明の一実施例におけるデータの
送信動作を示すタイムチャートである。 主4要部分の符号の説明 3〜5・・・・・・フリップフロップ 6・・・・・・指令デコーダ 7.8・・・・・・アンドゲート 9・・・・・・レシーバ 10・・・・・・ドライバ
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a time chart showing a data reception operation in an embodiment of the invention, and FIG. 3 is a data transmission operation in an embodiment of the invention. FIG. Explanation of the symbols of the four main parts 3 to 5...Flip-flop 6...Command decoder 7.8...And gate 9...Receiver 10... ····driver

Claims (1)

【特許請求の範囲】[Claims] データの送受信時に中央処理装置にマスク不可能な割込
み信号を送出し、前記マスク不可能な割込み信号に応答
して生じた割込みによる前記データの送受信処理が終了
するまで前記中央処理装置への割込みを禁止する手段を
有することを特徴とするプログラム試験回路。
Sends a non-maskable interrupt signal to the central processing unit when transmitting/receiving data, and prevents interrupts to the central processing unit until the data transmitting/receiving process due to the interrupt generated in response to the non-maskable interrupt signal is completed. A program test circuit characterized by having means for inhibiting the program.
JP62017937A 1987-01-28 1987-01-28 Program testing circuit Pending JPS63186341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62017937A JPS63186341A (en) 1987-01-28 1987-01-28 Program testing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62017937A JPS63186341A (en) 1987-01-28 1987-01-28 Program testing circuit

Publications (1)

Publication Number Publication Date
JPS63186341A true JPS63186341A (en) 1988-08-01

Family

ID=11957690

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62017937A Pending JPS63186341A (en) 1987-01-28 1987-01-28 Program testing circuit

Country Status (1)

Country Link
JP (1) JPS63186341A (en)

Similar Documents

Publication Publication Date Title
JPS644216B2 (en)
JP2655615B2 (en) Information processing device
US5928348A (en) Method of processing interrupt requests and information processing apparatus using the method
JPS63186341A (en) Program testing circuit
JPH05282244A (en) Information processor
JP2990800B2 (en) Interrupt processing device
JPS6158051A (en) False trouble generating system
JPS5922145A (en) Interruption control system
JPS6159562A (en) Method for controlling interface
JPS59146326A (en) Control system of channel device
KR940005212B1 (en) Telex line control apparatus and controlling method thereof
SU1113803A1 (en) Priority interruption device for microcomputers
SU1304026A1 (en) Interruption device
KR20000027903A (en) Apparatus and method for processing a watchdog timer reset in a wireless local loop terminal
JPH0356501B2 (en)
JPH05158723A (en) Abnormality diagnostic device for decentralized processing type controller
JPH01137339A (en) Microprocessor
JPS63149753A (en) Data processor
JPH0417541B2 (en)
JPH05274173A (en) Pseudo fault setting system
JPS60258627A (en) Microcomputer device
JPH08221279A (en) External interrupt signal processor
KR19990041094A (en) Reset device and method of board / system using reset switch
JPS5942335B2 (en) Interrupt method for character processing
JPS62243031A (en) Information processor