JPH0520234A - Communication control equipment - Google Patents

Communication control equipment

Info

Publication number
JPH0520234A
JPH0520234A JP3159353A JP15935391A JPH0520234A JP H0520234 A JPH0520234 A JP H0520234A JP 3159353 A JP3159353 A JP 3159353A JP 15935391 A JP15935391 A JP 15935391A JP H0520234 A JPH0520234 A JP H0520234A
Authority
JP
Japan
Prior art keywords
interrupt
control circuit
character
microprocessor
communication line
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
JP3159353A
Other languages
Japanese (ja)
Inventor
Atsushi Tanaka
田中  敦
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 Engineering Ltd
Original Assignee
NEC Engineering 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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP3159353A priority Critical patent/JPH0520234A/en
Publication of JPH0520234A publication Critical patent/JPH0520234A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To improve the processing efficiency of a microprocessor by using a receiving character as a part of an interruption vector. CONSTITUTION:At the time of receiving an interruption 56 from an interruption control circuit 11, the microprocessor 12 outputs an interruption response 57 and discriminates a transmitting interruption factor 50 or a receiving interruption factor 51 based upon an interruption vector 55 outputted from the circuit 11. A communication line control circuit 10 receives a character from a serial line 20 and generates the factor 50 for requesting the reception of the received character. The circuit 11 generates a receiving character reading instruction 52 to the circuit 10 based upon the response 57 outputted from the microprocessor 12. The circuit 10 allows the microprocessor 12 to read out the vector 55 using the instruction 52 as a part of a receiving character vector to be outputted to an internal bus.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は通信制御装置に関し、特
にキャラクタの送信処理を行う通信制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control device, and more particularly to a communication control device for performing character transmission processing.

【0002】[0002]

【従来の技術】従来の通信制御装置は、送信もしくは受
信の割り込み要因が発生した場合に、その要因を割り込
み制御回路に通知し、割り込み制御回路は、その要因に
対応したベクタを準備し、マイクロ・プロセッサに対し
て割り込みを発生する。
2. Description of the Related Art When a transmission or reception interrupt factor is generated, a conventional communication control device notifies the interrupt control circuit of the factor, and the interrupt control circuit prepares a vector corresponding to the factor, -Generate an interrupt to the processor.

【0003】図3は従来例のマイクロ・プロセッサの処
理を示すフローチャートであり、マイクロ・プロセッサ
は、割り込みを受けると、その割り込みがなんであるの
か知るために、割り込み応答サイクルを起動し、割り込
み制御回路が準備したベクタを読出(リード)する。次
に、リードしたベクタにより、割り込みが受信割り込み
であった場合に、マイクロ・プロセッサは、マイクロ・
プログラムにより通信回線制御回路から受信キャラクタ
をリードし、同じくマイクロ・プロセッサによりリード
した受信キャラクタを識別することで、受信キャラクタ
に対応した処理を行う方式となっていた。次に、リード
したベクタにより、割り込みが送信割り込みであった場
合に、マイクロ・プロセッサは、マイクロ・プログラム
により送信キャラクタをまずバッファ・メモリからリー
ドし、次に通信回線制御回路に書込み(ライト)する方
式となっていた。
FIG. 3 is a flow chart showing the processing of a conventional microprocessor. When a microprocessor receives an interrupt, it starts an interrupt response cycle to know what the interrupt is, and the interrupt control circuit. Reads the vector prepared by. Then, if the vector read causes the interrupt to be a receive interrupt, the microprocessor
By the program, the received character is read from the communication line control circuit, and the read character is also identified by the microprocessor so that the processing corresponding to the received character is performed. Next, when the interrupt is a transmission interrupt by the read vector, the microprocessor first reads the transmission character from the buffer memory by the micro program, and then writes (writes) the communication line control circuit. It was a method.

【0004】[0004]

【発明が解決しようとする課題】上述した従来の通信制
御装置において、キャラクタの受信処理方式では、受信
したキャラクタを識別するのにマイクロ・プログラムの
処理介入が必ず必要で、受信したキャラクタに対応した
処理実行するのに、マイクロプロセッサがキャラクタを
識別に必要な時間だけ対応が遅れるという欠点がある。
In the above-mentioned conventional communication control device, in the character reception processing system, the processing intervention of the micro program is indispensable for identifying the received character, and the character reception processing method is applied. In executing the processing, there is a drawback that the response is delayed by the time necessary for the microprocessor to identify the character.

【0005】また、キャラクタの送信処理方式では、送
信要求が発生から、その時点で送信がおこなわれている
n(N>1)番目のキャラクタの送信が完了するまで
に、マイクロ・プログラムが、n番目のキャラクタの送
信が完了する時間以内に、n+1番目の送信キャラクタ
を準備を終了しなければ、アンダーラン・エラーが発生
するという欠点がある。
Further, in the character transmission processing method, from the generation of a transmission request until the transmission of the n (N> 1) th character being transmitted at that time is completed, the micro program is If the preparation of the (n + 1) th transmission character is not completed within the time when the transmission of the th character is completed, an underrun error occurs.

【0006】[0006]

【課題を解決するための手段】本発明の通信制御装置
は、シリアル通信回線に対するデータを送受信する通信
回線制御回路と、この通信回線制御回路が送受信するデ
ータの単位であるキャラクタのビット長よりも長いビッ
ト長のベクタにより割り込みの要因を認識するマイクロ
・プロセッサと、送受信する前記データを格納するバッ
ファ・メモリと、前記通信回線制御回路からの送受信に
関する割り込み要因に対応したベクタを準備し前記マイ
クロ・プロセッサに対して割り込みを発生する割り込み
制御回路とを有し、1本の内部バスで接続された前記マ
イクロ・プロセッサが前記割り込み制御回路からのベク
タにより、割り込み要因を識別する通信制御装置におい
て、前記通信回線制御回路が前記シリアル通信回線から
前記キャラクタを受信して発生させた受信キャラクタの
引き取りを要求する割り込みに対する前記マイクロ・プ
ロセッサの割り込み応答サイクルで前記割り込み制御回
路が前記通信回線制御回路に受信キャラクタのリード指
示を発生する手段と、この手段により前記通信回線制御
回路が前記内部バスに出力した前記受信キャラクタを前
記ベクタの一部にして前記マイクロ・プロセッサにリー
ドさせる手段とを有する。
A communication control device according to the present invention has a communication line control circuit for transmitting and receiving data to and from a serial communication line and a bit length of a character which is a unit of data transmitted and received by the communication line control circuit. A microprocessor that recognizes an interrupt factor with a vector having a long bit length, a buffer memory that stores the data to be transmitted and received, and a vector that corresponds to the interrupt factor related to transmission and reception from the communication line control circuit are prepared. An interrupt control circuit for generating an interrupt to a processor, wherein the microprocessor connected by one internal bus identifies an interrupt factor by a vector from the interrupt control circuit, The communication line control circuit receives the character from the serial communication line. Means for causing the communication control circuit to issue a read instruction of the received character to the communication line control circuit in the interrupt response cycle of the microprocessor in response to the interrupt requesting the receipt of the received character, and the communication by the means. The line control circuit makes the received character output to the internal bus a part of the vector and causes the microprocessor to read the vector.

【0007】[0007]

【実施例】次に本発明について図面を参照して説明す
る。図1は、本発明の一実施例を示したブロック図であ
る。
The present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention.

【0008】通信回線制御回路10は、シリアル回線2
0に対するデータの送受信と、パラレル・データバス5
4に対するデータのシリアル−パラレル変換とを行い、
シリアル回線20と送受信するデータの単位である1キ
ャラクタを受信すると、受信キャラクタの引取り要求で
ある受信割り込み要因50および送信するキャラクタが
必要になった場合にキャラクタを要求するための送信割
り込み要求51を割り込み制御回11に対して発生す
る。
The communication line control circuit 10 includes a serial line 2
Data transmission / reception to / from 0 and parallel data bus 5
Serial-parallel conversion of data for 4 is performed,
When one character, which is a unit of data transmitted / received to / from the serial line 20, is received, a reception interrupt factor 50, which is a request to receive the received character, and a transmission interrupt request 51, which requests the character when the character to be transmitted becomes necessary. Is generated for the interrupt control circuit 11.

【0009】割り込み制御回路11は、受信割り込み要
因50もしくは送信割り込み要因51によりマイクロ・
プロセッサ12に対して割り込み56を発生する。
The interrupt control circuit 11 uses a reception interrupt factor 50 or a transmission interrupt factor 51 to generate a micro interrupt signal.
An interrupt 56 is generated for the processor 12.

【0010】マイクロ・プロセッサ12は、割り込み5
6を受け付けると、割り込み制御回路11に対して割り
込み応答57を返すことにより割り込み56が何である
のか識別するためのベクタのリードを要求する。割り込
み制御回路11は、割り込み要因に対応する割り込みベ
クタ55をマイクロ・プロセッサ12にリードさせるた
めにパラレル・データバス54に対して出力する。
Microprocessor 12 uses interrupt 5
When 6 is accepted, an interrupt response 57 is returned to the interrupt control circuit 11 to request reading of a vector for identifying what the interrupt 56 is. The interrupt control circuit 11 outputs an interrupt vector 55 corresponding to an interrupt factor to the parallel data bus 54 so that the microprocessor 12 can read it.

【0011】割り込み制御回路11は受信割り込み要因
50であった場合に割り込み応答57を受け取ると、通
信回線制御回路10にリード/ライト指示52のうちリ
ード指示を発生し、パラレル・データバス54に受信キ
ャラクタを出力させ割り込みベクタ55の一部として、
マイクロ・プロセッサ12にリードさせる。
When the interrupt control circuit 11 receives the interrupt response 57 when it is the reception interrupt factor 50, it issues a read instruction of the read / write instruction 52 to the communication line control circuit 10 and receives it on the parallel data bus 54. As a part of interrupt vector 55 by outputting a character,
Cause the microprocessor 12 to read.

【0012】図2は本実施例のマイクロ・プロセッサの
処理を示すフローチャートであり、割り込みベクタ55
をリードすることによる割り込み要因を認識した時点
で、その割り込みが受信割り込みであり、かつ受信キャ
ラクタの識別も同時に知ることができ、マイクロ・プロ
グラムによる受信キャラクタの識別処理が必要なくな
り、受信キャラクタに対する処理を高速に実現すること
が可能となる。また、マイクロ・プロセッサは、送信割
り込みを受け付ける以前に、送信キャラクタをバッファ
・メモリ13からリードし、割り込み制御回路11にラ
イトしておき、割り込み制御回路11は、送信キャラク
ラを保持しておく。
FIG. 2 is a flow chart showing the processing of the microprocessor of this embodiment.
When the interrupt factor caused by reading is received, the interrupt is a receive interrupt, and the identification of the received character can be known at the same time, so the process of identifying the received character by the micro program is not required, and the process for the received character is performed. Can be achieved at high speed. Further, the microprocessor reads the transmission character from the buffer memory 13 and writes it in the interrupt control circuit 11 before receiving the transmission interrupt, and the interrupt control circuit 11 holds the transmission character class.

【0013】割り込み制御回路11は、送信割り込み要
因51であった場合には、割り込み応答57を受け取る
と、パラレル・データバス54に対して、事前に保持し
てある送信キャラクタを一部に含んだ割り込みベクタ5
5を出力し、マイクロ・プロセッサ12にリードさせ、
同時に通信回線制御回路10に対して、リード/ライト
指示52のうちライト指示を発生し、パラレル・データ
バス54に割り込みベクタ55の一部として出力した送
信キャラクタをライトする。
When the interrupt control circuit 11 receives the interrupt response 57 when it is the transmission interrupt factor 51, the transmission control character held in advance is included in the parallel data bus 54 as a part. Interrupt vector 5
5 is output and the microprocessor 12 is read,
At the same time, a write instruction of the read / write instruction 52 is generated to the communication line control circuit 10, and the transmission character output as a part of the interrupt vector 55 is written to the parallel data bus 54.

【0014】このようにすると、割り込みベクタ55を
リードすることにより、n(n>1)番目のキャラクタ
送信中に発生したn+1番目の送信キャラクタの要求を
示す割り込みを認識をした時点で、既にn+1番目の送
信キャラクタの準備は完了したことになり、マイクロ・
プログラムは、n+1番目のキャラクタ送信中に発生す
る送信割り込みに備えて、n+2番目の送信キャラクタ
をバッファ・メモリ13からリードし、割り込み制御回
路11にライトする処理をすればよくなり、マイクロ・
プログラムが送信キャラクタを準備する処理として許容
される時間はn+1番目のキャラクタの送信が完了する
までとなるため、従来例にくらべ、1キャラクタの送信
時間分だけ許容範囲を大きくすることが可能となる。
In this way, by reading the interrupt vector 55, when the interrupt indicating the request of the (n + 1) th transmission character generated during the transmission of the n (n> 1) th character is recognized, n + 1 has already been recognized. The second transmission character is ready and the micro
The program may read the n + 2th transmission character from the buffer memory 13 and write it to the interrupt control circuit 11 in preparation for a transmission interrupt that occurs during the transmission of the n + 1th character.
Since the time allowed for the program to prepare the transmission character is until the transmission of the (n + 1) th character is completed, it is possible to increase the allowable range by the transmission time of one character as compared with the conventional example. .

【0015】[0015]

【発明の効果】以上説明したように本発明は、受信キャ
ラクタを割り込みベクタの一部にすることにより、マイ
クロ・プロセッサの処理効率が向上するという効果があ
る。
As described above, the present invention has the effect of improving the processing efficiency of the microprocessor by making the received character part of the interrupt vector.

【0016】また、送信キャラクタを保持し、送信キャ
ラクタを割り込みベクタの一部にして、割り込みベクタ
を発生することにより、マイクロ・プログラムの送信処
理時間の許容範囲が大きくなるという効果がある。
Further, by holding the transmission character, making the transmission character a part of the interrupt vector, and generating the interrupt vector, there is an effect that the permissible range of the transmission processing time of the micro program is increased.

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

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

【図2】本実施例のマイクロ・プロセッサの処理を示す
フローチャートである。
FIG. 2 is a flowchart showing the processing of the microprocessor of this embodiment.

【図3】従来例のマイクロ・プロセッサの処理を示すフ
ローチャートである。
FIG. 3 is a flowchart showing the processing of a conventional microprocessor.

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

10 通信回線制御回路 11 割り込み制御回路 12 マイクロ・プロセッサ 13 バッファ・メモリ 20 シリアル・回線 10 Communication line control circuit 11 Interrupt control circuit 12 microprocessors 13 buffer memory 20 serial lines

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 H04L 29/10 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Internal reference number FI technical display location H04L 29/10

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 シリアル通信回線に対するデータを送受
信する通信回線制御回路と、この通信回線制御回路が送
受信するデータの単位であるキャラクタのビット長より
も長いビット長のベクタにより割り込みの要因を認識す
るマイクロ・プロセッサと、送受信する前記データを格
納するバッファ・メモリと、前記通信回線制御回路から
の送受信に関する割り込み要因に対応したベクタを準備
し前記マイクロ・プロセッサに対して割り込みを発生す
る割り込み制御回路とを有し、1本の内部バスで接続さ
れた前記マイクロ・プロセッサが前記割り込み制御回路
からのベクタにより、割り込み要因を識別する通信制御
装置において、前記通信回線制御回路が前記シリアル通
信回線から前記キャラクタを受信して発生させた受信キ
ャラクタの引き取りを要求する割り込みに対する前記マ
イクロ・プロセッサの割り込み応答サイクルで前記割り
込み制御回路が前記通信回線制御回路に受信キャラクタ
のリード指示を発生する手段と、この手段により前記通
信回線制御回路が前記内部バスに出力した前記受信キャ
ラクタを前記ベクタの一部にして前記マイクロ・プロセ
ッサにリードさせる手段とを有することを特徴とする通
信制御装置。
1. A communication line control circuit for transmitting / receiving data to / from a serial communication line, and a vector of a bit length longer than a bit length of a character, which is a unit of data transmitted / received by the communication line control circuit, recognizes an interrupt factor. A microprocessor, a buffer memory for storing the data to be transmitted and received, an interrupt control circuit for preparing a vector corresponding to an interrupt factor related to transmission and reception from the communication line control circuit, and generating an interrupt to the microprocessor In the communication control device, wherein the microprocessor connected to one internal bus identifies an interrupt factor by a vector from the interrupt control circuit, the communication line control circuit is configured to connect the character from the serial communication line. The received character generated by receiving Means for the interrupt control circuit to issue a read instruction of the received character to the communication line control circuit in the interrupt response cycle of the microprocessor for the interrupt requesting the request, and the communication line control circuit outputs to the internal bus by this means. And a means for causing the microprocessor to read the received character as a part of the vector.
【請求項2】 前記マイクロ・プロセッサが前記通信回
線制御回路からの送信キャラクタを要求する割り込みが
認識される前に前記割り込み制御回路に送信キャラクタ
をライトする手段と、前記割り込み制御回路が前記ライ
トされた送信キャラクタを保持する手段と、前記通信回
線制御回路からの送信キャラクタを要求する割り込みに
対するマイクロ・プロセッサを割り込み応答サイクルで
前記割り込み制御回路が前記保持してある送信キャラク
タを前記ベクタの一部にしてマイクロ・プロセッサにリ
ードさせると同時に前記通信回線制御回路へライトする
手段とを有することを特徴とする請求項1記載の通信制
御装置。
2. A means for writing a transmission character to the interrupt control circuit before the microprocessor recognizes an interrupt requesting a transmission character from the communication line control circuit, and the interrupt control circuit is configured to write the transmission character. And a means for holding the transmission character, and a microprocessor for an interrupt requesting the transmission character from the communication line control circuit, makes the transmission character held by the interrupt control circuit part of the vector in an interrupt response cycle. 2. The communication control device according to claim 1, further comprising means for writing to the communication line control circuit at the same time as being read by the microprocessor.
JP3159353A 1991-07-01 1991-07-01 Communication control equipment Pending JPH0520234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3159353A JPH0520234A (en) 1991-07-01 1991-07-01 Communication control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3159353A JPH0520234A (en) 1991-07-01 1991-07-01 Communication control equipment

Publications (1)

Publication Number Publication Date
JPH0520234A true JPH0520234A (en) 1993-01-29

Family

ID=15691994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3159353A Pending JPH0520234A (en) 1991-07-01 1991-07-01 Communication control equipment

Country Status (1)

Country Link
JP (1) JPH0520234A (en)

Similar Documents

Publication Publication Date Title
EP0239937B1 (en) Serial communications controller
US4464749A (en) Bi-directional token flow system
CN112463700B (en) Method and device for controlling AXI bus bandwidth
CN112506827A (en) Data transmission method, device and equipment based on ADMA controller
US20010018646A1 (en) USB simulation apparatus and storage medium
CN111949585A (en) Data conversion processing method and device
JPH0520234A (en) Communication control equipment
JPH04108242A (en) Data transfer system for communication controller
JP2000155701A (en) Debugging circuit
US11714608B2 (en) Device and method for handling programming language function
JPS6325737B2 (en)
JP2000112878A (en) Device and method for controlling timing of transfer request in data processor
JP3356110B2 (en) Function expansion system and data transfer method used therefor
KR0154470B1 (en) Circuit for interfacing between auxiliary processor and external device
JP3146862B2 (en) Unidirectional loop transmission circuit
JPS6049465A (en) Data transfer method between microcomputers
JP2704135B2 (en) Control device
JPS608949A (en) General interface bus analyzer
JPS62125458A (en) Data transfer control circuit
KR100308146B1 (en) Method for processing message in speech recognition system
JPH0249584B2 (en)
JPH05114925A (en) Serial data transfer interface
KR960042375A (en) Interface control device and method for bidirectional communication between host and peripheral device
JPH0721102A (en) Message transmitter/receiver
JP2002051087A (en) Information processing system and data receiving method