JPS61123229A - Data transmission system - Google Patents

Data transmission system

Info

Publication number
JPS61123229A
JPS61123229A JP59243829A JP24382984A JPS61123229A JP S61123229 A JPS61123229 A JP S61123229A JP 59243829 A JP59243829 A JP 59243829A JP 24382984 A JP24382984 A JP 24382984A JP S61123229 A JPS61123229 A JP S61123229A
Authority
JP
Japan
Prior art keywords
data
sampling
speed
rate
signal
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
JP59243829A
Other languages
Japanese (ja)
Inventor
Yasuhiro Kunimoto
国本 康弘
Masayuki Ozawa
正幸 小沢
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59243829A priority Critical patent/JPS61123229A/en
Publication of JPS61123229A publication Critical patent/JPS61123229A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To relieve the load of a compuer at the reception side by transmitting a specific pattern detected at a slow sampling period before the data is transmitted to the reception side so as to change the sampling period of the computer of the reception side. CONSTITUTION:The reception side samples data in a speed being nearly 1/4 of the transmissin speed normally and when two consecutive '0s' are found out, it is regarded as NULL code detection and the sampling speed is brought into the data transmission speed. When a stop bit is found out, the sampling interval is increased to four times that of the transmission speed, and further, when a start bit is found out, the sampling interval is brought into two times that of the transmision speed. When it is confirmed that the data is '0', the data is sampled in the data sampling speed to receive the data.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ソフトウェア手法を用い調歩同期方式でデー
タを伝送するデータ伝送方式の改良に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an improvement in a data transmission system that uses a software method to transmit data in an asynchronous manner.

ここで、調歩同期方式の信号の構成及び一般的なデータ
送受信回路の要部に就いて説明する。
Here, the structure of the asynchronous signal and the main parts of a general data transmitting/receiving circuit will be explained.

第2図は調歩同期方式の信号の構成図、第3図は一般的
なデータ送受信回路の要部のブロック図である。
FIG. 2 is a block diagram of a signal in an asynchronous system, and FIG. 3 is a block diagram of a main part of a general data transmitting/receiving circuit.

図中、1はMPU、2はアドレスデコーダ、3はROM
、4はRAM、5は入出力装置、6はタイマー、7はア
ドレスバス、8はデータバスを示す。
In the figure, 1 is MPU, 2 is address decoder, 3 is ROM
, 4 is a RAM, 5 is an input/output device, 6 is a timer, 7 is an address bus, and 8 is a data bus.

調歩同期方式の信号線は第2図に示す如く通常は1レベ
ルにホールドされており、データを送信する場合は1文
字を構成する7〜10ビツトのデータの前後に1ビツト
のθレベルのスタートビットと1〜2ビツトの1レベル
のストップビットを付加し、受信側ではこのスタートビ
ットで調歩の同期を開始し、ストップビットで同期動作
を停止するようにしている。
As shown in Figure 2, the asynchronous signal line is normally held at 1 level, and when transmitting data, a 1-bit θ level starts before and after the 7 to 10 bits of data that make up one character. The receiving side uses the start bit to start start-stop synchronization, and the stop bit to stop the synchronization.

以下はスタートビットストップビットは夫々1ビツトで
、データは8ビツトとして説明する。
The following explanation assumes that the start bit and stop bit are each 1 bit, and the data is 8 bits.

次龜第3図のデータ送受信回路の基本的な動作を説明す
ると、MPUIは最初にROM3に格納されている命令
を読み込む為に、該当するアドレスをアドレスバス7に
出力すると、アドレスデコーダ2はこのアドレスをデコ
ードし、ROM3に対しチップセレクト信号を出力する
Next To explain the basic operation of the data transmitting/receiving circuit shown in Figure 3, the MPUI first outputs the corresponding address to the address bus 7 in order to read an instruction stored in the ROM 3, and the address decoder 2 It decodes the address and outputs a chip select signal to ROM3.

ROM3はチップセレクト信号を受けると、該当するア
ドレスに格納されている命令をデータバス8に出力する
When the ROM 3 receives the chip select signal, it outputs the instruction stored at the corresponding address to the data bus 8.

MPUIはこの命令を入力しミその命令を実行する。The MPUI inputs this command and executes the command.

RAM4及び入出力装置5よりデータを読み出す時も上
記と同様に行われ、これにデータを出力しようとする場
合には、MPUIはアドレスとデータを夫々アドレスバ
ス7及びデータバス8に出力すると、アドレスデコーダ
2は、RAM4.入出力装置5のいづれかにチップセレ
クト信号を出力すると共に書込みタイミング信号を出力
し、RAM4.−入出力装置5ではこの書込みタイミン
グ信号に同期してデータバス8上のデータを読み込む。
Reading data from the RAM 4 and the input/output device 5 is performed in the same manner as above, and when attempting to output data thereto, the MPUI outputs the address and data to the address bus 7 and data bus 8, respectively. The decoder 2 has RAM4. A chip select signal is output to one of the input/output devices 5, and a write timing signal is output to the RAM 4. - The input/output device 5 reads data on the data bus 8 in synchronization with this write timing signal.

“ −例えば、キーボード(図示されていない)より送信し
たいデ」りを打ち込むと、MPUIの制御によ一す、デ
ータバス8を介してRAM4に書き込まれ、ROM3に
格納されている調歩同期方式で送信するプログラムに従
いこれを読み出し、スタートビット、ストップビットが
付加され入出力装置5を介して相手側に送信される。
- For example, when you type in the data you want to send from a keyboard (not shown), it is written to RAM4 via data bus 8 and stored in ROM3, which is controlled by MPUI. This is read out according to the program to be sent, a start bit and a stop bit are added, and it is sent to the other party via the input/output device 5.

相手側より祷られてきた信号は入出力装置5に人力させ
て、スタートビットを見つけ調歩の同期を開始し、MP
UIよりタイマー6に設定したサンプリング周期により
≠−夕を受信し、RAM4に書き込む。
The signal received from the other party is sent manually to the input/output device 5, which finds the start bit and starts start/stop synchronization.
≠ - evening is received from the UI at the sampling period set in the timer 6 and written into the RAM 4.

この場合のサンプリングのタイミングはMPU1の制御
によりプログラムの命令に従いタイマー6に設定して割
り込みを行うことで行う。
The timing of sampling in this case is controlled by the MPU 1 by setting the timer 6 according to a program instruction and performing an interrupt.

このようにしてデータの送受信が行われるが、この場合
受信側のコンピュータの負荷が少なく他の仕事が多く出
来ることが望まれる。
Data is transmitted and received in this way, and in this case, it is desirable that the load on the computer on the receiving side be reduced so that it can perform other tasks.

〔従来の技術〕[Conventional technology]

第4図は従来例のデータを受信する場合の信号及び各部
のサンプリング速度を示す図であり、従来データを受信
する場合は以下の如くサンプリング速度を変えるプログ
ラムを作り第3図のROM3に格納しておき、このサン
プリングのタイミングを第3図のMPUIの制御により
タイマー6に設定し、割り込みを行わせ受信している。
Figure 4 is a diagram showing the signals and sampling speeds of each part when receiving conventional data.When receiving conventional data, create a program to change the sampling rate as shown below and store it in ROM3 in Figure 3. Then, the timing of this sampling is set in the timer 6 under the control of the MPUI shown in FIG. 3, and an interrupt is generated and received.

第4図の■〜■に対応させて、動作を説明すると、 ■第4図の■に示す如く通常は雑音があっても間違いな
くスタートビットを見つける為に、少なくともデータの
伝送速度の4倍のスピードでサンプリングを行っており
、スタートビットが見つかると、サンプリング間隔を伝
送速度の2倍に移し■に移る。
To explain the operation in correspondence with ■ to ■ in Figure 4, ■As shown in ■ in Figure 4, normally the start bit is found at least four times the data transmission speed even if there is noise. When the start bit is found, the sampling interval is changed to twice the transmission speed and the process moves to (2).

■データをサンプリングし、Oレベルであることを確認
し、Oレベルであった場合にはサンプリング間隔を伝送
速度にし、■に移る。
(2) Sample the data and confirm that it is O level. If it is O level, set the sampling interval to the transmission speed and move to (2).

0でなかった場合には先に見つかった0は雑音による誤
信号であったと判断し、■に戻る。
If it is not 0, it is determined that the previously found 0 was an erroneous signal due to noise, and the process returns to (2).

■ストップビット迄サンプリング間隔を伝送速度にし、
データの受信を行い、ストップビット検出後サンプリン
グ周期をデータの伝送速度の4倍のスピードにし■に戻
る。
■Set the sampling interval to the transmission speed up to the stop bit,
Data is received, and after detecting a stop bit, the sampling period is set to four times the data transmission speed and returns to step (3).

(発明が解決しようとする問題点) しかしながら、上記の方法では、通常のデータの受信を
行なっていない時にはデータの伝送速度の4倍のスピー
ドでサンプリングを行なわねばならず、割り込みが多く
なり第3図のMPUIはソフト処理負荷が増え他の仕事
をする量が減る問題点がある。
(Problems to be Solved by the Invention) However, in the above method, sampling must be performed at four times the data transmission speed when normal data reception is not being performed, resulting in a large number of interruptions and The MPUI shown in the figure has the problem of increasing the software processing load and reducing the amount of other work being done.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点は、送信側では、データ送出前に、□データ
をサンプリングする速度より遅い速度のサンプリングを
少なくとも2回行える0レベルの信号及びこの信号に続
き少なくともデータのサンプリング速度のサンプリング
を1回行える1レベルの信号を送出するようにし、受信
側では、通常は、上記データをサンプリングする速度よ
り遅い速度のサンプリングを行っており、θレベルの信
号を連続して2回検出した時は、サンプリング速度を1
レベルの信号が検出される迄、データのサンプリング速
度でサンプリングを行い以後はスタートビ、ノドが見つ
かるようサンプリングを行うようにした、本発明のデー
タ伝送方式により解決される。
The above problem is that on the transmitting side, before sending data, □ a 0-level signal that can perform sampling at a rate slower than the data sampling rate at least twice, and following this signal, sampling at least once at the data sampling rate. 1 level signal is sent out, and the receiving side normally performs sampling at a slower rate than the above data sampling rate, and when a θ level signal is detected twice in succession, the sampling rate 1
This problem is solved by the data transmission method of the present invention, in which sampling is performed at the data sampling rate until a level signal is detected, and thereafter, sampling is performed to find the start point and node.

〔作用〕[Effect]

本発明によれば、データを送る前に、データをサンプリ
ングする周期より遅い速度のサンプリングを少なくとも
2回行えるOレベルの信号及びこの信号に続き少なくと
もデータのサンプリング速度のサンプリングを1回行え
る1レベルの信号を送出し、受信側では、この0レベル
、1レベルの信号を見つけた後、従来と同じく伝送速度
の4倍のスピードでサンプリングを行いスタートビット
を見つけるので、通常のデータを受信していない時は、
データをサンプリングする周期より遅い速度のサンプリ
ングを行なっていればよく、割り込みが少なくなりソフ
ト処理負荷を軽減出来他の仕事を多く出来るようになる
According to the present invention, before sending data, there is an O level signal that allows sampling at a rate slower than the data sampling period at least twice, and a 1 level signal that allows sampling at least once at the data sampling rate following this signal. A signal is sent, and on the receiving side, after finding these 0 level and 1 level signals, sampling is performed at four times the transmission speed as before to find the start bit, so normal data is not received. At the time,
It is sufficient to perform sampling at a speed slower than the data sampling cycle, which reduces the number of interruptions, reduces the software processing load, and allows more work to be done.

〔実施例〕〔Example〕

第1図は本発明の実施例ののデータを受信する場合の信
号及び各部のサンプリング速度を示す図であり、この場
合はデータを送信する前に調歩同期方式の信号構成でN
ULLコード(全てO)を送信するようにした例である
FIG. 1 is a diagram showing the signal and the sampling speed of each part when receiving data according to the embodiment of the present invention. In this case, before transmitting data, an asynchronous signal structure is
This is an example in which a ULL code (all O's) is transmitted.

この場合は、送信側のプログラムはデータを送信する前
にNULLコードを挿入して送るようにしてあり、第3
図のROM3に格納しておくことで、これが実行される
In this case, the sending program inserts a NULL code before sending the data, and the third
This is executed by storing it in the ROM 3 shown in the figure.

受信側は、以下の如くサンプリング間隔を変える方法の
プログラムを作り、第3図のROM3に格納しておき、
このタイミングを第3図のMPU1の制御によりタイマ
ー6に設定し割り込みを行わせ受信する。
On the receiving side, create a program for changing the sampling interval as shown below and store it in ROM3 in Figure 3.
This timing is set in the timer 6 under the control of the MPU 1 shown in FIG. 3 to cause an interrupt to be generated and received.

以下、第1図の■〜■に対応さして動作を説明する。Hereinafter, the operations will be explained in correspondence with ① to ② in FIG.

■通常はデータの伝送速度の1/4程度の速度でサンプ
リングを行ない、0が続けて2目見つかつた時にNUL
Lコード検出としてサンプリング速度をデータの伝送速
度にし、■に進む。
■Normally, sampling is performed at a speed of about 1/4 of the data transmission speed, and when a second 0 is found in a row, NUL is detected.
For L code detection, set the sampling rate to the data transmission rate and proceed to step (3).

■データの伝送速度でサンプリングを行い、ストップビ
ットが見つかる迄これを繰り返す、ストップビットが見
つかったらサンプリング間隔を伝送速度の4倍にし、■
へ移る。
■Sampling is performed at the data transmission speed and repeats this until a stop bit is found.When the stop bit is found, the sampling interval is increased to four times the transmission speed,■
Move to.

■データの4倍でサンプリングを行いスタートビットが
見つかる迄これを操り返す。スタートビットを見つけた
後は、サンプリング間隔を伝送速度の2倍にし■に移る
■Sampling is performed with four times the data and repeating this process until the start bit is found. After finding the start bit, set the sampling interval to twice the transmission rate and move on to step (3).

■データがOである9とを確認し、サンプリングをデー
タ伝送速度にし■へ進む。データが1であった場合は■
で見つけたOがスタートビットでなかったと判断し、■
へ戻る。
■Confirm that the data is O (9), set the sampling to the data transmission speed, and proceed to ■. If the data is 1, ■
It is determined that the O found in is not the start bit, and ■
Return to

■データの伝送速度でサンプリングを行い、データを受
信する。これをストップビット迄繰り返し、ストップビ
ット検出後は■に戻る。
■Perform sampling at the data transmission speed and receive data. This is repeated until the stop bit is reached, and after the stop bit is detected, the process returns to ■.

このようにしてデータの受信が行われるので、データ受
信を行なっていない通常の場合は、データのサンプリン
グ速度より遅い速度でサンプリングしていればよ(、従
来に比し第3図のMPUIのソフト処理負荷が軽減され
他の仕事が出来るようになる。
Data is received in this way, so in normal cases when data is not being received, it is only necessary to sample at a slower rate than the data sampling rate (compared to the conventional MPUI software shown in Figure 3). The processing load will be reduced and you will be able to do other tasks.

〔発明の効果〕〔Effect of the invention〕

以上詳細に説明せる如く、本発明によれば、受信側のコ
ンビエータの負荷が軽減される効果がある。
As explained in detail above, according to the present invention, the load on the combinator on the receiving side is reduced.

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

第1図は、本発明の実施例ののデータを受信する場合の
信号及び各部のサンプリング速度を示す図、 第2図は調歩同期方式の信号の構成図、第3図は一般的
なデータ送受信回路の要部のブロック図、 第4図は従来例のデータを受信する場合の信号及び各部
のサンプリング速度を示す図である。 図において、 1はMPU。 2はアドレスデコーダ、 3はROM。 4はRAM。 5は入出力装置、 6はタイマー、 7はアドレスバス、 8はデータバスを示す。 算 1 図 第2図 !4 図
Fig. 1 is a diagram showing the signal and sampling speed of each part when receiving data according to the embodiment of the present invention, Fig. 2 is a diagram showing the configuration of the signal of the start-stop synchronization method, and Fig. 3 is a diagram showing the general data transmission and reception. A block diagram of the main parts of the circuit, FIG. 4 is a diagram showing signals and sampling speeds of each part when receiving data in a conventional example. In the figure, 1 is an MPU. 2 is an address decoder, 3 is a ROM. 4 is RAM. 5 is an input/output device, 6 is a timer, 7 is an address bus, and 8 is a data bus. Calculation 1 Figure 2! 4 Figure

Claims (1)

【特許請求の範囲】[Claims] 調歩同期方式でデータを伝送するに際し、送信側では、
データ送出前に、データをサンプリングする速度より遅
い速度のサンプリングを少なくとも2回行える0レベル
の信号及びこの信号に続き少なくともデータのサンプリ
ング速度のサンプリングを1回行える1レベルの信号を
送出するようにし、受信側では、通常は、上記、データ
をサンプリングする速度より遅い速度のサンプリングを
行つており、0レベルの信号を連続して2回検出した時
は、サンプリング速度を、1レベルの信号が検出される
迄、データのサンプリング速度でサンプリングを行ない
以後スタートビットを見つけるようサンプリングを行う
ようにしたことを特徴とするデータ伝送方式。
When transmitting data using the start-stop synchronization method, on the transmitting side,
Before sending the data, a 0-level signal that allows sampling at a rate slower than the data sampling rate at least twice, and a 1-level signal that allows sampling at least once at the data sampling rate following this signal, On the receiving side, sampling is normally performed at a slower rate than the data sampling rate mentioned above, and when a 0-level signal is detected twice in a row, the sampling rate is changed to the rate at which a 1-level signal is detected. A data transmission method characterized in that sampling is performed at the data sampling rate until the start bit is reached, and thereafter sampling is performed to find the start bit.
JP59243829A 1984-11-19 1984-11-19 Data transmission system Pending JPS61123229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59243829A JPS61123229A (en) 1984-11-19 1984-11-19 Data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59243829A JPS61123229A (en) 1984-11-19 1984-11-19 Data transmission system

Publications (1)

Publication Number Publication Date
JPS61123229A true JPS61123229A (en) 1986-06-11

Family

ID=17109550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59243829A Pending JPS61123229A (en) 1984-11-19 1984-11-19 Data transmission system

Country Status (1)

Country Link
JP (1) JPS61123229A (en)

Similar Documents

Publication Publication Date Title
CA1070848A (en) Data communication system
JPS61123229A (en) Data transmission system
US4065639A (en) Synchronous transmission control system
US4606029A (en) Data transmission system
JPS6040749B2 (en) serial transmission device
CN111781895B (en) Numerical control system under multi-core processor and interpolation task implementation method thereof
JP2893897B2 (en) Serial I / O device
JPS63164554A (en) Automatic recognizing system for data speed
JP2669028B2 (en) Command register circuit
KR890001798B1 (en) Data signal processing apparatus
JP2708366B2 (en) Data processing system and auxiliary control device
SU1144112A1 (en) Interface for linking computer with common bus
JPH1165613A (en) Method for transmitting synchronizing data and device therefor
JPH01297591A (en) Setting and processing system for system timepiece
JPH04249947A (en) Communication control equipment
JPS63197260A (en) Memory device control system
JPS6349964A (en) Handshake controller
JPS6342547A (en) Line control unit
JPH0767159A (en) Key telephone system
JPH036705A (en) Sequence controller
JPS6367604A (en) Process signal converter
JPH0430775B2 (en)
JPH06250955A (en) Communication interface circuit
JPH087609B2 (en) Data transfer method of programmable controller system
JPH0722284B2 (en) Communication control device