JP3120609B2 - Frame receiver - Google Patents
Frame receiverInfo
- Publication number
- JP3120609B2 JP3120609B2 JP05001482A JP148293A JP3120609B2 JP 3120609 B2 JP3120609 B2 JP 3120609B2 JP 05001482 A JP05001482 A JP 05001482A JP 148293 A JP148293 A JP 148293A JP 3120609 B2 JP3120609 B2 JP 3120609B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- frame
- communication
- reception
- address
- 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.)
- Expired - Fee Related
Links
Landscapes
- Small-Scale Networks (AREA)
- Communication Control (AREA)
- Selective Calling Equipment (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明はフレーム受信装置に関
し、特に家庭内のホームオートメーションやオーデオビ
ジュアル機器間等のデータ伝送に用いるデータ通信シス
テムの受信制御装置におけるフレーム受信装置に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a frame receiving apparatus, and more particularly to a frame receiving apparatus in a reception control device of a data communication system used for data transmission between home automation and audio-visual equipment in a home.
【0002】[0002]
【従来の技術】ホームオートメーションの実現のため
に、共有伝送路であるバスを用いた各種データ通信シス
テムが提案され規格化されている。例えば、国際電気標
準会議(IEC)にて標準化された家庭内のオーディオ
ビジュアル(AV)機器間のデータ伝送に用いる制御用
バスであるD2Bや、日本電子機械工業会と電波技術協
会とで規格化されたホームバスシステム(HBS)があ
る。これらのデータ通信システムは、アドレス、制御コ
ード、可変長データを一括したパケットから成る通信フ
レームによりデータを伝送する。2. Description of the Related Art For realizing home automation, various data communication systems using a bus which is a shared transmission line have been proposed and standardized. For example, D2B, a control bus used for data transmission between home audiovisual (AV) devices, standardized by the International Electrotechnical Commission (IEC), and standardized by the Japan Electronic Machinery Manufacturers Association and the Radio Technology Association There is a designated Home Bus System (HBS). These data communication systems transmit data in communication frames composed of packets in which addresses, control codes, and variable-length data are packaged.
【0003】従来のフレーム受信装置の説明の前に、家
庭内データ通信システムの例として上記D2Bシステム
について説明する。Before describing a conventional frame receiving apparatus, the D2B system will be described as an example of a home data communication system.
【0004】図3は、D2Bシステムの通信フレームの
フオーマットを示す図である。図5において、通信フレ
ームFFはフレームの開始を表すスタートビットSと、
通信モードを指定するモードビットMと、送信制御装置
のアドレスを示すマスタアドレスフイールドFMと、受
信制御装置のアドレスを示すスレーブアドレスフイール
ドFSと、通信データの種類および転送方向を示すコン
トロールフイールドFCと、通信データを搭載するデー
タフイールドFDとから成る。FIG. 3 is a diagram showing a format of a communication frame of the D2B system. In FIG. 5, a communication frame FF includes a start bit S indicating the start of a frame,
A mode bit M specifying a communication mode, a master address field FM indicating the address of the transmission control device, a slave address field FS indicating the address of the reception control device, a control field FC indicating the type and transfer direction of communication data, And a data field FD on which communication data is mounted.
【0005】データフイールドFDに搭載できる通信デ
ータ数は通信モードにより最大値が決められる。例え
ば、モードビットMにて通信モード2が選択された場合
には、データフイールドFDには128バイトまでの通
信データを搭載できる。また、スレーブアドレスフイー
ルドFS、コントロールフイールドFC、データフイー
ルドFDにはそれぞれアクノリッジビットが付加され、
受信制御装置が正常にデータを受信した場合には、これ
らのアクノリッジビットが送信制御装置に対して返送さ
れる。[0005] The maximum number of communication data that can be loaded in the data field FD is determined by the communication mode. For example, when the communication mode 2 is selected by the mode bit M, up to 128 bytes of communication data can be loaded in the data field FD. An acknowledge bit is added to each of the slave address field FS, the control field FC, and the data field FD,
When the reception control device receives the data normally, these acknowledge bits are returned to the transmission control device.
【0006】従来のフレーム受信装置1は、図2に示す
ように、CPU2とともにD2Bシステムの通信データ
の受信制御を行なう受信制御装置を構成する。フレーム
受信装置1は通信データを受信し格納する。CPU2は
フレーム受信装置1に格納した受信データを読出し所定
の処理を行なう。As shown in FIG. 2, the conventional frame receiving device 1 constitutes a reception control device for controlling reception of communication data of the D2B system together with the CPU 2. The frame receiving device 1 receives and stores communication data. CPU 2 reads the received data stored in frame receiving apparatus 1 and performs a predetermined process.
【0007】図2において、従来のフレーム受信装置1
は、バスから入力された通信フレームFFを論理信号に
変換・復調して受信信号RFを出力する受信部11と、
受信信号RFをデータリンク層のプロトコルに基ずき処
理を行なうデータリンクコントローラ(以下DLC)1
2と、受信信号RF内の受信データRD(データフイー
ルドFDの内容)を格納する先入先出(以下FIFO)
メモリ13と、FIFOメモリ13の状態を示すメモリ
ステータス部14と、DLC12から出力される受信状
態のステータスを格納する受信ステータス部15とを備
えて構成されていた。In FIG. 2, a conventional frame receiving apparatus 1
A receiving unit 11 that converts and demodulates a communication frame FF input from the bus into a logical signal and outputs a received signal RF;
Data link controller (hereinafter referred to as DLC) 1 for processing received signal RF based on a data link layer protocol
2 and a first-in first-out (hereinafter FIFO) storing received data RD (contents of data field FD) in received signal RF
The memory 13 includes a memory status unit 14 that indicates the status of the FIFO memory 13, and a reception status unit 15 that stores the status of the reception status output from the DLC 12.
【0008】メモリステータス部14は、DLC12に
対しそれぞれFIFOメモリ13が空(格納データが無
い)か格納データで満杯かを示す状態信号REP/RF
Lを出力する。またCPU2に対し、ステータス信号R
EPを出力する。[0008] The memory status section 14 supplies a status signal REP / RF to the DLC 12 indicating whether the FIFO memory 13 is empty (no stored data) or full with stored data.
L is output. Also, the status signal R is sent to the CPU 2.
Outputs EP.
【0009】次に、従来のフレーム受信装置の動作につ
いて説明する。Next, the operation of the conventional frame receiving apparatus will be described.
【0010】まず初期状態では、FIFOメモリ13は
空であるため、ステータス信号REPは’1’となり、
DLC12とCPU2に対しそれぞれ供給される。次
に、バスに通信フレームFFが送出されると、DLC1
2は受信部11を介してこの通信フレームFFをモニタ
する。この通信フレームFFが自局宛であることを確認
すると、信号REPによりFIFOメモリ13が空であ
ることを確認する。この確認結果、信号REPが’1’
すなわち空である場合には、送信局に対してアクノリッ
ジ信号を返送し、通信フレームFFの受信を開始する。
信号RFLのモニタによりFIFOメモリが満杯になら
ない範囲で受信データRDをFIFOメモリ13に格納
する。上記確認結果、信号REPが’0’すなわち空で
ない場合には、通信フレームFFの受信を拒否し、送信
局に対してアクノリッジ信号を返送せずに受信動作を終
了する。この理由は、FIFOメモリ13に以前の受信
データが残っていると、新たに受信する今回の受信デー
タとの区別がつかなくなるためである。この例では、信
号REPが’1’であるので、DLC12は通信フレー
ムFFの受信を開始し、受信データRDをFIFOメモ
リ13に格納する。受信が終了すると受信終了を示すコ
ードを受信ステータス部15に設定し、CPU2に割込
を要求する。First, in the initial state, since the FIFO memory 13 is empty, the status signal REP becomes "1",
It is supplied to the DLC 12 and the CPU 2 respectively. Next, when the communication frame FF is transmitted to the bus, the DLC1
2 monitors the communication frame FF via the receiving unit 11. When it is confirmed that the communication frame FF is addressed to the own station, it is confirmed by the signal REP that the FIFO memory 13 is empty. As a result of this confirmation, the signal REP becomes '1'
That is, if the communication frame is empty, an acknowledgment signal is returned to the transmitting station, and reception of the communication frame FF is started.
The received data RD is stored in the FIFO memory 13 within a range where the FIFO memory is not full by monitoring the signal RFL. As a result of the above confirmation, if the signal REP is “0”, that is, not empty, the reception of the communication frame FF is rejected, and the receiving operation is terminated without returning an acknowledge signal to the transmitting station. The reason for this is that if the previous received data remains in the FIFO memory 13, it cannot be distinguished from the newly received data received this time. In this example, since the signal REP is “1”, the DLC 12 starts receiving the communication frame FF and stores the received data RD in the FIFO memory 13. When the reception is completed, a code indicating the end of the reception is set in the reception status section 15, and an interrupt is requested to the CPU 2.
【0011】CPU2は、この割込要求に対し、受信ス
テータス部15を読出し受信終了を知る。次に、信号R
EPをモニタしながらFIFOメモリ13から空になる
(クリアする)まで受信データRDを読出すことによ
り、受信した通信フレームFF内の受信データRDを全
部取出すことができる。In response to the interrupt request, the CPU 2 reads out the reception status section 15 and knows the end of reception. Next, the signal R
By reading the received data RD from the FIFO memory 13 until it becomes empty (cleared) while monitoring the EP, all the received data RD in the received communication frame FF can be taken out.
【0012】また、通信フレームFFの受信が途中で終
了したためCPU2による受信データの読出が不要とな
った場合には、CPU2はFIFOメモリ13を制御し
てクリアする。When the reception of the communication frame FF is terminated halfway and reading of the received data by the CPU 2 becomes unnecessary, the CPU 2 controls the FIFO memory 13 to clear it.
【0013】上述のD2Bシステムにおけるモード2の
場合では、128バイトのデータの受信終了後、次の通
信フレームの受信開始までの時間は最短約2.2mSで
ある。したがって、CPU2はFIFOメモリ13をク
リアするために、2.2mS以内に128バイトのデー
タ読出処理を実行する必要があった。In the case of mode 2 in the above-described D2B system, the time from the end of the reception of 128 bytes of data to the start of the reception of the next communication frame is a minimum of about 2.2 ms. Therefore, in order to clear the FIFO memory 13, the CPU 2 needs to execute a 128-byte data reading process within 2.2 mS.
【0014】[0014]
【発明が解決しようとする課題】上述した従来のフレー
ム受信装置は、FIFOメモリをクリアしないと次の通
信フレームの受信開始ができないため、CPUは短時間
にFIFOメモリをクリアするための読出処理を実行す
る必要があり、上記CPUの処理に大きな負担となると
いう欠点があった。In the above-described conventional frame receiving apparatus, the reception of the next communication frame cannot be started unless the FIFO memory is cleared. Therefore, the CPU performs a reading process for clearing the FIFO memory in a short time. It has to be executed, and there is a drawback that the processing of the CPU becomes a heavy burden.
【0015】[0015]
【課題を解決するための手段】本発明のフレーム受信装
置は、アドレスと制御コードと複数の通信データとを一
括したパケットから成る通信フレームによりデータを伝
送するデータ通信システムの受信制御装置を構成する中
央処理装置に前記複数の通信データを供給するための、
前記通信フレームを受信し論理信号に変換・復調し受信
信号を出力する受信部と、前記受信信号をデータリンク
層のプロトコルに基ずき処理を行なうデータリンクコン
トローラと、前記データリンクコントローラの制御によ
り前記受信信号内の前記複数の通信データを格納する受
信データ記憶手段とを備えるフレーム受信装置におい
て、前記受信データ記憶手段が、第一および第二の前記
通信フレームのそれぞれの前記複数の通信データである
第一および第二の通信データをそれぞれ格納する第一お
よび第二の記憶領域を有する記憶手段と前記第一および
第二の記憶領域の書込および読出アドレスをそれぞれ指
定する書込アドレス指定手段および読出アドレス指定手
段とを備え、前記第一および第二の記憶領域の全部が格
納データで満杯か否である非満杯かを表示するメモリス
テータス表示信号を前記データリンクコントローラに供
給するメモリステータス表示手段と、前記中央処理装置
により制御され前記受信データ記憶手段に格納した前記
第一および第二の通信データを前記第一および第二の記
憶領域毎に管理するフレームコントロール手段と、前記
第一および第二の通信データのそれぞれの最終アドレス
を第一および第二のフレームアドレスとして格納する1
バイトのラッチと複数バイトの先入先出記憶回路とを備
え、前記通信フレームの受信中の途中で受信終了した場
合に、前記1バイトのラッチには前記受信終了時以前の
最終通信フレームの前記受信終了時の前記フレームアド
レスを前記複数バイトの先入先出記憶回路には前記最終
通信フレームの前の複数の通信フレームの受信終了時の
フレームアドレスをそれぞれ格納し、前記受信データ記
憶手段に格納された前記通信フレームのうちから前記受
信終了時に受信中の通信フレームより順番に通信フレー
ム単位でクリアするフレームアドレス記憶手段とを備
え、前記データリンクコントローラが前記メモリステー
タス表示信号の前記非満杯の表示により前記通信フレー
ムの受信開始の制御をすることを特徴とするものであ
る。SUMMARY OF THE INVENTION A frame receiving apparatus according to the present invention constitutes a receiving control apparatus of a data communication system for transmitting data in a communication frame consisting of a packet in which an address, a control code, and a plurality of communication data are packaged. For supplying the plurality of communication data to a central processing unit,
A receiving unit that receives the communication frame, converts and demodulates the received signal into a logical signal, and outputs a received signal; a data link controller that performs processing based on a protocol of a data link layer based on the received signal; and a control unit that controls the data link controller. in the frame reception device and a reception data storage means for storing the plurality of communication data in the received signal, the received data storage means, in each of the plurality of communication data of the first and second of the communication frame Storage means having first and second storage areas for storing certain first and second communication data, respectively, and write address specifying means for specifying write and read addresses of the first and second storage areas, respectively And read address designating means, and whether all of the first and second storage areas are full of stored data. A memory status display unit for supplying a memory status display signal to the data link controller for indicating whether or not the data is not full; and the first and second communication data controlled by the central processing unit and stored in the reception data storage unit. and frame control means for controlling each said first and second storage areas, 1 for storing the respective last address of the first and second communication data as the first and second frame address
It has a byte latch and a multi-byte first-in first-out memory circuit.
If the reception ends during the reception of the communication frame,
In this case, the 1-byte latch has
The frame address at the end of the reception of the last communication frame
Address to the multi-byte first-in first-out memory circuit.
At the end of reception of multiple communication frames before the communication frame
Each frame address is stored, and the received data
Out of the communication frames stored in the storage means.
At the end of communication, the communication frames are
Frame address storage means for clearing the communication frame in units of memory, wherein the data link controller controls the start of reception of the communication frame by displaying the non-full state of the memory status display signal.
【0016】[0016]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。Next, embodiments of the present invention will be described with reference to the drawings.
【0017】図1は本発明のフレーム受信装置の一実施
例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the frame receiving apparatus of the present invention.
【0018】本実施例のフレーム受信装置3は、図1に
示すように、従来と同様の受信部11と、データリンク
コントローラ(以下DLC)12と、受信ステータス部
15とに加えて、FIFOメモリ13の代りに受信デー
タを格納する受信メモリ33と、受信メモリ33の書込
アドレスを指定する書込アドレス部31と、受信メモリ
33の読出アドレスを指定する読出アドレス部32と、
受信メモリ33の状態を示すメモリステータス部34
と、受信メモリ33に格納した各通信フレームの複数の
受信データの最終アドレスを格納するフレームアドレス
バッファ35と、受信メモリ33に格納した受信データ
を通信フレーム単位で管理するフレームコントロール部
36とを備える。As shown in FIG. 1, a frame receiving apparatus 3 according to the present embodiment includes a receiving unit 11, a data link controller (hereinafter, DLC) 12, and a reception status unit 15 similar to those of the related art, and a FIFO memory. 13, a reception memory 33 that stores reception data, a write address unit 31 that specifies a write address of the reception memory 33, a read address unit 32 that specifies a read address of the reception memory 33,
Memory status section 34 indicating the state of reception memory 33
A frame address buffer 35 for storing the final address of a plurality of received data of each communication frame stored in the reception memory 33; and a frame control unit 36 for managing the received data stored in the reception memory 33 in communication frame units. .
【0019】受信メモリ33は、従来のFIFOメモリ
13と同様に通信フレームFFのデータフイールドDF
の受信データDRを格納するデュアルポートRAMであ
り、本実施例では128バイトとする。The receiving memory 33 stores the data field DF of the communication frame FF in the same manner as the conventional FIFO memory 13.
Is a dual-port RAM for storing the received data DR of 128 bytes in this embodiment.
【0020】書込アドレス部31は、受信データDRの
書込時における受信メモリ33のアドレスを指定する8
ビットのカウンタであり、受信データDRの書込毎に次
の受信データの書込に備えて1つカウントアップする。
上記カウンタの出力をMSB側から順に、書込アドレス
WA7〜WA0とする。下位7ビットすなわちWA6〜
WA0は受信メモリ33に実アドレスとして入力され
る。MSBすなわちWA7は、受信メモリ33をリング
バッファとして用いる場合の制御用ビットとして使用す
る。また、書込アドレスWA7〜WA0は、メモリステ
ータス部34およびフレームアドレスバッファ35に供
給される。The write address section 31 designates an address of the reception memory 33 when the reception data DR is written.
This is a bit counter, and counts up by one every time the received data DR is written in preparation for writing the next received data.
The outputs of the counter are set as write addresses WA7 to WA0 in order from the MSB side. Lower 7 bits, that is, WA6 to
WA0 is input to the reception memory 33 as a real address. The MSB, that is, the WA7, is used as a control bit when the reception memory 33 is used as a ring buffer. The write addresses WA7 to WA0 are supplied to the memory status unit 34 and the frame address buffer 35.
【0021】読出アドレス部32は、受信データDRの
読出時における受信メモリ33のアドレスを指定する8
ビットのカウンタであり、受信データDRの読出毎に次
の受信データの読出に備えて1つカウントアップする。
上記カウンタの出力をMSB側から順に、読出アドレス
RA7〜RA0とする。下位7ビットすなわちRA6〜
RA0は受信メモリ33に実アドレスとして入力され
る。MSBすなわちRA7は、受信メモリ33をリング
バッファとして用いる場合の制御用ビットとして使用す
る。また、読出アドレスRA7〜RA0は、メモリステ
ータス部34およびフレームアドレスバッファ35に供
給される。The read address section 32 designates an address of the reception memory 33 when the reception data DR is read.
This is a bit counter, and counts up by one every time the reception data DR is read in preparation for reading the next reception data.
The outputs of the counter are set as read addresses RA7 to RA0 in order from the MSB side. Lower 7 bits, that is, RA6 ~
RA0 is input to the reception memory 33 as a real address. The MSB, that is, RA7, is used as a control bit when the reception memory 33 is used as a ring buffer. The read addresses RA7 to RA0 are supplied to the memory status unit 34 and the frame address buffer 35.
【0022】フレームアドレスバッファ35は、受信メ
モリ33に格納した各通信フレームの受信データの最終
アドレスをフレームアドレスとして格納するFIFO型
のバッファであり、MSB側から順にフレームアドレス
FA7〜FA0の8ビットのデータをメモリステータス
部34に供給する。フレームアドレスバッファ35の書
込読出制御はフレームコントロール部36で行なわれ
る。The frame address buffer 35 is a FIFO type buffer that stores the final address of the received data of each communication frame stored in the reception memory 33 as a frame address, and has an 8-bit frame address FA7 to FA0 in order from the MSB side. The data is supplied to the memory status unit 34. The write / read control of the frame address buffer 35 is performed by a frame control unit 36.
【0023】メモリステータス部34は、書込アドレス
部31と、読出アドレス部32およびフレームアドレス
バッファ35のデータの供給を受け受信メモリ33の状
態を出力する。メモリステータス部34の出力は、DL
C12に供給するステータス信号RFLおよびCPU2
に供給するステータス信号FENの2つである。The memory status section 34 is supplied with data of the write address section 31, the read address section 32 and the frame address buffer 35, and outputs the state of the reception memory 33. The output of the memory status unit 34 is DL
Status signal RFL supplied to C12 and CPU2
, Which are the status signals FEN to be supplied to the power supply.
【0024】ステータス信号RFLは受信メモリ33が
満杯のとき’1’となる。このとき、書込アドレスWA
6〜WA0と読出アドレスRA6〜RA0とが一致し、
かつWA7とRA7とが不一致の状態である。また、ス
テータス信号FENはCPU2が読出中の受信データの
読出終了時に’1’となる。このとき、フレームアドレ
スFA7〜FA0と読出アドレスRA7〜RA0とが一
致している。The status signal RFL becomes "1" when the reception memory 33 is full. At this time, the write address WA
6-WA0 and read addresses RA6-RA0 match,
In addition, WA7 and RA7 do not match. The status signal FEN becomes “1” at the end of reading of the received data being read by the CPU 2. At this time, the frame addresses FA7 to FA0 match the read addresses RA7 to RA0.
【0025】次に、本実施例の動作について説明する。Next, the operation of this embodiment will be described.
【0026】表1は、DLC12とCPU2により、受
信メモリ33のそれぞれ受信データRDの書込・読出を
実行した場合のステータスを示す。Table 1 shows the status when the DLC 12 and the CPU 2 write and read the reception data RD in the reception memory 33, respectively.
【0027】[0027]
【表1】 [Table 1]
【0028】まず、初期状態であるステート0では、書
込アドレス部31と、読出アドレス部32およびフレー
ムアドレスバッファ35がともに00hであるため、信
号RFLは’0’、信号FENは’1’である。次に、
送信局の送信制御装置がバスに60バイトの通信データ
DRAを含む1番目の通信フレームFFAを送出する。
フレーム受信装置のDLC12は、受信部11を介して
この通信フレームFFAをモニタする。この通信フレー
ムFFAのスレーブアドレスフイールドFSにて自局宛
であることを確認すると、コントロールフイールドFC
によりステータス信号RFLをチエックする。このチエ
ック結果、ステータス信号RFLが’0’、すなわち、
受信メモリ33が満杯でない場合には、アクノリッジ信
号を送信制御装置に対し返送し、データフイールドFD
の通信データDRAの受信を開始する。通信データDR
Aを1バイト受信する毎にステータス信号RFLをモニ
タし、このステータス信号RFLが’1’でなければ受
信メモリ33にこの通信データDRAを書込む。ステー
タス信号RFLが’1’、すなわち、受信メモリ33が
満杯の場合には、通信フレームFFの受信を拒否し、ア
クノリッジ信号を送信制御装置に対し返送せずに受信動
作を終了する。本実施例では、受信メモリ33の128
バイトがすべて空いており、したがって、ステータス信
号RFLが’0’であるので、DLC12は、60バイ
トの通信データDRAの全部を受信メモリに書込み正常
に受信を終了する。このとき、書込アドレス部31より
書込アドレス60hが出力される(ステート1)。First, in state 0 which is an initial state, since the write address section 31, the read address section 32 and the frame address buffer 35 are all 00h, the signal RFL is "0" and the signal FEN is "1". is there. next,
The transmission control device of the transmitting station sends out the first communication frame FFA including the communication data DRA of 60 bytes to the bus.
The DLC 12 of the frame receiving device monitors the communication frame FFA via the receiving unit 11. If it is confirmed in the slave address field FS of the communication frame FFA that the communication frame FFA is addressed to the own station, the control field FC
To check the status signal RFL. As a result of this check, the status signal RFL is '0', that is,
If the reception memory 33 is not full, an acknowledgment signal is returned to the transmission control device, and the data field FD
Of the communication data DRA is started. Communication data DR
Each time one byte of A is received, the status signal RFL is monitored. If the status signal RFL is not "1", the communication data DRA is written to the reception memory 33. When the status signal RFL is “1”, that is, when the reception memory 33 is full, the reception of the communication frame FF is rejected, and the reception operation is terminated without returning an acknowledge signal to the transmission control device. In the present embodiment, 128
Since all the bytes are empty and the status signal RFL is “0”, the DLC 12 writes all of the 60-byte communication data DRA into the reception memory and ends the reception normally. At this time, write address 60h is output from write address section 31 (state 1).
【0029】次に、DLC12は、通信フレームFFA
の正常受信を示すコードを受信ステータス部15に設定
し、CPU2に割込を要求する。CPU2は、この割込
要求に対し、受信ステータス部15を読出し正常受信の
終了を知る。次に、フレームコントロール部36を制御
し、次の通信フレームFFBの受信を許可する。フレー
ムコントロール部36は、フレームアドレスバッファ3
5に書込アドレス部31の出力値60hを書込む。Next, the DLC 12 communicates with the communication frame FFA.
Is set in the reception status section 15, and an interrupt is requested to the CPU 2. In response to the interrupt request, the CPU 2 reads the reception status section 15 and knows the end of the normal reception. Next, the frame controller 36 is controlled to permit reception of the next communication frame FFB. The frame control unit 36 controls the frame address buffer 3
5, the output value 60h of the write address section 31 is written.
【0030】次に、CPU2は、フレームコントロール
部36を制御し、フレームアドレスバッファ35から正
常受信後の受信メモリ33のアドレス値を読出す。これ
により、フレームアドレスバッファ35からアドレス6
0hが読出され、ステータス信号FENが’1’から’
0’に変化する(ステート2)。Next, the CPU 2 controls the frame control unit 36 to read the address value of the reception memory 33 after the normal reception from the frame address buffer 35. As a result, the frame address buffer 35 stores the address 6
0h is read, and the status signal FEN is changed from "1" to "1".
It changes to 0 '(state 2).
【0031】次に、送信制御装置から、20バイトの通
信データDRBを含む2番目の通信フレームFFBが送
出される。この時点では、受信制御装置は、上述の通信
フレームFFAの受信時と同様に、受信メモリ33が満
杯でないため、この通信フレームFFBを正常受信でき
る。したがって、DLC12は、通信フレームFFBを
正常受信し、20バイトの通信データDRBを受信メモ
リ33に書込む。このとき書込アドレス部31は80h
となり、また、ステータス信号RFLは’1’となるの
でここで始めて受信ができない状態となる(ステート
3)。Next, a second communication frame FFB including the communication data DRB of 20 bytes is transmitted from the transmission control device. At this point, the reception control device can normally receive the communication frame FFB because the reception memory 33 is not full, as in the case of receiving the communication frame FFA described above. Therefore, the DLC 12 normally receives the communication frame FFB and writes the 20-byte communication data DRB into the reception memory 33. At this time, the write address section 31 is 80h
Further, since the status signal RFL becomes "1", the reception becomes impossible for the first time (state 3).
【0032】次のステート4では、CPU2が受信メモ
リ33から通信フレームFFAの受信データDRAの読
出を行なう。このとき、CPU2は、ステータス信号F
ENが’1’になるまでモニタしながら、受信データR
DAを読出す。In the next state 4, the CPU 2 reads the reception data DRA of the communication frame FFA from the reception memory 33. At this time, the CPU 2 outputs the status signal F
While monitoring until EN becomes '1', receive data R
Read DA.
【0033】次のステート5では、CPU2がフレーム
アドレスバッファ35から通信フレームFFBの受信終
了時のアドレスの読出を命令し、このアドレス80hが
読出され、ステータス信号FENが再度’0’に変化す
る。In the next state 5, the CPU 2 instructs reading of the address at the end of the reception of the communication frame FFB from the frame address buffer 35, the address 80h is read, and the status signal FEN changes to "0" again.
【0034】最後のステート6では、CPU2はステー
タス信号FENが’1’になるまで受信メモリ33を読
出し受信データDRBを取出す。In the last state 6, the CPU 2 reads the reception memory 33 and extracts the reception data DRB until the status signal FEN becomes "1".
【0035】上述のD2Bシステムにおけるモード2の
場合では、128バイトのデータの受信終了後、従来の
フレーム受信装置では、FIFOメモリ13をクリアす
るために、CPU2は、2.2mS以内に128バイト
のデータ読出処理を実行する必要があったのに対し、本
実施例では、同時間内に、1バイト以上のデータを読出
して空エリアを確保することにより受信を開始できるの
で、CPU2の処理の負担を大幅に軽減できる。In the case of mode 2 in the above-described D2B system, after completion of the reception of 128 bytes of data, in the conventional frame receiving apparatus, the CPU 2 clears the FIFO memory 13 so that the CPU 2 transmits the 128 bytes of data within 2.2 mS. In contrast to the necessity of executing the data reading process, in the present embodiment, reception can be started by reading out data of one byte or more and securing an empty area within the same time. Can be greatly reduced.
【0036】以上、本発明の実施例を説明したが、本発
明は上記実施例に限られることなく種々の変形が可能で
ある。例えば、フレームアドレスバッファを1バイトの
ラッチと複数バイトのFIFOメモリとで構成し、通信
中にバスの障害等により途中で受信終了した場合に、前
者には途中終了以前の最終通信フレームの受信終了時の
アドレスを、後者にはその前の複数の通信フレームの受
信終了時のアドレスをそれぞれ格納することにより、受
信メモリに格納された受信データのうちから上記途中終
了のときの受信データより順番に不要な受信データを通
信フレーム単位でクリアすることも、本発明の主旨を逸
脱しない限り適用できることは勿論である。Although the embodiment of the present invention has been described above, the present invention is not limited to the above-described embodiment, and various modifications can be made. For example, when the frame address buffer is composed of a one-byte latch and a plurality of bytes of FIFO memory, and the reception is terminated halfway during communication due to a bus failure or the like, the former will terminate the reception of the last communication frame before the termination. By storing the address at the time and the address at the end of reception of a plurality of previous communication frames in the latter, respectively, the reception data stored in the reception memory is sequentially arranged from the reception data at the time of the halfway end among the reception data stored in the reception memory. Clearing of unnecessary received data in communication frame units can of course be applied without departing from the gist of the present invention.
【0037】[0037]
【発明の効果】以上説明したように、本発明のフレーム
受信装置は、受信データ記憶手段に格納した受信データ
を通信フレーム単位で管理するフレームコントロール部
と、上記受信データ記憶手段に格納した複数の通信フレ
ームの複数の受信データの最終アドレスをフレームアド
レスとして格納するフレームアドレス記憶手段とを備え
ることにより、CPUが上記受信データ記憶手段に格納
した複数の通信フレームの受信データを区別できるの
で、上記受信データ記憶手段に空エリアがあれば受信を
開始できるため、上記CPUの処理の負担を大幅に軽減
できるという効果がある。As described above, the frame receiving apparatus according to the present invention comprises a frame control section for managing received data stored in the received data storage means in communication frame units, and a plurality of the plurality of storage sections stored in the received data storage means. By providing frame address storage means for storing the final addresses of the plurality of received data of the communication frame as frame addresses, the CPU can distinguish the received data of the plurality of communication frames stored in the received data storage means. If there is an empty area in the data storage means, reception can be started, so that the processing load on the CPU can be greatly reduced.
【図1】本発明のフレーム受信装置の一実施例を示すブ
ロック図である。FIG. 1 is a block diagram showing an embodiment of a frame receiving apparatus according to the present invention.
【図2】従来のフレーム受信装置の一例を示すブロック
図である。FIG. 2 is a block diagram illustrating an example of a conventional frame receiving apparatus.
【図3】D2Bシステムの通信フレームの構成を示す図
である。FIG. 3 is a diagram illustrating a configuration of a communication frame of the D2B system.
1,3 フレーム受信装置 2 CPU 11 受信部 12 DLC 13 FIFOメモリ 14,34 メモリステータス部 15 受信ステータス部 31 書込アドレス部 32 読出アドレス部 33 受信メモリ 35 フレームアドレスバッファ 36 レームコントロール部 1, 3 frame receiving device 2 CPU 11 receiving unit 12 DLC 13 FIFO memory 14, 34 memory status unit 15 reception status unit 31 write address unit 32 read address unit 33 reception memory 35 frame address buffer 36 frame control unit
Claims (2)
タとを一括したパケットから成る通信フレームによりデ
ータを伝送するデータ通信システムの受信制御装置を構
成する中央処理装置に前記複数の通信データを供給する
ための、前記通信フレームを受信し論理信号に変換・復
調し受信信号を出力する受信部と、前記受信信号をデー
タリンク層のプロトコルに基ずき処理を行なうデータリ
ンクコントローラと、前記データリンクコントローラの
制御により前記受信信号内の前記複数の通信データを格
納する受信データ記憶手段とを備えるフレーム受信装置
において、 前記受信データ記憶手段が、第一および第二の前記通信
フレームのそれぞれの前記複数の通信データである第一
および第二の通信データをそれぞれ格納する第一および
第二の記憶領域を有する記憶手段と前記第一および第二
の記憶領域の書込および読出アドレスをそれぞれ指定す
る書込アドレス指定手段および読出アドレス指定手段と
を備え、 前記第一および第二の記憶領域の全部が格納データで満
杯か否である非満杯かを表示するメモリステータス表示
信号を前記データリンクコントローラに供給するメモリ
ステータス表示手段と、 前記中央処理装置により制御され前記受信データ記憶手
段に格納した前記第一および第二の通信データを前記第
一および第二の記憶領域毎に管理するフレームコントロ
ール手段と、 前記第一および第二の通信データのそれぞれの最終アド
レスを第一および第二のフレームアドレスとして格納す
る1バイトのラッチと複数バイトの先入先出記憶回路と
を備え、前記通信フレームの受信中の途中で受信終了し
た場合に、前記1バイトのラッチには前記受信終了時以
前の最終通信フレームの前記受信終了時の前記フレーム
アドレスを前記複数バイトの先入先出記憶回路には前記
最終通信フレームの前の複数の通信フレームの受信終了
時のフレームアドレスをそれぞれ格納し、前記受信デー
タ記憶手段に格納された前記通信フレームのうちから前
記受信終了時に受信中の通信フレームより順番に通信フ
レーム単位でクリアするフレームアドレス記憶手段とを
備え、 前記データリンクコントローラが前記メモリステータス
表示信号の前記非満杯の表示により前記通信フレームの
受信開始の制御をすることを特徴とするフレーム受信装
置。1. A plurality of communication data are supplied to a central processing unit constituting a reception control device of a data communication system for transmitting data by a communication frame composed of a packet in which an address, a control code, and a plurality of communication data are packaged. A receiving unit for receiving the communication frame, converting and demodulating the communication frame into a logical signal, and outputting a received signal, a data link controller performing a process based on a protocol of a data link layer, and the data link controller in the frame reception device and a reception data storage means for storing the plurality of communication data in the received signal under the control of, the received data storage means, each of said plurality of first and second of the communication frame First and second storing first and second communication data, which are communication data, respectively. Storage means having a storage area, and write address designation means and read address designation means for designating write and read addresses of the first and second storage areas, respectively. A memory status display means for supplying a memory status display signal to the data link controller for indicating whether or not the data is fully filled with stored data to the data link controller; and wherein the memory status display means is controlled by the central processing unit and stored in the received data storage means. Frame control means for managing the first and second communication data for each of the first and second storage areas; and the first and second frame addresses for the final addresses of the first and second communication data, respectively. 1-byte latch and multiple-byte first-in first-out memory circuit
And the reception is terminated during the reception of the communication frame.
In this case, the 1-byte latch contains the data after the end of reception.
The frame at the end of the reception of the previous last communication frame
The address is stored in the multi-byte first-in first-out memory circuit.
End of reception of multiple communication frames before final communication frame
The frame address at the time of
Out of the communication frames stored in the data storage means.
At the end of reception, the communication frames are
A frame address storage unit that clears the frame in frame units , wherein the data link controller controls the start of reception of the communication frame by displaying the memory status display signal indicating the non-full state.
ドレス指定手段が、前記通信データの書込および読出毎
にそれぞれ計数値を1つ増加する予め定めたビット数の
カウンタを備えることを特徴とする請求項1記載のフレ
ーム受信装置。Wherein said write addressing means and the read addressing means, and wherein the obtaining Bei a predetermined number of bits of the counter which increases by one each count value for each writing and reading of the communication data The frame receiving apparatus according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP05001482A JP3120609B2 (en) | 1993-01-08 | 1993-01-08 | Frame receiver |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP05001482A JP3120609B2 (en) | 1993-01-08 | 1993-01-08 | Frame receiver |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH06205462A JPH06205462A (en) | 1994-07-22 |
JP3120609B2 true JP3120609B2 (en) | 2000-12-25 |
Family
ID=11502662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP05001482A Expired - Fee Related JP3120609B2 (en) | 1993-01-08 | 1993-01-08 | Frame receiver |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3120609B2 (en) |
-
1993
- 1993-01-08 JP JP05001482A patent/JP3120609B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH06205462A (en) | 1994-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0885418B1 (en) | Asynchronous data pipe for automatically managing asynchronous data transfers between an application and a bus structure | |
EP0239937A2 (en) | Serial communications controller | |
US5935267A (en) | Data communication method and a data communication system for use with a digital network | |
JPS639786B2 (en) | ||
EP1120940A1 (en) | Data transfer control device and electronic apparatus | |
WO2021261223A1 (en) | Communication device and communication system | |
KR101559089B1 (en) | Communication protocol for sharing memory resources between components of a device | |
JPH0210936A (en) | Multistation communication bus system and station | |
EP0893019B1 (en) | Multiplex communication interface circuit and method | |
JP3120609B2 (en) | Frame receiver | |
JPH09331370A (en) | Data communication equipment | |
US6460096B1 (en) | Automatic serial bus transmission sequencer | |
EP0423730B1 (en) | Electronic device with data transmission function | |
US6789130B1 (en) | Automatic rate adaptation system in a local area network | |
JPH0353736A (en) | Reception buffer control system | |
JPS6236940A (en) | Data communication equipment in automobile | |
KR100427764B1 (en) | Apparatus for Interface between Devices of different Data Bus | |
JPS6153985B2 (en) | ||
JP2000222347A (en) | Bus protocol converter | |
JPS5860842A (en) | Optical data bus system for aircraft | |
JPH02140039A (en) | Communication control device data transfer method | |
JPH02196596A (en) | Communication control method | |
JPS59230346A (en) | Buffering system of transmission/reception data of transmitter | |
JPS60158750A (en) | High-speed communication system | |
JPH02149049A (en) | Communication control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20000919 |
|
LAPS | Cancellation because of no payment of annual fees |