JPH0117880Y2 - - Google Patents

Info

Publication number
JPH0117880Y2
JPH0117880Y2 JP13064783U JP13064783U JPH0117880Y2 JP H0117880 Y2 JPH0117880 Y2 JP H0117880Y2 JP 13064783 U JP13064783 U JP 13064783U JP 13064783 U JP13064783 U JP 13064783U JP H0117880 Y2 JPH0117880 Y2 JP H0117880Y2
Authority
JP
Japan
Prior art keywords
data
counter
memory
bit
latch circuit
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.)
Expired
Application number
JP13064783U
Other languages
Japanese (ja)
Other versions
JPS6040152U (en
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 filed Critical
Priority to JP13064783U priority Critical patent/JPS6040152U/en
Publication of JPS6040152U publication Critical patent/JPS6040152U/en
Application granted granted Critical
Publication of JPH0117880Y2 publication Critical patent/JPH0117880Y2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Dc Digital Transmission (AREA)

Description

【考案の詳細な説明】 〔技術分野〕 本考案はデータサンプリング回路、特に入力デ
ータ中に他と異なる語長を有するデータ語を含む
場合のデータサンプリング回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to a data sampling circuit, and particularly to a data sampling circuit when input data includes a data word having a different word length.

〔背景技術〕[Background technology]

データ処理においては、一般にデータはある一
定のビツト長(例えばバイト)の、いわゆるデー
タ語を単位として処理される。しかしこれが伝送
される場合は送信側において並−直変換を行ない
直列ビツトシーケンスとして伝送回線に送り出
す。受信側においては、直列ビツトシーケンスの
中から各データ語の区切りを識別し、直−並変換
を施してデータを復元する。このような伝送シス
テムにおいては、受信側のデータサンプリング回
路は、データ語が全て同一ビツト長でるものとし
て処理するから、もし他のデータ語と異なるビツ
ト長のデータ語が混在すると、そこからデータ語
間の区切りがずれて正確な再生はできない。従つ
て、他と異なる語長のデータ語を含める必要があ
る場合は、残余部分にゼロを詰める等して語長を
揃えてから送信する。その場合は勿論受信側にお
いて、その詰めたゼロを除去する作業が行われ
る。
In data processing, data is generally processed in so-called data words having a certain bit length (for example, bytes). However, when this is to be transmitted, it is subjected to parallel-to-serial conversion on the transmitting side and sent out as a serial bit sequence to the transmission line. On the receiving side, the delimiter of each data word is identified in the serial bit sequence, and the data is restored by performing parallel-to-parallel conversion. In such a transmission system, the data sampling circuit on the receiving side processes all data words as having the same bit length, so if there are data words with a different bit length than other data words, the data sampling circuit will process the data words as having the same bit length. The separation between the lines may be off, making accurate playback impossible. Therefore, if it is necessary to include a data word with a different word length, the remaining part is padded with zeros to make the word lengths the same before transmission. In that case, of course, the receiving side must remove the padded zeros.

上記のように全てのデータ語長が揃つていれ
ば、送・受信側共に回路構成は簡単である。
If all data word lengths are the same as described above, the circuit configurations on both the transmitting and receiving sides are simple.

しかし、一方、上記の送信側における語長を揃
える作業と、受信側におけるその分解作業とは、
いずれもプログラムによつて行われ、CPUに依
存している。
However, on the other hand, the work of aligning the word lengths on the sending side and the decomposition work on the receiving side are as follows:
Both are done by programs and depend on the CPU.

最近各種のデータ伝送システムにおいて、繁忙
を極めるCPUの手から、上記のような末端的な
データ処理の作業を解放する要求がある場合が少
なくない。
Recently, in various data transmission systems, there has often been a demand to free the above-mentioned terminal data processing work from the busy hands of the CPU.

〔考案の開示〕[Disclosure of invention]

本考案は、上記のような要求に応ずるため、語
長の異なるデータ語を含む直列ビツトシーケンス
を受信し、CPUに依存することなく処理し得る
データサンプリング回路を提供することを目的と
する。
SUMMARY OF THE INVENTION In order to meet the above requirements, it is an object of the present invention to provide a data sampling circuit that can receive serial bit sequences containing data words of different word lengths and process them without depending on the CPU.

本考案によるデータサンプリング回路は、 直列ビツトシーケンスのデータを入力し、直−
並変換するシフトレジスタと、そのシフトレジス
タからの並列データをラツクするラツチ回路と、
ラツクされたデータを指定されたアドレスに格納
するメモリとによつてデータ流を形成する。
The data sampling circuit according to the present invention inputs data in a serial bit sequence and
A shift register that performs parallel conversion, a latch circuit that locks parallel data from the shift register,
A data stream is formed by a memory that stores the locked data at a specified address.

また、上記の入力データのN番目のデータ語は
語長がmビツトで構成されており、他のデータ語
の語長はnビツトであるとすれば、本考案による
データサンプリング回路は上記のデータの流れを
制御するために、次のような入力信号のビツトク
ロツクを計数するカウンタと、そのカウンタの出
力を複号するデコーダを備えている。
Furthermore, if the Nth data word of the above input data has a word length of m bits, and the word lengths of the other data words are n bits, then the data sampling circuit according to the present invention In order to control the flow of data, a counter is provided to count the bit clocks of the input signal, and a decoder is provided to decode the output of the counter.

カウンタはラツチ回路に対してnカウント毎
に、ラツチ・クロツク信号を供給する。またカウ
ンタは、メモリに対して、nカウント毎に1づつ
増加するアドレスと、書込み信号とを供給する。
The counter provides a latch clock signal to the latch circuit every n counts. The counter also supplies the memory with an address that increases by 1 every n counts and a write signal.

デコーダは、カウンタの出力を入力し、そのカ
ウントが(N−1)×n+mの時、カウンタのカ
ウントを強制的にN×nにするように、接続され
ている。
The decoder is connected to input the output of the counter so that when the count is (N-1)×n+m, the count of the counter is forced to be N×n.

その結果、上記の構成によるデータサンプリン
グ回路は、mビツトの語長を有するデータ語が、
他のnビツト長のデータ語の列の中に混在してい
ても、何等プログラムによる処理を要することな
く、データの復元ができ、CPUの負担が軽減さ
れる。
As a result, in the data sampling circuit with the above configuration, a data word having a word length of m bits is
Even if the data is mixed in a string of other n-bit data words, the data can be restored without any program processing, and the load on the CPU is reduced.

また、回路構成も簡単であるから製作が容易で
大量生産に適する。
Furthermore, since the circuit configuration is simple, it is easy to manufacture and suitable for mass production.

〔考案を実施するための最良の形態〕[Best form for implementing the idea]

第1図は本考案によるデータサンプリング回路
の一実施例を示す回路図である。
FIG. 1 is a circuit diagram showing an embodiment of a data sampling circuit according to the present invention.

第2図は、第1図における主要部位の信号の時
間的関係を示すタイミングチヤートである。
FIG. 2 is a timing chart showing the temporal relationship of signals of the main parts in FIG. 1.

第1図において、シフトレジスタ1のIN端子
に直列ビツトシーケンスIDATA+が入力する。
IDATA+は第2図に示すように、第2番目のデ
ータ語のみ6ビツトであり、他は全て8ビツト
(バイト)長であるとする。
In FIG. 1, a serial bit sequence IDATA+ is input to the IN terminal of shift register 1.
As shown in FIG. 2, IDATA+ is assumed to have a length of 6 bits only in the second data word, and all others to have a length of 8 bits (bytes).

シフトレジスタ1のクロツク(CK)端子には
データのビツトクロツク信号DTCLK+が供給さ
れる。
A data bit clock signal DTCLK+ is supplied to the clock (CK) terminal of the shift register 1.

シフトレジスタはデータ信号(IDATA)の8
ビツト(QA〜QH)をラツチ回路2の入力端子
1D〜8Dへ送る。ラツチ回路2は後述するよう
にカウンタ4の出力信号からクロツク(CK)信
号を受け、これによつて制御されて8ビツトのデ
ータ1Q〜8Qをメモリ3の入力端子D0〜D7へ送
る。
The shift register is the data signal (IDATA) 8
Send the bits (QA to QH) to the input terminals 1D to 8D of the latch circuit 2. As will be described later, the latch circuit 2 receives a clock (CK) signal from the output signal of the counter 4, and is controlled thereby to send 8-bit data 1Q to 8Q to the input terminals D0 to D7 of the memory 3.

メモリ3は、上記入力データを、カウンタ4か
ら供給されるアドレス信号A0〜A4によつて指定
されるアドレスに、同じくカウンタ4から供給さ
れる書込み信号によつて格納する。
The memory 3 stores the input data at the address specified by the address signals A0 to A4 supplied from the counter 4 in response to a write signal also supplied from the counter 4.

上記のシフトレジスタ1、ラツチ回路2、メモ
リ3による入力データの流れは、カウンタ4およ
びデコーダ5によつて、つぎのように制御され
る。
The flow of input data through the shift register 1, latch circuit 2, and memory 3 described above is controlled by the counter 4 and decoder 5 as follows.

カウンタ4は、そのクロツク(CK)入力とし
て、入力データのビツトクロツクDTCLK+をイ
ンバータ6によつて反転した信号DTCLK−(第
2図参照)を供給されている。
The counter 4 is supplied with, as its clock (CK) input, a signal DTCLK- (see FIG. 2) obtained by inverting the input data bit clock DTCLK+ by an inverter 6.

このカウンタ4はQA(LSB)〜QH(MSB)の
8個の出力端子を有する。
This counter 4 has eight output terminals QA (LSB) to QH (MSB).

また、カウンタ4はLD端子に低レベル(“L”)
の信号が入力されると、端子A〜Hへの入力が、
それぞれ対応する出力端子QA〜QHから送出さ
れる。端子A〜Hは端子Eが+Vに接続されてい
る以外は全て接地されている。つまりLDが“L”
となればQEの出力のみが“H”(1)であり、他
の出力は“L”(0)となる。
In addition, counter 4 has a low level (“L”) on the LD terminal.
When the signal is input, the input to terminals A to H becomes
They are sent out from corresponding output terminals QA to QH. Terminals A to H are all grounded except for terminal E, which is connected to +V. In other words, LD is “L”
Then, only the output of QE is "H" (1), and the other outputs are "L" (0).

カウンタ4の出力端子QCはインバータ7を介
してラツチ回路2のクロツク(CK)入力に接続
されている。
The output terminal QC of the counter 4 is connected to the clock (CK) input of the latch circuit 2 via an inverter 7.

カウンタ4の出力端子QBとインバータ7の出
力端子とはNANDゲート8に接続されている。
このNANDゲート8の出力はメモリ3の書込み
信号となつている。
The output terminal QB of the counter 4 and the output terminal of the inverter 7 are connected to a NAND gate 8.
The output of this NAND gate 8 serves as a write signal for the memory 3.

カウンタ4の出力端子QD,QE,QF,QG,
QHは、それぞれメモリ3のアドレス入力端子
A0,A1,A2,A3,A4に接続されれている。
Output terminals of counter 4 QD, QE, QF, QG,
QH is the address input terminal of memory 3, respectively.
Connected to A0, A1, A2, A3, and A4.

カウンタ4の出力端子QA〜QHは、デコーダ
5の入力端子A〜Hに接続されている。
Output terminals QA to QH of the counter 4 are connected to input terminals A to H of the decoder 5.

デコーダの出力端子Y13は、デコーダの入力
(カウンタ4のカウント)が13になつた時に、
“L”となる信号を送出する。この信号はカウン
タ4のロード(LD)端子に印加される。
When the decoder input (counter 4 count) reaches 13, the decoder output terminal Y13 outputs
Sends out a signal that becomes “L”. This signal is applied to the load (LD) terminal of the counter 4.

つぎに第1および第2図を参照しながら、デー
タサンプリング回路の動作について説明する。
Next, the operation of the data sampling circuit will be explained with reference to FIGS. 1 and 2.

既に述べたようにここでは、入力データ
IDATA+の2番目のデータは6ビツト構成であ
り、他は8ビツト構成であると定義されている。
As already mentioned here the input data
The second data of IDATA+ is defined as having a 6-bit configuration, and the others are defined as having an 8-bit configuration.

従つて、入力データIDATA+は、ビツトクロ
ツク信号DTCLK+に従つてシフトレジスタ1に
取り込まれ、並列に変換されてラツチ回路2へ送
られる。ラツチ回路2のクロツク入力(CK)に
は、カウンタ4の出力端子QC(3桁目)の出力の
反転信号が供給されているから、ラツチ回路2は
信号QCの立下りにおいて入力データをラツチす
る。
Therefore, input data IDATA+ is taken into shift register 1 in accordance with bit clock signal DTCLK+, converted into parallel data, and sent to latch circuit 2. Since the clock input (CK) of the latch circuit 2 is supplied with the inverted signal of the output of the output terminal QC (third digit) of the counter 4, the latch circuit 2 latches the input data at the falling edge of the signal QC. .

その結果、1つ目のデータは8番目(第2図の
第7)のビツトが取り込まれた時に、ラツチさ
れ、メモリ3へ送られる。ラツチされた8ビツト
のデータは、つぎのラツチが行われる迄ラツチ回
路において保持される。
As a result, the first data is latched and sent to the memory 3 when the eighth bit (seventh in FIG. 2) is captured. The latched 8-bit data is held in the latch circuit until the next latching is performed.

ところで、メモリ3のアドレスは、カウンタの
QDの出力が“H”(1)となつた時(すなわち
カウント8の時)A0=1となり、1番目が指定
される。QDの出力が“H”となり、その後QB
が“H”でかつQCが“L”の時NANDゲート8
の出力は“L”となり、メモリの書込信号は
“L”となつて、メモリ3の1番地に最初の8ビ
ツトのデータが書込まれる。
By the way, the address of memory 3 is the counter's address.
When the output of QD becomes "H" (1) (that is, at count 8), A0=1, and the first is designated. QD output becomes “H”, then QB
When is “H” and QC is “L”, NAND gate 8
The output of the memory becomes "L", the write signal of the memory becomes "L", and the first 8 bits of data are written to address 1 of the memory 3.

その間、引き続き2つ目のデータがシフトレジ
スタ1からラツチ回路2へ送られている。
Meanwhile, the second data is being sent from the shift register 1 to the latch circuit 2.

一方、カウンタ4によるビツトクロツク信号の
カウントが13を数えた時、デコーダ5の出力端子
Y13からカウンタのLD端子に印加されている信
号(LD)が“L”となる。これによつてカウン
タの出力は強制的に(LSB)00001000(MSB)と
なる。すなわち強制的に16にカウントアツプされ
る。
On the other hand, when the count of the bit clock signal by the counter 4 reaches 13, the output terminal of the decoder 5
The signal (LD) applied to the LD terminal of the counter from Y13 becomes "L". This forces the output of the counter to be (LSB) 00001000 (MSB). In other words, the count is forcibly increased to 16.

その結果、カウンタ4の出力QCは立下り、ラ
ツチ回路2はその時点でデータをラツチしてメモ
リ3へ送る。
As a result, the output QC of the counter 4 falls, and the latch circuit 2 latches the data at that point and sends it to the memory 3.

メモリ3のアドレス信号A4〜A0は0010となり
2番地を指定する。そして書込信号が“L”
になると、8ビツトのデータがメモリ3の2番地
に書込まれる。この2番地に書込まれたデータの
下位2ビツトには、最初のデータの上位2ビツト
がそのまま書込まれるが、データのずれは起らな
い。
Address signals A4 to A0 of the memory 3 become 0010 and specify address 2. And the write signal is “L”
Then, 8-bit data is written to address 2 of memory 3. The upper 2 bits of the first data are written as they are to the lower 2 bits of the data written at address 2, but no data shift occurs.

以下引続いて第3番目以降のデータが取込ま
れ、カウンタ4の8カウント毎に、メモリ3の3
番地以降に格納される。
Thereafter, the third and subsequent data are taken in, and every 8 counts of counter 4, 3rd and subsequent data of memory 3 are taken in.
Stored after the address.

以上のように、本考案によるデータサンプリン
グ回路は、N番目のデータ語がmビツトで、他の
データ語は全てnビツトで構成されている場合、
直列ビツトシーケンスのデータ信号について、何
等CPUに負担をかけることなく、データの復元
を可能とする。
As described above, in the data sampling circuit according to the present invention, when the Nth data word is composed of m bits and all other data words are composed of n bits,
To enable data restoration of serial bit sequence data signals without placing any burden on the CPU.

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

第1図は、本考案によるデータサンプリング回
路の一実施例を示す回路図、第2図は、第1図に
おける主要個所の信号の時間的関係を示すタイミ
ングチヤートである。 1……シフトレジスタ、2……ラツチ回路、3
……メモリ、4……カウンタ、5……デコーダ。
FIG. 1 is a circuit diagram showing one embodiment of a data sampling circuit according to the present invention, and FIG. 2 is a timing chart showing the temporal relationship of signals at main points in FIG. 1. 1...Shift register, 2...Latch circuit, 3
...Memory, 4...Counter, 5...Decoder.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] N番目のデータ語がmビツトで、他のデータ語
はnビツトで構成される直列データ信号を入力
し、データのビツトクロツク信号に同期して並列
nビツトデータ信号に変換するシフトレジスタ
と、このシフトレジスタからの並列nビツトデー
タをラツチするラツチ回路と、前記ラツチ回路の
出力データを格納するメモリと、前記ビツトクロ
ツク信号を計数し、nカウント毎に、前記ラツチ
回路を動作させると共に前記メモリに対し書込み
信号およびアドレス信号を供給するカウンタと、
このカウンタの計数出力を入力し、計数値が(N
−1)×n+mの時、このカウンタに対しそれを
強制的にN×nに変換するように制御するデコー
ダとを備えたデータサンプリング回路。
A shift register receives a serial data signal in which the Nth data word is m bits and the other data words are n bits, and converts it into a parallel n-bit data signal in synchronization with the data bit clock signal; A latch circuit that latches parallel n-bit data from a register, a memory that stores the output data of the latch circuit, and a memory that counts the bit clock signal and operates the latch circuit and writes data to the memory every n counts. a counter that provides signals and address signals;
Input the count output of this counter, and the count value is (N
-1) A data sampling circuit comprising a decoder that controls this counter to forcibly convert it to Nxn when it is xn+m.
JP13064783U 1983-08-24 1983-08-24 data sampling circuit Granted JPS6040152U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13064783U JPS6040152U (en) 1983-08-24 1983-08-24 data sampling circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13064783U JPS6040152U (en) 1983-08-24 1983-08-24 data sampling circuit

Publications (2)

Publication Number Publication Date
JPS6040152U JPS6040152U (en) 1985-03-20
JPH0117880Y2 true JPH0117880Y2 (en) 1989-05-24

Family

ID=30295630

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13064783U Granted JPS6040152U (en) 1983-08-24 1983-08-24 data sampling circuit

Country Status (1)

Country Link
JP (1) JPS6040152U (en)

Also Published As

Publication number Publication date
JPS6040152U (en) 1985-03-20

Similar Documents

Publication Publication Date Title
US6658582B1 (en) Serial interface circuits having improved data transmitting and receiving capability
AU669746B2 (en) Method and device for detection and correction of errors in ATM cell headers
US5489901A (en) Data input/output circuit for a digital signal processing system
JPS6274127A (en) Synchronizing device
JPH0117880Y2 (en)
US6496602B2 (en) Sorting device of variable-length code
JPH1098458A (en) Sync word detection circuit
JPH0313764Y2 (en)
KR880002500B1 (en) High speed a/d converter for 16bit
JPS6165680A (en) Error correction circuit
SU1492478A1 (en) Servo analog-to-digital converter
JPH039661B2 (en)
SU1203531A1 (en) Device for exchanging data between two computers
JP2536489B2 (en) Compressed data decoding device
JPS63197151A (en) Serial data transfer system
JPH0326136A (en) Reception fifo control circuit
JPH05315971A (en) Serial/parallel conversion circuit
JPH01206728A (en) Variable length encoding code decoder
JPS6335143B2 (en)
JPS59178037A (en) Phase matching circuit
JPH03198143A (en) Bus interface device and read-modified-write control system
JPS6251856A (en) Data sink
JPS61292766A (en) Data input system
JPH04353922A (en) Data conversion method
JPH0119305B2 (en)