JPH04313936A - Communication equipment - Google Patents

Communication equipment

Info

Publication number
JPH04313936A
JPH04313936A JP3066410A JP6641091A JPH04313936A JP H04313936 A JPH04313936 A JP H04313936A JP 3066410 A JP3066410 A JP 3066410A JP 6641091 A JP6641091 A JP 6641091A JP H04313936 A JPH04313936 A JP H04313936A
Authority
JP
Japan
Prior art keywords
buffer
data
signal
communication device
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3066410A
Other languages
Japanese (ja)
Inventor
Yasushi Okamoto
岡本 泰
Shinji Suda
須田 眞二
Kikuo Muramatsu
菊男 村松
Etsuya Yokoyama
横山 悦也
Yoshikazu Sato
由和 佐藤
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3066410A priority Critical patent/JPH04313936A/en
Priority to DE69232645T priority patent/DE69232645T2/en
Priority to EP96201723A priority patent/EP0739119B1/en
Priority to DE69232445T priority patent/DE69232445T2/en
Priority to EP92302756A priority patent/EP0506481B1/en
Priority to DE69216671T priority patent/DE69216671T2/en
Priority to EP96201722A priority patent/EP0739118B1/en
Publication of JPH04313936A publication Critical patent/JPH04313936A/en
Priority to US08/495,335 priority patent/US5768625A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a buffer memory, especially that buffering a communication data for transmission and reception. CONSTITUTION:Addresses of a buffer memory are allocated so that high-order bits designate any of plural transmission and reception buffers 1, 2a, 2b and low-order its designate sequentially each storage area in each buffer. When a high-order bit of an address is given, a counter generates a low-order bit sequentially and automatically and both bits are integrated into an address signal to access each storage area of the buffer by an address generating means. Moreover, when information to be received is stored in each buffer, the number of storage areas used for storing the information is stored in a head storage area and the information to be received is stored in each buffer, then a CRC check data of the area is stored in a storage area next to the end storage area in use.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は通信装置に関し、更に詳
述すれば、バッファメモリ、特に送受信のために通信デ
ータをバッファリングするバッファメモリに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication device, and more particularly to a buffer memory, and particularly to a buffer memory for buffering communication data for transmission and reception.

【0002】0002

【従来の技術】アメリカ合衆国では1995年以降、乗
用車に関してブライアン法案による規制の実施が予定さ
れている。
BACKGROUND OF THE INVENTION In the United States, from 1995 onwards, passenger cars are scheduled to be regulated by the Bryan Bill.

【0003】この法案では、1995年時点での燃費が
1988年に比して20%向上していること、また20
00年時点では同じく40%向上していることを条件に
アメリカ合衆国内での乗用車の販売が認められる。乗用
車の燃費を向上させるためには、車体の軽量化が最も効
果的である。この車体の軽量化を達成するには、ワイヤ
ハーネスを削減して配線を簡素化することが可能な車内
LAN の導入が有効である。
[0003] This bill stipulates that fuel efficiency in 1995 had improved by 20% compared to 1988;
As of 2000, sales of passenger cars in the United States are permitted on the condition that the same 40% improvement is achieved. The most effective way to improve the fuel efficiency of passenger cars is to reduce the weight of the car body. In order to achieve this weight reduction of the vehicle body, it is effective to introduce an in-vehicle LAN that can reduce the number of wire harnesses and simplify wiring.

【0004】また、アメリカ合衆国カリフォルニア州の
大気資源委員会(CARB:Carifornia A
ir Resouces Board)では1994年
モデル以降の乗用車に関して、大気資源保護の目的から
、排ガスに関連した規制の実施を予定している。この規
制では、 NOx及びHC, CO等の有害物質の排出
量を現時点よりも減少させる必要が有ることは勿論、更
に乗用車のエンジン制御ユニットにそのユニットに接続
される各種センサ, 排ガス制御部品 (触媒等) の
劣化、あるいは故障を検知してユーザに知らせるオンボ
ードダイアグノッシスと称される自己診断機能を備える
ことが要求されている。このための故障診断データ及び
データ転送フォーマットの仕様についても既にSAE−
J1850 又はISO−9141として公表されてい
る。
[0004] Also, the California Air Resources Board (CARB) of the United States of America
The ir Resources Board is planning to implement exhaust gas-related regulations for passenger cars from the 1994 model year onwards, with the aim of protecting air resources. Under these regulations, it goes without saying that emissions of harmful substances such as NOx, HC, and CO need to be reduced compared to the current level, but also include various sensors and exhaust gas control parts (catalysts) connected to the engine control unit of passenger cars. etc.) is required to have a self-diagnosis function called on-board diagnostics that detects deterioration or failure and notifies the user. The specifications for the failure diagnosis data and data transfer format for this purpose have already been established by SAE
It is published as J1850 or ISO-9141.

【0005】一方、上述の規制とは関係なく、近年の乗
用車の制御ユニットの高機能化及び機能の多種類化に伴
って、自己診断機能用のネットワークを乗用車内に張り
巡らせて種々の制御ユニットの動作をモニタする技術が
既に導入されている。また、制御ユニットのみならず、
ナビゲーションシステム,オーディオシステム,エアコ
ンディション,電話等の種々のシステムの操作,表示の
ネットワーク化が進みつつある。このような観点からも
、乗用車に対する車内LANの導入が不可欠になりつつ
ある。
On the other hand, irrespective of the above-mentioned regulations, as the control units of passenger cars have become more sophisticated and have a wider variety of functions in recent years, networks for self-diagnosis functions have been spread throughout passenger cars, and various control units have become more sophisticated. Technology has already been introduced to monitor the operation of In addition to the control unit,
Networking of operations and displays of various systems such as navigation systems, audio systems, air conditioning, and telephones is progressing. From this point of view as well, it is becoming essential to introduce in-vehicle LANs to passenger cars.

【0006】[0006]

【発明が解決しようとする課題】以上のように、今後の
乗用車の軽量化,高機能化等のために主として乗用車内
のワイヤハーネスの削減と配線の簡素化が可能な車内L
AN の導入は不可欠であり、そのためには前述のSA
E−J1850 又はISO−9141の仕様に準拠し
た通信装置を使用する必要がある。本発明は以上のよう
な事情に鑑みてなされたものであり、主としてSAE−
J1850又はISO−9141の仕様に準拠した通信
装置、特にそのバッファメモリの提供を主たる目的とす
る。
[Problems to be Solved by the Invention] As described above, in order to reduce the weight and improve functionality of future passenger cars, it is possible to reduce the number of wire harnesses and simplify the wiring inside the passenger car.
The introduction of AN is essential, and for that purpose the SA mentioned above is necessary.
It is necessary to use a communication device that complies with E-J1850 or ISO-9141 specifications. The present invention has been made in view of the above circumstances, and is mainly directed to SAE-
The main purpose of the present invention is to provide a communication device that complies with J1850 or ISO-9141 specifications, especially a buffer memory thereof.

【0007】[0007]

【課題を解決するための手段】本発明の通信装置は、そ
のバッファメモリのアドレスが、上位ビットにより複数
の送信バッファ及び受信バッファのいずれかを指定し、
下位ビットによりそれぞれのバッファ内の各記憶領域を
順次的に指定するように割付けられている。
[Means for Solving the Problems] A communication device of the present invention has a buffer memory whose address specifies one of a plurality of transmitting buffers and receiving buffers by high-order bits,
The lower bits are allocated to sequentially designate each storage area within each buffer.

【0008】また本発明の通信装置は、アドレスの上位
ビットが与えられた場合に、下位ビットを順次的に自動
的に発生するカウンタを有し、外部から与えられた上位
ビットとカウンタが発生した下位ビットとをアドレス信
号として出力することにより、上述のようなアドレス割
付けのバッファメモリの一つのバッファの各記憶領域を
アクセスすることが可能なアドレス発生手段を備えてい
る。
Further, the communication device of the present invention has a counter that automatically generates lower bits in sequence when upper bits of an address are given, and when upper bits given from the outside and the counter are generated. The present invention includes an address generating means that can access each storage area of one buffer of the buffer memory with the above-mentioned address allocation by outputting the lower bits as an address signal.

【0009】更に本発明の通信装置は、送信すべき情報
又は受信すべき情報が各バッファに格納された場合に、
その情報の格納に使用される記憶領域の数が先頭の記憶
領域に格納されるように構成されている。
Furthermore, the communication device of the present invention provides that when information to be transmitted or information to be received is stored in each buffer,
The configuration is such that the number of storage areas used to store the information is stored in the first storage area.

【0010】また更に本発明の通信装置は、受信すべき
情報が各バッファに格納された場合に、その情報の C
RCチェックのデータが使用されている末尾の記憶領域
の次の記憶領域に格納されるように構成されている。
Furthermore, in the communication device of the present invention, when information to be received is stored in each buffer, the C of the information is
The configuration is such that the RC check data is stored in the storage area next to the last storage area in use.

【0011】[0011]

【作用】本発明の通信装置では、そのバッファメモリの
アドレスが、上位ビットにより複数の送信バッファ及び
受信バッファのいずれかを指定し、下位ビットによりそ
れぞれのバッファ内の各記憶領域を順次的に指定するよ
うに割付けられており、且つアドレスの上位ビットが与
えられた場合に、下位ビットを順次的に自動的に発生す
るカウンタを有し、外部から与えられた上位ビットとカ
ウンタが発生した下位ビットとをアドレス信号として出
力することにより、上述のようなアドレス割付けのバッ
ファメモリの一つのバッファの各記憶領域をアクセスす
ることが可能なアドレス発生手段を備えているので、外
部からアドレスの上位ビットを与えるのみにて、それぞ
れのバッファを指定し、かつそのバッファ内の各記憶領
域がアクセスされる。
[Operation] In the communication device of the present invention, the address of the buffer memory specifies one of a plurality of transmission buffers and reception buffers using the upper bits, and sequentially specifies each storage area within each buffer using the lower bits. It has a counter that automatically generates the lower bits in sequence when the upper bits of the address are given, and the upper bits given from the outside and the lower bits generated by the counter are Since it is equipped with an address generation means that can access each storage area of one buffer of the buffer memory with the above-mentioned address allocation by outputting this as an address signal, it is possible to access the upper bits of the address from outside. By simply specifying each buffer, each storage area within that buffer is accessed.

【0012】更に本発明の通信装置では、送信すべき情
報又は受信すべき情報が各バッファに格納された場合に
、その情報の格納に使用される記憶領域の数が先頭の記
憶領域に格納されるので、各バッファから情報が読出さ
れる際は、その情報の最初のデータが読出された時点で
実際に読出しが必要な記憶領域の数が判明し、この値と
上述の下位ビットのアドレス信号を出力するカウンタの
出力値とを情報が読出される都度比較することにより、
一致した場合に情報の読出しが停止される。
Furthermore, in the communication device of the present invention, when information to be transmitted or information to be received is stored in each buffer, the number of storage areas used to store the information is stored in the first storage area. Therefore, when information is read from each buffer, the number of storage areas that actually need to be read is known at the time the first data of that information is read, and this value and the lower bit address signal mentioned above are used. By comparing the output value of the counter that outputs the information each time the information is read,
If they match, reading of information is stopped.

【0013】また更に本発明の通信装置では、受信すべ
き情報が各バッファに格納された場合に、その情報の格
納に使用されている末尾の記憶領域の次の記憶領域に 
CRCチェックのデータが格納されるので、その情報の
送信時に生成された CRCデータを受信側にて再度受
信データに対して生成したCRCデータと比較すること
が可能になる。
Furthermore, in the communication device of the present invention, when information to be received is stored in each buffer, the information is stored in the storage area next to the last storage area used for storing the information.
Since the CRC check data is stored, it becomes possible for the receiving side to compare the CRC data generated at the time of transmitting the information with the CRC data generated for the received data again.

【0014】[0014]

【実施例】以下、本発明をその実施例を示す図面に基づ
いて詳述する。なお、以下に説明する本発明の通信装置
は、前述のSAE1850 に準拠したプロトコル制御
を行い、その送信及び受信のデータ列はSAE2054
 に規定されたフレームフォーマットに従う複数のデー
タ列よりなるものである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to drawings showing embodiments thereof. The communication device of the present invention described below performs protocol control in accordance with the aforementioned SAE 1850, and its transmission and reception data strings comply with SAE 2054.
It consists of multiple data strings according to the frame format specified in .

【0015】図1は本発明の通信装置のバッファメモリ
の構成の概略を示すブロック図である。
FIG. 1 is a block diagram schematically showing the configuration of a buffer memory of a communication device according to the present invention.

【0016】ここで、本発明の通信装置の構成を説明す
る前に、まず図4の本発明の通信装置の全体構成を示す
ブロック図を参照してデータの送信及び受信の際の全体
のデータの流れについての概念を説明する。
Before explaining the configuration of the communication device according to the present invention, first, referring to a block diagram showing the overall configuration of the communication device according to the present invention shown in FIG. Explain the concept of flow.

【0017】図4において、本発明の通信装置8はマイ
クロコンピュータ91と LAN伝送路90との間に位
置し、マイクロコンピュータインタフェイスブロック 
(以下、マイクロコンピュータIFブロックという) 
11と、バッファメモリブロック9と、 LANインタ
フェイスブロック (以下、LAN IFブロックとい
う)10 とから構成されている。
In FIG. 4, the communication device 8 of the present invention is located between a microcomputer 91 and a LAN transmission line 90, and is connected to a microcomputer interface block.
(hereinafter referred to as microcomputer IF block)
11, a buffer memory block 9, and a LAN interface block (hereinafter referred to as LAN IF block) 10.

【0018】マイクロコンピュータ91から LAN伝
送路90へデータを送信する場合のデータ列の転送はマ
イクロコンピュータ91から参照符号18a, 18,
 13, 13aにて示すようにデータ列がマイクロコ
ンピュータIFブロック11, バッファメモリブロッ
ク9, LAN IFブロック10を順次転送されて 
LAN伝送路90へ送出される。
When transmitting data from the microcomputer 91 to the LAN transmission line 90, the data string is transferred from the microcomputer 91 to reference numerals 18a, 18, 18,
As shown in 13 and 13a, the data string is sequentially transferred to the microcomputer IF block 11, buffer memory block 9, and LAN IF block 10.
It is sent to the LAN transmission line 90.

【0019】具体的には、参照符号18a にて示すよ
うに、送信データ列はマイクロコンピュータ91から通
信装置8中のマイクロコンピュータIFブロック11へ
転送され、次に参照符号18にて示すように、バッファ
メモリブロック9へ転送され、更に参照符号13にて示
すように、LAN IFブロック10へ転送され、最後
に参照符号13a にて示すように、LAN IFブロ
ック10から LAN伝送路90へ送出されて送信動作
の完了となる。
Specifically, as indicated by the reference numeral 18a, the transmission data string is transferred from the microcomputer 91 to the microcomputer IF block 11 in the communication device 8, and then, as indicated by the reference numeral 18, The data is transferred to the buffer memory block 9, further transferred to the LAN IF block 10 as shown by reference numeral 13, and finally sent from the LAN IF block 10 to the LAN transmission line 90 as shown by reference numeral 13a. The transmission operation is completed.

【0020】なお、上述のような送信データ列の転送タ
イミングの一連の制御はマイクロコンピュータIFブロ
ック11, バッファメモリブロック9, LAN I
Fブロック10の各ブロックにて行われる。
[0020] A series of controls for the transfer timing of the transmission data string as described above are carried out by the microcomputer IF block 11, the buffer memory block 9, and the LAN I
This is performed in each block of the F block 10.

【0021】次に LAN伝送路90からマイクロコン
ピュータ91にデータ列が受信される場合の受信データ
列の転送方向について説明する。
Next, the direction of transfer of a received data string when the data string is received from the LAN transmission line 90 to the microcomputer 91 will be explained.

【0022】LAN伝送路90から受信されたデータ列
はLAN IFブロック10から参照符号15a, 1
5, 20, 20aにて示すようにデータ列がLAN
 IFブロック10, バッファメモリブロック9, 
マイクロコンピュータIFブロック11を順次転送され
てマイクロコンピュータ91に入力される。
The data string received from the LAN transmission path 90 is transmitted from the LAN IF block 10 to reference numerals 15a and 1.
As shown in 5, 20, 20a, the data string is LAN
IF block 10, buffer memory block 9,
The data is sequentially transferred through the microcomputer IF block 11 and input to the microcomputer 91.

【0023】具体的には、参照符号15a にて示すよ
うに、受信データ列は LAN伝送路90から通信装置
8中のLAN IFブロック10へ転送され、参照符号
15にて示すように、バッファメモリブロック9へ転送
される。そして、参照符号20にて示すように、受信デ
ータ列及び受信データ列に関する同一属性を有するデー
タがマイクロコンピュータIFブロック11に転送され
、参照符号20a にて示すように、マイクロコンピュ
ータ91にデータ列が転送される。
Specifically, as indicated by the reference numeral 15a, the received data string is transferred from the LAN transmission line 90 to the LAN IF block 10 in the communication device 8, and as indicated by the reference numeral 15, it is transferred to the buffer memory. Transferred to block 9. Then, as indicated by reference numeral 20, the received data string and data having the same attributes regarding the received data string are transferred to the microcomputer IF block 11, and the data string is transferred to the microcomputer 91, as indicated by reference numeral 20a. be transferred.

【0024】なお、上述のような受信データ列の転送の
タイミングの一連の制御は送信の場合と同様に、マイク
ロコンピュータIFブロック11, バッファメモリブ
ロック9,LAN IFブロック10の各ブロックにて
行われる。
[0024] A series of controls on the timing of transfer of the received data string as described above are performed in each block of the microcomputer IF block 11, buffer memory block 9, and LAN IF block 10, as in the case of transmission. .

【0025】上述のような図4に示されている通信装置
8中のバッファメモリブロック9内に図1に示されてい
るバッファメモリが配置されている。
The buffer memory shown in FIG. 1 is disposed within the buffer memory block 9 in the communication device 8 shown in FIG. 4 as described above.

【0026】次にバッファメモリの構成例をその構成の
概略を示すブロック図である図1を参照して説明する。
Next, an example of the structure of the buffer memory will be explained with reference to FIG. 1, which is a block diagram showing an outline of the structure.

【0027】バッファメモリは、大きく分けると、送信
バッファ1と、受信バッファ群2と、送信データ列及び
受信データ列 (以下、データ列をフレームと表現し、
送信データ列を送信フレーム, 受信データ列を受信フ
レームという) の状態 (ステータス) を管理する
ためのデータが格納されるレジスタ群 (以下、ステー
タスレジスタ群という) 3と、1フレームのデータ転
送状態をそれぞれ格納する複数のレジスタからなるレジ
スタ群5と、1フレーム中の特定のデータをそれぞれ格
納する複数のレジスタからなるレジスタ群6とで構成さ
れている。
The buffer memory can be roughly divided into a transmission buffer 1, a reception buffer group 2, a transmission data string, and a reception data string (hereinafter, a data string is expressed as a frame,
A group of registers (hereinafter referred to as status register group) 3 stores data for managing the status of a transmitted data string (sent data string is called a transmit frame, a received data string is called a received frame), and a data transfer state of one frame is stored. It is comprised of a register group 5 consisting of a plurality of registers each storing data, and a register group 6 consisting of a plurality of registers each storing specific data in one frame.

【0028】送信バッファ1は、送信データ列を格納す
る複数のレジスタにて構成されており、1組が備えられ
ている。
The transmission buffer 1 is composed of a plurality of registers for storing transmission data strings, and one set is provided.

【0029】受信バッファ群2は、第1,第2受信バッ
ファ2a, 2bの2組が備えられている。それぞれの
受信バッファ2a, 2bは受信フレームをそれぞれ1
フレーム格納する複数のレジスタにて構成されている。
The reception buffer group 2 includes two sets of first and second reception buffers 2a and 2b. Each receive buffer 2a, 2b receives one received frame.
It consists of multiple registers that store frames.

【0030】ステータスレジスタ群3は、上述の如く、
送信フレーム及び受信フレームの状態を管理するための
データがそれぞれ1データ格納される第1,第2,第3
,第4ステータスレジスタ3a, 3b, 3c, 3
dにて構成されている。
As mentioned above, the status register group 3 includes:
The first, second, and third sections each store one piece of data for managing the status of the transmitted frame and the received frame.
, fourth status register 3a, 3b, 3c, 3
It is composed of d.

【0031】レジスタ群5は、送信エラーレジスタ4と
受信エラーレジスタ群5dとで構成されている。
The register group 5 is composed of a transmission error register 4 and a reception error register group 5d.

【0032】送信エラーレジスタ4は、1組の送信フレ
ームの送信状態に関するデータが格納されるレジスタで
ある。また、受信エラーレジスタ群5dは、1組の受信
フレームの受信状態に関するデータがそれぞれ格納され
る第1,第2,第3受信エラーレジスタ5a, 5b,
 5cにて構成されている。
The transmission error register 4 is a register in which data regarding the transmission status of a set of transmission frames is stored. Furthermore, the reception error register group 5d includes first, second, and third reception error registers 5a, 5b, and 5b, each storing data regarding the reception status of a set of reception frames.
5c.

【0033】レジスタ群6は、ソースアドレスレジスタ
群6dと返信RSP レジスタ7とで構成されている。
The register group 6 is composed of a source address register group 6d and a reply RSP register 7.

【0034】ソースアドレスレジスタ群6dは、1組の
受信フレーム中の特定のデータをそれぞれ格納する第1
,第2,第3ソースアドレスレジスタ6a, 6b, 
6cにて構成されている。また、返信RSP レジスタ
7は、1組の送信フレームに関する特定のデータを格納
するレジスタである。
The source address register group 6d includes first registers each storing specific data in a set of received frames.
, second and third source address registers 6a, 6b,
6c. Further, the reply RSP register 7 is a register that stores specific data regarding one set of transmission frames.

【0035】次に、本発明の通信装置のバッファメモリ
の具体的な構成を示す図2及び図3を参照して、更に具
体的に本発明の通信装置のバッファメモリの構成につい
て説明する。
Next, the configuration of the buffer memory of the communication device of the present invention will be explained in more detail with reference to FIGS. 2 and 3 showing the specific configuration of the buffer memory of the communication device of the present invention.

【0036】送信バッファ1は、1フレーム分の送信フ
レームを構成する複数のデータをそれぞれ格納するため
の15のレジスタにて構成されている。送信バッファ1
の各レジスタは8ビット(1バイト) のデータ容量で
あり、先頭アドレス側から順に、メッセージ長, 優先
コード, デスティネーションアドレス, ソースアド
レス, タイプフォーマット/ダイアグモードの各デー
タ, 最大10バイトの通信データがそれぞれ格納され
る。
The transmission buffer 1 is composed of 15 registers each for storing a plurality of data constituting one transmission frame. Transmission buffer 1
Each register has a data capacity of 8 bits (1 byte), and in order from the first address side, the message length, priority code, destination address, source address, type format/diagnosis mode data, and up to 10 bytes of communication data. are stored respectively.

【0037】受信バッファ群2は、受信されたフレーム
を2フレーム分格納できる。このため、受信バッファ群
2には同一構成の第1及び第2受信バッファ2a及び2
bが備えられている。各受信バッファ2a, 2bはそ
れぞれ1フレーム分の受信フレームを構成する複数のデ
ータをそれぞれ格納するための16のレジスタにて構成
されている。 第1及び第2受信バッファ2a及び2bの各レジスタは
8ビット(1バイト) のデータ容量であり、先頭アド
レス側から順に、メッセージ長, 優先コード, デス
ティネーションアドレス, ソースアドレス, タイプ
フォーマット/ダイアグモードの各データ, 最大10
バイトの通信データ, CRCデータがそれぞれ格納さ
れる。
The reception buffer group 2 can store two received frames. Therefore, the receiving buffer group 2 includes first and second receiving buffers 2a and 2 having the same configuration.
b is provided. Each of the receive buffers 2a and 2b is composed of 16 registers each for storing a plurality of data constituting one received frame. Each register of the first and second reception buffers 2a and 2b has a data capacity of 8 bits (1 byte), and in order from the first address side, the message length, priority code, destination address, source address, type format/diagnosis mode. each data, maximum 10
Bytes of communication data and CRC data are stored respectively.

【0038】第1,第2,第3,第4ステータレジスタ
3a, 3b, 3c, 3dは、上述の送信バッファ
1に格納されている1送信フレーム及び両受信バッファ
2a及び2bに格納されている2受信フレーム、更に両
受信バッファ2a及び2bにそれぞれ受信フレームが格
納されている場合に第3のフレームの受信が要求された
場合にそれらの状態を管理するためのデータをそれぞれ
のフレームについて1データずつ格納する。
The first, second, third, and fourth stator registers 3a, 3b, 3c, and 3d store one transmission frame stored in the above-mentioned transmission buffer 1 and both reception buffers 2a and 2b. 2 received frames, and data for managing the status of the third frame when reception of the third frame is requested when the received frames are stored in both receive buffers 2a and 2b. Store each.

【0039】送信エラーレジスタ4は、送信バッファ1
に格納された送信フレームの送信状態のデータ、即ちエ
ラー発生があったか否かを示すデータが格納される。
The transmission error register 4 is the transmission buffer 1.
Data on the transmission status of the transmission frame stored in , that is, data indicating whether or not an error has occurred is stored.

【0040】受信エラーレジスタ群5dの第1, 第2
, 第3受信エラーレジスタ5a, 5b, 5cは上
述の受信バッファ2a,2bに格納された2受信フレー
ム及び両受信バッファ2a,2bに既に受信フレームが
格納されている場合に更に第3のフレームの受信が要求
された場合にそれらの受信状態のデータ、即ちエラー発
生があったか否かを示すデータが格納される。
The first and second registers of the reception error register group 5d
, the third reception error registers 5a, 5b, and 5c store the two reception frames stored in the above-mentioned reception buffers 2a and 2b, and when a reception frame is already stored in both reception buffers 2a and 2b, the third reception error register 5a, 5b, and 5c also store the third reception frame. When reception is requested, data on the reception status, ie, data indicating whether or not an error has occurred, is stored.

【0041】ソースアドレスレジスタ群6dの第1, 
第2, 第3ソースアドレスレジスタ6a,6b, 6
cは上述の受信バッファ2a, 2bに格納されている
受信フレーム及び上述の第3のフレーム中の第4バイト
目のデータであるソースアドレスをそれぞれ格納する。
The first of the source address register group 6d,
Second and third source address registers 6a, 6b, 6
c stores the source address which is the fourth byte data in the received frames stored in the above-mentioned receive buffers 2a and 2b and the above-mentioned third frame, respectively.

【0042】返信RSP レジスタ7は、前述のSAE
−J1850に規定されている送信フレームを送信した
場合に受信側から返送されてくる返信レスポンス (以
下、返信RSP という) を格納する。
[0042]Reply RSP register 7 contains the above-mentioned SAE
- Stores the reply response (hereinafter referred to as reply RSP) sent back from the receiving side when a transmission frame specified in J1850 is sent.

【0043】次に、送信バッファ1及び受信バッファ群
2の両受信バッファ2a, 2bのアドレス構成につい
て、それを示す図5の模式図を参照して説明する。
Next, the address structure of both the transmitting buffer 1 and the receiving buffers 2a and 2b of the receiving buffer group 2 will be explained with reference to the schematic diagram shown in FIG. 5.

【0044】送信バッファ1は、8ビットを1バイトと
して構成されたデータ列を15バイト(他に1バイトの
未使用領域がある)格納可能なメモリ領域を有する。ま
た、両受信バッファ2a及び2bは共に8ビットを1バ
イトとして構成されたデータ列を16バイト格納可能な
メモリ領域を有している。
The transmission buffer 1 has a memory area capable of storing 15 bytes (there is an unused area of 1 byte) of a data string composed of 8 bits per byte. Further, both receive buffers 2a and 2b each have a memory area capable of storing 16 bytes of a data string composed of 8 bits in 1 byte.

【0045】送信バッファ1の書込みアドレス1WA 
及び読出しアドレス1RA は16進表示で”00”か
ら”0F”までのアドレスが共通に割付けられている。 また、第1受信バッファ2aの書込みアドレス2aWA
及び読出しアドレス2aRAは16進表示で”10”か
ら”1F”までが共通に割付けられている。更に、第2
受信バッファ2bの書込みアドレス2bWA及び読出し
アドレス2bRAも16進表示で”20”から”2F”
までが共通に割付けられている。
Write address 1WA of transmission buffer 1
and read address 1RA are commonly assigned addresses from "00" to "0F" in hexadecimal notation. Also, the write address 2aWA of the first reception buffer 2a
And the read address 2aRA is commonly assigned from "10" to "1F" in hexadecimal notation. Furthermore, the second
The write address 2bWA and read address 2bRA of the reception buffer 2b are also expressed in hexadecimal from "20" to "2F".
are commonly assigned.

【0046】なお、送信バッファ1及び受信バッファ群
2以外の各レジスタについては、図6に示す如くアドレ
スが割付けられている。ここで、アドレス”7E”及び
”7F”のTXレジスタ書込み完了レジスタ64及びR
Xレジスタ読出し完了レジスタ67については後述する
Note that addresses are assigned to each register other than the transmission buffer 1 and the reception buffer group 2 as shown in FIG. Here, the TX register write completion registers 64 and R at addresses "7E" and "7F"
The X register read completion register 67 will be described later.

【0047】ここで、送信バッファ1に格納される送信
フレームを構成するデータ及びその配列について図7の
模式図を参照して説明する。
[0047] Here, the data constituting the transmission frame stored in the transmission buffer 1 and its arrangement will be explained with reference to the schematic diagram of FIG.

【0048】図7において、参照符号100 にて示さ
れている範囲が送信バッファ1に格納される送信データ
群である。このデータ群は、メッセージフィールド10
2 である送信フレームと、このメッセージフィールド
102 のメッセージ長 (バイト数) を示すデータ
が格納されるメッセージ長フィールド101 とで構成
されている。
In FIG. 7, the range indicated by reference numeral 100 is the transmission data group stored in the transmission buffer 1. This data group is message field 10
2, and a message length field 101 in which data indicating the message length (number of bytes) of this message field 102 is stored.

【0049】メッセージフィールド102 は、4バイ
トの通信制御データ群フィールド110 と、本来の通
信データが格納されるフィールドである最大10バイト
の通信データ群フィールド120 とで構成されている
。通信制御データ群フィールド110 の各1バイトの
フィールドは、優先コード, デスティネーションアド
レス, ソースアドレス, タイプフォーマット/ダイ
アグモードの各データが格納されるフィールド111,
 112, 113, 114になっている。
The message field 102 is composed of a 4-byte communication control data group field 110 and a maximum 10-byte communication data group field 120, which is a field in which the original communication data is stored. Each 1-byte field of the communication control data group field 110 is a field 111 in which each data of priority code, destination address, source address, type format/diagnosis mode is stored.
They are 112, 113, 114.

【0050】この送信フレームの通信データ群フィール
ド120 はそれぞれの送信フレームによりバイト数が
異なり、従って送信フレーム全体のメッセージ長は不定
である。このため送信データ群100 のメッセージ長
フィールド101 にはメッセージフィールド102 
のバイト数が格納される。但し、最大は14バイトであ
る。
The communication data group field 120 of this transmission frame has a different number of bytes depending on each transmission frame, and therefore the message length of the entire transmission frame is undefined. Therefore, the message length field 101 of the transmission data group 100 contains the message field 102.
The number of bytes is stored. However, the maximum is 14 bytes.

【0051】このような送信データ群100 が送信バ
ッファ1に格納されるのであるが、具体的には以下の如
く格納される。
Such a transmission data group 100 is stored in the transmission buffer 1, and specifically, it is stored as follows.

【0052】送信バッファ1の両アドレス1WA, 1
RAの”00”の1バイトの領域にはメッセージ長フィ
ールド101 が格納される。アドレス”01”乃至”
04”の4バイトの領域には通信制御データ群110 
を構成する4バイトのデータがそれぞれ格納される。即
ち、通信制御データ群110 の各データは、アドレス
”01”の第1バイトに優先コードのフィールド111
 が、アドレス”02”の第2バイトにデスティネーシ
ョンアドレスのフィールド112 が、アドレス”03
”の第3バイトにソースアドレスのフィールド113 
が、アドレス”04”の第4バイトにタイプフォーマッ
ト/ダイアグモードのフィールド114 がそれぞれ格
納される。アドレス”05”乃至”0G”までの10バ
イトの領域はn(nは1から10まで) 個の通信デー
タ群にて構成される通信データ群フィールド120 の
各フィールドが格納される。
Both addresses 1WA, 1 of transmission buffer 1
A message length field 101 is stored in a 1-byte area of RA "00". Address “01” to “01”
04" 4-byte area contains communication control data group 110.
4 bytes of data making up each are stored. That is, each data of the communication control data group 110 has a priority code field 111 in the first byte of address "01".
However, the destination address field 112 is in the second byte of address "02", and the destination address field 112 is in the second byte of address "02".
”, the source address field 113 is placed in the third byte of
However, a type format/diagnosis mode field 114 is stored in the fourth byte of address "04". The 10-byte area from addresses "05" to "0G" stores each field of a communication data group field 120 consisting of n (n is 1 to 10) communication data groups.

【0053】次に、両受信バッファ2a, 2bに格納
される受信フレームのデータ及びデータ配列についてそ
の構成を示す図8の模式図を参照して説明する。
Next, the data and data arrangement of the receive frame stored in both receive buffers 2a and 2b will be explained with reference to the schematic diagram of FIG. 8 showing the structure thereof.

【0054】図8において参照符号200 にて示され
ている範囲が両受信バッファ2a, 2bに格納される
データ群である。このデータ群は、メッセージフィール
ド102 及び CRCバイトデータが格納される C
RCフィールド203 とで構成される受信フレーム2
02にこの受信フレーム202 のメッセージ長を示す
メッセージ長フィールド201 が付加されて構成され
ている。
The range indicated by reference numeral 200 in FIG. 8 is the data group stored in both reception buffers 2a and 2b. This data group stores the message field 102 and CRC byte data.C
Received frame 2 consisting of RC field 203
02, a message length field 201 indicating the message length of this received frame 202 is added.

【0055】メッセージフィールド102 は、4バイ
トの通信制御データ群フィールド110 と、本来の通
信データが格納されるフィールドである最大10バイト
の通信データ群フィールド120 とで構成されている
。通信制御データ群フィールド110 の各1バイトの
フィールドは、優先コード, デスティネーションアド
レス, ソースアドレス, タイプフォーマット/ダイ
アグモードの各データが格納されるフィールド111,
 112, 113, 114になっている。
The message field 102 is composed of a 4-byte communication control data group field 110 and a maximum 10-byte communication data group field 120, which is a field in which the original communication data is stored. Each 1-byte field of the communication control data group field 110 is a field 111 in which each data of priority code, destination address, source address, type format/diagnosis mode is stored.
They are 112, 113, 114.

【0056】この受信フレーム2a, 2bの通信デー
タ群フィールド120 はそれぞれの受信フレームによ
りバイト数が異なり、従って送信フレーム全体のメッセ
ージ長は不定である。このため受信データ群200 の
メッセージ長フィールド201 にはメッセージフィー
ルド102 のバイト数に CRCフィールド203 
のバイト数を付加したバイト数が格納される。但し、最
大は受信フレームでは CRCフィールド203 が付
加されるため、送信データ群のメッセージ長フィールド
101 とは異なって15バイトである。
The number of bytes in the communication data group field 120 of the received frames 2a and 2b differs depending on the received frame, and therefore the message length of the entire transmitted frame is undefined. Therefore, the message length field 201 of the received data group 200 contains the number of bytes of the message field 102 and the CRC field 203.
The number of bytes added is stored. However, since a CRC field 203 is added to the received frame, the maximum length is 15 bytes, which is different from the message length field 101 of the transmitted data group.

【0057】このような受信データ群が両受信バッファ
2a, 2bのいずれかまたは双方に格納されるのであ
るが、具体的には以下の如く格納される。
Such a received data group is stored in either or both of the receiving buffers 2a and 2b, and specifically, it is stored as follows.

【0058】第1受信バッファ2aの両アドレス2aW
A, 2aRAの”10”の1バイトの領域にはメッセ
ージ長フィールド201 が格納される。アドレス”1
1”乃至”14”の4バイトの領域には通信制御データ
群110 を構成する4バイトのデータがそれぞれ格納
される。即ち、通信制御データ群110 の各データは
、アドレス”11”の第1バイト111 に優先コード
のフィールド111 が、アドレス”12”の第2バイ
トにデスティネーションアドレスのフィールド112 
が、アドレス”13”の第3バイトにソースアドレスの
フィールド113 が、アドレス”14”の第4バイト
にタイプフォーマット/ダイアグモードのフィールド1
14 がそれぞれ格納される。アドレス”15”乃至”
1G”までの10バイトの領域はn(nは1から10ま
で) 個の通信データ群にて構成される通信データ群フ
ィールド120 の各フィールドが格納される。そして
、たとえば通信データ群フィールド120が最大の10
個の通信データにて構成されている場合は、アドレス”
1F”の1バイトの領域には CRCフィールド203
 が格納される。
Both addresses 2aW of the first reception buffer 2a
A message length field 201 is stored in the 1-byte area of "10" of A, 2aRA. address”1
4-byte data constituting the communication control data group 110 is stored in the 4-byte areas from 1" to 14. That is, each data of the communication control data group 110 is stored in the first The priority code field 111 is in byte 111, and the destination address field 112 is in the second byte of address "12".
However, the source address field 113 is in the third byte of address "13", and the type format/diagnosis mode field 1 is in the fourth byte of address "14".
14 are stored respectively. Address “15” to “15”
The 10-byte area up to 1G" stores each field of the communication data group field 120 composed of n (n is 1 to 10) communication data groups. For example, the communication data group field 120 is biggest 10
If it is composed of communication data, the address "
CRC field 203 is in the 1-byte area of “1F”.
is stored.

【0059】なお、第2受信バッファ2bについても基
本的には同様であり、両アドレス2bWA, 2bRA
の上位側がいずれも第1受信バッファ2aの場合の”1
” が”2” になる点のみが異なる。
[0059] The same is basically true for the second reception buffer 2b, and both addresses 2bWA and 2bRA
“1” when the upper side of both is the first receiving buffer 2a
The only difference is that “” becomes “2”.

【0060】以上を要約すれば、送信バッファ1に格納
される送信データ群100 と両受信バッファ2a, 
2bに格納される受信データ群200 との相違点は、
送信バッファ1又は受信バッファ2a, 2bのアドレ
スの下位4ビット側が”F” である領域に格納される
第16バイトのみである。 即ち、送信データ群100 では第16バイトは未使用
であり、受信データ群200 ではたとえば通信データ
群フィールド120 が最大の10個の通信データにて
構成されている場合は、第16バイトは CRCフィー
ルド203 として使用されている。そして、送信バッ
ファ1に割付けられているアドレス1WA, 1RAは
上位4ビットが16進表示で”0” に固定されており
、下位4ビットを”0”から”F”(実際には”G” 
まで) に順次的に変化させれば16バイトの送信バッ
ファ1内の固有のアドレスを指定することが可能になっ
ている。
To summarize the above, the transmission data group 100 stored in the transmission buffer 1 and both reception buffers 2a,
The difference from the received data group 200 stored in 2b is as follows.
Only the 16th byte is stored in the area where the lower 4 bits of the address of the transmitting buffer 1 or receiving buffers 2a, 2b are "F". That is, in the transmission data group 100, the 16th byte is unused, and in the reception data group 200, for example, if the communication data group field 120 is composed of the maximum 10 pieces of communication data, the 16th byte is the CRC field. It is used as 203. The upper 4 bits of addresses 1WA and 1RA assigned to transmit buffer 1 are fixed to "0" in hexadecimal notation, and the lower 4 bits are written as "0" to "F" (actually "G").
), it is possible to specify a unique address within the 16-byte transmission buffer 1.

【0061】また第1受信バッファ2aに割付けられて
いるアドレス2aWA, 2aRAは上位4ビットが1
6進表示で”1” に固定されており、下位4ビットを
”0” から”F” に順次的に変化させれば16バイ
トの第1受信バッファ2a内の固有のアドレスを指定す
ることが可能になっている。更に、第2受信バッファ2
bに割付けられているアドレス2bWA, 2bRAは
上位4ビットが16進表示で”2”に固定されており、
下位4ビットを”0” から”F” に順次的に変化さ
せれば16バイトの第2受信バッファ2b内の固有のア
ドレスを指定することが可能になっている。
[0061] Furthermore, the upper 4 bits of addresses 2aWA and 2aRA assigned to the first reception buffer 2a are 1.
It is fixed at "1" in hexadecimal notation, and by sequentially changing the lower 4 bits from "0" to "F", you can specify a unique address in the 16-byte first reception buffer 2a. It is now possible. Furthermore, the second reception buffer 2
The upper 4 bits of addresses 2bWA and 2bRA assigned to b are fixed to "2" in hexadecimal notation,
By sequentially changing the lower 4 bits from "0" to "F", it is possible to specify a unique address within the 16-byte second reception buffer 2b.

【0062】つまり、バッファメモリブロック9に対す
るアドレス指定は、その8ビットアドレスの内の上位4
ビットで送信バッファ1,第1受信バッファ2a又は第
2受信バッファ2bのいずれかが指定され、下位4ビッ
トでそれらの各1バイトの領域が指定される。
In other words, the address specification for the buffer memory block 9 is based on the upper 4 of the 8-bit address.
The bits specify either the transmission buffer 1, the first reception buffer 2a, or the second reception buffer 2b, and the lower 4 bits specify each 1-byte area.

【0063】次に、このようなアドレス構成を有する送
信バッファ1及び受信バッファ群2のアドレス発生のた
めの構成について説明する。
Next, the structure for generating addresses of the transmitting buffer 1 and the receiving buffer group 2 having such an address structure will be explained.

【0064】図9は送信バッファ1及び受信バッファ群
2のたのアドレス発生機構の要部の構成を示すブロック
図である。なお、図9上で右側にLAN IFブロック
10が、左側にマイクロコンピュータIFブロック11
がそれぞれ位置している。
FIG. 9 is a block diagram showing the configuration of the main parts of the address generation mechanism including the transmission buffer 1 and the reception buffer group 2. In FIG. In addition, in FIG. 9, the LAN IF block 10 is on the right side, and the microcomputer IF block 11 is on the left side.
are located respectively.

【0065】図9において、参照符号14a はLAN
 IFブロック10から与えられている4ビットのアド
レス信号であり、デコーダ150 に入力される。この
デコーダ150 には4ビットカウンタ151 が接続
されており、そのカウント値の出力信号14b がデコ
ーダ150 に入力される。デコーダ150 はLAN
 IFブロック10から与えられているアドレス信号1
4a を上位4ビットとし、カウンタ151 の出力信
号14b を下位4ビットとして8ビットのアドレス信
号14を発生し、送信バッファ1, 第1受信バッファ
2a,第2受信バッファ2bにそれぞれ与える。
In FIG. 9, reference numeral 14a is a LAN
This is a 4-bit address signal given from the IF block 10, and is input to the decoder 150. A 4-bit counter 151 2 is connected to this decoder 150 2 , and the output signal 14b of the count value is inputted to the decoder 150 2 . The decoder 150 is a LAN
Address signal 1 given from IF block 10
4a as the upper 4 bits and the output signal 14b of the counter 151 as the lower 4 bits, an 8-bit address signal 14 is generated and applied to the transmitting buffer 1, the first receiving buffer 2a, and the second receiving buffer 2b, respectively.

【0066】カウンタ151 の出力信号14b は比
較器153 にも与えられており、またこの比較器15
3 からカウンタ151 へはリセット信号RS1 が
与えられている。
The output signal 14b of the counter 151 is also given to a comparator 153, and this comparator 15
A reset signal RS1 is applied from the counter 151 to the counter 151.

【0067】参照符号15a, 15bはそれぞれLA
N IFブロック10から第1受信バッファ2a, 第
2受信バッファ2bへの入力データ信号を示しており、
参照符号13は送信バッファ1からの出力データ信号を
示している。そして、この送信バッファ1からの出力デ
ータ信号13はメッセージ長レジスタ152 にも与え
られていて、送信バッファ1に格納されている送信デー
タ群がLAN IFブロック10へ出力される際にその
先頭に位置するメッセージ長のデータがこのメッセージ
長レジスタ152 に格納される。
[0067] Reference numbers 15a and 15b are LA, respectively.
N shows input data signals from the IF block 10 to the first reception buffer 2a and the second reception buffer 2b,
Reference numeral 13 indicates an output data signal from the transmission buffer 1. The output data signal 13 from the transmission buffer 1 is also given to the message length register 152, and when the transmission data group stored in the transmission buffer 1 is output to the LAN IF block 10, it is placed at the beginning of the transmission data group. The message length data is stored in this message length register 152.

【0068】なお、このメッセージ長レジスタ152 
に格納されたメッセージ長のデータは比較器153 に
与えられる。そして、比較器153 はメッセージ長レ
ジスタ152 から与えられるメッセージ長のデータと
カウンタ151 のカウント値の出力信号14b とを
比較し、一致した時点でカウンタ151 へ出力してい
る前述のリセット信号RS1をアクティブにする。
Note that this message length register 152
The message length data stored in is provided to a comparator 153. Then, the comparator 153 compares the message length data given from the message length register 152 and the count value output signal 14b of the counter 151, and when they match, activates the aforementioned reset signal RS1 output to the counter 151. Make it.

【0069】一方、参照符号17a はマイクロコンピ
ュータIFブロック11から与えられている4ビットの
アドレス信号であり、デコーダ160 に入力される。 このデコーダ160には4ビットカウンタ161 が接
続されており、そのカウント値の出力信号17b がデ
コーダ160 に入力される。デコーダ160 はマイ
クロコンピュータIFブロック11から与えられている
アドレス信号17a を上位4ビットとし、カウンタ1
61 の出力信号17b を下位4ビットとして8ビッ
トのアドレス信号17を発生し、送信バッファ1, 第
1受信バッファ2a, 第2受信バッファ2bに与える
On the other hand, reference numeral 17a is a 4-bit address signal given from the microcomputer IF block 11, and is input to the decoder 160. A 4-bit counter 161 is connected to this decoder 160, and the output signal 17b of the count value is input to the decoder 160. The decoder 160 uses the address signal 17a given from the microcomputer IF block 11 as the upper 4 bits, and uses the counter 1
An 8-bit address signal 17 is generated using the output signal 17b of 61 as the lower 4 bits, and is applied to the transmission buffer 1, the first reception buffer 2a, and the second reception buffer 2b.

【0070】カウンタ161 の出力信号17b は比
較器163 にも与えられており、またこの比較器16
3 からカウンタ161へはリセット信号RS2 が与
えられている。
The output signal 17b of the counter 161 is also given to the comparator 163, and this comparator 16
A reset signal RS2 is applied to the counter 161 from the counter 161.

【0071】参照符号20a, 20bはそれぞれ第1
受信バッファ2a, 第2受信バッファ2bからマイク
ロコンピュータIFブロック11への出力データ信号を
示しており、参照符号18はマイクロコンピュータIF
ブロック11から送信バッファ1への入力データ信号を
示している。そして、第1受信バッファ2a, 第2受
信バッファ2bからマイクロコンピュータIFブロック
11へのの出力データ信号20a, 20bはセレクタ
164 を介してメッセージ長レジスタ162に与えら
れていて、両受信バッファ2a, 2bに格納されてい
る受信データ群がマイクロコンピュータIFブロック1
1へ出力される際に、その先頭に位置するメッセージ長
のデータがこのメッセージ長レジスタ162 に格納さ
れる。
[0071] Reference numerals 20a and 20b each indicate the first
It shows output data signals from the reception buffer 2a and the second reception buffer 2b to the microcomputer IF block 11, and reference numeral 18 indicates the microcomputer IF block 11.
An input data signal from block 11 to transmit buffer 1 is shown. The output data signals 20a, 20b from the first receive buffer 2a, second receive buffer 2b to the microcomputer IF block 11 are given to the message length register 162 via the selector 164, and both receive buffers 2a, 2b The received data group stored in microcomputer IF block 1
1, the message length data located at the beginning is stored in this message length register 162.

【0072】なお、このメッセージ長レジスタ162 
に格納されたメッセー長のデータは比較器163 に与
えられる。そして、比較器163はメッセージ長レジス
タ162 から与えられるメッセージ長のデータとカウ
ンタ161 のカウント値の出力信号17b とを比較
し、一致した時点でカウンタ161 へ出力している前
述のリセット信号RS2 をアクティブにする。
Note that this message length register 162
The message length data stored in is provided to a comparator 163. Then, the comparator 163 compares the message length data given from the message length register 162 and the count value output signal 17b of the counter 161, and when they match, activates the aforementioned reset signal RS2 output to the counter 161. Make it.

【0073】次に、上述のような図9のブロック図に示
されている構成のアドレス発生機構の動作の一例として
、送信バッファ1にメッセージフィールド102 のメ
ッセージ長が11バイト (メッセージ長は”0B”)
 でこれに1バイトのメッセージ長フィールド101 
が付加されている送信フレームが格納されており、これ
がLAN IFブロック10へ読出される場合について
説明する。なお、図10はその場合の上述の図9の各構
成要素の出力信号の状態及び送信バッファ1へのデータ
の書込みの状態を示すタイミングチャート、図11はそ
の手順を示すフローチャートである。なお図9のブロッ
ク図に示されている各構成要素は図示されていないクロ
ックに同期して動作するものとする。
Next, as an example of the operation of the address generation mechanism configured as shown in the block diagram of FIG. ”)
and add a 1-byte message length field 101 to this
A case will be described in which a transmission frame to which . Note that FIG. 10 is a timing chart showing the state of the output signal of each component of FIG. 9 and the state of writing data to the transmission buffer 1 in that case, and FIG. 11 is a flowchart showing the procedure. It is assumed that each component shown in the block diagram of FIG. 9 operates in synchronization with a clock, which is not shown.

【0074】まず、図10(a) に示す如く、LAN
 IFブロック10側から4ビットのアドレス信号14
a が出力されている。このアドレス信号14a はそ
の4ビットの値が16進表示で”0” に固定されてい
る。この時点ではカウンタ151 は起動していないた
め、その出力信号14b は、図10(b) に示す如
く、16進表示で”0” である。従って、デコーダ1
50 から出力されるアドレス信号14は、図10(c
) に示されているように、アドレス信号14a を上
位4ビットとし、カウンタ151 の出力信号14b 
を下位ビットとする16進表示で”00”になる。この
アドレス信号”00”により送信バッファ1のアドレス
”00”がアクセスされてそのアドレスに格納されてい
るメッセージ長データ”0B”が出力データ信号13と
してLAN IFブロック10側へ出力されると共に、
その下位4ビットのデータ”B” が図10(e) に
示す如く、メッセージ長レジスタ152 に格納される
 (図11のステップS1)。
First, as shown in FIG. 10(a), the LAN
4-bit address signal 14 from the IF block 10 side
a is output. The value of 4 bits of this address signal 14a is fixed to "0" in hexadecimal notation. Since the counter 151 is not activated at this point, its output signal 14b is "0" in hexadecimal notation, as shown in FIG. 10(b). Therefore, decoder 1
The address signal 14 output from 50 is shown in FIG.
), the address signal 14a is the upper 4 bits, and the output signal 14b of the counter 151 is
It becomes "00" in hexadecimal notation with "00" as the lower bit. This address signal "00" accesses the address "00" of the transmission buffer 1, and the message length data "0B" stored at that address is output as the output data signal 13 to the LAN IF block 10 side.
The lower 4 bits of data "B" are stored in the message length register 152 as shown in FIG. 10(e) (step S1 in FIG. 11).

【0075】メッセージ長レジスタ152 にデータが
新たに格納されることにより、図10(f)に示す如く
、比較器153 からカウンタ152 へ与えられてい
るリセット信号RS1 がノンアクティブになってカウ
ンタ151 が起動してカウントを開始する (図11
のステップS2)。このカウンタ151 のカウント値
の出力信号14b は図10(b) に示す如く、その
4ビットにより16進表示で”0” から”1”, ”
2”と順次カウントアップしてゆく。従って、デコーダ
150 から出力されるアドレス信号14も、図10(
c) に示す如く、16進表示で”00”, ”01”
, ”02”…と順次インクリメントされる。これによ
り、送信バッファ1の各アドレスが順次アクセスされる
ことになり、それぞれのアドレスに格納されている各1
バイトのデータがクロック同期により送信バッファ1か
ら順次的に読出されて出力データ信号13としてLAN
 IFブロック10へ出力される (図11のステップ
S3)。
As data is newly stored in the message length register 152, the reset signal RS1 applied from the comparator 153 to the counter 152 becomes inactive, and the counter 151 becomes inactive, as shown in FIG. 10(f). Start up and start counting (Figure 11
step S2). As shown in FIG. 10(b), the output signal 14b of the count value of the counter 151 is expressed in hexadecimal from "0" to "1" by its 4 bits.
2". Therefore, the address signal 14 output from the decoder 150 also changes as shown in FIG.
c) “00”, “01” in hexadecimal as shown.
, "02", etc. are sequentially incremented. As a result, each address of transmission buffer 1 is accessed sequentially, and each address stored at each address is accessed sequentially.
Byte data is sequentially read out from the transmission buffer 1 by clock synchronization and sent to the LAN as an output data signal 13.
It is output to the IF block 10 (step S3 in FIG. 11).

【0076】上述のようにしてアドレス信号14a が
”0” に固定されたままでカウンタ151 が順次カ
ウントアップすることにより、送信バッファ1の各アド
レスが順次アクセスされて送信フレームの各バイトのデ
ータがLAN IFブロック10側へ出力されるが、こ
の間、比較器153 はメッセージ長レジスタ152 
に格納されているメッセージ長のデータ”B” とカウ
ンタ151 のカウント値の出力信号14b とを比較
している (図11のステップS4)。そして、比較器
153 による比較結果が一致しない間は、上述のよう
にカウンタ151 のカウントアップが継続される (
図11のステップS6)。やがて、カウンタ151 の
出力信号が”B” になった時点で比較器153 によ
る比較結果が一致するので、比較器153 はカウンタ
151 に出力しているリセット信号RS1をアクティ
ブにする (図11のステップS5)。これにより、カ
ウンタ151 はカウントアップを停止し、送信バッフ
ァ1からの送信フレームの読出しが完了する。
As described above, by sequentially counting up the counter 151 while the address signal 14a is fixed at "0", each address of the transmission buffer 1 is sequentially accessed, and the data of each byte of the transmission frame is transferred to the LAN. It is output to the IF block 10 side, but during this time the comparator 153 is output to the message length register 152.
The message length data "B" stored in the counter 151 is compared with the output signal 14b of the count value of the counter 151 (step S4 in FIG. 11). Then, as long as the comparison result by the comparator 153 does not match, the counter 151 continues to count up as described above (
Step S6 in FIG. 11). Eventually, when the output signal of the counter 151 becomes "B", the comparison result by the comparator 153 matches, so the comparator 153 activates the reset signal RS1 output to the counter 151 (step in FIG. 11). S5). As a result, the counter 151 stops counting up, and reading of the transmission frame from the transmission buffer 1 is completed.

【0077】また、マイクロコンピュータIFブロック
11側のデコーダ160, 4ビットカウンタ161,
メッセージ長レジスタ163,比較器163 の動作も
上述のLAN IFブロック10側のデコーダ150,
4ビットカウンタ151,メッセージ長レジスタ152
,比較器153 と基本的には同様である。但し、マイ
クロコンピュータIFブロック11側へは両受信バッフ
ァ2a, 2bから受信フレームが出力されるので、メ
ッセージ長レジスタ162 へのメッセージ長データの
入力をセレクタ164 にて選択するようにしている。
[0077] Furthermore, the decoder 160, 4-bit counter 161,
The operations of the message length register 163 and the comparator 163 are also the same as those of the decoder 150 on the LAN IF block 10 side.
4-bit counter 151, message length register 152
, comparator 153. However, since received frames are output from both receive buffers 2a and 2b to the microcomputer IF block 11 side, input of message length data to the message length register 162 is selected by the selector 164.

【0078】従って、上述のLAN IFブロック10
側の動作と同様に、デコーダ160 へ入力されるアド
レス信号17a を”0”,”1”, ”2” のいず
れかに固定してカウンタ161 をカウントアップする
ことにより、また第1受信バッファ2a, 第2受信バ
ッファ2bのいずれかをアクセスしてそれらに格納され
ている受信データをマイクロコンピュータIFブロック
11が読込むことが可能である。
Therefore, the above-mentioned LAN IF block 10
Similarly to the operation of the first receiving buffer 2a, by fixing the address signal 17a input to the decoder 160 to one of "0", "1", or "2" and counting up the counter 161, , the second reception buffer 2b, and the microcomputer IF block 11 can read the reception data stored therein.

【0079】次に、送信フレームの最後の1バイトであ
る CRCフィールド203 に格納されるCRCバイ
トについて説明する。
Next, the CRC byte stored in the CRC field 203, which is the last byte of the transmission frame, will be explained.

【0080】図12は本発明の通信装置を LAN伝送
路90に2組接続して相互間で通信を行う場合の構成を
示すブロック図である。
FIG. 12 is a block diagram showing a configuration in which two sets of communication devices of the present invention are connected to the LAN transmission path 90 and communicate with each other.

【0081】図12において、参照符号8a, 8bは
それぞれ本発明の通信装置を示し、それぞれマイクロコ
ンピュータ91a, 91bが接続されている。また両
通信装置8a, 8bはそれぞれ送信ドライバ96a,
 96b及び受信ドライバ97a, 97bを介して 
LAN伝送路90と接続されている。
In FIG. 12, reference numerals 8a and 8b indicate communication devices of the present invention, to which microcomputers 91a and 91b are connected, respectively. Further, both communication devices 8a and 8b have transmission drivers 96a and 8b, respectively.
96b and reception drivers 97a, 97b
It is connected to a LAN transmission line 90.

【0082】両車載用伝送プロセッサ8a, 8bには
それぞれ前述の如くLAN IFブロック10a, 1
0b, バッファメモリブロック9a, 9a, マイ
クロコンピュータIFブロック11a, 11bが備え
られており、それぞれの参照符号にaが付加されている
通信装置8aとマイクロコンピュータ91a とで構成
されるユニットをノードA、それぞれの参照符号にbが
付加されている通信装置8bとマイクロコンピュータ9
1b とで構成されるユニットをノードBとする。
Both in-vehicle transmission processors 8a and 8b have LAN IF blocks 10a and 1, respectively, as described above.
0b, buffer memory blocks 9a, 9a, microcomputer IF blocks 11a, 11b, and a unit consisting of a communication device 8a and a microcomputer 91a, each of which has an a added to its reference numeral, is referred to as a node A. A communication device 8b and a microcomputer 9 with b added to their respective reference numbers.
Let the unit consisting of 1b and 1b be node B.

【0083】ここでは一例として、ノードAからノード
Bへ通信する場合について説明する。この場合、通信デ
ータの流れは図12に参照符号99を付与し矢符にて示
す如き方向になる。
[0083] As an example, a case of communication from node A to node B will be described. In this case, the flow of communication data is in the direction indicated by the arrow 99 in FIG.

【0084】まず、ノードAのマイクロコンピュータ9
1a からマイクロコンピュータIFブロック11a 
を介してバッファメモリブロック9a内の送信バッファ
1に前述のようなデータ配列の送信フレームが前述のよ
うなアドレスの割付けに従って格納される。
First, the microcomputer 9 of node A
1a to microcomputer IF block 11a
A transmission frame having the data arrangement as described above is stored in the transmission buffer 1 in the buffer memory block 9a according to the address allocation as described above.

【0085】次に、送信バッファ1に格納された送信フ
レームは、LANIFブロック10a へ転送され、こ
こでそのメッセージフィールド102 に対して CR
C演算が行われる。この CRC演算の結果は送信バッ
ファ1に格納されている送信フレームが送信ドライバ9
6a を通じて LAN伝送路90へ送出される際に送
信フレームの末尾に付加される。
Next, the transmission frame stored in the transmission buffer 1 is transferred to the LANIF block 10a, where the message field 102 is CR
A C operation is performed. As a result of this CRC calculation, the transmission frame stored in the transmission buffer 1 is determined by the transmission driver 9.
6a is added to the end of the transmission frame when it is sent to the LAN transmission line 90.

【0086】ノードBでは、ノードAから送出された送
信フレームを受信フレームとして LAN伝送路90か
ら受信ドライバ97b を通じて受信する。LAN I
Fブロック10b は、受信フレームのメッセージフィ
ールド102 と CRCフィールド203 とに対し
て CRC演算を行うと共に、メッセージフィールド1
02 と CRCフィールド203 とのバイト数を計
数してその結果を受信フレームのメッセージ長フィール
ド201 のデータとし、前述のデータ配列及びアドレ
ス割付けに従って第1受信バッファ2aまたは第2受信
バッファ2bに書込む。
[0086] Node B receives the transmission frame sent from node A as a reception frame from LAN transmission line 90 through reception driver 97b. LAN I
The F block 10b performs a CRC operation on the message field 102 and the CRC field 203 of the received frame, and also performs a CRC operation on the message field 102 and the CRC field 203 of the received frame.
02 and the number of bytes in the CRC field 203, the result is used as data in the message length field 201 of the received frame, and is written to the first reception buffer 2a or the second reception buffer 2b according to the data arrangement and address allocation described above.

【0087】ここで一例として、ノードAからノードB
へ送信されたフレームの通信データ群フィールド120
 に格納されていた通信データ群が5バイトである受信
フレームが第1受信バッファ2aに格納された場合の状
態を図13の模式図に示す。
Here, as an example, from node A to node B
Communication data group field 120 of the frame sent to
The schematic diagram of FIG. 13 shows a state in which a received frame in which the communication data group stored in the first receiving buffer 2a is 5 bytes is stored in the first receiving buffer 2a.

【0088】図13に示されているように、 CRCバ
イトは第1受信バッファ2aのアドレス”1A”に格納
されており、送信フレームの一連のデータ列の最後に位
置する。なおこの場合、アドレス”1B”から”1F”
までの各領域は使用されない。また、たとえば通信デー
タ群が最大の10バイトある場合には CRCバイトは
アドレス”1F”に格納されることになる。
As shown in FIG. 13, the CRC byte is stored at address "1A" of the first reception buffer 2a, and is located at the end of the series of data strings of the transmission frame. In this case, from address “1B” to “1F”
The areas up to are not used. Further, for example, if the communication data group has a maximum of 10 bytes, the CRC byte will be stored at address "1F".

【0089】次に、本発明の通信装置のバッファメモリ
の具体的な制御に関して、図面を参照して説明する。
Next, specific control of the buffer memory of the communication device of the present invention will be explained with reference to the drawings.

【0090】図14は本発明の通信装置内におけるアド
レス信号及びデータ信号の入出力の関係を示す模式図で
あり、図15はバッファメモリに対するデータの入出力
の関係を示す模式図であり、図16及び図17はバッフ
ァメモリの主として制御信号及びアドレス信号の入出力
の関係を示す模式図である。なお、図16の下側と図1
7の上側とは連続している。
FIG. 14 is a schematic diagram showing the input/output relationship of address signals and data signals in the communication device of the present invention, and FIG. 15 is a schematic diagram showing the input/output relationship of data to the buffer memory. 16 and 17 are schematic diagrams mainly showing the input/output relationship of control signals and address signals of the buffer memory. Note that the lower side of Figure 16 and Figure 1
It is continuous with the upper side of 7.

【0091】図14及び図16の参照符号12は、LA
N IFブロック10からバッファメモリブロック9へ
与えられるアドレス信号であり、図16に示す如く、送
信バッファ1の読出しアドレス信号 (以下、送信読出
しアドレス信号という) である。この送信読出しアド
レス信号12は、より具体的には、前述のアドレス発生
機構により生成されるアドレス信号14が送信バッファ
1を指定する場合のアドレス信号である。
Reference numeral 12 in FIGS. 14 and 16 indicates LA
N - This is an address signal given from the IF block 10 to the buffer memory block 9, and as shown in FIG. 16, it is a read address signal for the transmission buffer 1 (hereinafter referred to as a transmission read address signal). More specifically, this transmission read address signal 12 is an address signal when the address signal 14 generated by the address generation mechanism described above specifies the transmission buffer 1.

【0092】図14及び図15の参照符号13は送信バ
ッファ1からLAN IFブロック10へ出力されるデ
ータ出力信号であり、送信読出しアドレス信号12によ
り指定された送信バッファ1のアドレスに格納されてい
る送信フレームのデータが出力される。
Reference numeral 13 in FIGS. 14 and 15 is a data output signal output from the transmission buffer 1 to the LAN IF block 10, and is stored at the address of the transmission buffer 1 designated by the transmission read address signal 12. The data of the transmitted frame is output.

【0093】図14及び図16の参照符号14は、LA
N IFブロック10からバッファメモリブロック9へ
与えられるアドレス信号 (以下、受信書込みアドレス
信号という) である。この受信書込みアドレス信号1
4は、より具体的には、受信バッファ群2, ステータ
スレジスタ群3, 送信エラーレジスタ4, 受信エラ
ーレジスタ群5d, ソースアドレスレジスタ群6d及
び返信RSP レジスタ7への書込みアドレス信号であ
る。
Reference numeral 14 in FIGS. 14 and 16 indicates LA
This is an address signal (hereinafter referred to as a received write address signal) given from the NIF block 10 to the buffer memory block 9. This received write address signal 1
More specifically, 4 is a write address signal to the reception buffer group 2, the status register group 3, the transmission error register 4, the reception error register group 5d, the source address register group 6d, and the reply RSP register 7.

【0094】図14及び図15の参照符号15は、LA
N IFブロック10からバッファメモリブロック9へ
入力される受信フレームのデータ信号 (以下、受信書
込みデータ信号という) である。
Reference numeral 15 in FIGS. 14 and 15 indicates LA
N This is a data signal of a received frame inputted from the IF block 10 to the buffer memory block 9 (hereinafter referred to as a received write data signal).

【0095】図14及び図16の参照符号16は、受信
書込みデータ信号15をLAN IFブロック10から
与えられている受信書込みアドレス信号14により指定
されたバッファ及びレジスタ群へ書込む信号 (以下、
受信書込み信号という) である。
Reference numeral 16 in FIGS. 14 and 16 is a signal (hereinafter referred to as
(referred to as the received write signal).

【0096】図13及び図16中の参照符号17は、マ
イクロコンピュータIFブロック11からバッファメモ
リブロック9へ与えられるアドレス信号 (以下、マイ
クロコンピュータIFブロック11からのアドレス信号
という) である。 このアドレス信号17は、より具体的には、送信バッフ
ァ1への書込みアドレス信号, 及び受信バッファ群2
,ステータスレジスタ群3, 送信エラーレジスタ4,
 受信エラーレジスタ群5d, ソースアドレスレジス
タ群6d及び返信RSP レジスタ7の読出しアドレス
信号である。
Reference numeral 17 in FIGS. 13 and 16 is an address signal applied from the microcomputer IF block 11 to the buffer memory block 9 (hereinafter referred to as an address signal from the microcomputer IF block 11). More specifically, this address signal 17 is a write address signal to the transmission buffer 1 and a reception buffer group 2.
, status register group 3, transmission error register 4,
These are read address signals for the reception error register group 5d, source address register group 6d, and reply RSP register 7.

【0097】図14及び図15の参照符号18は、マイ
クロコンピュータIFブロック11からバッファメモリ
ブロック9へ与えられる送信フレームのデータ信号であ
り、図15に示されているように、送信バッファ1への
書込みデータ信号 (以下、送信書込みデータ信号とい
う)である。
Reference numeral 18 in FIGS. 14 and 15 is a data signal of a transmission frame given from the microcomputer IF block 11 to the buffer memory block 9, and as shown in FIG. This is a write data signal (hereinafter referred to as a transmission write data signal).

【0098】図14及び図16の参照符号19は、送信
書込みデータ信号18をマイクロコンピュータIFブロ
ック11からのアドレス信号17により指定された送信
バッファ1のアドレスに書込む信号 (以下、マイクロ
コンピュータIFブロック11からの書込み信号という
) である。
Reference numeral 19 in FIGS. 14 and 16 is a signal for writing the transmission write data signal 18 into the address of the transmission buffer 1 designated by the address signal 17 from the microcomputer IF block 11 (hereinafter referred to as microcomputer IF block). 11).

【0099】図14及び図15の参照符号20は、受信
バッファ群2, ステータスレジスタ群3,送信エラー
レジスタ4, 受信エラーレジスタ群5d, ソースア
ドレスレジスタ群6d及び返信RSP レジスタ7の読
出しデータ信号 (以下、受信読出しデータ信号という
) であり、図14に示すように、バッファメモリブロ
ック9からマイクロコンピュータIFブロック11への
受信フレームのデータ出力信号である。
Reference numeral 20 in FIGS. 14 and 15 indicates the read data signals ( (hereinafter referred to as a received read data signal), which is a data output signal of a received frame from the buffer memory block 9 to the microcomputer IF block 11, as shown in FIG.

【0100】図16の参照符号21は3進アップダウン
カウンタで構成されたデータ数カウンタである。このデ
ータ数カウンタ21は、受信バッファ群2への書込みが
完了した場合にアップカウントし、受信バッファ群2の
読出しが完了した場合にダウンカウントすることにより
、受信バッファ群2内に存在するフレーム数をカウント
し、そのカウント値出力信号24を出力する。
Reference numeral 21 in FIG. 16 is a data number counter composed of a ternary up/down counter. This data number counter 21 counts up when writing to the reception buffer group 2 is completed, and counts down when reading from the reception buffer group 2 is completed, thereby increasing the number of frames existing in the reception buffer group 2. , and outputs the count value output signal 24.

【0101】また、同じく参照符号22は5進アップダ
ウンカウンタで構成されたステータス数カウンタ22で
ある。このステータス数カウンタ22は、ステータスレ
ジスタ群3への書込みが完了した場合にアップカウント
し、読出しが完了した場合にダウンカウントすることに
より、ステータスレジスタ群3内に存在するデータ数を
カウントし、そのカウント値出力信号30を出力する。
Similarly, reference numeral 22 is a status number counter 22 composed of a quinary up/down counter. This status number counter 22 counts up the number of data existing in the status register group 3 by counting up when writing to the status register group 3 is completed and counting down when reading is completed. A count value output signal 30 is output.

【0102】次に、受信バッファ群2, ステータスレ
ジスタ群3,送信エラーレジスタ4,受信エラーレジス
タ群5d, ソースアドレスレジスタ群6d及び返信R
SP レジスタ7への書込み制御を行うブロックの構成
と概略動作について説明する。
Next, receive buffer group 2, status register group 3, transmit error register 4, receive error register group 5d, source address register group 6d, and reply R.
The configuration and general operation of the block that controls writing to the SP register 7 will be explained.

【0103】参照符号 23aはLAN IFブロック
10側からバッファメモリブロック9に対するデータの
入出力を制御する第1制御部であり、受信書込みアドレ
ス信号14と受信書込み信号16, 更に受信書込みデ
ータ信号15により受信バッファ群2, ステータスレ
ジスタ群3, 送信エラーレジスタ4, 受信エラーレ
ジスタ群5d, ソースアドレスレジスタ群6d及び返
信RSP レジスタ7への書込み信号を生成する。第1
制御部23a の具体的な構成を図18のブロック図に
示す。
Reference numeral 23a is a first control unit that controls the input/output of data from the LAN IF block 10 side to the buffer memory block 9, and is controlled by the received write address signal 14, the received write signal 16, and the received write data signal 15. Generates write signals to receive buffer group 2, status register group 3, transmit error register 4, receive error register group 5d, source address register group 6d, and reply RSP register 7. 1st
The specific configuration of the control section 23a is shown in the block diagram of FIG.

【0104】第1制御部23a は、アドレスデコーダ
68, 第1制御回路70,第2制御回路71,第3制
御回路72, ANDゲート35a, 44a及びオー
バーラン検出回路69等にて構成されている。
The first control section 23a is composed of an address decoder 68, a first control circuit 70, a second control circuit 71, a third control circuit 72, AND gates 35a and 44a, an overrun detection circuit 69, etc. .

【0105】アドレスデコーダ68は、LAN IFブ
ロック10から与えられる受信書込みアドレス信号14
をデコードして受信バッファ群2への書込みアドレス信
号68a,  送信エラーレジスタ4への書込みアドレ
ス信号68b,  受信エラーレジスタ群5dへの書込
みアドレス信号68c,  ソースアドレスレジスタ群
6dへの書込みアドレス信号68d 及び返信RSP 
レジスタ7への書込みアドレス信号68e として出力
する。
The address decoder 68 receives the received write address signal 14 provided from the LAN IF block 10.
A write address signal 68a to the reception buffer group 2, a write address signal 68b to the transmission error register 4, a write address signal 68c to the reception error register group 5d, a write address signal 68d to the source address register group 6d, and Reply RSP
It is output as a write address signal 68e to the register 7.

【0106】第1制御回路70は、上述の受信バッファ
群2への書込みアドレス信号68a と受信書込み信号
16とに従って受信バッファ群2への書込み信号 (以
下、受信バッファ書込み信号という) 27を生成する
。この受信バッファ書込み信号27は、データ数カウン
タ21のカウント値が”2” である場合、つまり両受
信バッファ2a, 2bのいずれにもデータが書込まれ
ており、なおかつ読出しがされていない状態であること
を示している場合 (以下、この状態を受信バッファフ
ル状態という) には生成されない。このため、第1制
御回路70には、受信バッファフル状態になるとセット
される信号 (以下、受信バッファフルフラグという)
 79がデータ数カウンタ21から与えられている。
The first control circuit 70 generates a write signal 27 to the receive buffer group 2 (hereinafter referred to as a receive buffer write signal) according to the above-described write address signal 68a to the receive buffer group 2 and the receive write signal 16. . This reception buffer write signal 27 is generated when the count value of the data number counter 21 is "2", that is, when data has been written to both reception buffers 2a and 2b but has not been read. (hereinafter, this state is referred to as a receive buffer full state), it is not generated. Therefore, the first control circuit 70 has a signal (hereinafter referred to as a receive buffer full flag) that is set when the receive buffer is full.
79 is given from the data number counter 21.

【0107】第2制御回路71は、上述の受信エラーレ
ジスタ群5dへの書込みアドレス信号68c と送信エ
ラーレジスタ4への書込みアドレス信号68b と受信
書込み信号16とに従ってステータスレジスタ群3への
書込み信号 (以下、ステータス書込み信号という) 
33を生成する。このステータス書込み信号33は、ス
テータス数カウンタ22のカウント値が”4” である
場合、つまり全てのステータスレジスタ3a, 3b,
 3c,3dにデータが書込まれており、なおかつ読出
しがされていない状態を示している場合 (以下、この
状態をステータスフル状態という) には生成されない
。このため、第2制御回路71には、ステータスフル状
態になるとセットされる信号 (以下、ステータスフル
フラグという) 80がステータス数カウンタ22から
与えられている。
The second control circuit 71 writes a write signal ( (hereinafter referred to as status write signal)
Generate 33. This status write signal 33 is sent when the count value of the status number counter 22 is "4", that is, all the status registers 3a, 3b,
It is not generated when data has been written to 3c and 3d but has not been read (hereinafter, this state is referred to as a status full state). For this reason, the second control circuit 71 is supplied with a signal 80 from the status number counter 22 that is set when the status is full (hereinafter referred to as a status full flag).

【0108】また、第2制御回路71では、ステータス
書込み信号33の発生後にステータスレジスタ群3への
書込みが完了したことを知らせる信号、即ちステータス
書込み完了信号31も生成している。更に、このステー
タス書込み完了信号31はステータス数カウンタ22に
そのアップカウントクロックとして与えられている。
The second control circuit 71 also generates a signal indicating that writing to the status register group 3 is completed after the status write signal 33 is generated, that is, a status write completion signal 31. Furthermore, this status write completion signal 31 is given to the status number counter 22 as its up-count clock.

【0109】参照符号35は送信エラーレジスタ4への
書込み信号 (以下、送信エラー書込み信号という) 
であり、上述のアドレスデコーダ68からの送信エラー
レジスタ4への書込みアドレス信号68b と受信書込
み信号16との論理積を ANDゲート35A でとる
ことにより生成される
Reference numeral 35 is a write signal to the transmission error register 4 (hereinafter referred to as transmission error write signal)
is generated by ANDing the write address signal 68b from the address decoder 68 to the transmission error register 4 and the reception write signal 16 using the AND gate 35A.

【0110】オーバーラン検出回
路69は、受信書込みデータ信号15中のオーバランデ
ータを検出し、このオーバランデータがバッファメモリ
内に格納された後にオーバーラン検出フラグ81を発生
する。
Overrun detection circuit 69 detects overrun data in received write data signal 15 and generates overrun detection flag 81 after this overrun data is stored in the buffer memory.

【0111】第3制御回路72は、上述の受信エラーレ
ジスタへの書込みアドレス信号68c と受信書込み信
号16とに従って受信エラーレジスタ群5dへの書込み
信号 (以下、受信エラー書込み信号という) 37を
生成し、ソースアドレスレジスタ群6dへの書込みアド
レス信号68d と受信書込み信号16とに従ってソー
スアドレスレジスタ群6dへの書込み信号 (以下、ソ
ースアドレス書込み信号という) 38を生成する。こ
のソースアドレス書込み信号38は、上述のオーバーラ
ン検出フラグ81と受信バッファフルフラグ79とが発
生している場合には生成されない。このため、第3制御
回路72には、上述のオーバーラン検出フラグ81と受
信バッファフルフラグ79とが与えられている。
The third control circuit 72 generates a write signal 37 (hereinafter referred to as reception error write signal) to the reception error register group 5d in accordance with the write address signal 68c to the reception error register and the reception write signal 16 described above. , a write signal 38 to be written to the source address register group 6d (hereinafter referred to as source address write signal) 38 is generated according to the write address signal 68d to be written to the source address register group 6d and the received write signal 16. This source address write signal 38 is not generated when the above-described overrun detection flag 81 and reception buffer full flag 79 are generated. For this reason, the third control circuit 72 is provided with the above-mentioned overrun detection flag 81 and reception buffer full flag 79.

【0112】また、第3制御回路72は、上述の受信エ
ラー書込み信号37が発生した後に受信エラーレジスタ
群5d及びソースアドレスレジスタ群6dへの書込みが
完了したことを知らせる信号、即ち受信エラー書込み完
了信号39も生成する。
Further, the third control circuit 72 generates a signal indicating that writing to the reception error register group 5d and source address register group 6d is completed after the reception error write signal 37 described above is generated, that is, a reception error write completion signal. A signal 39 is also generated.

【0113】更に、第3制御回路72は、受信エラー書
込み信号37発生後に受信バッファ書込み完了信号25
も生成するが、上述の受信バッファフルフラグ79が発
生している場合にはこの受信バッファ書込み完了信号2
5は生成されない。また、上述の受信バッファ書込み完
了信号25は、データ数カウンタ21にそのアップカウ
ントクロックとして与えられている。
Further, the third control circuit 72 outputs the reception buffer write completion signal 25 after the reception error write signal 37 is generated.
However, if the above-mentioned receive buffer full flag 79 is generated, this receive buffer write completion signal 2 is generated.
5 is not generated. Further, the above-mentioned receive buffer write completion signal 25 is given to the data number counter 21 as its up-count clock.

【0114】参照符号44は、返信RSP レジスタ7
への書込み信号 (以下、返信RSP 書込み信号とい
う) であり、アドレスデコーダ68から出力される返
信RSP レジスタ7への書込みアドレス信号68e 
と受信書込み信号16との論理積を ANDゲート44
A でとることにより生成される
Reference numeral 44 is the reply RSP register 7
(hereinafter referred to as the reply RSP write signal), and is the write address signal 68e to the reply RSP register 7 output from the address decoder 68.
AND gate 44 and the received write signal 16.
It is generated by taking A

【0115】図16の
参照符号26は、第1制御部23a が発生した受信バ
ッファ書込み信号27と受信バッファ書込み完了信号2
5とが入力される受信バッファ書込みポインタ (以下
、受信バッファWRポインタという) である。この受
信バッファWRポインタ26は、受信バッファ書込み信
号27を受信バッファ書込み完了信号25により、第1
受信バッファ2aへの書込み信号28 (以下、第1受
信バッファ書込み信号という) と、第2受信バッファ
2bへの書込み信号29 (以下、第2受信バッファ書
込み信号) とに切換える受信バッファ群書込み信号切
換え制御ブロックとしての機能を有している。
Reference numeral 26 in FIG. 16 indicates a receive buffer write signal 27 and a receive buffer write completion signal 2 generated by the first controller 23a.
5 is the receive buffer write pointer (hereinafter referred to as receive buffer WR pointer) that is input. The receive buffer WR pointer 26 receives the receive buffer write signal 27 from the first
Receive buffer group write signal switching to switch between a write signal 28 to the receive buffer 2a (hereinafter referred to as the first receive buffer write signal) and a write signal 29 to the second receive buffer 2b (hereinafter referred to as the second receive buffer write signal) It functions as a control block.

【0116】図16の参照符号32は、第1制御部23
a が発生したステータス書込み完了信号31とステー
タス書込み信号33とが入力されるステータスWRポイ
ンタである。このステータスWRポインタ32は、ステ
ータス書込み信号33をステータス書込み完了信号31
により、第1ステータスレジスタ3aへの書込み信号 
(以下、第1ステータス書込み信号という)34aと、
第2ステータスレジスタ3bへの書込み信号 (以下、
第2ステータス書込み信号という)34bと、第3ステ
ータスレジスタ3cへの書込み信号(以下、第3ステー
タス書込み信号という)34cと、第4ステータスレジ
スタ3dへの書込み信号 (以下、第4ステータス書込
み信号という)34dとに切換えるステータスレジスタ
群書込み信号切換え制御ブロックとしての機能を有して
いる。
Reference numeral 32 in FIG. 16 indicates the first control section 23.
This is a status WR pointer to which the status write completion signal 31 and the status write signal 33 in which a is generated are input. This status WR pointer 32 converts the status write signal 33 into the status write completion signal 31.
The write signal to the first status register 3a is
(hereinafter referred to as the first status write signal) 34a;
Write signal to second status register 3b (hereinafter,
A write signal to the third status register 3c (hereinafter referred to as the third status write signal) 34c, and a write signal to the fourth status register 3d (hereinafter referred to as the fourth status write signal) 34b. ) 34d and functions as a status register group write signal switching control block.

【0117】図17の参照符号36は、第1制御部23
a が発生した受信エラー書込み完了信号39と受信エ
ラー書込み信号37とソースアドレス書込み信号38と
が入力される受信エラーWRポインタである。この受信
エラーWRポインタ36は、受信エラー書込み信号37
を受信エラー書込み完了信号39により、第1受信エラ
ーレジスタ5aへの書込み信号 (以下、第1受信エラ
ー書込み信号という)40aと、第2受信エラーレジス
タ5bへの書込み信号 (以下、第2受信エラー書込み
信号という)40bと、第3受信エラーレジスタ5cへ
の書込み信号 (以下、第3受信エラー書込み信号とい
う)40cとに切換え、またソースアドレス書込み信号
38を受信エラー書込み完了信号39により、第1ソー
スアドレスレジスタ6aへの書込み信号 (以下、第1
ソースアドレス書込み信号という)41aと、第2ソー
スアドレスレジスタ6bへの書込み信号 (以下、第2
ソースアドレス書込み信号という)41bと、第3ソー
スアドレスレジスタ6cへの書込み信号(以下、第3ソ
ースアドレス書込み信号という)41cとに切換える受
信エラーレジスタ群アドレス切換え制御ブロック及びソ
ースアドレスレジスタ群書込みアドレス切換え制御ブロ
ックとしての両方の機能を有している。
Reference numeral 36 in FIG. 17 indicates the first control section 23.
This is a reception error WR pointer to which a reception error write completion signal 39, reception error write signal 37, and source address write signal 38 in which a has occurred are input. This reception error WR pointer 36 indicates the reception error write signal 37.
The reception error write completion signal 39 causes a write signal 40a to the first reception error register 5a (hereinafter referred to as the first reception error write signal) 40a and a write signal to the second reception error register 5b (hereinafter referred to as the second reception error 40b and a write signal (hereinafter referred to as the third reception error write signal) 40c to the third reception error register 5c, and the source address write signal 38 is switched to the first reception error write completion signal 39. Write signal to the source address register 6a (hereinafter referred to as the first
source address write signal) 41a and a write signal to the second source address register 6b (hereinafter referred to as the second
A reception error register group address switching control block and a source address register group write address switching control block that switches between the source address write signal) 41b and the write signal (hereinafter referred to as the third source address write signal) 41c to the third source address register 6c. It has both functions as a control block.

【0118】次に、送信バッファ1への書込み制御と、
受信バッファ群2, ステータスレジスタ群3, 送信
エラーレジスタ4, 受信エラーレジスタ群5d, ソ
ースアドレスレジスタ群6d及び返信RSPレジスタ7
の読出し制御とを行うブロックの構成と概略動作につい
て説明する。
Next, write control to transmission buffer 1,
Reception buffer group 2, status register group 3, transmission error register 4, reception error register group 5d, source address register group 6d, and reply RSP register 7
The configuration and general operation of the block that performs read control will be described.

【0119】参照符号23b はマイクロコンピュータ
IFブロック11側からバッファメモリブロック9に対
するデータの入出力を制御する第2制御部であり、マイ
クロコンピュータIFブロック11からのアドレス信号
17と、マイクロコンピュータIFブロック11からの
書込み信号19と、更にステータスレジスタ群3からの
読出しデータ (以下、ステータス読出しデータという
) 55とにより、送信バッファ1への書込み信号と、
受信バッファ群2, ステータスレジスタ群3, 送信
エラーレジスタ4, 受信エラーレジスタ群5d, ソ
ースアアドレスレジスタ群6d及び返信RSP レジス
タ7の読出し信号とを生成する。
Reference numeral 23b is a second control unit that controls the input/output of data from the microcomputer IF block 11 side to the buffer memory block 9, and the address signal 17 from the microcomputer IF block 11 and the microcomputer IF block 11 A write signal 19 from the status register group 3 and read data (hereinafter referred to as status read data) 55 from the status register group 3 cause a write signal to the transmission buffer 1;
It generates read signals for the reception buffer group 2, status register group 3, transmission error register 4, reception error register group 5d, source address register group 6d, and reply RSP register 7.

【0120】第2制御部23b の具体的な構成を図1
9のブロック図に示す。
The specific configuration of the second control section 23b is shown in FIG.
9 is shown in the block diagram.

【0121】第2制御部23b は、アドレスデコーダ
73, 制御回路74,  ANDゲート45A, 6
5A,78A 等にて構成されている。
The second control section 23b includes an address decoder 73, a control circuit 74, AND gates 45A, 6
It is composed of 5A, 78A, etc.

【0122】アドレスデコーダ73は、マイクロコンピ
ュータIFブロック11から与えられるアドレス信号1
7をデコードして受信バッファ群2の読出しアドレス信
号48, ステータスレジスタ群3の読出しアドレス信
号53, 送信エラーレジスタ4の読出しアドレス信号
56, 受信エラーレジスタ群5dの読出しアドレス信
号58, ソースアドレスレジスタ群6dの読出しアド
レス信号59及び返信RSP レジスタ7の読出しアド
レス信号63として出力する。
Address decoder 73 receives address signal 1 from microcomputer IF block 11.
7 is decoded to obtain the read address signal 48 of the receive buffer group 2, the read address signal 53 of the status register group 3, the read address signal 56 of the transmit error register 4, the read address signal 58 of the receive error register group 5d, and the read address signal 58 of the source address register group. 6d as a read address signal 59 and a reply RSP register 7 as a read address signal 63.

【0123】参照符号45は送信バッファ1への書込み
信号であり、アドレスデコーダ73から出力される送信
バッファ1への書込みアドレス信号75とマイクロコン
ピュータIFブロック11から出力される書込み信号1
9との論理積を ANDゲート45A でとることによ
り生成される。
Reference numeral 45 is a write signal to the transmission buffer 1, which includes the write address signal 75 to the transmission buffer 1 outputted from the address decoder 73 and the write signal 1 outputted from the microcomputer IF block 11.
It is generated by performing a logical product with 9 using an AND gate 45A.

【0124】また、このバッファメモリ内には、送信バ
ッファ1への書込みが完了したことを検出するTXレジ
スタ書込み完了レジスタ64が備えられている。このT
Xレジスタ書込み完了レジスタ64は、後述するTXレ
ジスタ書込み完了信号65が与えられることにより送信
バッファ1への書込みが完了したことを記憶し、送信バ
ッファフルフラグ66をLAN IFブロック10へ出
力する。
Further, this buffer memory includes a TX register write completion register 64 for detecting completion of writing to the transmission buffer 1. This T
The X register write completion register 64 stores that writing to the transmission buffer 1 has been completed by receiving a TX register write completion signal 65 to be described later, and outputs a transmission buffer full flag 66 to the LAN IF block 10.

【0125】この送信バッファフルフラグ66が入力さ
れるとLANIFブロック10は、 LAN伝送路の状
態を監視し、あるタイミングで送信バッファ1内のデー
タ列を読出すための送信読出しアドレス信号12を出力
することにより、送信バッファ1内のデータ列を順次読
出す。
When this transmission buffer full flag 66 is input, the LANIF block 10 monitors the state of the LAN transmission path and outputs the transmission read address signal 12 for reading the data string in the transmission buffer 1 at a certain timing. By doing so, the data strings in the transmission buffer 1 are sequentially read out.

【0126】上述のTXレジスタ書込み完了レジスタ6
4に与えられるTXレジスタ書込み完了信号65は、ア
ドレスデコーダ73から出力された書込みアドレス信号
76とマイクロコンピュータIFブロック11から出力
される書込み信号19との論理積を ANDゲート65
A でとることにより、TXレジスタ書込み完了レジス
タ64への書込み信号、即ちTXレジスタ書込み完了信
号65が生成される。
[0126] Above-mentioned TX register write completion register 6
The TX register write completion signal 65 given to the TX register write completion signal 65 is the logical product of the write address signal 76 outputted from the address decoder 73 and the write signal 19 outputted from the microcomputer IF block 11.
By taking A, a write signal to the TX register write completion register 64, that is, a TX register write completion signal 65 is generated.

【0127】また、このバッファメモリ内には、受信バ
ッファ群2, ステータスレジスタ群3, 送信エラー
レジスタ4, 受信エラーレジスタ群5d, ソースア
ドレスレジスタ群6d) 及び返信RSP レジスタ7
の読出しが完了したことを記憶するRXレジスタ読出し
完了レジスタ67 (図6参照、図15には図示せず)
 が備えられており、このRXレジスタ読出し完了レジ
スタ67に対する書込み信号 (以下、RXレジスタ読
出し完了信号という) 78はアドレスデコーダ73の
出力であるRXレジスタ読出し完了レジスタ67への書
込みアドレス信号77とマイクロコンピュータIFブロ
ック11からの書込み信号19との論理積を ANDゲ
ート78A でとることにより生成される。
[0127] Also, in this buffer memory, there are a reception buffer group 2, a status register group 3, a transmission error register 4, a reception error register group 5d, a source address register group 6d), and a reply RSP register 7.
RX register read completion register 67 that stores the completion of reading (see FIG. 6, not shown in FIG. 15)
A write signal 78 to the RX register read completion register 67 (hereinafter referred to as RX register read completion signal) 78 is a write address signal 77 to the RX register read completion register 67 which is the output of the address decoder 73, and a microcomputer. It is generated by performing a logical product with the write signal 19 from the IF block 11 using an AND gate 78A.

【0128】制御回路74は、ステータスレジスタ群3
から入力されるステータスレジスタのデータ信号55の
内容に従って、RXレジスタ読出し完了信号78が入力
された場合、受信バッファの読出しが完了したことを示
す受信バッファ読出し完了信号46と、ステータスレジ
スタの読出しが完了したことを示すステータス読出し完
了信号51と、受信エラーレジスタ及びソースアドレス
レジスタの読出しが完了したことを示す受信エラー読出
し完了信号60とを発生する。
The control circuit 74 controls the status register group 3.
When the RX register read completion signal 78 is input according to the contents of the status register data signal 55 input from A status read completion signal 51 indicating that the reception error register and source address register have been read is generated, and a reception error read completion signal 60 indicating that the reception error register and source address register have been read are generated.

【0129】また、受信バッファ読出し完了信号46は
データ数カウンタ21にそのダウンクロックとして、ス
テータス読出し完了信号51はステータス数カウンタ2
2にそのダウンクロックとして与えられている。
Further, the reception buffer read completion signal 46 is sent to the data number counter 21 as a down clock, and the status read completion signal 51 is sent to the status number counter 21.
2 is given as its downclock.

【0130】図16において参照符号47は、第2制御
部23bが発生した受信バッファ読出し完了信号46と
受信バッファ群2への読出しアドレス信号48とが入力
される受信バッファ読出しポインタ (以下、受信バッ
ファRDポインタという) である。この受信バッファ
RDポインタ47は、受信バッファ群2への読出しアド
レス信号48を受信バッファ読出し完了信号46により
、第1受信バッファ2aへの読出しアドレス信号49(
以下、第1受信バッファ読出しアドレス信号という) 
と、第2受信バッファ2bへの読出しアドレス信号50
 (以下、第2受信バッファ読出しアドレス信号という
) とに切換える受信バッファ群読出しアドレス切換え
制御ブロックとしての機能を有している。
In FIG. 16, reference numeral 47 is a receive buffer read pointer (hereinafter referred to as receive buffer (referred to as RD pointer). This reception buffer RD pointer 47 transfers the read address signal 48 to the reception buffer group 2 to the read address signal 49 (
(hereinafter referred to as the first reception buffer read address signal)
and a read address signal 50 to the second reception buffer 2b.
(Hereinafter referred to as the second reception buffer read address signal) It has a function as a reception buffer group read address switching control block that switches between the two.

【0131】参照符号52は、第2制御部23b が発
生したステータスレジスタの読出しアドレス信号53と
ステータス読出し完了51とが入力されるステータスR
Dポインタである。このステータスRDポインタ52は
、ステータスレジスタの読出しアドレス信号53をステ
ータス読出し完了51により、第1ステータスレジスタ
3aへの読出しアドレス信号 (以下、第1ステータス
読出しアドレス信号という)54aと、第2ステータス
レジスタ3bへの読出しアドレス信号 (以下、第2ス
テータス読出しアドレス信号という)54bと、第3ス
テータスレジスタ3cへの読出しアドレス信号 (以下
、第3ステータス読出しアドレス信号という)54cと
、第4ステータスレジスタ3dへの読出しアドレス信号
 (以下、第4ステータス読出しアドレス信号という)
54dとに切換えるステータスレジスタ群読出しアドレ
ス切換え制御ブロックとしての機能を有している。
Reference numeral 52 denotes a status R to which the status register read address signal 53 and status read completion 51 generated by the second control unit 23b are input.
It is a D pointer. This status RD pointer 52 converts the read address signal 53 of the status register into a read address signal (hereinafter referred to as the first status read address signal) 54a to the first status register 3a and a second status register 3b by the status read completion 51. A read address signal (hereinafter referred to as the second status read address signal) 54b to the third status register 3c, a read address signal (hereinafter referred to as the third status read address signal) 54c to the third status register 3c, and a read address signal to the fourth status register 3d. Read address signal (hereinafter referred to as 4th status read address signal)
It has a function as a status register group read address switching control block that switches between 54d and 54d.

【0132】参照符号57は、第2制御部23b が発
生した受信エラー読出し完了信号60と、受信エラー読
出しアドレス信号58と、ソースアドレス読出しアドレ
ス信号59とが入力される受信エラーRDポインタであ
る。この受信エラーRDポインタ57は、受信エラー読
出しアドレス信号58を受信エラー読出し完了信号60
により、第1受信エラーレジスタ5aへの読出しアドレ
ス信号 (以下、第1受信エラー読出しアドレス信号と
いう)61aと、第2受信エラーレジスタ5bへの読出
しアドレス信号 (以下、第2受信エラー読出しアドレ
ス信号という)61bと、第3受信エラーレジスタ5c
への読出しアドレス信号 (以下、第3受信エラー読出
しアドレス信号という)61cとに切換え、またソース
アドレス読出しアドレス信号59を受信エラー読出し完
了信号60により、第1ソースアドレスレジスタ6aへ
の読出しアドレス信号(以下、第1ソースアドレス読出
しアドレス信号という)62aと、第2ソースアドレス
レジスタ6bへの読出しアドレス信号 (以下、第2ソ
ースアドレス読出しアドレス信号という)62bと、第
3ソースアドレスレジスタ6cへの書込みアドレス信号
 (以下、第3ソースアドレス読出しアドレス信号とい
う) 62とに切換える受信エラーレジス群読出しアド
レス切換え制御ブロック及びソースアドレスレジスタ群
読出しアドレス切換え制御ブロックとしての機能を併せ
持っている。
Reference numeral 57 is a reception error RD pointer to which a reception error read completion signal 60, a reception error read address signal 58, and a source address read address signal 59 generated by the second control section 23b are input. This reception error RD pointer 57 indicates the reception error read address signal 58 and the reception error read completion signal 60.
As a result, a read address signal 61a to the first reception error register 5a (hereinafter referred to as the first reception error read address signal) and a read address signal 61a to the second reception error register 5b (hereinafter referred to as the second reception error read address signal) are generated. ) 61b and the third reception error register 5c
The source address read address signal 59 is switched to the read address signal (hereinafter referred to as the third reception error read address signal) 61c to the first source address register 6a by the reception error read completion signal 60. A read address signal (hereinafter referred to as the first source address read address signal) 62a to the second source address register 6b (hereinafter referred to as the second source address read address signal) 62b, and a write address to the third source address register 6c. It also functions as a reception error register group read address switching control block and a source address register group read address switching control block that switches to a signal (hereinafter referred to as the third source address read address signal) 62.

【0133】なお、図17において参照符号98O は
ORゲートであり、後述するステータス管理部82の出
力信号85と、データ数管理部86の出力信号89とを
入力とし、両入力信号の論理和をこのバッファメモリ全
体のリセット信号98として出力する。
In FIG. 17, reference numeral 98O is an OR gate, which inputs an output signal 85 of a status management section 82 and an output signal 89 of a data number management section 86, which will be described later, and calculates the logical sum of both input signals. This signal is output as a reset signal 98 for the entire buffer memory.

【0134】次に、上述のような構成の制御手段を有す
るバッファメモリ制御系により、複数のバッファ及びレ
ジスタからなるバッファメモリ内のある特定のバッファ
及びレジスタが、同一属性のデータを格納する動作を、
いくつかの通信例について図面を参照して具体的に説明
する。
Next, the buffer memory control system having the control means configured as described above causes certain buffers and registers in the buffer memory consisting of a plurality of buffers and registers to perform operations for storing data of the same attribute. ,
Some communication examples will be specifically explained with reference to the drawings.

【0135】図20, 図21, 図21は本発明の通
信装置による通信の際のバッファメモリ内におけるデー
タの流れとバッファメモリ内の各バッファ及びレジスタ
に格納されるデータを時系列に沿って示すタイミングチ
ャートである。また、これらの各通信例において、各デ
ータ列が各バッファ及びレジスタに格納された状態及び
書込み先,読出し先を示すWRポインタ、RDポインタ
の状態を図23, 図24, 図25, 第26, 図
27, 図28, 図29, 図30, 図31に示す
。なお、これらの各図の内の図23は初期状態における
バッファメモリの状態を示している。なお、図20の下
側と図21の上側とは連続しており、図21の下側と図
21の上側とは連続している。
20, 21, and 21 show the flow of data in the buffer memory during communication by the communication device of the present invention and the data stored in each buffer and register in the buffer memory in chronological order. This is a timing chart. In addition, in each of these communication examples, the states of the WR pointer and RD pointer indicating the state in which each data string is stored in each buffer and register, the write destination, and the read destination are shown in FIGS. 23, 24, 25, 26, Shown in FIGS. 27, 28, 29, 30, and 31. Note that FIG. 23 among these figures shows the state of the buffer memory in the initial state. Note that the lower side of FIG. 20 and the upper side of FIG. 21 are continuous, and the lower side of FIG. 21 and the upper side of FIG. 21 are continuous.

【0136】図20, 図21, 図21のタイミング
チャートに示されている通信例は、図14に示すLAN
 IFブロック10から1フレーム分の受信書込みデー
タ入力信号15,マイクロコンピュータIFブロック1
1から1フレーム分の送信書込みデータ入力信号18及
び送信データ出力信号13, 更に3フレーム分の受信
書込みデータ入力信号15があり、その後、入力された
順に各フレームの受信読出しデータ信号20が出力され
る状態を示す。
The communication examples shown in the timing charts of FIGS. 20, 21, and 21 are based on the LAN shown in FIG.
One frame of received write data input signal 15 from IF block 10, microcomputer IF block 1
There are a transmission write data input signal 18 and a transmission data output signal 13 for one frame from 1 to 1, and a reception write data input signal 15 for three frames, and then reception read data signals 20 of each frame are output in the order in which they were input. Indicates the state of

【0137】まず、図20(d) に示す如く、受信書
込みデータ信号15としてデータ列RI1が入力された
とする。
First, assume that the data string RI1 is input as the received write data signal 15, as shown in FIG. 20(d).

【0138】データ列RI1中の受信フレームのデータ
群RB1は図20(e) に示す如く第1受信バッファ
2aに入力され、またソースアドレスデータSAR1の
みが図20(p) に示す如く第1ソースアドレスレジ
スタ6aに格納され、データ列RI1中の受信状態を示
すデータRE1が図20(m) に示す如く第1受信エ
ラーレジスタ5aに入力され、ステータスデータSR1
が図20(h) に示す如く第1ステータスレジスタ3
aに書込まれて受信完了となる。
The data group RB1 of the received frame in the data string RI1 is input to the first reception buffer 2a as shown in FIG. 20(e), and only the source address data SAR1 is input to the first source as shown in FIG. 20(p). Data RE1, which is stored in the address register 6a and indicates the reception status in the data string RI1, is input to the first reception error register 5a as shown in FIG. 20(m), and the status data SR1
is the first status register 3 as shown in Figure 20(h).
The data is written to a and reception is completed.

【0139】このデータ列RI1の受信完了により、図
21(G),図21(C),  図22(J) にそれ
ぞれ示す如く、受信バッファ書込み完了フラグ25, 
ステータス書込み完了信号31,受信エラー書込み完了
39が出力される。また、受信バッファWRポインタ2
6, ステータスWRポインタ32及び受信エラーWR
ポインタ36が切換えられ、図21(E),  図21
(A) にそれぞれ示す如く、データ数カウンタ21の
カウント値出力信号24は”1”に、ステータス数カウ
ンタ22のカウント値出力信号30は”1”になる。
Upon completion of reception of this data string RI1, the receive buffer write completion flag 25, as shown in FIG. 21(G), FIG. 21(C), and FIG.
A status write completion signal 31 and a reception error write completion signal 39 are output. Also, receive buffer WR pointer 2
6. Status WR pointer 32 and reception error WR
The pointer 36 is switched, and FIGS. 21(E) and 21
As shown in (A), the count value output signal 24 of the data number counter 21 becomes "1" and the count value output signal 30 of the status number counter 22 becomes "1".

【0140】この時点のバッファメモリのデータの格納
状態は図24に示されている如くである。
The data storage state of the buffer memory at this point is as shown in FIG.

【0141】次に、図20(a) に示す如く送信書込
みデータ信号18としてデータ列T1が入力され、図2
0(b) に示す如く送信バッファ1にT1が格納され
る。
Next, as shown in FIG. 20(a), the data string T1 is input as the transmission write data signal 18, and as shown in FIG.
0(b), T1 is stored in the transmission buffer 1.

【0142】このデータ列T1は、図20(c) に示
す如く、LAN IFブロック10を経て LAN伝送
路へ送信される。その後、図21(t) に示されてい
る受信書込み信号16により、データ列T1の送信状態
を示すデータTE1が図20(l) に示す如く送信エ
ラーレジスタ4に、データ列T1を受信した通信装置か
ら返信されてきたRSP のデータTR1が図21(s
) に示す如く返信RSP レジスタ7にそれぞれ書込
まれ、最後にフレームの管理状態、即ち送信が完了した
ことを示すデータST1が図20(i) に示す如く第
2ステータスレジスタ3bに書込まれて送信完了となる
This data string T1 is transmitted to the LAN transmission path via the LAN IF block 10, as shown in FIG. 20(c). Thereafter, by the reception write signal 16 shown in FIG. 21(t), data TE1 indicating the transmission status of the data string T1 is stored in the transmission error register 4 as shown in FIG. 20(l). The RSP data TR1 returned from the device is shown in Figure 21 (s
) are written in the reply RSP register 7 as shown in FIG. Sending is completed.

【0143】このデータ列T1の送信完了により、図2
1(C) に示す如く、ステータス書込み完了信号31
が発せられ、ステータスWRポインタ32が切換わり、
図21(A) に示す如くステータス数カウンタ22の
カウント値出力信号30は”2” になる。
[0143] Upon completion of transmission of this data string T1, as shown in FIG.
1(C), the status write completion signal 31
is issued, the status WR pointer 32 is switched,
As shown in FIG. 21(A), the count value output signal 30 of the status number counter 22 becomes "2".

【0144】この時点のバッファメモリのデータの格納
状態は図25に示されている如くである。
The storage state of data in the buffer memory at this point is as shown in FIG.

【0145】次に、図20(d) に示す如く、受信書
込みデータ信号15としてデータ列RI2が入力された
とする。
Next, suppose that the data string RI2 is input as the received write data signal 15, as shown in FIG. 20(d).

【0146】データ列RI1中の受信フレームのデータ
群RB2が図20(f) に示す如く第2受信バッファ
2bに、またソースアドレスデータSAR2のみが図2
0(g) に示す如く第2ソースアドレスレジスタ6b
に、データ列RI2中の受信状態を示すデータRE2が
図20(n) に示す如く第2受信エラーレジスタ5b
に、そしてステータスデータSR2が図20(j) に
示す如く第3ステータスレジスタ3cにそれぞれ入力さ
れて受信完了となる。
The data group RB2 of the received frame in the data string RI1 is stored in the second reception buffer 2b as shown in FIG. 20(f), and only the source address data SAR2 is stored in the second reception buffer 2b as shown in FIG.
0(g) as shown in the second source address register 6b.
Then, data RE2 indicating the reception status in the data string RI2 is stored in the second reception error register 5b as shown in FIG. 20(n).
Then, the status data SR2 is input to the third status register 3c as shown in FIG. 20(j), and reception is completed.

【0147】このデータ列RI2の受信完了により、図
21(G),図21(C),  図22(J) にそれ
ぞれ示す如く、受信バッファ書込み完了信号25, ス
テータス書込み完了信号31, 受信エラー書込み完了
39が出力される。また、受信バッファWRポインタ2
6, ステータスWRポインタ32及び受信エラーWR
ポインタ36が切換えられ、図21(E),  図21
(F) に示す如く、データ数カウンタ21のカウント
値出力信号24は”2” になって、受信バッファフル
フラグ79が立つ。更に、図21(A) に示す如く、
ステータス数カウンタ22のカウント値出力信号30は
”3” になる。
Upon completion of reception of this data string RI2, as shown in FIGS. 21(G), 21(C), and 22(J), a receive buffer write complete signal 25, a status write complete signal 31, and a receive error write are generated. Completion 39 is output. Also, receive buffer WR pointer 2
6. Status WR pointer 32 and reception error WR
The pointer 36 is switched, and FIGS. 21(E) and 21
As shown in (F), the count value output signal 24 of the data number counter 21 becomes "2" and the reception buffer full flag 79 is set. Furthermore, as shown in FIG. 21(A),
The count value output signal 30 of the status number counter 22 becomes "3".

【0148】この時点のバッファメモリのデータの格納
状態は図26に示されている如くである。
The storage state of data in the buffer memory at this point is as shown in FIG.

【0149】次に、図20(d) に示す如く、受信書
込みデータとしてデータ列RI3が入力されたとする。
Next, suppose that data string RI3 is input as received write data, as shown in FIG. 20(d).

【0150】この場合、受信バッファ群2の両受信バッ
ファ2a, 2bは図20(e),  図20(f) 
に示す如く共に既にデータが格納されており、なおかつ
読出されていない。このため、図21(F) に示す如
く、受信バッファフルフラグ79がセットされていてデ
ータ列RI3は受信バッファ2a, 2bに書込むこと
は出来ない。しかし、図21(r),  図20(o)
,  図20(k) にそれぞれ示す如く、データ列R
I3中のデータSAR3が第3ソースアドレスレジスタ
6cに、データRE3が第3受信エラーレジスタ5cに
、そしてデータSR3が第4ステータスレジスタ3dに
それぞれ入力されてデータ列RI3の受信完了となる。
In this case, both reception buffers 2a and 2b of reception buffer group 2 are arranged as shown in FIGS. 20(e) and 20(f).
As shown in the figure, data has already been stored in both, but has not yet been read out. Therefore, as shown in FIG. 21(F), the receive buffer full flag 79 is set and the data string RI3 cannot be written to the receive buffers 2a and 2b. However, Fig. 21(r), Fig. 20(o)
, as shown in Figure 20(k), the data string R
Data SAR3 in I3 is input to the third source address register 6c, data RE3 is input to the third reception error register 5c, and data SR3 is input to the fourth status register 3d, thereby completing reception of the data string RI3.

【0151】このデータ列RI3の受信完了により、図
21(C),図22(J) に示す如く、ステータス書
込み完了信号31, 受信エラー書込み完了39が出力
される。また、ステータスWRポインタ32及び受信エ
ラーWRポインタ36が切換えられ、図21(E), 
 図21(B)に示す如く、ステータス数カウンタ22
のカウント値出力信号24は”4” になり、ステータ
スフルフラグ80がセットされる。また、データ列RI
3の入力の前に図21(F) に示す如く受信バッファ
フルフラグ79がセットされているため、データ列RI
3内にはデータ列RI3自身がオーバーランの状態であ
ることを示すオーバーランデータが書込まれており、デ
ータ列RI3の書込み完了時に図22(I) に示す如
くオーバーラン検出フラグ81がセットされる。
Upon completion of reception of this data string RI3, a status write completion signal 31 and reception error write completion 39 are output as shown in FIGS. 21(C) and 22(J). Also, the status WR pointer 32 and the reception error WR pointer 36 are switched, and as shown in FIG. 21(E),
As shown in FIG. 21(B), the status number counter 22
The count value output signal 24 becomes "4" and the status full flag 80 is set. Also, data string RI
3, the receive buffer full flag 79 is set as shown in FIG. 21(F), so the data string RI
3, overrun data indicating that the data string RI3 itself is in an overrun state is written, and when the writing of the data string RI3 is completed, the overrun detection flag 81 is set as shown in FIG. 22(I). be done.

【0152】この時点のバッファメモリのデータの格納
状態は図27に示されている如くである。
The storage state of data in the buffer memory at this point is as shown in FIG.

【0153】以上の図27に示されている状態から更に
、図20(e) に示す如く、受信書込みデータとして
データ列RI4が入力されたとする。
Assume that the data string RI4 is further input as received write data from the state shown in FIG. 27 as shown in FIG. 20(e).

【0154】この場合、上述のデータ列RI3が入力さ
れた時点と同様に、受信バッファ群2の両受信バッファ
2a, 2bは共に既にデータが格納されており、なお
かつ読出されていない。このため、受信バッファフルフ
ラグ79がセットされているのでデータ列RI4は受信
バッファ2a, 2bには書込まれない。また、上述の
データ列RI3の受信完了時点でオーバーランがデータ
列RI3内に検出されていてオーバーラン検出フラグ8
1がセットされているため、データ列RI4はいずれの
ソースアドレスレジスタ, 受信エラーレジスタにも書
込まれることはなく、更に全てのステータスレジスタに
データが格納されていてステータスフルフラグ80がセ
ットされているためいずれのステータスレジスタにも書
込まれることはない。従って、データ列RI4は受信完
了とはならず、受信バッファ書込み完了信号25, ス
テータス書込み完了信号31, 受信エラー書込み完了
信号39はいずれも出力されず、受信バッファWRポイ
ンタ26, ステータスWRポインタ32及び受信エラ
ーWRポインタ36はいずれも切換えられることはない
In this case, data has already been stored in both reception buffers 2a and 2b of reception buffer group 2, and data has not yet been read out, as at the time when the above-mentioned data string RI3 was input. Therefore, since the receive buffer full flag 79 is set, the data string RI4 is not written to the receive buffers 2a and 2b. Furthermore, when the reception of the data string RI3 described above is completed, an overrun is detected in the data string RI3, and the overrun detection flag is set to 8.
Since 1 is set, data string RI4 is not written to any source address register or reception error register, and furthermore, data is stored in all status registers and status full flag 80 is set. Therefore, it will not be written to any status register. Therefore, the reception of the data string RI4 is not completed, and the reception buffer write completion signal 25, status write completion signal 31, and reception error write completion signal 39 are not output, and the reception buffer WR pointer 26, status WR pointer 32, and None of the receive error WR pointers 36 are toggled.

【0155】この時点のバッファメモリのデータの格納
状態は図27に示されている状態のままである。
The data storage state of the buffer memory at this point remains as shown in FIG. 27.

【0156】以上により、それぞれが複数個のバッファ
及びレジスタで構成されているバッファ群及びレジスタ
群である受信バッファ群2, ステータスレジスタ群3
, 受信エラーレジスタ群5d, ソースアドレスレジ
スタ群6dのそれぞれに対して、バッファ群及びレジス
タ群に対するアドレスを指定するのみで個々のバッファ
及びレジスタに対するアドレスを指定する必要なしに、
個々のバッファ及びレジスタに対するアドレスが受信フ
レームが入力される都度、順に切換わってそれぞれに所
定のデータが格納される。
[0156] As described above, the reception buffer group 2 and the status register group 3 are buffer groups and register groups each consisting of a plurality of buffers and registers.
, the reception error register group 5d, and the source address register group 6d, by simply specifying the addresses for the buffer group and the register group, without having to specify the addresses for the individual buffers and registers.
Each time a received frame is input, the addresses for the individual buffers and registers are switched in order and predetermined data is stored in each.

【0157】更に、書込み先が1受信フレーム毎に順次
切換わることにより、図20, 図21,図21のタイ
ミングチャートに示されている通信例の場合、第1受信
バッファ2aと第1受信エラーレジスタ5aと第1ソー
スアドレスレジスタ6aと第1ステータスレジスタ3a
とに同一属性のデータが一組として格納され、送信バッ
ファ1と送信エラーレジスタ4と返信RSP レジスタ
7と第2ステータスレジスタ3bとに同一属性のデータ
が一組として格納され、第2受信バッファ2bと第2受
信エラーレジスタ5bと第2ソースアドレスレジスタ6
bと第3ステータスレジスタ3cとに同一属性のデータ
が一組として格納され、第3受信エラーレジスタ5cと
第3ソースアドレスレジスタ6cと第4ステータスレジ
スタ3dとに同一属性のデータが一組として格納される
。これにより、各バッファと各レジスタ間に上述のよう
な対応付けが行われた上でそれぞれに常に同一属性のデ
ータが格納される。
Furthermore, by sequentially switching the write destination for each received frame, in the case of the communication examples shown in the timing charts of FIGS. 20, 21, and 21, the first reception buffer 2a and the first reception error Register 5a, first source address register 6a, and first status register 3a
Data with the same attribute is stored as a set in the transmission buffer 1, transmission error register 4, reply RSP register 7, and second status register 3b, and data with the same attribute is stored as a set in the second reception buffer 2b. , second reception error register 5b and second source address register 6
data with the same attribute is stored as a set in the third reception error register 5c, the third source address register 6c, and the fourth status register 3d, and data with the same attribute is stored as a set in the third reception error register 5c, the third source address register 6c, and the fourth status register 3d. be done. As a result, each buffer and each register are associated with each other as described above, and data with the same attribute is always stored in each buffer.

【0158】また、新たな受信データ群が入力された際
に、そのデータ群を格納すべきバッファ及びレジスタに
既にデータが格納されていて読出されないまま存在して
いる場合、上述のような管理を行っているためデータが
上書きされることはなく、常に同一属性のデータとして
一組のデータを保持することが可能になる。
[0158] Furthermore, when a new group of received data is input, if the data is already stored in the buffer or register that should store the data group and remains unread, the above management is not performed. Because this is done, the data will not be overwritten, and it is possible to always hold a set of data as data with the same attribute.

【0159】次に、図20(g) に示す如く、1フレ
ーム受信バッファデータ入力RI1と同一属性を示す一
連のデータ列DATA−R1が受信読出しデータ信号2
0に読出されたとする。
Next, as shown in FIG. 20(g), a series of data strings DATA-R1 having the same attribute as the one-frame reception buffer data input RI1 is received as the reception read data signal 2.
Suppose that it is read as 0.

【0160】この一連のデータ列DATA−R1の読出
し後、読出しが完了したことを示すRXレジスタ読出し
完了レジスタ67への書込み信号であるRXレジスタ読
出し完了フラグ78が図22(L) に示す如く出力さ
れ、DATA−R1の中のステータスデータの内容によ
り受信書込みデータRI1と同一属性のデータであるこ
とが判断され、図21(H),  図21(D),  
図22(K) にそれぞれ示す如く、受信バッファ読出
し完了信号46, ステータス読出し完了信号51及び
受信エラー読出し完了信号60が出力され、受信バッフ
ァRDポインタ47, ステータスRDポインタ52,
 受信エラーRDポインタ57が切換わる。
After reading this series of data strings DATA-R1, the RX register read completion flag 78, which is a write signal to the RX register read completion register 67 indicating that the read has been completed, is output as shown in FIG. 22(L). 21(H), FIG. 21(D),
As shown in FIG. 22(K), a reception buffer read completion signal 46, a status read completion signal 51, and a reception error read completion signal 60 are output, and the reception buffer RD pointer 47, status RD pointer 52,
The reception error RD pointer 57 is switched.

【0161】同時に、データ数カウンタ21のカウント
値出力信号24が図21(E) に示す如く”1” に
なり、ステータス数カウンタ22のカウント値出力信号
30は図21(A) に示す如く”3” になる。また
、図21(F),  図21(B) にそれぞれ示す如
く、受信バッファフルフラグ79とステータスフルフラ
グ80はリセットされる。これにより、第1受信バッフ
ァ2a, 第1ステータスレジスタ3a, 第1受信エ
ラーレジスタ5a及び第1ソースアドレスレジスタ6a
は、図20(e),  図20(h),  図20(m
),  図20(p) にそれぞれ示されているように
、書込み可能となる。
At the same time, the count value output signal 24 of the data number counter 21 becomes "1" as shown in FIG. 21(E), and the count value output signal 30 of the status number counter 22 becomes "1" as shown in FIG. 21(A). It becomes 3”. Further, as shown in FIGS. 21(F) and 21(B), the receive buffer full flag 79 and status full flag 80 are reset. As a result, the first reception buffer 2a, the first status register 3a, the first reception error register 5a, and the first source address register 6a
are shown in Figure 20(e), Figure 20(h), Figure 20(m).
), and as shown in FIG. 20(p), writing becomes possible.

【0162】この時点のバッファメモリのデータの格納
状態は図28に示されている如くである。
The storage state of data in the buffer memory at this point is as shown in FIG.

【0163】次に、1フレーム送信書込みデータ入力T
1と同一属性を示す一連のデータ列DATA−T1が読
出されたとする。
Next, 1 frame transmission write data input T
Assume that a series of data strings DATA-T1 indicating the same attribute as 1 is read out.

【0164】このデータ列DATA−T1の読出し後、
図22(L) に示す如くRXレジスタ読出し完了フラ
グ78が出力され、DATA−T1の内容により送信書
込みデータT1と同一属性のデータであることが判断さ
れて図21(D) に示す如くステータス読出し完了信
号51のみが出力される。そして、ステータスRDポイ
ンタ35が切換えられ、図20(i) に示す如く第2
ステータスレジスタ3bは書込み可能となる。同時に、
ステータス数カウンタ22のカウント値出力信号30は
図21(A) に示す如く”2” になる。
After reading this data string DATA-T1,
As shown in FIG. 22(L), the RX register read completion flag 78 is output, and it is determined that the data has the same attribute as the transmission write data T1 based on the contents of DATA-T1, and the status is read as shown in FIG. 21(D). Only the completion signal 51 is output. Then, the status RD pointer 35 is switched, and the second
Status register 3b becomes writable. at the same time,
The count value output signal 30 of the status number counter 22 becomes "2" as shown in FIG. 21(A).

【0165】この時点のバッファメモリのデータの格納
状態は図29に示されている如くである。
The storage state of data in the buffer memory at this point is as shown in FIG.

【0166】次に、図20(g) に示す如く、1フレ
ーム受信バッファデータ入力RI2と同一属性を示す一
連のデータ列DATA−R2が受信読出しデータ信号2
0へ読出されたとする。
Next, as shown in FIG. 20(g), a series of data strings DATA-R2 having the same attribute as the one-frame reception buffer data input RI2 is received as the reception read data signal 2.
Suppose that it is read to 0.

【0167】このデータ列DATA−R2の読出し後、
RXレジスタ読出し完了フラグ78が図22(L)に示
す如く出力され、DATA−R2の内容により受信書込
みデータRI2と同一属性のデータであることが判断さ
れて、図21(H),  図21(D),  図22(
K) にそれぞれ示す如く、受信バッファ読出し完了信
号46, ステータス読出し完了信号51及び受信エラ
ー読出し完了信号60が出力される。そして、受信バッ
ファRDポインタ47, ステータスRDポインタ52
, 受信エラーRDポインタ57が切換えられて、図2
0(f),  図20(j),  図20(n),  
図20(q) にそれぞれ示す如く、第2受信バッファ
2b, 第3ステータスレジスタ3c, 第2受信エラ
ーレジスタ5b及び第2ソースアドレスレジスタ6bは
書込み可能となる。同時に、データ数カウンタ21のカ
ウント値出力信号24は図21(E) に示す如く”0
” になり、ステータス数カウンタ22のカウント値出
力信号30は図21(A) に示す如く”1” になる
After reading this data string DATA-R2,
The RX register read completion flag 78 is output as shown in FIG. 22(L), and it is determined that the data has the same attribute as the received write data RI2 based on the contents of DATA-R2. D), Figure 22 (
K) A reception buffer read completion signal 46, a status read completion signal 51, and a reception error read completion signal 60 are output as shown in FIG. Then, receive buffer RD pointer 47, status RD pointer 52
, the reception error RD pointer 57 is switched, as shown in FIG.
0(f), Figure 20(j), Figure 20(n),
As shown in FIG. 20(q), the second reception buffer 2b, third status register 3c, second reception error register 5b, and second source address register 6b become writable. At the same time, the count value output signal 24 of the data number counter 21 is "0" as shown in FIG. 21(E).
”, and the count value output signal 30 of the status number counter 22 becomes “1” as shown in FIG. 21(A).

【0168】この時点のバッファメモリのデータの格納
状態は図30に示されている如くである。
The data storage state of the buffer memory at this point is as shown in FIG.

【0169】更に上記同様に、図20(g) に示す如
く、1フレーム受信バッファデータ入力RI3と同一属
性を示す一連のデータ列DATA−R3が受信読出しデ
ータ信号20へ読出されたとする。
Further, in the same manner as described above, suppose that a series of data strings DATA-R3 having the same attribute as the one-frame reception buffer data input RI3 is read out to the reception read data signal 20, as shown in FIG. 20(g).

【0170】このデータ列DATA−R3の出力後、図
22(M) に示す如くRXレジスタ読出し完了フラグ
78がセットされ、DATA−R3の内容により受信書
込みデータRI3と同一属性のデータであることが判断
される。更に、データ列RI3のデータの中にオーバー
ランの状態であったことを示すデータが存在しているた
め、図21(D),図22(K) に示す如く、ステー
タス読出し完了信号51及び受信エラー読出し完了信号
60のみが出力される。そして、ステータスRDポイン
タ52, 受信エラーRDポインタ57が切換えられ、
図20(k),  図20(o),  図21(r) 
にそれぞれ示す如く、第4ステータスレジスタ3d, 
第3受信エラーレジスタ5c及び第3ソースアドレスレ
ジスタ6cは書込み可能となる。 同時に、ステータス数カウンタ22のカウント値出力信
号30は図21(A) に示す如く”0” になる。
After outputting this data string DATA-R3, the RX register read completion flag 78 is set as shown in FIG. 22(M), and the contents of DATA-R3 indicate that the data has the same attribute as the received write data RI3. be judged. Furthermore, since there is data indicating an overrun state in the data string RI3, as shown in FIGS. 21(D) and 22(K), the status read completion signal 51 and reception Only the error read completion signal 60 is output. Then, the status RD pointer 52 and reception error RD pointer 57 are switched,
Figure 20(k), Figure 20(o), Figure 21(r)
As shown in FIG. 4, the fourth status register 3d,
The third reception error register 5c and the third source address register 6c become writable. At the same time, the count value output signal 30 of the status number counter 22 becomes "0" as shown in FIG. 21(A).

【0171】この時点のバッファメモリのデータの格納
状態は図31に示されている如くである。
The storage state of data in the buffer memory at this point is as shown in FIG.

【0172】以上により、それぞれが複数個のバッファ
及びレジスタで構成されているバッファ群及びレジスタ
群である受信バッファ群2, ステータスレジスタ群3
, 受信エラーレジスタ群5d, ソースアドレスレジ
スタ群6dに対し、バッファ群及びレジスタ群に対する
アドレスを指定するのみで個々のバッファ及びレジスタ
に対するアドレスを指定する必要なしに、個々のバッフ
ァ及びレジスタに対するアドレスが1フレーム毎に切換
わる。
[0172] As described above, the reception buffer group 2 and the status register group 3 are a buffer group and a register group each consisting of a plurality of buffers and registers.
, the reception error register group 5d, and the source address register group 6d, by simply specifying the addresses for the buffer group and register group, the addresses for the individual buffers and registers can be set to 1 without the need to specify the addresses for the individual buffers and registers. Switches every frame.

【0173】更に、読出し先が1フレーム毎に切換えら
れるため、図20, 図21, 図21のタイミングチ
ャートに示されている通信例の場合、第1受信バッファ
2aと第1受信エラーレジスタ5aと第1ソースアドレ
スレジスタ6aと第1ステータスレジスタ3aとからデ
ータが同一属性のデータとして一組で読出され、送信バ
ッファ1と送信エラーレジスタ4と返信RSP レジス
タ7と第2ステータスレジスタ3bとからデータが同一
属性のデータとして一組で読出され、第2受信バッファ
2bと第2受信エラーレジスタ5bと第2ソースアドレ
スレジスタ6bと第3ステータスレジスタ3cとからデ
ータが同一属性のデータとして一組で読出され、第3受
信エラーレジスタ5cと第3ソースアドレスレジスタ6
cと第4ステータスレジスタ3dとからデータが同一属
性のデータとして一組で読出される。即ち、各バッファ
と各レジスタに格納されているデータ相互間が対応付け
られて同一属性の一組のデータとして読出される。
Furthermore, since the read destination is switched every frame, in the case of the communication examples shown in the timing charts of FIGS. 20, 21, and 21, the first reception buffer 2a and the first reception error register 5a are Data is read out as a set from the first source address register 6a and the first status register 3a as data with the same attribute, and data is read out from the transmission buffer 1, transmission error register 4, reply RSP register 7, and second status register 3b. Data with the same attribute is read out as a set, and data is read out as data with the same attribute as a set from the second reception buffer 2b, second reception error register 5b, second source address register 6b, and third status register 3c. , third reception error register 5c and third source address register 6
Data is read out as a set from c and fourth status register 3d as data having the same attribute. That is, the data stored in each buffer and each register are correlated and read out as a set of data with the same attribute.

【0174】以上のようなバッファメモリの制御及び管
理により、複数のバッファメモリ及びレジスタからなる
バッファメモリ内のある特定のバッファ及びレジスタが
同一属性のデータを格納するバッファ及びレジスタとし
て作用する。
By controlling and managing the buffer memory as described above, certain buffers and registers within the buffer memory consisting of a plurality of buffer memories and registers act as buffers and registers that store data of the same attribute.

【0175】次に、上述のステータス数カウンタ22に
よるバッファメモリの制御について説明する。
Next, the control of the buffer memory by the status number counter 22 described above will be explained.

【0176】図32はステータス数カウンタ22及びス
テータスレジスタ群3の制御のための構成を示すブロッ
ク図である。
FIG. 32 is a block diagram showing a configuration for controlling the status number counter 22 and the status register group 3.

【0177】参照符号82はステータス管理部であり、
ステータス数カウンタ22のカウント値出力信号30,
 ステータス書込み完了信号31, ステータス読出し
完了信号51, 3進カウンタであるステータスRDポ
インタ52の出力信号83, 3進カウンタであるステ
ータスWRポインタ32の出力信号84が入力される。 そして、ステータス管理部82は、ステータス数管理出
力信号85を前述のORゲート98O へ出力している
[0177] Reference numeral 82 is a status management section;
Count value output signal 30 of status number counter 22,
A status write completion signal 31, a status read completion signal 51, an output signal 83 of the status RD pointer 52 which is a ternary counter, and an output signal 84 of the status WR pointer 32 which is a ternary counter are input. The status management section 82 outputs a status number management output signal 85 to the aforementioned OR gate 98O.

【0178】ステータス管理部82は、ステータスWR
ポインタ32の出力信号84の値を”L” とし、ステ
ータスRDポインタ52の出力信号83の値を”M” 
とし、ステータス数カウンタ22のカウント値出力信号
30の値を”N” とした場合に、 N+M≦4 であれば、 N+M=L であるか否かを判定する。また、 N+M≧5 であれば、 N+M−4=L であるか否かを判定する。
[0178] The status management unit 82 stores the status WR
The value of the output signal 84 of the pointer 32 is "L", and the value of the output signal 83 of the status RD pointer 52 is "M".
When the value of the count value output signal 30 of the status number counter 22 is "N", if N+M≦4, it is determined whether N+M=L. Further, if N+M≧5, it is determined whether N+M-4=L.

【0179】いずれの場合においても等号が成立すれば
ステータス数管理出力信号85として”0” を、不成
立であれば”1” を出力する。
In either case, if the equal sign is established, "0" is output as the status number management output signal 85, and if not, "1" is output.

【0180】なお、本実施例の説明では説明の便宜を図
るため、N, Mの値はいずれもステータスWRポイン
タ32及びステータスRDポインタ52の出力値に”1
” を加算して説明する。
[0180] In the explanation of this embodiment, for convenience of explanation, the values of N and M are both set to "1" in the output values of the status WR pointer 32 and the status RD pointer 52.
” to explain.

【0181】以下、ステータス管理部82の動作につい
て、図33のタイミングチャートを参照して説明する。
The operation of the status management section 82 will be explained below with reference to the timing chart of FIG. 33.

【0182】ステータスレジスタ群3へのデータ書込み
が完了する都度、図33(a) に示されているステー
タス書込み完了信号31が出力される。このステータス
書込み完了信号31が出力された後、図33(c) に
示されているステータスWRポインタ32の出力信号8
4 (=L)は”1” 加算される。但し、このステー
タスWRポインタ32の出力信号84は”4” 以上の
値はとらないため、初期状態から”4” の倍数のステ
ータス書込み完了信号31が出力された後に初期状態の
”1” に戻る。
Each time data writing to the status register group 3 is completed, a status writing completion signal 31 shown in FIG. 33(a) is output. After this status write completion signal 31 is output, the output signal 8 of the status WR pointer 32 shown in FIG. 33(c)
4 (=L) is added by "1". However, since the output signal 84 of this status WR pointer 32 does not take a value higher than "4", it returns to the initial state of "1" after the status write completion signal 31 which is a multiple of "4" is output from the initial state. .

【0183】また同様に、ステータスレジスタ群3から
のデータ読出しが完了する都度、図33(b) に示さ
れているステータス読出し完了信号51が出力される。 このステータス読出し完了信号51が出力された後、図
33(d) に示されているステータスRDポインタ5
2の出力信号83 (=M)は”1” 加算される。但
し、このステータスRDポインタ52の出力信号83は
”4” 以上の値はとらないため、初期状態から”4”
 の倍数のステータス読出し完了信号51が出力された
後に初期状態の”1” に戻る。
Similarly, each time data reading from the status register group 3 is completed, a status reading completion signal 51 shown in FIG. 33(b) is output. After this status read completion signal 51 is output, the status RD pointer 5 shown in FIG. 33(d)
"1" is added to the output signal 83 (=M) of No. 2. However, since the output signal 83 of this status RD pointer 52 does not take a value higher than "4", it is "4" from the initial state.
After the status read completion signal 51 which is a multiple of is output, it returns to the initial state of "1".

【0184】図33(e) に示されているステータス
数カウンタ22のカウント値出力信号30 (=N)は
、上述のステータス書込み完了信号31の出力により”
1” 加算され、ステータス読出し完了信号51の出力
により”1” 減算される。
The count value output signal 30 (=N) of the status number counter 22 shown in FIG.
1” is added, and “1” is subtracted by the output of the status read completion signal 51.

【0185】以上の関係から、”N” であるステータ
ス数カウンタ22のカウント値出力信号30,  ”L
”であるステータスWRポインタ32の出力信号84,
  ”M”であるステータスRDポインタ52の出力信
号83相互間には下記式(1) 及び式(2) の関係
式が成立する。 M+N=L  (M+N≦4)  …(1)M+N−4
=L  (M+N≧4)  …(2)
From the above relationship, the count value output signal 30 of the status number counter 22, which is “N”, is “L”.
” is the output signal 84 of the status WR pointer 32,
The following relational expressions (1) and (2) hold between the output signals 83 of the status RD pointer 52 that are "M". M+N=L (M+N≦4) …(1) M+N-4
=L (M+N≧4) …(2)

【0186】たと
えば、図33の時点Aにおいて考えると、ステータス書
込み完了信号31が既に2回発生されているため、ステ
ータスWRポインタ32の出力信号84の値”L” は
”3” になっており、またステータス読出し完了信号
51が既に1回発生されているため、ステータスRDポ
インタ52の出力信号83の値”M” は”2”になっ
ている。
For example, considering time A in FIG. 33, the status write completion signal 31 has already been generated twice, so the value "L" of the output signal 84 of the status WR pointer 32 is "3". Also, since the status read completion signal 51 has already been generated once, the value "M" of the output signal 83 of the status RD pointer 52 is "2".

【0187】また、この時点で、ステータス数カウンタ
22のカウント値出力信号30は2回の加算と1回の減
算とが行われているので、その値”N” は”1” で
ある。従って、”L”, ”M”, ”N” はそれぞ
れ”3”, ”2”, ”1” となっており、上記式
(1) を満たす。
Furthermore, at this point, the count value output signal 30 of the status number counter 22 has been added twice and subtracted once, so its value "N" is "1". Therefore, "L", "M", and "N" are "3", "2", and "1", respectively, and satisfy the above formula (1).

【0188】次に、図33の時点Bにおいて考えると、
ステータス書込み完了信号31が既に5回発生されてい
るため、ステータスWRポインタ32の出力信号84の
値”L” は”2” になっており、またステータス読
出し完了信号51が既に2回発生されているため、ステ
ータスRDポインタ52の出力信号83の値”M” は
”3”になっている。また、この時点で、ステータス数
カウンタ22のカウント値出力信号30は5回の加算と
2回の減算とが行われているので、その値”N” は”
3” である。従って、”L”,”M”, ”N” は
それぞれ”2”, ”3”, ”3” となっており、
上記式(2) を満たす。
Next, considering time B in FIG. 33,
Since the status write completion signal 31 has already been generated five times, the value "L" of the output signal 84 of the status WR pointer 32 is "2", and the status read completion signal 51 has already been generated twice. Therefore, the value "M" of the output signal 83 of the status RD pointer 52 is "3". Also, at this point, the count value output signal 30 of the status number counter 22 has been added five times and subtracted two times, so the value "N" is "
3". Therefore, "L", "M", and "N" are "2", "3", and "3", respectively.
The above formula (2) is satisfied.

【0189】ステータス管理部82は上述のような判定
を行うのであるが、より具体的には以下のような動作を
行う。
[0189] The status management section 82 performs the above-mentioned determination, but more specifically performs the following operations.

【0190】図33の参照符号82C はステータス管
理部82が発生するクロックであり、ステータス管理部
82にステータス書込み完了信号31またはステータス
読出し完了信号51のいずれかが入力された場合に発生
される。そして、ステータス管理部82はこのクロック
82C の発生に同期して上述の式(1) 及び式(2
) を各信号30, 83, 84の値が満たしている
か否かを判定し、満たしていれば”0” を、満たして
いなければ”1” をステータス数管理出力信号85と
して出力する。
Reference numeral 82C in FIG. 33 is a clock generated by the status management unit 82, and is generated when either the status write completion signal 31 or the status read completion signal 51 is input to the status management unit 82. Then, the status management section 82 executes the above equations (1) and (2) in synchronization with the generation of this clock 82C.
) is determined whether the values of each signal 30, 83, 84 are satisfied or not, and if it is satisfied, "0" is outputted, and if not, "1" is outputted as the status number management output signal 85.

【0191】ステータス数管理出力信号85は前述の如
く、バッファメモリのリセット信号98を生成するため
にORゲート98O へ送られる。
Status number management output signal 85 is sent to OR gate 98O to generate buffer memory reset signal 98, as described above.

【0192】次に、上述のデータ数カウンタ21による
バッファメモリの制御について説明する。
Next, the control of the buffer memory by the data number counter 21 described above will be explained.

【0193】図34はデータ数カウンタ21及び受信バ
ッファ群2の制御のための構成を示すブロック図である
FIG. 34 is a block diagram showing a configuration for controlling the data number counter 21 and the reception buffer group 2. As shown in FIG.

【0194】参照符号86はデータ数管理部であり、デ
ータ数カウンタ21のカウント値出力信号24, 受信
バッファ書込み完了信号25, 受信バッファ読出し完
了信号46, 2進カウンタである受信バッファRDポ
インタ47の出力信号87, 2進カウンタである受信
バッファWRポインタ26の出力信号88が入力される
。そして、データ数管理部86は、データ数管理出力信
号89を前述のORゲート98O へ出力している。
Reference numeral 86 is a data number management unit, which controls the count value output signal 24 of the data number counter 21, the reception buffer write completion signal 25, the reception buffer read completion signal 46, and the reception buffer RD pointer 47 which is a binary counter. An output signal 87 and an output signal 88 of the reception buffer WR pointer 26, which is a binary counter, are input. The data number management section 86 outputs a data number management output signal 89 to the aforementioned OR gate 98O.

【0195】データ数管理部86は、受信バッファWR
ポインタ26の出力信号88の値を”I” とし、受信
バッファRDポインタ47の出力信号87の値を”J”
 とし、データ数カウンタ21のカウント値出力信号2
4の値を”K” とした場合に、J+K≦2 であれば、 J+K=I であるか否かを判定する。また、 J+K≧3 であれば、 J+K−2=I であるか否かを判定する。
[0195] The data number management section 86 manages the reception buffer WR.
The value of the output signal 88 of the pointer 26 is "I", and the value of the output signal 87 of the reception buffer RD pointer 47 is "J".
and the count value output signal 2 of the data number counter 21
When the value of 4 is "K", if J+K≦2, it is determined whether J+K=I. Moreover, if J+K≧3, it is determined whether J+K-2=I.

【0196】いずれの場合においても等号が成立すれば
データ数管理出力信号89として”0”を、不成立であ
れば”1” を出力する。
In either case, if the equal sign is established, "0" is output as the data number management output signal 89, and if not, "1" is output.

【0197】なお、本実施例の説明では説明の便宜を図
るため、I, Jの値はいずれも受信バッファRDポイ
ンタ47及び受信バッファWRポインタ26の出力値に
”1” を加算して説明する。
In the explanation of this embodiment, for convenience of explanation, the values of I and J will be explained by adding "1" to the output values of the reception buffer RD pointer 47 and the reception buffer WR pointer 26. .

【0198】以下、データ数管理部86の動作について
、図35のタイミングチャートを参照して説明する。
The operation of the data number management section 86 will be explained below with reference to the timing chart of FIG.

【0199】受信バッファ群2へのデータ書込みが完了
する都度、図35(a) に示されている受信バッファ
書込み完了信号25が出力される。この受信バッファ書
込み完了信号25が出力された後、図35(c) に示
されている受信バッファWRポインタ26の出力信号8
8 (=L)は”1” 加算される。但し、この受信バ
ッファWRポインタ26の出力信号88は”2” 以上
の値はとらないため、初期状態から”2” の倍数の受
信バッファ書込み完了信号25が出力された後に初期状
態の”1” に戻る。
Each time data writing to the receiving buffer group 2 is completed, a receiving buffer writing completion signal 25 shown in FIG. 35(a) is output. After this receive buffer write completion signal 25 is output, the output signal 8 of the receive buffer WR pointer 26 shown in FIG. 35(c)
8 (=L) is added by "1". However, since the output signal 88 of this receive buffer WR pointer 26 does not take a value greater than "2", it changes from the initial state to "1" after the receive buffer write completion signal 25 which is a multiple of "2" is output. Return to

【0200】また同様に、受信バッファ群2へのデータ
書込みが完了する都度、図35(b) に示されている
受信バッファ読出し完了信号46が出力される。この受
信バッファ読出し完了信号46が出力された後、図35
(d) に示されている受信バッファRDポインタ47
の出力信号87 (=J)は”1” 加算される。但し
、この受信バッファRDポインタ47の出力信号87は
”2” 以上の値はとらないため、初期状態から”2”
 の倍数の受信バッファ読出し完了信号46が出力され
た後に初期状態の”1” に戻る。
Similarly, each time data writing to the receiving buffer group 2 is completed, a receiving buffer read completion signal 46 shown in FIG. 35(b) is output. After this receive buffer read completion signal 46 is output, as shown in FIG.
(d) Receive buffer RD pointer 47 shown in
"1" is added to the output signal 87 (=J). However, since the output signal 87 of this reception buffer RD pointer 47 does not take a value of "2" or more, it is set to "2" from the initial state.
After the receive buffer read completion signal 46 which is a multiple of is output, it returns to the initial state of "1".

【0201】図35(e) に示されているデータ数カ
ウンタ21のカウント値出力信号24 (=K)は、上
述の受信バッファ書込み完了信号25の出力により”1
” 加算され、受信バッファ読出し完了信号46の出力
により”1” 減算される。 以上の関係から、”K” であるデータ数カウンタ21
のカウント値出力信号24,  ”I”である受信バッ
ファWRポインタ26の出力信号88,  ”J”であ
る受信バッファRDポインタ47の出力信号87相互間
には下記の関係式が成立する。 J+K=I  (J+K≦2)  …(3)J+K−2
=I  (J+K≧2)  …(4)
The count value output signal 24 (=K) of the data number counter 21 shown in FIG.
" is added, and "1" is subtracted by the output of the reception buffer read completion signal 46. From the above relationship, the data number counter 21 that is "K"
The following relational expression holds between the count value output signal 24 of , the output signal 88 of the reception buffer WR pointer 26 which is "I", and the output signal 87 of the reception buffer RD pointer 47 which is "J". J+K=I (J+K≦2) …(3) J+K-2
=I (J+K≧2) …(4)

【0202】たと
えば、図35の時点Cにおいて考えると、受信バッファ
書込み完了信号25が既に1回発生されているため、受
信バッファWRポインタ26の出力信号88の値”I”
は”2”  になっており、また受信バッファ読出し完
了信号46が既に1回発生されているため、受信バッフ
ァRDポインタ47の出力信号87の値”J” は”2
” になっている。
For example, considering time C in FIG. 35, the receive buffer write completion signal 25 has already been generated once, so the value of the output signal 88 of the receive buffer WR pointer 26 is "I".
is "2", and the receive buffer read completion signal 46 has already been generated once, so the value "J" of the output signal 87 of the receive buffer RD pointer 47 is "2".
" It has become.

【0203】また、この時点で、データ数カウンタ21
のカウント値出力信号24は1回の加算と1回の減算と
が行われているので、その値”K” は”0” である
。従って、”I”, ”J”, ”K” はそれぞれ”
1”, ”1”, ”0” となっており、上記式(3
) を満たす。
[0203] Also, at this point, the data number counter 21
Since the count value output signal 24 has been subjected to one addition and one subtraction, its value "K" is "0". Therefore, “I”, “J”, and “K” are respectively”
1”, “1”, “0”, and the above formula (3
) satisfies.

【0204】次に、図35の時点Dにおいて考えると、
受信バッファ書込み完了信号25が既に5回発生されて
いるため、受信バッファWRポインタ26の出力信号8
8の値”I” は”2” になっており、また受信バッ
ファ読出し完了信号46が既に3回発生されているため
、受信バッファRDポインタ47の出力信号87の値”
J” は”2” になっている。
Next, considering time D in FIG. 35,
Since the reception buffer write completion signal 25 has already been generated five times, the output signal 8 of the reception buffer WR pointer 26
Since the value "I" of 8 is "2" and the receive buffer read completion signal 46 has already been generated three times, the value of the output signal 87 of the receive buffer RD pointer 47 is "2".
J” is “2”.

【0205】また、この時点で、データ数カウンタ21
のカウント値出力信号24は5回の加算と3回の減算と
が行われているので、その値”K” は”2” である
。従って、”I”, ”J”, ”K” はそれぞれ”
2”, ”2”, ”2” となっており、上記式(3
) を満たす。
[0205] Also, at this point, the data number counter 21
Since the count value output signal 24 has been added five times and subtracted three times, its value "K" is "2". Therefore, “I”, “J”, and “K” are respectively”
2”, “2”, “2”, and the above formula (3
) satisfies.

【0206】データ数管理部86は上述のような判定を
行うのであるが、より具体的には以下のような動作を行
う。
[0206] The data number management unit 86 makes the above-mentioned determination, but more specifically performs the following operations.

【0207】図35の参照符号86C はデータ数管理
部86が発生するクロックであり、データ数管理部86
に受信バッファ書込み完了信号25または受信バッファ
読出し完了信号46のいずれかが入力された場合に発生
される。そして、データ数管理部86はこのクロック8
6C の発生に同期して上述の式(3) 及び式(4)
 を各信号24, 87, 88の値が満たしているか
否かを判定し、満たしていれば”0” を、満たしてい
なければ”1”をデータ数管理出力信号89として出力
する。
Reference numeral 86C in FIG. 35 is a clock generated by the data number management section 86.
It is generated when either the receive buffer write completion signal 25 or the receive buffer read completion signal 46 is input to the input buffer. Then, the data number management section 86 uses this clock 8.
In synchronization with the occurrence of 6C, the above equations (3) and (4)
It is determined whether the values of the signals 24, 87, and 88 satisfy, and if so, "0" is output as the data number management output signal 89, and if not, "1" is output as the data number management output signal 89.

【0208】データ数管理出力信号89は前述の如く、
バッファメモリのリセット信号98を生成するためにO
Rゲート98O へ送られる。
The data number management output signal 89 is as described above.
O to generate the buffer memory reset signal 98
Sent to R gate 98O.

【0209】従って、バッファメモリのリセット信号9
8は、ステータス数管理出力信号85またはデータ数管
理出力信号89のいずれかが”1” である場合、即ち
ステータス数カウンタ22またはデータ数カウンタ21
のカウント値が正しくない場合、あるいは両者のカウン
ト値が共に正しくない場合にアクティブなレベルである
”1” になってバッファメモリ全体をリセットする。
Therefore, the buffer memory reset signal 9
8, when either the status number management output signal 85 or the data number management output signal 89 is "1", that is, the status number counter 22 or the data number counter 21
If the count value of 1 is incorrect, or if both count values are incorrect, it becomes the active level "1" and resets the entire buffer memory.

【0210】次に、上述のような構成のバッファメモリ
をマイクロコンピュータとパラレルバスにて接続した場
合について説明する。
[0210] Next, a case will be described in which the buffer memory configured as described above is connected to a microcomputer via a parallel bus.

【0211】図36は本発明の通信装置8とマイクロコ
ンピュータ91とをパラレルバスにて接続した場合の構
成を示すブロック図である。
FIG. 36 is a block diagram showing the configuration when the communication device 8 of the present invention and the microcomputer 91 are connected via a parallel bus.

【0212】図36において、参照符号300 はデー
タバス,  301はアドレスバス,  302はライ
トストローブ信号,  303はリードストローブ信号
,  310はバッファメモリブロック9の内のTXレ
ジスタ書込み完了レジスタ64とRXレジスタ読出し完
了レジスタ67以外の領域をそれぞれ示している。
In FIG. 36, reference numeral 300 is a data bus, 301 is an address bus, 302 is a write strobe signal, 303 is a read strobe signal, and 310 is a TX register write completion register 64 and RX register readout in the buffer memory block 9. Areas other than the completion register 67 are shown.

【0213】図37はマイクロコンピュータ91からバ
ッファメモリブロック9へデータを書込む場合のデータ
及び信号の状態を示すタイミングチャートである。
FIG. 37 is a timing chart showing the states of data and signals when writing data from the microcomputer 91 to the buffer memory block 9.

【0214】データバス300 にはマイクロコンピュ
ータ91からバッファメモリブロック9へ図37(a)
 に示す如くデータ列”03”, ”F2”, ”01
”, ”AA”, ”55”, ”FF”が出力される
。これらの各データは、図37(b) に示す如くアド
レスバス301 に出力されるアドレス”00”, ”
01”, ”02”, ”03”, ”04”, ”7
E”に対応するバッファメモリの領域に図37(d) 
に示されているライトストローブ信号302 のタイミ
ングに同期して格納される。
The data bus 300 is connected from the microcomputer 91 to the buffer memory block 9 as shown in FIG. 37(a).
As shown in the data strings “03”, “F2”, “01”
", "AA", "55", and "FF" are output. These respective data are output as addresses "00" and "," which are output to the address bus 301 as shown in FIG. 37(b).
01", "02", "03", "04", "7
37(d) in the buffer memory area corresponding to “E”.
The write strobe signal 302 is stored in synchronization with the timing of the write strobe signal 302 shown in FIG.

【0215】この例では、アドレスバス301 へ出力
されるアドレス”00”, ”01”, ”02”, 
”03”, ”04”がバッファメモリブロック9の内
の参照符号310 の領域中の送信バッファ1に割付け
られている。従って、それぞれのアドレス信号に対応す
るデータ”03”, ”F2”, ”01”, ”AA
”, ”55”は送信バッファ1の各アドレス領域に格
納される。そして、アドレス”7E”はTXレジスタ書
込み完了レジスタ64に割付けられているので、アドレ
ス信号”7E”に対応するデータ”FF”はTXレジス
タ書込み完了レジスタ64に格納される。
[0215] In this example, the addresses "00", "01", "02",
“03” and “04” are allocated to the transmission buffer 1 in the area referenced 310 in the buffer memory block 9. Therefore, the data "03", "F2", "01", "AA" corresponding to each address signal
", "55" are stored in each address area of the transmission buffer 1. Since the address "7E" is assigned to the TX register write completion register 64, the data "FF" corresponding to the address signal "7E" is stored in the TX register write completion register 64.

【0216】即ち、送信データ列の各データが送信バッ
ファ1の各領域に格納される際に、その最後に送信デー
タ列の書込みが完了したことを示すデータがTXレジス
タ書込み完了レジスタ64に書込まれることにより、マ
イクロコンピュータ91からバッファメモリブロック9
への送信データ列の書込み処理が終了する。このアドレ
ス”7E”へのデータの書込み後のバッファメモリブロ
ック9における動作については前述した通りである。
That is, when each data of the transmission data string is stored in each area of the transmission buffer 1, data indicating that writing of the transmission data string has been completed is written to the TX register write completion register 64 at the end. By this, the buffer memory block 9 is transferred from the microcomputer 91.
The process of writing the transmission data string to is completed. The operation in buffer memory block 9 after writing data to address "7E" is as described above.

【0217】図38はバッファメモリブロック9に格納
されている受信データ群をマイクロコンピュータ91へ
読出す場合のデータ及び信号の状態を示すタイミングチ
ャートである。
FIG. 38 is a timing chart showing the states of data and signals when the received data group stored in buffer memory block 9 is read to microcomputer 91.

【0218】データバス300 にはマイクロコンピュ
ータ91からバッファメモリブロック9へ図38(b)
 に示す如くアドレスバス301 に出力されるアドレ
ス”30”, ”10”, ”11”,”12”, ”
13”, ”14”, ”7F”が出力される。これら
の各アドレス信号に対応するバッファメモリの領域に格
納されているデータが図38(c) に示されているリ
ードストローブ信号303 のタイミングに同期して、
図38(a) に示す如く”0C”, ”03”, ”
F2”, ”01”, ”AA”, ”55”の順で読
出され、マイクロコンピュータ91へ読込まれる。この
際、リードストローブ信号303 はアドレス信号”5
5”までにのみ対応して出力され、アドレス信号”7F
”に対応してはライトストローブ信号302 が出力さ
れる。同時にマイクロコンピュータ91はデータバス3
00 へデータ”FF”を出力するので、このデータ”
FF”はアドレス”7F”が割付けられているRXレジ
スタ読出し完了レジスタ67に格納される。
The data bus 300 is connected from the microcomputer 91 to the buffer memory block 9 as shown in FIG. 38(b).
As shown in the figure, the addresses “30”, “10”, “11”, “12”, ” are output to the address bus 301.
13'', ``14'', and ``7F'' are output.The data stored in the area of the buffer memory corresponding to each of these address signals is determined by the timing of the read strobe signal 303 shown in FIG. 38(c). in sync with
As shown in Figure 38(a), “0C”, “03”, “
F2'', ``01'', ``AA'', and ``55'' are read out in this order and read into the microcomputer 91. At this time, the read strobe signal 303 is set to the address signal ``5''.
5” and is output only in response to the address signal “7F”.
”, the write strobe signal 302 is output. At the same time, the microcomputer 91 outputs the data bus 3.
Since the data "FF" is output to 00, this data "
FF" is stored in the RX register read completion register 67 to which address "7F" is assigned.

【0219】即ち、受信データ列の各データが受信バッ
ファ群2のいずれかの受信バッファ2a, 2bの各領
域から読出された後に、受信データ列の読出しが完了し
たことを示すデータがRXレジスタ読出し完了レジスタ
67に書込まれることにより、バッファメモリブロック
9からマイクロコンピュータ91への受信データ列の読
出し処理が終了する。このアドレス”7F”へのデータ
の書込み後のバッファメモリブロック9における動作に
ついては前述した通りである。
That is, after each data of the received data string is read from each area of one of the receive buffers 2a and 2b of the receive buffer group 2, data indicating that reading of the received data string has been completed is read out from the RX register. By writing to the completion register 67, the process of reading the received data string from the buffer memory block 9 to the microcomputer 91 is completed. The operation in buffer memory block 9 after writing data to address "7F" is as described above.

【0220】[0220]

【発明の効果】以上に詳述した如く本発明の通信装置で
は、そのバッファメモリのアドレスが、上位ビットによ
り複数の送信バッファ及び受信バッファのいずれかを指
定し、下位ビットによりそれぞれのバッファ内の各記憶
領域を順次的に指定するように割付けられており、且つ
アドレスの上位ビットが与えられた場合に、下位ビット
を順次的に自動的に発生するカウンタを有し、外部から
与えられた上位ビットとカウンタが発生した下位ビット
とをアドレス信号として出力することにより、上述のよ
うなアドレス割付けのバッファメモリの一つのバッファ
の各記憶領域をアクセスすることが可能なアドレス発生
手段を備えているので、外部からアドレスの上位ビット
を与えるのみにて、それぞれのバッファを指定し、かつ
そのバッファ内の各記憶領域がアクセスされる。
As described above in detail, in the communication device of the present invention, the address of the buffer memory specifies one of a plurality of transmitting buffers and receiving buffers using the upper bits, and the address within each buffer is specified using the lower bits. It is allocated to sequentially specify each storage area, and has a counter that automatically generates the lower bits in sequence when the upper bits of the address are given, and the higher bits are assigned from the outside. The present invention is equipped with an address generating means that can access each storage area of one buffer of the buffer memory with address allocation as described above by outputting the bit and the lower bit generated by the counter as an address signal. , each buffer is specified and each storage area within that buffer is accessed by simply providing the upper bits of the address from the outside.

【0221】更に本発明の通信装置では、送信すべき情
報又は受信すべき情報が各バッファに格納された場合に
、その情報の格納に使用される記憶領域の数が先頭の記
憶領域に格納されるので、各バッファから情報が読出さ
れる際は、その情報の最初のデータが読出された時点で
実際に読出しが必要な記憶領域の数が判明し、この値と
上述の下位ビットのアドレス信号を出力するカウンタの
出力値とを情報が読出される都度比較することにより、
一致した場合に情報の読出しが停止される。
Furthermore, in the communication device of the present invention, when information to be transmitted or information to be received is stored in each buffer, the number of storage areas used to store the information is stored in the first storage area. Therefore, when information is read from each buffer, the number of storage areas that actually need to be read is known at the time the first data of that information is read, and this value and the lower bit address signal mentioned above are used. By comparing the output value of the counter that outputs the information each time the information is read,
If they match, reading of information is stopped.

【0222】また更に本発明の通信装置では、受信すべ
き情報が各バッファに格納された場合に、その情報の格
納に使用されている末尾の記憶領域の次の記憶領域に 
CRCチェックのデータが格納されるので、その情報の
送信時に生成された CRCデータを受信側にて再度受
信データに対して生成したCRCデータと比較すること
が可能になる。
Furthermore, in the communication device of the present invention, when information to be received is stored in each buffer, the information is stored in the storage area next to the last storage area used for storing the information.
Since the CRC check data is stored, it becomes possible for the receiving side to compare the CRC data generated at the time of transmitting the information with the CRC data generated for the received data again.

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

【図1】本発明の通信装置のバッファメモリの構成の概
略を示すブロック図である。
FIG. 1 is a block diagram schematically showing the configuration of a buffer memory of a communication device according to the present invention.

【図2】本発明の通信装置のバッファメモリの具体的な
構成を示す模式図である。
FIG. 2 is a schematic diagram showing a specific configuration of a buffer memory of the communication device of the present invention.

【図3】本発明の通信装置のバッファメモリの具体的な
構成を示す模式図である。
FIG. 3 is a schematic diagram showing a specific configuration of a buffer memory of the communication device of the present invention.

【図4】本発明の通信装置の全体構成を示すブロック図
である。
FIG. 4 is a block diagram showing the overall configuration of a communication device of the present invention.

【図5】本発明の通信装置のバッファメモリの送信バッ
ファ及び受信バッファ群のアドレス構成を示す模式図で
ある。
FIG. 5 is a schematic diagram showing the address structure of a sending buffer and a receiving buffer group of the buffer memory of the communication device of the present invention.

【図6】本発明の通信装置のバッファメモリの送信バッ
ファ及び受信バッファ群以外の部分のアドレス構成を示
す模式図である。
FIG. 6 is a schematic diagram showing the address structure of a portion of the buffer memory of the communication device of the present invention other than the transmission buffer and reception buffer group.

【図7】送信バッファに格納される送信フレームを構成
するデータ及びその配列を示す模式図である。
FIG. 7 is a schematic diagram showing data constituting a transmission frame stored in a transmission buffer and its arrangement.

【図8】受信バッファに格納される受信フレームのデー
タ及びデータ配列を示す模式図である。
FIG. 8 is a schematic diagram showing data and data arrangement of a received frame stored in a reception buffer.

【図9】送信バッファ及び受信バッファ群のたのアドレ
ス発生機構の要部の構成を示すブロック図である。
FIG. 9 is a block diagram showing the configuration of main parts of an address generation mechanism including a transmission buffer and a group of reception buffers.

【図10】図9のブロック図の各構成要素の出力信号の
状態及び送信バッファへのデータの書込みの状態を示す
タイミングチャートである。
10 is a timing chart showing the state of output signals of each component in the block diagram of FIG. 9 and the state of writing data to a transmission buffer; FIG.

【図11】図9のブロック図の各構成要素の出力信号の
状態及び送信バッファへのデータの書込みの手順を示す
フローチャートである。
11 is a flowchart showing the state of output signals of each component in the block diagram of FIG. 9 and the procedure for writing data to a transmission buffer; FIG.

【図12】本発明の通信装置を LAN伝送路に2組接
続して相互間で通信を行う場合の構成を示すブロック図
である。
FIG. 12 is a block diagram showing a configuration when two sets of communication devices of the present invention are connected to a LAN transmission path and communicate with each other.

【図13】通信データ群が5バイトである受信フレーム
が第1受信バッファに格納された場合の状態を示す模式
図である。
FIG. 13 is a schematic diagram showing a state when a received frame in which the communication data group is 5 bytes is stored in the first reception buffer.

【図14】本発明の通信装置内におけるアドレス信号及
びデータ信号の入出力の関係を示す模式図である。
FIG. 14 is a schematic diagram showing the input/output relationship of address signals and data signals within the communication device of the present invention.

【図15】バッファメモリに対するデータの入出力の関
係を示す模式図である。
FIG. 15 is a schematic diagram showing the relationship between input and output of data to and from the buffer memory.

【図16】バッファメモリの主として制御信号及びアド
レス信号の入出力の関係を示す模式図である。
FIG. 16 is a schematic diagram mainly showing the input/output relationship of control signals and address signals of the buffer memory.

【図17】バッファメモリの主として制御信号及びアド
レス信号の入出力の関係を示す模式図である。
FIG. 17 is a schematic diagram mainly showing the input/output relationship of control signals and address signals of the buffer memory.

【図18】第1制御部の具体的な構成を示すブロック図
である。
FIG. 18 is a block diagram showing a specific configuration of a first control section.

【図19】第2制御部の具体的な構成を示すブロック図
である。
FIG. 19 is a block diagram showing a specific configuration of a second control section.

【図20】本発明の通信装置による通信の際のバッファ
メモリ内におけるデータの流れとバッファメモリ内の各
バッファ及びレジスタに格納されるデータを時系列に沿
って示すタイミングチャートである。
FIG. 20 is a timing chart showing the flow of data in the buffer memory during communication by the communication device of the present invention and the data stored in each buffer and register in the buffer memory in chronological order.

【図21】本発明の通信装置による通信の際のバッファ
メモリ内におけるデータの流れとバッファメモリ内の各
バッファ及びレジスタに格納されるデータを時系列に沿
って示すタイミングチャートである。
FIG. 21 is a timing chart showing, in chronological order, the flow of data in the buffer memory and data stored in each buffer and register in the buffer memory during communication by the communication device of the present invention.

【図22】本発明の通信装置による通信の際のバッファ
メモリ内におけるデータの流れとバッファメモリ内の各
バッファ及びレジスタに格納されるデータを時系列に沿
って示すタイミングチャートである。
FIG. 22 is a timing chart showing, in chronological order, the flow of data in the buffer memory and data stored in each buffer and register in the buffer memory during communication by the communication device of the present invention.

【図23】通信時に各データ列が各バッファ及びレジス
タに格納された状態及び書込み先,読出し先を示すWR
ポインタ、RDポインタの状態を示す模式図である。
[Figure 23] WR indicating the state in which each data string is stored in each buffer and register during communication, and the write destination and read destination
It is a schematic diagram which shows the state of a pointer and RD pointer.

【図24】通信時に各データ列が各バッファ及びレジス
タに格納された状態及び書込み先,読出し先を示すWR
ポインタ、RDポインタの状態を示す模式図である。
[Figure 24] WR indicating the state in which each data string is stored in each buffer and register during communication, and the write destination and read destination
It is a schematic diagram which shows the state of a pointer and RD pointer.

【図25】通信時に各データ列が各バッファ及びレジス
タに格納された状態及び書込み先,読出し先を示すWR
ポインタ、RDポインタの状態を示す模式図である。
[Figure 25] WR indicating the state in which each data string is stored in each buffer and register during communication, and the write destination and read destination
It is a schematic diagram which shows the state of a pointer and RD pointer.

【図26】通信時に各データ列が各バッファ及びレジス
タに格納された状態及び書込み先,読出し先を示すWR
ポインタ、RDポインタの状態を示す模式図である。
[Figure 26] WR indicating the state in which each data string is stored in each buffer and register during communication, and the write destination and read destination
It is a schematic diagram which shows the state of a pointer and RD pointer.

【図27】通信時に各データ列が各バッファ及びレジス
タに格納された状態及び書込み先,読出し先を示すWR
ポインタ、RDポインタの状態を示す模式図である。
[Figure 27] WR indicating the state in which each data string is stored in each buffer and register during communication, and the write destination and read destination
It is a schematic diagram which shows the state of a pointer and RD pointer.

【図28】通信時に各データ列が各バッファ及びレジス
タに格納された状態及び書込み先,読出し先を示すWR
ポインタ、RDポインタの状態を示す模式図である。
[Figure 28] WR indicating the state in which each data string is stored in each buffer and register during communication, and the write destination and read destination
It is a schematic diagram which shows the state of a pointer and RD pointer.

【図29】通信時に各データ列が各バッファ及びレジス
タに格納された状態及び書込み先,読出し先を示すWR
ポインタ、RDポインタの状態を示す模式図である。
[Figure 29] WR indicating the state where each data string is stored in each buffer and register during communication, and the write destination and read destination
It is a schematic diagram which shows the state of a pointer and RD pointer.

【図30】通信時に各データ列が各バッファ及びレジス
タに格納された状態及び書込み先,読出し先を示すWR
ポインタ、RDポインタの状態を示す模式図である。
[Figure 30] WR indicating the state in which each data string is stored in each buffer and register and the write destination and read destination during communication
It is a schematic diagram which shows the state of a pointer and RD pointer.

【図31】通信時に各データ列が各バッファ及びレジス
タに格納された状態及び書込み先,読出し先を示すWR
ポインタ、RDポインタの状態を示す模式図である。
[Figure 31] WR indicating the state in which each data string is stored in each buffer and register during communication, and the write destination and read destination
It is a schematic diagram which shows the state of a pointer and RD pointer.

【図32】ステータス数カウンタ及びステータスレジス
タ群の制御のための構成を示すブロック図である。
FIG. 32 is a block diagram showing a configuration for controlling a status number counter and a group of status registers.

【図33】ステータス管理部の動作を説明するタイミン
グチャートである。
FIG. 33 is a timing chart illustrating the operation of the status management section.

【図34】データ数カウンタ及び受信バッファ群の制御
のための構成を示すブロック図である。
FIG. 34 is a block diagram showing a configuration for controlling a data number counter and a reception buffer group.

【図35】データ数管理部の動作を説明するタイミング
チャートである。
FIG. 35 is a timing chart illustrating the operation of the data number management section.

【図36】本発明の通信装置とマイクロコンピュータと
をパラレルバスにて接続した場合の構成を示すブロック
図である。
FIG. 36 is a block diagram showing a configuration when a communication device of the present invention and a microcomputer are connected via a parallel bus.

【図37】マイクロコンピュータからバッファメモリブ
ロックへデータを書込む場合のデータ及び信号の状態を
示すタイミングチャートである。
FIG. 37 is a timing chart showing the states of data and signals when writing data from a microcomputer to a buffer memory block.

【図38】バッファメモリブロックに格納されている受
信データ群をマイクロコンピュータへ読出す場合のデー
タ及び信号の状態を示すタイミングチャートである。
FIG. 38 is a timing chart showing data and signal states when a received data group stored in a buffer memory block is read to a microcomputer.

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

1    送信バッファ 2a    第1受信バッファ 2b    第2受信バッファ 2    受信バッファ群 3a    第1ステータスレジスタ 3b    第2ステータスレジスタ 3c    第3ステータスレジスタ 3d    第4ステータスレジスタ 3    ステータスレジスタ群 4    送信エラーレジスタ 5a    第1受信エラーレジスタ 5b    第2受信エラーレジスタ 5c    第3受信エラーレジスタ 5d    受信エラーレジスタ群 6a    第1ソースアドレスレジスタ6b    
第2ソースアドレスレジスタ6c    第3ソースア
ドレスレジスタ6d    ソースアドレスレジスタ群
7    返信RSP レジスタ 8    通信装置 9    バッファメモリブロック 100   送信データ群 101   メッセージ長フィールド 150   デコーダ 151   カウンタ 160   デコーダ 161   カウンタ 200   受信データ群 201   メッセージ長フィールド 203    CRCフィールド
1 Transmission buffer 2a First reception buffer 2b Second reception buffer 2 Reception buffer group 3a First status register 3b Second status register 3c Third status register 3d Fourth status register 3 Status register group 4 Transmission error register 5a First reception error Register 5b Second reception error register 5c Third reception error register 5d Reception error register group 6a First source address register 6b
Second source address register 6c Third source address register 6d Source address register group 7 Reply RSP register 8 Communication device 9 Buffer memory block 100 Transmitted data group 101 Message length field 150 Decoder 151 Counter 160 Decoder 161 Counter 200 Received data group 201 Message length Field 203 CRC field

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】  他の通信装置へ送信すべき1単位の情
報をそれぞれ格納するn個の送信バッファと、他の通信
装置から受信すべき1単位の情報をそれぞれ格納するm
個の受信バッファとを有するバッファメモリを備え、他
の通信装置へ送信すべき情報を前記送信バッファに一旦
格納した後に外部へ送信し、他の通信装置から受信すべ
き情報を前記受信バッファに一旦格納した後に受信すべ
くなした通信装置において、前記各送信バッファはそれ
ぞれ、送信すべき1単位の情報を構成する複数のデータ
それぞれを格納する記憶領域を有し、各記憶領域は、上
位ビットによりいずれかのバッファを指定し、下位ビッ
トにより各バッファ内の各領域の全てを順次的に指定す
るようにアドレスが割付けられるべくなしてあることを
特徴とする通信装置。
Claim 1: n transmission buffers each storing one unit of information to be transmitted to another communication device, and m each storing one unit of information to be received from another communication device.
information to be transmitted to another communication device is temporarily stored in the transmission buffer and then transmitted to the outside, and information to be received from the other communication device is temporarily stored in the reception buffer. In a communication device configured to receive data after storing, each of the transmission buffers has a storage area for storing each of a plurality of pieces of data constituting one unit of information to be transmitted, and each storage area is 1. A communication device characterized in that an address is assigned so as to designate one of the buffers and sequentially designate all areas within each buffer using lower bits.
【請求項2】  他の通信装置へ送信すべき1単位の情
報をそれぞれ格納するn個の送信バッファと、他の通信
装置から受信すべき1単位の情報をそれぞれ格納するm
個の受信バッファとを有するバッファメモリを備え、他
の通信装置へ送信すべき情報を前記送信バッファに一旦
格納した後に外部へ送信し、他の通信装置から受信すべ
き情報を前記受信バッファに一旦格納した後に受信すべ
くなした通信装置において、前記各受信バッファはそれ
ぞれ、受信すべき1単位の情報を構成する複数のデータ
それぞれを格納する記憶領域を有し、各記憶領域は、上
位ビットによりいずれかのバッファを指定し、下位ビッ
トにより各バッファ内の各領域の全てを順次的に指定す
るようにアドレスが割付けられるべくなしてあることを
特徴とする通信装置。
Claim 2: n transmission buffers each storing one unit of information to be transmitted to another communication device, and m each storing one unit of information to be received from another communication device.
information to be transmitted to another communication device is temporarily stored in the transmission buffer and then transmitted to the outside, and information to be received from the other communication device is temporarily stored in the reception buffer. In a communication device configured to receive data after storing, each of the receiving buffers has a storage area for storing each of a plurality of pieces of data constituting one unit of information to be received, and each storage area is configured to receive information by upper bits. 1. A communication device characterized in that an address is assigned so as to designate one of the buffers and sequentially designate all areas within each buffer using lower bits.
【請求項3】  他の通信装置へ送信すべき1単位の情
報をそれぞれ格納するn個の送信バッファと、他の通信
装置から受信すべき1単位の情報をそれぞれ格納するm
個の受信バッファとを有するバッファメモリを備え、他
の通信装置へ送信すべき情報を前記送信バッファに一旦
格納した後に外部へ送信し、他の通信装置から受信すべ
き情報を前記受信バッファに一旦格納した後に受信すべ
くなした通信装置において、前記各送信バッファ及び受
信バッファはそれぞれ、送信すべき1単位の情報及び受
信すべき1単位の情報を構成する複数のデータそれぞれ
を格納する記憶領域を有し、各記憶領域は、上位ビット
によりいずれかのバッファを指定し、下位ビットにより
各バッファ内の各領域の全てを順次的に指定するように
アドレスが割付けられるべくなしてあることを特徴とす
る通信装置。
Claim: n transmission buffers each storing one unit of information to be transmitted to another communication device, and m each storing one unit of information to be received from another communication device.
information to be transmitted to another communication device is temporarily stored in the transmission buffer and then transmitted to the outside, and information to be received from the other communication device is temporarily stored in the reception buffer. In the communication device configured to receive data after storing the data, each of the sending buffer and the receiving buffer has a storage area for storing each of a plurality of pieces of data constituting one unit of information to be transmitted and one unit of information to be received. Each storage area is characterized in that addresses are assigned such that the upper bits specify one of the buffers and the lower bits sequentially specify all of the areas within each buffer. communication equipment.
【請求項4】  請求項3の通信装置において、外部か
らアドレスの上位ビットの信号が与えられた場合に起動
して順次的にインクリメントされた値を出力するカウン
ト手段を有し、該カウント手段が発生するカウント値の
信号をアドレスの下位ビットとし、前記上位ビットの信
号と共に出力するアドレス発生手段を備えたことを特徴
とする通信装置。
4. The communication device according to claim 3, further comprising a counting means that is activated when a signal of the upper bits of an address is applied from the outside and outputs a sequentially incremented value. 1. A communication device comprising address generating means for outputting a generated count value signal as lower bits of an address together with the upper bit signal.
【請求項5】  他の通信装置へ送信すべき1単位の情
報をそれぞれ格納するn個の送信バッファと、他の通信
装置から受信すべき1単位の情報をそれぞれ格納するm
個の受信バッファとを有するバッファメモリを備え、他
の通信装置へ送信すべき情報を前記送信バッファに一旦
格納した後に外部へ送信し、他の通信装置から受信すべ
き情報を前記受信バッファに一旦格納した後に受信すべ
くなした通信装置において、前記各送信バッファ及び受
信バッファはそれぞれ、送信すべき1単位の情報及び受
信すべき1単位の情報を構成する複数のデータそれぞれ
を格納する記憶領域を有し、各バッファの先頭の記憶領
域に、それぞれのバッファに格納される情報が使用する
領域の数が格納されるべくなしてあることを特徴とする
通信装置。
5. n transmission buffers each storing one unit of information to be transmitted to another communication device, and m each storing one unit of information to be received from another communication device.
information to be transmitted to another communication device is temporarily stored in the transmission buffer and then transmitted to the outside, and information to be received from the other communication device is temporarily stored in the reception buffer. In the communication device configured to receive data after storing the data, each of the transmitting buffer and the receiving buffer has a storage area for storing a plurality of data constituting one unit of information to be transmitted and one unit of information to be received, respectively. 1. A communication device comprising: a storage area at the head of each buffer to store the number of areas used by information stored in each buffer.
【請求項6】  他の通信装置へ送信すべき1単位の情
報をそれぞれ格納するn個の送信バッファと、他の通信
装置から受信すべき1単位の情報をそれぞれ格納するm
個の受信バッファとを有するバッファメモリを備え、他
の通信装置へ送信すべき情報を前記送信バッファに一旦
格納した後に外部へ送信し、他の通信装置から受信すべ
き情報を前記受信バッファに一旦格納した後に受信すべ
くなした通信装置において、前記各受信バッファはそれ
ぞれ、受信すべき1単位の情報を構成する複数のデータ
それぞれを格納する記憶領域を有し、各受信バッファに
格納された受信すべき情報の末尾のデータが格納された
領域の次の領域に、その情報の CRCチェック情報が
格納されるべくなしてあることを特徴とする通信装置。
6. n transmission buffers each storing one unit of information to be transmitted to another communication device, and m each storing one unit of information to be received from another communication device.
information to be transmitted to another communication device is temporarily stored in the transmission buffer and then transmitted to the outside, and information to be received from the other communication device is temporarily stored in the reception buffer. In a communication device configured to receive data after storing, each of the receiving buffers has a storage area for storing each of a plurality of pieces of data constituting one unit of information to be received, and the receiving buffer stored in each receiving buffer A communication device characterized in that CRC check information of the information to be processed is stored in an area next to the area in which the last data of the information to be processed is stored.
JP3066410A 1991-03-29 1991-03-29 Communication equipment Pending JPH04313936A (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP3066410A JPH04313936A (en) 1991-03-29 1991-03-29 Communication equipment
DE69232645T DE69232645T2 (en) 1991-03-29 1992-03-27 communication device
EP96201723A EP0739119B1 (en) 1991-03-29 1992-03-27 Buffer apparatus
DE69232445T DE69232445T2 (en) 1991-03-29 1992-03-27 Buffer storage device
EP92302756A EP0506481B1 (en) 1991-03-29 1992-03-27 Communication apparatus
DE69216671T DE69216671T2 (en) 1991-03-29 1992-03-27 Transmission device
EP96201722A EP0739118B1 (en) 1991-03-29 1992-03-27 Communication apparatus
US08/495,335 US5768625A (en) 1991-03-29 1995-06-27 Vehicle based LAN a communication buffer memory having at least one more number of storage areas for receive status and source address than the number of areas for receive data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3066410A JPH04313936A (en) 1991-03-29 1991-03-29 Communication equipment

Publications (1)

Publication Number Publication Date
JPH04313936A true JPH04313936A (en) 1992-11-05

Family

ID=13315000

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3066410A Pending JPH04313936A (en) 1991-03-29 1991-03-29 Communication equipment

Country Status (1)

Country Link
JP (1) JPH04313936A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011520368A (en) * 2008-05-05 2011-07-14 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング A subscriber node of a communication system with a functionally distinct transmission event memory

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6174442A (en) * 1984-09-20 1986-04-16 Sharp Corp Data buffer system of still picture reception terminal device
JPS62289033A (en) * 1986-06-06 1987-12-15 Omron Tateisi Electronics Co On-vehicle transmission equipment
JPH01174042A (en) * 1987-12-28 1989-07-10 Shikoku Nippon Denki Software Kk Line control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6174442A (en) * 1984-09-20 1986-04-16 Sharp Corp Data buffer system of still picture reception terminal device
JPS62289033A (en) * 1986-06-06 1987-12-15 Omron Tateisi Electronics Co On-vehicle transmission equipment
JPH01174042A (en) * 1987-12-28 1989-07-10 Shikoku Nippon Denki Software Kk Line control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011520368A (en) * 2008-05-05 2011-07-14 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング A subscriber node of a communication system with a functionally distinct transmission event memory
US8732374B2 (en) 2008-05-05 2014-05-20 Robert Bosch Gmbh Subscriber node of a communication system having a functionally separate transmission event memory

Similar Documents

Publication Publication Date Title
US5787255A (en) Internetworking device with enhanced protocol translation circuit
US8484390B2 (en) Message handler and method for controlling access to data of a message memory of a communications module
US6631484B1 (en) System for packet communication where received packet is stored either in a FIFO or in buffer storage based on size of received packet
WO2004057481A1 (en) Dma controller, dma control method, dma control program
US6185207B1 (en) Communication system having a local area network adapter for selectively deleting information and method therefor
EP0506481B1 (en) Communication apparatus
US20040078500A1 (en) Serial peripheral interface and related methods
WO1997010661A1 (en) Method and apparatus for filtering and forwarding messages in a computer network using a last source address
US6912594B2 (en) Serial communication device with multi-mode operation of message receive buffers
JPH04313936A (en) Communication equipment
JP2670912B2 (en) Communication device
JP2670911B2 (en) Communication device
US7076517B2 (en) Serial communication device with dynamic filter allocation
JPH06504172A (en) a data processing system with a data transmission process and distributed computer nodes
CN114020521A (en) Device and method for realizing satellite-borne data backup based on RMAP protocol
CN114465984B (en) Address allocation method, system, device and computer readable storage medium based on transmission path
JPH0225579B2 (en)
US20050083930A1 (en) Method of early buffer release and associated MAC controller
JPH0216845A (en) Data communication equipment for vehicle
KR970007249B1 (en) Transformation unit of data bus bandwidth
JPS6153985B2 (en)
JP2968753B2 (en) Switch circuit with buffer memory
JP2972659B2 (en) UTOPIA level 2 polling control method
JPH1023101A (en) Data transfer interface circuit and data transfer method
JPH05204849A (en) Synchronous serial bus system