Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0744582B2 - Bus control circuit - Google Patents
[go: Go Back, main page]

JPH0744582B2 - Bus control circuit - Google Patents

Bus control circuit

Info

Publication number
JPH0744582B2
JPH0744582B2 JP62280614A JP28061487A JPH0744582B2 JP H0744582 B2 JPH0744582 B2 JP H0744582B2 JP 62280614 A JP62280614 A JP 62280614A JP 28061487 A JP28061487 A JP 28061487A JP H0744582 B2 JPH0744582 B2 JP H0744582B2
Authority
JP
Japan
Prior art keywords
data
flag
register
bit
state
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 - Lifetime
Application number
JP62280614A
Other languages
Japanese (ja)
Other versions
JPH01122238A (en
Inventor
庄三 小畑
秀明 白井
秀夫 大和田
耕治 ▲吉▼富
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62280614A priority Critical patent/JPH0744582B2/en
Priority to US07/267,491 priority patent/US5001705A/en
Priority to EP19880402786 priority patent/EP0315549A3/en
Publication of JPH01122238A publication Critical patent/JPH01122238A/en
Publication of JPH0744582B2 publication Critical patent/JPH0744582B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Description

【発明の詳細な説明】 〔概要〕 データバスシステムからデータを受信した時にアクノレ
ッジを送信してデータの転送を行うバス制御回路に関
し、マイクロプロセッサの処理を少なくし、有効的にア
クノレッジデータを送出するバス制御回路を提供するこ
とを目的とし、 バスによってデータを送受信し、データを受信した時に
は送信装置に対しアクノレッジ信号を送信するシステム
において、送信するデータを少なくとも1個記憶する送
信バッファと、アクノレッジ信号を記憶するアクノレッ
ジバッファと、前記アクノレッジ信号を送出する時期を
検出した信号が加わった時、前記送信バッファの出力の
選択をアクノレッジバッファの出力に切換えるセレクタ
とより成るように構成する。
The present invention relates to a bus control circuit that transmits an acknowledge when data is received from a data bus system to transfer the data, and reduces the processing of the microprocessor and effectively sends the acknowledge data. A transmission buffer that stores at least one piece of data to be transmitted in a system that transmits and receives data by a bus and transmits an acknowledge signal to a transmitting device when the data is received for the purpose of providing a bus control circuit, and an acknowledge signal. And an selector for switching the selection of the output of the transmission buffer to the output of the acknowledge buffer when a signal for detecting the timing of sending the acknowledge signal is added.

〔産業上の利用分野〕[Industrial application field]

本発明はデータの送受信を1個のバスで行うデータバス
システムに係り、さらに詳しくは、データバスシステム
からデータを受信した時にアクノレッジを送信してデー
タの転送を行うバス制御回路に関する。
The present invention relates to a data bus system that transmits and receives data with a single bus, and more particularly, to a bus control circuit that transmits an acknowledge to transfer data when data is received from the data bus system.

〔従来の技術〕[Conventional technology]

データバスシステム例えばホームバスシステムに接続さ
れる装置においては、送信するデータや送受信のアドレ
スやアクノレッジ等を送信するための送信バッファとデ
ータバスを介して自分あてのデータを受信して一時記憶
する受信バッファとを有している。尚この他にも制御回
路やプロセッサを有し、これらの制御回路にリード階層
の手順が、さらにはマイクロプロセッサによってソフト
階層の手順等が制御されている。
In a device connected to a data bus system, for example, a home bus system, a reception buffer for receiving data to be transmitted, a transmission / reception address, an acknowledge, and the like, and data temporarily addressed to itself via the data bus And a buffer. In addition to this, a control circuit and a processor are provided, and the procedure of the read hierarchy is controlled by these control circuits, and further, the procedure of the soft hierarchy is controlled by the microprocessor.

このようなバスシステムにおいて、データを目的の装置
へ転送する場合、送信側の装置は先ず自己アドレス(送
信する装置のアドレス)、そして相手アドレス(受信す
る装置のアドレス)、そして制御データ、データ長さら
にはデータ等を順次バスラインに送出し、相手アドレス
に該当する装置は相手アドレス以後の制御データ、デー
タ長さらにはデータをバスラインから取り込んでいる。
そして、全データを受信すると、そのデータを受信した
ことを表すアクノレッジデータを送信側装置に送出し、
送信側装置はそのアクノレッジデータと受信することに
よって正常にデータの転送が終了したことを特徴とす
る。
When transferring data to a target device in such a bus system, the transmitting device first has its own address (the address of the transmitting device), the other party's address (the address of the receiving device), the control data, and the data length. Further, the data and the like are sequentially transmitted to the bus line, and the device corresponding to the partner address fetches the control data, data length and data after the partner address from the bus line.
Then, when all the data is received, the acknowledge data indicating that the data has been received is sent to the transmitting side device,
The transmitting side device is characterized in that the data transfer is normally completed by receiving the acknowledge data.

このアクノレッジデータは前述した送信バッファに例え
ばマイクロプロセッサ等の制御によって格納された後送
出される。
This acknowledge data is sent after being stored in the above-mentioned transmission buffer under the control of, for example, a microprocessor.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

前述のようなシステムにおいては、データを受信する装
置はデータ受信終了後前記データを有する複数のコード
より成るパケット単位で特定時間内にアクノレッジデー
タを送出しなくてはならない。このため、例えばマイク
ロプロセッサ等によってこの時間を検出し、その時にア
クノレッジデータを送信バッファに格納した後、送出す
るようにしている。
In the system as described above, the device for receiving the data has to send the acknowledge data within a specific time in packet units consisting of a plurality of codes having the data after receiving the data. Therefore, for example, a microprocessor or the like detects this time, and at that time, acknowledge data is stored in the transmission buffer and then transmitted.

このような送出する時の時間制御が有るため、マイクロ
プロセッサは常にその時間を検出するようにしなくては
ならないという問題を有していた。
Since there is such a time control at the time of sending, the microprocessor has a problem that it must always detect the time.

また、この時間をハードウェアによって検出し、検出し
た時にマイクロプロセッサに割り込みをかけて送信バッ
ファにアクノレッジデータを格納するようにした方式も
ある。これによってマイクロプロセッサの処理は少なく
なるが、DMA転送中等のように割り込みがかからないよ
うな状態の時にはエラーとなってしまう問題を有してい
た。
There is also a method in which this time is detected by hardware, and when detected, the microprocessor is interrupted and the acknowledge data is stored in the transmission buffer. This reduces the processing of the microprocessor, but has a problem that an error occurs in a state where an interrupt does not occur such as during DMA transfer.

本発明は上記従来の欠点に鑑み、マイクロプロセッサの
処理を少なくし、有効的にアクノレッジデータを送出す
るバス制御回路を提供することを目的とする。
The present invention has been made in view of the above-mentioned conventional drawbacks, and an object of the present invention is to provide a bus control circuit which reduces the processing of a microprocessor and effectively sends out acknowledge data.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明のブロック図である。送信バッファ1は
マイクロプロセッサ等に接続され、送信データを一時記
憶するレジスタ、アクノレッジバッファ2はアクノレッ
ジデータやノットアクノレッジ等の転送の応答に対する
データを一時記憶するレジスタ、セレクタ3は送信バッ
ファ1とアクノレッジバッファ2の出力が加わり、アク
ノレッジ等を送出する時点を検出してアクノレッジバッ
ファ2の出力を選択する回路である。
FIG. 1 is a block diagram of the present invention. The transmission buffer 1 is connected to a microprocessor or the like, and temporarily stores transmission data. The acknowledge buffer 2 is a register for temporarily storing data such as acknowledge data or a response to a transfer such as a knot acknowledge. The selector 3 is the transmission buffer 1 and the acknowledge buffer. The output of the acknowledge buffer 2 is selected by detecting the time when the acknowledge or the like is transmitted by adding the output of 2 to the output of the acknowledge buffer 2.

〔作用〕[Action]

バスによってデータを送受信し、データを受信した時に
送信装置に対しアクノレッジ信号を送出するシステムに
おいて、データを送出する為には送信バッファ1に送出
するデータを格納し、そこから出力されるデータをセレ
クタ3が選択して出力する。セレクタ3の出力は例えば
シリアルデータ等に変換されてバスラインに送出され
る。
In a system that transmits / receives data via a bus and sends an acknowledge signal to a transmitter when the data is received, in order to send the data, the data sent to the send buffer 1 is stored, and the data output from there is selected by a selector. 3 selects and outputs. The output of the selector 3 is converted into, for example, serial data and sent to the bus line.

一方、他の装置からデータを変換し、アクノレッジデー
タを送出する時には、送出するタイミングに関係なく、
アクノレッジデータをアクノレッジバッファ2に格納す
る。
On the other hand, when converting data from another device and sending acknowledge data, regardless of the sending timing,
Acknowledge data is stored in acknowledge buffer 2.

セレクタ3はアクノレッジ信号を送出する時期すなわち
タイミングを検出した時、前記アクノレッジバッファの
選択し、そのアクノレッジデータを出力する。このアク
ノレッジデータを送信データと同様に例えばシリアルデ
ータに変換されてバスラインに出力される。
When the selector 3 detects the timing of sending the acknowledge signal, that is, the timing, the selector 3 selects the acknowledge buffer and outputs the acknowledge data. Similar to the transmission data, this acknowledge data is converted into, for example, serial data and output to the bus line.

これによって、自動的にアクノレッジデータが送出され
る。
As a result, acknowledge data is automatically transmitted.

〔実施例〕〔Example〕

以下、図面を用いて本発明を詳細に説明する。 Hereinafter, the present invention will be described in detail with reference to the drawings.

第2図は本発明の実施例のシステム構成図である。マイ
クロプロセッサ11とバス制御回路12はデータバス(DATA
(D0〜D7))線とアドレズバス(A0〜A2)線、チップセ
レクト(▲▼)線、ライト信号(▲▼)線、リ
ード信号(▲▼)線、リセット信号(▲
▼)線、割込信号(▲▼)線によって接続されて
いる。これらの信号線に接続されるバス制御回路12の端
子はそれぞれ以下の為の端子である。アドレスバスA0
A2に接続されている端子は、内部レジスタ(本発明の実
施例におけるバス制御回路12は後述するが8個のレジス
タを有している)を選択する端子であり、アドレス信号
A0〜A2により、レジスタTXDR、RXDR、AKR、CCR、STR1、
STR2、MDR、MLCのいずれかが選択される。チップセレク
ト信号端子はバス制御回路12にマイクロプロセッサ11が
選択した時に加わる端子であり、“L"の時に選択され、
バス制御回路12の各レジスタへの書き込みや読み出しが
可能となる。ライト信号端子は各レジスタにデータを書
き込む時に“L"信号を加える端子、リード信号端子は各
レジスタからデータを読出す時に“L"を加える端子であ
る。そして、ライト信号端子に“L"が加わると、アドレ
ス信号端子から加わるアドレス値すなわちレジスタ指示
値で指示されるレジスタにデータバスから加わるデータ
を格納し、リード信号端子に“L"が加わると、アドレス
信号端子から加わるレジスタ指示値で指示されるレジス
タの内容をデータバスに出力する。
FIG. 2 is a system configuration diagram of an embodiment of the present invention. The microprocessor 11 and the bus control circuit 12 are connected to the data bus (DATA
(D0 to D7) line, address bus (A 0 to A 2 ) line, chip select (▲ ▼) line, write signal (▲ ▼) line, read signal (▲ ▼) line, reset signal (▲)
▼) line and interrupt signal (▲ ▼) line. The terminals of the bus control circuit 12 connected to these signal lines are terminals for the following respectively. Address bus A 0 ~
The terminal connected to A 2 is a terminal for selecting an internal register (the bus control circuit 12 in the embodiment of the present invention has eight registers, which will be described later).
The A 0 to A 2, register TXDR, RXDR, AKR, CCR, STR1,
One of STR2, MDR, MLC is selected. The chip select signal terminal is a terminal that is added to the bus control circuit 12 when the microprocessor 11 selects it, and is selected when "L".
It is possible to write to and read from each register of the bus control circuit 12. The write signal terminal is a terminal that adds an "L" signal when writing data to each register, and the read signal terminal is a terminal that adds "L" when reading data from each register. When "L" is applied to the write signal terminal, the address value applied from the address signal terminal, that is, the data applied from the data bus is stored in the register designated by the register indication value, and when "L" is applied to the read signal terminal, The contents of the register designated by the register designation value added from the address signal terminal are output to the data bus.

リセット端子はバス制御回路12をリセットするための端
子であり“L"が加わるとバス制御回路12は各レジスタの
値を初期化する。
The reset terminal is a terminal for resetting the bus control circuit 12, and when "L" is added, the bus control circuit 12 initializes the value of each register.

割り込み信号端子はバス制御回路12が出力する端子であ
り、例えば1バイトのデータを受信した時等にその端子
から“L"が出力される。
The interrupt signal terminal is a terminal output by the bus control circuit 12, and, for example, when one byte of data is received, "L" is output from the terminal.

マイクロプロセッサ11には図示しないがROMやRAM等が接
続されており、ROMに格納されているプログラムを実行
して、バス制御回路12を介して後述するホームバスの制
御チャンネル(CH)に制御データ等を送受信する。尚、
マイクロプロセッサ11には、アドレスバスA0〜A2の他に
そのアドレスバスの上位ビットを例えばA15〜A3を有し
ており、ROMやRAM等はこれらアドレスバスA15〜A0に接
続されて、プロセッサ回路として動作する。
Although not shown, ROM, RAM, etc. are connected to the microprocessor 11, which executes a program stored in the ROM and sends control data to a control channel (CH) of a home bus described later via the bus control circuit 12. Etc. are sent and received. still,
The microprocessor 11 has the upper bits of the address bus, for example, A 15 to A 3 in addition to the address buses A 0 to A 2 , and the ROM and RAM are connected to these address buses A 15 to A 0 . Then, it operates as a processor circuit.

一方、バス制御回路12は前述した端子の他にホームバス
ドライバ・レシーバ13に接続している端子(HBデータ
(▲▼)入力端子、HBデータ(+)方向出力端
子、HBデータ(−)方向端子)、さらには基本周波数発
生器14からクロック信号CLKが加わるクロック入力端子
を有している。基本周波数発生器14は4.9MHzや614.4KHz
のクロック信号を出力するものであり、バス制御回路12
はこの2個の内の1個の周波数の信号が加わった時にそ
の周波数を指示するクロックセレクト信号(CSEL)が加
わるクロックセレクト端子をも有している。
On the other hand, the bus control circuit 12 is connected to the home bus driver / receiver 13 in addition to the above-mentioned terminals (HB data (▲ ▼) input terminal, HB data (+) direction output terminal, HB data (-) direction) And a clock input terminal to which the clock signal CLK is applied from the basic frequency generator 14. Basic frequency generator 14 is 4.9 MHz or 614.4 KHz
The bus control circuit 12 outputs the clock signal of
Has a clock select terminal to which a clock select signal (CSEL) indicating the frequency is added when a signal of one of these two frequencies is applied.

第3図はバス制御回路12の回路構成図である。前述した
データ(DATA)、アドレス信号A0〜A2、ライト信号▲
▼、リード信号▲▼、チップセレクト信号▲
▼、リセット信号▲▼、クロック信号CLK、
割込信号▲▼、クロックセレクト信号CSELがバッ
ファ回路15(CPU-I/O)に加わっており、バッファ回路1
5はこれらの信号を目的とする各回路に加える。
FIG. 3 is a circuit configuration diagram of the bus control circuit 12. The above-mentioned data (DATA), address signals A 0 to A 2 , write signal ▲
▼, read signal ▲ ▼, chip select signal ▲
▼, reset signal ▲ ▼, clock signal CLK,
The interrupt signal ▲ ▼ and the clock select signal CSEL are added to the buffer circuit 15 (CPU-I / O), and the buffer circuit 1
The 5 adds these signals to each circuit of interest.

クロック信号CLKはマスタクロックとしてクロック生成
回路16とエッジ検出回路17に加わる。クロック生成回路
16は後述する各回路のクロックを発生し、それぞれに加
える。
The clock signal CLK is applied to the clock generation circuit 16 and the edge detection circuit 17 as a master clock. Clock generation circuit
16 generates a clock for each circuit described later and adds it to each.

エッジ検出回路17には受信データすなわHBデータ(▲
▼)が加わっており、エッジ検出回路17がマスタク
ロックからデータのエッジを検出した時には後述する休
止カウンタ18、状態カウンタ(MDR)19にデータエッジ
を検出したすなわちデータの受信を開始したことを出力
する。
The edge detection circuit 17 receives the received data, that is, the HB data (▲
▼) is added, and when the edge detection circuit 17 detects a data edge from the master clock, it outputs a data edge detected, that is, the start of data reception, to a pause counter 18 and a status counter (MDR) 19 described later. To do.

HBデータ(▲▼)はエッジ検出回路17の他にサン
プリング回路20、競合負け検出回路21、被短電文割込検
出回路22に加わっている。HBデータは例えば9600bpsの
シリアルデータであり、サンプリング回路20は、順次シ
リアルデータを1ビット単位で読み取り、RXシフトレジ
スタ23に加える。
The HB data (▲ ▼) is added to the sampling circuit 20, the competition loss detection circuit 21, and the short message interruption detection circuit 22 in addition to the edge detection circuit 17. The HB data is, for example, 9600 bps serial data, and the sampling circuit 20 sequentially reads the serial data bit by bit and adds the serial data to the RX shift register 23.

第2図におけるホームバスHBは2本の例えばツイスト線
である。このホームバスHBに信号を送出或いは他の装置
からの信号を受信するのがホームバスドライバ・レシー
バ13である。このボームバスHBに出力される信号は1デ
ータ当たり、11ビットより成る。第4図は、データ構成
図であり、1データは1ビットのスタートビットST、8
ビットの転送情報(転送データB0〜B7)、1ビットのパ
リティビット(PA)、さらには1ビットのストップビッ
ト(SP)より成る。ホームバスHBにおいては、“L"
(“0")を表している時には正或いは負方向のパルスが
存在し、“H"(“1")を表している時にはパルスは存在
しない。尚、スタートビットは常に“L"(“0")であ
り、ストップビットは常に“H"(“1")であり、第4図
のデータB0〜B7はホームバスドライバ・レシーバ13によ
って常にこのようなデータを0、1の信号に変換され、
受信データ▲▼としてバス制御回路12に加えられ
る。サンプリング回路20は順次0、1の信号をサンプリ
ングする回路である。RXシフトレジスタ23はサンプリン
グ回路20から1ビット単位で加わる1転送情報の各ビッ
トB0〜B7を受信し、シフトする。この時、RXシフトレジ
スタ23がデータをシフトする度に、パリティチェック回
路24にもそのデータを出力しており、パリティチェック
回路24では1転送情報の0或いは1のビット数をカウン
トして、1転送情報の後に加わるパリティと比較する。
このパリティは、従来のような偶数パリティや奇数パリ
ティであり、1転送情報を受信するたびにデータが正常
であるかを判別し、正常でない例えば0のビット数が偶
数個でない時には、データ異常をステータスレジスタ
(STR2)29に格納する。
The home bus HB in FIG. 2 is, for example, two twisted wires. The home bus driver / receiver 13 sends a signal to the home bus HB or receives a signal from another device. The signal output to the baume bus HB consists of 11 bits per data. FIG. 4 is a data configuration diagram. One data is 1 start bit ST, 8
Bit transfer information (transfer data B0 to B7), 1-bit parity bit (PA), and 1-bit stop bit (SP). In home bus HB, "L"
When it represents (“0”), there is a positive or negative pulse, and when it represents “H” (“1”), there is no pulse. The start bit is always "L"("0"), the stop bit is always "H"("1"), and the data B0 to B7 in FIG. Such data is converted to 0, 1 signals,
The received data ▲ ▼ is added to the bus control circuit 12. The sampling circuit 20 is a circuit that sequentially samples signals of 0 and 1. The RX shift register 23 receives each bit B0 to B7 of one transfer information added in 1-bit units from the sampling circuit 20 and shifts. At this time, each time the RX shift register 23 shifts the data, the data is also output to the parity check circuit 24, and the parity check circuit 24 counts the number of bits of 0 or 1 in one transfer information and outputs 1 bit. Compare with the parity added after the transfer information.
This parity is even parity or odd parity as in the past, and it is determined whether or not the data is normal each time one transfer information is received, and if it is not normal, for example, when the number of 0 bits is not even, a data error is detected. Store in the status register (STR2) 29.

RXシフトレジスタ23はシリアルイン、パラレルアウトの
シフトレジスタであり、1転送情報を受信するたびに、
その8ビットの情報を受信データレジスタ(RXDR)30に
格納する。後述するが受信データレジスタ(RXDR)30に
1転送情報が格納されると、マイクロプロセッサ11がこ
のデータを読み出すことが可能なフラグをオンとする信
号をステータスレジスタ(STR1)31に加える。この格納
によって、例えばプロセッサがこのステータスレジスタ
(STR1)31を読み、受信フラグがオンとなっている時に
は、受信データレジスタに1バイトの情報が転送されて
いることを認識することができる。
The RX shift register 23 is a serial-in / parallel-out shift register, and each time one transfer information is received,
The 8-bit information is stored in the reception data register (RXDR) 30. As will be described later, when one transfer information is stored in the reception data register (RXDR) 30, the microprocessor 11 adds a signal for turning on a flag capable of reading this data to the status register (STR1) 31. By this storage, for example, the processor can read this status register (STR1) 31 and recognize that one byte of information is transferred to the reception data register when the reception flag is on.

前述した各回路によって、ホームバスHBからのデータを
受信することができる。
Each circuit described above can receive data from the home bus HB.

レジスタ(TXDR/AKR)28は、他の装置へホームバスHBを
介して転送情報等を送出する時の送信バッファである。
マイクロプロセッサ11がこのレジスタ(TXDR/AKR)28を
選択して、転送情報等を格納すると、TXシフトレジスタ
25が読み取り、スタートビットを付加して順次1ビット
のシリアルデータSOとしてAMI回路26と、競合負け検出
回路21に出力する。尚、パリティ生成回路27には8ビッ
トの転送すべきデータがTXシフトレジスタ25を介して加
わっており、転送すべきデータに対応してパリティを発
生し、そのパリティをTXシフトレジスタ25に加える。こ
のパリティを第4図に示したデータ構成図のごとく、1
転送情報B0〜B7につづいて、パリティビット位置に挿入
し、TXシフトレジスタ25はパリティビットPAを出力す
る。そしてこのパリティビットPAの後にTXシフトレジス
タ25はストップビットSPを挿入して1データを送出終了
する。
The register (TXDR / AKR) 28 is a transmission buffer when transmitting transfer information and the like to another device via the home bus HB.
When the microprocessor 11 selects this register (TXDR / AKR) 28 and stores transfer information etc., the TX shift register
25 reads it, adds a start bit, and sequentially outputs it as 1-bit serial data SO to the AMI circuit 26 and the competition loss detection circuit 21. It should be noted that 8-bit data to be transferred is added to the parity generation circuit 27 via the TX shift register 25, a parity is generated corresponding to the data to be transferred, and the parity is added to the TX shift register 25. This parity is set to 1 as shown in the data structure diagram of FIG.
After the transfer information B0 to B7 is inserted at the parity bit position, the TX shift register 25 outputs the parity bit PA. Then, the TX shift register 25 inserts a stop bit SP after this parity bit PA and finishes sending one data.

コントロールコードレジスタ(CCR)32からは送信制御
部33に制御信号が加わっており、送信制御部33はこの信
号によって前述のレジスタ(TXDR/AKR)28からデータを
TXシフトレジスタ25に読み出し、そして順次1ビット単
位での送出を制御する信号をTXシフトレジスタ25に加え
ている。この制御によって前述のシリアルデータSOがTX
シフトレジスタ25から出力される。ホームバスHBにおい
ては、シリアルデータの転送における電流の直流分を無
くするため、第4図に示すような正方向と負方向のパル
スをデータが“0"の時に繰り返し発生している。この繰
り返しを制御し、正方向、負方向のパルスを出力すべき
制御信号を発生するのがAMI回路26である。このAMI回路
26にはシリアルデータSOが加わっており、例えば第4図
に示すような“00000000001"なるシリアルデータの時に
は送信データ信号▲▼、▲▼は第5図のよ
うに、▲▼、▲▼が順次正方向や負方向の
パルスを発生して“0"を表している。
A control signal is added from the control code register (CCR) 32 to the transmission control unit 33, and the transmission control unit 33 receives the data from the register (TXDR / AKR) 28 by the signal.
A signal for reading out to the TX shift register 25 and sequentially controlling transmission in 1-bit units is added to the TX shift register 25. By this control, the serial data SO described above is TX
It is output from the shift register 25. In the home bus HB, positive and negative pulses as shown in FIG. 4 are repeatedly generated when the data is "0" in order to eliminate the direct current component of the current in the transfer of serial data. The AMI circuit 26 controls this repetition and generates a control signal for outputting positive and negative pulses. This AMI circuit
Serial data SO is added to 26. For example, when the serial data is "00000000001" as shown in FIG. 4, the transmission data signals ▲ ▼ and ▲ ▼ are ▲ ▼ and ▲ ▼ sequentially as shown in FIG. Positive or negative pulses are generated to indicate "0".

第6図はホームバスドライバ・レシーバ13の送信回路図
である。送信データ▲▼、▲▼はそれぞれ
インバータ11、12さらには抵抗R1、R2を介してトランジ
スタTr1、Tr2のベースに加わっている。トランジスタTr
1、Tr2のエミッタは接地され、コレクタは1次側の中間
点が電源V8に接続されたトランスLの1次側の両端に接
続されている。そしてトランスLの2次側の両端はコン
デンサC1、C2を介してホームバスHBに接続されている。
送信データ▲▼がインバータ11に加わっているの
で、第6図のような構成の場合には、ビットST0、B1、B
3、B5、B7においてトランジスタTr1がオンとなる。また
送信データ▲▼がインバータ12に加わっているの
で、ビットB0、B2、B4、B6、PAにおいてトランジスタTr
2がオンとなる。
FIG. 6 is a transmission circuit diagram of the home bus driver / receiver 13. The transmission data ▲ ▼ and ▲ ▼ are applied to the bases of the transistors Tr 1 and Tr 2 via inverters 11 and 12 and resistors R1 and R2, respectively. Transistor Tr
The emitters of 1 and Tr 2 are grounded, and the collectors are connected to both ends of the primary side of a transformer L whose middle point on the primary side is connected to a power supply V 8 . Both ends of the secondary side of the transformer L are connected to the home bus HB via capacitors C1 and C2.
Since the transmission data ▲ ▼ is added to the inverter 11, in the case of the configuration shown in FIG. 6, bits ST0, B1, B
The transistor Tr 1 is turned on at 3, B5, and B7. In addition, since the transmission data ▲ ▼ is added to the inverter 12, the transistor Tr is set for bits B0, B2, B4, B6, and PA.
2 is turned on.

トランジスタTr1がオンとなった時には、電源V8から、
1次側の中間点を介してトランジスタTr1が接続されて
いる側に電流が流れ、その結果としてホームバスHBに正
方向のパルスが出力される。これに対し、トランジスタ
Tr2がオンとなった時には、その逆となり、負方向のパ
ルスがホームバスHBに出力される。尚、コンデンサC1、
C2は直流セットや低周波帯域とセットする為の素子であ
る。ホームバスHBではバスを介して電力を供給するよう
な場合もあるので、このコンデンサによって直流分がカ
ットされる。
When the transistor Tr 1 is turned on, from the power supply V 8 ,
A current flows to the side to which the transistor Tr 1 is connected via the intermediate point on the primary side, and as a result, a positive pulse is output to the home bus HB. In contrast, the transistor
When Tr 2 is turned on, the opposite is true and a negative pulse is output to home bus HB. Incidentally, the capacitor C1,
C2 is an element for setting the DC setting and low frequency band. Since the home bus HB may supply electric power via the bus in some cases, this capacitor cuts off the direct current component.

ホームバスHBの各情報の伝送においては、アック信号AC
Kやナック(ノットアクノレッジ)信号NAKを送出して送
信した相手の機器がデータを受信したか否かを判定して
いる。このアック信号ACKやナック信号NAKは、一般的に
は伝送すべきデータすなわち一情報として扱われてい
る。このため、送信すべきデータを記憶するレジスタは
従来では1個であるが、本発明においては2個設け、こ
のデータ用とアック用とに分けている。第7図はレジス
タ(TXDR/AKR)28の構成図である。
Ac signal AC is used to transmit each information on the home bus HB.
K or Knack (Not Acknowledge) signal NAK is sent to determine whether or not the other device that sent the data has received the data. The ACK signal ACK and the NACK signal NAK are generally treated as data to be transmitted, that is, one information. For this reason, the number of registers for storing data to be transmitted is one in the past, but two are provided in the present invention and are divided into one for data and one for ACK. FIG. 7 is a configuration diagram of the register (TXDR / AKR) 28.

バッファ回路15から8ビットのデータがデータ用レジス
タ28-1とACK/NAK用レジスタ28-2に分けられて格納され
る。後述するがこのデータ用レジスタ(TXDR)28-1とAC
K/NAK用レジスタ28-2はバッファ回路15を介して別々に
そのデータが格納される。送信制御部33は、これらのレ
ジスタと選択する選択信号をレジスタ(TXDR/AKR)28に
加えており、この選択信号は第7図におけるセレクタ28
-3に入力する。セレクタ28-3はデータ用レジスタ28-1の
データ或いはACK/NAK用レジスタ28-2の一方をこの選択
信号で選択する回路であり、この選択されたデータがTX
シフトレジスタ25に加わる。従来においては前述したよ
うに1個のレジスタのデータを送出するように構成され
ているが、第7図の構成のように、送出すべき情報であ
るデータは2個のレジスタに格納され、必要な時にその
レジスタを選択して送出している。このレジスタの選択
は情報を送出するのか或いはACK信号等を送出するのか
を目的によって行っており、マイクロプロセッサ11から
レジスタへの書き込みは、これらの用途によって書き込
みの変換のみでなく、データやACK信号の手順を検出す
ることなく、プログラムを作成することができる。
The 8-bit data from the buffer circuit 15 is divided and stored in the data register 28-1 and the ACK / NAK register 28-2. As will be described later, this data register (TXDR) 28-1 and AC
The K / NAK register 28-2 stores the data separately via the buffer circuit 15. The transmission control unit 33 adds a selection signal for selecting these registers to the register (TXDR / AKR) 28, and this selection signal is the selector 28 in FIG.
Enter in -3. The selector 28-3 is a circuit that selects one of the data in the data register 28-1 or the ACK / NAK register 28-2 with this selection signal.
Join the shift register 25. Conventionally, as described above, the data of one register is transmitted, but as in the configuration of FIG. 7, the data which is the information to be transmitted is stored in two registers and is required. At that time, the register is selected and transmitted. The selection of this register is made for the purpose of sending information or sending an ACK signal, and writing from the microprocessor 11 to the register is not limited to conversion of writing depending on these applications, but also data and ACK signals. The program can be created without detecting the procedure.

第3図の本発明の実施例においては、8個のレジスタを
有し、これらのレジスタはバッファ回路15を介してリー
ド或いはライトされる。書き込みはレジスタCCR、TXDR/
AKRであり、バッファ回路15からの指示すなわちマイク
ロプロセッサ11からの書き込み指示によってそれぞれ目
的のレジスタに書き込まれる。読み出しはレジスタRXD
R、CCR、STR1、STR2、MDR、MLCであり、アドレス信号A0
〜A2の値によりデータセレクト回路34はそれぞれ出力を
選択してバッファ回路15を介してマイクロプロセッサ11
のデータ(DATA)バスに出力する。
The embodiment of the present invention shown in FIG. 3 has eight registers, which are read or written via the buffer circuit 15. Write to registers CCR, TXDR /
AKR, which is written in a target register according to an instruction from the buffer circuit 15, that is, a write instruction from the microprocessor 11. Read from register RXD
R, CCR, STR1, STR2, MDR, MLC, address signal A 0
The data select circuit 34 selects the output according to the values of A 2 to A 2 and the microprocessor 11 is selected via the buffer circuit 15.
Output to the data bus of (DATA).

送信データレジスタTXDRは書き込み専用の8ビットレジ
スタである。バス上に送出するデータはACK/NAK以外は
マイクロプロセッサ11によってこのレジスタに書き込
む。また、このレジスタにデータを書き込むことにより
一連のデータ送信動作を開始する。受信データレジスタ
RXDRはホームバスデータ読み込み専用の8ビットレジス
タである。レジスタAKR(ACK/NAK送信レジスタ)はACK/
NAK送信用の書き込み専用の8ビットレジスタである。
このレジスタに値が書き込まれると、次のACK/NAK送信
可能期間にデータを送出する。ただし、同報、短電文割
り込み、エラー(データ受信エラー、ライトロストデー
タエラー)で送信が不要な場合は送信しない。また、次
のパケットにまたがって送信することはない。コントロ
ールコードレジスタCCRは制御用の読み出し、書き込み
が可能なフラグレジスタである。上位4ビットを0H(16
進)にすることによりモード1が、6Hにすることにより
モード2がセレクトされる。また、リセットを解除する
時は、RESフラグ以外のCCRのフラグは無視される。
The transmission data register TXDR is a write-only 8-bit register. Data sent to the bus is written in this register by the microprocessor 11 except for ACK / NAK. A series of data transmission operations are started by writing data in this register. Receive data register
RXDR is an 8-bit register dedicated to reading home bus data. Register AKR (ACK / NAK transmission register) is ACK /
This is a write-only 8-bit register for NAK transmission.
When a value is written to this register, data will be sent during the next ACK / NAK transmittable period. However, if transmission is unnecessary due to broadcast, short message interrupt, or error (data reception error, write lost data error), do not transmit. Moreover, it is not transmitted over the next packet. The control code register CCR is a readable / writable flag register for control. The upper 4 bits are 0H (16
Mode 1 is selected by setting it to "advance" and mode 2 is selected by setting it to 6H. When releasing the reset, the flags of CCR other than the RES flag are ignored.

第8図はモード1におけるレジスタCCRのビット構成図
である。ビットbit7〜bit4がモード1を指示する領域で
あり、0Hをこの領域に書くことによってモード1とな
る。そして、ビットbit3は短電文割り込みフラグSMIで
あり、このフラグが“1"の時に、短電文割り込みが可能
な区間(長電文でMDR=8)で短電文割り込みを発生す
る。また、自分が送信中の長電文に割り込みをかけるこ
ともでき、短電文割り込み動作は送信とは全く関係なく
動作させることができる。尚、このフラグは状態カウン
タ(MDR)が“1"になった時か同期回復期間中で状態カ
ウンタ(MDR)が“2"になった時に“0"になる。
FIG. 8 is a bit configuration diagram of the register CCR in mode 1. Bits bit7 to bit4 are areas for instructing mode 1, and writing 0H in this area sets mode 1. Bit bit3 is a short message interrupt flag SMI, and when this flag is "1", a short message interrupt is generated in a section in which a short message interrupt is possible (long message MDR = 8). In addition, it is possible to interrupt the long telegram that is being transmitted, and the short telegram interrupt operation can be operated regardless of the transmission. This flag becomes "0" when the status counter (MDR) becomes "1" or when the status counter (MDR) becomes "2" during the synchronization recovery period.

ビットbit2はリセットフラグRESであり、このフラグが
“0"になると、全ての状態を初期状態に戻し動作を停止
する。送信中にこのフラグが“0"になると、その時点で
送信を打ち切り、後にビットが残っていた場合にはそれ
らのビットは送信しない。また、このフラグは“1"にな
ると動作を開始する(同期回復期間になる)。リセット
端子によりリセットがかかった場合や電源投入時から本
ICを動作を開始させるにはマイクロプロセッサ11から
“1"をセットする必要がある。
Bit bit2 is a reset flag RES. When this flag becomes "0", all the states are returned to the initial state and the operation is stopped. If this flag becomes "0" during transmission, the transmission is aborted at that point, and if there are bits left behind, those bits are not transmitted. Further, when this flag becomes "1", the operation is started (in the synchronization recovery period). When the reset terminal is reset or when the power is turned on
To start the operation of the IC, it is necessary to set "1" from the microprocessor 11.

ビットbit1は受信割り込みマスクフラグRIMであり、こ
のフラグが“0"の時には、1パケット内において受信、
短電文割り込み、データ受信エラー、リードロストデー
タ、フレーミングエラー、パリティエラー、ACK/NAKエ
ラーの割り込み発生を停止する。但し、このフラグは▲
▼端子の出力をマスクするのみでINTRフラグその
ものは通常に動作する。また、“1"の時は通常に割り込
みを発生する。このフラグは状態カウンタ(MDR)が
“1"になった時か、バス上にデータが無い期間が10ms+
22bit続いて同期回復期間が解除になった時に“1"にな
る。ただし、同期回復期間中でもこのフラグに“1"を書
き込むことにより割り込みを発生させることができる。
Bit bit1 is the reception interrupt mask flag RIM, and when this flag is "0", it is received in one packet,
Stops short message interrupt, data reception error, read lost data, framing error, parity error, and ACK / NAK error interrupts. However, this flag is ▲
▼ The INTR flag itself operates normally only by masking the output of the pin. When it is "1", an interrupt is normally generated. This flag is 10ms + when the status counter (MDR) becomes "1" or when there is no data on the bus.
It becomes "1" when the sync recovery period is canceled for 22 bits. However, an interrupt can be generated by writing "1" to this flag even during the synchronization recovery period.

ビットbit0は送信割り込みマスクフラグTIMであり、こ
のフラグが“0"の時には、1パケット内において送信、
競合負け、ライトロストデータの割り込みを発生させな
い。ただし、このフラグは▲▼端子の出力をマス
クするのみでINTRフラグは通常に動作する。また、“1"
の時は通常に割り込みを発生させる。このフラグは状態
カウンタ(MDR)が“1"になった時かバス上にデータが
無い期間が10ms+22bit続いて同期回復期間が解除にな
った時に“1"になる。ただし、同期回復期間中でもこの
フラグに“1"を書き込むことにより割り込みを発生させ
ることができる。
Bit bit0 is a transmission interrupt mask flag TIM. When this flag is "0", transmission within one packet,
Do not lose contention and generate write lost data interrupt. However, this flag only masks the output of the ▲ ▼ pin, and the INTR flag operates normally. Also, "1"
When, the interrupt is generated normally. This flag becomes "1" when the status counter (MDR) becomes "1" or when there is no data on the bus for 10 ms + 22 bits and the synchronization recovery period is released. However, an interrupt can be generated by writing "1" to this flag even during the synchronization recovery period.

第9図はモード2におけるレジスタCCRのビット構成図
である。ビットbit7〜bit4が0Hの時にモード2になる。
このモードにおいて、ビットbit1は同報WBRCであり、こ
のフラグを“1"にセットした場合、以後、現在送受信中
のパケットを同報パケットとして動作する。“0"をセッ
トした場合は、逆に個別パケットとして動作する。
FIG. 9 is a bit configuration diagram of the register CCR in mode 2. Mode 2 is set when bits 7 to 4 are 0H.
In this mode, bit bit1 is a broadcast WBRC, and when this flag is set to "1", the packet currently being transmitted / received thereafter operates as a broadcast packet. If "0" is set, it operates as an individual packet.

ビットbit0は長電文フラグLMESであり、このフラグを
“1"にセットした場合、以後現在送受信中のパケットを
長電文パケットとして動作する。“0"をセットした場合
は、逆に短電文パケットとして動作する。
Bit bit0 is a long message text flag LMES. When this flag is set to "1", the packet currently being transmitted / received thereafter operates as a long message packet. If "0" is set, it operates as a short message packet on the contrary.

ステータスレジスタ(STR1)31はバス上及びパケット等
の状態を示す読み込み専用のフラグレジスタである。第
10図はステータスレジスタ(STR1)31のビット構成図で
ある。
The status register (STR1) 31 is a read-only flag register that indicates the status of the bus and packets. First
FIG. 10 is a bit configuration diagram of the status register (STR1) 31.

ビットbit7は割込フラグINTRである。このフラグは▲
▼端子と同様な信号であり、データの入出力等の割
り込みが必要な場合に“1"になり、CPUにすなわちマイ
クロプロセッサ11に割り込みをかける。マイクロプロセ
ッサ11がステータスレジスタ(STR1)31を読むことによ
って▲▼端子は“H"に、またこのフラグは“0"に
なる。このフラグは状態カウンタ(MDR)が“1"になっ
た時か同期回復期間中に状態カウンタ(MDR)が“2"に
なった時に“1"になる。
Bit bit7 is the interrupt flag INTR. This flag is ▲
The signal is the same as that of the ▼ terminal, and becomes "1" when an interrupt such as data input / output is necessary, and interrupts the CPU, that is, the microprocessor 11. When the microprocessor 11 reads the status register (STR1) 31, the ▲ ▼ terminal becomes "H" and this flag becomes "0". This flag becomes "1" when the status counter (MDR) becomes "1" or when the status counter (MDR) becomes "2" during the synchronization recovery period.

ビットbit6は被短電文割込フラグRSMIである。短電文割
り込みを検出した場合(長電文のデータ部分でストップ
ビットが“0"になった時)に“1"となる。また、このフ
ラグは状態カウンタ(MDR)が“1"になった時か同期回
復期間中で状態カウンタ(MDR)が“2"になった時に
“0"になる。長電文の判断は「優先コード」でおこな
い、このフラグが“1"になった時(短電文割り込みが発
生した時)には、FE(フレーミングエラー)フラグはセ
ットされない。
Bit bit6 is a short message interrupt flag RSMI. It becomes "1" when a short message interrupt is detected (when the stop bit becomes "0" in the data part of the long message). Further, this flag becomes "0" when the state counter (MDR) becomes "1" or when the state counter (MDR) becomes "2" during the synchronization recovery period. The judgment of the long message is performed by the "priority code", and when this flag becomes "1" (when a short message interrupt occurs), the FE (framing error) flag is not set.

ビットbit5は競合負けフラグCDである。競合負けについ
ては後述するが、このフラグは「優先コード」と「自己
アドレス」において、送信データと受信データが異なる
場合「競合負け」とし、このフラグが“1"になる。よっ
て、パリティビット及びストップビットが異なる場合で
も「競合負け」となる。
Bit bit5 is the competition loss flag CD. Although the competitive loss will be described later, if the transmitted data and the received data are different in the "priority code" and the "self address", this flag is "competitive loss", and this flag is "1". Therefore, even if the parity bit and the stop bit are different, the competition will be lost.

ビットbit4は送信中フラグTXであり、データ送信時に
“1"になる。また、このフラグは状態カウンタ(MDR)
が“1"になった時か同期回復期間中で状態カウンタ(MD
R)が“2"になった時に、“0"になる。また、競合負け
(CDフラグセット時)、短電文割り込み時(短電文割り
込み発生後MDRが0→1の部分)にも“0"になる。ただ
し、データ受信後のACK/NAK送信時では“1"にはならな
い(初期値:0)。
Bit bit4 is a transmission flag TX and is set to "1" at the time of data transmission. Also, this flag is a status counter (MDR).
Becomes "1" or during the synchronization recovery period, the status counter (MD
When R) becomes "2", it becomes "0". Also, it is set to "0" when the contention is lost (when the CD flag is set) and when the short message interrupt (MDR is 0 → 1 after the short message interrupt occurs). However, it is not set to "1" at ACK / NAK transmission after data reception (initial value: 0).

ビットbit3はエラーフラグERRであり、ステータスレジ
スタ(STR2)29のエラーフラグ(RDE、WLD、RLD、FE、P
E、AKE)のどれかが“1"になった時にこのフラグは“1"
になる。このフラグはSTR2のエラーフラグのORをとった
ものである。また、ステータスレジスタ(STR2)29を読
むか状態カウンタ(MDR)が“1"になった時か同期回復
期間中で状態カウンタ(MDR)が“2"になった時に“0"
になる。
Bit bit3 is the error flag ERR and the error flag (RDE, WLD, RLD, FE, P of the status register (STR2) 29.
This flag is set to "1" when any of (E, AKE) becomes "1".
become. This flag is the OR of the error flags of STR2. Also, it reads "0" when the status register (STR2) 29 is read or when the status counter (MDR) becomes "1" or when the status counter (MDR) becomes "2" during the synchronization recovery period.
become.

ビットbit2は同報フラグBRCである。このフラグが“1"
の時は受信中の電文が「同報」パケットであることを示
しており、“0"の時は「個別」パケットを示している。
このフラグは状態カウンタ(MDR)が“4"になった時に
優先コードのbit6の値がセットされる。また、状態カウ
ンタ(MDR)が“1"になった時か同期回復期間中で状態
カウンタ(MDR)が“2"になった時に“0"になる。
Bit bit2 is a broadcast flag BRC. This flag is "1"
When it is, it indicates that the telegram being received is a "broadcast" packet, and when it is "0", it indicates an "individual" packet.
This flag is set to the value of bit 6 of the priority code when the status counter (MDR) becomes "4". Also, it becomes "0" when the status counter (MDR) becomes "1" or when the status counter (MDR) becomes "2" during the synchronization recovery period.

ビットbit1はデータ受信完了フラグRXRDYである。マイ
クロプロセッサ11にデータを渡すことができる状態の時
に“1"になる。マイクロプロセッサ11がデータを受け取
ると“0"になり、また、状態カウンタ(MDR)が“1"に
なった時か同期回復期間中で状態カウンタ(MDR)が
“2"になった時に“0"になる。
Bit bit1 is a data reception completion flag RXRDY. It becomes "1" when data can be passed to the microprocessor 11. It becomes "0" when the microprocessor 11 receives the data, and "0" when the status counter (MDR) becomes "1" or when the status counter (MDR) becomes "2" during the synchronization recovery period. "become.

ビットbit0は送信完了フラグTXRDYである。マイクロプ
ロセッサ11からデータを受け取ることができる状態の時
に“1"になり、マイクロプロセッサ11からデータを受け
取ると“0"になる(初期値:1)。
Bit bit0 is a transmission completion flag TXRDY. It becomes "1" when data can be received from the microprocessor 11, and becomes "0" when data is received from the microprocessor 11 (initial value: 1).

ステータスレジスタ(STR2)29はバス上及びパケットの
エラー等を示す読み込み専用のフラグレジスタである。
第11図はステータスレジスタ(STR2)29のビット構成図
である。ビットbit7〜bit2まではエラーフラグで、エラ
ー発生によりセットされる。
The status register (STR2) 29 is a read-only flag register that indicates errors on the bus and packets.
FIG. 11 is a bit configuration diagram of the status register (STR2) 29. Bits bit7 to bit2 are error flags and are set when an error occurs.

RDE、WLDはこのレジスタを読むか同期回復期間中で状態
カウンタ(MDR)が“2"になった時に“0"となり、ま
た、RLD、FE、PE、AKEはこのレジスタを読むか状態カウ
ンタ(MDR)が“1"になった時か同期回復期間中で状態
カウンタ(MDR)が“2"になった時に“0"になる。
RDE and WLD read this register or become "0" when the status counter (MDR) becomes "2" during the synchronization recovery period, and RLD, FE, PE and AKE read this register or read status counter (MDR). It becomes "0" when MDR) becomes "1" or when the status counter (MDR) becomes "2" during the synchronization recovery period.

ビットbit7はデータ受信エラーフラグRDEであり、本発
明の実施例においては、受信中は1キャラクタ毎にスタ
ートビットで同期をとる。この時、スタートビットが正
常に検出できなかった場合、このフラグが“1"になる。
また、電文長コードより多くデータが受信された時にも
“1"になる。ただし、ACK/NAK受信のエラーではこのフ
ラグは動作しない。尚、このフラグが“1"になると同期
回復期間に入る。
Bit bit7 is a data reception error flag RDE, and in the embodiment of the present invention, synchronization is achieved with a start bit for each character during reception. At this time, if the start bit cannot be detected normally, this flag becomes "1".
It also becomes "1" when more data is received than the message length code. However, this flag does not work for ACK / NAK reception errors. When this flag becomes "1", the synchronization recovery period starts.

ビットbit6はライトロストデータフラグWLDであり、次
のキャラクタの送信開始までにキャラクタデータが、送
信データレジスタ(TXDR)に書き込まれていなかった場
合、このフラグが“1"になる。このエラー発生時には、
送信は停止して同期回復期間に入る。
Bit bit6 is a write lost data flag WLD. If character data has not been written in the transmission data register (TXDR) by the start of transmission of the next character, this flag becomes "1". When this error occurs,
The transmission stops and the synchronization recovery period starts.

ビットbit5はリードロストデータフラグRLDであり、受
信データレジスタ(RXDR)にデータが存在するときに、
さらに次のデータがバスから入力された場合(この時、
RXDRの値は新しいデータに変わる)に“1"になる。ただ
し、RXDRを読まずにステータスレジスタ(STR2)29を読
んで“0"にした場合には、エラーの要因がクリアされて
いないので次の割り込み発生時に再びこのフラグが立
つ。エラーの要因はRXDRを読むことによりクリアする
(初期値:0)。
Bit bit5 is the read lost data flag RLD, and when there is data in the receive data register (RXDR),
When the next data is input from the bus (at this time,
RXDR value changes to new data) becomes "1". However, if the status register (STR2) 29 is read and set to "0" without reading RXDR, the cause of the error has not been cleared and this flag is set again when the next interrupt occurs. The cause of the error is cleared by reading RXDR (initial value: 0).

ビットbit4はフレーミング・エラーフラグFEであり、長
電文のデータ部分以外でストップビットが“1"になった
場合“1"になる。
Bit bit4 is a framing error flag FE, which becomes "1" when the stop bit becomes "1" other than the data part of the long telegram.

ビットbit3はパリティ・エラーフラグPEであり、前述し
たパリティチェック回路24がパリティエラーを検出する
と“1"となる。本発明の実施例においては、パリティは
偶数パリティである。
Bit bit3 is a parity error flag PE, which becomes "1" when the above-mentioned parity check circuit 24 detects a parity error. In the embodiment of the present invention, the parity is even parity.

ビットbit2はACK/NAKエラーフラグAKEであり、ACK/NAK
のスタートビットが±13μsの範囲内に検出できなかっ
た場合“1"となる。
Bit bit2 is ACK / NAK error flag AKE, ACK / NAK
When the start bit of is not detected within the range of ± 13μs, it becomes "1".

ビットbit0は同期回復期間フラグDREであり、リセット
直後またはデータ受信エラー(RDE)、ライトロストデ
ータエラー(WLD)が発生した時にこのフラグが“1"に
なり同期回復期間になる。同期回復期間が終わるとこの
フラグは“0"になり通常モードとなる。
Bit bit0 is a synchronization recovery period flag DRE. This flag becomes "1" immediately after reset or when a data reception error (RDE) or a write lost data error (WLD) occurs, and the synchronization recovery period starts. When the synchronization recovery period ends, this flag becomes "0" and the normal mode is entered.

レジスタ19(状態カウンタ)MDRは受信中のパケットの
バス上の状態を示す。0(00H)〜11(0BH)までの値を
とる読み込み専用のレジスタである。本発明の実施例に
おいては、複数のコードより成るパケット単位で情報で
あるデータを送受信しており、状態カウンタMDRはこれ
らのコードの送受信の状態をも指示している。第12図〜
第15図は状態カウンタの状態説明図である。各図はINTR
フラグが立った時点での状態カウンタの値とバスデータ
の状態を示している。スタートビットの間は前の状態カ
ウンタの値が続いている。
Register 19 (status counter) MDR indicates the status of the packet being received on the bus. This is a read-only register that takes values from 0 (00H) to 11 (0BH). In the embodiment of the present invention, information data is transmitted / received in units of packets including a plurality of codes, and the state counter MDR also indicates the transmission / reception state of these codes. Fig. 12 ~
FIG. 15 is an explanatory diagram of states of the state counter. Each figure is INTR
It shows the value of the status counter and the status of the bus data when the flag is raised. The value of the previous state counter continues during the start bit.

状態カウンタ、すなわちレジスタ19にはビットカウンタ
35、エッジ検出回路17、休止カウンタ18、被短電文割込
検出回路22が接続している。ビットカウンタ35は図示し
ないがサンプリング回路20やRXシフトレジスタ23からの
信号が加わっており、現在受信しているビット位置を求
めている。このビットカウンタ35からの受信データのビ
ット検出信号によって、現在どの状態にあるかを求めて
いる。第16図は状態カウンタ値とその状態図表、第17図
は状態遷移図である。状態カウンタ値が0の時すなわち
状態S0はリセット解除やバス上にデータが存在したり、
その後の22bitや44bit期間バス空き検出期間である。そ
の状態S0において、データが受信されなくなってから10
msec-22bit分の時間−‐208μsecが休止期間(状態S1)
であり、この期間後に状態S2となる。
The status counter, or bit counter in register 19
35, the edge detection circuit 17, the pause counter 18, and the short telegram interrupt detection circuit 22 are connected. Although not shown, the bit counter 35 is added with signals from the sampling circuit 20 and the RX shift register 23 to obtain the bit position currently received. The bit detection signal of the received data from the bit counter 35 is used to determine the current state. FIG. 16 is a state counter value and its state chart, and FIG. 17 is a state transition diagram. When the state counter value is 0, that is, the state S0 is reset release, data exists on the bus,
It is the bus availability detection period for the subsequent 22-bit and 44-bit periods. In that state S0, 10
msec-22-bit time-208 μsec is a rest period (state S1)
Then, after this period, the state becomes the state S2.

休止カウンタ18にはビットカウンタ35、エッジ検出回路
17、パケット状態レジスタ39のそれぞれの出力が加わっ
ており、これらの出力から休止カウンタ18は休止時間を
求めている。
The pause counter 18 includes a bit counter 35 and an edge detection circuit.
17, the output of each of the packet status registers 39 is added, and the pause counter 18 obtains the pause time from these outputs.

休止時間の前半の状態カウンタ(MDR)19が“0"の部分
では、バス上にデータがあっても、パケットとは認めな
い。データの無い時間が通常22bit、同報の場合は44bit
分続くと次の状態に変化する。これは、「電文長コー
ド」と実際のデータ長が一致していないようなパケッ
ト、またはリセット直後の同期の調整の為である。
In the first half of the pause time, when the state counter (MDR) 19 is "0", even if there is data on the bus, it is not recognized as a packet. Normally 22 bits when there is no data, 44 bits when broadcasting
If it continues for a minute, it changes to the next state. This is because the packet in which the "telegram length code" does not match the actual data length, or the synchronization adjustment immediately after resetting.

送信の時は休止時間が終わってから送信を始める。但
し、競合監視期間中に他の装置が送信を開始した場合に
は、それに合わせて送信する。
At the time of transmission, the transmission is started after the rest time is over. However, when another device starts transmission during the contention monitoring period, the transmission is performed accordingly.

状態カウンタ19が“0"の部分でデータが入って来た場合
にはデータ受信エラーとなり同期回復期間になる。その
後、状態カウンタ19は“2"になる。
When the state counter 19 receives data at "0", a data reception error occurs and the synchronization recovery period starts. After that, the state counter 19 becomes "2".

状態カウンタ19が“2"である時にホームバスHBから送信
要求が加わった時には状態S2′となる。尚、この時には
状態カウンタ19の値は変化しない。状態S2は競合監視期
間でありまたデータ入力待ち状態である。バス上にデー
タが存在する時には、状態S3、S4、S5、S6、S7を順次通
過すなわち状態カウンタ19の値が順次3〜7と進み、状
態S8となる。
When a transmission request is added from the home bus HB when the state counter 19 is "2", the state becomes S2 '. At this time, the value of the state counter 19 does not change. State S2 is a contention monitoring period and is in a data input waiting state. When data is present on the bus, the states S3, S4, S5, S6, and S7 are sequentially passed, that is, the value of the state counter 19 is sequentially advanced to 3 to 7, and the state is S8.

状態S3、S4、S5、S6、S7はそれぞれパケットの優先コー
ド、自己アドレスコード、相手アドレスコード、制御コ
ード、電文長コードに対応した優先コード期間、自己ア
ドレス期間、相手アドレス期間、制御コード期間、電文
長コード期間である。状態S2〜S8はデータの受信を行う
状態であり、相手アドレス期間において、自己のアドレ
スを受信したときには、受信となる。
The states S3, S4, S5, S6, and S7 are the priority code, self address code, partner address code, control code, priority code period corresponding to the message length code, self address period, partner address period, control code period, respectively. It is a message length code period. The states S2 to S8 are states in which data is received, and when the self address is received in the partner address period, the data is received.

状態8はデータ期間である。この状態においてデータす
なわち情報中に短電文割り込みが存在する時状態カウン
タ19は0となる。すなわち、状態S0となる。
State 8 is a data period. In this state, the state counter 19 becomes 0 when there is a short message interrupt in the data, that is, the information. That is, the state becomes S0.

被短電文割込検出回路22は第30図に示すように状態カウ
ンタ19の状態S8の出力、受信データ▲▼ならびに
ビットカウンタ35のストップビット信号検出の出力が加
わっており、AND回路ANDからは、状態カウンタ19の値が
8でストップビットの位置でさらにその時の受信データ
が“0"(反転しているので“1"となる)の時に“1"が出
力され、ステータスレジスタ(STR1)31に加わる。これ
によって被短電文割り込みが検出できる。
As shown in FIG. 30, the short message interrupt detection circuit 22 is added with the output of the state S8 of the state counter 19, the received data ▲ ▼ and the output of the stop bit signal detection of the bit counter 35. , If the value of the status counter 19 is 8 and the received data at that time is “0” (it becomes “1” because it is inverted) at the stop bit position, “1” is output and the status register (STR1) 31 Join in. As a result, the short message interruption can be detected.

ホームバスHBシステムにおいては、ホームバスに接続さ
れた装置から短電文の割り込みを発生することが可能で
ある。短電文割り込みはホームバスシステムにおいては
ストップビットSP中を割り込む装置が“0"が出力すなわ
ちパルスを発生することによって行うことができる。こ
の短電文の割り込みを検出するのが、被短電文割込検出
回路22である。すなわち、被短電文割込検出回路22にお
いて割り込みを検出すると、その検出信号が加わり、状
態カウンタ19をリセットし、0(状態S0)とする。ま
た、この時には、送信制御部33に割込検出信号を出力
し、以後の送信制御を停止させる。また、同時にステー
タスレジスタ(STR1)31にも、被短電文割込検出信号を
加え、ビット6の被短電文割込フラグRSMIをオン“1"と
する。
In the home bus HB system, it is possible to generate a short telegram interrupt from a device connected to the home bus. In the home bus system, the short telegram interrupt can be performed when the device that interrupts the stop bit SP outputs "0", that is, generates a pulse. The short message interruption detection circuit 22 detects the interruption of this short message. That is, when the short telegram interrupt detection circuit 22 detects an interrupt, the detection signal is added and the state counter 19 is reset to 0 (state S0). Further, at this time, an interrupt detection signal is output to the transmission control unit 33 to stop the subsequent transmission control. At the same time, the short message telegram interrupt detection signal is also applied to the status register (STR1) 31 to turn on the bit 6 short message telegram interrupt flag RSMI.

データ期間(受信であるならばデータの受信)が終了す
ると状態S9に移動する。状態9はチェックコード期間で
あり、チェックコードを受信した後、状態S10となり、
ダミーコード期間となる。尚、同報時である時には状態
0すなわち状態カウンタ値を0とする。ダミーコードの
後はACK/NAK期間であり、この期間でACK/NAK信号を送出
する。そしてその後状態S0となる。
When the data period (reception of data if reception) ends, the state moves to state S9. State 9 is the check code period, and after receiving the check code, the state becomes S10,
It is a dummy code period. In addition, at the time of broadcasting, the state 0, that is, the state counter value is set to 0. After the dummy code, there is an ACK / NAK period, and the ACK / NAK signal is sent during this period. Then, the state becomes S0.

一方、状態S2において送信要求ありの時には、前述した
ように状態S2′(状態カウンタの値は変化せず)とな
り、その後、状態S3′(優先コード期間)となる。
On the other hand, when there is a transmission request in the state S2, the state becomes S2 '(the value of the state counter does not change) as described above, and then the state becomes S3' (priority code period).

複数の装置に同時に送信要求が発生し、同時にデータ等
を送出すると競合状態となる。ホームバスHBにおいて、
この競合状態となった時に各装置における優先度を設
け、競合した時にはその競合した装置内で最も優先度の
高い装置を優先するように構成している。優先度は優先
コードによって決定される。優先度はD0〜D7の合計8ビ
ットより成り“00000000"が最も高く、“11111111"が最
も低い。優先度が高いものと低いものとが同時に優先コ
ード期間内に優先コードを送出すると、バス上に同時に
各ビットが出力される。同時に各ビットが出力される
が、前述したようにホームバスにおいては、“0"でパル
スを出力、“1"でパルスを出力しないようにしているた
め、“0"を出力した装置が強制的にホームバスのビット
を“0"としてしまう。一方、優先レベルの低い装置は
“0"でなく“1"を送出しているので、バスライン上のデ
ータと異なることとなる。このデータの変化を検出する
のが競合負け検出回路21である。TXシフトレジスタ25の
シリアル出力SOと、ホームバスドライバ・レシーバ13の
受信信号▲▼が競合負け検出回路21に加わってい
る。競合負け検出回路21はこの2個の信号すなわち受信
信号▲▼とシリアル出力SOとを比較し、SOと受信
信号▲▼とが一致している時には優先度が高いか
或いは競合していない場合であり、競合負けとはならな
い。しかし他の装置の優先コードが高い場合には、その
優先コードの高い方のコードが受信信号▲▼とし
て加わるので、競合負け検出回路21では不一致を検出
し、優先コードの高いレベルが送出されていることを検
出して、送信制御部33に不一致信号を加える。これによ
って送信制御部33は現在送出している優先コードの送出
を停止する。また同時にステータスレジスタ(STR1)31
に競合負けを通知する。すなわちステータスレジスタ
(STR1)31のビット5の競合負けフラグCDをオン
(“1")とする。第18図は競合の説明図である。他の装
置(IFU)から高いレベルの優先コードが送出され、本
装置(IFU)から低いレベルの優先コードを出力する
と、コードのD0において、本装置は“0"を出力していな
いので、競合負けとなる。この競合負けによって、本装
置のINTRフラグが次のスタートビットでさらにオンとな
る。また、送信フラグは競合負け時点以後の次のスター
トビットでオフとなる。また、前述のCDフラグは次のス
タートビットでオンとなる。例えば割り込みを解除して
いる状態であるならば、マイクロプロセッサ11に割り込
み▲▼が加わる。
When transmission requests are simultaneously issued to a plurality of devices and data and the like are sent at the same time, a conflict occurs. On the home bus HB,
When the contention state occurs, the priority is set for each device, and when the contention occurs, the device having the highest priority among the competing devices is prioritized. The priority is determined by the priority code. The priority consists of a total of 8 bits of D0 to D7, "00000000" is the highest and "11111111" is the lowest. When high priority and low priority send the priority code at the same time within the priority code period, each bit is output on the bus at the same time. Although each bit is output at the same time, as described above, in the home bus, the pulse is output at "0" and the pulse is not output at "1", so the device that outputs "0" is forced. Set the home bus bit to "0". On the other hand, a device with a low priority level sends out "1" instead of "0", which is different from the data on the bus line. The competition loss detection circuit 21 detects this change in data. The serial output SO of the TX shift register 25 and the reception signal ▲ ▼ of the home bus driver / receiver 13 are added to the competition loss detection circuit 21. The competition loss detection circuit 21 compares these two signals, that is, the reception signal ▲ ▼ with the serial output SO, and when SO and the reception signal ▲ ▼ match, the priority is high or there is no competition. Yes, there is no competition loss. However, when the priority code of the other device is high, the code with the higher priority code is added as the received signal ▲ ▼, so the conflict loss detection circuit 21 detects a mismatch and the high level of the priority code is transmitted. It detects that there is a discrepancy and adds a mismatch signal to the transmission control unit 33. As a result, the transmission control unit 33 stops the transmission of the priority code currently being transmitted. At the same time, the status register (STR1) 31
Notify the competitor of losing. That is, the competition loss flag CD of bit 5 of the status register (STR1) 31 is turned on ("1"). FIG. 18 is an explanatory diagram of competition. When another device (IFU) sends a high-level priority code and this device (IFU) outputs a low-level priority code, this device does not output "0" at D0 of the code. You will lose. This loss of contention causes the device's INTR flag to turn on again at the next start bit. Also, the transmission flag is turned off at the next start bit after the time when the competition is lost. Further, the above-mentioned CD flag is turned on at the next start bit. For example, if the interrupt is released, the interrupt ▲ ▼ is added to the microprocessor 11.

レジスタCCR32のフラグ情報は割込制御部36に加わり、
またステータスレジスタ(STR1)31のフラグ情報も制御
部36に加わっている。割込制御部36はこの情報が割り込
み信号▲▼とマイクロプロセッサ11にバッファ回
路15を介して出力する。
The flag information of the register CCR32 is added to the interrupt control unit 36,
The flag information of the status register (STR1) 31 is also added to the control unit 36. The interrupt control unit 36 outputs this information to the microprocessor 11 and the buffer circuit 15 via the buffer circuit 15.

第17図にもどって説明する。状態S3′において、競合負
けが発生した場合には次からの送信ができないので競合
負けとなって前述の受信状態における状態S3に移り、以
後は受信状態となる。
Returning to FIG. 17, description will be continued. In the state S3 ', if a competitive loss occurs, the next transmission cannot be performed, so that the competitive loss occurs and the state shifts to the state S3 in the receiving state described above, and then the receiving state starts.

第29図は競合負け検出回路21の論理回路図である。送信
中であり、状態カウンタ19の値が3か4である時H
(“1")の信号がアンド回路に加わる。また受信データ
▲▼と受信データSOがEOR回路に加わり、その出
力がAND回路に加わっている。送信中であって状態カウ
ンタ19が3か4でありかつ受信データと送信データが異
なった時にAND回路より競合負け信号がステータスレジ
スタ(STR1)31に加わり格納される。このような動作に
よって競合が検出される 一方、競合負けが発生しなかった場合には、状態S4′に
移り、自己アドレス期間となる。自己アドレス期間にお
ては、送信する自己のアドレス例えば第3図の回路が送
信する時には本装置の自己アドレスを送信する。自己ア
ドレス期間においても前述と同様競合負けが発生するこ
とがある。例えば同一レベルの優先コードの装置が複数
台1個のホームバスに存在した場合には、優先コード期
間においては競合しているがそれぞれの装置が競合負け
となることはない。このため、自己アドレス期間におい
て再度競合を検出しなくてはならない。1個のホームバ
ス上に2個の同一アドレスは存在しないので、この自己
アドレス検出において、完全に競合を検出することがで
きる。この競合の検出も前述した動作と同様であり、競
合負け検出回路21によってなされる。この状態S4′にお
いて競合負けが発生した時には、前述した受信状態の状
態S4となる。
FIG. 29 is a logic circuit diagram of the competition loss detection circuit 21. H during transmission and when the value of status counter 19 is 3 or 4
The (“1”) signal is applied to the AND circuit. The received data ▲ ▼ and the received data SO are added to the EOR circuit, and the output is added to the AND circuit. When the transmission is in progress, the state counter 19 is 3 or 4, and the received data and the transmitted data are different, a competing loss signal is added to the status register (STR1) 31 from the AND circuit and stored. While the competition is detected by such an operation, on the other hand, when the competition loss does not occur, the state shifts to the state S4 ', and the self-address period starts. In the self-address period, the self-address of the apparatus is transmitted when the self-address to be transmitted, for example, the circuit of FIG. 3 transmits. Even during the self-address period, the same contention loss as described above may occur. For example, if a plurality of devices having the same level of priority code are present in one home bus, they compete with each other during the priority code period, but each device does not lose the competition. Therefore, the conflict must be detected again in the self-address period. Since there are no two identical addresses on one home bus, this self-address detection can completely detect the conflict. The detection of this competition is similar to the operation described above, and is performed by the competition loss detection circuit 21. When a competition loss occurs in this state S4 ', the state S4 of the reception state described above is obtained.

一方、競合負けが検出されなかった時には、次には転送
すべき相手アドレスを送出す状態S5′すなわち相手アド
レス期間となる。そして、相手アドレスが送信終了する
と、順次制御コード期間(状態S6′)電文長コード期間
(状態S7′)でそれぞれ制御コードと電文長コードを送
る。その後にデータすなわち情報を送出する。このデー
タの送出はデータ期間(状態S8′)でなされる。データ
送出中(状態S8′)もデータ受信中(状態S8)と同様で
あり、他の装置から短電文割込みが発生することがあ
る。この短電文割込みが発生した時には、受信状態と同
様に被短電文割込検出回路22で検出し状態カウンタ19を
0とする。すなわち、この時には状態S0になる。データ
期間(状態S8′)でデータが終了した時には次にはチェ
ックコード期間(状態9′)となり、チェックコードを
送出する。そしてダミーコード期間(状態S10′)を経
て、ACK/NAK期間となり、受信装置からのACKやNAK信号
を受信し、状態S0となる。
On the other hand, when no contention loss is detected, the next state is the state S5 'in which the partner address to be transferred is sent, that is, the partner address period. When the transmission of the other party's address is completed, the control code and the message length code are sequentially sent in the control code period (state S6 ') and the message length code period (state S7'). After that, the data, that is, the information is transmitted. This data is sent during the data period (state S8 '). The data transmission (state S8 ') is the same as the data reception (state S8), and a short message interruption may occur from another device. When this short telegram interrupt occurs, the short telegram interrupt detection circuit 22 detects it as in the reception state, and the state counter 19 is set to zero. That is, at this time, the state becomes S0. When the data ends in the data period (state S8 '), the check code period (state 9') comes next and the check code is sent. Then, after the dummy code period (state S10 '), the ACK / NAK period starts, and the ACK or NAK signal from the receiving device is received, and the state becomes S0.

前述した状態カウンタ19のカウント値の変化は全てエッ
ジ検出回路17からのデータエッジ信号によってなされ
る。
All the changes in the count value of the state counter 19 described above are made by the data edge signal from the edge detection circuit 17.

尚、条件を満足しない場合には変化しないこともある。
例えばデータ期間(状態S8,S8′)においては、全デー
タが終了するか短電文割込みが発生するまで変化しな
い。また状態1の期間はタイマ38によって検出され、状
態カウンタ19にタイムオーバの信号が加わった時、状態
カウンタ19が変化する。タイマ38は送信制御部33に加わ
っており、送信制御部33はこのタイマ38からの入力する
タイムオーバの信号によって送信制御を開始する。
If the conditions are not satisfied, it may not change.
For example, in the data period (states S8, S8 '), there is no change until all the data is completed or a short message interruption occurs. Further, the period of the state 1 is detected by the timer 38, and when the time-over signal is applied to the state counter 19, the state counter 19 changes. The timer 38 is added to the transmission control unit 33, and the transmission control unit 33 starts transmission control by the time-out signal input from the timer 38.

パケット状態レジスタ39はRXシフトレジスタ23のパラレ
ル出力が加わっており、どのようなパケット状態で送受
信しているかを検出する回路であり、個別、同報、短電
文、同期回復等の状態があり、この状態が休止カウンタ
18を介して状態カウンタ19に加わり、状態カウンタ19は
この状態に対応して変化する。第12図〜第15図はそれぞ
れ個別時、同報時、同期回復期間時、ACK/NAKエラー時
の状態カウンタの動作説明図である。それぞれどの時に
も順次状態カウンタ19は0,1,2,3,4,5,6,7,8,9と変化す
る。そしてその3〜9の図でそれぞれバスデータは優先
コード、自己アドレス相手アドレス、制御コード電文長
コード、データ(情報)、チェックコードと順次変化し
ている。そして同期回復期間が個別時には10,11におい
てダミーコード期間とACK/NAK期間がある。尚、同期回
復期間は本実施例の装置が同期回復を行っている期間で
ある。この間では順次バスデータが変化し、例えばこの
バスデータは他の装置間のデータ転送である。尚、他の
装置間での転送がなく、何らデータを転送せず、バスデ
ータが変化しないこともある。一方、同報時には、チェ
ックコード期間の後は“0"となっている。これは、ACK/
NAK信号の送出が必要としないためであり、この時には
ダミーコード期間とACK/NAK期間が存在せず、9の次は
0となる。またACK/NAK信号時にエラーが発生した場
合、状態カウンタ19の10の状態から変化せず、10から直
接0に変化する。
The packet status register 39 is a circuit to which the parallel output of the RX shift register 23 is added, and is a circuit for detecting what kind of packet status is being transmitted / received, and there are individual, broadcast, short message, synchronization recovery, etc. states, This state is the sleep counter
It joins the state counter 19 via 18, and the state counter 19 changes corresponding to this state. 12 to 15 are operation explanatory diagrams of the state counter at the time of individual, broadcast, synchronization recovery period, and ACK / NAK error. The state counter 19 sequentially changes to 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 at any time. In each of FIGS. 3 to 9, the bus data sequentially changes to a priority code, a self address partner address, a control code message length code, data (information), and a check code. When the synchronization recovery period is individual, there are dummy code periods and ACK / NAK periods at 10 and 11. The synchronization recovery period is a period during which the device of this embodiment is performing synchronization recovery. During this period, the bus data changes sequentially, and this bus data is, for example, data transfer between other devices. Incidentally, there is no transfer between other devices, no data is transferred, and the bus data may not change. On the other hand, at the time of broadcasting, it is “0” after the check code period. This is ACK /
This is because it is not necessary to send the NAK signal. At this time, there is no dummy code period and ACK / NAK period, and the value after 9 is 0. When an error occurs during the ACK / NAK signal, the state of the state counter 19 does not change from 10 but directly changes from 10 to 0.

電文長カウンタ(MLC)50には、RXシフトレジスタ23の
パラレル出力が加わっており、受信状態で状態レジスタ
19が7(状態S7)の時にRXシフトレジスタ23のパラレル
出力を取込み、装置S8において1データすなわち情報を
受信するたびにディクリメントするカウンタである。例
えばマイクロプロセッサ11からこの電文長カウンタ(ML
C)50の内容を読み出すことによって、受信データがあ
といくつ受信すべきであるかがわかる。第28図はバスデ
ータと電文長カウンタ(MLC)50の動作説明図である。
電文長データでnを受信した時、電文長カウンタ(ML
C)50にnがロードされ、その後状態S9において順次デ
ータと受信するたびに−1(ディクリメント)され、こ
のコードを受信した時0となる。
The parallel output of the RX shift register 23 is added to the message length counter (MLC) 50, and the status register is displayed in the receiving state.
It is a counter that takes in the parallel output of the RX shift register 23 when 19 is 7 (state S7) and decrements every time one data, that is, information is received by the device S8. For example, this message length counter (ML
C) By reading the contents of 50, you can see how many more received data should be received. FIG. 28 is an operation explanatory diagram of the bus data and the message length counter (MLC) 50.
When n is received in the message length data, the message length counter (ML
C) 50 is loaded with n, and thereafter, in state S9, it is decremented by -1 each time data is sequentially received, and becomes 0 when this code is received.

送信動作においては、マイクロプロセッサ11が送信デー
タレジスタ(TXDR)にデータを書き込むことによってTX
RDYが下がり送信準備が完了する(第19図)。この
時、SMIフラグをセットしておけば長電文の場合には割
り込みによって順次送信することが出来る。そして、送
信が可能な状態になると自動的に送信を開始する(第19
図)。その後、TXRDYフラグ及び、INTRフラグが“1"
になり割り込みを発生してマイクロプロセッサ11に次の
送信データ(自己アドレス)を要求する(第19図)。
以後同様に送信データの書き込みを繰り返す。送信中の
データがチェックコードになると次の1キャラクタ分
(ダミーコード)送受信を停止して(第19図)ACK/NA
Kの送受信を行う。また、送信データのマイクロプロセ
ッサ11への受け渡しはデータ部の最後のキャラクタ送信
時に終わる(第19図)。また、この後にTXDRにデータ
を書き込むと次のパケットの先頭のキャラクタ(優先コ
ード)となる。
In the transmit operation, the microprocessor 11 writes data to the transmit data register (TXDR)
RDY falls and preparations for transmission are completed (Fig. 19). At this time, if the SMI flag is set, long telegrams can be transmitted sequentially by interruption. Then, when the transmission becomes possible, the transmission is automatically started (No. 19
Figure). After that, TXRDY flag and INTR flag are "1".
Then, an interrupt is generated to request the next transmission data (self address) from the microprocessor 11 (Fig. 19).
After that, writing of transmission data is repeated in the same manner. When the data being transmitted becomes a check code, transmission / reception for the next one character (dummy code) is stopped (Fig. 19) ACK / NA
Send and receive K. The delivery of the transmission data to the microprocessor 11 ends when the last character in the data section is transmitted (FIG. 19). When data is written to TXDR after this, it becomes the first character (priority code) of the next packet.

尚、送信動作と同時に受信動作も行うので「優先コー
ド」送信以降は入力による割り込みも入ることがある
(第19図)。
Since the receiving operation is performed at the same time as the transmitting operation, an interrupt due to input may occur after transmitting the "priority code" (Fig. 19).

一方、同期通信における送信動作は第20図に示すよう
に、個別の送信とはACK/NAKの受信がなくなるだけで他
は第19図と同様である。受信動作はデータが入ってくる
事によって受信動作を開始する。そして、1キャラクタ
受信後RXRDYフラグ、INTRフラグが“1"となり割り込みI
RQを発生してマイクロプロセッサ11にデータの入力を促
す。受信データは1キャラクタ受信後にマイクロプロセ
ッサ11に渡すので、先頭のキャラクタ(優先コード)を
マイクロプロセッサが受け取るのはMDR=4の時になる
(第21図)。そして、最後のデータはMDR=0の時に
受け取ることになる(第21図)。また、ACK/NAKの送
信はAKRを用いるが、受信では特別にレジスタを用意し
てなく他のデータと同様にRXDRにより行う。また、同
報、長電文の判断は第22図に示すように「優先コード」
によって行う。同報通信における受信動作は、第23図に
示すように個別の受信とはACK/NAKの送信が無くなるだ
けで、他は第21図と同様である。
On the other hand, as shown in FIG. 20, the transmission operation in the synchronous communication is the same as that in FIG. 19 except that ACK / NAK is not received separately from the individual transmission. The reception operation starts when data is received. After receiving one character, RXRDY flag and INTR flag become "1" and interrupt I
RQ is generated to prompt the microprocessor 11 to input data. Since the received data is passed to the microprocessor 11 after receiving one character, the first character (priority code) is received by the microprocessor when MDR = 4 (FIG. 21). Then, the last data will be received when MDR = 0 (Fig. 21). Also, although ACK / NAK is transmitted using AKR, no special register is prepared for reception and RXDR is used like other data. In addition, the judgment of the broadcast and long telegram is made by the "priority code" as shown in Fig. 22.
Done by. As shown in FIG. 23, the receiving operation in the broadcast communication is the same as that in FIG. 21, except that the ACK / NAK transmission is eliminated from the individual reception.

ACK/NAK送信動作はACK/NAKの出力は前述したように専用
のレジスタを設け、通常チェックコードの入力後にACK/
NAK送信レジスタ(AKR)にデータをセットする事により
行う(第21図)。また、データ送受信中であればいつ
セットしても送信する。(ただし、同報、短電文割り込
みの場合は事前にデータがセットしてあっても送信しな
い。
For ACK / NAK transmission operation, the output of ACK / NAK is provided with a dedicated register as described above, and normally ACK / NAK is output after inputting the check code.
This is done by setting data in the NAK transmission register (AKR) (Fig. 21). Also, if data is being sent or received, it will be sent no matter which time it is set. (However, in the case of broadcast and short message interruption, it is not sent even if data is set in advance.

同期回復期間の動作においてリセットフラグ(RES)を
“0"→“1"にした時(リセット解除時)及びデータ受信
エラー,ライトロストデータエラーが発生した時に同期
回復期間に入る。この時、送受信割り込みマスクフラグ
は“0"になり、マイムロプロセッサ11に対して割り込み
を発生させない。これらのフラグは同期回復期間が終わ
った時に“1"になり、割り込みを発生させるようにな
る。また、送信に関しては、同期回復期間の間は行われ
ない。
During the operation during the sync recovery period, the sync recovery period starts when the reset flag (RES) is changed from "0" to "1" (when reset is released) and when a data reception error or write lost data error occurs. At this time, the transmission / reception interrupt mask flag is set to "0", and no interrupt is generated for the mimlo processor 11. These flags become "1" at the end of the synchronization recovery period and generate an interrupt. Also, transmission is not performed during the synchronization recovery period.

また、同期回復期間では状態カウンタ(MDR)が“0"→
“2"と動作する(状態カウンタ(MDR)が“0"の時にデ
ータが入ってきた場合はデータを受信するがパケットと
は認めずデータ受信エラー(RDE)とする。状態カウン
タ(MDR)が“2"の時にデータが入ってきた場合にはデ
ータの受信をして同期回復の動作をする。)そして、
(1)同期回復期間は正常なパケット(パリティエラー
(PE)が発生していない。)を1パケット受信するか
(2)バス上にデータが無い期間が10ms+22ビット続く
ことにより終わる。しかし、(1)でパリティエラー
(PE)が発生していた場合のパケットは同期がとれてい
ないものとして処理し、同期回復期間は続き(1),
(2)の2つの条件の内どちらかが成り立つまでこの期
間がつづく。本発明の実施例においてはデータ受信エラ
ー(RDE),ライトロストデータエラー(WLD),リード
ロストデータエラー(RLD),フレーミングエラー(F
E),パリティエラー(PE),ACK/NAKエラー(AKE)の6
を検出している。フレーミングエラー(FE)、パリティ
エラー(PE)発生時はフラグを“1"にして割り込みによ
りマイクロプロセッサ11にエラーを知らせる。そして受
信動作はそのまま続ける。
Also, the status counter (MDR) is "0" →
Operates as “2” (When data comes in when the status counter (MDR) is “0”, the data is received but not recognized as a packet and a data reception error (RDE) occurs. The status counter (MDR) When data comes in at the time of "2", the data is received and the synchronization recovery operation is performed.)
(1) The synchronization recovery period ends when one packet of a normal packet (parity error (PE) is not generated) is received or (2) there is no data on the bus for 10 ms + 22 bits. However, if a parity error (PE) occurs in (1), the packet is treated as being out of synchronization, and the synchronization recovery period continues (1),
This period continues until either of the two conditions of (2) is satisfied. In the embodiment of the present invention, data reception error (RDE), write lost data error (WLD), read lost data error (RLD), framing error (F
E), parity error (PE), ACK / NAK error (AKE) 6
Is being detected. When a framing error (FE) or parity error (PE) occurs, the flag is set to "1" to notify the error to the microprocessor 11 by an interrupt. Then, the receiving operation continues as it is.

ライトロストデータエラー(WLD)、リードロストデー
タエラー(RLD)は次のデータの送受信の時にチェック
されフラグを“1"にして割り込みによりマイクロプロセ
ッサ11にエラーを知らせる。リードロストデータエラー
(RLD)の場合は受信動作はそのまま続けるがライトロ
ストデータエラー(WLD)の場合は送信動作を停止し前
述した同期回復期間に入る。
The write lost data error (WLD) and the read lost data error (RLD) are checked at the time of transmitting / receiving the next data, and the flag is set to "1" to notify the microprocessor 11 of the error by an interrupt. In the case of a read lost data error (RLD), the receiving operation continues, but in the case of a write lost data error (WLD), the transmitting operation is stopped and the above-mentioned synchronization recovery period starts.

データ受信エラー(RDE)発生時はフラグを“1"にして
割り込みをかけると同時に状態カウンタ(MDR)を“0"
にし、同期回復フラグ(DRE)を“1"にして同期回復期
間に入る。
When a data reception error (RDE) occurs, set the flag to "1" to generate an interrupt and at the same time set the status counter (MDR) to "0".
The sync recovery flag (DRE) is set to "1" to enter the sync recovery period.

ACK/NAKエラー発生時は、フラグを“1"にして割り込み
をかける。このエラーが発生すると、状態カウンタ(MD
R)は“10"→“10"→“0"と変化する。すなわちACK/NAK
が検出できなかった時はMDR=10の期間が22ビットとな
る。
When an ACK / NAK error occurs, set the flag to "1" to generate an interrupt. When this error occurs, the status counter (MD
R) changes from “10” → “10” → “0”. Ie ACK / NAK
When is not detected, the period of MDR = 10 becomes 22 bits.

いずれのエラーフラグの場合においてもステータスレジ
スタ(STR2)29を読むか状態カウンタ(MDR)が“1"に
なった時か同期回復期間中で状態カウンタ(MDR)が
“2"になった時に“0"になる。
In either case of error flag, it is read when the status register (STR2) 29 is read or when the status counter (MDR) becomes "1" or when the status counter (MDR) becomes "2" during the synchronization recovery period. It becomes 0 ".

一方、マイクロプロセッサ11への割り込みの要因として
送信データの入力、受信データの出力、短電文割り込
み、競合負け、エラーがある。
On the other hand, factors of interruption to the microprocessor 11 include input of transmission data, output of reception data, short message interruption, loss of contention, and error.

割り込み要因の検出は、TXRDYフラグ、RXRDYフラグ、被
短電文割り込みフラグ、競合負けフラグ、エラーフラグ
または、ステータスレジスタ(STR2)29により判断でき
る。また、割り込みのリセットは、いずれの要因でも割
り込みフラグを読むことによってリセットできる。
The detection of the interrupt factor can be judged by the TXRDY flag, the RXRDY flag, the short message interrupt flag, the contention loss flag, the error flag, or the status register (STR2) 29. Further, the interrupt reset can be reset by reading the interrupt flag by any factor.

第3図に示した本発明の実施例において、エッジ検出回
路17とはデータのエッジすなわちスタートビットの検出
を行う回路である。この回路はスタートビット検出範囲
やその幅を規定して、ノイズを除去しており、間違った
電文に対しデータ受信エラーを示すためのものである。
第24図はスタートビット検出回路すなわちデータエッジ
検出回路17の回路図である。この回路を機能別に分ける
と、スタートビットの位置検出範囲とスタートビットの
幅検出範囲をそれぞれ判定し、スタートビットがその範
囲内であるかを求めている。受信信号▲▼が立ち
下がり検出回路40と立ち上がり検出回路41に加わってい
る。立ち下がり検出回路40ならびに立ち上がり検出回路
41の出力はパルス幅検出カウンタ43に加わっており、パ
ルス幅検出カウンタ43は受信信号が立ち下がってから立
ち上がるまでの間カウント動作を開始し、マスタクロッ
クの数をカウントする。そしてその間のカウント数を範
囲・パルス幅比較回路42に加える。第25図はスタートビ
ット幅検出範囲の説明図である。スタートビットは立ち
下がってから52μsec+39μsec、−11.2μsecの範囲と
規定し、範囲・パルス幅比較回路42はこの範囲に入った
ものをスタートビットとする。そして、スタートビット
有効すなわちデータエッジ検出信号として出力する。ス
タートビット有効信号はスタートビット検出範囲カウン
ト44にも加わっており、スタートビットが有効となって
から、カウント動作を開始し、特定範囲のカウント値の
時その範囲を指示する信号を、範囲・パルス幅比較回路
42に加える。立ち下がり検出回路40の検出出力は、範囲
・パルス幅比較回路42へ加わっており、範囲・パルス幅
比較回路42は、この立ち下がり検出回路40からの検出信
号がスタートビット検出範囲カウンタ44から出力される
スタートビット有効範囲内指示信号で指示される範囲で
あるかを検出する。指示するならば、立ち下がり検出回
路40から立ち下がり検出した時のパルスがHとして加わ
り、またスタートビット検出範囲カウンタ44から範囲内
を表す時間の時Hとなる信号が加わるならば、範囲・パ
ルス幅比較回路42はその2個の信号のアンド論理を求
め、その結果が“H"であり、さらにパルス幅が規定値内
である時にスタートビット有効信号を出力する。前述し
たスタートビット有効範囲内とは、スタートビットが立
ち下がる位置の範囲を規定しているものであり、第26図
に示すように、スタートビットの立ち下がりが入力すべ
き位置から±13μsec間を有効としている。また、スタ
ートビットの検出は全データではなく、第27図に示すよ
うに、X1〜X9の範囲である。
In the embodiment of the present invention shown in FIG. 3, the edge detection circuit 17 is a circuit for detecting a data edge, that is, a start bit. This circuit defines the start bit detection range and its width to remove noise and indicates a data reception error for an erroneous message.
FIG. 24 is a circuit diagram of the start bit detecting circuit, that is, the data edge detecting circuit 17. If this circuit is divided by function, the position detection range of the start bit and the width detection range of the start bit are respectively determined, and it is determined whether the start bit is within the range. The received signal ▲ ▼ is added to the fall detection circuit 40 and the rise detection circuit 41. Fall detection circuit 40 and rise detection circuit
The output of 41 is added to the pulse width detection counter 43, and the pulse width detection counter 43 starts the counting operation from the fall of the received signal to the rise thereof and counts the number of master clocks. Then, the count number in the meantime is added to the range / pulse width comparison circuit 42. FIG. 25 is an explanatory diagram of the start bit width detection range. The start bit is defined as a range of 52 μsec + 39 μsec, −11.2 μsec after the fall, and the range / pulse width comparison circuit 42 sets the start bit to fall within this range. Then, the start bit is valid, that is, output as a data edge detection signal. The start bit valid signal is also added to the start bit detection range count 44.When the start bit becomes valid, the count operation is started, and when the count value of the specific range is reached, the signal indicating that range Width comparison circuit
Add to 42. The detection output of the fall detection circuit 40 is applied to the range / pulse width comparison circuit 42, and the range / pulse width comparison circuit 42 outputs the detection signal from the fall detection circuit 40 from the start bit detection range counter 44. It is detected whether the range is the range indicated by the start bit valid range indication signal. If instructed, the pulse when the fall is detected from the fall detection circuit 40 is added as H, and if the signal that becomes H at the time indicating the range is added from the start bit detection range counter 44, the range / pulse The width comparison circuit 42 calculates the AND logic of the two signals, and outputs the start bit valid signal when the result is "H" and the pulse width is within the specified value. The start bit valid range described above defines the range of the position where the start bit falls, and as shown in Fig. 26, the start bit falls within ± 13 μsec from the position where it should be input. It is valid. Further, the detection of the start bit is not all data, but is in the range of X1 to X9 as shown in FIG.

以上のスタートビット検出回路によって、ノイズを防止
したり、間違った電文に対して、データの受信エラーフ
ラグをオンとし、データの有効性を高めている。
By the above start bit detection circuit, noise is prevented and the data reception error flag is turned on for an erroneous message, thereby improving the effectiveness of the data.

〔発明の効果〕〔The invention's effect〕

以上述べたように、本発明はアクノレッジデータを送出
する時期を求め、アクノレッジデータを選択して送出す
るので、マイクロプロセッサの処理が少なく、またDMA
等の処理中でもアクノレッジデータを送出することがで
きる。また、アクノレッジバッファであるので、アクノ
レッジデータを送出する時期と同一のものであるならば
ノットアクノレッジや他の情報でも同様自動的に送出で
き、同様な効果を得る。
As described above, according to the present invention, since the time to send the acknowledge data is obtained, and the acknowledge data is selected and sent, the processing of the microprocessor is small, and the DMA
Acknowledgment data can be transmitted even during processing such as. Further, since it is an acknowledge buffer, if it is the same as the time of transmitting the acknowledge data, not acknowledge or other information can be automatically transmitted as well, and the same effect can be obtained.

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

第1図は本発明のブロック図、 第2図は本発明のシステム構成図、 第3図はバス制御回路、 第4図はデータ構成図、 第5図は▲▼、▲▼データ、 第6図は送信回路図、 第7図はレジスタ(TXDR/AKR)の構成図、 第8図はレジスタCCR(モード1)のビット構成図、 第9図はレジスタCCR(モード2)のビット構成図、 第10図はステータスレジスタSTR1のビット構成図、 第11図はステータスレジスタSTR2のビット構成図、 第12図は個別時の状態カウンタの動作説明図、 第13図は同報時の状態カウンタの動作説明図、 第14図は同期回復期間時の状態カウンタの動作説明図、 第15図はACK/NAKエラー時の状態カウンタの動作説明
図、 第16図は状態カウンタ値とその状態図表、 第17図は状態遷移図、 第18図は競合の説明図、 第19図はデータ送信動作チャート、 第20図はデータ送信動作(同報)、 第21図はデータ受信動作、 第22図は長電文、同報の条件図表、 第23図はデータ受信動作(同報)、 第24図はスタートビット検出回路図、 第25図はスタートビット幅検出範囲の説明図、 第26図はスタートビット位置検出範囲の説明図、 第27図はスタートビットの位置検出範囲の説明図、 第28図は電文長カウンタの動作説明図、 第29図は競合負けの論理回路図、 第30図は被短電文割込の論理回路図である。 1……送信バッファ、2……アクノレッジバッファ、3
……セレクタ。
1 is a block diagram of the present invention, FIG. 2 is a system configuration diagram of the present invention, FIG. 3 is a bus control circuit, FIG. 4 is a data configuration diagram, FIG. 5 is ▲ ▼, ▲ ▼ data, and 6th. Fig. 7 is a transmitter circuit diagram, Fig. 7 is a register (TXDR / AKR) configuration diagram, Fig. 8 is a register CCR (mode 1) bit configuration diagram, and Fig. 9 is a register CCR (mode 2) bit configuration diagram. FIG. 10 is a bit configuration diagram of the status register STR1, FIG. 11 is a bit configuration diagram of the status register STR2, FIG. 12 is an explanatory diagram of the operation of the status counter at the time of individual, and FIG. 13 is an operation of the status counter at the time of broadcasting. Explanatory diagram, FIG. 14 is an explanatory diagram of the operation of the state counter during the synchronization recovery period, FIG. 15 is an explanatory diagram of the operation of the state counter at the time of an ACK / NAK error, FIG. 16 is the state counter value and its state chart, and FIG. Fig. Is a state transition diagram, Fig. 18 is an explanatory diagram of competition, Fig. 19 is a data transmission operation chart, Figure 20 is data transmission operation (broadcast), Figure 21 is data reception operation, Figure 22 is long telegram, broadcast condition chart, Figure 23 is data reception operation (broadcast), Figure 24 is start Bit detection circuit diagram, Fig. 25 is an explanatory diagram of the start bit width detection range, Fig. 26 is an explanatory diagram of the start bit position detection range, Fig. 27 is an explanatory diagram of the start bit position detection range, and Fig. 28 is a telegram. FIG. 29 is a diagram illustrating the operation of the long counter, FIG. 29 is a logic circuit diagram for losing competition, and FIG. 30 is a logic circuit diagram for interrupting a short message. 1 ... Transmission buffer, 2 ... Acknowledge buffer, 3
……selector.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】バスを介してデータを送受信し、データを
受信した時には送信装置に対しアクノレッジ信号を送信
するシステムにおいて、 送信するデータを少なくとも1個記憶する送信バッファ
(1)と、 アクノレッジ信号を記憶するアクノレッジバッファ
(2)と、 前記アクノレッジ信号を送出する時期を検出した信号が
加わった時、前記送信バッファ(1)の出力の選択をア
クノレッジバッファ(2)の出力に切換えるセレクタ
(3)とより成ることを特徴とするバス制御回路。
1. In a system for transmitting / receiving data via a bus and transmitting an acknowledge signal to a transmitter when the data is received, a transmission buffer (1) for storing at least one data to be transmitted, and an acknowledge signal An acknowledge buffer (2) for storing, and a selector (3) for switching the selection of the output of the transmission buffer (1) to the output of the acknowledge buffer (2) when a signal for detecting the timing of transmitting the acknowledge signal is added. A bus control circuit comprising:
JP62280614A 1987-11-06 1987-11-06 Bus control circuit Expired - Lifetime JPH0744582B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP62280614A JPH0744582B2 (en) 1987-11-06 1987-11-06 Bus control circuit
US07/267,491 US5001705A (en) 1987-11-06 1988-11-03 Protocol control circuit for data bus system
EP19880402786 EP0315549A3 (en) 1987-11-06 1988-11-04 Protocol control circuit for data bus system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62280614A JPH0744582B2 (en) 1987-11-06 1987-11-06 Bus control circuit

Publications (2)

Publication Number Publication Date
JPH01122238A JPH01122238A (en) 1989-05-15
JPH0744582B2 true JPH0744582B2 (en) 1995-05-15

Family

ID=17627494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62280614A Expired - Lifetime JPH0744582B2 (en) 1987-11-06 1987-11-06 Bus control circuit

Country Status (1)

Country Link
JP (1) JPH0744582B2 (en)

Also Published As

Publication number Publication date
JPH01122238A (en) 1989-05-15

Similar Documents

Publication Publication Date Title
US5797085A (en) Wireless communication system for reliable communication between a group of apparatuses
US4984190A (en) Serial data transfer system
JP2503086B2 (en) Data link control method
US4597082A (en) Transceiver for multi-drop local area networks
US4750176A (en) Single-channel communication bus system and station for use in such system
US5159684A (en) Data communication interface integrated circuit with data-echoing and non-echoing communication modes
CN104811273A (en) Implement method for high speed single bus communication
JPH01152556A (en) System allowing exchange of peripheral device
JPS63296540A (en) Multiprotocol communication controller in a single integrated circuit microcontroller
US6591322B1 (en) Method and apparatus for connecting single master devices to a multimaster wired-and bus environment
WO1992010894A1 (en) Serial link data communication protocol
US5021777A (en) Mode-selectable communications system
JPH1066165A (en) Remote control system
US5378067A (en) Network interface apparatus and method for reducing conflicts through the use of times
JP2668898B2 (en) Bus control circuit
JPH0216627B2 (en)
US5001705A (en) Protocol control circuit for data bus system
JPH0744582B2 (en) Bus control circuit
US5528760A (en) Data transmission/receive system and control method using dummy data to signify transmission/reception state and to detect transmission error
JPH05216793A (en) Device and method for communication control
US5617309A (en) Configuration for data transfer with a parallel bus system
JPH02124656A (en) Synchronization recovery method in data bus system
JPH01252049A (en) Asynchronous data transmitting system
JPH0685876A (en) Communication controller
RD et al. Using the Asynchronous Serial Interface