JPH0546515A - Data transfer system - Google Patents

Data transfer system

Info

Publication number
JPH0546515A
JPH0546515A JP20578391A JP20578391A JPH0546515A JP H0546515 A JPH0546515 A JP H0546515A JP 20578391 A JP20578391 A JP 20578391A JP 20578391 A JP20578391 A JP 20578391A JP H0546515 A JPH0546515 A JP H0546515A
Authority
JP
Japan
Prior art keywords
data
microprogram
write request
request interrupt
transmission
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
JP20578391A
Other languages
Japanese (ja)
Inventor
Yoshikazu Kimura
義和 木村
Toshihiro Yashima
俊裕 八島
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP20578391A priority Critical patent/JPH0546515A/en
Publication of JPH0546515A publication Critical patent/JPH0546515A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To equalize the burden of a microprocessor by holding the start of only a write request just for a prescribed time when the time point when a write request is produced is approximately coincident with the time point when the microprocessor receives the read request interruption of the received parallel data. CONSTITUTION:A transmission/reception adaptor 1 is provided with a data conversion pert 2 and a microprogram 3 which receives the read and write request interruptions form the part 2. When the adaptor 1 receives a read request interruption and starts the read of the pert 2, a read mode flag 4 is set up and at the same time a clock counter 5 starts to count the received clocks. When a write request is received, the state of the flag 4 and the output of the counter 5 are detected. When the former is kept in a read mode and the latter is a specific value respectively, the start of the write request interruption is held by a clock timer 6 only for a prescribed time so as to evade the coincidence of timing between the read and write request interruptions.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、デ−タ転送方式に関
し、特に伝送回線を介して直列伝送されてきた同一ビッ
ト数からなる受信データのそれぞれを直並列変換し、ま
た送信用並列データを並直列変換してから伝送回線に送
る機能を持つデータ変換部と、当該データ変換部から
の、前記直並列変換後の並列データの読出要求割込みお
よび前記送信用並列データの書込要求割込みのそれぞれ
に応じた処理を実行するマイクロプログラムとを備えた
送受信アダプタを用いて行なうデ−タ転送方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer system, and more particularly to serial-to-parallel conversion of received data of the same number of bits transmitted serially via a transmission line, and transmission parallel data. A data conversion unit having a function of performing parallel-serial conversion and then sending to a transmission line, and a parallel data read request interrupt and a transmission parallel data write request interrupt from the data conversion unit, respectively. The present invention relates to a data transfer system using a transmission / reception adapter provided with a microprogram for executing processing according to the above.

【0002】[0002]

【従来の技術】一般に、ホストコンピュータと端末装置
との間、あるいは端末装置同士を通信回線で接続し、こ
の両者間でデ−タ通信を行う場合のデ−タ転送方式の一
つとして、全二重通信、すなわちホストコンピュータや
端末装置が送信と受信とを同時に行うことができるデ−
タ転送方式が用いられている。
2. Description of the Related Art Generally, as one of the data transfer methods for connecting data between a host computer and a terminal device, or connecting terminal devices with a communication line and performing data communication between them, there is a Duplex communication, that is, the data that the host computer or terminal device can simultaneously perform transmission and reception
Data transfer method is used.

【0003】そして、この全二重通信は、デ−タをつね
に両方向に送ることができる効率のよい転送方式であっ
て、伝送回線としては4線式が必要であるが、2線式の
伝送回線でも、伝送帯域を周波数分割することによって
可能となり、また伝送回線とのインタフェースとして送
受信アダプタが用いられている。
The full-duplex communication is an efficient transfer system capable of sending data in both directions at all times. A 4-wire system is required as a transmission line, but a 2-wire system is required. Even in a line, it becomes possible by frequency-dividing the transmission band, and a transmission / reception adapter is used as an interface with the transmission line.

【0004】この送受信アダプタは、図5に示すよう
に、通信用LSI(デ−タ変換部)52やマイクロプログ
ラム53などからなり、また通信用LSI52は、伝送回線
を介して送られてきた、例えば8ビットの直列形式の文
字デ−タ(直列データ)を並列デ−タに変換するための
シフトレジスタ54,CPU56からの送信用並列デ−タを
直列デ−タに変換するためのシフトレジスタ55やエラー
訂正部(図示省略)などからなっている。
As shown in FIG. 5, this transmission / reception adapter comprises a communication LSI (data conversion section) 52, a microprogram 53, etc. The communication LSI 52 is sent via a transmission line. For example, a shift register 54 for converting 8-bit serial format character data (serial data) into parallel data, a shift register for converting parallel transmission data from the CPU 56 into serial data. 55 and an error correction unit (not shown).

【0005】ここで、送受信アダプタ51に送られてきた
直列デ−タは、1デ−タ(1文字)ごとにシフトレジス
タ54で並列デ−タに変換されていくが、この変換が終了
するごとに、通信用LSI52はマイクロプログラム53に
対して当該並列デ−タの読出要求割込みを起こし、また
シフトレジスタ55が、例えば8ビットの送信用並列デ−
タを直列デ−タに変換して伝送回線に送り出す処理を終
了するごとに、通信用LSI52はマイクロプログラム53
に対して次の送信用並列デ−タのシフトレジスタ55への
書込要求割込みを起こし、これらの割込みを受けたマイ
クロプログラム53はそれぞれの割込み処理を開始する。
Here, the serial data sent to the transmission / reception adapter 51 is converted into parallel data by the shift register 54 for each data (one character), but this conversion is completed. For each time, the communication LSI 52 issues a read request interrupt of the parallel data to the microprogram 53, and the shift register 55 causes the parallel parallel data for transmission of 8 bits, for example.
Each time the processing of converting the data into serial data and sending it out to the transmission line is completed, the communication LSI 52 causes the microprogram 53
In response to this, a write request interrupt to the shift register 55 of the next parallel data for transmission is generated, and the microprogram 53 receiving these interrupts starts respective interrupt processing.

【0006】[0006]

【発明が解決しようとする課題】このように、マイクロ
プログラムは読出要求割込みおよび書込要求割込みを、
随時、受けつけているが、両者のタイミングが重なった
場合には(両方の割込み処理を同時に実行することはで
きないため)いずれか一方の割込み処理が待たされるこ
とになり、例えば書込要求割込みから実際の書込処理開
始までにt1 だけ待たされるとすると、もともと書込処
理のために(t1 +t2 )の時間が確保されているのが
実際の処理時間はt2 となってしまい、マイクロプログ
ラムの負荷が大きくなるという問題点があった。
As described above, the microprogram issues a read request interrupt and a write request interrupt.
Although it is accepted from time to time, if the timings of both sides overlap (because it is not possible to execute both interrupts at the same time), either one of the interrupts will have to wait. If t 1 is to be waited before the start of the writing process, the time (t 1 + t 2 ) is originally reserved for the writing process, and the actual processing time is t 2 and the There was a problem that the load of the program became large.

【0007】そこで、本発明では、通信用LSI(デ−
タ変換部)にとってもっぱら受動的な立場にある読出要
求割込みに対する、書込要求発生のタイミングを調べて
両者がほぼ一致しているときには、マイクロプログラム
に対する書込要求割込みの起動を所定時間だけ遅らせる
ことにより、マイクロプログラムでの、読出要求割込み
と書込要求割込みとを受けるタイミングが一致しないよ
うにして、マイクロプログラムの負担の均一化を図るこ
とを目的とする。
Therefore, in the present invention, a communication LSI (data
The timing of the write request generation for the read request interrupt, which is exclusively in a passive position for the data conversion unit), is checked, and when the two are almost coincident, the activation of the write request interrupt for the microprogram is delayed by a predetermined time. Thus, it is an object of the present invention to make the timings of receiving a read request interrupt and a write request interrupt in the microprograms non-coincident so that the loads on the microprograms are equalized.

【0008】[0008]

【課題を解決するための手段】本発明は、直並列変換後
の並列デ−タの読出要求割込みの場合とは違って、送信
用並列デ−タの通信用LSI(デ−タ変換部)への書込
要求割込みのタイミングについては、送受信アダプタ
は、自ら、調整できる点に着目したもので、書込要求の
発生時点が、受信後の前記並列デ−タの読出要求割込み
をマイクロプログラムが受けた時点とほぼ一致するとき
には、当該書込要求割込みの起動を所定時間だけ保留す
るようにしたものである。
The present invention is different from the case of a read request interrupt of parallel data after serial-parallel conversion, in which a communication LSI of the parallel data for transmission (data conversion unit) is provided. The timing of the write request interrupt to the transmission / reception adapter focuses on the point that the transmission / reception adapter can adjust it by itself. When the write request is generated, the microprogram issues a read request interrupt of the parallel data after reception. When the received time substantially coincides with the received time, the activation of the write request interrupt is suspended for a predetermined time.

【0009】図1は本発明の原理説明図である。図にお
いて、1は、送受信アダプタであり、マイクロプログラ
ム,デ−タ変換部,クロックカウンタ,クロックタイマ
などからなっている。2は、デ−タ変換部であり、伝送
回線を介して送られてくる、例えば8ビットの直列形式
の文字デ−タ(直列データ)を並列デ−タに変換して、
当該並列デ−タの読出要求割込みをマイクロプログラム
に起こし、またCPUから送られてきた送信用並列デ−
タを直列デ−タに変換して伝送回線に送った後、次の送
信用並列デ−タの書込要求を起こしている。3は、マイ
クロプログラムであり、デ−タ変換部からの読出要求割
込みおよび書込要求割込みに対する処理や、送信用並列
デ−タがCPUから送られてきていることをデ−タ変換
部へ通知する処理などを行っている。4は、読出中フラ
グであり、読出要求割込みを受けたマイクロプログラム
によって、例えば「1」に設定される。5は、クロック
カウンタであり、読出要求割込みを受けたマイクロプロ
グラムが発行するスタート信号によって受信クロックの
カウント動作を開始する。6は、クロックタイマであ
り、読出中フラグの状態とクロックカウンタの出力とに
ついてのハードウェア信号により、デ−タ変換部での書
込要求発生とマイクロプログラムでの読出要求割込みの
受信とのタイミングがほぼ一致していることが検出され
た場合にセットされ、その後受信クロックを受けるごと
にカウント動作を実行し、このタイマの動作時間だけ、
デ−タ変換部からマイクロプログラムに対する書込要求
割込みの起動が保留されることになる。なお、クロック
タイマに代えて、通常の計時動作によるタイマを用いる
ようにしてもよい。7は、伝送回線であり、一般には、
8ビットの直列形式の文字デ−タ(直列データ)が伝送
される。8は、CPUであり、送受信アダプタや伝送回
線を介して他のコンピュータ,端末装置とのあいだのデ
−タ通信を行っている。
FIG. 1 illustrates the principle of the present invention. In the figure, reference numeral 1 denotes a transmission / reception adapter, which comprises a microprogram, a data conversion unit, a clock counter, a clock timer and the like. Reference numeral 2 is a data conversion unit that converts, for example, 8-bit serial format character data (serial data) sent via a transmission line into parallel data,
A read request interrupt of the parallel data is generated in the microprogram, and transmission parallel data sent from the CPU is sent.
After converting the data into serial data and sending it to the transmission line, a write request for the next parallel data for transmission is issued. Reference numeral 3 denotes a microprogram, which processes the read request interrupt and the write request interrupt from the data conversion unit, and notifies the data conversion unit that parallel data for transmission is sent from the CPU. The process to do is done. Reference numeral 4 is a reading flag, which is set to, for example, "1" by the microprogram which has received the read request interrupt. Reference numeral 5 denotes a clock counter, which starts counting operation of the reception clock by a start signal issued by the microprogram which has received the read request interrupt. Reference numeral 6 denotes a clock timer, which determines the timing of generation of a write request in the data conversion unit and reception of a read request interrupt in the microprogram according to the hardware signals regarding the state of the reading flag and the output of the clock counter. It is set when it is detected that they are almost the same, and after that, the count operation is executed every time the received clock is received, and only the operation time of this timer is
The activation of the write request interrupt for the microprogram from the data conversion unit is suspended. It should be noted that instead of the clock timer, a timer having a normal time counting operation may be used. 7 is a transmission line, and generally,
8-bit serial format character data (serial data) is transmitted. Reference numeral 8 denotes a CPU, which performs data communication with other computers and terminal devices via a transmission / reception adapter and a transmission line.

【0010】そして、書込要求の発生に対する処理手順
は図2で示すようになっている。すなわち、 書込要求が発生したかどうかを判断し、「YES 」の場
合は次のステップに進み、「NO」の場合はこの判断を繰
り返す。 読出中フラグがたっているかどうかを検出し、「YES
」の場合は次のステップに進み「NO」の場合はステッ
プに進む。 クロックカウンタの出力値が特定値であるかどうか、
すなわち読出要求割込みをマイクロプログラムが受けた
時点もしくはその近くの時点に対応した値であるかどう
かを検出し、「YES 」の場合は次のステップに進み「N
O」の場合はステップに進む。 クロックタイマ6を、通信速度とマイクロプログラム
の性能に見合った値(クロック数)でセットして、次の
ステップに進む。 クロックタイマ6は、受信クロックを受けるごとにカ
ウント動作を行って、次のステップに進む。 クロックタイマ6がタイムアウトしたかどうかを検出
し、「YES 」の場合は次のステップに進み、「NO」の場
合はこの判断を繰り返す。 マイクロプログラム3に対して書込要求割込みを起こ
す。。 といった手順により、デ−タ変換部2で発生した書込要
求はマイクロプログラム3に送られる。
The processing procedure for the generation of a write request is as shown in FIG. That is, it is determined whether or not a write request is generated. If "YES", the process proceeds to the next step, and if "NO", this determination is repeated. Detects whether the reading flag is on and displays "YES
If “NO”, proceed to the next step. If “NO”, proceed to step. Whether the output value of the clock counter is a specific value,
That is, it is detected whether or not the value corresponds to the time when the read request interrupt is received by the microprogram or a time close thereto, and in the case of "YES", proceed to the next step and
If “O”, proceed to step. The clock timer 6 is set to a value (number of clocks) suitable for the communication speed and the performance of the microprogram, and the process proceeds to the next step. The clock timer 6 performs a counting operation each time it receives a reception clock, and proceeds to the next step. Whether or not the clock timer 6 has timed out is detected. If "YES", the process proceeds to the next step, and if "NO", this determination is repeated. A write request interrupt is issued to the microprogram 3. .. By such a procedure, the write request generated in the data conversion unit 2 is sent to the microprogram 3.

【0011】[0011]

【作用】このように、CPU8から送られてきた送信用
並列デ−タを書き込んで並直列変換するデ−タ変換部2
において、次の送信用並列デ−タに対する書込要求が発
生したとき、読出中フラグ4の状態とクロックカウンタ
5のカウント値とをハードウェア信号として検出し、そ
の検出出力が、デ−タ変換部2からの読出要求割込みを
マイクロプログラム3が受けた時点もしくはその近くの
時点を示すものであるときには、マイクロプログラム3
に対する書込要求割込みの起動をクロックタイマ6の動
作時間だけずらすことにより、マイクロプログラム3が
読出要求割込みと書込要求割込みとをほぼ同時に受ける
ことを防止し、マイクロプログラム3での処理負担が一
時的に高まることのないようにしている。
In this way, the data conversion unit 2 for writing the parallel data for transmission sent from the CPU 8 and converting the parallel data into parallel-serial data.
When a write request for the next transmission parallel data is generated, the state of the reading flag 4 and the count value of the clock counter 5 are detected as a hardware signal, and the detected output is converted into data. When the microprogram 3 indicates a time point when the microprogram 3 receives a read request interrupt from the unit 2 or a time point near the time point, the microprogram 3
By delaying the activation of the write request interrupt with respect to the operation time of the clock timer 6, it is possible to prevent the microprogram 3 from receiving the read request interrupt and the write request interrupt at substantially the same time, and the processing load on the microprogram 3 is temporarily reduced. I try not to increase it.

【0012】[0012]

【実施例】図3〜図4を参照して本発明の実施例を説明
する。図3は本発明の送受信アダプタを、また図4は書
込要求割込みの起動を遅らせる場合のタイミングチャー
トをそれぞれ示している。
Embodiments of the present invention will be described with reference to FIGS. 3 shows a transmission / reception adapter of the present invention, and FIG. 4 shows a timing chart in the case of delaying the activation of a write request interrupt.

【0013】図3において、11は送受信アダプタ, 12は
MPU, 13はバス用LSI, 14は送受信デ−タなどを格
納するRAM, 15はマイクロプログラムなどを格納する
ROM, 16はデータの直並列変換・並直列変換やエラー
訂正などを行う通信用LSI(データ変換部), 17は読
出中フラグ,18は3ビットのクロックカウンタ, 19はク
ロックタイマ, 20はCPU, 21は伝送回線をそれぞれ示
している。
In FIG. 3, 11 is a transmission / reception adapter, 12 is an MPU, 13 is a bus LSI, 14 is a RAM for storing transmission / reception data, 15 is a ROM for storing microprograms and the like, and 16 is data serial-parallel. Communication LSI (data conversion unit) that performs conversion, parallel-serial conversion, error correction, etc., 17 is a reading flag, 18 is a 3-bit clock counter, 19 is a clock timer, 20 is a CPU, and 21 is a transmission line. ing.

【0014】ここで、送受信アダプタ11の動作開始に際
してROM15に格納されているマイクロプログラムがM
PU12に読み込まれ、またCPU20から送られてくる送
信用並列データや、通信用LSI16から読み出された受
信後の並列データはいったんRAM14に格納されて、そ
の後のマイクロプログラムからの指示(送信用並列デー
タの場合は書込要求に対する書込指示)により、前者は
通信用LSI16に書き込まれ、後者はCPU20に送信さ
れる。
Here, when the operation of the transmission / reception adapter 11 is started, the microprogram stored in the ROM 15 is M
The parallel data for transmission which is read by the PU 12 and is sent from the CPU 20 and the parallel data after reception which is read from the communication LSI 16 are once stored in the RAM 14 and are then instructed by the microprogram (transmission parallel). In the case of data, the former is written in the communication LSI 16 and the latter is transmitted to the CPU 20 in response to a write request for a write request.

【0015】図4に示すように、送受信アダプタ11が、
8ビットの直列形式の文字デ−タを受信するとき、先ず
1文字目の直列デ−タが通信用LSI16で8ビットの並
列データに変換され、当該変換が終了した時点で読出要
求割込みをマイクロプログラムに起こしている。なお、
受信クロックは、通信用LSI16において、最初に受信
したビット信号を基準とした一定周期のパルス信号とし
て作成される。
As shown in FIG. 4, the transmitting / receiving adapter 11 is
When 8-bit serial format character data is received, first the serial data of the first character is converted into 8-bit parallel data by the communication LSI 16, and when the conversion is completed, a read request interrupt is sent to the micro controller. Waking up in the program. In addition,
The reception clock is created in the communication LSI 16 as a pulse signal having a constant cycle based on the bit signal received first.

【0016】次に、この読出要求割込みを受けたマイク
ロプログラムは、読出中フラグ17を「1」にするととも
に、受信クロックでカウントアップしていくクロックカ
ウンタ18の動作を開始させている。以上の動作は、その
後の文字データを受信するごとに繰り返されていき、ク
ロックカウンタ18は8回のカウントアップを行った時
点、すなわち次の文字デ−タ(8ビット)の直並列変換
が終了した時点で「0」のカウント値を示すことにな
る。
Next, the microprogram which has received the read request interrupt sets the reading flag 17 to "1" and starts the operation of the clock counter 18 which counts up with the received clock. The above operation is repeated each time subsequent character data is received, and the clock counter 18 counts up eight times, that is, the serial-parallel conversion of the next character data (8 bits) is completed. At that time, the count value of "0" is indicated.

【0017】したがって、読出中フラグ17が「1」で、
かつクロックカウンタ18が「0」または「7」といった
特定値を示しているときは、MPU12中のマイクロプロ
グラムが通信用LSI16からの読出要求割込みを受け取
った時点もしくはその近くの時点であり、通信用LSI
16からMPU12に書込要求割込みを起こすタイミングと
しては望ましくない。
Therefore, the reading flag 17 is "1",
Further, when the clock counter 18 indicates a specific value such as "0" or "7", it is the time when the microprogram in the MPU 12 receives the read request interrupt from the communication LSI 16 or near the time, and LSI
It is not desirable as the timing for causing the write request interrupt from 16 to the MPU 12.

【0018】そこで、通信用LSI16において書込要求
が発生すると、ハードウェア信号として読出中フラグ17
とクロックカウンタ18との出力を検出し、読出中フラグ
17の出力が「1」で、かつクロックカウンタ18の出力が
「0」または「7」であるときは、通信速度とマイクロ
プログラムの性能に見合った値、例えば1文字の処理が
200マイクロセカンドのとき、通信速度9600bps で4
(クロック)、また通信速度4800bps で2(クロック)
をクロックタイマ19にセットし、その後、当該クロック
タイマ19が受信クロックによってカウントアップしてい
きタイムアウトした時点で、MPU12に対して書込要求
割込を起こすようにしている。
Therefore, when a write request is generated in the communication LSI 16, a reading flag 17 is output as a hardware signal.
And the output of the clock counter 18 are detected and the reading flag
When the output of 17 is "1" and the output of the clock counter 18 is "0" or "7", a value commensurate with the communication speed and the performance of the microprogram, for example, the processing of one character
At 200 microseconds, 4 at communication speed 9600bps
(Clock), or 2 (clock) at a communication speed of 4800bps
Is set in the clock timer 19, and thereafter, when the clock timer 19 counts up with the received clock and times out, a write request interrupt is generated to the MPU 12.

【0019】なお、ハードウェア信号として読出中フラ
グ17とクロックカウンタ18との出力を検出したとき、読
出中フラグ17の出力が「0」の場合、または読出中フラ
グ17の出力が「0」で、かつクロックカウンタ18の出力
が「1」〜「6」の場合は、ともにクロックタイマ19を
セットすることなしに、すぐに、書込要求割込みマイク
ロプログラムに起こしている。
When the output of the reading flag 17 and the clock counter 18 is detected as a hardware signal and the output of the reading flag 17 is "0", or the output of the reading flag 17 is "0". If the output of the clock counter 18 is "1" to "6", the write request interrupt microprogram is immediately generated without setting the clock timer 19.

【0020】このように、通信用LSI16での書込要求
発生のタイミングが、マイクロプログラムが通信用LS
I16からの読出要求割込みを受け取ったタイミングとほ
ぼ一致している場合には、当該書込要求の割込みをマイ
クロプログラムに起こすタイミングをクロックタイマ19
のセット時間分だけ遅らせている。
As described above, the timing at which the write request is generated in the communication LSI 16 is determined by the microprogram being the communication LS.
If the timing is substantially the same as the timing at which the read request interrupt from I16 is received, the clock timer 19 determines the timing at which the write request interrupt is issued to the microprogram.
It is delayed by the set time of.

【0021】[0021]

【発明の効果】本発明は、通信用LSI(データ変換
部)を備えた送受信アダプタにおいて、例えば8ビット
の送信用並列データを通信用LSIに取込んで並直列変
換するための書込要求の発生タイミングが、マイクロプ
ログラムでの、受信データを直並列変換して求めた並列
データを通信用LSIから取出すための読出要求割込み
のタイミングとぼぼ一致するときには、マイクロプログ
ラムへの書込要求割込みを起こす時点をその発生時点よ
りも所定時間だけ遅らせて、マイクロプログラムが読出
要求割込みと書込要求割込みとを同時に受け取ることが
生じないようにしているため、マイクロプログラムの処
理時間が均等化され、マイクロプログラムに対する一時
的な負荷増大によるオーバラン発生を防止することがで
きる。
According to the present invention, in a transmission / reception adapter equipped with a communication LSI (data conversion section), a write request for fetching, for example, 8-bit parallel transmission data into the communication LSI and performing parallel-serial conversion. When the generation timing is substantially coincident with the timing of the read request interrupt for fetching the parallel data obtained by serial-parallel conversion of the received data in the microprogram from the communication LSI, a write request interrupt to the microprogram is generated. Since the time is delayed by a predetermined time from the time of occurrence so that the microprogram does not receive the read request interrupt and the write request interrupt at the same time, the processing time of the microprogram is equalized, and the microprogram is equalized. It is possible to prevent an overrun from occurring due to a temporary increase in load on the.

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

【図1】本発明の原理説明図(その1)である。FIG. 1 is a diagram for explaining the principle of the present invention (No. 1).

【図2】本発明の原理説明図(その2)である。FIG. 2 is a diagram for explaining the principle of the present invention (No. 2).

【図3】本発明の、送受信アダプタを示す説明図であ
る。
FIG. 3 is an explanatory diagram showing a transmission / reception adapter of the present invention.

【図4】本発明の、書込要求割込みの起動を遅らせる場
合のタイミングチャートを示す説明図である。
FIG. 4 is an explanatory diagram showing a timing chart in the case of delaying activation of a write request interrupt according to the present invention.

【図5】従来の、送受信アダプタの概要を示す説明図で
ある。
FIG. 5 is an explanatory diagram showing an outline of a conventional transmission / reception adapter.

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

図1において、 1・・・送受信アダプタ 2・・・デ−タ変換部 3・・・マイクロプログラム 4・・・読出中フラグ 5・・・クロックカウンタ 6・・・クロックタイマ 7・・・伝送回線 8・・・CPU In FIG. 1, 1 ... Transmission / reception adapter 2 ... Data conversion unit 3 ... Micro program 4 ... Reading flag 5 ... Clock counter 6 ... Clock timer 7 ... Transmission line 8 ... CPU

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 伝送回線を介して直列伝送されてきた同
一ビット数からなる受信データのそれぞれを直並列変換
し、また送信用並列データを並直列変換してから伝送回
線に送る機能を持つデータ変換部と、当該データ変換部
からの、前記直並列変換後の並列データの読出要求割込
みおよび前記送信用並列データの書込要求割込みのそれ
ぞれに応じた処理を実行するマイクロプログラムとを備
えた送受信アダプタを用いて行なうデ−タ転送方式にお
いて、 前記マイクロプログラムは、前記読出要求割込みを受け
て読出処理を開始するとき、読出中フラグをたてるとと
もに、クロックカウンタに受信クロックのカウント処理
を開始させ、 前記書込要求が発生したとき、前記読出中フラグの状態
と前記クロックカウンタの出力をそれぞれハードウェア
信号として検出し、当該読出中フラグの状態が「読出
中」で、かつ当該クロックカウンタの値が、前記読出要
求割込みを前記マイクロプログラムが受けた時点もしく
はその近くの時点に対応した特定値である場合には、前
記マイクロプログラムに対する前記書込要求割込みの起
動を所定時間だけ保留し、 前記マイクロプログラムでの、前記読出要求割込みと前
記書込要求割込みとを受けるタイミングが一致しないよ
うにしたことを特徴とするデ−タ転送方式。
1. Data having a function of serial-parallel converting each received data having the same number of bits transmitted serially via a transmission line, and converting parallel data for transmission into parallel-serial before sending to the transmission line. Transmission / reception provided with a conversion unit and a microprogram for executing processing according to each of the parallel data read request interrupt and the transmission parallel data write request interrupt from the data conversion unit In the data transfer method using the adapter, when the microprogram receives the read request interrupt and starts the read processing, the microprogram sets a reading flag and causes the clock counter to start the reception clock counting processing. When the write request is generated, the status of the reading flag and the output of the clock counter are respectively set in the hardware. The signal is detected as a signal, the state of the reading flag is “reading”, and the value of the clock counter is a specific value corresponding to a time point at which the microprogram receives the read request interrupt or a time point near the time point. In this case, the activation of the write request interrupt for the microprogram may be suspended for a predetermined time so that the timings of receiving the read request interrupt and the write request interrupt in the microprogram do not match. Characteristic data transfer method.
【請求項2】 前記保留のために、前記特定値の検出に
よって所定状態にセットされ、受信クロックに基づいた
カウント処理を行なっていくクロックタイマを用いるこ
とを特徴とする請求項1記載のデ−タ転送方式。
2. The clock timer according to claim 1, further comprising: a clock timer which is set to a predetermined state by detecting the specific value and performs a counting process based on a received clock for the holding. Data transfer method.
JP20578391A 1991-08-16 1991-08-16 Data transfer system Pending JPH0546515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20578391A JPH0546515A (en) 1991-08-16 1991-08-16 Data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20578391A JPH0546515A (en) 1991-08-16 1991-08-16 Data transfer system

Publications (1)

Publication Number Publication Date
JPH0546515A true JPH0546515A (en) 1993-02-26

Family

ID=16512604

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20578391A Pending JPH0546515A (en) 1991-08-16 1991-08-16 Data transfer system

Country Status (1)

Country Link
JP (1) JPH0546515A (en)

Similar Documents

Publication Publication Date Title
US20150220472A1 (en) Increasing throughput on multi-wire and multi-lane interfaces
JPS63296540A (en) Multiprotocol communication controller in single integrated circuit microcontroller
WO2017065923A1 (en) Methods to avoid i2c void message in i3c
JPH04334239A (en) Data format detection circuit
US20210173808A1 (en) Early parity error detection on an i3c bus
JPH0546515A (en) Data transfer system
US20220358079A1 (en) I2c bus architecture using shared clock and dedicated data lines
CN210405365U (en) Multi-protocol aggregation transmission device and system
CN106776402A (en) A kind of SCM Based serial communication controlling system and method
JP3496501B2 (en) Serial data transmission system
JP2578773B2 (en) Serial data transfer device
JP2634802B2 (en) Clock synchronous data transmission device
CN111832049B (en) SPI-based data transmission method and system
JP3361107B2 (en) How to download
EP4242860A1 (en) A device for decoding the data communication under universal serial bus standard
JPS63228856A (en) Communication controller
JPH0477940B2 (en)
CN115729863A (en) Data transmission method, device, electronic equipment and medium
JPS63228855A (en) Communication controller
JPS60195657A (en) Data processing system
JPH0263233A (en) Serial communication equipment
JPH10105488A (en) Communication controller
JP2001236303A (en) Universal serial bus control circuit
JP2528947B2 (en) Communication control device
JP3266034B2 (en) Communication control device