JPH0936930A - Communication control circuit - Google Patents
Communication control circuitInfo
- Publication number
- JPH0936930A JPH0936930A JP7183773A JP18377395A JPH0936930A JP H0936930 A JPH0936930 A JP H0936930A JP 7183773 A JP7183773 A JP 7183773A JP 18377395 A JP18377395 A JP 18377395A JP H0936930 A JPH0936930 A JP H0936930A
- Authority
- JP
- Japan
- Prior art keywords
- data
- receiver
- transmitter
- standard interface
- communication control
- 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.)
- Withdrawn
Links
Landscapes
- Computer And Data Communications (AREA)
- Communication Control (AREA)
Abstract
(57)【要約】
【目的】 異なる標準インタフェース間を接続してデー
タを転送する通信制御回路に関し、比較的簡単な構成で
高速処理を可能とする。
【構成】 RS−232C等の一方の標準インタフェー
スからRS−422等の他方の標準インタフェースに変
換してデータを送受信する通信制御回路であって、入出
力信号間の電圧レベル,平衡−不平衡等の変換を行うド
ライバ/レシーバ2と、転送データの同期検出,シリア
ル・パラレル変換,転送モード選択,パリティチェック
等を行うトランスミッタ/レシーバ4と、このトランス
ミッタ/レシーバ4にモードパラメータを設定し、且つ
動作コマンドライト,データライト,コマンドリード,
データリードを1システムクロック内で制御する制御部
3と、1ブロック分のデータを一時的に蓄積するランダ
ムアクセスメモリ7,8とを含む構成を有する。
(57) [Abstract] [Purpose] A communication control circuit that transfers data by connecting different standard interfaces and enables high-speed processing with a relatively simple configuration. [Composition] A communication control circuit for transmitting and receiving data by converting one standard interface such as RS-232C to the other standard interface such as RS-422, and the voltage level between input and output signals, balanced-unbalanced, etc. Driver / receiver 2 that performs conversion of data, transmitter / receiver 4 that performs synchronization detection of transfer data, serial / parallel conversion, transfer mode selection, parity check, and the like, and sets mode parameters for this transmitter / receiver 4 and operates Command write, data write, command read,
It has a configuration including a control unit 3 which controls data reading within one system clock and random access memories 7 and 8 which temporarily store data for one block.
Description
【0001】[0001]
【産業上の利用分野】本発明は、データ伝送装置等の装
置と、パーソナルコンピュータ等の装置との間のインタ
フェース変換を行って接続する通信制御回路に関する。
データ伝送装置の監視,試験等を外部のパーソナルコン
ピュータ(パソコン)によって行う場合、データ伝送装
置は、例えば、RS−422のインタフェースを備え、
パソコンは、例えば、RS−232Cのインタフェース
を備えている場合が一般的であるから、インタフェース
変換を行って接続する必要がある。このようなインタフ
ェース変換を行って接続する通信制御回路の効率化が要
望されている。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control circuit for performing interface conversion between a device such as a data transmission device and a device such as a personal computer for connection.
When an external personal computer (personal computer) monitors or tests the data transmission device, the data transmission device includes, for example, an RS-422 interface,
Since a personal computer is generally provided with an RS-232C interface, for example, it is necessary to perform interface conversion before connection. There is a demand for more efficient communication control circuits that are connected by performing such interface conversion.
【0002】[0002]
【従来の技術】図7は従来例の説明図であり、51はパ
ソコン、52はデータ伝送装置、53は通信制御回路、
54,55はインタフェース回路(INF)、56はユ
ニットである。データ伝送装置52は、複数のユニット
56によって構成され、又インタフェース回路55及び
内部は、標準インタフェースのRS−422を適用した
構成を有し、又パソコン51のインタフェース回路54
は、標準インタフェースのRS−232Cを適用した構
成を有する場合が一般的である。2. Description of the Related Art FIG. 7 is an explanatory view of a conventional example, 51 is a personal computer, 52 is a data transmission device, 53 is a communication control circuit,
Reference numerals 54 and 55 are interface circuits (INF), and 56 is a unit. The data transmission device 52 is configured by a plurality of units 56, the interface circuit 55 and the inside have a configuration to which RS-422 of a standard interface is applied, and the interface circuit 54 of the personal computer 51.
Generally has a configuration to which the standard interface RS-232C is applied.
【0003】従って、パソコン51とデータ伝送装置5
2との間は、インタフェース変換を行う通信制御回路5
3を介して接続され、パソコン51からデータ伝送装置
52の監視,試験及びユニット56対応の監視,試験等
を行う為のコマンドやデータの伝送を通信制御回路53
を介して行うことになる。Therefore, the personal computer 51 and the data transmission device 5
Communication control circuit 5 for interface conversion between 2 and
3 is connected via the communication control circuit 53 to transmit commands and data from the personal computer 51 to monitor and test the data transmission device 52 and monitor and test the unit 56.
Will be done through.
【0004】標準インタフェースのRS−232Cは不
平衡型のインタフェースであり、又標準インタフェース
のRS−422は平衡型のインタフェースである。図8
は平衡型及び不平衡型インタフェース回路の説明図であ
り、(A)は平衡型インタフェース回路を示し、(B)
は不平衡型インタフェース回路を示す。又61はドライ
バ、62はレシーバ、63は終端抵抗、Aは正出力端
子、Bは負出力端子、Cはアース端子を示す。The standard interface RS-232C is an unbalanced type interface, and the standard interface RS-422 is a balanced type interface. FIG.
FIG. 4 is an explanatory diagram of a balanced type and unbalanced type interface circuit, (A) shows a balanced type interface circuit, and (B).
Indicates an unbalanced interface circuit. Further, 61 is a driver, 62 is a receiver, 63 is a terminating resistor, A is a positive output terminal, B is a negative output terminal, and C is a ground terminal.
【0005】図8の(A)に示す平衡型インタフェース
回路に於いては、トライバ61の正負出力端子A,Bと
レシーバ62の入力端子とを接続するように、ケーブル
によって相互間を接続する。又図8の(B)に示す不平
衡型インタフェース回路に於いては、ドライバ61の正
出力端子Aとアース端子Cとをレシーバ62の入力端子
に接続するように、ケーブルによって相互間を接続す
る。In the balanced type interface circuit shown in FIG. 8A, the positive and negative output terminals A and B of the triber 61 and the input terminal of the receiver 62 are connected to each other by a cable. Further, in the unbalanced interface circuit shown in FIG. 8B, the positive output terminal A and the ground terminal C of the driver 61 are connected to each other by a cable so as to be connected to the input terminal of the receiver 62. .
【0006】前述の標準インタフェースのRS−232
Cは、図8の(B)の不平衡型インタフェース回路の構
成を適用して相互間を接続することになり、信号レベル
は、“1”を−5V〜−15Vの範囲、“0”を+5V
〜+15Vの範囲となるように規定されている。又デー
タの転送は、同期式と非同期式との何れかを適用した直
列データ転送となる。又前述の標準インタフェースのR
S−422は、図8の(A)の平衡型インタフェース回
路の構成を適用して相互間を接続することになり、信号
レベルは、“1”を正出力端子Aが負出力端子Bに対し
て負、“0”を正出力端子Aが負出力端子Bに対して正
であり、又正負出力端子A,B間及び正負出力端子A,
Bとアース端子との間の出力開放電圧が6V以下、50
Ω終端時の出力電圧が2V以上或いは出力開放電圧の5
0%以上であることが規定されている。又標準インタフ
ェースのRS−423は、RS−422とほぼ同様な内
容であるが、不平衡型のインタフェース回路に適用され
る。The above-mentioned standard interface RS-232
C is connected to each other by applying the configuration of the unbalanced interface circuit of FIG. 8B, and the signal level is "1" in the range of -5V to -15V and "0" in the range of "0". + 5V
It is specified to be in the range of + 15V. Further, the data transfer is serial data transfer to which either the synchronous system or the asynchronous system is applied. The standard interface R mentioned above
The S-422 is configured to be connected to each other by applying the configuration of the balanced interface circuit of FIG. 8A, and the signal level is "1" with respect to the positive output terminal A to the negative output terminal B. Negative, “0” means that the positive output terminal A is positive with respect to the negative output terminal B, and between the positive and negative output terminals A and B and the positive and negative output terminals A,
Output open circuit voltage between B and ground terminal is 6V or less, 50
Output voltage at Ω termination is 2V or more or output open voltage is 5
It is specified to be 0% or more. The standard interface RS-423 has almost the same contents as RS-422, but is applied to an unbalanced interface circuit.
【0007】図7に於ける通信制御回路53は、前述の
ように、パソコン51側の標準インタフェースRS−2
32Cと、データ伝送装置52側の標準インタフェース
RS−422とのインタフェース変換を行うものであ
り、その変換処理は、ソフトウェアにより実行するもの
であった。The communication control circuit 53 in FIG. 7 is the standard interface RS-2 on the personal computer 51 side as described above.
The interface conversion between the 32C and the standard interface RS-422 on the data transmission device 52 side is performed, and the conversion process is performed by software.
【0008】図9は従来例のフローチャートであり、図
7に於ける通信制御回路53の動作の概要を示す。先
ず、リセットし(A)、次にモードパラメータを設定し
(B)、同期モードか否かを判定し(C)、同期モード
でない場合はステップ(H)に移行し、同期モードの場
合は二重同期方式か否かを判定し(D)、二重同期方式
でない場合はステップ(G)に移行し、同期キャラクタ
1の書込みを行い、ステップ(H)に移行する。又二重
同期方式の場合は、同期キャラクタ1の書込みを行い
(E)、次に同期キャラクタ2の書込みを行い(F)、
ステップ(H)に移行する。FIG. 9 is a flow chart of a conventional example and shows an outline of the operation of the communication control circuit 53 in FIG. First, reset (A), then set the mode parameter (B), determine whether or not it is the synchronous mode (C), move to step (H) if it is not the synchronous mode, and if it is the synchronous mode, It is judged whether or not it is the double synchronization system (D), and if it is not the double synchronization system, the process proceeds to step (G), the synchronization character 1 is written, and the process proceeds to step (H). In the case of the double synchronization method, the synchronization character 1 is written (E), then the synchronization character 2 is written (F),
Go to step (H).
【0009】ステップ(H)に於いては動作コマンドの
書込みを行い、次にステータス読出し、動作コマンドの
書込み、受信データ読出し、送信データ書込みを行う
(I)。そして、ステータスがコマンドかデータかを判
定し(J)、ステータスの場合はステータスの読出しを
行い、制御端子(CONT端子)を“1”とする
(K)。又データの場合は送受信データの書込み,読出
しを行い、制御端子(CONT端子)を“0”とする
(L)。又コマンドの場合は動作コマンドの書込みを行
い、制御端子(CONT端子)を“1”とし(M)、ソ
フトウェアリセットか否かを判定し(N)、リセットの
場合はステップ(B)へ移行し、リセットでない場合は
ステップ(J)へ移行する。In step (H), the operation command is written, then the status is read, the operation command is written, the reception data is read, and the transmission data is written (I). Then, it is determined whether the status is a command or data (J), and if the status is the status, the status is read and the control terminal (CONT terminal) is set to "1" (K). In the case of data, transmission / reception data is written and read, and the control terminal (CONT terminal) is set to "0" (L). If it is a command, the operation command is written, the control terminal (CONT terminal) is set to "1" (M), it is judged whether or not it is a software reset (N), and if it is a reset, the process moves to step (B). If it is not reset, the process proceeds to step (J).
【0010】[0010]
【発明が解決しようとする課題】前述のように、従来例
の通信制御回路53は、RS−232C,RS−422
等の異なる標準インタフェース間をソフトウェアによっ
て変換処理するものであり、又図9に示すようにソフト
ウェア処理によって送受信を制御するものである。例え
ば、ソフトウェアによる変換処理に於いて、1バイト処
理する為に約80ステップ程度を必要とするものであ
り、ソフトウェアは他の処理も行うものであるから、異
なる標準インタフェースを有する装置間のデータを高速
で転送制御することは容易でなかった。本発明は、比較
的簡単な構成によって、異なる標準インタフェースを有
する装置間のデータの高速転送を可能とすることを目的
とする。As described above, the communication control circuit 53 of the conventional example has RS-232C, RS-422.
The conversion processing is performed by software between different standard interfaces such as the above, and the transmission / reception is controlled by software processing as shown in FIG. For example, in conversion processing by software, it takes about 80 steps to process 1 byte, and software also performs other processing, so data between devices having different standard interfaces It was not easy to control transfer at high speed. An object of the present invention is to enable high speed transfer of data between devices having different standard interfaces with a relatively simple structure.
【0011】[0011]
【課題を解決するための手段】本発明の通信制御回路
は、図1を参照して説明すると、RS−232Cのよう
な一方の形式の標準インタフェースからRS−422の
ような他方の形式の標準インタフェースに変換してデー
タを送受信する通信制御回路に於いて、入出力信号間の
電圧レベルと平衡−不平衡との何れか一方又は両方の変
換を行うドライバ/レシーバ2と、このドライバ/レシ
ーバ2と接続されて、転送するデータの同期検出,シリ
アル・パラレル変換,転送モードの選択,データのパリ
ティチェック等を行うトランスミッタ/レシーバ4と、
このトランスミッタ/レシーバ4にモードパラメータを
初期設定し、且つこのランスミッタ/レシーバ4を、動
作コマンドライト,データライト,コマンドリード,デ
ータリードの動作モードに、システムクロック信号の周
期毎に繰り返して制御し、一方の形式の標準インタフェ
ースと他方の形式の標準インタフェースとの間の変換処
理を行わせる制御部3とを備えている。The communication control circuit of the present invention will be described with reference to FIG. 1 in which one type of standard interface such as RS-232C to another type of standard interface such as RS-422. In a communication control circuit that converts data into an interface and transmits / receives data, a driver / receiver 2 for converting one or both of a voltage level between input / output signals and balanced-unbalanced, and this driver / receiver 2 A transmitter / receiver 4 that is connected to the device and performs synchronization detection of data to be transferred, serial / parallel conversion, selection of transfer mode, data parity check, etc.
A mode parameter is initialized to the transmitter / receiver 4, and the transmitter / receiver 4 is repeatedly controlled in the operation command write, data write, command read, and data read operation modes at every cycle of the system clock signal. The control unit 3 is provided for performing conversion processing between the standard interface of one format and the standard interface of the other format.
【0012】又一方の形式の標準インタフェース又は他
方の形式の標準インタフェースの装置と、前記トランス
ミッタ/レーシーバとの間に、制御部3によってタイミ
ングが制御され、且つ少なくとも1ブロック分のデータ
を一時的に蓄積するランダムアクセスメモリ7,8を設
けることができる。Further, the timing between the transmitter / receiver and the device of the standard interface of one type or the standard interface of the other type is controlled by the control unit 3, and at least one block of data is temporarily stored. Random access memories 7 and 8 for accumulating can be provided.
【0013】又ランダムアクセスメモリ7,8を、デュ
アルポート・ランダムアクセスメモリにより構成するこ
とができる。Further, the random access memories 7 and 8 can be constituted by dual port random access memories.
【0014】又制御部3は、手動又は外部から入力した
モードパラメータを設定する設定部14と、この設定部
14のモードパラメータを初期設定時にトランスミッタ
/レシーバ4のモードレジスタ15に設定する構成とを
備えることができる。Further, the control unit 3 has a setting unit 14 for setting a mode parameter manually or externally input, and a configuration for setting the mode parameter of the setting unit 14 in the mode register 15 of the transmitter / receiver 4 at the time of initial setting. Can be prepared.
【0015】[0015]
【作用】パソコン等の標準インタフェースがRS−23
2C等の装置1と、データ伝送装置等の標準インタフェ
ースがRS−422等の装置11との間に接続した通信
制御回路であって、ドライバ/レシーバ2に於いて、信
号レベルの変換や平衡−不平衡変換を行い、制御部3か
ら設定されたモードパラメータに従って且つ制御部3か
らのタイミング制御従って、動作コマンドライト,デー
タライト,コマンドリード,データリードの動作モード
によって、同期検出やシリアル・パラレル変換を行い、
異なる標準インタフェース間の変換によってデータを転
送する。[Function] The standard interface for personal computers is RS-23
2C is a communication control circuit connected between a device 1 such as 2C and a standard interface such as a data transmission device and a device 11 such as RS-422, and in the driver / receiver 2, signal level conversion and balance- Unbalance conversion is performed, and according to the mode parameters set by the control unit 3 and timing control from the control unit 3, synchronous detection or serial / parallel conversion is performed depending on the operation mode of operation command write, data write, command read, and data read. And then
Transfer data by converting between different standard interfaces.
【0016】又トランスミッタ/レシーバ4と装置11
との間にランダムアクセスメモリ7,8を配置する。こ
のランダムアクセスメモリ7,8は、制御部3からのタ
イミング制御によって装置11との間のデータを一時的
に蓄積し、バッファの機能を果たすものである。Also the transmitter / receiver 4 and the device 11
Random access memories 7 and 8 are arranged between and. The random access memories 7 and 8 temporarily store data with the device 11 under the timing control of the control unit 3 and serve as a buffer.
【0017】このランダムアクセスメモリ7,8をデュ
アルポート・ランダムアクセスメモリとした場合、デー
タのリード・ライトを同時的に行うことが可能となり、
制御部3による制御が容易となる。When the random access memories 7 and 8 are dual port random access memories, it is possible to read and write data simultaneously.
The control by the control unit 3 becomes easy.
【0018】又制御部3の設定部14は、複数の設定ス
イッチ等により構成し、同期,非同期,ボーレート,パ
リティチェックの有無等のモードパラメータを設定して
おき、初期設定時に、この設定部14に設定されたモー
ドパラメータをトランスミッタ/レシーバ4のモードレ
ジスタ15に設定する。The setting unit 14 of the control unit 3 is composed of a plurality of setting switches and the like, and sets mode parameters such as synchronous, asynchronous, baud rate, parity check presence / absence, and the like. The mode parameter set to (1) is set in the mode register 15 of the transmitter / receiver 4.
【0019】[0019]
【実施例】図1は本発明の実施例の説明図であり、1は
一方の形式の標準インタフェースの例えばRS−232
Cの装置(以下パソコンとする)、2はドライバ/レシ
ーバ、3は制御部、4はトランスミッタ/レシーバ、
5,6は送信レジスタ及び受信レジスタ、7,8はラン
ダムアクセスメモリ、9はレシーバ、10はドライバ、
11は他方の形式の標準インタフェースの例えばRS−
422の装置(以下データ伝送装置とする)、12はR
S−232Cのインタフェース回路(IF)、13はR
S−422のインタフェース回路(IF)、14は設定
部、15はモードコマンドレジスタである。1 is an explanatory view of an embodiment of the present invention, in which 1 is a standard interface of one type, for example RS-232.
C device (hereinafter referred to as a personal computer), 2 is a driver / receiver, 3 is a control unit, 4 is a transmitter / receiver,
5, 6 are transmission registers and reception registers, 7, 8 are random access memories, 9 is a receiver, 10 is a driver,
11 is a standard interface of the other type, for example RS-
422 device (hereinafter referred to as data transmission device), 12 is R
Interface circuit (IF) of S-232C, 13 is R
An interface circuit (IF) of S-422, 14 is a setting unit, and 15 is a mode command register.
【0020】制御部3は、モードパラメータの設定や送
受信クロック信号の設定等を行う設定部14と、図示を
省略している論理制御を行うプロセッサやクロック発生
部,分配部等を含むものである。又ドライバ/レシーバ
2は、例えば、図8に示すように、正負出力端子を備え
たドライバ61及び差動増幅器の構成を有するレシーバ
62とにより構成し、正負出力端子A,B及びアース端
子Cの選択接続によって、平衡−平衡,平衡−不平衡等
によるデータの送受信を行うものである。又パソコン1
の標準インタフェースはRS−232Cであるから、ド
ライバ/レシーバ2との間は不平衡型のインタフェース
回路となる。The control unit 3 includes a setting unit 14 for setting a mode parameter and a transmission / reception clock signal, and a processor (not shown) for performing logic control, a clock generation unit, a distribution unit, and the like. Further, the driver / receiver 2 is composed of, for example, as shown in FIG. 8, a driver 61 having a positive / negative output terminal and a receiver 62 having a differential amplifier configuration, and the positive / negative output terminals A and B and the ground terminal C are provided. By selective connection, data transmission / reception by balanced-balanced, balanced-unbalanced, etc. is performed. Also personal computer 1
Since the standard interface of RS-232C is RS-232C, it becomes an unbalanced interface circuit with the driver / receiver 2.
【0021】又送信レジスタ5と受信レジスタ6とは、
トランスミッタ/レシーバ4との間で1バイトのデータ
を並列に転送する場合のラッチ回路に相当する。又ラン
ダムアクセスメモリ7,8は、1ブロックのデータを一
時的に蓄積できる容量を有するものであり、制御部3に
よりデータのリード,ライトが制御される。又デュアル
ポート・ランダムアクセスメモリとすることができる。
又レシーバ9とドライバ10とは、データ伝送装置11
のインタフェース回路13との間を、標準インタフェー
スのRS−422に従ってデータを送受信するものであ
る。即ち、平衡型のインタフェース回路となる。The transmission register 5 and the reception register 6 are
It corresponds to a latch circuit when transferring 1-byte data in parallel with the transmitter / receiver 4. The random access memories 7 and 8 have a capacity capable of temporarily storing one block of data, and the control unit 3 controls reading and writing of data. It can also be a dual port random access memory.
Further, the receiver 9 and the driver 10 are the data transmission device 11
Data is transmitted / received to / from the interface circuit 13 according to the standard interface RS-422. That is, it becomes a balanced type interface circuit.
【0022】又ドライバ/レシーバ2と接続されたトラ
ンスミッタ/レシーバ4は、例えば、図2に示す構成を
有するものである。同図に於いて、20は制御論理部、
21はモードレジスタ、22はコマンドレジスタ、23
はステータスレジスタ、24は送信データバッファレジ
スタ、25は受信データバッファレジスタ、26は同期
キャラクタレジスタ、27は送信バッファ・送信部、2
8は受信バッファ・受信部、29はモデム制御部、30
は内部バス、31はデータバスを示し、半導体集積回路
(IC)化されている。The transmitter / receiver 4 connected to the driver / receiver 2 has, for example, the configuration shown in FIG. In the figure, 20 is a control logic unit,
21 is a mode register, 22 is a command register, and 23.
Is a status register, 24 is a transmission data buffer register, 25 is a reception data buffer register, 26 is a synchronous character register, 27 is a transmission buffer / transmission unit, 2
8 is a reception buffer / reception unit, 29 is a modem control unit, 30
Indicates an internal bus and 31 indicates a data bus, which are integrated into a semiconductor integrated circuit (IC).
【0023】制御論理部20は、図1の制御部3と接続
され、制御部3からのクロック信号等に従って各部を制
御するものである。又モードレジスタ21は、制御部3
の設定部14に設定したモードパラメータが、電源投入
等による初期設定時に設定される。又コマンドレジスタ
22は、制御部3等からのコマンドが書込まれる。又ス
テータスレジスタ23は、送信データバッファレジスタ
24や受信データバッファレジスタ25の状態やモデム
制御部29に接続された信号線の状態やエラー情報等の
ステータス情報を保持する。The control logic unit 20 is connected to the control unit 3 shown in FIG. 1 and controls each unit according to a clock signal from the control unit 3. Further, the mode register 21 is used by the control unit 3
The mode parameter set in the setting unit 14 is set at the time of initial setting such as power-on. Further, the command from the control unit 3 or the like is written in the command register 22. The status register 23 holds the status of the transmission data buffer register 24 and the reception data buffer register 25, the status of the signal line connected to the modem control unit 29, and status information such as error information.
【0024】又送信データバッファレジスタ24は、送
信レジスタ5(図1参照)からデータバス31を介して
加えられた送信データを保持し、送信バッファ・送信部
27に転送する。又受信データバッファレジスタ25
は、受信バッファ・受信部28からのデータを保持し、
データバス31を介して受信データとして受信レジスタ
6(図1参照)に送出する。又同期キャラクタレジスタ
26は、同期モードに於いて、モードパラメータの次の
1又は2個の同期キャラクタを保持するもので、データ
受信時に、この同期キャラクタと受信したキャラクタと
を比較し、比較一致の時に同期確立とする。The transmission data buffer register 24 holds transmission data added from the transmission register 5 (see FIG. 1) via the data bus 31 and transfers it to the transmission buffer / transmission unit 27. In addition, the reception data buffer register 25
Holds the data from the reception buffer / reception unit 28,
The received data is sent to the receiving register 6 (see FIG. 1) via the data bus 31. The sync character register 26 holds one or two sync characters next to the mode parameter in the sync mode. When data is received, this sync character is compared with the received character, and a comparison match is made. Sometimes synchronization is established.
【0025】又送信バッファ・送信部27は、送信デー
タバッファレジスタ24からの転送されたパラレルデー
タをシリアルデータに変換し、スタートビット,ストッ
プビット,パリティビットの付加等を行ってドライバ/
レシーバ2(図1参照)に送出する。又受信バッファ・
受信部28は、ドライバ/レシーバ2(図1参照)から
のシリアル受信データをパラレルデータに変換し、モー
ドパラメータに従ってチェックし、編集して受信データ
バッファレジスタ25に転送する。その場合、調歩同期
モードに於けるスタートビット,ストップビットの検
出,パリティビットのチェック等を行い、又同期モード
に於ける同期キャラクタの検出,パリティビットのチェ
ック等を行う。又モデム制御部29は、モデムが接続さ
れた場合の制御部である。Further, the transmission buffer / transmission unit 27 converts the parallel data transferred from the transmission data buffer register 24 into serial data and adds a start bit, a stop bit, a parity bit, etc. to the driver / driver.
It is sent to the receiver 2 (see FIG. 1). Also receive buffer
The reception unit 28 converts the serial reception data from the driver / receiver 2 (see FIG. 1) into parallel data, checks it according to the mode parameter, edits it, and transfers it to the reception data buffer register 25. In that case, the start bit and the stop bit are detected in the start-stop synchronization mode, the parity bit is checked, and the like, and the synchronization character is detected and the parity bit is checked in the synchronization mode. The modem control unit 29 is a control unit when a modem is connected.
【0026】図3はモードパラメータの設定説明図であ
り、制御部3の設定部14の一部をスイッチSW1〜S
W8により構成した場合を示す。又スイッチSW1〜S
W8のオン(ON),オフ(OFF)によるデータビッ
トは、BIT7〜BIT0が対応する場合を示す。この
スイッチSW1,SW2によりデータビット用ボーレー
トを設定し、スイッチSW3,SW4によりキャラクタ
ビット長を設定し、スイッチSW5,SW6によりパリ
ティチェックの有無を設定し、スイッチSW7,SW8
によりストップビット長を設定することができる。FIG. 3 is an explanatory diagram of the setting of the mode parameters, in which a part of the setting unit 14 of the control unit 3 is provided with the switches SW1 to SW.
The case where it is configured by W8 is shown. Also switches SW1 to S
The data bit depending on ON (ON) and OFF (OFF) of W8 indicates a case where BIT7 to BIT0 correspond. The data bit baud rate is set by the switches SW1 and SW2, the character bit length is set by the switches SW3 and SW4, the presence or absence of parity check is set by the switches SW5 and SW6, and the switches SW7 and SW8.
The stop bit length can be set by.
【0027】従って、図示の設定状態、即ち、SW1=
OFF,SW2=ONにより2400bpsのボーレー
トを設定し、SW3=ON,SW4=ONによりキャラ
クタビット長が8ビットであることを設定し、SW5=
OFF,SW6=OFFによりパリティチェックなしを
設定し、SW7=ON,SW8=OFFによりストップ
ビット長を1ビットに設定することができる。なお、ス
イッチSW1〜SW8は、各種の小型手動設定スイッチ
を適用することができる。又設定部14をメモリによっ
て構成し、パソコン1からモードパラメータを設定する
ことも可能である。Therefore, the setting state shown in the figure, that is, SW1 =
A baud rate of 2400 bps is set by OFF and SW2 = ON, a character bit length of 8 bits is set by SW3 = ON and SW4 = ON, and SW5 =
No parity check can be set by OFF and SW6 = OFF, and the stop bit length can be set to 1 bit by SW7 = ON and SW8 = OFF. Various small manual setting switches can be applied to the switches SW1 to SW8. It is also possible to configure the setting unit 14 with a memory and set the mode parameter from the personal computer 1.
【0028】図4は送受信クロックの設定説明図であ
り、制御部3の設定部14の一部を設定器TM1,TM
2,TM6により構成した場合を示す。設定器TM1
は、接点2,3間をショートし、設定器TM2は、接点
1,2間をショートし、設定器TM6は、接点2,3間
をショートした場合を示し、これによって、ボーレート
クロック信号を、384kHzに設定する場合を示す。FIG. 4 is an explanatory diagram of the setting of the transmission / reception clock, in which a part of the setting unit 14 of the control unit 3 is set by the setting devices TM1 and TM
2 shows the case of TM6. Setting device TM1
Shows the case where the contacts 2 and 3 are short-circuited, the setting device TM2 short-circuits the contacts 1 and 2, and the setting device TM6 shows the case where the contacts 2 and 3 are short-circuited, whereby the baud rate clock signal is The case of setting to 384 kHz is shown.
【0029】図5は本発明の実施例のタイミング説明図
であり、(R)はリードタイミング信号、(W)はライ
トタイミング信号、(CMDT)はコマンドタイミング
信号を示し、リードタイミング信号(R)及びライトタ
イミング信号(W)はシステムクロック信号に同期した
ものである。又このシステムクロック信号の1周期を4
分割し、(R)=“1”,(W)=“0”,(CMD
T)=“1”の期間を動作コマンドライト、(R)=
“1”,(W)=“0”,(CMDT)=“0”の期間
をデータライト、(R)=“0”,(W)=“1”,
(CMDT)=“1”の期間をコマンドリード、(R)
=“0”,(W)=“1”,(CMDT)=“0”の期
間をデータリードとする。FIG. 5 is a timing explanatory diagram of the embodiment of the present invention. (R) shows a read timing signal, (W) shows a write timing signal, (CMDT) shows a command timing signal, and a read timing signal (R). The write timing signal (W) is synchronized with the system clock signal. In addition, one cycle of this system clock signal is 4
It is divided into (R) = "1", (W) = "0", (CMD
T) = “1” period, operation command write, (R) =
Data write during the period of "1", (W) = "0", (CMDT) = "0", (R) = "0", (W) = "1",
Command read during (CMDT) = "1" period, (R)
Data read is performed during a period of "0", (W) = "1", (CMDT) = "0".
【0030】制御部3からトランスミッタ/レシーバ4
の制御論理部20に、前述のシステムクロック信号に同
期した前述のリードタイミング信号(R)とライトタイ
ミング信号(W)とコマンドタイミング信号(CMD
T)とが加えられることにより、制御論理部20は、動
作コマンドライト,データライト,コマンドリード,デ
ータリードの期間に対応して各部を制御することにな
る。例えば、データライトの期間で1バイト分のデータ
を送信し、データリードの期間で1バイト分のデータを
受信する。この場合の各タイミング信号の速度を大きく
することが容易であるから、各タイミング信号の速度に
対応して送受信データの速度を大きくすることができ
る。Control unit 3 to transmitter / receiver 4
Of the read timing signal (R), the write timing signal (W), and the command timing signal (CMD) synchronized with the system clock signal.
T) is added, the control logic unit 20 controls each unit according to the periods of operation command write, data write, command read, and data read. For example, 1 byte of data is transmitted during the data write period, and 1 byte of data is received during the data read period. In this case, since it is easy to increase the speed of each timing signal, it is possible to increase the speed of transmission / reception data corresponding to the speed of each timing signal.
【0031】図6は本発明の実施例の動作説明図であ
り、電源オン又はシステムリセットにより(1)、予め
制御部3の設定部14に設定したモードパラメータを、
トランスミッタ/レシーバ4のモードレジスタ15に設
定する(2)。そして、図5に示すタイミングに従っ
て、動作コマンドライト(3)、データライト(4)、
コマンドリード(5)、データリード(6)の動作を行
い、処理終了か否かを判定し(7)、終了でない場合
は、ステップ(3)に移行する。又終了の場合は、例え
ば、電源オフとする。FIG. 6 is a diagram for explaining the operation of the embodiment of the present invention. Mode parameter set in advance in the setting unit 14 of the control unit 3 by power-on or system reset (1),
It is set in the mode register 15 of the transmitter / receiver 4 (2). Then, in accordance with the timing shown in FIG. 5, the operation command write (3), the data write (4),
Command read (5) and data read (6) operations are performed, and it is determined whether or not the processing is completed (7). If not completed, the process proceeds to step (3). When the operation is finished, the power is turned off, for example.
【0032】例えば、パソコン1からデータ伝送装置1
1に、調歩同期により2400bpsの速度で72バイ
トのデータを送信する場合、トランスミッタ/レシーバ
4のモードレジスタ15に、図3に示すモードパラメー
タが設定され、パソコン1のインタフェース回路12か
らドライバ/レシーバ2に、標準インタフェースのRS
−232Cに従ってシリアルデータとして送信される。For example, from the personal computer 1 to the data transmission device 1
1, when 72 bytes of data is transmitted at a speed of 2400 bps by start-stop synchronization, the mode parameters shown in FIG. 3 are set in the mode register 15 of the transmitter / receiver 4, and the interface circuit 12 of the personal computer 1 drives the driver / receiver 2 In addition, RS of standard interface
It is transmitted as serial data according to -232C.
【0033】トランスミッタ/レシーバ4は、シリアル
データを同期検出により8ビットパラレルに変換し、受
信レジスタ6に1バイトのデータをラッチし、その1バ
イトのデータをランダムアクセスメモリ8に書込む。こ
のランダムアクセスメモリ8は前述のように所定バイト
を1ブロックとし、1ブロック分を蓄積できる容量を有
するものである。そして、ランダムアクセスメモリ8か
ら読出したデータをドライバ10を介してデータ伝送装
置11のインタフェース回路13にシリアルデータとし
て転送する。この場合、制御部3は、図示を省略したア
ドレスカウンタ等を備え、ランダムアクセスメモリ8に
対して0〜71のライトアドレス及びリードアドレスを
発生して、データのライト及びリードを制御するもので
ある。The transmitter / receiver 4 converts serial data into 8-bit parallel data by synchronous detection, latches 1-byte data in the reception register 6, and writes the 1-byte data in the random access memory 8. As described above, the random access memory 8 has a capacity capable of accommodating a predetermined byte as one block. Then, the data read from the random access memory 8 is transferred as serial data to the interface circuit 13 of the data transmission device 11 via the driver 10. In this case, the control unit 3 includes an address counter (not shown) and the like, generates write addresses and read addresses of 0 to 71 with respect to the random access memory 8, and controls writing and reading of data. .
【0034】又データ伝送装置11からパソコン1に対
するデータは、インタフェース回路13,レシーバ9,
ランダムアクセスメモリ7,送信レジスタ5,トランス
ミッタ/レシーバ4,ドライバ/レシーバ2の経路で転
送される。又ランダムアクセスメモリ7,8をデュアル
ポート・ランダムアクセスメモリとした場合、両方のポ
ートにアドレス制御線があるから、リード,ライトの切
替えを行うことなく、データのリード,ライトが可能と
なり、制御が容易となる。Data from the data transmission device 11 to the personal computer 1 is transferred to the interface circuit 13, receiver 9,
The data is transferred through the path of the random access memory 7, the transmission register 5, the transmitter / receiver 4, and the driver / receiver 2. When the random access memories 7 and 8 are dual port random access memories, since both ports have address control lines, data can be read and written without switching between read and write, and control can be performed. It will be easy.
【0035】又パソコン1からトランスミッタ/レシー
バ4のモードレジスタ15及びコマンドレジスタに設定
されたモードパラメータやコマンドを設定又は確認する
構成とすることができるもので、例えば、モードレジス
タとコマンドレジスタとの内容をバイト単位で転送する
構成とすることができる。Further, the personal computer 1 can be configured to set or confirm the mode parameters and commands set in the mode register 15 and command register of the transmitter / receiver 4, for example, the contents of the mode register and the command register. Can be transferred in byte units.
【0036】前述の実施例は、標準インタフェースのR
S−232CとRS−422との間のインタフェース変
換によるデータ転送の場合を示すが、他の標準インタフ
ェース、例えば、RS−423或いはV10,V11等
による場合にも本発明を適用できるものである。又送信
レジスタ5や受信レジスタ6等を省略した構成とするこ
とも可能である。又トランスミッタ/レシーバ4は、図
2に示す構成以外の処理機能を有する構成とすることも
可能である。In the above-described embodiment, the standard interface R
The case of data transfer by interface conversion between S-232C and RS-422 is shown, but the present invention can be applied to the case of using another standard interface such as RS-423 or V10, V11. It is also possible to omit the transmission register 5, the reception register 6 and the like. Further, the transmitter / receiver 4 can be configured to have processing functions other than the configuration shown in FIG.
【0037】[0037]
【発明の効果】以上説明したように、本発明は、異なる
標準インタフェース間のインタフェース変換によりデー
タを転送する場合に、ハードウェアによるタイミング制
御によって行う構成としたもので、高速処理が可能とな
るから、例えば、RS−232Cの標準インタフェース
のパソコン1により、RS−422の標準インタフェー
スのデータ伝送装置11の監視,試験等を行う場合のデ
ータの送受信を、比較的簡単な構成が且つ高速で行うこ
とができる利点がある。又ランダムアクセスメモリ7,
8を介在させることにより、複数バイトからなるデータ
についても安定な送受信が可能となる。As described above, according to the present invention, when data is transferred by interface conversion between different standard interfaces, it is configured to be controlled by timing by hardware, and high speed processing is possible. For example, when a personal computer 1 having a standard interface of RS-232C monitors and tests the data transmission device 11 having a standard interface of RS-422, data transmission / reception can be performed with a relatively simple configuration and at high speed. There is an advantage that can be. Random access memory 7,
By interposing 8 between them, stable transmission / reception of data consisting of a plurality of bytes becomes possible.
【図面の簡単な説明】[Brief description of drawings]
【図1】本発明の実施例の説明図である。FIG. 1 is an explanatory diagram of an embodiment of the present invention.
【図2】本発明の実施例の制御部のブロック図である。FIG. 2 is a block diagram of a control unit according to the embodiment of this invention.
【図3】モードパラメータの設定説明図である。FIG. 3 is an explanatory diagram of setting mode parameters.
【図4】送受信クロックの設定説明図である。FIG. 4 is an explanatory diagram for setting a transmission / reception clock.
【図5】本発明の実施例のタイミング説明図である。FIG. 5 is a timing explanatory diagram of the embodiment of the present invention.
【図6】本発明の実施例の動作説明図である。FIG. 6 is an operation explanatory diagram of the embodiment of the present invention.
【図7】従来例の説明図である。FIG. 7 is an explanatory diagram of a conventional example.
【図8】平衡型及び不平衡型インタフェース回路の説明
図である。FIG. 8 is an explanatory diagram of a balanced type and unbalanced type interface circuit.
【図9】従来例のフローチャートである。FIG. 9 is a flowchart of a conventional example.
1 パソコン 2 ドライバ/レシーバ 3 制御部 4 トランスミッタ/レシーバ 5 送信レジスタ 6 受信レジスタ 7,8 ランダムアクセスメモリ 9 レシーバ 10 ドライバ 11 データ伝送装置 12,13 インタフェース回路(IF) 14 設定部 15 モードレジスタ 1 personal computer 2 driver / receiver 3 control unit 4 transmitter / receiver 5 transmission register 6 reception register 7, 8 random access memory 9 receiver 10 driver 11 data transmission device 12, 13 interface circuit (IF) 14 setting unit 15 mode register
Claims (4)
方の形式の標準インタフェースに変換してデータを送受
信する通信制御回路に於いて、 入出力信号間の電圧レベルと平衡−不平衡との何れか一
方又は両方の変換を行うドライバ/レシーバと、 該ドライバ/レシーバと接続されて、転送するデータの
同期検出,シリアル・パラレル変換,転送モードの選
択,データのパリティチェック等を行うトランスミッタ
/レシーバと、 該トランスミッタ/レシーバにモードパラメータを初期
設定し、且つ該トランスミッタ/レシーバを、動作コマ
ンドライト,データライト,コマンドリード,データリ
ードの動作モードに、システムクロック信号の周期毎に
繰り返して制御し、前記一方の形式の標準インタフェー
スと前記他方の形式の標準インタフェースとの間の変換
処理を行わせる制御部とを備えたことを特徴とする通信
制御回路。1. A communication control circuit for converting a standard interface of one type into a standard interface of the other type for transmitting and receiving data, wherein one of a voltage level between input and output signals and balanced-unbalanced Or a driver / receiver for performing both conversions, and a transmitter / receiver connected to the driver / receiver for performing synchronization detection of data to be transferred, serial / parallel conversion, transfer mode selection, data parity check, and the like, A mode parameter is initialized in the transmitter / receiver, and the transmitter / receiver is repeatedly controlled in each of operation clock write, data write, command read, and data read operation modes at every cycle of the system clock signal. Format standard interface and the other format standard interface A communication control circuit, comprising:
は前記他方の形式の標準インタフェースの装置と、前記
トランスミッタ/レシーバとの間に、前記制御部によっ
てタイミングが制御され、且つ少なくとも1ブロック分
のデータを一時的に蓄積するランダムアクセスメモリを
設けたことを特徴とする請求項1記載の通信制御回路。2. The timing between the transmitter / receiver and the device of the standard interface of one type or the standard interface of the other type and the timing is controlled by the control unit, and at least one block of data is stored. The communication control circuit according to claim 1, further comprising a random access memory for temporarily storing the random access memory.
ルポート・ランダムアクセスメモリにより構成したこと
を特徴とする請求項2記載の通信制御回路。3. The communication control circuit according to claim 2, wherein the random access memory is a dual port random access memory.
たモードパラメータを設定する設定部と、該設定部のモ
ードパラメータを初期設定時に前記トランスミッタ/レ
シーバのモードレジスタに設定する構成とを備えたこと
を特徴とする請求項1記載の通信制御回路。4. The control unit comprises a setting unit for setting a mode parameter manually or externally input, and a configuration for setting the mode parameter of the setting unit in a mode register of the transmitter / receiver at the time of initial setting. The communication control circuit according to claim 1, wherein:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7183773A JPH0936930A (en) | 1995-07-20 | 1995-07-20 | Communication control circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7183773A JPH0936930A (en) | 1995-07-20 | 1995-07-20 | Communication control circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0936930A true JPH0936930A (en) | 1997-02-07 |
Family
ID=16141704
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7183773A Withdrawn JPH0936930A (en) | 1995-07-20 | 1995-07-20 | Communication control circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0936930A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001337911A (en) * | 2000-05-25 | 2001-12-07 | Hitachi Ltd | USB-ATAPI interface system and ATAPI-USB conversion device used for it |
-
1995
- 1995-07-20 JP JP7183773A patent/JPH0936930A/en not_active Withdrawn
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001337911A (en) * | 2000-05-25 | 2001-12-07 | Hitachi Ltd | USB-ATAPI interface system and ATAPI-USB conversion device used for it |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4460957A (en) | Self-pacing serial keyboard interface for data processing system | |
| US5758073A (en) | Serial interface between DSP and analog front-end device | |
| US6442628B1 (en) | Method and system for automatically determining maximum data throughput over a bus | |
| US5374926A (en) | Communications circuit having an interface for external address decoding | |
| TWI293216B (en) | Interface integrated circuit device for a usb connection | |
| US6119183A (en) | Multi-port switching system and method for a computer bus | |
| US4048673A (en) | Cpu - i/o bus interface for a data processing system | |
| EP0893767A2 (en) | A method for flexible multiple access on a serial bus by a plurality of boards | |
| US4779190A (en) | Communication bus interface | |
| US20100064083A1 (en) | Communications device without passive pullup components | |
| US4156931A (en) | Digital data communications device with standard option connection | |
| US4047246A (en) | I/O bus transceiver for a data processing system | |
| US4047201A (en) | I/O Bus transceiver for a data processing system | |
| CN114168508B (en) | Single-wire bidirectional communication circuit and single-wire bidirectional communication method | |
| JP3838809B2 (en) | Serial data transfer device | |
| CN119046201A (en) | Multi-target data writing method | |
| JP3940843B2 (en) | Serial communication system and local terminal for serial communication | |
| CN222281218U (en) | High-speed communication interface circuit, high-speed SWD communication device | |
| CN223390114U (en) | AR glasses control box | |
| KR100269260B1 (en) | ATM subscriber terminal device | |
| US4855948A (en) | Bypass booster mechanisms for the line scanners of a communication controller | |
| CN101364213B (en) | Data access system | |
| JPS61234145A (en) | General-purpose interface communication device | |
| KR20050056213A (en) | Interface integrated circuit device for a usb connection | |
| SU809143A1 (en) | Device for interfacing with computer system common line |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20021001 |