JPS6141228A - Serial-to-parallel converter - Google Patents

Serial-to-parallel converter

Info

Publication number
JPS6141228A
JPS6141228A JP16289884A JP16289884A JPS6141228A JP S6141228 A JPS6141228 A JP S6141228A JP 16289884 A JP16289884 A JP 16289884A JP 16289884 A JP16289884 A JP 16289884A JP S6141228 A JPS6141228 A JP S6141228A
Authority
JP
Japan
Prior art keywords
serial
signal
circuit
parallel
delay
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
JP16289884A
Other languages
Japanese (ja)
Other versions
JPH0149210B2 (en
Inventor
Sumio Koseki
小関 純夫
Takao Gotoda
後藤田 卓男
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 JP16289884A priority Critical patent/JPS6141228A/en
Publication of JPS6141228A publication Critical patent/JPS6141228A/en
Publication of JPH0149210B2 publication Critical patent/JPH0149210B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M9/00Parallel/series conversion or vice versa

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Time-Division Multiplex Systems (AREA)

Abstract

PURPOSE:To decrease the number of bit counter circuits down to just one and to simplify the structure of a serial/parallel converter, by using a delay circuit which can set optionally the number of delay stages that delays the serial reception signals, a serial/parallel converting circuit which converts the delayed serial reception signals into parallel signals and a bit counter circuit which counts the bits of the serial reception signals. CONSTITUTION:The number of delay stages of a delay circuit 3 is controlled by the set contents of a setting register 4. The setting information is transferred from a processor 1 via a bus and set by a load control signal LD. The reception signal delayed by the circuit 3 is applied to a shift register 2 and shifted successively by a clock signal CLK. The timing for serial/parallel conversion is produced when the processor 1 reads the contents of a bit counter circuit 7. This circuit 7 is reset by the detection signal SYN of a frame synchronizing signal F of a transmission signal and counts clock signals CLK. The circuit 7 also serves as a parallel/serial converter at a transmission part (not shown in figure).

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、時分割方向制御伝送方式(ピンポン伝送方式
)に於いて、送信タイミングに対して受信タイミングが
一定となるように、直列受信信号を遅延させる遅延段数
を設定して、直列受信信号を並列信号に変換する直並列
変換装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides serial reception signals in a time-division direction control transmission system (ping-pong transmission system) so that the reception timing is constant with respect to the transmission timing. The present invention relates to a serial-to-parallel converter that converts a serial received signal into a parallel signal by setting the number of delay stages for delaying the signal.

〔従来の技術〕[Conventional technology]

時分割方向制御伝送方式は、2線ディジタル回線により
接続された端末等の装置間に於いて、送信と受信とを一
定の周期で交互に切換えて行い、全二重通信方式と同様
に相互通信を行う伝送方式であり、受信した後に送信す
ることを繰り返すものであるから、ビンボン伝送方式と
も称されるものである。この場合、直列信号で伝送され
るから、受信部では並列信号に変換して処理することに
なる。
In the time-division direction control transmission method, transmission and reception are alternately switched at a fixed period between devices such as terminals connected by a two-wire digital line, and mutual communication is carried out similarly to the full-duplex communication method. This is a transmission method that repeatedly transmits after receiving, so it is also called the bing-bong transmission method. In this case, since it is transmitted as a serial signal, the receiving section converts it into a parallel signal and processes it.

例えば、第3図の(a)を親局、(blを子局のそれぞ
れ送受信信号、(e)を伝送フレームフォーマットとす
ると、親局から信号Aを送出した時、子局は伝送遅延時
間τ後に信号aとして受信することになる。子局は、こ
の受信信号aを基準にして、信号Bの送信タイミングを
決定する。この信号Bを親局では伝送遅延時間τ後に信
号すとして受信することになる。
For example, if (a) in Figure 3 is the master station, (bl is the transmitted and received signal of the slave station, and (e) is the transmission frame format, then when the master station sends out signal A, the slave station will have a transmission delay time τ It will later be received as signal a.The slave station determines the transmission timing of signal B based on this received signal a.The master station will receive this signal B as a signal after the transmission delay time τ. become.

1バ一スト周期T内に於いて、前述のように、親局は信
号Aを送信し、子局からの信号すを受信するものであり
、次のバースト周期では信号Cを送信して、子局からの
信号dを受信することになる。又子局は、信号Cを受信
して信号りを送信することになる。
As mentioned above, within one burst period T, the master station transmits signal A and receives the signal from the slave station, and in the next burst period it transmits signal C, It will receive the signal d from the slave station. Further, the slave station receives the signal C and transmits the signal.

伝送信号の先頭には、(C)に示すように、フレーム同
期信号Fが付加され、例えば8ビツト構成のデータDI
、 D2.ca、  ・・・が直列に伝送されるもので
あり、最後はバランスビット等が付加されている。送信
部に於いては、8ビット並列の送信データを、直列に変
換して送信するものであり、又受信部では、直列信号と
して受信した信号を、8ビット並列の受信データに変換
するものである。なお、16ビツトのプロセッサ等を用
いた場合には、16ビツト毎に受信信号を直列に変換す
ることになる。
At the beginning of the transmission signal, as shown in (C), a frame synchronization signal F is added, and for example, 8-bit data DI is added.
, D2. ca, . . . are transmitted in series, and a balance bit etc. is added at the end. The transmitting section converts the 8-bit parallel transmission data into a serial signal and transmits it, and the receiving section converts the signal received as a serial signal into 8-bit parallel receiving data. be. Note that if a 16-bit processor or the like is used, the received signal will be serially converted every 16 bits.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

親局と複数の子局との間はそれぞれ異なる距離となる場
合が一般的であり、従って子局対応に伝送遅延時間τが
異なることになる。その為、親局に於いては、各バース
ト周期に同期して信号A。
Generally, the distances between the master station and the plurality of slave stations are different, and therefore the transmission delay time τ differs depending on the slave stations. Therefore, the master station transmits signal A in synchronization with each burst cycle.

Cを送信しても、信号す、dの受信タイミングは子局対
応或いは伝送径路によって異なるものとなる。並列信号
を直列信号に変換して送信し、直列信号を受信して並列
信号に変換する場合に、それぞれ例えば8ビット単位で
変換処理を行うものであるが、前述のように、親局に於
いては、送信タイミングと受信タイミングとは同期化さ
れていないことになり、従って、並列直列変換の為のビ
ット計数回路と、直列並列変換の為のビット計数回路と
をそれぞれ設ける必要があった。
Even if C is transmitted, the reception timing of signals S and D differs depending on the slave station or the transmission route. When converting a parallel signal into a serial signal and transmitting it, and receiving a serial signal and converting it into a parallel signal, the conversion process is performed in units of, for example, 8 bits, but as mentioned above, the master station In this case, the transmission timing and the reception timing are not synchronized, so it is necessary to provide a bit counting circuit for parallel-serial conversion and a bit counting circuit for serial-parallel conversion, respectively.

本発明は、ビット計数回路は1個で済むようにして、時
分割方向制御伝送方式に於ける受信信号の直列並列変換
を行わせることを目的とするものである。
SUMMARY OF THE INVENTION An object of the present invention is to perform serial-to-parallel conversion of a received signal in a time-division direction control transmission system by requiring only one bit counting circuit.

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

本発明の直並列変換装置は、直列受信信号を遅延させる
遅延段数を任意に設定可能な遅延回路と、この遅延回路
により遅延された直列受信信号を並列信号に変換する直
列並列変換回路と、前記直列受信信号のビット数を計数
するビット計数回路とを備えたものである。
The serial-to-parallel conversion device of the present invention includes: a delay circuit that can arbitrarily set the number of delay stages for delaying a serial received signal; a serial-to-parallel conversion circuit that converts the serial received signal delayed by the delay circuit into a parallel signal; It is equipped with a bit counting circuit that counts the number of bits of a serially received signal.

〔作用〕[Effect]

遅延回路の遅延段数を設定して受信信号を遅延させ、そ
れによって直列並列変換回路に於ける変換タイミングを
一定の関係となるようにし、従って、ビット計数回路は
、送信の場合の並列直列変換の為のビット計数回路と兼
用することができるものである。
The number of delay stages of the delay circuit is set to delay the received signal, thereby making the conversion timing in the serial-to-parallel conversion circuit have a certain relationship. This circuit can also be used as a bit counting circuit.

〔実施例〕〔Example〕

以下図面を参照して、本発明の実施例について詳細に説
明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の実施例のブロック図であり、1はプロ
セッサ(MPU) 、2はシフトレジスタ(SREG)
 、3は遅延回路(DEL) 、4は設定レジスタ(R
EG) 、5はビットバッファレジスタ(BBF) 、
6.8はバスドライバ、7はビット計数回路(BCNT
)である。受信信号Stは、ピットバッファレジスタ5
に加えられ、この受信信号Siから抽出したクロック信
号CKIにより・書込まれ、装置内のクロック信号CL
Kにより読出されて、遅延回路3に加えられる。
FIG. 1 is a block diagram of an embodiment of the present invention, where 1 is a processor (MPU) and 2 is a shift register (SREG).
, 3 is a delay circuit (DEL), 4 is a setting register (R
EG), 5 is a bit buffer register (BBF),
6.8 is a bus driver, 7 is a bit counting circuit (BCNT)
). The received signal St is sent to the pit buffer register 5.
is written by the clock signal CKI extracted from this received signal Si, and the clock signal CL in the device is written.
K is read out and applied to the delay circuit 3.

この遅延回路3の遅延段数は、設定レジスタ4の設定内
容により制御されるものであり、設定情報は、プロセッ
サ1からバス経由で転送され、ロード制御信号LDによ
りセットされる。遅延回路3により遅延された受信信号
は、シフトレジスタ2に加えられ、クロック信号CLK
により順次シフトされる。このシフトレジスタ2の内容
は並列にバスドライバ6を介してプロセッサ1に転送さ
れることにより、直列並列変換が行われるものである。
The number of delay stages of the delay circuit 3 is controlled by the setting contents of the setting register 4, and setting information is transferred from the processor 1 via the bus and set by the load control signal LD. The received signal delayed by the delay circuit 3 is applied to the shift register 2 and clock signal CLK
are sequentially shifted by The contents of this shift register 2 are transferred in parallel to the processor 1 via the bus driver 6, thereby performing serial-to-parallel conversion.

この直列並列変換の為のタイミングは、ビット計数回路
7の内容をプロセッサ1が読取って作成するものであり
、このビット計数回路7は、送信信号のフレーム同期信
号Fの検出信号SYNによってリセットされ、クロック
信号CLKをカウントするものであり、図示を省略した
送信部に於ける並列直列変換用としても使用されるもの
である。
The timing for this serial-parallel conversion is created by the processor 1 reading the contents of the bit counting circuit 7, and this bit counting circuit 7 is reset by the detection signal SYN of the frame synchronization signal F of the transmission signal. It counts the clock signal CLK, and is also used for parallel-to-serial conversion in a transmitter (not shown).

プロセッサlは、受信信号Stのフレーム同期信号Fを
識別するまで、シフトレジスタ2の内容をクロック信号
CLKの周期でイネーブル信号EN1を出力することに
よって読取り、例えば、′01111110”のフレー
ム同期信号Fであるか否かを識別する。このフレーム同
期信号Fを識別した時、ビット計数回路7の計数内容を
イネーブル信号EN2をバスドライバ8に加えることに
よって読取り、何ビットのずれがあるか演算する。例え
ば、3ビツトのずれがある場合には、バス経由で設定レ
ジスタ4に3ビツトの遅延段数設定データを加えて、ロ
ード制御信号LDによりセットする。遅延回路3は設定
レジスタ4のセット内容に従った遅延段数で受信信号を
遅延させてシフトレジスタ2に加えるものであり、シフ
トレジスタ2の内容を並列に読出すタイミングは、ビッ
ト計数回路7に於けるクロック信号CLKの計数内容に
より定まることになる。
The processor l reads the contents of the shift register 2 by outputting the enable signal EN1 at the cycle of the clock signal CLK until it identifies the frame synchronization signal F of the received signal St. When this frame synchronization signal F is identified, the count contents of the bit counter circuit 7 are read by applying the enable signal EN2 to the bus driver 8, and the number of bits shifted is calculated.For example, , if there is a 3-bit shift, add 3-bit delay stage number setting data to the setting register 4 via the bus and set it using the load control signal LD.The delay circuit 3 follows the set contents of the setting register 4. The received signal is delayed by the number of delay stages and added to the shift register 2, and the timing for reading out the contents of the shift register 2 in parallel is determined by the count contents of the clock signal CLK in the bit counting circuit 7.

第2図は本発明の実施例の遅延回路3を示し、FF1〜
FF5はフリップフロップ、SELはセレクタである。
FIG. 2 shows a delay circuit 3 according to an embodiment of the present invention, with FF1 to
FF5 is a flip-flop, and SEL is a selector.

フリップフロップFFI〜FF5のクロック端子CKに
クロック信号CLKが加えられ、初段のフリップフロッ
プFFIのデータ端子りに受信信号Siが加えられるの
で、各フリップフロラ1FFI〜FF5のQ端子出力は
、クロック信号CLKに従って遅延された受信信号Si
となり、入力された受信信号Siと各段のQ端子出力信
号とがセレクタSELに加えられる。
Since the clock signal CLK is applied to the clock terminal CK of the flip-flops FFI to FF5, and the reception signal Si is applied to the data terminal of the first stage flip-flop FFI, the Q terminal output of each flip-flop 1FFI to FF5 is the clock signal CLK. The received signal Si delayed according to
The input reception signal Si and the Q terminal output signal of each stage are applied to the selector SEL.

フリップフロップFFI〜FF5の段数は、並列信号を
8ビツト構成とすれば、8段あれば良く、設定レジスタ
4は遅延段数に対応した設定データをセットする構成と
すれば良いことは勿論である。前述のように、3ビツト
のずれがあれば、設定レジスタ4のセット内容により、
フリップフロップFF3Q端子出力がセレクタSELに
よって選択出力されることになる。
It goes without saying that the number of stages of the flip-flops FFI to FF5 may be eight if the parallel signal has an 8-bit configuration, and the setting register 4 may be configured to set setting data corresponding to the number of delay stages. As mentioned above, if there is a difference of 3 bits, depending on the set contents of setting register 4,
The output from the flip-flop FF3Q terminal is selected and output by the selector SEL.

遅延回路3により遅延された受信信号Stは、送信タイ
ミングに同期したものとなるから、ビット計数回路7の
計数内容に従って、シフトレジスタ2により並列信号に
変換されることになる。
Since the received signal St delayed by the delay circuit 3 is synchronized with the transmission timing, it is converted into a parallel signal by the shift register 2 according to the count contents of the bit counting circuit 7.

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

以上説明したように、本発明は、時分割方向制御伝送方
式(ピンポン伝送方式)に於いて、直列受信信号を遅延
させる遅延回路3と、シフトレジスタ2等からなる直列
並列変換回路と、ビット計数回路7とを備えたものであ
り、遅延回路3の遅延段数を設定することにより、送信
タイミングに対して受信タイミングを一定とすることが
できるから、並列信号を直列信号に変換して送信する場
合のビット計数回路と共用化して、受信信号を並列に変
換することが可能となり、構成が簡単化される利点があ
る。
As explained above, the present invention provides a delay circuit 3 for delaying a serially received signal, a serial-to-parallel conversion circuit including a shift register 2, etc., and a bit counting system in a time division direction control transmission system (ping-pong transmission system). By setting the number of delay stages of the delay circuit 3, the reception timing can be kept constant with respect to the transmission timing, so when converting a parallel signal into a serial signal and transmitting it. It is possible to convert the received signal in parallel by sharing the bit counting circuit with the bit counting circuit of the above, which has the advantage of simplifying the configuration.

【図面の簡単な説明】 第1図は本発明の実施例のブロック図、第2図1はプロ
セッサ(MPU) 、2はシフトレジスタ(SREG)
 、3は遅延回路(DF、L) 、4は設定レジスタ(
REG) 、5はピットバッファレジスタ(BBF) 
、6.8はバスドライバ、7はビット計数回路(BCN
T) 、FF1〜FF5はフリップフロップ、SELは
セレクタである。 の
[Brief Description of the Drawings] Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 1 is a processor (MPU), 2 is a shift register (SREG)
, 3 is the delay circuit (DF, L), 4 is the setting register (
REG), 5 is pit buffer register (BBF)
, 6.8 is a bus driver, 7 is a bit counting circuit (BCN
T), FF1 to FF5 are flip-flops, and SEL is a selector. of

Claims (1)

【特許請求の範囲】[Claims] 時分割方向制御伝送方式における直列受信信号を並列信
号に変換する直並列変換装置に於いて、前記直列受信信
号を遅延させる遅延段数を任意に設定可能な遅延回路と
、該遅延回路により遅延された直列受信信号を並列信号
に変換する直列並列変換回路と、前記直列受信信号のビ
ット数を計数するビット計数回路とを備えたことを特徴
とする直並列変換装置。
A serial-to-parallel conversion device for converting a serial received signal into a parallel signal in a time division direction control transmission system includes a delay circuit that can arbitrarily set the number of delay stages for delaying the serial received signal, and a delay circuit that delays the serial received signal by the delay circuit. A serial-to-parallel conversion device comprising: a serial-to-parallel conversion circuit for converting a serially received signal into a parallel signal; and a bit counting circuit for counting the number of bits of the serially received signal.
JP16289884A 1984-08-03 1984-08-03 Serial-to-parallel converter Granted JPS6141228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16289884A JPS6141228A (en) 1984-08-03 1984-08-03 Serial-to-parallel converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16289884A JPS6141228A (en) 1984-08-03 1984-08-03 Serial-to-parallel converter

Publications (2)

Publication Number Publication Date
JPS6141228A true JPS6141228A (en) 1986-02-27
JPH0149210B2 JPH0149210B2 (en) 1989-10-24

Family

ID=15763333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16289884A Granted JPS6141228A (en) 1984-08-03 1984-08-03 Serial-to-parallel converter

Country Status (1)

Country Link
JP (1) JPS6141228A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54150940A (en) * 1978-05-18 1979-11-27 Tektronix Inc Seriallparallel signal converter
JPS55104849U (en) * 1978-11-27 1980-07-22

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54150940A (en) * 1978-05-18 1979-11-27 Tektronix Inc Seriallparallel signal converter
JPS55104849U (en) * 1978-11-27 1980-07-22

Also Published As

Publication number Publication date
JPH0149210B2 (en) 1989-10-24

Similar Documents

Publication Publication Date Title
JPH07105818B2 (en) Parallel transmission method
CA1270575A (en) I/o handler
JPS6141228A (en) Serial-to-parallel converter
US5260977A (en) Communication terminal equipment
JP2677274B2 (en) Variable length serial data communication system
JPS58225756A (en) Serial data communication device
JP4884034B2 (en) Audio output device
JP3882300B2 (en) Serial data holding circuit
KR100239487B1 (en) Voice pcm data transmitter
JP3092314B2 (en) Data relay device
JP2770375B2 (en) Transmission delay phase compensation circuit
JPH04270521A (en) Multiplex channel receiver
SU842778A1 (en) Data exchange device
JP2540770B2 (en) Data communication circuit
SU1160422A1 (en) Interface for linking input-output channels with subsribers
JP2949118B1 (en) Encoder data output method for bus communication type encoder device
JPS61214635A (en) Data transmission system
JPS5925535B2 (en) Time-division bidirectional transmission transmission/reception control device
JPH0678003A (en) Data transmission system
JPH0642668B2 (en) Data exchange system
JPH0530069A (en) Control signal transmission system
JPS59135561A (en) Detecting and transmitting circuit of circuit control signal
JPS63110838A (en) Synchronizing signal transfer system
JPS63314936A (en) Start-stop synchronizing type data communication system
JPH04177948A (en) Serial transfer system