[go: up one dir, main page]

JPH0537572A - Data transmission speed converter - Google Patents

Data transmission speed converter

Info

Publication number
JPH0537572A
JPH0537572A JP3194386A JP19438691A JPH0537572A JP H0537572 A JPH0537572 A JP H0537572A JP 3194386 A JP3194386 A JP 3194386A JP 19438691 A JP19438691 A JP 19438691A JP H0537572 A JPH0537572 A JP H0537572A
Authority
JP
Japan
Prior art keywords
data
bit
circuit
level
sampling
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.)
Granted
Application number
JP3194386A
Other languages
Japanese (ja)
Other versions
JP2794994B2 (en
Inventor
Toshiaki Miyake
俊明 三宅
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
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP3194386A priority Critical patent/JP2794994B2/en
Publication of JPH0537572A publication Critical patent/JPH0537572A/en
Application granted granted Critical
Publication of JP2794994B2 publication Critical patent/JP2794994B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To attain the connection of a communication line at an optional transmission speed to an input section by recognizing an inputted data transmission speed and outputting a data at the fixed transmission speed when the communication line whose transmission speed is unknown is connected. CONSTITUTION:A buffer 1 converts an input signal of a level of RS-232C into a TTL level. When a start bit detection circuit 2 detects the trailing of a data, an address control circuit 3 detects a clock 21, a latch circuit 4 samples a data according to the clock and latches it, a selector 5 is thrown to the position through which a data is sent from the circuit 4 to a memory 6. The circuit 3 counts the clock number and outputs the storage data in the memory 6 to a bit check circuit 7, which checks a start stop bit and a parity bit and a conversion circuit 8 applies P/S conversion to the data when no error is in existence, and a buffer 9 restores the data of TTL level into a level of the RS-232C and outputs the result to a terminal equipment. Thus, the communication line at an optional transmission speed is connected to the input section.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はデータ伝送速度変換装置
に関し、特に調歩同期通信において、少なくとも入力さ
れるデータ伝送速度が未定の汎用端末から他の端末へ接
続する際に、入力されるデータ伝送速度を認知し固定の
伝送速度のデータを出力するデータ伝送速度変換装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission rate conversion device, and in particular, in start-stop synchronization communication, data transmission to be input when a general-purpose terminal whose input data transmission rate is undetermined is connected to another terminal. The present invention relates to a data transmission rate conversion device which recognizes a rate and outputs data having a fixed transmission rate.

【0002】[0002]

【従来の技術】従来の調歩同期通信回路は一たん伝送速
度を設定すると、その送速度に固定されてしまうので、
事前に入力される伝送速度を知りその値を設定する必要
があった。この入力される伝送速度を自動判定する方法
の場合としては、送信側でデータのスタートビットの次
のビットが常に“1”となるように送ってもらい、この
スタートビットの長さを計数するカウンタを設けて、こ
の計数値によりデータの伝送速度を自動判定していた。
(例えば特開平1−305644参照)
2. Description of the Related Art In a conventional asynchronous communication circuit, once the transmission speed is set, it is fixed at that transmission speed.
It was necessary to know the transmission rate input in advance and set that value. As a method of automatically determining the input transmission rate, a counter that counts the length of this start bit is requested by the transmission side so that the bit next to the start bit of the data is always "1". Is provided, and the data transmission rate is automatically determined based on this count value.
(See, for example, JP-A-1-305644)

【発明が解決しようとする課題】上述した従来の調歩同
期通信方式は伝送速度が固定されているので、伝送速度
の異なる端末と接続する事はできないという欠点があ
る。また伝送速度を自動判定する従来の方法では送信装
置側で前述したようなデータに細工する必要があるの
で、汎用の装置と接続して伝送速度の自動判定を行なう
事ができず専用の送信装置を用いる必要があるという欠
点がある。
Since the above-mentioned conventional asynchronous communication system has a fixed transmission rate, it has a drawback that it cannot be connected to terminals having different transmission rates. Further, in the conventional method of automatically determining the transmission rate, it is necessary to modify the data as described above on the transmitting device side, so it is not possible to connect to a general-purpose device to automatically determine the transmission rate and to use a dedicated transmitting device. There is a drawback that it is necessary to use.

【0003】[0003]

【課題を解決するための手段】本発明のデータ伝送速度
間装置はRS−232CレベルをTTLレベルに変換す
るレベル変換バッファと、本装置内で生成されるクロッ
クをもとに調歩同期データ信号のスタートビットを検出
するスタートビット検出回路と、データをサンプリング
して一時保持するラッチ回路と、このラッチ回路のサン
プリングデータを蓄わえるメモリと、サンプリング時と
ビットチェック時に前記メモリからの入出力を制御する
セレクタと、前記スタートビットからのクロック数を計
数してサンプリングのタイミング及びビットチェックの
メモリアドレスを制御するアドレス制御回路と、スター
ト・ストップビット及びパリティビットをチェックする
ビットチェック回路と、チェック後のデータをパラレル
シリアル変換するP/S変換回路と、TTLレベルをR
T−232Cレベルに変換するレベル変換バッファとを
有する。
SUMMARY OF THE INVENTION The data transmission rate apparatus of the present invention comprises a level conversion buffer for converting an RS-232C level into a TTL level and a start / stop synchronization data signal based on a clock generated in the apparatus. A start bit detection circuit that detects a start bit, a latch circuit that samples and temporarily holds data, a memory that stores the sampling data of this latch circuit, and an input / output from the memory at the time of sampling and bit check Selector, an address control circuit that counts the number of clocks from the start bit and controls sampling timing and a bit check memory address, a bit check circuit that checks a start / stop bit and a parity bit, and Converts data from parallel to serial / And S conversion circuit, the TTL level R
And a level conversion buffer for converting to a T-232C level.

【0004】[0004]

【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明の一実施例のブロック図、図2は本実
施例のデータサンプリングのタイミング図、図3は本実
施例のビットチェック用アドレスである。図1におい
て、レベル変換バッファ1はRS−232Cレベルで入
力された信号をTTLレベルに変換する。スタートビッ
ト検出回路2は受信データの立下りを検出するとアドレ
ス制御回路3にカウント開始信号を送る。アドレス制御
回路3は19200BPSのクロック21をラッチ回路
4に渡す。ラッチ回路4はそのクロックに従ってデータ
をサンプリングしてラッチする。セレクタ5はデータラ
ッチ時にはラッチ回路4からメモリ6にデータを通す。
メモリ6はアドレス制御回路3によりあたえられるアド
レスにラッチされたデータを格納する。アドレス制御回
路3は、必要のデータをラッチするとメモリ6からデー
タをビットチェック回路7に出力する。ビットチェック
回路7はスタート/ストップビット及びパリティビット
をチェックし、エラーがなければパラレルシリアル変換
回路(P/S)8にデータを出力する。P/S8は19
200BPSのクロックでデータのパラレル/シリアル
変換を行なう。レベル変換バッファ9はシリアルに直さ
れたTTLレベルのデータをRS−232Cレベルにも
どし端末装置に出力する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of one embodiment of the present invention, FIG. 2 is a timing chart of data sampling of this embodiment, and FIG. 3 is a bit check address of this embodiment. In FIG. 1, the level conversion buffer 1 converts a signal input at the RS-232C level into a TTL level. The start bit detection circuit 2 sends a count start signal to the address control circuit 3 when detecting the fall of the received data. The address control circuit 3 passes the 19200 BPS clock 21 to the latch circuit 4. The latch circuit 4 samples and latches data according to the clock. The selector 5 passes data from the latch circuit 4 to the memory 6 at the time of data latch.
The memory 6 stores the data latched at the address given by the address control circuit 3. When the address control circuit 3 latches the necessary data, it outputs the data from the memory 6 to the bit check circuit 7. The bit check circuit 7 checks the start / stop bit and the parity bit, and if there is no error, outputs the data to the parallel / serial conversion circuit (P / S) 8. P / S8 is 19
Parallel / serial conversion of data is performed with a clock of 200 BPS. The level conversion buffer 9 restores the serially converted TTL level data to the RS-232C level and outputs it to the terminal device.

【0005】次に1種類の固定クロック(19200B
PS)により、入力される伝送速度不定のデータをサン
プリングするタイミングと、サンプリングアドレスの関
係を図2,図3により説明する。図2は、クロック19
200BPSによりボーレート1,1/2,1/4,1
/8,1/16の5速、すなわち、19200BPS、
9600BPS、4800BPS、2400BPS、1
200BPSの伝送速度を判定する場合を示しており、
伝送速度9600BPSの場合には、クロックで定めら
れるサンプリング位置に対してサンプリングアドレス
1,3,5,〜19の位置(図の丸印)をサンプリング
する。図3に示すように、データビットがスタートビッ
ト1、データがLSBからMSBまで7ビット、パリテ
ィビット1、スタートビット1の場合に、ストップビッ
トのアドレス19の位置“1001B”をチェックして
伝送速度9600BPSと判定する。同様に、4800
BPSの場合には、サンプリングアドレス38の位置
“1001B”をチェックしてストップビットと判定し
て伝送速度4800BPSと判定する。このような動作
が各データ伝送速度についてスタートビット検出回路
2、アドレス制御回路3、ラッチ回路4、セレクタ5、
メモリ6、ビットチェック回路7により形成されるデー
タ伝送速度認識回路により行われる。このデータがP/
S変換回路8により19200BPSの固定伝送速度に
変換されて出力される。
Next, one type of fixed clock (19200B
The relationship between the sampling address and the timing of sampling the input data whose transmission rate is indefinite by PS) will be described with reference to FIGS. FIG. 2 shows a clock 19
Baud rate of 1, 1/2, 1/4, 1 with 200 BPS
/ 8, 1/16 5th speed, that is, 19200 BPS,
9600BPS, 4800BPS, 2400BPS, 1
It shows the case of determining the transmission rate of 200 BPS,
In the case of a transmission rate of 9600 BPS, the positions of sampling addresses 1, 3, 5 to 19 (circles in the figure) are sampled with respect to the sampling positions defined by the clock. As shown in FIG. 3, when the data bit is the start bit 1, the data is 7 bits from the LSB to the MSB, the parity bit 1 and the start bit 1, the position "1001B" of the address 19 of the stop bit is checked to check the transmission speed. It is determined to be 9600 BPS. Similarly, 4800
In the case of BPS, the position "1001B" of the sampling address 38 is checked, it is determined that it is a stop bit, and the transmission rate is 4800 BPS. Such an operation is performed for each data transmission rate by the start bit detection circuit 2, the address control circuit 3, the latch circuit 4, the selector 5,
This is performed by a data transmission rate recognition circuit formed by the memory 6 and the bit check circuit 7. This data is P /
The S conversion circuit 8 converts it to a fixed transmission rate of 19200 BPS and outputs it.

【0006】以上述べたようにサンプリングは1920
0BPSの一定のクロックで行ない、チェックに用いる
アドレスを特定のパターンをビットシフトして使用する
ために、回路規模を小さくする事ができる。また低速の
データに対してもデータのチェックポイントはデータの
変化点の中央近くにする事ができる。
As described above, sampling is performed in 1920
The circuit scale can be reduced because the address used for checking is bit-shifted with a specific pattern and used with a constant clock of 0 BPS. Even for low speed data, the data check point can be near the center of the data change point.

【0007】[0007]

【発明の効果】以上説明したように本発明のデータ伝送
速度変換装置本体を調歩同期通信路に挿入する事によ
り、スタートビット検出から高速クロックでデータをサ
ンプリングし、伝送速度に応じたサンプリングデータを
用いてエラーチェックをして150ボーから19.2キ
ロボーまでの入力データの伝送速度がわからない通信路
を19.2キロボーの固定伝送速度に自動変換して端末
に送信するので、入力部に任意の伝送速度の通信路を接
続する事ができる。また1データ毎にエラーチェックを
行なっているためデータが1バイト単位で伝送速度が変
わっても対応できるため複数の伝送速度の異なる通信路
を1つの回路で伝送速度の変換をする事を可能とする効
果がある。
As described above, by inserting the data transmission rate converter main body of the present invention into the asynchronous communication channel, the data is sampled by the high speed clock from the start bit detection, and the sampling data corresponding to the transmission rate is obtained. The error check is performed by using the communication path from 150 baud to 19.2 kilobaud for which the transmission rate of the input data is unknown, and it is automatically converted to a fixed transmission rate of 19.2 kilobaud and transmitted to the terminal. It is possible to connect a communication path of transmission speed. In addition, since error checking is performed for each data, it is possible to cope with the case where the transmission rate of the data changes in units of 1 byte, so that it is possible to convert the transmission rate of a plurality of communication paths with different transmission rates with one circuit. Has the effect of

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

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

【図2】本実施例を説明するサンプリングタイミング図
である。
FIG. 2 is a sampling timing chart for explaining the present embodiment.

【図3】本実施例を説明するサンプリングアドレスの説
明図である。
FIG. 3 is an explanatory diagram of sampling addresses for explaining the present embodiment.

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

1 レベル変換バッファ 2 スタートビット検出回路 3 アドレス制御回路 4 ラッチ回路 5 セレクタ 6 メモリ 7 ビットチェック回路 8 パラレル/シリアル変換回路(P/S) 9 レベル変換バッファ 1 level conversion buffer 2 Start bit detection circuit 3 Address control circuit 4 Latch circuit 5 selector 6 memory 7-bit check circuit 8 Parallel / serial conversion circuit (P / S) 9 level conversion buffer

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 RS−232CレベルをTTLレベルに
変換するレベル変換バッファと、本装置内で生成される
クロックをもとに調歩同期データ信号のスタートビット
を検出するスタートビット検出回路と、データをサンプ
リングして一時保持するラッチ回路と、このラッチ回路
のサンプリングデータを蓄わえるメモリと、サンプリン
グ時とビットチェック時に前記メモリからの入出力を制
御するセレクタと、前記スタートビットからのクロック
数を計数してサンプリングのタイミング及びビットチェ
ックのメモリアドレスを制御するアドレス制御回路と、
スタート・ストップビット及びパリティビットをチェッ
クするビットチェック回路と、チェック後のデータをパ
ラレルシリアル変換するP/S変換回路と、TTLレベ
ルをRT−232Cレベルに変換するレベル変換バッフ
ァとを有することを特徴とするデータ伝送速度変換装
置。
1. A level conversion buffer for converting an RS-232C level to a TTL level, a start bit detection circuit for detecting a start bit of an start / stop synchronization data signal based on a clock generated in the present device, and data Latch circuit for sampling and holding temporarily, memory for storing sampling data of this latch circuit, selector for controlling input / output from the memory at the time of sampling and bit check, and counting the number of clocks from the start bit And an address control circuit for controlling sampling timing and memory address for bit check,
A bit check circuit for checking a start / stop bit and a parity bit, a P / S conversion circuit for performing parallel / serial conversion on the checked data, and a level conversion buffer for converting a TTL level into an RT-232C level. And data transmission rate converter.
【請求項2】 前記アドレス制御回路のサンプリングア
ドレスが特定のビットパターンをビットシフトして生成
されることを特徴とする請求項1記載のデータ伝送速度
変換装置。
2. The data transmission rate converter according to claim 1, wherein the sampling address of the address control circuit is generated by bit-shifting a specific bit pattern.
【請求項3】 前記サンプリング用のクロックが前記P
/S変換回路から出力されるシリアルデータ信号のクロ
ックとして使用されることを特徴とする請求項1記載の
データ伝送速度変換装置。
3. A clock for the sampling is the P
The data transmission rate conversion device according to claim 1, wherein the data transmission speed conversion device is used as a clock of a serial data signal output from the / S conversion circuit.
JP3194386A 1991-08-02 1991-08-02 Data transmission speed converter Expired - Fee Related JP2794994B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3194386A JP2794994B2 (en) 1991-08-02 1991-08-02 Data transmission speed converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3194386A JP2794994B2 (en) 1991-08-02 1991-08-02 Data transmission speed converter

Publications (2)

Publication Number Publication Date
JPH0537572A true JPH0537572A (en) 1993-02-12
JP2794994B2 JP2794994B2 (en) 1998-09-10

Family

ID=16323739

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3194386A Expired - Fee Related JP2794994B2 (en) 1991-08-02 1991-08-02 Data transmission speed converter

Country Status (1)

Country Link
JP (1) JP2794994B2 (en)

Also Published As

Publication number Publication date
JP2794994B2 (en) 1998-09-10

Similar Documents

Publication Publication Date Title
JP2641999B2 (en) Data format detection circuit
US6847615B1 (en) Baud rate detection in serial data transmission
CN110635854B (en) Transmission protocol self-adaptive decoding system and method
JP3814470B2 (en) Data transfer method and data transfer apparatus
JPH0537572A (en) Data transmission speed converter
JPH07264263A (en) Serial communication interface device
JP2702773B2 (en) Data monitoring device
KR100778876B1 (en) Automatic baud rate detection device and detection method
JP2710175B2 (en) Data correctness judgment device
KR0174970B1 (en) Code data detection method of remote control signal
KR100195645B1 (en) Code data detection method of remote control signal
JP2839017B2 (en) Radio paging signal monitoring device
US7050507B2 (en) Adaptive throughput pulse width modulation communication scheme
JPS61118032A (en) Data transmission circuit
KR100211869B1 (en) Communication cable length measuring device
JPS61134145A (en) Communication speed setting device
JPH11355386A (en) Serial interface and modem using it
CN119342109A (en) Implementation method of high reliability communication protocol based on FPGA configurable LVDS double packet transmission
JP2776355B2 (en) Keyboard interface circuit
JPH0779339B2 (en) Start bit detection circuit
JPS63197151A (en) Serial data transfer method
JPH0560698B2 (en)
JPS59214322A (en) Serial-parallel converting circuit
JPH1041929A (en) Ping-pong transmitter
JPH01243743A (en) Interface

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: 19980526

LAPS Cancellation because of no payment of annual fees