JP2540770B2 - Data communication circuit - Google Patents
Data communication circuitInfo
- Publication number
- JP2540770B2 JP2540770B2 JP5310525A JP31052593A JP2540770B2 JP 2540770 B2 JP2540770 B2 JP 2540770B2 JP 5310525 A JP5310525 A JP 5310525A JP 31052593 A JP31052593 A JP 31052593A JP 2540770 B2 JP2540770 B2 JP 2540770B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- transmission
- timing circuit
- parallel
- reception
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Description
【0001】[0001]
【産業上の利用分野】本発明はデータ通信回路に関し、
特にメモリをアクセスすることにより行うデータ通信回
路に関する。FIELD OF THE INVENTION The present invention relates to a data communication circuit,
In particular, the present invention relates to a data communication circuit for accessing a memory.
【0002】[0002]
【従来の技術】従来この種のデータ通信回路は、書き込
み、読み出しを非同期で同時に行えるデュアルポートラ
ム等を利用したFIFOや同期式のシングルポートメモ
リを用いて転送速度変換のみを行っている。たとえば、
特開平01−316820号公報には、同期式のシング
ルポートメモリを用いてデータの転送速度を変換する技
術が記載されている。2. Description of the Related Art Conventionally, a data communication circuit of this type performs only transfer rate conversion by using a FIFO using a dual port RAM or the like capable of simultaneously writing and reading asynchronously and a synchronous single port memory. For example,
Japanese Patent Application Laid-Open No. 01-316820 describes a technique for converting the data transfer rate using a synchronous single port memory.
【0003】[0003]
【発明が解決しようとする課題】この従来のデータ通信
回路は、転送速度の変換は行えても、データの入出力の
順序は変えられない。また、入出力の回線は1回線のみ
で複数個は扱えないという問題点があった。In this conventional data communication circuit, the data input / output order cannot be changed even though the transfer rate can be converted. Further, there is a problem that the number of input / output lines is only one line and a plurality of lines cannot be handled.
【0004】[0004]
【課題を解決するための手段】本発明のデータ通信回路
は、任意のアドレス値を設定できる送信用及び受信用の
アドレスカウンタを複数個と、そのカウンタ個々に対応
し、メモリへデータを入出力するため、データをシリア
ル・パラレル変換を行うシリアル・パラレル変換器と、
それらを切り換えるセレクタと、その逆を行うパラレル
・シリアル変換器と、それらを切り換えるディストと、
前記全てを制御するCPU及びタイミング回路を有して
いる。A data communication circuit according to the present invention includes a plurality of transmission and reception address counters capable of setting an arbitrary address value, and inputs and outputs data to and from a memory corresponding to each of the counters. In order to do so, a serial / parallel converter that performs serial / parallel conversion of data,
A selector that switches them, a parallel-serial converter that performs the opposite, a disist that switches them,
It has a CPU and a timing circuit for controlling all of the above.
【0005】[0005]
【実施例】次に本発明について、図面を参照して説明す
る。The present invention will be described below with reference to the drawings.
【0006】図1は本発明の一実施例を示すブロック図
である。図1の装置は、受信側、送信側それぞれ回線を
2系統ずつまで接続できる構成になっている。受信側の
1側はタイミング回路107からの受信側の1側用のク
ロックで動作し、受信側の2側はタイミング回路107
からの受信側の2側のクロックで動作し、送信側の1側
はタイミング回路107からの送信側の1側用のクロッ
クで動作し、送信側の2側はタイミング回路107から
の送信側の2側用のクロックで動作し、それぞれは非同
期で動作している。受信側においては、受信したシリア
ルデータをパラレルデータに変換するシリアルパラレル
変換器(S−P)109と、S−Pからのパラレルデー
タまたはCPUからのデータをRAMのデータバスへ接
続するためのバッファ(BUF)105、また、データ
の受信ヘッダコード及び受信テールコードを検出するた
めの検出器104を備えている。データの蓄積及び編集
をするために、BUFから出力されたデータをデータバ
スを通して蓄積されるRAM106、RAMのアドレス
指定を行うカウンタ101、カウンタ101−1か01
−2のどちらを使用するかを選択するセレクタ103、
そのセレクタでどれを選択するかのパルスを与えたり、
送受のタイミングを各部に与えるタイミング回路10
7、RAMのデータを編集するためのCPU102を有
している。このタイミング回路は、図4に示すような動
作を行う。送信側においては、データバス上のパラレル
データをシリアルデータに変換するパラレルシリアル変
換装置(P−S)108を備えている。FIG. 1 is a block diagram showing an embodiment of the present invention. The apparatus shown in FIG. 1 has a configuration in which lines of two lines can be connected to each of the receiving side and the transmitting side. The one side on the receiving side operates with the clock for the one side on the receiving side from the timing circuit 107, and the two side on the receiving side operates on the timing circuit 107.
From the timing circuit 107, the transmission side 1 side operates from the timing circuit 107 for the transmission side 1 side clock, and the transmission side 2 side operates from the timing circuit 107 transmission side. It operates on the clock for two sides, and each operates asynchronously. On the receiving side, a serial-parallel converter (SP) 109 for converting received serial data into parallel data, and a buffer for connecting parallel data from SP or data from the CPU to the data bus of RAM (BUF) 105, and a detector 104 for detecting a reception header code and a reception tail code of the data. In order to store and edit the data, the RAM 106 in which the data output from the BUF is stored through the data bus, the counter 101 for addressing the RAM, and the counter 101-1 or 01.
, A selector 103 for selecting which of the two to use,
Give a pulse of which to select with that selector,
Timing circuit 10 for giving transmission / reception timing to each part
7. It has a CPU 102 for editing RAM data. This timing circuit operates as shown in FIG. The transmission side includes a parallel-serial conversion device (PS) 108 that converts parallel data on the data bus into serial data.
【0007】次に、図1の動作について説明する。図
3、図4は図1の動作を説明する波形図である。受信側
の1側において回線から受信したシリアルデータは、S
−P109−1でパラレルデータに変換される。このパ
ラレルデータをたとえば比較器等で構成される検出器1
04−1で受信ヘッダコードを検出すると(図3にて1
−1〜108)、タイミング回路107にヘッダ検出パ
ルスを出力し、タイミング回路はCPU102及び受信
カウンタ101−1にセットパルスを出力する。CPU
はセットパルスを受け取ると受信カウンタに先頭アドレ
ス0をセットする。1バイト分データを受信したところ
でRAM106への書き込み要求をタイミング回路10
7に出し、タイミング回路は、セレクタ103が受信用
アドレスカウンタ101−1を選択したときにタイミン
グ回路よりRAMライトパルスを送出し、かつバッファ
105−1をONにし、受信データの1側の1バイト
(1−9から1−16)をRAMに書き込む。その後直
ちに101−1のアドレスカウンタを+1してアドレス
を1に更新する。データが終了するまで以上の動作を繰
り返し、受信データをテールを検出器104−1で検出
したら、書き込みを終了する。RAMに書き込まれたデ
ータは、CPUで直接アクセスすることにより、任意の
データに編集でき、送信データに編集されたデータは、
RAMの送信エリアに転送される。受信側の2側につい
ても同様である。送信側においては、送出タイミング
は、1側、2側をサイクリックに選択するように行われ
ているので、タイミング回路107はパラレルシリアル
変換器(以下P−S)108−1及び108−2を定期
的に選択している。送信側の1側に送出すると、まず、
CPUからの信号により送信カウンタ100−1を選択
し、送信カウンタに送信データの先頭アドレスをセット
し、CPUが送信開始をタイミング回路に指示し、セレ
クタ103が送信用アドレスカウンタ100−1を選択
したときにタイミング回路からP−S108−1へロー
ドパルスを送り、送信データの第1バイトをロードす
る。1バイト分のデータをP−S108−1から送信側
の1側に1ビットずつ送出し、8ビット送出をタイミン
グ回路にて認識すると再びロードパルスを出す。1バイ
ト送出する度にバイト数をカウントし、繰り返し送信す
る。CPUから指定されたバイト数をカウントしたら送
信を終了する。これら一連の送受信において、セレクタ
103、バッファ105及び送信側のP−S108の切
り換えは、図4に示すように送信データ及び受信データ
とは非同期であるが、回線速度より十分早いスピードで
同期して行われているので、受信側と送信側の回線速度
は任意で、かつ同時に送受信を行うことができる。Next, the operation of FIG. 1 will be described. 3 and 4 are waveform charts for explaining the operation of FIG. The serial data received from the line on the receiving side is S
-Converted to parallel data in P109-1. The parallel data is detected by the detector 1 which is composed of, for example, a comparator.
When the received header code is detected in 04-1 (1 in FIG.
-1 to 108), a header detection pulse is output to the timing circuit 107, and the timing circuit outputs a set pulse to the CPU 102 and the reception counter 101-1. CPU
When receiving the set pulse, sets the start address 0 to the reception counter. When one byte of data is received, the timing circuit 10 issues a write request to the RAM 106.
7, the timing circuit sends out a RAM write pulse from the timing circuit when the selector 103 selects the receiving address counter 101-1 and turns on the buffer 105-1 so that 1 byte on the 1st side of the received data. Write (1-9 to 1-16) to RAM. Immediately thereafter, the address counter of 101-1 is incremented by 1 and the address is updated to 1. The above operation is repeated until the data ends, and when the tail of the received data is detected by the detector 104-1, the writing is ended. The data written in the RAM can be edited into any data by directly accessing the CPU, and the data edited into the transmission data can be edited as follows.
It is transferred to the transmission area of the RAM. The same applies to the two receiving sides. On the transmission side, the transmission timing is set so that the 1st side and the 2nd side are cyclically selected, so that the timing circuit 107 sets the parallel-serial converters (hereinafter P-S) 108-1 and 108-2. Selected regularly. When sending to the 1 side of the sending side, first,
The transmission counter 100-1 is selected by the signal from the CPU, the start address of the transmission data is set in the transmission counter, the CPU instructs the timing circuit to start transmission, and the selector 103 selects the transmission address counter 100-1. Sometimes the timing circuit sends a load pulse to P-S108-1 to load the first byte of transmission data. One byte of data is sent from P-S108-1 to the sending side, one bit at a time, and when the timing circuit recognizes the sending of 8 bits, a load pulse is issued again. The number of bytes is counted each time one byte is sent and repeatedly sent. When the number of bytes designated by the CPU is counted, the transmission ends. In the series of transmission and reception, the switching of the selector 103, the buffer 105, and the P-S 108 on the transmission side is asynchronous with the transmission data and the reception data as shown in FIG. 4, but is synchronized at a speed sufficiently faster than the line speed. Since the transmission is performed, the line speeds of the receiving side and the transmitting side are arbitrary, and transmission / reception can be performed simultaneously.
【0008】この方式は、送信をN個、受信をM個に拡
張しても同様であり、そのブロック図を図2に示す。This system is the same when the number of transmissions is expanded to N and the number of receptions is expanded to M, and a block diagram thereof is shown in FIG.
【0009】[0009]
【発明の効果】以上説明したように本発明によるデータ
通信回路は、受信用のアドレスカウンタを回線の数だけ
有しているため、各回線は独立してデータ受信を行うこ
とができる。また、RAMの内部で送信と受信のデータ
エリアを別々に設けているため、CPUによりデータの
送出順序を変更する等データ編集を行える。さらに、送
信側においても送信用のアドレスカウンタを回線の数だ
け有することにより、任意のデータを任意の回線に送出
することができる。また、送受信の回線速度は、回線毎
に任意の速度を設定できる等の効果を有する。As described above, since the data communication circuit according to the present invention has the same number of address counters for reception as the number of lines, each line can receive data independently. Further, since the transmission and reception data areas are separately provided in the RAM, the CPU can perform data editing such as changing the data transmission order. Further, the transmission side also has address counters for transmission corresponding to the number of lines, so that any data can be sent to any line. Further, the transmission / reception line speed has an effect that an arbitrary speed can be set for each line.
【図1】本発明の一実施例のブロック図。FIG. 1 is a block diagram of an embodiment of the present invention.
【図2】図1を一般形にしたブロック図。FIG. 2 is a block diagram in which FIG. 1 is generalized.
【図3】図1の動作を説明する波形図1。3 is a waveform chart 1 for explaining the operation of FIG.
【図4】図1の動作を説明する波形図2。FIG. 4 is a waveform diagram 2 for explaining the operation of FIG.
100 送信用アドレスカウンタ 101 受信用アドレスカウンタ 102 CPU 103 セレクタ 104 検出器 105 バッファ 106 RAM 107 タイミング回路 108 パラレル・シリアル変換装置 109 シリアル・パラレル変換装置 100 Transmission Address Counter 101 Reception Address Counter 102 CPU 103 Selector 104 Detector 105 Buffer 106 RAM 107 Timing Circuit 108 Parallel / Serial Conversion Device 109 Serial / Parallel Conversion Device
Claims (1)
び受信用のアドレスカウンタを複数個と、このカウンタ
個々に対応し、メモリへデータを入出力するため、デー
タをシリアル・パラレル変換を行うシリアル・パラレル
変換器と、それらを切換えるセレクタと、その逆を行う
パラレル・シリアル変換器と、それらを切り換えるディ
ストと、前記全てを制御するCPU及びタイミング回路
を有することを特徴とするデータ通信回路。1. A plurality of transmission and reception address counters capable of setting arbitrary address values, and serial data corresponding to each of these counters for inputting / outputting data to / from a memory. A data communication circuit having a parallel converter, a selector for switching between them, a parallel / serial converter for performing the reverse operation, a disist for switching between them, and a CPU and timing circuit for controlling all of the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5310525A JP2540770B2 (en) | 1993-12-10 | 1993-12-10 | Data communication circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5310525A JP2540770B2 (en) | 1993-12-10 | 1993-12-10 | Data communication circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH07160474A JPH07160474A (en) | 1995-06-23 |
JP2540770B2 true JP2540770B2 (en) | 1996-10-09 |
Family
ID=18006284
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5310525A Expired - Fee Related JP2540770B2 (en) | 1993-12-10 | 1993-12-10 | Data communication circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2540770B2 (en) |
-
1993
- 1993-12-10 JP JP5310525A patent/JP2540770B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH07160474A (en) | 1995-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5570356A (en) | High bandwidth communications system having multiple serial links | |
CN100461635C (en) | Hybrid parallel/serial bus interface | |
EP0183080B1 (en) | Loop transmission system with a variable station connection order | |
US6404770B1 (en) | Data communication interface with adjustable-size buffer | |
US4694294A (en) | Synchronized network system | |
JP2540770B2 (en) | Data communication circuit | |
JP3131863B2 (en) | Data rate converter | |
JP2786170B2 (en) | Frame data conversion circuit | |
CA1091832A (en) | Asynchronous pcm common decoding apparatus | |
JPH10145433A (en) | Data transfer rate converter and communication network system | |
JP2888004B2 (en) | Transmission line interface circuit | |
US5572529A (en) | Signal processing arrangement | |
JP2677274B2 (en) | Variable length serial data communication system | |
JPH081630B2 (en) | Data transceiver | |
JP3268337B2 (en) | Line switching method | |
JPH065831B2 (en) | Signal frame transmission method | |
JPH0787435B2 (en) | Multiplex channel receiver | |
JP2770375B2 (en) | Transmission delay phase compensation circuit | |
JPS635640A (en) | Channel controller in data transmission system | |
KR100200560B1 (en) | Atm cell mapping apparatus | |
SU1043710A1 (en) | Device for receiving and transmitting information | |
JPH0149210B2 (en) | ||
JPH0563673A (en) | Time division multiplex circuit | |
JPH0973388A (en) | Data converting device with priority | |
JPH0220136A (en) | Delaying equalizing circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19960521 |
|
LAPS | Cancellation because of no payment of annual fees |