JPH04364623A - Communication speed detection method in start-stop synchronization communication system - Google Patents

Communication speed detection method in start-stop synchronization communication system

Info

Publication number
JPH04364623A
JPH04364623A JP3140062A JP14006291A JPH04364623A JP H04364623 A JPH04364623 A JP H04364623A JP 3140062 A JP3140062 A JP 3140062A JP 14006291 A JP14006291 A JP 14006291A JP H04364623 A JPH04364623 A JP H04364623A
Authority
JP
Japan
Prior art keywords
communication
speed
character
signal line
data
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.)
Pending
Application number
JP3140062A
Other languages
Japanese (ja)
Inventor
Toru Takahashi
徹 高橋
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.)
Furukawa Electric Co Ltd
Original Assignee
Furukawa 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 Furukawa Electric Co Ltd filed Critical Furukawa Electric Co Ltd
Priority to JP3140062A priority Critical patent/JPH04364623A/en
Publication of JPH04364623A publication Critical patent/JPH04364623A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To realize the detection of a communication speed rich in the profitability and flexibility by sampling data signal lines without addition of the hardware. CONSTITUTION:The start-stop synchronization communication system implementing the data communication at plural communication speeds through a prescribed communication object and data signal lines 21, 22 are provided with a communication control circuit 11. A synchronization detection character by which the initial change point of the reception data signal line 22 is recognized is used to implement data reception in which the reception data signal line level is sampled. Timing information of the reception data signal line 22 obtained from the result is used for a base data of detecting the speed and a central processing unit 12 sets again the communication control circuit 11 to the start-stop synchronization communication operating mode at the detected communication speed.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、通信データを調歩同期
式で通信する調歩同期式通信システムに関し、特に通信
データの通信速度を検出する調歩同期式通信システムの
通信速度検出方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an asynchronous communication system that communicates communication data in an asynchronous manner, and more particularly to a communication speed detection method for an asynchronous communication system that detects the communication speed of communication data.

【0002】0002

【従来の技術】従来、この種の通信速度検出方法には、
検出すべきそれぞれの通信速度で受信を行うように設定
された複数の受信回路を並列に配設し、キャラクタの受
信があった際に、上記複数の受信回路でキャラクタの受
信を行い、どの受信回路が正しいデータを受信したか判
断することによって、通信速度を検出するものがあった
[Prior Art] Conventionally, this type of communication speed detection method includes:
A plurality of receiving circuits are arranged in parallel and are set to perform reception at the respective communication speeds to be detected, and when a character is received, the character is received by the plurality of receiving circuits, and which one is received. Some detected communication speed by determining whether the circuit received the correct data.

【0003】また、キャラクタの受信があった際に、受
信データ信号線のレベルが非アイドル状態になる期間を
カウンタ等の手段で自動的に計測し、キャラクタ受信の
終了後、その計測結果から通信速度を検出するものがあ
った。この方法では、いかなる通信速度においても1キ
ャラクタについてのみカウントすることを前提としてい
るが、通信速度が不明のため、キャラクタ受信の終了は
、検出すべき最低速度における1キャラクタの伝送時間
に相当する時間が経過したことをもって判断していた。
[0003] Furthermore, when a character is received, the period during which the level of the received data signal line is in a non-idle state is automatically measured using a counter or other means, and after the character reception is completed, communication is performed based on the measurement result. There was something that detected speed. This method assumes that only one character is counted at any communication speed, but since the communication speed is unknown, the end of character reception is the time equivalent to the transmission time of one character at the lowest speed to be detected. The decision was made based on the fact that the period had passed.

【0004】0004

【発明が解決しようとする課題】しかし、上述した複数
の受信回路を配設する方法では、検出できる速度の種類
は、配設する受信回路の設計時点で決定され、変更は、
容易ではない。また、検出する速度の種類だけの受信回
路が必要となるので、経済的でなく、さらに予め検出す
るキャラクタを定めておく必要があるので、一種類のキ
ャラクタに限定されるという問題点があった。
However, in the method of arranging a plurality of receiving circuits as described above, the type of speed that can be detected is determined at the time of designing the receiving circuit to be arranged, and changes are
It's not easy. In addition, since a receiving circuit is required for each type of speed to be detected, it is not economical, and since it is necessary to determine the character to be detected in advance, there is a problem that it is limited to one type of character. .

【0005】また、信号線のレベルを測定する方法では
、キャラクタ受信の終了は、検出すべき最低速度に1キ
ャラクタの伝送時間に相当する時間が経過したことをも
って判断するので、実際の通信速度が最低速度よりも速
くても、同時間内に複数のキャラクタ受信は許されず、
その結果、キャラクタ受信のインターバルには、最低速
度での1キャラクタ受信以上という制限があることにな
る。例えば、検出すべき最低速度が50[bps]であ
り、キャラクタ長が8ビットで、その前後に1ビットつ
づのスタート及びストップビットが存在するような場合
、キャラクタ受信のインターバルは、  (1/50)
×(8+1+1)=1/5(sec)=200(mse
c)以上でなければならず、例えばキャラクタの送信を
プログラムによって制御する場合、ディレイループ(d
elay loop)の挿入等の特別な措置が必要にな
るという問題点がある。また、非アイドル状態になる期
間の計測を行うカウンタ等のハードウェアは、通信制御
手段とは別に設けなければならないので、特に複数の回
線を収容しなければならない通信装置の場合には、部品
点数の増加及びこれに伴う製作コストの上昇、さらに実
装スペースの増大が問題であった。
Furthermore, in the method of measuring the level of the signal line, the end of character reception is determined when the time equivalent to the transmission time of one character has passed at the minimum speed to be detected, so the actual communication speed is Receiving multiple characters within the same time is not allowed, even if the speed is faster than the minimum speed.
As a result, the character reception interval is limited to one character reception or more at the lowest speed. For example, if the minimum speed to be detected is 50 [bps], the character length is 8 bits, and there are start and stop bits of 1 bit before and after it, the character reception interval is (1/50 )
×(8+1+1)=1/5(sec)=200(msec)
c) or higher; for example, when character transmission is controlled by a program, a delay loop (d
There is a problem in that special measures such as insertion of an elay loop are required. In addition, hardware such as a counter that measures the period of non-idle state must be provided separately from the communication control means, so the number of parts increases, especially in the case of communication equipment that must accommodate multiple lines. Problems include an increase in the number of semiconductor devices, an associated increase in manufacturing costs, and an increase in the mounting space.

【0006】本発明は、上記問題点に鑑みなされたもの
で、経済性に優れ、かつ融通性に富む速度検出を行うこ
とができる調歩同期通信システムにおける通信速度検出
方法を提供することを目的とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a communication speed detection method in an asynchronous communication system that is highly economical and capable of performing speed detection with great flexibility. do.

【0007】[0007]

【発明が解決しようとする課題】本発明では、所定の通
信対象とデータ信号線を介して、複数の通信速度でデー
タ通信を行う調歩同期式通信システムにおいて、通常の
データ通信を対象とする調歩同期式通信動作モードと、
前記データ信号線の最初の変化点を認識し得る同期検出
文字を用いて任意の速度のクロック信号によるデータ受
信を行う文字同期式通信モードとを、中央演算装置によ
り切り換えてデータ通信を行う機能を備えた通信制御手
段を有し、前記データ信号線から速度検出用文字を受信
する際に、前記中央演算装置が前記通信手段を文字同期
式通信モードに設定し、少なくとも検出すべき通信速度
以上の前記クロック信号により前記速度検出用文字の信
号波形をサンプリングする同期モード受信を行い、受信
データとして認識した該速度検出用文字のサンプリング
結果から得られる前記データ信号線のタイミング情報に
応じて前記受信した速度検出用文字の送信速度を検出し
、前記通信手段を前記検出した通信速度の調歩同期式通
信動作モードに設定しなおす調歩同期通信システムにお
ける通信速度検出方法が提供される。
[Problems to be Solved by the Invention] The present invention provides an asynchronous communication system that performs data communication at a plurality of communication speeds with a predetermined communication target via a data signal line. synchronous communication operation mode;
A function for performing data communication by switching by a central processing unit between a character synchronous communication mode in which data is received by a clock signal of an arbitrary speed using a synchronization detection character that can recognize the first change point of the data signal line. and when receiving a speed detection character from the data signal line, the central processing unit sets the communication means to a character synchronous communication mode, and sets the communication means to a character synchronous communication mode so that the communication speed is at least higher than the communication speed to be detected. A synchronous mode reception is performed in which the signal waveform of the speed detection character is sampled by the clock signal, and the received data is processed in accordance with timing information of the data signal line obtained from the sampling result of the speed detection character recognized as received data. A communication speed detection method in an asynchronous communication system is provided, which detects a transmission speed of a speed detection character and resets the communication means to an asynchronous communication operation mode corresponding to the detected communication speed.

【0008】[0008]

【作用】一般的な通信制御用LSI等の通信制御手段の
ほとんどが具備している文字同期式通信動作モードを利
用して、データ信号線の最初の変化点を認識し得る同期
検出文字を用いた同期モード受信により、速度検出用文
字のサンプリングを行い、その結果から得られるデータ
信号線のタイミング情報を速度検出の基礎データとする
[Operation] Utilizes the character synchronous communication operation mode that most communication control means such as general communication control LSIs have, and uses synchronization detection characters that can recognize the first change point of the data signal line. The speed detection characters are sampled by the synchronous mode reception, and the timing information of the data signal line obtained from the sampling is used as basic data for speed detection.

【0009】従って、本発明を利用すれば、多くの場合
ハードウェアの追加をせずにデータ信号線のサンプリン
グが可能になり、このサンプリング方法で得られたタイ
ミング情報によって、速度検出の処理が可能になり、経
済性及び融通性に富んだ通信速度検出が実現できる。
[0009] Therefore, by using the present invention, data signal lines can be sampled without adding hardware in many cases, and speed detection processing can be performed using timing information obtained by this sampling method. Therefore, economical and flexible communication speed detection can be realized.

【0010】0010

【実施例】以下、本発明の実施例を図1乃至図2の図面
に基づき説明する。図1は、本発明に係る通信速度検出
方法を用いた調歩同期式データ通信装置の概略構成を示
すブロック図である。図において、通信制御用回路(以
下、「LSI」という。)は、小型で高性能な通信制御
用のLSIである。このようなLSIを設計する場合、
シリアル通信コントローラあるいはマルチプロトコル通
信コントローラ等と呼ばれるマイクロプロセッサ制御の
通信制御用LSIを使用することが多く、これらのデバ
イスは、任意の文字を同期検出文字として使用した真意
のクロック信号による文字同期式通信動作モードを備え
ている。本実施例に係るLSI11も調歩同期式通信動
作モードの他に、文字同期式通信動作モードを備えてお
り、後述する中央処理装置(以下、「CPU」という。 )12の制御に応じて、調歩同期式通信動作モード又は
文字同期式通信動作モードに設定され、所定の通信対象
と送信データ信号線21及び受信データ信号線22を介
してデータ通信を行うと共に、必要に応じ割り込み信号
線23を介してCPU12に割り込み処理を要求する。 なお、データ送受信のためのクロック信号は、LSI1
1の内部で発生しており、その速度はCPU12によっ
て制御可能である。また、文字同期式通信動作モードに
おける1文字の長さは、8ビットであり、同期が確立し
たことを検出するための同期検出文字は、CPU12に
よって任意に設定が可能になっている。
Embodiments Hereinafter, embodiments of the present invention will be explained based on the drawings of FIGS. 1 and 2. FIG. 1 is a block diagram showing a schematic configuration of an asynchronous data communication device using a communication speed detection method according to the present invention. In the figure, the communication control circuit (hereinafter referred to as "LSI") is a small and high-performance LSI for communication control. When designing such an LSI,
Microprocessor-controlled communication control LSIs called serial communication controllers or multi-protocol communication controllers are often used, and these devices are capable of character-synchronous communication using arbitrary characters as synchronization detection characters and true clock signals. It has operating modes. The LSI 11 according to the present embodiment also has a character synchronous communication operation mode in addition to the asynchronous communication operation mode, and the LSI 11 has an asynchronous communication operation mode and a character synchronous communication operation mode. It is set to the synchronous communication operation mode or the character synchronous communication operation mode, and performs data communication with a predetermined communication target via the transmission data signal line 21 and the reception data signal line 22, and also communicates with the predetermined communication target via the interrupt signal line 23 as necessary. and requests the CPU 12 to perform interrupt processing. Note that the clock signal for data transmission and reception is LSI1
1, and its speed can be controlled by the CPU 12. Furthermore, the length of one character in the character synchronous communication operation mode is 8 bits, and the synchronization detection character for detecting that synchronization has been established can be arbitrarily set by the CPU 12.

【0011】CPU12は、データバス24を介してL
SI11を動作制御すると共に、割り込み信号線23を
介してLSI11からの割り込み信号が入力すると、上
記割り込み要求を受け付け、所定の割り込み処理を行う
。すなわち、CPU12は、各通信速度に対応する1ビ
ット分のカウント基準値を所定テーブルに予め内蔵して
おり、上記割り込み処理によって検出した1ビット長の
実際のカウント値と上記内蔵した各カウント基準値を照
合することによって通信速度を検出する。
[0011] The CPU 12 connects to L via a data bus 24.
While controlling the operation of the SI 11, when an interrupt signal from the LSI 11 is input via the interrupt signal line 23, the interrupt request is accepted and predetermined interrupt processing is performed. That is, the CPU 12 has a 1-bit count reference value corresponding to each communication speed built-in in a predetermined table in advance, and the 1-bit length actual count value detected by the above-mentioned interrupt processing and each of the above-mentioned built-in count reference values. The communication speed is detected by comparing the .

【0012】本実施例に使用可能な速度検出用キャラク
タは、アスキー(ASCII)コードで最下位ビットが
“1”の値を持つもので、図2は、その中の一例を示す
データ通信キャラクタ波形とサンプリングクロックの図
である。通常、受信データ信号線22は、ハイレベルで
あり、キャラクタは、ローレベルの1ビット長のスター
トビットを先頭にして、最下位ビット(LSB)から最
上位ビット(MSB)に順番に正論理(論理値1がハイ
レベル)で送信される。この例では、キャラクタ長は、
8ビットでキャラクタのすぐ後に、ハイレベルの1ビッ
ト長のストップビットが付加されている。図2のキャラ
クタコードは、16進数で0Dhであり、アスキーコー
ドのキャリッジリターン(CR)キャラクタに相当する
The speed detection character that can be used in this embodiment is an ASCII code whose least significant bit has a value of "1", and FIG. 2 shows an example of the data communication character waveform. and a diagram of a sampling clock. Normally, the received data signal line 22 is at a high level, and characters are sequentially processed from the least significant bit (LSB) to the most significant bit (MSB) with a positive logic ( The logic value 1 is a high level). In this example, the character length is
Immediately after the 8-bit character, a high-level, 1-bit long stop bit is added. The character code in FIG. 2 is 0Dh in hexadecimal and corresponds to the carriage return (CR) character of the ASCII code.

【0013】次に、図1に示した調歩同期式データ通信
装置における通信速度の検出動作について説明する。通
信速度の検出を行う場合、CPU12は、まず、LSI
11を制御して、LSI11の動作モードを文字同期式
通信動作モードに設定する。その際、受信クロックをデ
ータサンプリングクロック(実施例では検出すべきキャ
ラクタの通信最高速度の4倍のクロック)に設定すると
共に、同期検出文字を、サンプリング値“1”が連続し
た後のサンプリング値“0”の発生により同期が確立し
たとみなすような文字(同期検出文字が1文字である場
合、16進数で7Fh)に設定し、受信動作を開始させ
る。
Next, the communication speed detection operation in the asynchronous data communication apparatus shown in FIG. 1 will be explained. When detecting the communication speed, the CPU 12 first detects the LSI
11 to set the operation mode of the LSI 11 to the character synchronous communication operation mode. At this time, the reception clock is set to the data sampling clock (in the example, a clock that is four times the maximum communication speed of the character to be detected), and the synchronization detection character is set to the sampling value "1" after the consecutive sampling values "1". A character (7Fh in hexadecimal if the synchronization detection character is one character) is set such that synchronization is considered to be established upon occurrence of "0", and the reception operation is started.

【0014】LSI11は、受信状態になると、設定し
たクロック(図2(b) 参照)による受信データ信号
線22レベルのサンプリングを開始する。ここで、キャ
ラクタの受信がまだない場合には、受信データ信号線2
2は、ハイレベルであり、サンプリング値は常に“1”
となって、サンプリングデータ列の任意の8ビット境界
における分割値は、16進数のFFhになるから、LS
I11はまだ同期が確立していないと判断する。そして
、予め定めたキャラクタの受信が始まり、キャラクタの
スタートビットによって受信データ信号線22がハイレ
ベルからローレベルに変化すると(図2(a) 参照)
、次のサンプリング値が初めて“0”となる。上記サン
プリング値が“0”になると、8ビット境界における分
割値が16進数の7Fhになって同期検出文字と一致す
るから、LSI11は、この時点で同期が確立したもの
とみなし、以後、8ビット分のサンプリングが終了する
たびに、サンプリングデータの引き取りを要求する割り
込み信号を、割り込み信号線24を介してCPU12に
出力する。
When the LSI 11 enters the receiving state, it starts sampling the level of the received data signal line 22 using the set clock (see FIG. 2(b)). Here, if no character has been received yet, receive data signal line 2
2 is a high level, and the sampling value is always “1”
Therefore, the division value at any 8-bit boundary of the sampling data string is FFh in hexadecimal, so LS
I11 determines that synchronization has not yet been established. Then, when reception of a predetermined character begins and the reception data signal line 22 changes from high level to low level according to the start bit of the character (see FIG. 2(a)).
, the next sampling value becomes "0" for the first time. When the above sampling value becomes "0", the division value at the 8-bit boundary becomes 7Fh in hexadecimal, which matches the synchronization detection character, so the LSI 11 considers that synchronization has been established at this point, and from now on, the 8-bit Every time sampling for a minute is completed, an interrupt signal requesting to take over the sampling data is output to the CPU 12 via the interrupt signal line 24.

【0015】CPU12は、LSI11からの割り込み
要求を受け取ると、受信データ信号線22のサンプリン
グ結果を、8ビットの受信データとして読み出す。そし
て、CPU12は、受信データ信号線22のサンプリン
グ結果を時系列の順(下位ビットから上位ビットの順)
に参照し、ビット値が“0”であるビットがいくつ連続
するかカウントする。このカウントは、ビット値が、“
1”であるビットが現れた時点で終了するが、一回のサ
ンプリング結果の全てのビットが“0”である場合には
、次の割り込み要求を待って、同様の処理を行う。
When the CPU 12 receives an interrupt request from the LSI 11, it reads the sampling result of the reception data signal line 22 as 8-bit reception data. Then, the CPU 12 reads the sampling results of the received data signal line 22 in chronological order (from the lower bit to the upper bit).
, and count how many consecutive bits have a bit value of “0”. This count indicates that the bit value is “
The process ends when a bit that is 1 appears, but if all bits in the result of one sampling are 0, the process waits for the next interrupt request and performs the same process.

【0016】なお、実施例においては、キャラクタの最
下位ビットは、“1”であるから、サンプリング結果に
“0”レベルのビットが連続する期間は、スタートビッ
トの受信時間(調歩同期通信における1ビット時間)と
対応する。すなわち、サンプリング結果の“0”ビット
の連続数と同期検出文字の中の“0”ビットの数(実施
例の7Fhの場合は1)の和に相当するビット時間が、
検出すべき通信速度の1ビット時間に等しい。従って、
“0”ビットカウントの基準値を予めCPU12に内蔵
しておけば、実際のカウント値と照合することによって
通信速度を検出することができる。
In the embodiment, since the least significant bit of the character is "1", the period in which "0" level bits continue in the sampling result corresponds to the reception time of the start bit (1 in asynchronous communication). bit time). In other words, the bit time corresponding to the sum of the number of consecutive "0" bits in the sampling result and the number of "0" bits in the synchronization detection character (1 in the case of 7Fh in the embodiment) is
It is equal to 1 bit time of the communication speed to be detected. Therefore,
If the reference value of the "0" bit count is stored in the CPU 12 in advance, the communication speed can be detected by comparing it with the actual count value.

【0017】CPU12は、通信速度を検出すると、上
記LSI11を、検出した速度の調歩同期式通信動作モ
ードに設定し直し、調歩同期式での通信を開始すること
ができる。従って、本実施例では、文字同期通信動作モ
ードにおいて、データ信号線の最初の変化点を認識し得
る同期検出文字を用いて受信データ信号線レベルのサン
プリングを行うので、従来のハードウェアにまったく変
更を加えることなく、調歩同期式通信の速度検出を行う
ことができる。また、速度検出に使用できるキャラクタ
の範囲は広く、検出すべき速度の変更は、CPU12が
参照するカウント基準値のテーブルを書き換えるだけで
対応できる。さらに、速度検出が終了するタイミングは
、スタートビットの終了からLSI11とCPU12の
処理時間が経過した時点であるから、従来の方法に比べ
てはるかに早く、後に続くキャラクタとの時間間隔の制
限は、大幅に緩和することができる。
When the CPU 12 detects the communication speed, the CPU 12 resets the LSI 11 to the asynchronous communication operation mode corresponding to the detected speed, and can start asynchronous communication. Therefore, in this embodiment, in the character synchronous communication operation mode, the received data signal line level is sampled using a synchronization detection character that can recognize the first change point of the data signal line, so the conventional hardware is completely changed. It is possible to detect the speed of asynchronous communication without adding Furthermore, the range of characters that can be used for speed detection is wide, and changes in the speed to be detected can be handled simply by rewriting the table of count reference values referenced by the CPU 12. Furthermore, since the speed detection ends when the processing time of the LSI 11 and CPU 12 has elapsed from the end of the start bit, it is much earlier than in the conventional method, and the time interval between subsequent characters is limited. can be significantly alleviated.

【0018】[0018]

【発明の効果】以上説明したように、本発明では、所定
の通信対象とデータ信号線を介して、複数の通信速度で
データ通信を行う調歩同期式通信システムにおいて、通
常のデータ通信を対象とする調歩同期式通信動作モード
と、前記データ信号線の最初の変化点を認識し得る同期
検出文字を用いて任意の速度のクロック信号によるデー
タ受信を行う文字同期式通信モードとを、中央演算装置
により切り換えてデータ通信を行う機能を備えた通信制
御手段を有し、前記データ信号線から速度検出用文字を
受信する際に、前記中央演算装置が前記通信手段を文字
同期式通信モードに設定し、少なくとも検出すべき通信
速度以上の前記クロック信号により前記速度検出用文字
の信号波形をサンプリングする同期モード受信を行い、
受信データとして認識した該速度検出用文字のサンプリ
ング結果から得られる前記データ信号線のタイミング情
報に応じて前記受信した速度検出用文字の送信速度を検
出し、前記通信手段を前記検出した通信速度の調歩同期
式通信動作モードに設定しなおすので、経済性に優れ、
かつ融通性に富む速度検出を行うことができる。
Effects of the Invention As explained above, the present invention is applicable to normal data communication in an asynchronous communication system that performs data communication at a plurality of communication speeds with a predetermined communication target via a data signal line. a start-stop synchronous communication mode in which the central processing unit and a communication control means having a function of performing data communication by switching the communication means, and when receiving speed detection characters from the data signal line, the central processing unit sets the communication means to a character synchronous communication mode. , performing synchronous mode reception in which the signal waveform of the speed detection character is sampled by the clock signal having a communication speed higher than or equal to at least the communication speed to be detected;
The transmission speed of the received speed detection character is detected in accordance with the timing information of the data signal line obtained from the sampling result of the speed detection character recognized as received data, and the communication means is controlled at the detected communication speed. Since the setting is reset to the start-stop synchronous communication operation mode, it is highly economical and
In addition, it is possible to perform speed detection with great flexibility.

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

【図1】本発明に係る通信速度検出方法を用いた調歩同
期式データ通信装置の概略構成を示すブロック図である
FIG. 1 is a block diagram showing a schematic configuration of an asynchronous data communication device using a communication speed detection method according to the present invention.

【図2】本実施例におけるデータ通信キャラクタの波形
とサンプリングクロックを示す図である。
FIG. 2 is a diagram showing waveforms and sampling clocks of data communication characters in this embodiment.

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

11  通信制御用回路(LSI) 12  中央処理装置(CPU) 21,22  データ信号線 23  割り込み信号線 24  データバス 11 Communication control circuit (LSI) 12 Central processing unit (CPU) 21, 22 Data signal line 23 Interrupt signal line 24 Data bus

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  所定の通信対象とデータ信号線を介し
て、複数の通信速度でデータ通信を行う調歩同期式通信
システムにおいて、通常のデータ通信を対象とする調歩
同期式通信動作モードと、前記データ信号線の最初の変
化点を認識し得る同期検出文字を用いて任意の速度のク
ロック信号によるデータ受信を行う文字同期式通信モー
ドとを、中央演算装置により切り換えてデータ通信を行
う機能を備えた通信制御手段を有し、前記データ信号線
から速度検出用文字を受信する際に、前記中央演算装置
が前記通信手段を文字同期式通信モードに設定し、少な
くとも検出すべき通信速度以上の前記クロック信号によ
り前記速度検出用文字の信号波形をサンプリングする同
期モード受信を行い、受信データとして認識した該速度
検出用文字のサンプリング結果から得られる前記データ
信号線のタイミング情報に応じて前記受信した速度検出
用文字の送信速度を検出し、前記通信手段を前記検出し
た通信速度の調歩同期式通信動作モードに設定しなおす
ことを特徴とする調歩同期通信システムにおける通信速
度検出方法。
1. An asynchronous communication system that performs data communication at a plurality of communication speeds with a predetermined communication target via a data signal line, comprising: an asynchronous communication operation mode for normal data communication; Equipped with a function to perform data communication by switching between a character synchronous communication mode in which data is received using a clock signal at an arbitrary speed using synchronization detection characters that can recognize the first change point of the data signal line, and a central processing unit. when receiving the speed detection characters from the data signal line, the central processing unit sets the communication means to a character synchronous communication mode, and when the speed detection characters are received from the data signal line, Synchronous mode reception is performed in which the signal waveform of the speed detection character is sampled by a clock signal, and the received speed is determined according to the timing information of the data signal line obtained from the sampling result of the speed detection character recognized as received data. A communication speed detection method in an asynchronous communication system, characterized in that the transmission speed of a detection character is detected, and the communication means is reset to an asynchronous communication operation mode corresponding to the detected communication speed.
JP3140062A 1991-06-12 1991-06-12 Communication speed detection method in start-stop synchronization communication system Pending JPH04364623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3140062A JPH04364623A (en) 1991-06-12 1991-06-12 Communication speed detection method in start-stop synchronization communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3140062A JPH04364623A (en) 1991-06-12 1991-06-12 Communication speed detection method in start-stop synchronization communication system

Publications (1)

Publication Number Publication Date
JPH04364623A true JPH04364623A (en) 1992-12-17

Family

ID=15260098

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3140062A Pending JPH04364623A (en) 1991-06-12 1991-06-12 Communication speed detection method in start-stop synchronization communication system

Country Status (1)

Country Link
JP (1) JPH04364623A (en)

Similar Documents

Publication Publication Date Title
JP2641999B2 (en) Data format detection circuit
US7039787B1 (en) Byte alignment circuitry
JPH0431451B2 (en)
US5206888A (en) Start-stop synchronous communication speed detecting apparatus
JPH0316450A (en) Asynchronous series data receiver and reception method thereof
US6205192B1 (en) Clock input control circuit
JPH08139575A (en) Pulse output circuit
JP2702773B2 (en) Data monitoring device
JP2821438B2 (en) Microcomputer
JPS6245255A (en) Data reception system
JPH04117841A (en) Communication speed detection method in start-stop synchronizing communication system
JP2944543B2 (en) Interrupt control device
JPH07212413A (en) Asynchronous data receiving circuit
JPH08307405A (en) Frame synchronism detection device
JPH02143361A (en) Processing sequence deciding circuit
JPH1091588A (en) Data transfer device
JPH11143819A (en) Bus size circuit
JPH08189942A (en) Pulse width measuring instrument
JP3266034B2 (en) Communication control device
JPH0332138A (en) Interface controller
JPH08102732A (en) Frame synchronization circuit
JPH01112335A (en) Electronics
JPH08214041A (en) Automatic protocol recognition device
JPH11146032A (en) Data communication equipment
JPH06197155A (en) Character string reception detection circuit