[go: up one dir, main page]

JPH08288958A - Bus access controller - Google Patents

Bus access controller

Info

Publication number
JPH08288958A
JPH08288958A JP7092086A JP9208695A JPH08288958A JP H08288958 A JPH08288958 A JP H08288958A JP 7092086 A JP7092086 A JP 7092086A JP 9208695 A JP9208695 A JP 9208695A JP H08288958 A JPH08288958 A JP H08288958A
Authority
JP
Japan
Prior art keywords
signal
transmission
driver
communication
significant
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.)
Granted
Application number
JP7092086A
Other languages
Japanese (ja)
Other versions
JP3432328B2 (en
Inventor
Susumu Yamada
享 山田
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP09208695A priority Critical patent/JP3432328B2/en
Publication of JPH08288958A publication Critical patent/JPH08288958A/en
Application granted granted Critical
Publication of JP3432328B2 publication Critical patent/JP3432328B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE: To inhibit transmission to a network bus on the occurrence of generation of a carrier signal during transmission preparation by generating a transmission enable signal replying with a transmission request, a driver control signal and an unsuccessful notice signal on the occurrence of unsuccessful transmission. CONSTITUTION: A CPU hardware 25 gives a transmission command to a communication LSI 26 and a driver control section 30 monitors detection of a carrier during a window period set by a CPU 25 for a preparation period before the LSI 26 makes a transmission request signal significant. Thus, the CPU 25 is quickly coped with for the transmission unsuccess on the occurrence of the carrier. Furthermore, a driver 27 is closed by the monitor and even when the carrier is caused for the transmission preparation period of the LSI 26, the transmission to a LAN bus S is stopped even on the occurrence of the carrier during the transmission preparation period of the LSI 26. Furthermore, in the case of unsuccessful transmission, a time by a preset flag is not reserved and the communication enable signal is significantly changed, then the time required for the processing of the LSI 26 is shorten.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はバスアクセス制御装置に
関し、例えば、ローカルエリアネットワーク(LAN)
のバスを制御対象とするバスアクセス制御装置に適用し
得るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bus access control device, for example, a local area network (LAN).
The present invention can be applied to a bus access control device that controls the above bus.

【0002】[0002]

【従来の技術】LANにおいて、複数ノードに対してそ
の送信をどう保証するかという点が、技術的に重要な点
の一つである。例えば、複数ノードを共通バスに接続し
ているいわゆるバス型ネットワークにおいて、複数ノー
ドが同時にバスにデータを送信すると、データは互いに
干渉し、破壊され、送信先ノードが正常に受信すること
ができない。そこで、これら複数ノードに対して同時に
送信することがないように制御や調停を行なう機構が各
種研究、開発されて実施されている。
2. Description of the Related Art In a LAN, how to guarantee the transmission to a plurality of nodes is one of the technically important points. For example, in a so-called bus type network in which a plurality of nodes are connected to a common bus, when a plurality of nodes simultaneously transmit data to the bus, the data interfere with each other and are destroyed, so that the destination node cannot normally receive. Therefore, various mechanisms for controlling and arbitrating so as to prevent simultaneous transmission to these multiple nodes have been studied, developed, and implemented.

【0003】文献『JIS(日本工業規格)X525
2、「ローカルエリアネットワーク−CSMA/CDア
クセス方式及び物理層仕様」、p.642、pp.65
4〜664』 その一つとして、上記文献に記載されているようなCS
MA(Carrier SenseMultiple Access )制御がある。
これは、あるノードがデータを送信しようとする際、受
信回路を用いて、データを運ぶキャリアがバス上に既に
存在するか否かを検出し、キャリアが検出されない場合
のみ送信を行なうものである。キャリアが検出されれば
送信は見送られ、決められた処理(これは、通常「プロ
トコル処理」と呼ばれている)により、再び送信が試み
られる。この再送信試行は、送信ができるまで繰り返さ
れ、繰返し回数が予め定められている許容回数になって
も送信できなければ、送信動作が中止される。
Document "JIS (Japanese Industrial Standard) X525
2, "Local Area Network-CSMA / CD Access Method and Physical Layer Specification", p. 642, pp. 65
4 to 664] As one of them, CS as described in the above-mentioned document
There is MA (Carrier Sense Multiple Access) control.
This is because when a node tries to transmit data, a receiving circuit is used to detect whether or not a carrier carrying the data already exists on the bus, and the transmission is performed only when the carrier is not detected. . If the carrier is detected, the transmission is abandoned and the transmission is retried by a determined process (this is usually called "protocol processing"). This retransmission attempt is repeated until transmission is possible, and if the transmission is not possible even when the number of repetitions reaches a predetermined allowable number, the transmission operation is stopped.

【0004】このCSMA制御方式は、イーサネットと
呼ばれている方式にも規定されて用いられている。
This CSMA control method is also defined and used in a method called Ethernet.

【0005】一般に、このようなCSMA制御機構はメ
ーカーによりLSI化されている。また、既知の技術で
あるマイクロCPUとROMプログラムのファームウエ
アとランダムロジックとで組むことができる。これらの
詳細はあまり公開されていないが、後者のCSMA制御
機構を適用したバスアクセス制御装置の例として、例え
ば、図2に示すように構成することができる。
Generally, such a CSMA control mechanism is implemented as an LSI by a manufacturer. Further, it is possible to combine a known technology such as a micro CPU, firmware of a ROM program, and random logic. Although details of these are not disclosed to the public, an example of a bus access control device to which the latter CSMA control mechanism is applied can be configured as shown in FIG. 2, for example.

【0006】図2において、複数のノード(通信端末)
に接続されている共通のLANバスSに対し、当該ノー
ドのドライバ27、レシーバ28及びキャリア検出部2
9が接続されている。CPUハードウェア25は、CP
UバスTを介して通信用LSI26に接続されており、
また、CPUハードウェア25は、ドライバ27及びレ
シーバ28に対してドライバ制御信号uを与えるように
なされており、さらに、CPUハードウェア25は、キ
ャリア検出部29からキャリア検出信号Vを取込むこと
ができるようになされている。
In FIG. 2, a plurality of nodes (communication terminals)
To the common LAN bus S connected to the node, the driver 27, the receiver 28, and the carrier detection unit 2 of the node.
9 is connected. CPU hardware 25 is CP
Connected to the communication LSI 26 via the U-bus T,
Further, the CPU hardware 25 is adapted to give a driver control signal u to the driver 27 and the receiver 28, and further, the CPU hardware 25 can take in the carrier detection signal V from the carrier detection unit 29. It is made possible.

【0007】送信及び受信時の待機時においては、ドラ
イバ制御信号uによって、レシーバ28だけがONにな
っており、他ノードが送信した信号はこのレシーバ28
を介して通信用LSI26に入力され、この通信用LS
I26が自ノード宛のものか否かを判定し、自ノード宛
のものであれば復調、パケット組立等の受信処理を行な
って受信データをCPUバスTを介してCPUハードウ
ェア25に与える。
At the time of standby during transmission and reception, only the receiver 28 is turned on by the driver control signal u, and the signal transmitted by another node is received by this receiver 28.
Is input to the communication LSI 26 via the
It is determined whether or not I26 is addressed to the own node, and if it is addressed to the own node, reception processing such as demodulation and packet assembly is performed, and the received data is given to the CPU hardware 25 via the CPU bus T.

【0008】CPUハードウエア25上のプログラムの
うちに、送信試行の処理がサブルーチン化されている。
送信しようとする場合には、CPUハードウェア25
は、送信試行サブルーチンに進みポート入力されたキャ
リア検出信号Vを読取り、その内容を判定する。
In the program on the CPU hardware 25, the transmission trial process is made into a subroutine.
If you are trying to send, the CPU hardware 25
Advances to a transmission trial subroutine to read the carrier detection signal V input to the port and determine the content thereof.

【0009】キャリア信号がLANバスSに存在しなけ
れば、送信コマンド及びデータを通信用LSI26に与
え、かつ、ドライバ制御信号uを送信状態にしてドライ
バ27をONにすると共に、プログラム上で送信成功フ
ラグを立てる。これに対して、キャリアがLANバスS
に存在すれば、CPUハードウエア25は、受信可能状
態を維持し、送信成功フラグの操作を実行しない。
If the carrier signal does not exist on the LAN bus S, the transmission command and data are given to the communication LSI 26, the driver control signal u is set to the transmission state, the driver 27 is turned on, and the transmission is successful on the program. Set a flag On the other hand, if the carrier is the LAN bus S
, The CPU hardware 25 maintains the receivable state and does not execute the operation of the transmission success flag.

【0010】CPUハードウエア25は、サブルーチン
から復帰すると、送信成功フラグの状態により異なる処
理を行なう。すなわち、送信成功フラグが立っていれ
ば、送信完了として次の処理に移り、一方、送信成功フ
ラグが立っていなければ、送信失敗として時間待ちを行
なった後、再試行する。
After returning from the subroutine, the CPU hardware 25 performs different processing depending on the state of the transmission success flag. That is, if the transmission success flag is set, it is determined that the transmission is completed and the next process is performed. On the other hand, if the transmission success flag is not set, it is determined that the transmission is unsuccessful, and after waiting for a time, the process is retried.

【0011】このようにして、キャリアがある場合に
は、送信を保留し、複数の送信信号がLANバスS上で
衝突してしまうことを回避している。
In this way, when there is a carrier, transmission is suspended and a plurality of transmission signals are prevented from colliding on the LAN bus S.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、図2に
例示したような従来のCSMA制御方法によれば、以下
のような課題がある。
However, the conventional CSMA control method as illustrated in FIG. 2 has the following problems.

【0013】(1) キャリア検出部29からキャリア
検出信号Vを読み取ってから、実際にドライバ27を送
信状態にするまでの間に、プログラムの処理が介在して
いる。このプログラム処理には、CPUバスTの転送速
度から考えると、大きな時間がかかる。そのため、キャ
リアなしと判定しても、ドライバ27を介してLANバ
スSに送信信号が出力され始めるまでの間に、他ノード
からのキャリアがLANバスSに送信され始めており、
衝突が起きる危険が高い。
(1) The processing of the program intervenes between the time when the carrier detection signal V is read from the carrier detection unit 29 and the time when the driver 27 is actually put into the transmission state. Considering the transfer speed of the CPU bus T, this program processing takes a long time. Therefore, even if it is determined that there is no carrier, carriers from other nodes are starting to be transmitted to the LAN bus S before the transmission signal is output to the LAN bus S via the driver 27.
There is a high risk of collision.

【0014】これは、LANでは致命的な課題である。
特に、データ転送速度が高速になるほど破壊されるデー
タ量が多くなって問題は大きい。
This is a fatal problem in LAN.
In particular, the higher the data transfer rate, the greater the amount of data destroyed, which is a serious problem.

【0015】(2) 上述のように、LANバスS上の
キャリア信号を検出して送信不能が確定した場合、でき
るだけ速かに再送信への準備に移れることが望ましい
が、送信試行サブルーチンからメインルーチンに戻り、
送信成功フラグの状態を確認後に、送信試行ルーチンを
再起動して再試行を行なうので、再送信の準備にかなり
の時間がかかっている。
(2) As described above, when the carrier signal on the LAN bus S is detected and it is determined that transmission is impossible, it is desirable to be ready for retransmission as soon as possible. Return to the routine,
After confirming the state of the transmission success flag, the transmission attempt routine is restarted and retry is performed, so that preparation for retransmission takes a considerable time.

【0016】このような課題は、LANバスを対象とし
たバスアクセス制御装置だけでなく、他のネットワーク
上のバスを対象とする装置にも同様に生じており、ま
た、ネットワークの形式がバス型だけなく、複数のノー
ドが同一バスを共用する部分を有するリング型や格子型
(や場合によってはメッシュ型)のネットワークにおけ
る装置にも同様に生じている。
Such a problem occurs not only in a bus access control device for a LAN bus but also in a device for a bus on another network, and the network type is a bus type. Not only does this occur in devices in ring-type or lattice-type (or mesh-type in some cases) networks in which a plurality of nodes share the same bus.

【0017】[0017]

【課題を解決するための手段】かかる課題を解決するた
め、本発明においては、複数の通信ノードに共通なネッ
トワークバス上にキャリア信号がないことを条件とし
て、自ノードからの送信信号をネットワークバスに乗せ
るバスアクセス制御装置を、以下の各手段を備えるよう
に構成したことを特徴とする。
In order to solve such a problem, in the present invention, a transmission signal from its own node is transmitted to a network bus on condition that there is no carrier signal on the network bus common to a plurality of communication nodes. The bus access control device mounted on the vehicle is configured so as to include the following means.

【0018】すなわち、(A) 自ノードの通信処理を制御
する通信制御手段と、(B) この通信制御手段からの信号
をネットワークバス上に乗せる送信信号に変換して出力
する通信手段と、(C) この通信手段からの出力送信信号
のネットワークバスへの通過、非通過をドライバ制御信
号に応じて制御するドライバ手段と、(D) ネットワーク
バス上にキャリア信号があることを検出するキャリア検
出手段と、(E) 通信制御手段又は通信手段によって開始
起動された時点から、通信手段からの送信要求信号の有
意変化までをウィンドウ期間とし、このウィンドウ期間
に有意なキャリア検出信号が与えられた場合に送信不成
功と判定すると共に、これ以外で送信成功と判定し、そ
の判定結果に応じて、送信要求信号に対して返信する送
信許可信号と、ドライバ手段に与えるドライバ制御信号
と、送信不成功時に通信制御手段にそのことを通知する
不成功通知信号とを形成するドライバ制御手段とを備え
ることを特徴とする。
That is, (A) a communication control means for controlling the communication processing of the own node, and (B) a communication means for converting a signal from this communication control means into a transmission signal to be put on a network bus and outputting it. C) Driver means for controlling passage / non-passage of the output transmission signal from this communication means to the network bus according to the driver control signal, and (D) carrier detection means for detecting that there is a carrier signal on the network bus. And (E) a window period from the time when it is started by the communication control means or the communication means to the significant change of the transmission request signal from the communication means, and when a significant carrier detection signal is given in this window period. In addition to determining that the transmission was unsuccessful, determining that the transmission was successful in other cases, and depending on the determination result, a transmission permission signal that responds to the transmission request signal A driver control signal applied to the stage, characterized in that it comprises a driver control means for forming a failure notification signal for notifying that fact to the communication control unit when transmitting unsuccessful.

【0019】[0019]

【作用】本発明のバスアクセス制御装置において、ドラ
イバ制御手段は、通信制御手段又は通信手段によって開
始起動された時点から、通信手段からの送信要求信号の
有意変化までをウィンドウ期間とし、このウィンドウ期
間に有意なキャリア検出信号が与えられたか否かを監視
している。
In the bus access control device of the present invention, the driver control means sets a window period from a time point when it is started by the communication control means or the communication means to a significant change of the transmission request signal from the communication means. It is monitored whether or not a significant carrier detection signal is given to the.

【0020】このウィンドウ期間中に有意なキャリア検
出信号が与えられなければ、ドライバ制御手段は、送信
成功と判定し、送信要求信号に対して成功時のタイミン
グで有意又は非有意に変化する送信許可信号を通信手段
に与え、ドライバ手段には通過を指示するドライバ制御
信号を与える。
If a significant carrier detection signal is not given during this window period, the driver control means determines that the transmission is successful, and the transmission permission that changes significantly or insignificantly at the timing of success with respect to the transmission request signal. A signal is given to the communication means, and a driver control signal for instructing passage is given to the driver means.

【0021】一方、ウィンドウ期間中に有意なキャリア
検出信号が与えられれば、ドライバ制御手段は、送信不
成功と判定し、送信要求信号に対して不成功時のタイミ
ングで有意又は非有意に変化する送信許可信号を通信手
段に与え、ドライバ手段には非通過を指示するドライバ
制御信号を与え、通信制御手段に送信不成功を通知する
不成功通知信号を与える。
On the other hand, if a significant carrier detection signal is given during the window period, the driver control means determines that the transmission is unsuccessful, and changes significantly or insignificantly at the timing when the transmission request signal is unsuccessful. A transmission permission signal is given to the communication means, a driver control signal for instructing non-passing is given to the driver means, and an unsuccessful notification signal for notifying the transmission failure is given to the communication control means.

【0022】[0022]

【実施例】以下、本発明によるバスアクセス制御装置の
一実施例を図面を参照しながら詳述する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a bus access control device according to the present invention will be described in detail below with reference to the drawings.

【0023】(A)実施例の全体構成 ここで、図3がこの実施例の全体構成を示すものであ
り、上述した図2との同一、対応部分には同一符号を付
して示している。
(A) Overall configuration of the embodiment Here, FIG. 3 shows the overall configuration of this embodiment, in which parts that are the same as or correspond to those in FIG. .

【0024】この実施例のバスアクセス制御装置におい
ては、考えられる図2に示した従来構成に加えて、図1
に詳細構成を示すドライバ制御部30を備えている。
In addition to the possible conventional configuration shown in FIG. 2, the bus access control device of this embodiment has the configuration shown in FIG.
The driver control unit 30 showing the detailed configuration is provided.

【0025】新たに追加されたドライバ制御部30は、
CPUハードウェア25とはCPUバスTを介して接続
されているものである。また、ドライバ制御部30は、
通信用LSI26とは、後述する送信要求信号及び送信
許可信号をハンドシェイク信号Wとして授受する。さら
に、ドライバ制御部30は、キャリア検出部29からの
キャリア検出信号Vを取込むものである。さらにまた、
ドライバ制御部30は、ドライバ制御信号uをドライバ
27及びレシーバ28に出力するものであり、また、C
PU割込信号XをCPUハードウェア25に出力するも
のである。
The newly added driver control unit 30 is
The CPU hardware 25 is connected via the CPU bus T. Further, the driver control unit 30
A transmission request signal and a transmission permission signal, which will be described later, are exchanged as a handshake signal W with the communication LSI 26. Further, the driver control unit 30 takes in the carrier detection signal V from the carrier detection unit 29. Furthermore,
The driver control unit 30 outputs a driver control signal u to the driver 27 and the receiver 28, and C
The PU interrupt signal X is output to the CPU hardware 25.

【0026】なお、この実施例の通信用LSI26は、
パケットの組立/分解を行なうことが主な機能であり、
そのハンドシェイク信号Wは、上述したようにパケット
の送出要求信号及び送出許可信号でなる。また、通信用
LSI26は、実際には、LANバスSにはキャリアに
より重畳された符号が存在するため、そのためのコーダ
やデコーダも内蔵している。さらに、通信用LSI26
は、例えばDMACを備え、CPUハードウェア25か
ら送信に供するデータを取込むようになされている。
The communication LSI 26 of this embodiment is
Its main function is to assemble / disassemble packets,
The handshake signal W includes the packet transmission request signal and the packet transmission permission signal as described above. In addition, since the communication LSI 26 actually has a code superimposed on the LAN bus S by a carrier, a coder and a decoder therefor are also incorporated. Further, the communication LSI 26
Is equipped with, for example, a DMAC, and takes in data to be transmitted from the CPU hardware 25.

【0027】この実施例で新たに設けられたドライバ制
御部30は、図1に示す詳細構成を有する。すなわち、
不成功判定/ドライバON決定回路1、ウィンドウ部
2、エッジ検出/タイミング生成部3、前置フラグカウ
ンタ4、後置フラグカウンタ5、アンドゲート6、I/
Oポート7、不成功保持部8及びエッジ検出部9から構
成されている。なお、ドライバ制御部30は、当該制御
部30の各部が利用するクロック信号Q及びQ*(この
明細書において、「*」は基本信号の反転信号又はアク
ティブロウの信号を表す)やリセット信号R*の発生回
路、又は、これら信号をCPUハードウェア25から受
信して当該制御部30の各部に配信する回路を備えてい
る。ここで、クロック信号Q及びQ*は、各ブロックの
基準クロックであり、例えば、LANバスSへの転送ビ
ットレートと同じ周波数に選定される。また、リセット
信号R*は、システムリセット入力であり、パワーオン
時等にアクティブとなる。
The driver control unit 30 newly provided in this embodiment has the detailed configuration shown in FIG. That is,
Failure determination / driver ON determination circuit 1, window unit 2, edge detection / timing generation unit 3, preposition flag counter 4, postposition flag counter 5, AND gate 6, I /
It is composed of an O port 7, an unsuccessful holding unit 8 and an edge detection unit 9. The driver control unit 30 uses the clock signals Q and Q * (in this specification, “*” represents an inverted signal of a basic signal or an active low signal) and a reset signal R used by each unit of the control unit 30. It is provided with a * generation circuit or a circuit for receiving these signals from the CPU hardware 25 and delivering them to each unit of the control unit 30. Here, the clock signals Q and Q * are reference clocks for each block, and are selected to have the same frequency as the transfer bit rate to the LAN bus S, for example. Further, the reset signal R * is a system reset input and becomes active at the time of power-on or the like.

【0028】(B)ドライバ制御部30の各部構成及び
その動作 (B−1)エッジ検出/タイミング生成部3 エッジ検出/タイミング生成部3は、その内部構成が簡
単なため図示は省略するが、クロック信号Q及び通信用
LSI26からの送信要求信号A*を入力とし、図4に
示すように、開始検出信号B、遅延出力信号D及び終了
検出信号Cを生成するものである。
(B) Configuration of each part of the driver control section 30 and its operation (B-1) Edge detection / timing generation section 3 The edge detection / timing generation section 3 has a simple internal configuration, but the illustration is omitted. The clock signal Q and the transmission request signal A * from the communication LSI 26 are input, and as shown in FIG. 4, a start detection signal B, a delayed output signal D and an end detection signal C are generated.

【0029】すなわち、送信要求信号A*の有意レベル
への変化エッジ(前縁)をクロック信号Qの立下りエッ
ジで捕らえて、1クロック周期だけ有意な開始検出信号
Bを生成し、また、その開始検出信号Bを1クロック周
期だけ遅延させて遅延出力信号Dを生成する。さらに、
送信要求信号A*の非有意レベルへの変化エッジ(後
縁)をクロック信号Qの立下りエッジで捕らえて、1ク
ロック周期だけ有意な終了検出信号Cを生成する。
That is, the change edge (leading edge) of the transmission request signal A * to the significant level is caught by the falling edge of the clock signal Q to generate the start detection signal B which is significant only for one clock cycle. The start detection signal B is delayed by one clock period to generate the delayed output signal D. further,
The change edge (trailing edge) of the transmission request signal A * to the insignificant level is caught by the falling edge of the clock signal Q, and the significant end detection signal C is generated for one clock cycle.

【0030】開始検出信号Bは、不成功判定/ドライバ
ON決定部1及びウィンドウ部2に与えられ、終了検出
信号Cは、不成功判定/ドライバON決定部1に与えら
れ、遅延出力信号Dは、不成功判定/ドライバON決定
部1及びアンドゲート6に与えられる。
The start detection signal B is given to the unsuccessful determination / driver ON determination section 1 and the window section 2, the end detection signal C is given to the unsuccessful determination / driver ON determination section 1, and the delayed output signal D is given. , And is given to the failure determination / driver ON determination unit 1 and the AND gate 6.

【0031】(B−2)後置フラグカウンタ5 後置フラグカウンタ5は、詳細構成の図示は省略する
が、カウンタ、フリップフロップ、ゲートを組合せて構
成されるものであり、クロック信号Q及び通信用LSI
26からの送信要求信号A*を入力とし、図5に示すよ
うに、内部でカウント動作してドライバOFF信号J*
を生成するものである。
(B-2) Post-position flag counter 5 The post-position flag counter 5 is composed of a counter, a flip-flop, and a gate in combination, although the detailed structure is omitted in the figure. LSI
As shown in FIG. 5, the transmission request signal A * from the controller 26 is input and the driver OFF signal J * is operated by counting internally.
Is generated.

【0032】この実施例の場合、送信データ(パケット
データ)の前にフラグパタン(開始シーケンス;プレア
ンブル信号)を付与し、送信データの後にもフラグパタ
ン(終了シーケンス)を付与して、LANバスSに出力
するネットワークを前提としており、後置フラグカウン
タ5は、送信データの後に付与するフラグパタンの所定
時間を確保するために設けられている。
In the case of this embodiment, a flag pattern (start sequence; preamble signal) is added before the transmission data (packet data), and a flag pattern (end sequence) is also added after the transmission data and output to the LAN bus S. The post-flag counter 5 is provided to secure a predetermined time for the flag pattern to be added after the transmission data.

【0033】なお、後置フラグ時間は、従来では、例え
ばCPUハードウェア25においてそのファームウェア
により計時していた。この実施例の場合、不成功判定/
ドライバON決定部1にドライバOFF信号J*を与え
るべく、ドライバ制御部30内に設けられている。
The post-flag time is conventionally measured by the firmware of the CPU hardware 25, for example. In the case of this embodiment, the failure determination /
It is provided in the driver control unit 30 to give the driver OFF signal J * to the driver ON determination unit 1.

【0034】後置フラグカウンタ5は、送信要求信号A
*が非有意から有意に変化すると、内部カウント値をリ
セット値「0」からロード値「255−tps」に変化さ
せ、送信要求信号A*が有意の期間はそのロード値「2
55−tps」を維持させ、送信要求信号A*が非有意に
変化したとき(後述するように送信データの出力が終了
したことを意味する)から、クロック信号Qに基いて、
そのロード値「255−tps」からカウントアップさ
せ、カウント値がキャリー条件である「255」になる
と、クロック信号Qの立下りエッジから次の立下りエッ
ジまでの1クロック周期だけドライバOFF信号J*を
有意にすると共に、カウント値をリセットする。
The post-position flag counter 5 has a transmission request signal A
When * changes from insignificant to significant, the internal count value is changed from the reset value "0" to the load value "255-tps", and the load value "2" is maintained during the period when the transmission request signal A * is significant.
55-tps ”and the transmission request signal A * changes insignificantly (meaning that the output of the transmission data has ended as described later), based on the clock signal Q,
When the count value is counted up from the load value "255-tps" and the count value reaches "255" which is a carry condition, the driver OFF signal J * is generated for one clock cycle from the falling edge of the clock signal Q to the next falling edge. And make the count value reset.

【0035】なお、後述するように、ドライバOFF信
号J*の有意変化により、ドライバ制御信号Gが非有意
に変化する。この後置フラグカウンタ5及び後述する不
成功判定/ドライバON決定部1の機能により、送信要
求信号A*が非有意に変化しても、直ちに、ドライバ制
御信号Gを非有意に変化させるのではなく、送信要求信
号A*の非有意変化時点から、(tps+0.5)クロッ
ク分の期間だけ経過した時点で、ドライバ制御信号Gを
非有意に変化させて、後置フラグパタンの出力を補償し
ている。なお、値tpsは、必要な後置フラグ長から決定
されるものである。
As will be described later, a significant change in the driver OFF signal J * causes the driver control signal G to change insignificantly. Even if the transmission request signal A * changes insignificantly, the driver control signal G may change insignificantly immediately due to the functions of the post-position flag counter 5 and the failure determination / driver ON determination unit 1 described later. However, the driver control signal G is changed non-significantly at the time when a period of (tps + 0.5) clocks elapses from the time of non-significant change of the transmission request signal A * to compensate the output of the post-flag pattern. There is. The value tps is determined from the required post-flag length.

【0036】(B−3)I/Oポート7 I/Oポート7は、CPUバスTを介したCPUハード
ウェア25との信号授受に介在するものである。CPU
ハードウェア25からは、CPUバスTを介して、2ビ
ットのウィンドウ開始信号Mと、不成功保持解除信号N
とが与えられ、I/Oポート7は、ウィンドウ開始信号
Mをウィンドウ部2に与え、不成功保持解除信号Nを不
成功保持部8に与える。不成功保持部8からの不成功保
持信号Oは、I/Oポート7からCPUバスTを介して
CPUハードウェア25に与えられる。
(B-3) I / O Port 7 The I / O port 7 intervenes in signal transmission / reception with the CPU hardware 25 via the CPU bus T. CPU
From the hardware 25, via the CPU bus T, a 2-bit window start signal M and an unsuccessful hold release signal N
And the I / O port 7 supplies the window start signal M to the window unit 2 and the unsuccessful holding release signal N to the unsuccessful holding unit 8. The unsuccessful holding signal O from the unsuccessful holding unit 8 is given to the CPU hardware 25 from the I / O port 7 through the CPU bus T.

【0037】(B−4)ウィンドウ部2 ウィンドウ部2は、例えば、図6に示す詳細構成でな
る。すなわち、JKフリップフロップ20、2個のDフ
リップフロップ21及び22、アンドゲート23及びイ
ンバータゲート24から構成されている。
(B-4) Window Unit 2 The window unit 2 has, for example, the detailed configuration shown in FIG. That is, it is composed of a JK flip-flop 20, two D flip-flops 21 and 22, an AND gate 23, and an inverter gate 24.

【0038】JKフリップフロップ20のJ入力端子及
びクロック入力端子には、ウィンドウ開始信号Mが入力
され、K入力端子には常時“L”が入力されている。ま
た、JKフリップフロップ20のアクティブロウのリセ
ット入力端子RNには、エッジ検出/タイミング生成部
3からの開始検出信号Bをインバータゲート24が反転
した信号B*と、リセット信号R*とのアンド出力が入
力される。
The window start signal M is input to the J input terminal and the clock input terminal of the JK flip-flop 20, and "L" is always input to the K input terminal. The reset input terminal RN of the active row of the JK flip-flop 20 outputs the AND signal of the signal B * obtained by inverting the start detection signal B from the edge detection / timing generator 3 by the inverter gate 24 and the reset signal R *. Is entered.

【0039】このJKフリップフロップ20からの非反
転出力端子Qからの信号は、Dフリップフロップ21の
D入力端子に入力され、このDフリップフロップ21か
らの非反転出力端子Qからの信号は、次のDフリップフ
ロップ22のD入力端子に入力され、Dフリップフロッ
プ22からの非反転出力端子Qからの信号は、ウィンド
ウ出力信号Fとして、不成功判定/ドライバON決定部
1に与えられる。なお、これらDフリップフロップ21
及び22のクロック入力端子にはそれぞれクロック信号
Q、クロック信号Q*が入力され、アクティブロウのリ
セット入力端子RNにはリセット信号が入力されるよう
になされている。すなわち、これらDフリップフロップ
21及び22は、遅延機能を有するラッチ回路としての
み機能するようになされている。
The signal from the non-inverting output terminal Q from the JK flip-flop 20 is input to the D input terminal of the D flip-flop 21, and the signal from the non-inverting output terminal Q from the D flip-flop 21 is The signal from the non-inverting output terminal Q of the D flip-flop 22 is input to the D input terminal of the D flip-flop 22 of FIG. In addition, these D flip-flops 21
A clock signal Q and a clock signal Q * are input to the clock input terminals 22 and 22, respectively, and a reset signal is input to the reset input terminal RN of the active row. That is, these D flip-flops 21 and 22 function only as a latch circuit having a delay function.

【0040】従って、このウィンドウ部2だけの動作を
説明すると、システム全体に対するリセット信号R*が
有意(“L”)に変化すると、3個のフリップフロップ
20〜22が全てリセットされる。この状態でウィンド
ウ開始信号Mが与えられると、JKフリップフロップ2
0のQ出力信号が“H”に立上り、その時点からDフリ
ップフロップ21及び22による遅延時間(0.5クロ
ック周期〜1.5クロック周期)だけ遅れてウィンドウ
出力信号Fが有意(“H”)に変化する。送信要求信号
A*が有意(“L”)に変化して、開始検出信号Bも有
意(“H”)に変化すると、JKフリップフロップ20
がリセットされてそのQ出力信号が“L”に戻り、その
時点からDフリップフロップ21及び22による遅延時
間(1クロック周期)だけ遅れてウィンドウ出力信号F
も非有意(“L”)に変化する(後述する図8及び図9
参照)。ここで、開始検出信号Bは、クロック信号Qに
同期しており、しかも、1クロック周期のパルス幅を有
するものであるので、開始検出信号Bの非有意への立下
り時点と、ウィンドウ出力信号Fの非有意への立下り時
点とは一致し、言い換えると、ウィンドウ出力信号Fの
有意期間の内の最後の1クロック周期期間は、開始検出
信号Bの有意期間と一致する(後述する図8及び図9参
照)。
Therefore, the operation of only the window section 2 will be described. When the reset signal R * for the entire system changes to a significant level ("L"), all three flip-flops 20-22 are reset. When the window start signal M is given in this state, the JK flip-flop 2
The Q output signal of 0 rises to "H", and after that, the window output signal F becomes significant ("H") after a delay time (0.5 clock period to 1.5 clock period) by the D flip-flops 21 and 22. ). When the transmission request signal A * changes to significant (“L”) and the start detection signal B also changes to significant (“H”), the JK flip-flop 20.
Is reset and its Q output signal returns to "L", and the window output signal F is delayed by the delay time (one clock cycle) by the D flip-flops 21 and 22 from that point.
Also changes to non-significant (“L”) (see FIGS. 8 and 9 described later).
reference). Since the start detection signal B is synchronized with the clock signal Q and has a pulse width of one clock cycle, the start detection signal B falls to the insignificant point and the window output signal. This coincides with the falling time point of F to insignificance, in other words, the last one clock cycle period of the significant period of the window output signal F coincides with the significant period of the start detection signal B (see FIG. 8 described later). And FIG. 9).

【0041】なお、CPUハードウェア25の後述する
動作によって、ウィンドウ開始信号Wの到来が、開始検
出信号Bの有意レベルへの変化より前であるようになさ
れている。また、ウィンドウ開始信号Mが与えられない
限り、ウィンドウ出力信号Fが有意レベルをとることは
ない(後述する図9参照)。
The operation of the CPU hardware 25 described later ensures that the window start signal W comes before the start detection signal B changes to a significant level. Moreover, unless the window start signal M is given, the window output signal F does not take a significant level (see FIG. 9 described later).

【0042】ウィンドウ部2についての動作は、不成功
判定/ドライバON決定部1及びアンドゲート6の動作
説明において、併せて行なうが、簡単に述べると、キャ
リア検出信号E(図3ではV)に基いた送信成功/不成
功の判定を行なう時間(ウィンドウ期間)を規定するも
のである。
The operation of the window unit 2 will be performed together with the operation of the unsuccessful judgment / driver ON determination unit 1 and the AND gate 6, but briefly, it will be described as the carrier detection signal E (V in FIG. 3). It defines the time (window period) for making a successful transmission / unsuccessful determination based on the transmission.

【0043】(B−5)不成功判定/ドライバON決定
部1及びアンドゲート6 不成功判定/ドライバON決定部1は、例えば、図7に
示す詳細構成でなる。すなわち、2個のJKフリップフ
ロップ10及び12、2個のDフリップフロップ11及
び13と、3個のアンドゲート14、17及び19と、
2個のインバータゲート15及び18と、論理回路16
とから構成されている。
(B-5) Failure determination / driver ON determination section 1 and AND gate 6 The failure determination / driver ON determination section 1 has, for example, a detailed configuration shown in FIG. That is, two JK flip-flops 10 and 12, two D flip-flops 11 and 13, and three AND gates 14, 17 and 19,
Two inverter gates 15 and 18 and a logic circuit 16
It consists of and.

【0044】4個のフリップフロップ10〜13のアク
ティブロウのリセット入力端子RNには、リセット信号
R*が入力されるようになされており、これらフリップ
フロップ10〜13は初期状態においてはリセットされ
ている。なお、JKフリップフロップ12のリセット入
力端子RNには、アンドゲート19を介して、リセット
信号R*だけでなく、後置フラグカウンタ5からのドラ
イバOFF信号J*も入力されるようになされており、
ドライバOFF信号J*が有意(“L”)のときにもリ
セットされるようになされている。また、2個のJKフ
リップフロップ10及び12のクロック入力端子には、
クロック信号Qが立上りエッジでトリガするように入力
されており、2個のDフリップフロップ11及び13の
クロック入力端子には、クロック信号Qが立下りエッジ
でトリガするように入力されている。
The reset signal R * is input to the reset input terminals RN of the active flips of the four flip-flops 10 to 13. The flip-flops 10 to 13 are reset in the initial state. There is. The reset input terminal RN of the JK flip-flop 12 receives not only the reset signal R * but also the driver OFF signal J * from the post flag counter 5 via the AND gate 19. ,
Even when the driver OFF signal J * is significant (“L”), it is reset. Further, the clock input terminals of the two JK flip-flops 10 and 12 are
The clock signal Q is input so as to trigger at the rising edge, and the clock signal Q is input to the clock input terminals of the two D flip-flops 11 and 13 so as to trigger at the falling edge.

【0045】不成功判定/ドライバON決定部1は、大
きくは、送信不成功信号Iの生成部と、ドライバ制御信
号G及び前置フラグカウンタ制御信号Hの生成部とに2
分できる。
The unsuccessful determination / driver ON determination section 1 is mainly divided into a transmission failure signal I generation section and a driver control signal G and front flag counter control signal H generation section.
I can share.

【0046】不成功判定/ドライバON決定部1におけ
る送信不成功信号Iの生成部構成要素としては、インバ
ータゲート15、アンドゲート14、論理回路16、J
Kフリップフロップ10及びDフリップフロップ11が
該当する。
Inverter gate 15, AND gate 14, logic circuit 16 and J are components of the transmission failure signal I generator in the failure determination / driver ON determination unit 1.
The K flip-flop 10 and the D flip-flop 11 correspond.

【0047】なお、論理回路16は、2個の2入力アン
ドゲート16a及び16bと、それらアンドゲートの出
力のオア出力を得るオアゲート16cとからなる、いわ
ゆるAND−OR形の論理回路である。
The logic circuit 16 is a so-called AND-OR type logic circuit consisting of two two-input AND gates 16a and 16b and an OR gate 16c for obtaining an OR output of the AND gates.

【0048】アンドゲート14には、ウィンドウ部2か
らのウィンドウ出力信号Fと、エッジ検出/タイミング
生成部3からの開始検出信号Bをインバータゲート15
が反転した信号B*とが入力される。上述したように、
ウィンドウ出力信号Fの有意期間の内の最後の1クロッ
ク周期期間は、開始検出信号Bの有意期間と一致するの
で、アンドゲート14からは、ウィンドウ出力信号Fの
有意期間より、その最後の1クロック周期期間だけ短い
有意期間をとる修正されたウィンドウ出力信号が出力さ
れ、この修正ウィンドウ出力信号が論理回路16の一方
のアンドゲート16aに入力される。このアンドゲート
16aには、キャリア検出部29からのキャリア検出信
号Eも与えられる。
The AND gate 14 receives the window output signal F from the window section 2 and the start detection signal B from the edge detection / timing generation section 3 in the inverter gate 15.
And a signal B * which is inverted. As mentioned above,
The last one clock cycle period of the significant period of the window output signal F coincides with the significant period of the start detection signal B. Therefore, from the AND gate 14, the last one clock period from the significant period of the window output signal F. A modified window output signal having a significant period shorter than the cycle period is output, and the modified window output signal is input to one AND gate 16a of the logic circuit 16. The carrier detection signal E from the carrier detection unit 29 is also applied to the AND gate 16a.

【0049】論理回路16の他方のアンドゲート16b
には、後述するDフリップフロップ13の反転出力端子
QNからの信号と、エッジ検出/タイミング生成部3か
らの遅延出力信号Dとが入力される。Dフリップフロッ
プ13の反転出力端子QNからの信号は、ドライバ制御
信号Gを0.5クロック周期だけ遅延させた信号Hの反
転信号H*であり、エッジ検出/タイミング生成部3か
らの遅延出力信号Dは、開始検出信号Bを1クロック周
期だけ遅延させた信号である。
The other AND gate 16b of the logic circuit 16
A signal from an inverting output terminal QN of a D flip-flop 13, which will be described later, and a delayed output signal D from the edge detection / timing generator 3 are input to the. The signal from the inverted output terminal QN of the D flip-flop 13 is the inverted signal H * of the signal H obtained by delaying the driver control signal G by 0.5 clock cycle, and is the delayed output signal from the edge detection / timing generation unit 3. D is a signal obtained by delaying the start detection signal B by one clock cycle.

【0050】従って、論理回路16からは、大雑把に言
って、『修正されたウィンドウ出力信号の有意期間内で
キャリア検出信号Eが有意な期間だけ有意(“H”)と
なる信号』、又は、『ドライバ制御信号Gが受信を表す
非有意であるときに送信要求信号A*の開始が検出され
たときから1クロック周期期間だけ有意(“H”)とな
る信号』が出力され、この信号がJKフリップフロップ
10のJ入力端子に与えられる。
Therefore, from the logic circuit 16, roughly speaking, "a signal in which the carrier detection signal E is significant (" H ") for a significant period within the significant period of the modified window output signal", or A "signal that becomes significant (" H ") for one clock cycle period from when the start of the transmission request signal A * is detected when the driver control signal G is insignificant indicating reception" is output. It is applied to the J input terminal of the JK flip-flop 10.

【0051】一方、JKフリップフロップ10のK入力
端子には、エッジ検出/タイミング生成部3からの、送
信要求信号A*の終了検出信号Cが与えられる。
On the other hand, the K input terminal of the JK flip-flop 10 is supplied with the end detection signal C of the transmission request signal A * from the edge detection / timing generator 3.

【0052】ここで、J入力端子に与えられる信号は、
送信要求信号A*から生成された開始検出信号Bより前
に有意となるもの又はその遅延出力信号Dの有意期間と
同じ期間で有意となるものであり、K入力端子には、送
信要求信号A*の終了検出信号Cが与えられるので、J
及びK入力端子への信号が同時に“H”になることはな
い。
Here, the signal applied to the J input terminal is
A signal that becomes significant before the start detection signal B generated from the transmission request signal A * or becomes significant during the same period as the significant period of the delayed output signal D thereof. Since the end detection signal C of * is given, J
The signals to the K input terminal and the K input terminal do not become "H" at the same time.

【0053】従って、JKフリップフロップ10の非反
転出力端子Qからの信号は、『修正されたウィンドウ出
力信号の有意期間内においてキャリア検出信号Eが有意
になったときから』、又は、『ドライバ制御信号Gが受
信を表す非有意であるときに送信要求信号A*の開始が
検出されたときから』有意(“H”)となり、終了検出
信号Cの有意への変化で非有意に復帰するものとなる。
上記以外の場合には、JKフリップフロップ10の非反
転出力端子Qからの信号は、非有意状態を継続する。
Therefore, the signal from the non-inverting output terminal Q of the JK flip-flop 10 is "when the carrier detection signal E becomes significant within the significant period of the modified window output signal" or "driver control. From the time when the start of the transmission request signal A * is detected when the signal G is non-significant, it becomes "significant (" H ") and returns to non-significant when the end detection signal C changes to significant. Becomes
In all other cases, the signal from the non-inverting output terminal Q of the JK flip-flop 10 remains in the non-significant state.

【0054】このような信号が送信不成功信号Iとし
て、前置フラグカウンタ4及び不成功保持部8に与えら
れる。また、この送信不成功信号Iは、クロック信号Q
の立下りエッジでDフリップフロップ11にラッチさ
れ、その反転出力端子QNからの、送信不成功信号Iを
0.5クロック周期だけ遅延させたしかもその反転され
た信号が後述するアンドゲート17に与えられる。
Such a signal is given to the front flag counter 4 and the failure holding section 8 as the transmission failure signal I. The unsuccessful transmission signal I is the clock signal Q.
Is latched in the D flip-flop 11 at the falling edge of, and the transmission unsuccessful signal I from its inverted output terminal QN is delayed by 0.5 clock cycle, and its inverted signal is given to the AND gate 17 described later. To be

【0055】一方、ドライバ制御信号G及び前置フラグ
カウンタ制御信号Hの生成部の構成要素としては、イン
バータゲート18、アンドゲート17、JKフリップフ
ロップ12及びDフリップフロップ13が該当する。
On the other hand, an inverter gate 18, an AND gate 17, a JK flip-flop 12 and a D flip-flop 13 correspond to the constituent elements of the generator of the driver control signal G and the front flag counter control signal H.

【0056】キャリア検出部29からのキャリア検出信
号E(図3では信号Vで表している)は、インバータゲ
ート18を介して反転されてアンドゲート17に入力さ
れている。このアンドゲート17には、送信要求信号A
*の有意変化に追随して1クロック周期だけ有意とな
る、エッジ検出/タイミング生成部3からの開始検出信
号Bと、Dフリップフロップ11の反転出力端子QNか
らの出力信号も入力されている。ここで、Dフリップフ
ロップ11は、上述したように、送信不成功信号Iをラ
ッチするものであるので、その反転出力端子QNからの
出力信号は、送信不成功信号Iが非有意のとき、言い換
えると、送信不成功信号Iが送信不成功を表していない
ときに“H”をとるものである。
The carrier detection signal E (represented by signal V in FIG. 3) from the carrier detection unit 29 is inverted via the inverter gate 18 and input to the AND gate 17. The AND gate 17 has a transmission request signal A
The start detection signal B from the edge detection / timing generation unit 3 and the output signal from the inverting output terminal QN of the D flip-flop 11 which become significant only for one clock cycle following the significant change of * are also input. Here, since the D flip-flop 11 latches the transmission failure signal I as described above, the output signal from its inverting output terminal QN is paraphrased when the transmission failure signal I is insignificant. Then, when the transmission failure signal I does not indicate the transmission failure, "H" is taken.

【0057】従って、アンドゲート17からの出力信号
は、大雑把に言って、『LANバスS上のキャリアが検
出されず、しかも、送信不成功がセットされていない状
態で、送信要求信号A*が有意に変化したとき』に
“H”に変化する。
Therefore, the output signal from the AND gate 17 is roughly as follows: "The carrier on the LAN bus S is not detected, and the transmission request signal A * is set in the state where the transmission failure is not set. When it changes significantly ”, it changes to“ H ”.

【0058】このアンドゲート17からの出力信号は、
JKフリップフロップ12のJ入力端子に入力されてお
り、そのK入力端子は常時“L”に固定されているの
で、JKフリップフロップ12の非反転出力端子Qから
の信号は、『LANバスS上のキャリアが検出されず、
しかも、送信不成功がセットされていない状態で、送信
要求信号A*が有意に変化したとき』にクロック信号Q
に同期して“H”に変化する。この非反転出力端子Qか
らの信号が、“L”に復帰するのは、システム全体のリ
セット以外では、ドライバOFF信号J*が有意に変化
したときである。ドライバOFF信号J*が有意に変化
するのは、上述したように、送信要求信号A*が非有意
に変化してから後置フラグカウンタ5が(tps+0.
5)クロック周期だけカウントした時点である。
The output signal from the AND gate 17 is
Since it is input to the J input terminal of the JK flip-flop 12 and its K input terminal is always fixed to "L", the signal from the non-inverting output terminal Q of the JK flip-flop 12 is "on the LAN bus S. Carrier is not detected,
In addition, when the transmission request signal A * changes significantly while the transmission failure is not set, the clock signal Q
Changes to "H" in synchronism with. The signal from the non-inverted output terminal Q returns to "L" when the driver OFF signal J * changes significantly except for resetting the entire system. As described above, the driver OFF signal J * changes significantly after the transmission request signal A * changes insignificantly, and the post flag counter 5 outputs (tps + 0.
5) It is the time when only the clock cycle is counted.

【0059】すなわち、JKフリップフロップ12の非
反転出力端子Qからの信号は、『LANバスS上のキャ
リア信号が検出されず、しかも、送信不成功がセットさ
れていない状態で、送信要求信号A*が有意に変化した
とき』から、『送信要求信号A*が非有意に変化してか
ら後置フラグカウンタ5が(tps+0.5)クロック周
期だけカウントした時点』又は、『送信不成功がセット
されるようになったとき』までの期間、“H”をとるも
のとなり、この出力信号がドライバ制御信号G(図3で
は信号uで表している)として出力される。
That is, the signal from the non-inverted output terminal Q of the JK flip-flop 12 is "the carrier request signal on the LAN bus S is not detected, and the transmission request signal A is set in the state where the transmission failure is not set. "When * changes significantly", "when the post-flag counter 5 counts (tps + 0.5) clock cycles after the transmission request signal A * changes non-significantly" or "transmission failure is set "H", and this output signal is output as the driver control signal G (represented by signal u in FIG. 3).

【0060】このドライバ制御信号Gは、Dフリップフ
ロップ13のD入力端子に入力され、クロック信号Qの
立下りエッジでラッチされる。このDフリップフロップ
13の非反転出力端子Qからの、ドライバ制御信号Gを
0.5クロック周期だけ遅延させた信号が前置フラグカ
ウンタ制御信号Hとして図1に示すアンドゲート6に与
えられる。このDフリップフロップ13の反転出力端子
QNからの、前置フラグカウンタ制御信号Hの反転信号
H*は、上述したように論理回路16に与えられる。
The driver control signal G is input to the D input terminal of the D flip-flop 13 and latched at the falling edge of the clock signal Q. A signal obtained by delaying the driver control signal G by 0.5 clock cycle from the non-inverting output terminal Q of the D flip-flop 13 is applied to the AND gate 6 shown in FIG. The inverted signal H * of the front flag counter control signal H from the inverted output terminal QN of the D flip-flop 13 is given to the logic circuit 16 as described above.

【0061】アンドゲート6は、開始検出信号Bを1ク
ロック周期だけ遅延した遅延出力信号D及び前置フラグ
カウンタ制御信号Hのアンド出力を得て、フラグ開始信
号Kとして前置フラグカウンタ4に与える。
The AND gate 6 obtains the AND output of the delayed output signal D obtained by delaying the start detection signal B by one clock cycle and the prefix flag counter control signal H, and supplies it as the flag start signal K to the prefix flag counter 4. .

【0062】次に、上述したウィンドウ部2の動作、以
上構成を説明した不成功判定/ドライバON決定部1及
びアンドゲート6の動作を説明する。
Next, the operation of the window unit 2 described above, and the operation of the unsuccessfulness determination / driver ON determination unit 1 and the AND gate 6 having the above-described configuration will be described.

【0063】まず、送信動作でキャリア信号があり、送
信動作を中止する場合のこれら構成要素の動作を、図8
のタイムチャートを参照しながら説明する。
First, the operation of these constituent elements when there is a carrier signal in the transmission operation and the transmission operation is stopped will be described with reference to FIG.
This will be described with reference to the time chart of.

【0064】CPUハードウェア25上のプログラム
(ファームウェア)は、送信準備のある段階において、
ウインドウ開始信号Mを出力する(t1)。その後、C
PUハードウェア25上のプログラムは、通信用LSI
26に対して送信コマンドを与えて送信開始を指示す
る。なお、これらの順序は逆であっても構わない(後述
する図13及び図14は逆の順序の場合を記載してい
る) 上述したウインドウ開始信号Mの出力により、ウインド
ウ出力信号Fが有意に変化する(t2)。また、送信開
始が指示された通信用LSI26は、その指示時点から
所定の時間だけ経過した後に送信状態に移行し、有意に
変化させた送信要求信号A*をドライバ制御部30に出
力する(t3)。
The program (firmware) on the CPU hardware 25 is
The window start signal M is output (t1). Then C
The program on the PU hardware 25 is a communication LSI
A transmission command is given to 26 to instruct the start of transmission. Note that these orders may be reversed (FIGS. 13 and 14 to be described later show the case of the reverse order). Due to the output of the window start signal M described above, the window output signal F becomes significantly significant. It changes (t2). Further, the communication LSI 26 instructed to start the transmission shifts to the transmission state after a lapse of a predetermined time from the instruction time point, and outputs the significantly changed transmission request signal A * to the driver control unit 30 (t3. ).

【0065】ウインドウ出力信号Fの最終クロックサイ
クル、すなわち開始検出信号Bが有意となっている期間
は、アンドゲート14及びインバータゲート15の機能
により特別なので、それ以外のクロックサイクルでキャ
リア検出信号Eが有意であると(t4)、JKフリップ
フロップ10のJ入力端子に接続されている論理回路1
6のゲート16aのキャリア検出信号Eの通過条件が成
立し、JKフリップフロップ10の非反転出力端子Qか
らの出力信号が有意となって送信不成功信号Iが有意
(“H”)になる。ウィンドウ開始が指示された時点
で、既にキャリア検出信号Eが有意な場合も、同様に動
作する。
The last clock cycle of the window output signal F, that is, the period when the start detection signal B is significant, is special due to the functions of the AND gate 14 and the inverter gate 15. Therefore, the carrier detection signal E is generated in other clock cycles. When significant (t4), the logic circuit 1 connected to the J input terminal of the JK flip-flop 10
The passage condition of the carrier detection signal E of the gate 16a of No. 6 is satisfied, the output signal from the non-inverting output terminal Q of the JK flip-flop 10 becomes significant, and the transmission failure signal I becomes significant (“H”). Even when the carrier detection signal E is already significant when the window start is instructed, the same operation is performed.

【0066】ドライバ制御信号Gを決定するJKフリッ
プフロップ12のセット条件は、アンドゲート17の入
力から、開始検出信号Bが有意なときの送信不成功信号
I及びキャリア検出信号Eの状態によって判定される
が、この場合は送信不成功信号Iが有意であるため条件
が成立しない。従って、ドライバ制御信号Gは非有意
(“L”)である(t5)。そのため、前置フラグカウ
ンタ制御信号Hも有意には変化せず、フラグ開始信号K
も非有意(“L”)のままである。
The setting condition of the JK flip-flop 12 which determines the driver control signal G is determined from the input of the AND gate 17 by the states of the transmission failure signal I and the carrier detection signal E when the start detection signal B is significant. However, in this case, the condition is not satisfied because the transmission failure signal I is significant. Therefore, the driver control signal G is insignificant ("L") (t5). Therefore, the front flag counter control signal H does not change significantly, and the flag start signal K
Also remains non-significant (“L”).

【0067】送信不成功信号Iが有意となっても、後で
詳述するように、前置フラグカウンタ4からの送信許可
信号L*は、送信要求信号A*が有意になった時点から
所定時間後に有意に変化し、有意に変化した送信許可信
号L*を受け取った通信用LSI26は、その時点で非
有意のドライバ制御信号Gに基いて閉じているドライバ
27に向けてパケットデータ(この場合ダミーデータ)
を送出し、それが終了すると、送信要求信号A*を非有
意にする(t6)。これを検出して有意に変化した終了
検出信号Cにより、JKフリップフロップ10からの送
信不成功信号Iも非有意(“L”)に変化する(t
7)。
Even if the unsuccessful transmission signal I becomes significant, as will be described in detail later, the transmission permission signal L * from the front flag counter 4 is predetermined from the time when the transmission request signal A * becomes significant. The communication LSI 26, which has significantly changed after a lapse of time and has received the significantly changed transmission permission signal L *, sends packet data (in this case, to the driver 27 which is closed based on the non-significant driver control signal G at that time). Dummy data)
Is transmitted, and when it ends, the transmission request signal A * is made insignificant (t6). Due to the end detection signal C which is detected and significantly changed, the transmission failure signal I from the JK flip-flop 10 also changes to insignificant (“L”) (t).
7).

【0068】次に、送信動作でキャリアがない場合の不
成功判定/ドライバON決定部1及びアンドゲート6等
の動作を、図8のタイムチャートを参照しながら説明す
る(キャリアなしと記載している信号を特に参照す
る)。
Next, the operation of the failure determination / driver ON determination unit 1 and the AND gate 6 etc. in the case where there is no carrier in the transmission operation will be described with reference to the time chart of FIG. Signal in particular).

【0069】キャリア検出信号Eがない場合(継続して
非有意な場合)には、有意なキャリア検出信号Eに基く
送信不成功信号Iの有意への変化はない。このような状
態において、開始検出信号Bが有意に変化すると、有意
な送信不成功信号I及びキャリア検出信号Eが存在しな
いため、アンドゲート17の有意条件が成立し、JKフ
リップフロップ12の非反転出力端子Qからの出力信号
であるドライバ制御信号Gは有意となる(t8)。すな
わち、ドライバ27のONが決定される。
When there is no carrier detection signal E (when it is insignificant continuously), there is no significant change in the transmission failure signal I based on the significant carrier detection signal E. In such a state, when the start detection signal B changes significantly, since the significant transmission failure signal I and the carrier detection signal E do not exist, the significant condition of the AND gate 17 is established and the non-inversion of the JK flip-flop 12 is performed. The driver control signal G which is an output signal from the output terminal Q becomes significant (t8). That is, ON of the driver 27 is determined.

【0070】これにより、ドライバ制御信号Gの有意変
化時点から0.5クロック周期遅れて有意となる前置フ
ラグカウンタ制御信号Hと、開始検出信号Bより1クロ
ック周期遅れる遅延出力信号Dとが入力されるアンドゲ
ート6からは、有意なフラグ開始信号Kが出力される
(t9)。
As a result, the pre-flag counter control signal H which becomes significant 0.5 clock cycles after the significant change of the driver control signal G and the delay output signal D which is delayed 1 clock cycle from the start detection signal B are input. A significant flag start signal K is output from the AND gate 6 (t9).

【0071】フラグ開始信号Kが有意に変化すると、後
で詳述する前置フラグカウンタ4は前置フラグ分を数え
て送信許可信号L*を有意にし、これにより、前置フラ
グ分だけ送信が待たされて前置フラグが形成され、送信
許可信号L*の有意期間において通信用LSI26から
所望のパケットデータが送出される。通信用LSI26
からの送信要求信号A*が所望のパケットデータの終了
を告げる非有意に変化した時点から、上述した図5に示
すように、後置フラグカウンタ5が働いて、所定時間経
過後に、ドライバOFF信号J*を有意にする。これに
より、JKフリップフロップ12がリセットされてドラ
イバ制御信号Gが非有意に変化し、ドライバ27が閉じ
る。
When the flag start signal K changes significantly, the prefix flag counter 4, which will be described in detail later, counts the prefix flags and makes the transmission permission signal L * significant, so that only the prefix flags are transmitted. The front flag is formed after waiting, and desired packet data is transmitted from the communication LSI 26 during the significant period of the transmission permission signal L *. Communication LSI 26
As shown in FIG. 5 described above, the post-flag counter 5 operates from the time when the transmission request signal A * from the non-significant signal indicates the end of the desired packet data, and after a predetermined time elapses, the driver OFF signal is output. Make J * significant. As a result, the JK flip-flop 12 is reset, the driver control signal G changes insignificantly, and the driver 27 is closed.

【0072】なお、キャリア検出信号Eが有意な場合
(キャリアがある場合)のうち、特別なものとして、図
9に示す場合がある。
When the carrier detection signal E is significant (when there is a carrier), it may be shown in FIG. 9 as a special case.

【0073】開始検出信号Bが有意なクロックサイクル
で、キャリア検出信号Eが有意であると(t10)、不
成功判定/ドライバON決定部1の動作が上記と若干異
なったものとなる。
When the start detection signal B is a significant clock cycle and the carrier detection signal E is significant (t10), the operation of the failure determination / driver ON determination section 1 is slightly different from the above.

【0074】この時点では、アンドゲート16a及び1
6bによる出力有意条件が成立しないため、JKフリッ
プフロップ10からの送信不成功信号Iは有意に変化し
ない。また、アンドゲート17の出力有意条件も成立し
ないため、JKフリップフロップ12からのドライバ制
御信号Gも有意に変化しない。
At this point, AND gates 16a and 1
Since the output significant condition by 6b is not satisfied, the transmission failure signal I from the JK flip-flop 10 does not change significantly. Further, since the output significant condition of the AND gate 17 is not satisfied, the driver control signal G from the JK flip-flop 12 does not change significantly.

【0075】しかし、非有意なドライバ制御信号Gより
0.5クロック周期遅れている、しかも、その反転され
た信号が入力されるアンドゲート16bについては、開
始検出信号Bより1クロック周期遅れて有意に変化した
遅延出力信号Dが入力されると、出力有意条件が成立
し、JKフリップフロップ10からの送信不成功信号I
は有意に変化する(t11)。
However, the AND gate 16b, which is delayed by 0.5 clock cycle from the insignificant driver control signal G, and whose inverted signal is input, is delayed by 1 clock cycle from the start detection signal B and is significant. When the delayed output signal D changed to is input, the output significant condition is satisfied, and the transmission failure signal I from the JK flip-flop 10 is input.
Changes significantly (t11).

【0076】このように、この場合は、送信不成功信号
Iが有意に変化するタイミングが上述した場合と異なっ
ている。
As described above, in this case, the timing at which the transmission failure signal I changes significantly is different from that described above.

【0077】なお、図9の下部に示したように、ウイン
ドウ出力信号Fが有意になることがない状況において、
開始検出信号Bとキャリア検出信号Eとの有意が重なっ
ても(キャリア検出信号Eの有意が開始検出信号Bの有
意に変化する以前から始まっている場合を含む)、同様
の動作をする。この場合は、ウィンドウ開始信号Mの出
力機能を有しないCPUハードウェア25が接続された
場合に該当する。しかし、この実施例は、基本的には、
ウィンドウ開始信号Mの出力機能を有するCPUハード
ウェア25が接続されていることを前提としている。
As shown in the lower part of FIG. 9, in the situation where the window output signal F is not significant,
Even if the significance of the start detection signal B and the carrier detection signal E overlap (including the case where the significance of the carrier detection signal E starts before the significance of the start detection signal B significantly changes), the same operation is performed. This case corresponds to the case where the CPU hardware 25 having no output function of the window start signal M is connected. However, this example basically
It is assumed that the CPU hardware 25 having the function of outputting the window start signal M is connected.

【0078】(B−6)前置フラグカウンタ4 前置フラグカウンタ4の詳細構成の図示は省略するが、
カウンタ、フリップフロップ及び論理ゲートの組合わせ
で、図10及び図11に示すようなタイムチャートを実
現するように構成されている。なお、前置フラグカウン
タ4には、送信要求信号A*、フラグ開始信号K、送信
不成功信号I及びクロック信号Qが入力され、前置フラ
グカウンタ4は、これら信号の内容に応じて、送信許可
信号L*を生成するものである。
(B-6) Prefix Flag Counter 4 Although the detailed configuration of the prefix flag counter 4 is omitted,
A combination of a counter, a flip-flop, and a logic gate is configured to realize a time chart as shown in FIGS. It should be noted that the transmission request signal A *, the flag start signal K, the transmission failure signal I, and the clock signal Q are input to the prefix flag counter 4, and the prefix flag counter 4 transmits according to the contents of these signals. The permission signal L * is generated.

【0079】前置フラグカウンタ4は、送信データ(パ
ケットデータ)の前に付与するフラグパタンの所定時間
を補償するために設けられているものである。なお、前
置フラグカウンタ4は、従来では、通信用LSI26内
に設けられていることが多く、その構成のものと同じも
のをこの実施例でも適用できるが、この実施例の場合、
さらに図11に示すタイムチャートを実現する構成が加
えられている。また、送信許可信号L*の生成部になっ
ているので、ドライバ制御部30内に設けている。
The front flag counter 4 is provided for compensating a predetermined time of a flag pattern added before transmission data (packet data). It should be noted that the front-end flag counter 4 is conventionally provided in the communication LSI 26 in many cases, and the same component as that can be applied in this embodiment as well. However, in the case of this embodiment,
Furthermore, a configuration for realizing the time chart shown in FIG. 11 is added. Further, since it is a generation unit of the transmission permission signal L *, it is provided in the driver control unit 30.

【0080】図10は、送信が成功して前置フラグ分を
数える場合を示している。図8を用いて説明したよう
に、LANバスS上にキャリアがない場合には、送信要
求信号A*が有意に変化してから1.5クロック周期後
にフラグ開始信号Kが有意に変化し、前置フラグカウン
タ4は、クロック信号Qに基いて、送信要求信号A*が
有意に変化してから2クロック周期後にフラグ開始信号
Kが有意に変化したことを検出する。
FIG. 10 shows a case in which the transmission is successful and the prefix flag is counted. As described with reference to FIG. 8, when there is no carrier on the LAN bus S, the flag start signal K changes significantly 1.5 clock cycles after the transmission request signal A * changes significantly. Based on the clock signal Q, the pre-flag counter 4 detects that the flag start signal K has changed significantly two clock cycles after the transmission request signal A * has changed significantly.

【0081】これにより、内部の例えば8ビットカウン
タが「256−tpr」の値をロードしてカウントアップ
を開始する。そして、カウント値が「255」から
「0」に変化した時点で、送信許可信号L*を有意に変
化させる。これにより、通信用LSI26は、パケット
データを出力し、その終了時に、送信要求信号A*を非
有意に変化させる。前置フラグカウンタ4は、送信要求
信号A*を非有意に変化すると、次のクロックサイクル
で送信許可信号L*も非有意に変化させる。
As a result, an internal 8-bit counter, for example, loads the value "256-tpr" and starts counting up. Then, when the count value changes from “255” to “0”, the transmission permission signal L * is changed significantly. As a result, the communication LSI 26 outputs the packet data and changes the transmission request signal A * insignificantly at the end of the packet data. When the transmission request signal A * changes non-significantly, the front flag counter 4 also changes the transmission permission signal L * non-significant in the next clock cycle.

【0082】図10から明らかなように、カウント値が
「0」以外の値を取っている期間は、tprクロック分あ
るので、送信要求信号A*が有意になってから送信許可
信号L*が有意になるまでは、(tpr+3)クロック分
になり、従って、ドライブ制御信号Gが有意になってか
ら送信許可信号L*が有意になるまでは(tpr+2)ク
ロック分になる。これが前置フラグ(プレアンブル信
号)の送出時間に対応するので、tprの値を必要なフラ
グ長から決めればロード値を算出できる。
As is apparent from FIG. 10, since the count value takes a value other than "0" for tpr clocks, the transmission permission signal L * becomes significant after the transmission request signal A * becomes significant. It takes (tpr + 3) clocks until it becomes significant. Therefore, it takes (tpr + 2) clocks after the drive control signal G becomes significant until the transmission permission signal L * becomes significant. Since this corresponds to the transmission time of the prefix flag (preamble signal), the load value can be calculated by determining the value of tpr from the required flag length.

【0083】一方、図11は、送信が不成功で前置フラ
グを数えずに、すみやかに送信許可信号L*を有意にす
る場合である。なお、この実施例の通信用LSI26
は、送信許可信号L*が有意となってデータ送信動作を
一旦でも実行しないと、起動された送信動作が終了でき
ないものとなっている。そのため、送信が不成功な場合
でも送信許可信号L*を有意にすることを要する。
On the other hand, FIG. 11 shows a case where the transmission is unsuccessful and the transmission permission signal L * is made significant immediately without counting the prefix flag. The communication LSI 26 of this embodiment
Indicates that the activated transmission operation cannot be terminated unless the transmission permission signal L * becomes significant and the data transmission operation is not executed even once. Therefore, it is necessary to make the transmission permission signal L * significant even when the transmission is unsuccessful.

【0084】送信要求信号A*が有意に変化した後のカ
ウント値が「0」である状況で、有意な送信不成功信号
Iが与えられると、送信許可信号L*を有意に変化させ
る。すなわち、この場合には、有意なフラグ開始信号K
が与えられないので、以上の条件を送信許可信号L*の
有意変化条件としている。送信が成功した場合と同様
に、前置フラグカウンタ4は、送信要求信号A*を非有
意に変化すると、次のクロックサイクルで送信許可信号
L*も非有意に変化させる。
When a significant transmission failure signal I is given in the situation where the count value after the transmission request signal A * has changed significantly is "0", the transmission permission signal L * is changed significantly. That is, in this case, the significant flag start signal K
Is not given, the above condition is regarded as a significant change condition of the transmission permission signal L *. When the transmission request signal A * changes insignificantly, the front flag counter 4 also changes the transmission permission signal L * insignificantly in the next clock cycle, as in the case of successful transmission.

【0085】すなわち、前置フラグカウンタ4を、(1)
有意なフラグ開始信号Kの到来によりカウントアップを
開始した内部カウンタがキャリー信号を出力したこと、
又は、(2) そのカウント値が「0」で送信不成功信号I
及び送信要求信号A*が共に有意であることを、送信許
可信号L*の有意変化条件とするように構成すれば良
く、また、送信許可信号L*の非有意への変化を送信要
求信号A*の非有意変化を検出したときに行なうように
構成すれば良い。ここで、送信許可信号L*の形成に係
る内部カウンタのロードをフラグ開始信号Kの有意で行
なうように形成すれば、上記(1) 又は(2) の状態を区別
して、送信許可信号L*を有意に変化させることができ
る。
That is, the front flag counter 4 is set to (1)
The internal counter, which has started counting up due to the arrival of the significant flag start signal K, has output a carry signal,
Or (2) the count value is “0” and the transmission failure signal I
And that the transmission request signal A * is significant may be configured as a significant change condition of the transmission permission signal L *, and the change of the transmission permission signal L * to a non-significant level may be transmitted. It may be configured to be performed when an insignificant change of * is detected. If the internal counter relating to the formation of the transmission permission signal L * is formed so that the flag start signal K is significant, the transmission permission signal L * can be distinguished by distinguishing between the states (1) and (2). Can be changed significantly.

【0086】(B−7)不成功保持部8及びエッジ検出
部9 不成功保持部8及びエッジ検出部9は、CPUハードウ
ェア25とのインタフェースのために設けられており、
具体的回路については簡単のために割愛するが、以下の
機能を担うものである。
(B-7) Failure holding unit 8 and edge detection unit 9 The failure holding unit 8 and edge detection unit 9 are provided for interfacing with the CPU hardware 25,
The specific circuit is omitted for simplicity, but it has the following functions.

【0087】送信不成功信号Iは、不成功判定/ドライ
バON決定部1内のJKフリップフロップ10にラッチ
されるが、この送信不成功信号Iは送信要求信号A*の
非有意への変化で有意となる終了検出信号Cの有意変化
によって非有意に変化するものであり、この構成だけで
は、送信不成功信号Iが有意になったことをCPUハー
ドウェア25が捕らえたかを保証することができない。
The unsuccessful transmission signal I is latched by the JK flip-flop 10 in the unsuccessful determination / driver ON determination section 1. This unsuccessful transmission signal I is a non-significant change of the transmission request signal A *. It changes non-significantly due to the significant change of the end detection signal C that becomes significant, and this configuration alone cannot guarantee that the CPU hardware 25 has caught that the transmission failure signal I has become significant. .

【0088】そこで、不成功判定/ドライバON決定部
1からの送信不成功信号Iが有意に変化したことを保持
する、CPUハードウェア25がI/Oポート7を介し
て任意なタイミングでそのことを取り出すことができる
不成功保持部8を設けると共に、その不成功保持部8が
保持した保持送信不成功信号Oの有意への変化エッジを
検出してCPU割込信号P(図3では信号Xで示してい
る)を出力するエッジ検出部9を設けている。なお、不
成功保持部8に保持された保持送信不成功信号Oの有意
は、I/Oポート7を介したCPUハードウェア25か
らのリセット信号Nによって解除できるようになされて
いる。
Therefore, the CPU hardware 25, which holds that the transmission failure signal I from the failure determination / driver ON determination section 1 has changed significantly, is set at an arbitrary timing via the I / O port 7. Of the CPU interrupt signal P (signal X in FIG. 3) by detecting the change edge of the holding and transmission unsuccessful signal O held by the unsuccessful holding unit 8 to significant. Is provided). The significance of the held transmission unsuccessful signal O held in the unsuccessful holding unit 8 can be canceled by the reset signal N from the CPU hardware 25 via the I / O port 7.

【0089】なお、CPU割込信号Pとしては、CPU
ハードウェア25での立上りエッジ検出モードを想定
し、アクティブロウの1サイクルパルスを想定してい
る。また、不成功保持部8及びエッジ検出部9の動作
は、クロック信号Qに同期して行なわれるものである。
The CPU interrupt signal P is the CPU
The rising edge detection mode of the hardware 25 is assumed, and one cycle pulse of active low is assumed. The operations of the failure holding unit 8 and the edge detection unit 9 are performed in synchronization with the clock signal Q.

【0090】(C)CPUハードウェア25の動作 CPUハードウェア25としては、各種の構成のものを
ドライバ制御部30に接続可能であるが、次のような図
12に示す動作例を実行するものが接続されたとし、以
下、その動作を説明する。
(C) Operation of CPU Hardware 25 As the CPU hardware 25, various configurations can be connected to the driver control section 30, but the following operation example shown in FIG. 12 is executed. Now, the operation will be described below.

【0091】CPUハードウェア25は、送信の必要性
が生じると、図12(A)に示す送信処理ルーチンの処
理を開始し、まず、送信回数パラメータxを初期値1に
設定すると共に、今回の送信結果フラグFLGを初期内
容である「成功」に設定する(ステップ100)。その
後、通信用LSI26が送信動作するようにコマンド設
定動作すると共に、ドライバ制御部30に対してウィン
ドウ設定動作を行なう(ステップ101、02)。な
お、これらの処理順序は逆であっても構わない。そし
て、通信用LSI26が設定した通信完了通知を見にい
くための内蔵する第1のタイマを起動してメインルーチ
ンに戻る(ステップ103)。
When the need for transmission arises, the CPU hardware 25 starts the processing of the transmission processing routine shown in FIG. 12A, and first sets the transmission number parameter x to the initial value 1 and The transmission result flag FLG is set to "success" which is the initial content (step 100). Thereafter, the command setting operation is performed so that the communication LSI 26 performs the transmission operation, and the window setting operation is performed on the driver control unit 30 (steps 101 and 02). The order of these processes may be reversed. Then, the built-in first timer for observing the communication completion notification set by the communication LSI 26 is started and the process returns to the main routine (step 103).

【0092】CPUハードウェア25に対する割込みが
起動される場合としては、ドライバ制御部30(より具
体的にはエッジ検出部9)からの割込信号Xが与えられ
た場合と、前回の送信が不成功な場合における再度の送
信を起動するための後述する第2のタイマがタイムアッ
プした場合と、通信完了通知を見にいくための内蔵する
第1のタイマがタイムアップした場合とがある。なお、
第1のタイマの計時時間は、第2のタイマの計時時間よ
りかなり短くなっている。
The interrupt to the CPU hardware 25 is activated when the interrupt signal X is given from the driver control unit 30 (more specifically, the edge detection unit 9) and when the previous transmission is unsuccessful. There is a case where a second timer, which will be described later, for activating the re-transmission in the case of success has timed up, and a built-in first timer for going to the communication completion notification has timed up. In addition,
The time measured by the first timer is considerably shorter than the time measured by the second timer.

【0093】ドライバ制御部30からの割込信号Xが与
えられた場合には、CPUハードウェア25は、図12
(B)に示すルーチンに進み、ドライバ制御部30内の
不成功保持部8の保持内容を取込み、それが送信不成功
を指示しているか否かを判定する(ステップ150、1
51)。送信不成功が指示されていない場合には、図1
2(D)に示すルーチンに進む。一方、送信不成功が指
示されていると、送信結果フラグFLGを「不成功」に
設定し直し、送信回数パラメータxを1インクリメント
した後、その送信回数パラメータxが送信許容繰返し回
数THを越えたか否かを判定する(ステップ152〜1
54)。送信回数パラメータxが送信許容繰返し回数T
Hを越えていると、送信を完全に諦める送信異常完了処
理を実行してメインルーチンに戻る(ステップ15
5)。一方、送信回数パラメータxが送信許容繰返し回
数TH以下であると、ドライバ制御部30内の不成功保
持部8の保持内容をリセットし、第2のタイマを起動し
てメインルーチンに戻る(ステップ156、157)。
なお、このような処理に加えて、通信用LSI26の今
回の送信動作を早く終了させるように、既に送出した送
信コマンドが規定する送信データを少ないデータ量のダ
ミーデータを指示するように変更する処理をも行なうこ
とは好ましい。
When the interrupt signal X from the driver control section 30 is given, the CPU hardware 25 operates as shown in FIG.
Proceeding to the routine shown in (B), the contents held in the unsuccessful holding unit 8 in the driver control unit 30 are fetched, and it is determined whether or not it indicates an unsuccessful transmission (steps 150, 1).
51). If the transmission failure is not instructed, the process shown in FIG.
The routine proceeds to 2 (D). On the other hand, if the transmission failure is instructed, the transmission result flag FLG is reset to "unsuccessful", the transmission count parameter x is incremented by 1, and then the transmission count parameter x exceeds the transmission allowable repetition count TH. It is determined whether or not (steps 152 to 1)
54). The transmission count parameter x is the transmission allowable repetition count T
If it exceeds H, the transmission abnormal completion processing for completely giving up the transmission is executed and the process returns to the main routine (step 15).
5). On the other hand, when the transmission count parameter x is equal to or smaller than the transmission allowable repetition count TH, the contents held in the failure holding unit 8 in the driver control unit 30 are reset, the second timer is activated, and the process returns to the main routine (step 156). 157).
In addition to such a process, a process of changing the transmission data defined by the already transmitted transmission command to instruct a small amount of dummy data so that the current transmission operation of the communication LSI 26 is terminated early. It is preferable to carry out

【0094】第2のタイマがタイムアップした割込みの
場合には、図12(C)に示すルーチンに進んで、CP
Uハードウェア25は、上述したステップ101以降の
処理を実行させる。これにより、そのときの送信回数パ
ラメータxが指示している回数目の送信動作が実行され
る。
In the case of an interrupt in which the second timer has timed out, the routine proceeds to the routine shown in FIG.
The U hardware 25 causes the above-described processing of step 101 and subsequent steps to be executed. As a result, the transmission operation for the number of times indicated by the transmission number parameter x at that time is executed.

【0095】第1のタイマがタイムアップした割込みの
場合には、図12(D)に示すルーチンに進んで、CP
Uハードウェア25は、まず、送信完了通知があるか否
かを判定する(ステップ200)。送信完了通知がなけ
れば、第1のタイマを再度起動してメインルーチンに戻
る(ステップ201)。送信完了通知があれば、送信結
果フラグFLGの内容を判定する(ステップ202)。
フラグFLGが「成功」を指示していると、送信成功終
了処理を実行してメインルーチンに戻る(ステップ20
3)。フラグFLGが「不成功」を指示していると、そ
のフラグFLGを初期内容「成功」に戻し、送信不成功
終了処理を実行してメインルーチンに戻る(ステップ2
04、205)。なお、送信不成功終了処理には、ドラ
イバ制御部30内の不成功保持部8の保持内容のリセッ
ト処理も含まれている。
In the case of an interrupt in which the first timer has timed out, the routine proceeds to the routine shown in FIG.
The U hardware 25 first determines whether or not there is a transmission completion notification (step 200). If there is no transmission completion notification, the first timer is restarted and the process returns to the main routine (step 201). If there is a transmission completion notification, the content of the transmission result flag FLG is determined (step 202).
When the flag FLG indicates "success", the transmission success end process is executed and the process returns to the main routine (step 20).
3). When the flag FLG indicates "unsuccessful", the flag FLG is returned to the initial content "success", the transmission unsuccessful ending process is executed, and the process returns to the main routine (step 2).
04, 205). It should be noted that the transmission unsuccessful ending process also includes a process of resetting the content held in the unsuccessful holding unit 8 in the driver control unit 30.

【0096】以上のように、CPUハードウェア25
は、送信が不成功な場合には送信が成功するまで、所定
周期で送信動作を繰返し起動すると共に、送信が成功す
ると成功終了処理を実行し、送信許容繰返し回数THだ
け送信を繰返しても不成功の場合には、送信異常完了処
理を実行する。
As described above, the CPU hardware 25
If the transmission is unsuccessful, the transmission operation is repeatedly activated at a predetermined cycle until the transmission is successful, and if the transmission is successful, the success end process is executed, and even if the transmission is repeated by the transmission allowable repetition number TH, it is not possible. If successful, the abnormal transmission completion processing is executed.

【0097】(D)実施例の全体動作 以下、実施例のバスアクセス制御装置の送信時の全体動
作、すなわち、CPUハードウエア25、通信用LSI
26、ドライバ制御部30、ドライバ27等の相互の動
作を、図13及び図14を用いて、送信が成功する場合
及び送信が不成功な場合について順に説明する。なお、
図13及び図14は、送信繰返し回数が何回目であるか
に拘らず、ある回数での送信動作を示しており、図13
は送信が成功する場合を示しており、図14は送信が不
成功な場合を示している。
(D) Overall Operation of Embodiment Hereinafter, the overall operation of the bus access control device of the embodiment at the time of transmission, that is, the CPU hardware 25 and the communication LSI
Mutual operations of the driver 26, the driver control unit 30, the driver 27, and the like will be sequentially described with reference to FIGS. 13 and 14 for a case where the transmission is successful and a case where the transmission is unsuccessful. In addition,
13 and 14 show the transmission operation at a certain number of times regardless of the number of times the transmission is repeated.
Shows the case where the transmission is successful, and FIG. 14 shows the case where the transmission is unsuccessful.

【0098】まず、CPUハードウェア25は、通信用
LSI26への送信コマンド設定を行なうと共に、ウイ
ンドウを設定動作を行なう。CPUハードウェア25の
ウインドウの設定動作によって、ドライバ制御部30内
のウィンドウ部2はウインドウが開く(ウィンドウ信号
Fを有意にする)。一方、通信用LSI26は、送信コ
マンド設定に呼応して、所定の送信準備処理を実行して
送信要求信号A*を有意に変化させる。所定の送信準備
処理には、例えば、本来のパケットデータの前に送信さ
れるフラグパターンの出力を開始する処理も含まれる。
First, the CPU hardware 25 sets a transmission command to the communication LSI 26 and sets a window. By the window setting operation of the CPU hardware 25, the window of the window unit 2 in the driver control unit 30 opens (makes the window signal F significant). On the other hand, the communication LSI 26 executes a predetermined transmission preparation process in response to the setting of the transmission command to significantly change the transmission request signal A *. The predetermined transmission preparation process also includes, for example, a process of starting the output of the flag pattern transmitted before the original packet data.

【0099】送信要求信号A*の有意変化によって、ウ
インドウが閉じるが、その閉成時刻までのウィンドウ期
間において、LANバスS上にキャリアがないと、ドラ
イバ制御部30によって、送信成功と判定され、その判
定時点とほぼ同時にドライバ制御信号u(G)が有意に
変化してドライバ27がゲートを開ける。これにより、
LANバスS上には、フラグパタン(前置フラグ)が送
出され、ドライバ制御部30内の前置フラグカウンタ4
の計時が開始される。前置フラグ長に相当する時間が終
わると、ドライバ制御部30内の前置フラグカウンタ4
からの送信許可信号L*が有意に変化する。この変化を
受けて、通信用LSI26は、パケットデータを送出す
る。パケットデータは、CPUハードウェア25内のプ
ログラム(ファームウェア)より設定された内容によ
り、データ長が変化する。
The window is closed due to a significant change in the transmission request signal A *, but if there is no carrier on the LAN bus S during the window period until the closing time, the driver control unit 30 determines that the transmission is successful, Almost at the same time as the determination time, the driver control signal u (G) changes significantly and the driver 27 opens the gate. This allows
A flag pattern (prefix flag) is transmitted to the LAN bus S, and the prefix flag counter 4 in the driver control unit 30 is transmitted.
The clock starts. When the time corresponding to the prefix flag length ends, the prefix flag counter 4 in the driver control unit 30
The transmission permission signal L * from 1 changes significantly. In response to this change, the communication LSI 26 sends out packet data. The data length of the packet data changes depending on the contents set by the program (firmware) in the CPU hardware 25.

【0100】パケットデータの出力が終了すると、通信
用LSI26は、フラグパターンの送出に切り替えると
共に、送信要求信号A*を非有意に変化させる。送信要
求信号A*の非有意変化に呼応してドライバ制御部30
からの送信許可信号L*も直ちに非有意に変化するが、
ドライバ制御部30からのゲート制御信号u(G)は、
送信要求信号A*が非有意に変化しても、後置フラグカ
ウンタ5による後置フラグ(終了シーケンス)分の計時
を待って非有意に変化する。これにより、パケットデー
タに引き続いてフラグパタンがLANバスSに出力され
る。
When the output of the packet data is completed, the communication LSI 26 switches to the transmission of the flag pattern and changes the transmission request signal A * insignificantly. The driver control unit 30 responds to the insignificant change of the transmission request signal A *.
The transmission permission signal L * from is also immediately insignificantly changed,
The gate control signal u (G) from the driver control unit 30 is
Even if the transmission request signal A * changes non-significantly, it changes non-significantly after waiting for the timing of the post-position flag (end sequence) by the post-position flag counter 5. As a result, the flag pattern is output to the LAN bus S subsequently to the packet data.

【0101】また、通信用LSI26は、パケットデー
タの出力が終了すると、その後、終了処理を行なって、
CPUハードウェア25へ送信完了通知を出し、送信の
一つのシーケンスが終わったことを伝える。CPUハー
ドウェア25は、ドライバ制御部30内の不成功保持部
8の保持内容が「成功」を指示しており、かつ、送信完
了通知が与えられたことにより、送信が成功で完了した
ことを認識して一連の送信動作を正常終了する。
When the output of the packet data is completed, the communication LSI 26 thereafter carries out an ending process,
A transmission completion notification is issued to the CPU hardware 25 to inform that one transmission sequence has been completed. The CPU hardware 25 confirms that the content stored in the unsuccessful storage unit 8 in the driver control unit 30 indicates “success” and that the transmission completion notification is given, so that the transmission is completed successfully. Upon recognition, a series of transmission operations are completed normally.

【0102】次に、ウインドウ期間中にキャリアが存在
することが検出された場合、すなわち、送信が不成功に
なる場合の動作を図14に基いて説明する。
Next, the operation when the presence of a carrier is detected during the window period, that is, when the transmission is unsuccessful will be described with reference to FIG.

【0103】CPUハードウェア25が、通信用LSI
26への送信コマンド設定を行なうと共に、ウインドウ
を設定動作を行ない、ドライバ制御部30内のウィンド
ウ部2はウインドウが開き、通信用LSI26は、送信
コマンド設定に呼応して、所定の送信準備処理を実行し
て送信要求信号A*を有意に変化させて、フラグパター
ンの出力を開始する処理の部分は、上述の場合と同様で
ある。
The CPU hardware 25 is a communication LSI
26, the window is opened in the window section 2 in the driver control section 30, and the communication LSI 26 executes a predetermined transmission preparation process in response to the transmission command setting. The part of the processing that is executed to significantly change the transmission request signal A * and start the output of the flag pattern is similar to the above case.

【0104】ウィンドウ期間中において有意なキャリア
検出信号V(E)が与えられると、ドライバ制御部30
の不成功判定/ドライバON決定部1から、有意に変化
した送信不成功信号Iが出力され、これにより、CPU
ハードウェア25へのCPU割込信号X(O)が出力さ
れ、これに基いた処理により、CPUハードウェア(フ
ァームウェア)25は、送信不成功を認識する。
When a significant carrier detection signal V (E) is given during the window period, the driver control unit 30
The unsuccessful determination / driver ON determination unit 1 outputs a significantly changed transmission unsuccessful signal I.
The CPU interrupt signal X (O) is output to the hardware 25, and the CPU hardware (firmware) 25 recognizes the unsuccessful transmission by the processing based on the output.

【0105】その後において、通信用LSI26が上述
したように送信要求信号A*を有意に変化させても、送
信不成功のために、ドライバ制御部30からは有意なド
ライバ制御信号u(G)も有意な前置フラグカウンタ制
御信号Hも出力されない。そのため、ドライバ27は開
かず、通信用LSI26からのフラグパターンはLAN
バスSには出力されない。また、この際には、前置フラ
グ分の計数が前置フラグカウンタ4によって実行されな
いので、その出力である送信許可信号L*は、送信要求
信号A*の有意変化によって直ちに有意に変化し、通信
用LSI26は、パケットデータ(ダミーデータとな
る)の出力動作を直ちに開始するが、上述したようにド
ライバ制御信号u(G)が非有意であるため、そのパケ
ットデータはLANバスSには出力されない。
After that, even if the communication LSI 26 significantly changes the transmission request signal A * as described above, the driver control unit 30 also outputs a significant driver control signal u (G) due to the transmission failure. The significant front flag counter control signal H is also not output. Therefore, the driver 27 does not open, and the flag pattern from the communication LSI 26 is LAN
It is not output to the bus S. Further, at this time, since the count for the prefix flag is not executed by the prefix flag counter 4, the transmission permission signal L *, which is the output thereof, immediately changes significantly due to the significant change of the transmission request signal A *. The communication LSI 26 immediately starts the output operation of packet data (which becomes dummy data), but since the driver control signal u (G) is insignificant as described above, the packet data is output to the LAN bus S. Not done.

【0106】パケットデータの出力が終了すると、通信
用LSI26は、フラグパタンの送出に切り替えると共
に、送信要求信号A*を非有意に変化させる。送信要求
信号A*の非有意変化に呼応してドライバ制御部30か
らの送信許可信号L*も直ちに非有意に変化する。この
場合も、後置フラグカウンタ5は計数動作するが、ドラ
イバ制御信号u(G)が既に非有意であって非有意に変
化させる必要がないので、後置フラグカウンタ5の計数
動作は無意味であり、その時間の通信用LSI26から
のフラグパタンもLANバスSに出力されることはな
い。
When the output of the packet data is completed, the communication LSI 26 switches to the transmission of the flag pattern and changes the transmission request signal A * insignificantly. In response to the non-significant change of the transmission request signal A *, the transmission permission signal L * from the driver control unit 30 also immediately changes to non-significant. In this case as well, the post-position flag counter 5 performs the counting operation, but since the driver control signal u (G) is already insignificant and it is not necessary to change it insignificantly, the counting operation of the post-position flag counter 5 is meaningless. Therefore, the flag pattern from the communication LSI 26 at that time is also not output to the LAN bus S.

【0107】また、通信用LSI26は、パケットデー
タの出力が終了すると、その後、終了処理を行なって、
CPUハードウェア25へ送信完了通知を出し、送信の
一つのシーケンスが終わったことを伝える。CPUハー
ドウェア25は、ドライバ制御部30内の不成功保持部
8の保持内容が「不成功」を指示しており、かつ、送信
完了通知が与えられたことにより、送信が不成功で終了
したことを認識して、許容送信繰返し回数に達していな
ければ再送信の準備を行ない、許容送信繰返し回数に達
していれば送信を諦める。
When the output of the packet data is completed, the communication LSI 26 thereafter carries out an ending process,
A transmission completion notification is issued to the CPU hardware 25 to inform that one transmission sequence has been completed. The CPU hardware 25 indicates that the content held in the unsuccessful holding unit 8 in the driver control unit 30 indicates "unsuccessful", and the transmission completion notification is given, so that the transmission ends unsuccessfully. Recognizing that, if the number of allowable transmission repetitions has not been reached, preparation is made for retransmission, and if the number of allowable transmission repetitions has been reached, transmission is abandoned.

【0108】上述のように、送信要求後の動作で前置フ
ラグ分がないので、CPUハードウェア23上のプログ
ラム(ファームウェア)による送信データ長設定が短か
ければ、送信動作を早く完結させることができ、再送信
に移る際の無駄を少なくできるようになる。
As described above, since there is no prefix flag for the operation after the transmission request, if the transmission data length setting by the program (firmware) on the CPU hardware 23 is short, the transmission operation can be completed quickly. Therefore, it is possible to reduce waste when moving to retransmission.

【0109】(E)実施例の効果 上記実施例のバスアクセス制御装置によれば、以下の効
果を奏することができる。
(E) Effects of the Embodiment According to the bus access control device of the above embodiment, the following effects can be obtained.

【0110】(1) ハードウェア構成のドライバ制御部3
0と通信用LSI26とで送信要求信号A*及び送信許
可信号L*を授受するようにしているので、通信用LS
I26が送信を要求し送信の許可を待ってLANバスS
をアクセスするに要するハンドシェイクのための送信待
ち状態を最小時間とすることができ、送信を速かに実行
できる。
(1) Driver control section 3 of hardware configuration
0 and the communication LSI 26 transmit and receive the transmission request signal A * and the transmission permission signal L *.
I26 requests transmission, waits for permission of transmission, and waits for LAN bus S
The transmission waiting state for the handshake required to access can be set to the minimum time, and the transmission can be executed quickly.

【0111】(2) CPUハードウェア25が通信用LS
I26に送信指令を与え、その通信用LSI26が送信
要求信号A*を有意にする前の準備期間においても、ド
ライバ制御部30が、CPUハードウェア25によって
設定されたウィンドウ期間中にキャリアが検出されるか
を監視するようにしたので、キャリア発生による送信不
成功にCPUハードウェア25が容易で素早く対応でき
るようになり、また、キャリア発生による送信不成功時
にその監視に基いてドライバ27が直ちに閉じるので、
通信用LSI26の送信準備期間中にキャリアが生じて
もLANバスSへの送信を確実に停止させることができ
る。
(2) The CPU hardware 25 is the communication LS
Even in the preparation period before giving a transmission command to I26 and the communication LSI 26 makes the transmission request signal A * significant, the driver control unit 30 detects the carrier during the window period set by the CPU hardware 25. Since the CPU hardware 25 can easily and quickly respond to the transmission failure due to the carrier generation, the driver 27 immediately closes based on the monitoring when the transmission failure due to the carrier generation occurs. So
Even if a carrier occurs during the transmission preparation period of the communication LSI 26, the transmission to the LAN bus S can be surely stopped.

【0112】因に、従来では、CPUハードウェア25
が内部プログラムによってドライバ制御信号を制御して
いたため、通信用LSI26の送信準備期間中にキャリ
アが生じた場合、ドライバ制御信号を非有意に変化させ
ることが遅れてLANバスSにデータが流れてしまうこ
とがあったが、この実施例によれば、上述のように確実
に送信を停止できる。
Incidentally, in the past, CPU hardware 25
Controls the driver control signal by the internal program, and therefore, when a carrier is generated during the transmission preparation period of the communication LSI 26, the driver control signal is delayed non-significantly and data flows to the LAN bus S. However, according to this embodiment, the transmission can be reliably stopped as described above.

【0113】(3) 送信不成功時には、前置フラグ分の時
間を確保することなく、通信許可信号L*を有意に変化
させるようにしたので、通信用LSIの処理にかかる時
間を短縮することができる。この場合において、CPU
ハードウェア25がそのプログラム上でのデータ長を短
縮化する処理を実行するようにさせると、再送信への準
備に素早く移ることができ、バス転送能力やパケット輻
輳時耐力の大きな向上が期待できる。
(3) When the transmission is unsuccessful, the communication permission signal L * is changed significantly without securing the time for the prefix flag, so that the time required for the processing of the communication LSI can be shortened. You can In this case, the CPU
When the hardware 25 is made to execute the processing for shortening the data length on the program, it is possible to quickly move to the preparation for retransmission, and it is possible to expect a great improvement in the bus transfer capability and the resistance against packet congestion. .

【0114】(4) ドライバ制御部30は、上述したよう
に、論理ゲートの組み合わせで構成されているので、L
SI化が容易にでき、ドライバ制御部30を新たに追加
したとしてもバスアクセス制御装置の全体構成を小形な
ものにできる。実際上、LSIの処理速度の1/3〜1
/2の転送速度までを対象としたLANバスSへのアク
セス制御が可能である。すなわち、LSI処理速度が4
0MHzであれば、13〜20Mbit/sの転送速度
までを対象とすることができる。なお、LSIで実現す
る際、必要なゲート数は、前置フラグカウンタ4及び後
置フラグカウンタ5の内蔵カウンタに8ビットのバイナ
リカウンタを用いたとして場合、ほぼ0.7Kゲートに
なる。
(4) Since the driver control section 30 is composed of a combination of logic gates as described above,
The SI can be easily realized, and even if the driver control unit 30 is newly added, the entire configuration of the bus access control device can be made small. Actually, 1/3 to 1 of LSI processing speed
It is possible to control access to the LAN bus S up to a transfer rate of / 2. That is, the LSI processing speed is 4
With 0 MHz, it is possible to target transfer rates up to 13 to 20 Mbit / s. When the LSI is used, the required number of gates is approximately 0.7K when an 8-bit binary counter is used for the built-in counters of the front flag counter 4 and the rear flag counter 5.

【0115】(F)他の実施例 上記実施例においては、電気的なLANバスSをアクセ
スするものを示したが(導電体線によるベースバンドの
符号変調波転送を考えている)、光LANでも、あるい
は、無線LANでも適用可能である。さらに、LAN以
外のネットワーク(情報処理装置内でのバス接続を含
む)のバスアクセス制御装置にも適用可能であり、ネッ
トワーク形式も、バス型だけでなく、適用可能ならばリ
ング型や格子型やメッシュ型であっても問題がない。従
って、通信方式もパケット転送方式に限定されるもので
はない。
(F) Other Embodiments In the above-mentioned embodiment, the one in which the electric LAN bus S is accessed has been shown (the transfer of the baseband code modulated wave by the conductor line is considered), but the optical LAN is used. However, it is also applicable to a wireless LAN. Further, the present invention can be applied to a bus access control device for networks other than LAN (including bus connection in the information processing device), and the network type is not limited to the bus type, but may be a ring type or a lattice type if applicable. There is no problem even if it is a mesh type. Therefore, the communication method is not limited to the packet transfer method.

【0116】また、上記実施例においては、CPUハー
ドウェア25とドライバ制御部30とのインタフェース
をI/Oポート7を用いて行なうものを示したが、イン
タフェースがとれれば良いので、DMA転送方式等の他
のインタフェース形態も適用可能である。
Further, in the above embodiment, the interface between the CPU hardware 25 and the driver control unit 30 is shown by using the I / O port 7, but it is sufficient if the interface can be established. Other interface forms are also applicable.

【0117】さらに、上記実施例においては、ウィンド
ウ開始信号をCPUハードウェア25が出力するものを
示したが、通信用LSI26が通信コマンドの受信時に
まず最初の処理として出力するようにしても良い。
Furthermore, in the above embodiment, the window start signal is output from the CPU hardware 25, but it may be output as the first process when the communication LSI 26 receives a communication command.

【0118】さらにまた、図3において、キャリア検出
部29は、LANバスSから信号を直接取込んでいる
が、場合によっては、レシーバ28で取込んだ後の信号
からキャリア検出を行なうようにしても良い。
Further, in FIG. 3, the carrier detecting unit 29 directly takes in the signal from the LAN bus S, but in some cases, the carrier detecting unit 29 may carry out carrier detection from the signal after being taken in by the receiver 28. Is also good.

【0119】上記実施例においては、通信用LSI26
とドライバ制御部30とが別個のLSIで構成されるよ
うに説明したが、同一LSI上に構成されても良く、さ
らには、CPUハードウェア25等をも同一LSI上に
搭載しても良い。逆に、通信用LSI26やドライバ制
御部30は、複数の集積回路やディスクリート部品で構
成されたものであっても良い。すなわち、上記実施例で
は、説明の簡単化のために、ドライバ制御部30に図1
に示した各部を搭載したように説明したが、その一部の
要素を通信用LSI26側に搭載しても良い。
In the above embodiment, the communication LSI 26 is used.
Although the driver control unit 30 and the driver control unit 30 are configured as separate LSIs, they may be configured on the same LSI, and the CPU hardware 25 and the like may also be mounted on the same LSI. On the contrary, the communication LSI 26 and the driver control unit 30 may be composed of a plurality of integrated circuits or discrete components. That is, in the above-described embodiment, the driver control unit 30 has the same structure as that shown in FIG.
Although the description has been made assuming that the respective units shown in are mounted, some of the elements may be mounted on the communication LSI 26 side.

【0120】本発明は、ドライバ制御部30の構成、及
びドライバ制御部30を設けたことに特徴を有するもの
であり、CPUハードウェア25や通信用LSI26の
処理は、上記実施例の説明とは若干異なる処理を行なう
ものであっても良い。
The present invention is characterized by the configuration of the driver control unit 30 and the provision of the driver control unit 30, and the processing of the CPU hardware 25 and the communication LSI 26 is not the same as that of the above embodiment. It may be a slightly different process.

【0121】[0121]

【発明の効果】以上のように、本発明によれば、通信制
御手段、通信手段、ドライバ手段及びキャリア検出手段
に加えて、通信制御手段又は通信手段によって開始起動
された時点から、通信手段からの送信要求信号の有意変
化までをウィンドウ期間とし、このウィンドウ期間に有
意なキャリア検出信号が与えられた場合に送信不成功と
判定すると共に、これ以外で送信成功と判定し、その判
定結果に応じて、送信要求信号に対して返信する送信許
可信号と、ドライバ手段に与えるドライバ制御信号と、
送信不成功時に通信制御手段にそのことを通知する不成
功通知信号とを形成するドライバ制御手段を設けたの
で、送信準備中にキャリア信号が生じてもネットワーク
バスへの送信を確実に禁止できる、しかも、再送信の準
備を迅速に実行可能なバスアクセス制御装置を提供でき
る。
As described above, according to the present invention, in addition to the communication control means, the communication means, the driver means, and the carrier detection means, from the time when the communication control means or the communication means starts and starts, The window period is up to the significant change of the transmission request signal of, and if a significant carrier detection signal is given in this window period, it is determined that the transmission is unsuccessful, and in other cases, it is determined that the transmission is successful, and depending on the determination result. A transmission permission signal returned in response to the transmission request signal, a driver control signal given to the driver means,
Since the driver control means for forming the unsuccessful notification signal for notifying the communication control means at the time of unsuccessful transmission is provided, the transmission to the network bus can be surely prohibited even if a carrier signal occurs during preparation for transmission. Moreover, it is possible to provide a bus access control device that can quickly perform preparations for retransmission.

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

【図1】実施例のドライバ制御部の詳細構成を示すブロ
ック図である。
FIG. 1 is a block diagram illustrating a detailed configuration of a driver control unit according to an embodiment.

【図2】従来装置を示すブロック図である。FIG. 2 is a block diagram showing a conventional device.

【図3】実施例装置の全体を示すブロック図である。FIG. 3 is a block diagram showing the entire apparatus of the embodiment.

【図4】実施例のエッジ検出/タイミング生成部のタイ
ムチャートである。
FIG. 4 is a time chart of the edge detection / timing generation unit according to the embodiment.

【図5】実施例の後置フラグカウンタのタイムチャート
である。
FIG. 5 is a time chart of a post flag counter according to the embodiment.

【図6】実施例のウィンドウ部の詳細構成を示すブロッ
ク図である。
FIG. 6 is a block diagram showing a detailed configuration of a window unit of the embodiment.

【図7】実施例の不成功判定/ドライバON決定部の詳
細構成を示すブロック図である。
FIG. 7 is a block diagram illustrating a detailed configuration of an unsuccessfulness determination / driver ON determination unit according to the embodiment.

【図8】実施例の不成功判定/ドライバON決定部等の
タイムチャート(その1)である。
FIG. 8 is a time chart (No. 1) of the failure determination / driver ON determination unit and the like in the embodiment.

【図9】実施例の不成功判定/ドライバON決定部等の
タイムチャート(その2)である。
FIG. 9 is a time chart (No. 2) of the failure determination / driver ON determination unit and the like in the embodiment.

【図10】実施例の前置フラグカウンタのタイムチャー
ト(その1)である。
FIG. 10 is a time chart (No. 1) of the front flag counter according to the embodiment.

【図11】実施例の前置フラグカウンタのタイムチャー
ト(その2)である。
FIG. 11 is a time chart (No. 2) of the front flag counter according to the embodiment.

【図12】実施例のCPUハードウェアの処理を示すフ
ローチャートである。
FIG. 12 is a flowchart showing the processing of the CPU hardware of the embodiment.

【図13】実施例の全体処理を説明するタイムチャート
(その1)である。
FIG. 13 is a time chart (No. 1) illustrating the overall processing of the embodiment.

【図14】実施例の全体処理を説明するタイムチャート
(その2)である。
FIG. 14 is a time chart (No. 2) explaining the overall processing of the embodiment.

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

1…不成功判定/ドライバON決定部、2…ウィンドウ
部、3…エッジ検出/タイミング生成部、4…前置フラ
グカウンタ、5…後置フラグカウンタ、6…アンドゲー
ト、7…I/Oポート、8…不成功保持部、9…エッジ
検出部、25…CPUハードウェア、26…通信用LS
I、27…ドライバ、28…レシーバ、29…キャリア
検出部、30…ドライバ制御部、S…LANバス。
DESCRIPTION OF SYMBOLS 1 ... Unsuccessful determination / driver ON determination unit, 2 ... Window unit, 3 ... Edge detection / timing generation unit, 4 ... Prefix flag counter, 5 ... Postfix flag counter, 6 ... AND gate, 7 ... I / O port , 8 ... Failure holding unit, 9 ... Edge detection unit, 25 ... CPU hardware, 26 ... Communication LS
I, 27 ... Driver, 28 ... Receiver, 29 ... Carrier detection unit, 30 ... Driver control unit, S ... LAN bus.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数の通信ノードに共通なネットワーク
バス上にキャリア信号がないことを条件として、自ノー
ドからの送信信号を上記ネットワークバスに乗せるバス
アクセス制御装置において、 自ノードの通信処理を制御する通信制御手段と、 この通信制御手段からの信号をネットワークバス上に乗
せる送信信号に変換して出力する通信手段と、 この通信手段からの出力送信信号の上記ネットワークバ
スへの通過、非通過をドライバ制御信号に応じて制御す
るドライバ手段と、 上記ネットワークバス上にキャリア信号があることを検
出するキャリア検出手段と、 上記通信制御手段又は上記通信手段によって開始起動さ
れた時点から上記通信手段からの送信要求信号の有意変
化までをウィンドウ期間とし、このウィンドウ期間に有
意なキャリア検出信号が与えられた場合に送信不成功と
判定すると共に、これ以外で送信成功と判定し、その判
定結果に応じて、上記送信要求信号に対して返信する送
信許可信号と、上記ドライバ手段に与えるドライバ制御
信号と、送信不成功時に上記通信制御手段にそのことを
通知する不成功通知信号とを形成するドライバ制御手段
とを有することを特徴とするバスアクセス制御装置。
1. A bus access control device for placing a transmission signal from the own node on the network bus on condition that there is no carrier signal on the network bus common to a plurality of communication nodes, and controls communication processing of the own node. Communication control means, a communication means for converting a signal from the communication control means into a transmission signal to be put on a network bus and outputting the transmission signal, and a passage or non-passage of the output transmission signal from the communication means to the network bus. Driver means for controlling according to a driver control signal, carrier detecting means for detecting the presence of a carrier signal on the network bus, and communication means from the communication control means or the communication means from the time when the communication means is started. The window period is until the significant change of the transmission request signal, and the significant period is changed during this window period. A) When the detection signal is given, it is determined that the transmission is unsuccessful, and in other cases, it is determined that the transmission is successful, and in accordance with the determination result, a transmission permission signal for returning to the transmission request signal, and the driver means. And a driver control means for forming an unsuccessful notification signal for notifying the communication control means when the transmission is unsuccessful, and a bus access control device.
【請求項2】 送信信号本体の前にフラグパタンを付け
て上記ネットワークバスに送出することを要するネット
ワークのいずれかの上記通信ノードに設けられた請求項
1に記載のバスアクセス制御装置において、 上記ドライバ制御手段に、送信不成功判定時に、上記通
信手段から直ちに送信信号本体を出力させる、送信成功
判定時での前置フラグ時間に想到する時間を削除する部
分を設けたことを特徴とするバスアクセス制御装置。
2. The bus access control device according to claim 1, wherein the bus access control device is provided in any one of the communication nodes of a network that requires a flag pattern before a transmission signal body to be transmitted to the network bus. Bus access, characterized in that the control means is provided with a portion for causing the communication means to immediately output the transmission signal main body at the time of transmission failure determination, and for deleting a time conceivable to the prefix flag time at the time of transmission success determination Control device.
JP09208695A 1995-04-18 1995-04-18 Bus access control device Expired - Fee Related JP3432328B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09208695A JP3432328B2 (en) 1995-04-18 1995-04-18 Bus access control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09208695A JP3432328B2 (en) 1995-04-18 1995-04-18 Bus access control device

Publications (2)

Publication Number Publication Date
JPH08288958A true JPH08288958A (en) 1996-11-01
JP3432328B2 JP3432328B2 (en) 2003-08-04

Family

ID=14044640

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09208695A Expired - Fee Related JP3432328B2 (en) 1995-04-18 1995-04-18 Bus access control device

Country Status (1)

Country Link
JP (1) JP3432328B2 (en)

Also Published As

Publication number Publication date
JP3432328B2 (en) 2003-08-04

Similar Documents

Publication Publication Date Title
JP3340457B2 (en) Repeater interface controller
US4561092A (en) Method and apparatus for data communications over local area and small area networks
JP2709820B2 (en) Multiprotocol communication controller in single integrated circuit microcontroller
US4785396A (en) Push-pull serial bus coupled to a plurality of devices each having collision detection circuit and arbitration circuit
JPH01125652A (en) Data intermediation and collision detection for data bus
US4787083A (en) Bus-method communication network system capable of seizing transmission right by using timer means at each station
JPH05276175A (en) Data communication method and communication system
WO2011017997A1 (en) Method and device for controlling communication bus
JPH09200212A (en) Lan terminal and method for avoiding collision between terminals
CN106899472A (en) A kind of unidirectional ring network controller and its application method
EP0877511A2 (en) System and method for improving CSMA/CD network performance during collisions
JP2003348105A (en) Can controller
US5982781A (en) Process for information transmission in a bus system having several participants
JP2812665B2 (en) Data collision detection circuit and detection method for communication network
JP3432328B2 (en) Bus access control device
JPH08503353A (en) Communication bus systems and stations used in such systems
JP3401160B2 (en) Distributed shared memory network device
US5949818A (en) Expandable ethernet network repeater unit
EP0187503A2 (en) Shared line communication system
EP0872980B1 (en) Handshaking circuit for resolving contention on a transmission medium regardless of its length
JP2000269993A (en) Data transmission method and transmission device
JP2628620B2 (en) Collision reduction method and communication control device
JPH05233538A (en) Serial data transfer device
JPH0918504A (en) Data communication device
JP3154626B2 (en) Serial transmission device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080523

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090523

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100523

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100523

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110523

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120523

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130523

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees