JP2932851B2 - Asynchronous serial data transceiver - Google Patents

Asynchronous serial data transceiver

Info

Publication number
JP2932851B2
JP2932851B2 JP4232160A JP23216092A JP2932851B2 JP 2932851 B2 JP2932851 B2 JP 2932851B2 JP 4232160 A JP4232160 A JP 4232160A JP 23216092 A JP23216092 A JP 23216092A JP 2932851 B2 JP2932851 B2 JP 2932851B2
Authority
JP
Japan
Prior art keywords
serial data
start bit
reception
register
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP4232160A
Other languages
Japanese (ja)
Other versions
JPH0683730A (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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP4232160A priority Critical patent/JP2932851B2/en
Publication of JPH0683730A publication Critical patent/JPH0683730A/en
Application granted granted Critical
Publication of JP2932851B2 publication Critical patent/JP2932851B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Time-Division Multiplex Systems (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、シリアルデータ送受信
装置に関し、特に複数のチャネルの非同期式シリアルデ
ータの送受信を行う装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial data transmitting / receiving apparatus, and more particularly to an apparatus for transmitting / receiving asynchronous serial data of a plurality of channels.

【0002】[0002]

【従来の技術】従来、2チャネルの非同期式シリアルデ
ータの送受信を行おうとする場合には、独立に動作でき
る非同期式シリアルデータ送受信装置を2チャネル用い
ていた。又は、図4に示すように、シリアルデータ送受
信のためのハードウェアとしての非同期式シリアルデー
タ送受信装置400は1チャネルだけとし、非同期式シ
リアルデータ入出力端子だけを2チャネルとして、端子
部分で切換えを行いながら使用する方法が考えられてい
た。
2. Description of the Related Art Conventionally, when transmitting and receiving two channels of asynchronous serial data, two channels of asynchronous serial data transmitting and receiving devices which can operate independently are used. Alternatively, as shown in FIG. 4, the asynchronous serial data transmission / reception device 400 as hardware for transmitting and receiving serial data has only one channel, and only has two channels of asynchronous serial data input / output terminals, and switching is performed at terminal portions. A method of using it while performing was considered.

【0003】[0003]

【発明が解決しようとする課題】従来の非同期式シリア
ルデータ送受信装置を2チャネル使用する場合には、ハ
ードウェア量が多いため高価となり、非同期式シリアル
データ送受信装置を用いた応用システムの価格上昇を招
いていた。また、現実的には、非同期式シリアルデータ
送受信装置を制御するマイクロコンピュータが同時に2
つの非同期式シリアルデータ送受信装置を管理すること
は困難であるため、実際にシリアルデータの送受信が同
時に行われている期間は短いのが一般的であり、非常に
ハードウェアの使用効率が悪かった。
When two channels of the conventional asynchronous serial data transmitting / receiving apparatus are used, the amount of hardware is large and the cost is high, and the price of an application system using the asynchronous serial data transmitting / receiving apparatus is increased. I was invited. Further, in reality, the microcomputer that controls the asynchronous serial data transmission / reception device has two
Since it is difficult to manage two asynchronous serial data transmission / reception devices, the period during which serial data transmission / reception is actually performed is generally short, and the use efficiency of hardware is extremely low.

【0004】また、端子切換え方式の従来の非同期式シ
リアルデータ送受信装置では、切換えのタイミングなど
をマイクロコンピュータなどで管理しなければならず、
非同期式のシリアルデータ送受信の一番のメリットであ
る非同期動作(マイクロコンピュータが送受信動作のタ
イミングを管理しなくても、シリアルデータの送受信を
行う装置同士がスタートビットにより同期をとって送受
信する動作)ができなくなり、非同期式シリアルデータ
送受信方式を使用する効果が全くなくなるといった問題
があった。
Further, in the conventional asynchronous serial data transmitting / receiving apparatus of the terminal switching type, switching timing and the like must be managed by a microcomputer or the like.
Asynchronous operation, which is the main advantage of asynchronous serial data transmission / reception (operation in which devices that transmit / receive serial data transmit / receive in synchronization with the start bit even if the microcomputer does not control the timing of the transmission / reception operation) However, there is a problem that the effect of using the asynchronous serial data transmission / reception method is completely lost.

【0005】本発明の目的は、非同期式の利点を生かし
た安価な非同期式シリアルデータ送受信装置を提供する
ことにある。
An object of the present invention is to provide an inexpensive asynchronous serial data transmission / reception device that utilizes the advantages of the asynchronous system.

【0006】[0006]

【課題を解決するための手段】前記目的を達成するた
め、本発明に係る非同期式シリアルデータ送受信装置
は、受信レジスタと、送信レジスタと、スタートビット
検出手段と、通知手段と、出力手段とを有し、スタート
ビットを検出することにより同期をとる非同期式シリア
ルデータ送受信装置であって、受信レジスタは、2チャ
ネルのシリアルデータ受信端子が接続され、受信したシ
リアルデータが格納されるものであり、送信レジスタ
は、2チャネルのシリアルデータ送信端子が接続され、
送信すべきシリアルデータが格納されるものであり、ス
タートビット検出手段は、2チャネルのシリアルデータ
受信端子にそれぞれ接続され、スタートビットを検出す
るものであり、通知手段は、シリアルデータ受信端子に
接続されているスタートビット検出手段がスタートビッ
トを検出した時、相手方に受信不可を通知するものであ
り、格納手段は、スタートビットが検出されたシリアル
データ受信端子からのデータを選択的に前記受信レジス
タに格納するものであり、出力手段は、送信レジスタか
らの送信データを2チャネルのシリアルデータ送信端子
に選択的に切替えて出力するものである。
To achieve the above object, an asynchronous serial data transmitting / receiving apparatus according to the present invention comprises a receiving register, a transmitting register, a start bit detecting means, a notifying means, and an output means. An asynchronous serial data transmitting and receiving device that synchronizes by detecting a start bit, wherein the receiving register is connected to a two-channel serial data receiving terminal and stores received serial data; The transmission register is connected to two channels of serial data transmission terminals,
The serial data to be transmitted is stored. The start bit detecting means is connected to the serial data receiving terminals of two channels to detect the start bit. The notifying means is connected to the serial data receiving terminal. When the start bit detection means detects the start bit, the reception bit is notified to the other party, and the storage means selectively stores data from the serial data reception terminal where the start bit is detected. The output means selectively outputs the transmission data from the transmission register to the serial data transmission terminals of two channels.

【0007】また、前記2チャネルのスタートビット検
出手段に優先度を設定し、スタートビットが同時に検出
されたときに優先度をもつスタートビット検出手段の出
力を優先させる機能を有するものである。
In addition, a function is provided in which priority is set to the start bit detecting means of the two channels, and when the start bits are detected simultaneously, the output of the start bit detecting means having priority is given priority.

【0008】[0008]

【作用】非同期式シリアル送受信回路に2つのスタート
ビット検出回路を内蔵しているため、非同期式の利点を
生かしながら安価に2チャネルのシリアル送受信装置と
して使用可能となる。
Since the asynchronous serial transmission / reception circuit has two built-in start bit detection circuits, it can be used as a 2-channel serial transmission / reception device at low cost while taking advantage of the asynchronous system.

【0009】[0009]

【実施例】次に本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0010】(実施例1)図1は本発明の実施例1に係
る非同期式シリアルデータ送受信装置を示すブロック図
である。
(First Embodiment) FIG. 1 is a block diagram showing an asynchronous serial data transmitting / receiving apparatus according to a first embodiment of the present invention.

【0011】図1において、本発明の非同期式シリアル
データ送受信装置150は、受信レジスタ100と、送
信レジスタ101と、送受信のクロック周波数を制御す
るボーレートジェネレータ102と、シリアルデータの
スタートビットを検出するスタートビット検出部10
4,108と、シフトクロック制御回路105と、切換
え回路106,110と、受信制御部107と、送信制
御部109と、レジスタ111とを含んでいる。
Referring to FIG. 1, an asynchronous serial data transmitting / receiving apparatus 150 according to the present invention includes a reception register 100, a transmission register 101, a baud rate generator 102 for controlling a clock frequency for transmission and reception, and a start for detecting a start bit of serial data. Bit detector 10
4, 108, a shift clock control circuit 105, switching circuits 106 and 110, a reception control unit 107, a transmission control unit 109, and a register 111.

【0012】送受信のための端子はチャネル0用と、チ
ャネル1用に2組内蔵しており、RXD0/RXD1端
子はシリアルデータの受信に、TXD0/TXD1端子
はシリアルデータの送信に使用する。
Two sets of terminals for transmission and reception are provided for channel 0 and channel 1. The RXD0 / RXD1 terminal is used for receiving serial data, and the TXD0 / TXD1 terminal is used for transmitting serial data.

【0013】CTS0(反転)/CTS1(反転)端子
は入力端子で、送信動作を外部より制御するための信号
で、論理値“0”のときにのみ転送が可能となるように
なっている。
The CTS0 (inverted) / CTS1 (inverted) terminal is an input terminal, which is a signal for externally controlling the transmission operation, and can be transferred only when the logical value is "0".

【0014】RTS0/RTS1端子は、出力端子で受
信可能の時に論理値“0”,受信不可の時に“1”を出
力し、シリアルデータを送信してくる装置のCTS(反
転)端子に接続する。
The RTS0 / RTS1 terminal outputs a logical value "0" when reception is possible at the output terminal, and outputs "1" when reception is not possible, and is connected to a CTS (inverting) terminal of a device for transmitting serial data. .

【0015】次に動作について説明する。ここでは、図
1に示すようにシリアルデータ送受信装置150と同一
の機能をもつシリアルデータ送受信装置160が接続さ
れており、予めRTS0/RTS1端子のレベルは論理
値“0”となっているとする。スタートビット検出部1
04は、RXD0端子上のレベルが論理値“1”から
“0”に変化したことをボーレートジェネレータ102
からのクロックに同期して検出し、シリアルデータの最
初のビットを検出する。
Next, the operation will be described. Here, as shown in FIG. 1, a serial data transmission / reception device 160 having the same function as the serial data transmission / reception device 150 is connected, and the level of the RTS0 / RTS1 terminal is set to a logical value “0” in advance. . Start bit detector 1
The baud rate generator 102 indicates that the level on the RXD0 terminal has changed from the logical value “1” to “0”.
And detects the first bit of the serial data.

【0016】また、シフトクロック制御部105に受信
レジスタ100のシフトのためのシフトクロックを供給
する。ここでスタートビットを検出すると、検出出力が
受信制御部107で伝達され、受信制御部107はRT
S1端子を論理値“1”とするため、CTS11(反
転)端子が論理値“1”となり、シリアルデータ送受信
装置160のTXD11端子からのシリアルデータの転
送を禁止する。
Further, a shift clock for shifting the reception register 100 is supplied to the shift clock control unit 105. Here, when the start bit is detected, the detection output is transmitted by the reception control unit 107, and the reception control unit 107
Since the S1 terminal has the logical value “1”, the CTS11 (inverted) terminal has the logical value “1”, and the transfer of serial data from the TXD11 terminal of the serial data transmitting / receiving device 160 is prohibited.

【0017】また、受信制御部107は、切換え回路1
06を操作して、受信レジスタ100に対し、RXD0
端子上の信号を伝達する。また、シフトクロック制御部
105を操作して、スタートビット検出部104からの
クロックを受信レジスタ100へ供給するように制御す
る。
The reception control unit 107 is provided with the switching circuit 1
06, and RXD0
Transmits signals on terminals. In addition, the shift clock control unit 105 is controlled to supply the clock from the start bit detection unit 104 to the reception register 100.

【0018】一方、スタートビット検出部108が、R
XD1端子上のスタートビットを検出すると、検出出力
が受信制御部107に伝達され、受信制御部107はR
TS0端子を論理値“1”とするため、CTS10(反
転)端子が論理値“1”となり、シリアルデータ送受信
装置160のTXD10端子からのシリアルデータの転
送を禁止する。
On the other hand, the start bit detector 108
When the start bit on the XD1 terminal is detected, a detection output is transmitted to the reception control unit 107, and the reception control unit 107
Since the TS0 terminal has the logical value “1”, the CTS10 (inverted) terminal has the logical value “1”, and the transfer of serial data from the TXD10 terminal of the serial data transmitting / receiving device 160 is prohibited.

【0019】また、受信制御部107は、切換え回路1
06を操作して、受信レジスタ100に対し、RXD1
端子上の信号を伝達する。また、シフトクロック制御部
105を操作して、スタートビット検出部108からの
クロックを受信レジスタ100へ供給するように制御す
る。スタートビットが同時にスタートビット検出部10
4,108で検出された場合には、スタートビット検出
部104の出力を優先して誤動作を防いでいる。
The reception control unit 107 is provided with the switching circuit 1
06 to RXD1
Transmits signals on terminals. Further, the shift clock control unit 105 is controlled to supply the clock from the start bit detection unit 108 to the reception register 100. The start bit is simultaneously detected by the start bit detector 10
In the case of detection at 4, 108, the output of the start bit detection unit 104 is prioritized to prevent malfunction.

【0020】また、送信動作は以下のように行われる。
送信レジスタ101に送信すべきデータを図中不図示の
マイクロコンピュータより書き込むと、切換え回路11
0の働きによりレジスタ111により指定されているT
XD0又はTXD1端子へ、送信データが出力される。
この時対応するCTS(反転)端子が論理値“1”の場
合には受信制御部109によりこれを検出し、転送動作
は保留される。
The transmitting operation is performed as follows.
When data to be transmitted is written into the transmission register 101 by a microcomputer (not shown), the switching circuit 11
T specified by register 111 by the action of 0
Transmission data is output to the XD0 or TXD1 terminal.
At this time, if the logical value of the corresponding CTS (inverted) terminal is “1”, this is detected by the reception control unit 109, and the transfer operation is suspended.

【0021】次に、図2のタイミングチャートを参照し
て動作を説明する。図中、T1タイミングでは、RXD
0端子にTXD10端子からのスタートビットが供給さ
れ、これをスタートビット検出部104が検出するた
め、受信制御部107の働きによりRTS1端子が論理
値“1”となる。したがって、TXD11端子からのシ
リアルデータの転送は行われない。シリアルデータ(7
ビット)のデータ転送が終了するT2タイミングでは、
受信制御部107がこれを検出し、RTS1端子を論理
値“0”とし、これによりTXD10端子,TXD11
端子からの転送が可能状態となる。T3タイミングでは
スタートビット検出部108がスタートビットを検出す
るので、RTS0端子が論理値“1”となり、今度はT
XD10端子からの転送を保留させる。T4タイミング
ではデータ転送が終了するため、RTS0端子が再び論
理値“0”に戻る。
Next, the operation will be described with reference to the timing chart of FIG. In the figure, at T1 timing, RXD
The start bit from the TXD10 terminal is supplied to the 0 terminal, and this is detected by the start bit detection unit 104. Therefore, the RTS1 terminal becomes a logical value “1” by the operation of the reception control unit 107. Therefore, transfer of serial data from the TXD11 terminal is not performed. Serial data (7
At the T2 timing when the data transfer of (bit) ends,
The reception control unit 107 detects this, and sets the RTS1 terminal to a logical value “0”, whereby the TXD10 terminal, TXD11
Transfer from the terminal is enabled. At the timing T3, the start bit detection unit 108 detects the start bit, so that the RTS0 terminal has a logical value “1”, and
The transfer from the XD10 terminal is suspended. At the timing T4, the data transfer ends, and the RTS0 terminal returns to the logical value “0” again.

【0022】(実施例2)図3は本発明の実施例2を示
すブロック図である。実施例1ではボーレートジェネレ
ータが1系統しか内蔵されていないため、1つのボーレ
ートしか扱えなかった。
(Embodiment 2) FIG. 3 is a block diagram showing Embodiment 2 of the present invention. In the first embodiment, since only one baud rate generator is built in, only one baud rate can be handled.

【0023】本実施例では新たに、ボーレートジェネレ
ータ200を付加したものである。独立にRXD0端子
の受信ボーレートと、RXD1端子の受信ボーレートを
制御することができる。また、送信についても送信制御
部109がレジスタ111の指定するボーレートジェネ
レータを選択し、これを送信レジタ101へ供給する。
In this embodiment, a baud rate generator 200 is newly added. The reception baud rate of the RXD0 terminal and the reception baud rate of the RXD1 terminal can be controlled independently. For transmission, the transmission control unit 109 selects a baud rate generator specified by the register 111 and supplies the selected baud rate generator to the transmission register 101.

【0024】[0024]

【発明の効果】以上説明したように本発明は、非同期式
シリアル送受信回路に2つのスタートビット検出回路を
内蔵しているため、非同期式の利点を生かしながら安価
に2チャネルのシリアル送受信装置として使用可能とい
う実用的な効果を有する。また、シリアルデータ転送に
ついては、データの出力端子を指定するレジスタを内蔵
しているため、任意のシリアル回線へ出力可能であると
いう効果を有する。
As described above, since the present invention incorporates two start bit detection circuits in an asynchronous serial transmission / reception circuit, it can be used inexpensively as a 2-channel serial transmission / reception device while taking advantage of the asynchronous system. It has a practical effect of being possible. In addition, in the case of serial data transfer, since a register for designating a data output terminal is built in, there is an effect that data can be output to an arbitrary serial line.

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

【図1】本発明の実施例1を示すブロック図である。FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】実施例1の動作を説明するタイミングチャート
である。
FIG. 2 is a timing chart illustrating the operation of the first embodiment.

【図3】本発明の実施例2を示すブロック図である。FIG. 3 is a block diagram showing a second embodiment of the present invention.

【図4】従来の非同期式シリアルデータ送受信装置を示
すブロック図である。
FIG. 4 is a block diagram showing a conventional asynchronous serial data transmission / reception device.

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

100 受信レジスタ 102,200 ボーレートジェネレーター 104,108 スタートビット検出部 105 シフトクロック制御部 107 受信制御部 109 送信制御部 101 送信レジスタ 106,110 切換え回路 111 レジスタ 400 非同期式シリアルデータ送受信装置 401 レジスタ REFERENCE SIGNS LIST 100 reception register 102, 200 baud rate generator 104, 108 start bit detection unit 105 shift clock control unit 107 reception control unit 109 transmission control unit 101 transmission register 106, 110 switching circuit 111 register 400 asynchronous serial data transmission / reception device 401 register

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 受信レジスタと、送信レジスタと、スタ
ートビット検出手段と、通知手段と、出力手段とを有
し、スタートビットを検出することにより同期をとる非
同期式シリアルデータ送受信装置であって、 受信レジスタは、2チャネルのシリアルデータ受信端子
が接続され、受信したシリアルデータが格納されるもの
であり、 送信レジスタは、2チャネルのシリアルデータ送信端子
が接続され、送信すべきシリアルデータが格納されるも
のであり、 スタートビット検出手段は、2チャネルのシリアルデー
タ受信端子にそれぞれ接続され、スタートビットを検出
するものであり、 通知手段は、シリアルデータ受信端子に接続されている
スタートビット検出手段がスタートビットを検出した
時、相手方に受信不可を通知するものであり、 格納手段は、スタートビットが検出されたシリアルデー
タ受信端子からのデータを選択的に前記受信レジスタに
格納するものであり、 出力手段は、送信レジスタからの送信データを2チャネ
ルのシリアルデータ送信端子に選択的に切替えて出力す
るものであることを特徴とする非同期式シリアルデータ
送受信装置。
1. An asynchronous serial data transmitting and receiving device comprising a receiving register, a transmitting register, a start bit detecting means, a notifying means, and an output means, and performing synchronization by detecting a start bit. The reception register is connected to serial data reception terminals of two channels and stores received serial data. The transmission register is connected to serial data transmission terminals of two channels and stores serial data to be transmitted. The start bit detecting means is connected to the serial data receiving terminals of two channels, respectively, and detects the start bit. The notifying means is provided by the start bit detecting means connected to the serial data receiving terminal. When the start bit is detected, it notifies the other party that reception is not possible. Means for selectively storing data from the serial data reception terminal at which the start bit is detected in the reception register; and output means for selecting transmission data from the transmission register to the serial data transmission terminals of two channels. An asynchronous serial data transmission / reception device characterized in that the data is selectively switched and output.
【請求項2】 前記2チャネルのスタートビット検出手
段に優先度を設定し、スタートビットが同時に検出され
たときに優先度をもつスタートビット検出手段の出力を
優先させる機能を有することを特徴とする請求項1に記
載の非同期式シリアルデータ送受信装置。
2. The apparatus according to claim 1, wherein a priority is set to the start bit detecting means of the two channels, and when the start bits are simultaneously detected, the output of the start bit detecting means having the priority is given priority. The asynchronous serial data transmitting / receiving device according to claim 1.
JP4232160A 1992-08-31 1992-08-31 Asynchronous serial data transceiver Expired - Lifetime JP2932851B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4232160A JP2932851B2 (en) 1992-08-31 1992-08-31 Asynchronous serial data transceiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4232160A JP2932851B2 (en) 1992-08-31 1992-08-31 Asynchronous serial data transceiver

Publications (2)

Publication Number Publication Date
JPH0683730A JPH0683730A (en) 1994-03-25
JP2932851B2 true JP2932851B2 (en) 1999-08-09

Family

ID=16934939

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4232160A Expired - Lifetime JP2932851B2 (en) 1992-08-31 1992-08-31 Asynchronous serial data transceiver

Country Status (1)

Country Link
JP (1) JP2932851B2 (en)

Also Published As

Publication number Publication date
JPH0683730A (en) 1994-03-25

Similar Documents

Publication Publication Date Title
JP2863653B2 (en) Microcomputer with built-in communication device
KR20040076730A (en) Serial communication interface apparatus of hybrid type adaptable to high peformance wireless lan and method of the same
JP2932851B2 (en) Asynchronous serial data transceiver
JP3125348B2 (en) Parallel bit synchronization method
JP3148911B2 (en) Digital radio telephone equipment
JP2613971B2 (en) Serial transfer method
JPS58164360A (en) Data communication device
JPH065831B2 (en) Signal frame transmission method
JPS62171349A (en) Communication control equipment
JP3395600B2 (en) Data transfer device
JPS59161956A (en) Transmission controller
JP2790748B2 (en) Serial data communication device
JPH02303226A (en) Radio communication equipment
KR100197438B1 (en) Apparatus for selecting clock between processor and device
JPH06311213A (en) Inter-hand set speaking system for digital cordless telephone
JPS61270952A (en) Data transmitting system
JP2949118B1 (en) Encoder data output method for bus communication type encoder device
JP2007028603A (en) Pcm-type interface
JP2713009B2 (en) Delay time difference absorption device
JPH01147765A (en) Data transfer controller
JPH0438026A (en) Reception data synchronizing circuit
JP2003218980A (en) Data transmission rate changeover device
JP2004266433A (en) Method for controlling synchronization and modulator-demodulator
JPS6190544A (en) Duplex transmission method and device by simplex radio channel
JP2002141880A (en) Time division multiple access communication method and time division multiple access communication system using the same