JPS62219849A - Code density detector - Google Patents

Code density detector

Info

Publication number
JPS62219849A
JPS62219849A JP61060961A JP6096186A JPS62219849A JP S62219849 A JPS62219849 A JP S62219849A JP 61060961 A JP61060961 A JP 61060961A JP 6096186 A JP6096186 A JP 6096186A JP S62219849 A JPS62219849 A JP S62219849A
Authority
JP
Japan
Prior art keywords
counter
value
period
stored
counting
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
JP61060961A
Other languages
Japanese (ja)
Inventor
Hiroyuki Yamashita
博幸 山下
Nobuaki Ouchi
大内 宣明
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 JP61060961A priority Critical patent/JPS62219849A/en
Publication of JPS62219849A publication Critical patent/JPS62219849A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Dc Digital Transmission (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To detect a highly speedy and correct code pattern compared with the pattern used for an analog measurement by measuring digitally the total number, during the number of times equivalent to the number of steps of a delaying means, namely, measuring the total number of the number of '0' or '1' during the period divided by '1' or '0'. CONSTITUTION:A counter 11 executes the counting while a lock synchronized to the code transmitting speed of serial data is impressed, when a signal '1' arrives, the counting value of the counter 11 is stored into a buffer register 14 by the low level electric potential to show the arrival, the counter 11 is reset by the pulse at the high level of an inverter 12 and the pulse is supplied as the shifting signal of a first-in first-out memory 15. The numeric value from the buffer register 14 is added with the numeric value from an adder 16 and a subtracter 17, and stored into a register 18 by the pulse delayed with a delaying circuit 13 only for the pulse calculating necessary time of an arrived '1'. Thus, since the aggregate amount of the counting value of the counter 11 during the updated (n) number of times of the period is always stored in the register 18, a using device 19 can find the density of '0' in the serial data by the numeric value.

Description

【発明の詳細な説明】 〔概 要〕 シリアルデータ中の1″または“0”で区切られた期間
内の“0”または“1”の数を計数する計数手段と、こ
の計数手段の計数値を遅らせて出力する遅延手段と、演
算器と、その出力をストアする記憶手段を備え、上記演
算器は、上記計数手段の計数値と記憶手段がストアして
いる計数値との合計値から遅延手段により遅らされた計
数値を減算することによって、シリアルデータ中の“θ
″または“1”の密度を検出するようにしたものである
[Detailed Description of the Invention] [Summary] Counting means for counting the number of "0" or "1" within a period separated by 1" or "0" in serial data, and a count value of this counting means , a calculation unit, and a storage unit for storing the output of the calculation unit; By subtracting the count value delayed by the means, “θ” in the serial data is
” or the density of “1” is detected.

〔産業上の利用分野〕[Industrial application field]

シリアルデータ中に40″または“1”が多数連続して
いるとこの信号の処理回路などにおいてクロックの抽出
ができないなどの異常を生じることがあり、このような
異常の発生を監視するために“θ″または“l”の密度
を検出することが必要となる。
If there are many consecutive 40'' or 1's in the serial data, an abnormality such as the inability to extract the clock may occur in the signal processing circuit. It is necessary to detect the density of θ'' or “l”.

〔従来の技術と発明が解決しようとする問題点〕従来の
“0”または“1”の密度を検出する技術として、シリ
アル信号を積分してその出力アナログ電圧の変動に基づ
いて密度を検出することが行われているが、動作が不安
定なばかりでなく、密度を検出した期間を具体的に確定
することができないという重大な欠点があった。
[Prior art and problems to be solved by the invention] Conventional technology for detecting the density of "0" or "1" integrates a serial signal and detects the density based on fluctuations in the output analog voltage. However, this method has the serious drawback that not only is the operation unstable, but it is also impossible to specifically determine the period during which the density was detected.

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

本発明は、上記問題点を解決するため、第1図の原理図
に示すように、2値符号のいずれか一方の符号により区
切られる期間に存在する他方の符号の数を計数する計数
手段1と、この計数手段の計数値を遅らせて出力するた
めの遅延手段2と、記憶手段4の出力値と上記計数手段
1の出力値とを加算した値から上記遅延手段2の出力値
を減算してこの記憶手段4にストアするようにして、上
記記憶手段4の計数値として複数の上記期間内の上記他
方の符号の数の合計を得るようにした。
In order to solve the above-mentioned problems, the present invention provides a counting means 1 for counting the number of binary codes existing in a period separated by one code, as shown in the principle diagram of FIG. The output value of the delay means 2 is subtracted from the sum of the output value of the storage means 4 and the output value of the counting means 1. This is stored in the storage means 4 of the lever, so that the total number of the other codes within the plurality of periods is obtained as the count value of the storage means 4.

〔作 用〕[For production]

シリアルデータ中の1”または“0″″により区切られ
た期間内におけるO″または“1″の数は計数手段1に
より計数され、“l”または“O”が到来するごとに演
算器3およびn段の遅延手段2にこの計数手段の計数値
が送られる。
The number of O'' or ``1'' within the period delimited by 1'' or 0'' in the serial data is counted by the counting means 1, and each time an ``l'' or ``O'' arrives, the arithmetic unit 3 and The count value of this counting means is sent to the n-stage delay means 2.

最初の状態では、記憶手段4および遅延手段2はともに
リセットされているので、計数手段1の出力値と記憶手
段4の出力値とを加算した値から遅延手段2の出力値を
減算する演算器3の出力値は計数手段1の出力値となり
、この値は“1”または“0”で区切られた最初の期間
における“0”または“1″の数であって、この数値は
記憶手段4にストアされる。
In the initial state, since both the storage means 4 and the delay means 2 are reset, an arithmetic operation unit that subtracts the output value of the delay means 2 from the sum of the output value of the counting means 1 and the output value of the storage means 4 The output value of 3 becomes the output value of the counting means 1, and this value is the number of "0" or "1" in the first period separated by "1" or "0", and this value is stored in the storage means 4. Stored in

仮に、遅延手段2の段数が2段であるとすると、次に計
数手段1から第2の計数値が送出されたとき、遅延手段
2は未だ出力を生じないので、演算器3は記憶手段4が
ストアしている上記の最初の期間における“0”または
“1”の数を計数手段1からの第2番目の期間における
“0”または“1”の数とを加算し、したがってこの加
算器の出力値は最初の期間の計数値と第2の期間の計数
値との和であり、記憶手段4にはこの最初の期間と第2
の期間における“0″または“l”の数の和の数値がス
トアされる。
Assuming that the number of stages of the delay means 2 is two, the next time the second count value is sent out from the counting means 1, the delay means 2 does not produce an output yet, so the arithmetic unit 3 stores the memory means 4. The number of "0" or "1" in the above first period stored by the counting means 1 is added to the number of "0" or "1" in the second period from counting means 1, and therefore this adder The output value is the sum of the count value of the first period and the count value of the second period, and the storage means 4 stores the count value of the first period and the second period.
The numerical value of the sum of the numbers of "0" or "l" during the period is stored.

第3番目の期間における計数値が計数手段1から送出さ
れると、遅延手段2からは最初の期間における計数値が
出力され、演算器3は、記憶手段4からの最初の期間と
第2番目の期間との計数値の和に上記計数手段1からの
第3番目の期間の計数値を加算した値から最初の期間の
計数値である遅延手段2の出力値を減算する。
When the count value for the third period is sent out from the counting means 1, the count value for the first period is output from the delay means 2, and the arithmetic unit 3 calculates the count value for the first period and the second period from the storage means 4. The output value of the delay means 2, which is the count value of the first period, is subtracted from the value obtained by adding the count value of the third period from the counting means 1 to the sum of the count values of the period.

これにより、演算器3から出力されて記憶手段4にスト
アされる値は、第2番目および第3番目の期間における
計数値の和となる。
As a result, the value outputted from the arithmetic unit 3 and stored in the storage means 4 becomes the sum of the count values in the second and third periods.

このようにして、上記記憶手段4がストアしている数値
は、上記遅延手段2の段数nに相当する“1”または0
”により区切られた期間における“0″または1″の数
となるので、′0”または“1”の密度はこの数を記憶
手段の段数nで除算することによって求められるが、そ
のままでも“0”または“1”の密度を示す指標として
用い得ることは明らかであろう。
In this way, the numerical value stored in the storage means 4 is "1" or 0, which corresponds to the number of stages n of the delay means 2.
”, the density of 0 or 1 can be found by dividing this number by the number of stages n of the storage means, but even if it is as is, ” or “1” density can be used as an index.

〔実施例〕〔Example〕

第2図は本発明の実施例を示すもので、カウンタ11、
インバータ12およびバッファレジスタ14は第1図の
計数手段1に、ファーストインファーストアウトメモリ
15は第1図の遅延手段2に、加算器16および減算器
17は第1図の演算器3に、またレジスタ18は第1図
の記憶手段4にそれぞれ相当するものであり、第3図(
a)に示すようなシリアルデータを同図(b)に示す信
号として伝送する場合のパターン検出に適用した場合の
ものである。
FIG. 2 shows an embodiment of the present invention, in which a counter 11,
The inverter 12 and the buffer register 14 are connected to the counting means 1 in FIG. 1, the first-in-first-out memory 15 is connected to the delay means 2 in FIG. The registers 18 respectively correspond to the storage means 4 in FIG.
This example is applied to pattern detection when serial data as shown in (a) is transmitted as a signal as shown in (b) of the figure.

カウンタ11の計数端子には、シリアルデータの符号伝
送速度と同期したクロックが印加されて計数を行ってお
り、信号の“1”が到来すると、この“1”を示す低レ
ベル電位によりカウンタ11の計数値はバッファレジス
タ14にストアされるとともにインバータ12は高レベ
ルのパルスをカウンタ11のリセット端子に印加してこ
のカウンタをリセットし、またファーストインファース
トアウトメモリ15のシフト信号としてこのパルスを供
給する。
A clock synchronized with the code transmission speed of the serial data is applied to the counting terminal of the counter 11 for counting. When a signal "1" arrives, the low level potential indicating this "1" causes the counter 11 to The count value is stored in the buffer register 14 and the inverter 12 applies a high level pulse to the reset terminal of the counter 11 to reset this counter and also provides this pulse as a shift signal for the first-in-first-out memory 15. .

このように、カウンタ11は、第3図世)に示した信号
が“0”を示す高レベルにある期間中クロックの計数を
続け、“1”を示すパルスの到来によりリセットされる
ので、このカウンタは“1″のパルスにより区切られる
期間内の“O”の数を計数することになり、この計数値
はバッファレジスタ14にストアされる。
In this way, the counter 11 continues counting clocks during the period when the signal shown in Figure 3 is at a high level indicating "0", and is reset by the arrival of a pulse indicating "1". The counter will count the number of "O"s within the period delimited by the "1" pulses, and this count will be stored in the buffer register 14.

このバ・ノファレジスタ14からの数値は加算器16に
よって減算器17からの数値と加算され、到来した“1
”を示すパルスを演算に要する時間だけ遅延回路13に
より遅延されたパルスによりレジスタ18にストアされ
るが、最初の期間についてのカウンタ11の計数値がバ
ッファレジスタ14から送られてきたときには、レジス
タ18はリセットされており、またファーストインファ
ーストアウトメモリ15からは未だ出力がないので、最
初の期間におけるカウンタ11の計数値はそのままレジ
スタ18にストアされる。
This numerical value from the Ba Nofa register 14 is added to the numerical value from the subtracter 17 by an adder 16, and the arrived "1"
The pulse indicating " is delayed by the delay circuit 13 by the time required for calculation, and is stored in the register 18. However, when the count value of the counter 11 for the first period is sent from the buffer register 14, the register 18 has been reset and there is no output from the first-in-first-out memory 15 yet, so the count value of the counter 11 in the first period is stored in the register 18 as is.

ファーストインファーストアウトメモリ15からの出力
があるまで、すなわちファーストインファーストアウト
メモリ15の段数nに相当するn回目の期間の計数値が
バッファレジスタ14から出力されるまでは以上の動作
を続けるので、レジスタ18にはカウンタ11が計数し
た計数値のn回の期間骨の累計値がストアされる。
The above operation continues until there is an output from the first-in-first-out memory 15, that is, until the count value of the nth period corresponding to the number of stages n of the first-in-first-out memory 15 is output from the buffer register 14. The register 18 stores the cumulative value of the bone count counted by the counter 11 for n periods.

n+1回目の期間についてのカウンタ11の計数値がバ
ッファレジスタ14から出力されると、ファーストイン
ファーストアウトメモリ15は最初の期間における計数
値を出力し、減算器17はレジスタ18のストアしてい
る計数値からこの最初の計数値を減算して加算器16に
送り、このn+1回目の計数値と加算してレジスタ18
にストアする。
When the count value of the counter 11 for the n+1 period is output from the buffer register 14, the first-in-first-out memory 15 outputs the count value for the first period, and the subtracter 17 outputs the count value stored in the register 18. This first counted value is subtracted from the numerical value, sent to the adder 16, added to this n+1th counted value, and sent to the register 18.
Store in.

このようにして、先に説明したとおり、このレジスタ1
8には最新のn回の期間におけるカウンタ11の計数値
の累計が常にストアされているから、このレジスタ18
の数値により利用装置19はシリアルデータ中の“θ″
の密度を知ることができる。
In this way, as explained earlier, this register 1
Since the cumulative total of the count value of the counter 11 for the latest n periods is always stored in register 18,
According to the value of “θ” in the serial data, the utilization device 19
You can know the density of

以上の説明は、シリアルデータの各ビットが予め定めら
れたタイムスロットに割り当てられ、また“l゛を示す
データが低いレベルにあるシリアルデータについてのも
のであるが、シリアルデータの形式が各ビット毎に正負
のパルスにより示されるもの、あるいは“l”、′O″
に対応する極性がどのようなものであっても、上記と同
様な処理によって符号パターンの検出が可能なことは明
らかであろう。
The above explanation is about serial data in which each bit of the serial data is assigned to a predetermined time slot and the data indicating "l" is at a low level, but the format of the serial data is different for each bit. indicated by positive and negative pulses, or “l”, ’O”
It is clear that the code pattern can be detected by the same processing as described above, regardless of the polarity corresponding to the polarity.

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

本発明によれば、“l”または“O”により区切られた
期間における“O”または“1”の数の、遅延手段の段
数に相当する回数の期間における合計数をディジタル的
に測定できるので、前記のアナログ的な測定を行うもの
に比し、高速かつ正確な符号パターンの検出を行うこと
ができる。
According to the present invention, it is possible to digitally measure the total number of "O"s or "1s" in a period divided by "l" or "O", the number of times corresponding to the number of stages of delay means. , it is possible to detect code patterns faster and more accurately than in the analog measuring method described above.

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

第1図は本発明の原理図、第2図は本発明の実施例、第
3図はこの実施例における入力シリアルデータを説明す
る図である。 1は計数手段、2はn段の遅延手段、3は演算器、4は
記憶手段である。
FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is an embodiment of the present invention, and FIG. 3 is a diagram explaining input serial data in this embodiment. 1 is a counting means, 2 is an n-stage delay means, 3 is an arithmetic unit, and 4 is a storage means.

Claims (1)

【特許請求の範囲】 シリアルデータ中の“1”または“0”で区切られた期
間内の“0”または“1”の数を計数する計数手段(1
)と、この計数手段の計数値が供給されるn段の遅延手
段(2)と、演算器(3)および記憶手段(4)とを備
え、 上記演算器は、上記計数手段の出力値と上記記憶手段の
出力値との合計値から上記遅延手段からの遅らされた出
力値を差し引くことによって、複数の上記区切られた期
間における“0”または“1”の合計値を得て上記記憶
手段にストアするようにしたことを特徴とする符号密度
検出装置。
[Claims] Counting means (1
), an n-stage delay means (2) to which the count value of the counting means is supplied, an arithmetic unit (3) and a storage means (4), and the arithmetic unit is configured to calculate the output value of the counting means and the output value of the counting means. By subtracting the delayed output value from the delay means from the total value with the output value of the storage means, the total value of "0" or "1" in the plurality of divided periods is obtained and stored in the storage means. A code density detection device characterized in that the code density is stored in a means.
JP61060961A 1986-03-20 1986-03-20 Code density detector Pending JPS62219849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61060961A JPS62219849A (en) 1986-03-20 1986-03-20 Code density detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61060961A JPS62219849A (en) 1986-03-20 1986-03-20 Code density detector

Publications (1)

Publication Number Publication Date
JPS62219849A true JPS62219849A (en) 1987-09-28

Family

ID=13157510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61060961A Pending JPS62219849A (en) 1986-03-20 1986-03-20 Code density detector

Country Status (1)

Country Link
JP (1) JPS62219849A (en)

Similar Documents

Publication Publication Date Title
EP0133735B1 (en) N-bit counter apparatus
EP0177557B1 (en) Counting apparatus and method for frequency sampling
KR900014984A (en) Circuit element and method for providing output signal representation of time delay between two asynchronous clock signals
JPS62219849A (en) Code density detector
EP0660938B1 (en) Full and partial cycle counting apparatus and method
JPH0413851Y2 (en)
SU1658169A1 (en) Device for determining arithmetic average magnitude
JPS6255110B2 (en)
KR200158764Y1 (en) Synchronous serial input device
SU868617A1 (en) Digital frequency meter
JPS63103514A (en) Code pattern detection circuit
WO2003012995A2 (en) Pulse peak and/or trough detector
SU864578A1 (en) T flip-flop
SU1163334A1 (en) Device for calculating ratio of time intervals
SU1123087A1 (en) Frequency multiplier
SU1336033A1 (en) Device for computing current mean value
SU1210099A1 (en) Speed meter with quasi-constant measuring error
JP2576975B2 (en) Bit error distribution measuring device
SU961119A1 (en) Shaper of delayed and lead signals
SU860336A1 (en) Device for measuring distortion rate in data blocks of various length
JPH0559394B2 (en)
SU1111174A1 (en) Device for detecting extremums
JPH04360334A (en) Start-stop synchronization reception circuit
JP2000059206A (en) Pulse count system for pulse input circuit
SU913325A1 (en) Digital meter of digital magnetic recording time intervals