JPH04220031A - Serial data transmitting system and serial data receiving system - Google Patents

Serial data transmitting system and serial data receiving system

Info

Publication number
JPH04220031A
JPH04220031A JP40455090A JP40455090A JPH04220031A JP H04220031 A JPH04220031 A JP H04220031A JP 40455090 A JP40455090 A JP 40455090A JP 40455090 A JP40455090 A JP 40455090A JP H04220031 A JPH04220031 A JP H04220031A
Authority
JP
Japan
Prior art keywords
bit
data
bit information
information
transmission
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
Application number
JP40455090A
Other languages
Japanese (ja)
Inventor
Yasuo Baba
馬場 康夫
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 JP40455090A priority Critical patent/JPH04220031A/en
Publication of JPH04220031A publication Critical patent/JPH04220031A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Time-Division Multiplex Systems (AREA)

Abstract

PURPOSE:To simplify a controller by utilizing the conversion and reverse conversion of a synchronous code as well as of the fixed pieces unit of bit information to positive and negative extreme values. CONSTITUTION:When the fixed pieces of bit information are transmitted, the extreme value of the bit information is reversed and the bit information and a reversed bit information are made to a pair. This pair of indicated as a bit pair by a conversion rule. The synchronous code of a bit pair sequence is not appeared at the time when the fixed pieces of the bit information is required to convert. But the synchronous code is transmitted by this system and each of the bit pairs is transmitted in a predetermined order following the transmission of the synchronous code. Thus, the transmitter is simplified.

Description

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

【0001】0001

【産業上の利用分野】本発明は、複雑な制御を必要とす
ることなしにデータの送受信を行なうことの出来るシリ
アルデータ送信方式及びシリアルデータ受信方式に関す
る。データ伝送においては、通常情報データの伝送のほ
かに、制御データ等の伝送を行なう必要がある。後者の
データ伝送は、通常情報データと異なってシステム、装
置等でよって予め決められた数となっている場合がある
。このような場合にも、情報データにおけると同様のデ
ータ伝送方式で制御データ等を伝送する必要は、必ずし
も存在しない。この場合にも、データ量が可変となる情
報データの場合におけるデータ伝送方式を採用すること
は得策でない。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial data transmission system and a serial data reception system that can transmit and receive data without requiring complicated control. In data transmission, in addition to the transmission of normal information data, it is necessary to transmit control data and the like. Unlike normal information data, the latter data transmission may be a predetermined number depending on the system, device, etc. Even in such a case, it is not necessarily necessary to transmit control data and the like using the same data transmission method as that for information data. In this case as well, it is not a good idea to adopt a data transmission method for information data in which the amount of data is variable.

【0002】0002

【従来の技術】従来の情報データを行なうデータ伝送方
式としては、調歩同期式、シンクロナス同期式、フラグ
同期式等がある。これらの情報データ伝送方式は、ファ
ームウェア制御によるものである。シンクロナス同期式
は、16進表示で16、又は32のコードを同期制御に
用いる方式で、フラグ同期式は、予め決められたパター
ン(例えば、16進表示で7E)を同期制御に用いる方
式である。
2. Description of the Related Art Conventional data transmission methods for transmitting information data include a start-stop synchronization method, a synchronous synchronization method, a flag synchronization method, and the like. These information data transmission methods are under firmware control. The synchronous type uses a code of 16 or 32 in hexadecimal for synchronous control, and the flag synchronous type uses a predetermined pattern (for example, 7E in hexadecimal) for synchronous control. be.

【0003】0003

【発明が解決しようとする課題】前述した従来のデータ
伝送方式は、ファームウェアによる制御を必要とする。 それ故、データ量の可変に容易に対応し得るが、その反
面、伝送システム乃至装置自体が、複雑となり、高価で
ある。従って、データの伝送に費用が掛かる。本発明は
、斯かる問題点に鑑みて創作されたもので、データの伝
送を簡易なハードウェア構成で制御の単純化を図りつつ
、データを安価に伝送し得るシリアルデータ送信方式及
びシリアルデータ受信方式を提供することをその目的と
する。
The conventional data transmission method described above requires control by firmware. Therefore, it is possible to easily cope with changes in the amount of data, but on the other hand, the transmission system or device itself becomes complicated and expensive. Therefore, data transmission is expensive. The present invention was created in view of such problems, and provides a serial data transmission method and serial data reception that can transmit data at low cost while simplifying control of data transmission with a simple hardware configuration. Its purpose is to provide a method.

【0004】0004

【課題を解決するための手段】図1は、請求項1及び請
求項2に係わる発明の説明図である。請求項1に係わる
発明は、一定数のビット情報を送信する際に、前記ビッ
ト情報の極性を反転させ、前記ビット情報と当該ビット
情報の反転ビット情報を対とし、前記変換則で表される
ビット対であって、前記一定数のビット情報を変換した
ときに現れないビット対シーケンスの同期コードを送信
し、前記ビット対の各々を予め決められた順序で前記同
期コードの送信に続いて送信することを特徴とする。
Means for Solving the Problems FIG. 1 is an explanatory diagram of the invention according to claims 1 and 2. In the invention according to claim 1, when transmitting a certain number of bit information, the polarity of the bit information is inverted, the bit information and the inverted bit information of the bit information are paired, and the polarity is expressed by the conversion rule. transmitting a synchronization code of bit pairs, the bit pair sequence not appearing when converting the fixed number of bit information, and transmitting each of the bit pairs in a predetermined order subsequent to the transmission of the synchronization code; It is characterized by

【0005】請求項2に係わる発明は、ビット情報と当
該ビット情報の反転ビット情報のビット対であって、一
定数のビット情報を変換したときに現れないビット対シ
ーケンスの同期コードを検出し、該同期コードの検出に
応答して該同期コードに続く正負の極性で表される一定
数のビット対を送信順序と同一の順序で抽出し、抽出さ
れた一定数のビット対から各ビット対対応のビット情報
を受信することを特徴とする。
The invention according to claim 2 detects a synchronization code of a bit pair sequence that does not appear when a certain number of bit information is converted, which is a bit pair of bit information and inverted bit information of the bit information, In response to the detection of the synchronization code, a fixed number of bit pairs represented by positive and negative polarities following the synchronization code are extracted in the same order as the transmission order, and each bit pair correspondence is extracted from the extracted fixed number of bit pairs. It is characterized by receiving bit information of.

【0006】[0006]

【作用】一定数のビット情報を送信するとき、それらの
ビット情報の各々は、当該ビット情報と当該ビット情報
の反転ビット情報のビット対へ変換される。そして、そ
れらビット対を前記同期コードの送信後に予め決められ
た順序で送信する。又、そのようにして送信されて来た
一定数のビット情報を受信するとき、先ず前記同期コー
ドを検出する。この検出に応答して前記同期コードに続
く各ビット対を前記送信順序と同一の順序で抽出し、そ
のビット対の各々を送信側と受信側との間で予め取り決
められたビット情報として受信する。
[Operation] When transmitting a certain number of bit information, each of those bit information is converted into a bit pair of the bit information and the inverted bit information of the bit information. The bit pairs are then transmitted in a predetermined order after the synchronization code is transmitted. Also, when receiving a certain number of bits of information transmitted in this way, first the synchronization code is detected. In response to this detection, each bit pair following the synchronization code is extracted in the same order as the transmission order, and each of the bit pairs is received as bit information prearranged between the transmitting side and the receiving side. .

【0007】前述のように、一定数のビット情報の送信
及び受信においては、各ビット情報から各ビット情報対
応のビット対への変換と、同期コード及び予め決められ
た順序での変換されたビット対の送信との制御を行なう
だけで、前記一定数のビット情報を送信することが出来
る。又、そのようにして送信されて来た同期コード及び
一定数のビット対の受信においては、同期コードの検出
、該検出に応答しての前記一定数のビット対の抽出、及
び抽出された一定数のビット対から各ビット対対応のビ
ット情報の受信との制御を行なうだけで、前記一定数の
ビット情報を受信することが出来る。従って、前記一定
数のビット情報を送信するのにも、又その一定数のビッ
ト情報を受信するのにも、簡易なハードウェアで足りる
。これは、その制御も簡易でよいことを意味する。つま
り、回路構成の簡易化、乃至ファームウエアで本発明を
構築する場合のファームウエアの簡易化に寄与し、制御
装置負担も軽減する。従って、情報伝送費用の逓減も図
れる。
As described above, in transmitting and receiving a certain number of bit information, each bit information is converted into a bit pair corresponding to each bit information, and a synchronization code and the converted bits are sent in a predetermined order. The fixed number of bits of information can be transmitted by simply controlling the pair of transmissions. In addition, upon receiving the synchronization code and the fixed number of bit pairs transmitted in this way, the detection of the synchronization code, the extraction of the fixed number of bit pairs in response to the detection, and the extraction of the fixed number of bit pairs are performed. The fixed number of bit information can be received by simply controlling the reception of bit information corresponding to each bit pair from the number of bit pairs. Therefore, simple hardware is sufficient for both transmitting the fixed number of bit information and receiving the fixed number of bit information. This means that its control can also be simple. In other words, this contributes to the simplification of the circuit configuration or the simplification of the firmware when the present invention is constructed using firmware, and also reduces the burden on the control device. Therefore, information transmission costs can be gradually reduced.

【0008】[0008]

【実施例】図2は請求項1に係わる発明の一実施例を示
す。図3は請求項2に係わる発明の一実施例を示す。こ
れらの実施例は、制御装置22は、第1の信号線24及
び第2の信号線26を経て遠く隔てられた被制御装置2
8と接続されており、制御装置22が、第1の信号線2
4を経て被制御装置28の制御を行なうと共に、被制御
装置28の状態を監視する例である。
Embodiment FIG. 2 shows an embodiment of the invention according to claim 1. FIG. 3 shows an embodiment of the invention according to claim 2. In these embodiments, the controller 22 connects to the remotely controlled device 2 via a first signal line 24 and a second signal line 26.
8, and the control device 22 is connected to the first signal line 2.
This is an example in which the controlled device 28 is controlled through step 4 and the state of the controlled device 28 is monitored.

【0009】制御装置22は、3ビットカウンタ(CN
T)30、同期コード出力部32、ドライバゲート回路
34、データレジスタ(SDR0乃至SDR4)36乃
至44、ドライバゲート回路46乃至54、送信データ
レジスタ66、送信シフトレジスタ68、及びクロック
パルス発生器76から成る。3ビットカウンタ30は、
833 ×10μs の周期のクロックパルスP1の供
給を受ける。ドライバゲート回路34、及びデータレジ
スタ36乃至44には、カウンタ32からそのカウント
値が供給される。データレジスタ36乃至44には、制
御装置22の制御処理装置(図示せず)からの制御ビッ
ト情報が供給される。そのデータレジスタ36乃至44
は、それぞれ図4に示すように前記各制御ビット情報に
対して正及び負の極性で表されるビット対を出力する。 このように、制御ビット情報を変えることが、請求項1
及び請求項2に記述する「ビット情報の値に応じた正負
の極性で表されるビット対へ変換する変換則」に対応す
る。こうすることによって、3よりも多い同一信号レベ
ルの信号を送信するのを防止することが出来る。それら
の出力の各々は、対応するドライバゲート回路46乃至
54を経て送信データレジスタ66へ入力される。この
送信データレジスタ66には、又ドライバゲート回路3
4を経て同期コード0F(16進表示の値)が入力され
る。この同期コード0F(16進表示の値)のビット対
シーケンスは、前述の変換則で表されるビット対であっ
て、図7の(1) 、(3) 等に示す一定数のビット
情報を変換したときに現れないビット対シーケンスとな
ってあり、このビット対シーケンスを得るのにも、前記
変換則が用いられている。送信データレジスタ66の出
力は、送信シフトレジスタ68のデータビット部72の
入力へ供給される。送信シフトレジスタ68にはスター
トビット部70及びストップビット部74がある。送信
シフトレジスタ68は、クロックパルス発生器76から
833 μs の周期のクロックパルスP2の供給を受
ける。
The control device 22 has a 3-bit counter (CN
T) 30, synchronous code output section 32, driver gate circuit 34, data registers (SDR0 to SDR4) 36 to 44, driver gate circuits 46 to 54, transmission data register 66, transmission shift register 68, and clock pulse generator 76 Become. The 3-bit counter 30 is
A clock pulse P1 having a period of 833×10 μs is supplied. The count value from the counter 32 is supplied to the driver gate circuit 34 and the data registers 36 to 44. Data registers 36-44 are supplied with control bit information from a control processor (not shown) of controller 22. The data registers 36 to 44
outputs bit pairs represented by positive and negative polarities for each control bit information, as shown in FIG. 4, respectively. According to claim 1, changing the control bit information in this way
This corresponds to the "conversion rule for converting into a bit pair represented by positive and negative polarities according to the value of bit information" described in claim 2. By doing so, it is possible to prevent more than three signals having the same signal level from being transmitted. Each of these outputs is input to a transmit data register 66 via a corresponding driver gate circuit 46-54. This transmission data register 66 also includes the driver gate circuit 3.
4, a synchronization code 0F (value expressed in hexadecimal) is input. The bit pair sequence of this synchronization code 0F (value expressed in hexadecimal) is a bit pair expressed by the above-mentioned conversion rule, and contains a certain number of bit information shown in (1), (3), etc. in FIG. This is a bit pair sequence that does not appear when converted, and the conversion rule is used to obtain this bit pair sequence. The output of transmit data register 66 is provided to the input of data bit section 72 of transmit shift register 68 . The transmission shift register 68 has a start bit section 70 and a stop bit section 74. The transmission shift register 68 receives a clock pulse P2 having a period of 833 μs from the clock pulse generator 76.

【0010】被制御装置28は、受信シフトレジスタ8
0、クロックパルス発生器88、3ビットカウンタ(C
NT)92、同期コード出力部94、比較回路96、及
びビット出力レジスタ(RDR0乃至RDR4)98乃
至106から成る。受信シフトレジスタ80は、クロッ
クパルス発生器88から833 μs の周期のクロッ
クパルスP3(クロックパルスP3の周期は、クロック
パターンP2と同一の周期である。)の供給を受ける。 3ビットカウンタ92は、833 ×10μs の周期
のクロックパルスP4(クロックパルスP4の周期は、
クロックパターンP1と同一の周期である。)の供給を
受ける。比較回路96、及びビット出力レジスタ98乃
至106には、カウンタ92からそのカウント値が供給
される。カウンタ92は、比較回路96からの一致出力
に応答して動作する。ビット出力レジスタ98乃至10
6は、図5に示すように構成されている。その出力は、
データの受信については一方のみを使用する。但し、受
信データのチェックについては、両方を用いる。ビット
出力レジスタ98乃至106の各出力は、被制御装置2
8の被制御対象部へ接続されている。
The controlled device 28 includes a receiving shift register 8
0, clock pulse generator 88, 3-bit counter (C
NT) 92, a synchronization code output section 94, a comparison circuit 96, and bit output registers (RDR0 to RDR4) 98 to 106. The reception shift register 80 receives a clock pulse P3 having a period of 833 μs from the clock pulse generator 88 (the period of the clock pulse P3 is the same as that of the clock pattern P2). The 3-bit counter 92 receives a clock pulse P4 with a period of 833 × 10 μs (the period of the clock pulse P4 is
It has the same period as the clock pattern P1. ). Comparison circuit 96 and bit output registers 98 to 106 are supplied with the count value from counter 92. Counter 92 operates in response to a match output from comparison circuit 96. Bit output registers 98-10
6 is configured as shown in FIG. Its output is
For data reception, only one is used. However, both are used to check received data. Each output of the bit output registers 98 to 106 is output to the controlled device 2.
It is connected to the controlled target section of 8.

【0011】前述の制御装置22から被制御装置28へ
のデータ送信を行なう構成の下での本発明の送信、及び
受信動作を以下に説明する。説明の都合上、制御装置2
2による被制御装置28の制御例として、制御装置22
から第1の信号線24へ送信される制御ビット情報とし
て、図6に示す6つのデータ、即ち電源遮断(Powe
r OFF )指示〔略号POF 〕、電源投入(Po
wer ON)指示〔略号PON 〕、EPO 指示〔
略号EPO〕、接続指示〔略号SEL 〕、電圧マージ
ン指示(Upper )〔略号VMGNU 〕、及び電
圧マージン指示(Lower )〔略号VMGNL 〕
とする。
The transmission and reception operations of the present invention under the configuration in which data is transmitted from the control device 22 to the controlled device 28 described above will be explained below. For convenience of explanation, control device 2
As an example of controlling the controlled device 28 by the control device 22,
As the control bit information transmitted from
r OFF ) instruction [abbreviation POF ], power on (Po
wer ON) instruction [abbreviation PON], EPO instruction [
[Abbreviation EPO], Connection instruction [Abbreviation SEL], Voltage margin instruction (Upper) [Abbreviation VMGNU], and Voltage margin instruction (Lower) [Abbreviation VMGNL]
shall be.

【0012】前述の各制御ビット情報が、制御装置22
から被制御装置28へ送信するに際して、制御装置22
の制御処理装置からデータレジスタ36及び40にセッ
トされるものとする(図8のSDR0,SDR1等参照
)。そのデータレジスタ36及び40の構成は、図4に
ついて説明したようなものであるから、データレジスタ
36及び40の出力に現れる信号状態は、図7の(1)
及び(3) に示すようになる。データレジスタ38,
42,44の出力には、この例に関する限り意味を有し
ない。データレジスタ36乃至44にセットされる制御
ビット情報の組を送信データ#0乃至#5と称する。そ
れらの送信データ(SD)は、図7の括弧付数字(0)
 乃至(5) に対応する。なお、この関係は、被制御
装置28から制御装置22へ送信する場合にも、当て嵌
まり、それらの送信データは、図7の括弧付数字(10
)乃至(15)に対応する。
Each control bit information mentioned above is transmitted to the control device 22.
When transmitting data from the control device 22 to the controlled device 28,
It is assumed that the data registers 36 and 40 are set from the control processing device (see SDR0, SDR1, etc. in FIG. 8). Since the configurations of the data registers 36 and 40 are as explained with reference to FIG. 4, the signal states appearing at the outputs of the data registers 36 and 40 are as shown in (1) in FIG.
and (3). data register 38,
The outputs of 42 and 44 have no meaning as far as this example is concerned. The sets of control bit information set in the data registers 36 to 44 are referred to as transmission data #0 to #5. Those transmission data (SD) are the numbers in parentheses (0) in Figure 7.
Corresponds to (5). Note that this relationship also applies to the case of transmission from the controlled device 28 to the control device 22, and these transmission data are indicated by the numbers in parentheses (10
) to (15).

【0013】このセットが完了した後の第1番目のクロ
ックパルスP1に応答してカウンタ30は、そのカウン
トアップを行なう。そのクロックパルスP1は、第2の
信号線24及び第2の信号線26の伝送速度が1200
bps であるとすると、833 ×10μs の周期
のパルスである。カウンタ30のオール0の値が、先ず
ドライバゲート回路34においてこれをイネーブルにし
て同期コード出力部32からの同期コードを(前記第1
番目のクロックパルスP1を受ける)送信データレジス
タ66へセットする。そして、第1番目のクロックパル
スP1において、送信データレジスタ66の同期コード
は、送信シフトレジスタ68のデータビット部72にセ
ットされる一方、第1番目のクロックパルスP1でカウ
ンタ30の値は、“1”へカウントアップされる。
The counter 30 counts up in response to the first clock pulse P1 after this set is completed. The clock pulse P1 has a transmission rate of 1200 on the second signal line 24 and the second signal line 26.
bps, it is a pulse with a period of 833×10 μs. The all-0 value of the counter 30 first enables the driver gate circuit 34 to output the synchronization code from the synchronization code output section 32 (the first
(receiving the th clock pulse P1) is set in the transmission data register 66. Then, at the first clock pulse P1, the synchronization code of the transmission data register 66 is set in the data bit section 72 of the transmission shift register 68, while at the first clock pulse P1, the value of the counter 30 is " It is counted up to 1”.

【0014】このデータレジスタ36の出力内容が送信
データレジスタ66にセットされた状態において、送信
シフトレジスタ68のデータビット部72にセットされ
ている同期コードは、スタートビット部70及びストッ
プビット部74にセットされているスタートビットが前
述のように833 μs の周期のクロックパルスP2
でシフトアウトされた後に前述のクロックパルスP2で
その各ビット位置にあるビットを順次にシフトアウトさ
れ(図8の(1) 及び(2) 参照)、同期コードの
シフトアウト後にストップビットが、又クロックパルス
P2でシフトアウトされて被制御装置28へ送信される
(図8の(1) 参照)。
When the output contents of the data register 36 are set in the transmission data register 66, the synchronization code set in the data bit section 72 of the transmission shift register 68 is stored in the start bit section 70 and the stop bit section 74. As mentioned above, the set start bit is the clock pulse P2 with a period of 833 μs.
After being shifted out, the bits at each bit position are sequentially shifted out using the clock pulse P2 described above (see (1) and (2) in Figure 8), and after the synchronization code is shifted out, the stop bit is also shifted out. It is shifted out with the clock pulse P2 and transmitted to the controlled device 28 (see (1) in FIG. 8).

【0015】この送信シフトレジスタ68の全ビットが
シフトアウトされてしまったとき、つまり第1のデータ
送信期間T0が終了したとき、カウンタ30への第2番
目のクロックパルスP1が、発生されるから、カウンタ
30は、“2”へカウントアップされる。この第2番目
のクロックパルスP1が、第1番のクロックパルスP1
によってカウントアップされたカウンタ30の値“1”
が、ドライバゲート回路46においてこれをイネーブル
にしてデータレジスタ36の出力に発生している図7の
(1) に示すデータを(前記第2番目のクロックパル
スP1を受ける)送信データレジスタ66にセットする
。このようにして、送信データレジスタ66にセットさ
れたデータの被制御装置28への送信動作(第2のデー
タ送信期間T1内の送信動作)は、同期コードについて
説明したところと同じである。そして、次のデータ送信
期間T2は、この実施例においては無効なデータの送信
期間となる(図7の(2) 参照)。データ送信期間T
3における送信データは、この実施例においては図7の
(3) に示すようなデータとなる。このデータについ
ての送信動作も、前述のところと同じである。データ送
信期間T4及びデータ送信期間T5は、図7の(4) 
及び(5) に示すように、この実施例では無効なデー
タの送信期間となる。   前述のようにして制御装置22から被制御装置28
へ送信されたデータの被制御装置28による受信動作を
説明する。
When all the bits of this transmission shift register 68 have been shifted out, that is, when the first data transmission period T0 ends, the second clock pulse P1 to the counter 30 is generated. , the counter 30 counts up to "2". This second clock pulse P1 is the first clock pulse P1.
The value “1” of the counter 30 counted up by
However, this is enabled in the driver gate circuit 46 and the data shown in (1) in FIG. do. In this way, the transmission operation of the data set in the transmission data register 66 to the controlled device 28 (the transmission operation within the second data transmission period T1) is the same as that described for the synchronization code. Then, the next data transmission period T2 is an invalid data transmission period in this embodiment (see (2) in FIG. 7). Data transmission period T
In this embodiment, the transmission data in step 3 is as shown in (3) in FIG. The transmission operation for this data is also the same as described above. The data transmission period T4 and the data transmission period T5 are (4) in FIG.
As shown in (5) and (5), this is an invalid data transmission period in this embodiment. From the controller 22 to the controlled device 28 as described above.
The operation of receiving data transmitted to the controlled device 28 by the controlled device 28 will be explained.

【0016】被制御装置28で受信されるビットシリア
ルの前述送信データ(図9の(1) 及び(4) 参照
)は、受信データ(RD)として、第1のクロックパル
ス発生回路(BCNT) 88からのクロックパルスP
3(その周期は、クロックパルスP2と同じである。)
(図9の(2) 参照)によって、受信シフトレジスタ
80へ順次にシフトインされて行く。そのシフトイン中
のサンプリング時刻(8/16)毎に送信されて来たビ
ットのサンプリングが行なわれる(図9の(2) 及び
(3) 参照)。
The bit-serial transmission data (see (1) and (4) in FIG. 9) received by the controlled device 28 is sent to the first clock pulse generation circuit (BCNT) 88 as reception data (RD). clock pulse P from
3 (The period is the same as clock pulse P2.)
(See (2) in FIG. 9), the signals are sequentially shifted into the reception shift register 80. The transmitted bits are sampled at every sampling time (8/16) during the shift-in (see (2) and (3) in FIG. 9).

【0017】スタートビット検出部79によるスタート
ビットの検出で(図9の(3) 参照)該スタートビッ
ト、及びこれに続く制御ビット情報の各ビットのデータ
ビット部84へのシフトインが生ぜしめられる(図9の
(4) 及び(5) 参照)。スタートビット検出部7
9によるスタートビットの検出で、データビット部84
にシフトインされているデータ(同期コード)〔図7の
(0) 参照〕の受信パラレルレジスタ90への転送が
クロックパルスP4(その周期は、クロックパルスP1
と同じである。)でデータ受信期間T0内に生ぜしめら
れる。この受信パラレルレジスタ90にセットされたデ
ータと、同期コード出力部94からの同期コードとが、
比較回路96で比較される。この比較回路96には、カ
ウンタ92からのオール0の値が供給されている。つま
り、比較動作を行なうように比較回路96はイネーブル
にされている(アドレスされている)。それら両者間に
一致が得られて一致信号DETOF が、比較回路96
から出力される。前記一致信号DETOF に応答して
カウンタ92は、クロックパルスP4毎にカウントアッ
プ動作を開始する。
Detection of a start bit by the start bit detection section 79 (see (3) in FIG. 9) causes the start bit and each bit of the control bit information following it to be shifted into the data bit section 84. (See (4) and (5) in Figure 9). Start bit detection section 7
Upon detection of the start bit by 9, the data bit section 84
The data (synchronization code) [see (0) in FIG.
is the same as ) is generated within the data reception period T0. The data set in the reception parallel register 90 and the synchronization code from the synchronization code output section 94 are
A comparison circuit 96 compares the signals. This comparator circuit 96 is supplied with all 0 values from the counter 92. That is, comparison circuit 96 is enabled (addressed) to perform a comparison operation. When a match is obtained between the two, a match signal DETOF is sent to the comparator circuit 96.
is output from. In response to the coincidence signal DETOF, the counter 92 starts counting up every clock pulse P4.

【0018】前記データ受信期間T0に続くデータ受信
期間T1には、前記データ受信期間T0内にデータを受
信したと同様の受信動作で次のデータ、即ち図7の(2
) のデータが受信される。このデータは、前述のとこ
ろからして無効なデータである。そのことは、被制御装
置28には送受系の設計において取り決められている事
項であるので、被制御装置28では受信したそのデータ
に対する無効処理を行なう。
During the data reception period T1 following the data reception period T0, the next data, ie, (2) in FIG.
) data is received. This data is invalid data considering the above. Since this is a matter determined in the design of the transmission/reception system of the controlled device 28, the controlled device 28 performs invalidation processing on the received data.

【0019】次のデータ受信期間T2には、有効なデー
タの受信となる。そのデータは、図7の(3) であり
、その受信動作は、前述した同期コードの受信動作と全
く同じである。以下、同様にして、各データの受信動作
が繰り返される。その受信状態を示したのが、図10の
(8) 乃至(15)である。前記設例の各データには
網掛けを施して示してあり、OF、及び#0乃至#5が
それに相当する。#6及び#7は、前記設例では使用し
ないので、そこには網掛けを施してない。
In the next data reception period T2, valid data is received. The data is (3) in FIG. 7, and its receiving operation is exactly the same as the synchronization code receiving operation described above. Thereafter, the operation of receiving each data is repeated in the same manner. The reception status is shown in (8) to (15) in FIG. Each piece of data in the above example is shaded and corresponds to OF and #0 to #5. #6 and #7 are not used in the above example, so they are not shaded.

【0020】前述のようにして被制御装置28へ送信さ
れて来た制御ビット情報に対して、前述したような監視
ビット情報が、被制御装置28から第2の信号線26を
経て制御装置22へ返送されるが、この場合の送受動作
も、前述したところに準じて行なわれる。そのハードウ
ェア構成は、前述の制御装置22、及び被制御装置28
における送信装置を受信装置とし、受信装置を送信装置
とする構成を用いる。その監視ビット情報の例を以下に
示す。又、制御装置22から被制御装置28へ送信され
る制御ビット情報に対して、被制御装置28から返送さ
れる監視ビット情報としては、図6に示すように、ファ
ン異常(FAN Alarm )〔略号FANAL 〕
、接続完了〔略号CNCT〕、端末状態〔略号LCL 
〕、電源異常(Power Alarm )〔略号PO
WAL 〕、電源使用可能(Power Ready 
)〔略号RDY 〕、被制御装置異常〔略号SERR〕
、パネル操作可能(Panel Enable) 〔略
号PENBL 〕、制御系異常(A−B制御Error
)〔略号DERR〕があり、この例における送信データ
の様子は、図7の(10)乃至(15)に示してある。 この図7の(10)乃至(15)を図7の(0) 乃至
(5) に対応させて前述の説明を参照すれば、自ずと
明らかになると思われるので、その詳細な説明は、省略
する。
In contrast to the control bit information transmitted to the controlled device 28 as described above, the monitoring bit information as described above is transmitted from the controlled device 28 to the control device 22 via the second signal line 26. The sending and receiving operations in this case are also carried out in the same manner as described above. Its hardware configuration includes the aforementioned control device 22 and controlled device 28.
A configuration is used in which the transmitting device is the receiving device and the receiving device is the transmitting device. An example of the monitoring bit information is shown below. Further, as shown in FIG. 6, the monitoring bit information returned from the controlled device 28 in response to the control bit information sent from the control device 22 to the controlled device 28 includes fan abnormality (FAN Alarm) [abbreviation FANAL]
, Connection completed [abbreviation CNCT], Terminal status [abbreviation LCL]
], Power abnormality (Power Alarm) [abbreviation PO
WAL ], Power Ready
) [abbreviation RDY], controlled device error [abbreviation SERR]
, Panel Enable [abbreviation PENBL], Control system error (A-B Control Error)
) [abbreviation DERR], and the transmission data in this example is shown in (10) to (15) in FIG. If you refer to the above explanation in which (10) to (15) in FIG. 7 correspond to (0) to (5) in FIG. 7, it will become obvious, so a detailed explanation thereof will be omitted. .

【0021】なお、前記実施例における第1の信号線2
4及び第2の信号線26の伝送速度は、単なる例示に過
ぎないし、1つの送信期間及び受信期間内に含ませ得る
同期コードの構成ビット数、情報数も又同じである。 又、同期コードの構成も、必ずしも前述のビット構成に
限って本発明を構成し得るものではないことも(但し、
16進表示で00,FFを除く。)、又当業者には明ら
かであろう。又、正負の極性への情報ビットの変換、そ
の逆変換も、図4、及び図5に示す構成でなくてもよい
Note that the first signal line 2 in the above embodiment
4 and the second signal line 26 are merely examples, and the number of constituent bits and the number of information of the synchronization code that can be included in one transmission period and one reception period are also the same. Furthermore, the structure of the synchronization code is not necessarily limited to the above-mentioned bit structure (however,
Excludes 00 and FF in hexadecimal display. ), will also be clear to those skilled in the art. Furthermore, the conversion of information bits into positive and negative polarities and the inverse conversion thereof do not have to be the configurations shown in FIGS. 4 and 5.

【0022】[0022]

【発明の効果】以上説明したように本発明によれば、同
期コード及び一定数の情報ビットの正負の極性への変換
、その逆変換を用いるようにしたので、その送受信に必
要な制御回路乃至ファームウエアの簡易化に寄与し、制
御装置負担も軽減する。従って、情報伝送費用の逓減も
図れる。
[Effects of the Invention] As explained above, according to the present invention, since the conversion of a synchronization code and a certain number of information bits into positive and negative polarities, and the inverse conversion thereof, This contributes to the simplification of firmware and reduces the burden on control equipment. Therefore, information transmission costs can be gradually reduced.

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

【図1】請求項1及び請求項2に係わる発明の説明図で
ある。
FIG. 1 is an explanatory diagram of the invention according to claims 1 and 2.

【図2】請求項1に係わる発明の一実施例を示す図であ
る。
FIG. 2 is a diagram showing an embodiment of the invention according to claim 1.

【図3】請求項2に係わる発明の一実施例を示す図であ
る。
FIG. 3 is a diagram showing an embodiment of the invention according to claim 2.

【図4】データレジスタを示す図である。FIG. 4 is a diagram showing a data register.

【図5】ビット出力レジスタを示す図である。FIG. 5 is a diagram showing a bit output register.

【図6】制御ビット情報及び監視ビット情報の例を示す
図である。
FIG. 6 is a diagram showing an example of control bit information and monitoring bit information.

【図7】制御ビット情報及び監視ビット情報の具体的構
成例を示す図である。
FIG. 7 is a diagram showing a specific configuration example of control bit information and monitoring bit information.

【図8】送信タイミングチャートの例を示す図である。FIG. 8 is a diagram showing an example of a transmission timing chart.

【図9】受信タイミングチャートの例を示す図である。FIG. 9 is a diagram showing an example of a reception timing chart.

【図10】受信タイミングチャートの例を示す図である
FIG. 10 is a diagram showing an example of a reception timing chart.

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

22  制御装置 28  被制御装置 30  3ビットカウンタ 32  同期コード出力部 34  ドライバゲート回路 36乃至44  データレジスタ 46乃至54  ドライバドライバゲート回路66  
送信データレジスタ 68  送信シフトレジスタ 76  クロックパルス発生器 88  クロックパルス発生器 90  受信パラレルレジスタ 92  3ビットカウンタ 94  同期コード出力部 96  比較回路
22 Control device 28 Controlled device 30 3-bit counter 32 Synchronization code output unit 34 Driver gate circuits 36 to 44 Data registers 46 to 54 Driver driver gate circuit 66
Transmission data register 68 Transmission shift register 76 Clock pulse generator 88 Clock pulse generator 90 Reception parallel register 92 3-bit counter 94 Synchronization code output section 96 Comparison circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  一定数のビット情報を伝送する際に、
前記ビット情報の極性を反転させ、前記ビット情報と当
該ビット情報の反転ビット情報を対にし、ビット対とし
(1)、前記ビット対であって、前記一定数のビット情
報を変換したときに現れないビット対シーケンスの同期
コードを送信し(2)、前記ビット対の各々を予め決め
られた順序で前記同期コードの送信に続いて送信する(
3)ことを特徴とするシリアルデータ送信方式。
[Claim 1] When transmitting a certain number of bits of information,
The polarity of the bit information is inverted, the bit information and the inverted bit information of the bit information are paired, and a bit pair (1) is formed, which is the bit pair that appears when the certain number of bit information is converted. transmitting (2) a synchronization code of a sequence of bit pairs with no sequence of bits, and transmitting each of said bit pairs in a predetermined order subsequent to the transmission of said synchronization code (
3) A serial data transmission method characterized by the following.
【請求項2】  ビット情報と当該ビット情報の反転ビ
ット情報のビット対であって、一定数のビット情報を変
換したときに現れないビット対シーケンスの同期コード
を検出し(4)、該同期コードの検出に応答して該同期
コードに続く正負の極性で表される一定数のビット対を
送信順序と同一の順序で抽出し(5)、抽出された一定
数のビット対から各ビット対対応のビット情報を受信す
る(6)ことを特徴とするシリアルデータ受信方式。
2. Detecting a synchronization code of a bit pair sequence that is a bit pair of bit information and inverted bit information of the bit information and that does not appear when a certain number of bit information is converted (4), In response to the detection of the synchronization code, a fixed number of bit pairs represented by positive and negative polarities following the synchronization code are extracted in the same order as the transmission order (5), and each bit pair correspondence is extracted from the extracted fixed number of bit pairs. (6) A serial data reception method characterized by receiving bit information of (6).
JP40455090A 1990-12-20 1990-12-20 Serial data transmitting system and serial data receiving system Withdrawn JPH04220031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP40455090A JPH04220031A (en) 1990-12-20 1990-12-20 Serial data transmitting system and serial data receiving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP40455090A JPH04220031A (en) 1990-12-20 1990-12-20 Serial data transmitting system and serial data receiving system

Publications (1)

Publication Number Publication Date
JPH04220031A true JPH04220031A (en) 1992-08-11

Family

ID=18514210

Family Applications (1)

Application Number Title Priority Date Filing Date
JP40455090A Withdrawn JPH04220031A (en) 1990-12-20 1990-12-20 Serial data transmitting system and serial data receiving system

Country Status (1)

Country Link
JP (1) JPH04220031A (en)

Similar Documents

Publication Publication Date Title
KR100235842B1 (en) Data transmission/receipt circuit and method thereof
JPH11149445A (en) Serial interface device having register for both transmission and reception
GB2109206A (en) Data transmission system utilising power line of 3-phase alternating current
JP2753915B2 (en) Communication control device
WO2007052212A1 (en) Data interface and method of seeking synchronization
JPH08265308A (en) Method and device for fully bidirectional communication and programmable controller using the same
JPH04220031A (en) Serial data transmitting system and serial data receiving system
JP3252229B2 (en) Digital data transmission system
JPH07264263A (en) Serial communication interface device
JPS5911056A (en) Start-stop synchronism type communication system
JPS63158934A (en) Start bit detection circuit
KR100386558B1 (en) fast detection method for data rate
JP3216145B2 (en) Data transfer method
JPS62171349A (en) Communication control equipment
KR100206263B1 (en) Asynchronous data tranceiver
JPH11205396A (en) Serial communication equipment
JP3063291B2 (en) Line monitoring circuit
JPH065831B2 (en) Signal frame transmission method
SU674072A1 (en) Simplex information transmitting-receiving apparatus
SU1348885A1 (en) Device for transmitting and receiving information
JP2545165Y2 (en) Serial data transmission device
SU1501118A1 (en) Arrangement for transmitting and receiving signals
JPH06125356A (en) Synchronization circuit
JPH0214648A (en) Data transmission circuit
JPS63152249A (en) Data transmission system

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