JP3190846B2 - Asynchronous readout circuit of binary counter - Google Patents

Asynchronous readout circuit of binary counter

Info

Publication number
JP3190846B2
JP3190846B2 JP01520897A JP1520897A JP3190846B2 JP 3190846 B2 JP3190846 B2 JP 3190846B2 JP 01520897 A JP01520897 A JP 01520897A JP 1520897 A JP1520897 A JP 1520897A JP 3190846 B2 JP3190846 B2 JP 3190846B2
Authority
JP
Japan
Prior art keywords
data
binary
count
binary counter
gray code
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 - Fee Related
Application number
JP01520897A
Other languages
Japanese (ja)
Other versions
JPH10215185A (en
Inventor
尚人 重本
祥晴 八木
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP01520897A priority Critical patent/JP3190846B2/en
Publication of JPH10215185A publication Critical patent/JPH10215185A/en
Application granted granted Critical
Publication of JP3190846B2 publication Critical patent/JP3190846B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、バイナリカウンタ
の非同期読み出し回路に関し、特にバイナリカウンタの
カウントデータをカウント歩進とは非同期なタイミング
で読み出す回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an asynchronous readout circuit for a binary counter, and more particularly to a circuit for reading out the count data of a binary counter at a timing asynchronous with the count increment.

【0002】[0002]

【従来の技術】論理回路において計数処理を行う場合、
バイナリカウンタを使うことが多い。このバイナリカウ
ンタの計数値(カウントデータ)読み出しのタイミング
を、計数値カウントアップ用のタイミングとは非同期と
する場合もまた多い。この非同期読み出しの従来技術を
図5及び図6を参照して説明する。図6は従来のバイナ
リカウンタからの計数値の非同期読み出し回路の構成図
である。従来のこの種のバイナリカウンタの計数値の非
同期読み出し回路は、計数用クロックSaによりバイナ
リカウンタ部1が計数処理を行い、バイナリ計数データ
Scを出力する。バイナリ計数データScを上記計数用
クロックSaとは非同期な計数値読み出し信号Sbでデ
ータをサンプリングするデータサンプリング部32が、
バイナリ読み出しデータSgを出力していた。
2. Description of the Related Art When performing a counting process in a logic circuit,
Often a binary counter is used. In many cases, the timing of reading the count value (count data) of the binary counter is asynchronous with the timing for counting up the count value. The prior art of this asynchronous read will be described with reference to FIGS. FIG. 6 is a configuration diagram of a conventional circuit for asynchronously reading a count value from a binary counter. In a conventional asynchronous reading circuit for reading the count value of a binary counter of this type, a binary counter unit 1 performs a counting process by a counting clock Sa and outputs binary count data Sc. A data sampling unit 32 that samples the binary count data Sc with a count value read signal Sb that is asynchronous with the count clock Sa,
The binary read data Sg was output.

【0003】ここで、4ビットのバイナリカウンタの場
合を例にとって説明する。後述(実施の形態欄)の表1
に4ビットカウンタが“0000”から“1111”ま
でカウントアップしていく時のハミング距離を示す。例
えばカウンタの値が“7”から“8”にカウントアップ
される場合、ビット列(バイナリコード)は“011
1”から“1000”で、変化数は“4”である。この
ようにnビットのバイナリカウンタの出力はハミング距
離が“1”〜“n”(nは整数)で進行するため、カウ
ンタ内の計数処理とは異なる値が読み出されるタイミン
グが存在する。
Here, a case of a 4-bit binary counter will be described as an example. Table 1 below (in the embodiment section)
Shows the Hamming distance when the 4-bit counter counts up from "0000" to "1111". For example, when the value of the counter is counted up from “7” to “8”, the bit string (binary code) is “011”.
The number of changes is “1” to “1000” and the number of changes is “4.” As described above, since the output of the n-bit binary counter advances with the hamming distance of “1” to “n” (n is an integer), There is a timing at which a value different from the counting process is read.

【0004】このことを図5のタイミング図を参照して
詳細に説明する。バイナリカウンタ部1から出力された
データSc(b0〜b3)を計数値読み出し信号Sbの
立ち上がり時点(ポイントP1,P2)でサンプリング
する。ポイントP1でサンプリングする時、バイナリカ
ウンタは“3”から“4”にカウントアップ瞬間であ
る。すなわち、b0,b1が“1”から“0”、b2が
“0”から“1”に変化する。変化するビットが3つあ
り、各ビットの変化は回路を構成する各素子のばらつき
等によりそれぞれ異なるタイミング(時刻及び時間幅)
で行われるので、各ビットごとに異なる変化途中点でサ
ンプリングすることになるため、サンプリングしたデー
タは、“0”,“1”,・・・,“6”,“7”の8個
のうちのいずれかの値となる可能性がある。ポイントP
2でサンプリングする時、バイナリカウンタは“7”か
ら“8”にカウントアップ瞬間である。すなわち、b
0,b1,b2が“0”から“1”、b3が“1”から
“0”に変化し、変化するビットが4つあるため、サン
プリングしたデータは、“0”,“1”,“2”,
“3”,・・・,“C(12)”,“D(13)”,
“E(14)”,“F(15)”の16個のうちのいず
れかの値となる可能性がある。
This will be described in detail with reference to a timing chart of FIG. The data Sc (b0 to b3) output from the binary counter unit 1 is sampled at the rising point of the count value read signal Sb (points P1 and P2). When sampling at point P1, the binary counter is counting up from "3" to "4" at the moment. That is, b0 and b1 change from "1" to "0", and b2 changes from "0" to "1". There are three bits that change, and each bit changes at different timings (time and time width) due to variations in the elements that constitute the circuit.
, The sampling is performed at different midpoints of change for each bit, and thus the sampled data is one of eight data of “0”, “1”,. May be one of the following values: Point P
When sampling at 2, the binary counter is counting up from "7" to "8" at the moment. That is, b
Since 0, b1, and b2 change from “0” to “1” and b3 changes from “1” to “0”, and there are four changing bits, the sampled data is “0”, “1”, “ 2 ",
“3”,..., “C (12)”, “D (13)”,
There is a possibility that any one of the 16 values of “E (14)” and “F (15)” will be obtained.

【0005】[0005]

【発明が解決しようとする課題】上述した従来のバイナ
リカウンタからの計数値の非同期読み出し回路では、ハ
ミング距離が1〜nで進行するバイナリカウンタの出力
をそのままサンプリングして読み出すため、読み出しタ
イミングによってはカウンタ内の計数処理とは大幅に異
なる値が読み出される場合があり(最悪の場合、カウン
ト可能最大値の半分の誤差がある)、読み出し計数値の
信頼性が低くなる。
In the above-mentioned conventional asynchronous readout circuit of the count value from the binary counter, the output of the binary counter which progresses at a hamming distance of 1 to n is sampled and read as it is. In some cases, a value significantly different from the counting process in the counter is read (in the worst case, there is an error of half of the maximum countable value), and the reliability of the read count value decreases.

【0006】[0006]

【課題を解決するための手段】本発明のバイナリカウン
タの非同期読み出し回路は、バイナリカウンタのカウン
トデータをカウント歩進とは非同期なタイミングで読み
出す回路において、前記バイナリカウンタの出力データ
をバイナリコードからグレイコードに変換するエンコー
ド手段と、前記エンコード手段の変換出力データのうち
最上位のビットデータの論理値を反転するインバート手
段と、前記バイナリカウンタの読み出し指定タイミング
、前記エンコード手段の変換出力データのうち最上位
のビットデータを除いた残りのビットデータを読み取る
とともに、最上位のビットデータとして前記インバート
手段の出力データを読み取るサンプリング手段と、前記
サンプリング手段が読み取ったデータをグレイコードか
らバイナリコードに逆変換し、前記バイナリカウンタの
カウント歩進方向を逆方向とした場合に対応する前記バ
イナリカウンタからの読み出しカウントデータとして出
力するデコード手段とを備える。
An asynchronous readout circuit for a binary counter according to the present invention is a circuit for reading out the count data of a binary counter at a timing asynchronous with the count increment. Encoding means for converting the data into codes;
Invert method to invert the logical value of the most significant bit data
And the highest order of the conversion output data of the encoding means at the read designation timing of the binary counter.
Read the remaining bit data excluding the bit data of
Together with the inverted bit data as the most significant bit data.
Sampling means for reading the output data of the unit, the data to which the sampling means is read from the gray code is inversely converted into a binary code, the binary counter
Decoding means for outputting as count data read from the binary counter corresponding to the case where the count stepping direction is reversed .

【0007】[0007]

【0008】[0008]

【発明の実施の形態】まず、本発明に用いられているバ
イナリコードとグレイコードとの相互変換により、バイ
ナリカウンタの非同期読み出しにおけるカウント値の誤
差を±1以下とすることができる原理を、図面を参照し
て詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First, a bag used in the present invention will be described.
By converting between Inari code and Gray code,
Incorrect count value in asynchronous reading of the nally counter
The principle by which the difference can be made ± 1 or less will be described in detail with reference to the drawings.

【0009】図1は本発明の原理を説明するためのブロ
ック構成図である。本例の読み出し回路は、計数用クロ
ックSaにより計数処理(カウント歩進)を行いバイナ
リ計数(カウント)データScを出力するバイナリカウ
ンタ部1と、バイナリカウンタ部1が出力するバイナリ
計数データScをグレイコード化したグレイコード計数
データSdを出力するエンコード部2と、エンコード部
2より出力されたグレイコード計数データSdを計数値
読み出し信号Sbのタイミングでサンプリングしグレイ
コード読み出しデータSeを出力するデータサンプリン
グ部3と、データサンプリング部3が出力するグレイコ
ード読み出しデータSeをバイナリデータに変換しバイ
ナリ読み出しデータSfを出力するデコード部4とを備
える。バイナリカウンタがカウントアップする時のハミ
ング距離と、バイナリカウントデータをグレイコード化
したデータのハミング距離とを、4ビットの場合を例と
して表1に示す。
FIG. 1 is a block diagram showing the principle of the present invention. The readout circuit of this example performs a counting process (counting increment) by a counting clock Sa and outputs binary count (count) data Sc. The binary counter data Sc output by the binary counter unit 1 is grayed out. An encoding unit 2 that outputs coded gray code count data Sd; and a data sampling unit that samples the gray code count data Sd output from the encode unit 2 at the timing of the count value read signal Sb and outputs gray code read data Se. And a decoding unit 4 that converts the gray code read data Se output from the data sampling unit 3 into binary data and outputs binary read data Sf. Table 1 shows the hamming distance when the binary counter counts up and the hamming distance of the gray-coded binary count data as an example of 4-bit data.

【0010】[0010]

【表1】 [Table 1]

【0011】表1に示すような、バイナリコード及びグ
レイコード相互間の変換を行うエンコード部2及びデコ
ード部4の詳細構成例を図2及び図3にそれぞれ示す。
図2及び図3において使用されている各論理回路素子は
それぞれ排他的論理和演算を行う。また、データサンプ
リング部3はビット対応のフリップフロップを有し、計
数値読み出し信号Sbの立ち上がりで入力データをラッ
チする。
FIGS. 2 and 3 show a detailed configuration example of the encoding unit 2 and the decoding unit 4 for converting between a binary code and a Gray code as shown in Table 1.
Each of the logic circuit elements used in FIGS. 2 and 3 performs an exclusive OR operation. The data sampling unit 3 has a flip-flop corresponding to a bit, and latches input data at the rise of the count value read signal Sb.

【0012】次に動作を説明する。計数用クロックSa
により、バイナリカウンタ部1は計数処理(バイナリカ
ウント)を行い、バイナリ計数データScを出力する。
バイナリカウンタ部1から出力されるバイナリ計数デー
タScの入力により、エンコード部2はグレイコード化
を行い、グレイコード計数データSdを出力する。デー
タサンプリング部3は外部からの任意のタイミングの計
数値読み出し信号Sbのタイミング(計数用クロックS
aと非同期)で、グレイコード計数データSdをサンプ
リングし、グレイコード読み出し信号Seを出力する。
Next, the operation will be described. Counting clock Sa
Accordingly, the binary counter unit 1 performs a counting process (binary counting) and outputs binary count data Sc.
In response to the input of the binary count data Sc output from the binary counter unit 1, the encoding unit 2 performs gray code conversion and outputs gray code count data Sd. The data sampling unit 3 receives the timing (the counting clock S) of the count value read signal Sb at an arbitrary timing from outside.
a), the gray code count data Sd is sampled, and a gray code read signal Se is output.

【0013】このとき、計数値読み出し信号Sbのタイ
ミングがバイナリカウンタ部1のカウント値変化に対応
するエンコード部2の値の書き換えタイミングと一致し
ても、書き換え前のグレイコード計数データと書き換え
後のグレイコード計数データとの間のハミング距離は、
バイナリカウンタ部1の値に関わらず常に1である。ハ
ミング距離が1であるということは変化するビットの数
は1つだけであるということである。このため、回路を
構成する各素子にレベル変化時間のばらつきがあって
も、データサンプリング部3がグレイコード計数データ
として読み取る値は、書き換え前の値か、書き換え後の
値かのいずれか一方であり、その他の値は存在しない。
すなわち、読み取り誤差は±1以下となる。例えばバイ
ナリカウンタのカウント値が7から8にカウントアップ
された時、つまりバイナリデータが“0111”から
“1000”にカウントアップされた時、表1より、バ
イナリカウンタの出力はハミング距離が4に対し、グレ
イコード化した場合、ハミング距離は常に1であり、バ
イナリカウンタのデータを±1の誤差でサンプリングで
きる。このことを図5のタイミング図を参照して、以下
に詳細に説明する。
At this time, even if the timing of the count value read signal Sb coincides with the rewrite timing of the value of the encoding unit 2 corresponding to the change in the count value of the binary counter unit 1, the gray code count data before the rewrite and the gray code count data after the rewrite The Hamming distance between the gray code count data is
It is always 1 regardless of the value of the binary counter unit 1. A Hamming distance of one means that only one bit changes. For this reason, even if there is a variation in the level change time among the elements constituting the circuit, the value read by the data sampling unit 3 as the gray code count data is either the value before rewriting or the value after rewriting. Yes, no other values.
That is, the reading error is ± 1 or less. For example, when the count value of the binary counter is counted up from 7 to 8, that is, when the binary data is counted up from “0111” to “1000”, according to Table 1, the output of the binary counter indicates that the hamming distance is 4 , Gray coding, the Hamming distance is always 1, and the data of the binary counter can be sampled with an error of ± 1. This will be described in detail below with reference to the timing chart of FIG.

【0014】例えば、ポイントP1でサンプリングする
とき、計数用カウンタ部1の出力Scが“3”から
“4”に変化した時、エンコード部2から出力される値
Sdは“2”から“6”に変化する。このときの変化は
3ビット目のみである。よって、エンコード部2から出
力データをポイントP1でサンプリングするときはサン
プリングしたデータSeは、“2”か“6”かのいずれ
かである。サンプリングしたデータSeをデコード部4
に入力すると、入力したデータ“2”,“6”に対し出
力データSfは“3”,“4”になる。すなわち、バイ
ナリカウンタの読み出し誤差は±1となる。
For example, when sampling at the point P1, when the output Sc of the counting counter unit 1 changes from "3" to "4", the value Sd output from the encoding unit 2 changes from "2" to "6". Changes to The change at this time is only the third bit. Therefore, when the output data from the encoding unit 2 is sampled at the point P1, the sampled data Se is either “2” or “6”. The sampling unit 4 decodes the sampled data Se.
, The output data Sf becomes “3” and “4” for the input data “2” and “6”. That is, the reading error of the binary counter is ± 1.

【0015】続いてデコード部4ではデータサンプリン
グ部3が出力するグレイコード読み出しデータSeをバ
イナリデータに変換し、バイナリカウンタ部1のカウン
ト値(Sc)±1のバイナリ読み出しデータSfが出力
される。
Subsequently, the decoding unit 4 converts the gray code read data Se output from the data sampling unit 3 into binary data, and outputs binary read data Sf of the count value (Sc) ± 1 of the binary counter unit 1.

【0016】次に、本発明の一実施の形態を図4を参照
して説明する。図4の回路は、読み出し誤差低減の原理
を説明するために用いた図1の回路において、エンコー
ド部2とデータサンプリング部3との間に論理レベルを
反転させるインバート部5を設け、エンコード部2が出
力するグレイコード計数データの最上位ビットSd2を
インバート部5に入力し、インバート部5が出力する最
上位ビットSd2の反転データSd3と、エンコード部
2が出力するグレイコード計数データの最上位ビット以
外のデータSd4とをデータサンプリング部3への入力
としたものである。その他の回路及び機能は図1の回路
と共通である。
Next, an embodiment of the present invention will be described with reference to FIG. The circuit of FIG. 4 uses the principle of reading error reduction.
In the circuit of FIG. 1 used to explain the above, an inverting unit 5 for inverting the logical level is provided between the encoding unit 2 and the data sampling unit 3, and the most significant bit of the gray code count data output from the encoding unit 2 is provided. Sd2 is input to the inverting unit 5, and inverted data Sd3 of the most significant bit Sd2 output from the inverting unit 5 and data Sd4 other than the most significant bit of the gray code count data output from the encoding unit 2 are sent to the data sampling unit 3. Is input. Other circuits and functions are common to the circuit of FIG.

【0017】次に動作を説明する。計数用クロックSa
により、バイナリカウンタ部1は計数処理を行い、バイ
ナリ計数データScを出力する。バイナリカウンタ部1
から出力されるバイナリ計数データScの入力により、
エンコード部2はグレイコード化を行い、グレイコード
計数データの最上位ビットSd2、及びグレイコード計
数データの最上位ビットを除いた全データSd4を出力
する。インバート部5ではグレイコード計数データの最
上位データSd2を反転して、グレイコード計数最上位
反転データSd3を出力する。データサンプリング部3
は外部からの任意のタイミングの計数値読み出し信号S
bのタイミングで、グレイコード計数最上位反転データ
Sd3及びグレイコード計数データの最上位ビットを除
いた全データSd4をサンプリングし、グレイコード読
み出し信号Se2を出力する。
Next, the operation will be described. Counting clock Sa
Accordingly, the binary counter unit 1 performs a counting process and outputs binary count data Sc. Binary counter unit 1
Input of binary count data Sc output from
The encoding unit 2 performs Gray coding, and outputs the most significant bit Sd2 of the gray code count data and all data Sd4 excluding the most significant bit of the gray code count data. The inverting unit 5 inverts the most significant data Sd2 of the gray code count data and outputs the gray code counted most inverted data Sd3. Data sampling unit 3
Is a count reading signal S at an arbitrary timing from outside
At timing b, the gray code counting uppermost inverted data Sd3 and all data Sd4 excluding the uppermost bit of the gray code counting data are sampled, and a gray code read signal Se2 is output.

【0018】ここでデータサンプリング部3では、サン
プリングタイミングがバイナリカウンタ部1のカウント
値変化に対応するエンコード部2の値の書き換えタイミ
ングと一致しても、書き換え前のグレイコード計数デー
タと書き換え後のグレイコード計数データとの間のハミ
ング距離は、バイナリカウンタ部1の値に関わらず常に
1であり、グレイコード読み出し信号Se2の誤差は±
1以下となる。更に、グレイコード計数データの最上位
ビットを反転しているので表1のバイナリデータ、グレ
イコード変換表より、バイナリデータが“0000”か
ら“0111”までと、“1000”から“1111”
までが、上下対称である。つまり、グレイコード計数最
上位データを反転することだけで、バイナリアップカウ
ンタが、バイナリダウンカウンタに変わる。
Here, in the data sampling unit 3, even if the sampling timing coincides with the rewriting timing of the value of the encoding unit 2 corresponding to the change in the count value of the binary counter unit 1, the gray code count data before rewriting and the gray code count data after rewriting. The Hamming distance from the gray code count data is always 1 irrespective of the value of the binary counter 1, and the error of the gray code read signal Se2 is ±
1 or less. Furthermore, since the most significant bit of the gray code count data is inverted, the binary data in Table 1 and the gray code conversion table indicate that the binary data is from “0000” to “0111” and from “1000” to “1111”.
Up to this point is vertically symmetric. That is, the binary up counter is changed to the binary down counter only by inverting the gray code counting top data.

【0019】例えばバイナリカウンタ部1が“000
0”から“0001”にカウントアップするときを以下
に述べる。まずバイナリカウンタのデータが“000
0”の時は、エンコード部2から出力されるグレイコー
ド計数最上位データSd2が“0”、最上位を除くグレ
イコード計数データSd4は“000”から“001”
に変化する。
For example, if the binary counter 1 is "000"
The case of counting up from “0” to “0001” is described below: First, the data of the binary counter is set to “000”.
When it is "0", the gray code counting uppermost data Sd2 output from the encoder 2 is "0", and the gray code counting data Sd4 excluding the uppermost is "000" to "001".
Changes to

【0020】ここでデータサンプリング部3に入力され
るグレイコード計数最上位反転データSd3は“0”
反転して“1”になる。つまりグレイコード化されたバ
イナリカウンタのデータは“1000”となる。データ
サンプリング部3では計数値読み出し信号Sbによりサ
ンプリングされたグレイコード読み出しデータSe2は
“1000”となる。デコード部4ではグレイコードを
バイナリデータに変更するが、表1のバイナリコード−
グレイコード変換より、グレイコード読み出しデータS
e2が“1000”のときは、バイナリ読み出しデータ
Sf2は“1111”となる。同様にバイナリカウンタ
のデータが“0001”にカウントアップしたときは、
グレイコード読み出しデータSe2が“1001”とな
り、表1のバイナリコード−グレイコード変換より、バ
イナリ読み出しデータSf2は“1110”となる。こ
れは、初期値が“1111”から“1110”になり、
カウントダウンしていることを表す。
Here, the gray code counting uppermost inverted data Sd3 input to the data sampling section 3 is inverted from “0” to “1”. That is, the data of the gray-coded binary counter is "1000". In the data sampling unit 3, the gray code read data Se2 sampled by the count value read signal Sb becomes “1000”. The decoding unit 4 changes the gray code into binary data.
Gray code read data S
When e2 is "1000" , binary read data
Sf2 becomes “1111”. Similarly, when the binary counter data counts up to “0001”,
The gray code read data Se2 becomes “1001” and the binary read data Sf2 becomes “1110” from the binary code-Gray code conversion of Table 1. This means that the initial value changes from “1111” to “1110”,
Indicates that it is counting down.

【0021】[0021]

【発明の効果】以上説明したように本発明は、バイナリ
カウンタのバイナリカウントデータをグレイコード化す
るためのエンコード手段と、出力されたグレイコードカ
ウントデータを読み出し信号のタイミングでサンプリン
グしグレイコード読み出しデータを出力するサンプリン
手段と、このグレイコード読み出しデータをバイナリ
コードデータに逆変換しバイナリ読み出しデータとして
出力するデコード手段とを有している。グレイコードデ
ータのサンプリング前後の2符号間のハミング距離は、
バイナリカウンタのカウントデータの値に関わらず常に
1であり、読み出し信号のタイミングとバイナリカウン
タのカウント歩進タイミングとの時間関係がどのような
状態にあっても、グレイコードデータを±1の誤差でサ
ンプリングできるので、サンプリング後のグレイコード
データを逆変換して得たバイナリコードデータ、すなわ
ちバイナリカウンタのカウントデータを±1の誤差で出
力できる。さらに本発明は上記構成に加えて、エンコー
ド手段の出力データのうち最上位のビットデータを論理
反転してからサンプリング手段に入力するインバート手
段を有している。これにより、デコード手段から出力さ
れるカウントデータのカウント歩進方向をバイナリカウ
ンタにおけるカウントデータのカウント歩進方向の逆方
向とするとともに、従来技術の問題点である、バイナリ
カウンタ内のハミング距離が1〜n(nはカウンタビッ
ト数)で進行することによりバイナリカウンタの計数値
とは異なる値(誤差±2以上、最悪の場合は、±最大計
数値の半分)が読み出されるタイミングの存在をなくす
効果がある。
The present invention described above, according to the present invention includes encoding means for grayed ray encode binary count data of the binary counter, the sampled gray code read at the timing of the signal output reads gray code count data Sampling that outputs data
It has a grayed means and decoding means for outputting the gray code read data as the inverse transformation to binary read data into binary code data. The Hamming distance between two codes before and after sampling of Gray code data is
It is always 1 irrespective of the value of the count data of the binary counter, and the gray code data is ± 1 error regardless of the time relationship between the timing of the read signal and the count increment timing of the binary counter. Since sampling can be performed, binary code data obtained by inversely converting gray code data after sampling, that is, count data of a binary counter can be output with an error of ± 1. Further, in addition to the above configuration, the present invention
Logic of the most significant bit data of the output data of
Invert hand to invert and then input to sampling means
It has a step. This allows the output from the decoding means to be
The binary count of the count data
Of the count data in the counter
With the direction, the prior art is the problem, the Hamming distance in the binary counter is 1 to n (n is the number of counter bits) different value from the count value of the binary counter by proceeding in (error ± 2 or more, In the worst case, there is an effect of eliminating the timing at which (± half the maximum count value) is read.

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

【図1】本発明における読み出し誤差低減の原理を説明
するためのブロック図である。
FIG. 1 illustrates the principle of reading error reduction according to the present invention.
It is a block diagram for performing.

【図2】図1のエンコード部の詳細構成を示すブロック
図である。
FIG. 2 is a block diagram illustrating a detailed configuration of an encoding unit in FIG. 1;

【図3】図1のデコード部の詳細構成を示すブロック図
である。
FIG. 3 is a block diagram illustrating a detailed configuration of a decoding unit in FIG. 1;

【図4】本発明の一実施の形態を示すブロック図であ
る。
FIG. 4 is a block diagram showing an embodiment of the present invention.

【図5】図1の各部の信号動作タイミングを示す図であ
る。
FIG. 5 is a diagram illustrating signal operation timings of respective units in FIG . 1 ;

【図6】従来の技術を示すブロック図である。FIG. 6 is a block diagram showing a conventional technique.

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

1 バイナリカウンタ部 2 エンコード部 3 データサンプリング部 4 デコード部 5 インバート部 DESCRIPTION OF SYMBOLS 1 Binary counter part 2 Encoding part 3 Data sampling part 4 Decoding part 5 Invert part

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平8−149117(JP,A) 特開 平4−217118(JP,A) 特開 昭62−179221(JP,A) 特開 平1−251822(JP,A) (58)調査した分野(Int.Cl.7,DB名) H03M 7/16 H03K 23/58 ──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-8-149117 (JP, A) JP-A-4-217118 (JP, A) JP-A-62-179221 (JP, A) JP-A-1- 251822 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H03M 7/16 H03K 23/58

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 バイナリカウンタのカウントデータをカ
ウント歩進とは非同期なタイミングで読み出す回路にお
いて、 前記バイナリカウンタの出力データをバイナリコードか
らグレイコードに変換するエンコード手段と、前記エンコード手段の変換出力データのうち最上位のビ
ットデータの論理値を反転するインバート手段と、 前記バイナリカウンタの読み出し指定タイミングに、前
記エンコード手段の変換出力データのうち最上位のビッ
トデータを除いた残りのビットデータを読み取るととも
に、最上位のビットデータとして前記インバート手段の
出力データを読み取るサンプリング手段と、 前記サンプリング手段が読み取ったデータをグレイコー
ドからバイナリコードに逆変換し、前記バイナリカウン
タのカウント歩進方向を逆方向とした場合に対応する
記バイナリカウンタからの読み出しカウントデータとし
て出力するデコード手段とを備えることを特徴とするバ
イナリカウンタの非同期読み出し回路。
1. A circuit for reading count data of a binary counter at a timing asynchronous with a count increment, wherein said encoding means converts output data of said binary counter from a binary code to a gray code, and conversion output data of said encoding means. The top
And inverting means for inverting the logic value of Ttodeta, the read designated timing of the binary counter, before
Of the conversion output data of the encoding means.
Read the remaining bit data except for the
Then, as the most significant bit data,
Sampling means for reading the output data, and inversely converted into a binary code data said sampling means is read from the gray code, the binary counter
Decoding means for outputting as the read count data from the binary counter corresponding to the case where the count increment direction of the data counter is reversed .
JP01520897A 1997-01-29 1997-01-29 Asynchronous readout circuit of binary counter Expired - Fee Related JP3190846B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01520897A JP3190846B2 (en) 1997-01-29 1997-01-29 Asynchronous readout circuit of binary counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01520897A JP3190846B2 (en) 1997-01-29 1997-01-29 Asynchronous readout circuit of binary counter

Publications (2)

Publication Number Publication Date
JPH10215185A JPH10215185A (en) 1998-08-11
JP3190846B2 true JP3190846B2 (en) 2001-07-23

Family

ID=11882459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01520897A Expired - Fee Related JP3190846B2 (en) 1997-01-29 1997-01-29 Asynchronous readout circuit of binary counter

Country Status (1)

Country Link
JP (1) JP3190846B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6314154B1 (en) * 1999-11-04 2001-11-06 Vlsi Technology, Inc Non-power-of-two Gray-code counter and binary incrementer therefor
CN102904584A (en) * 2011-07-26 2013-01-30 上海华虹集成电路有限责任公司 Gray code coding/decoding parallel circuit

Also Published As

Publication number Publication date
JPH10215185A (en) 1998-08-11

Similar Documents

Publication Publication Date Title
US6425107B1 (en) Data encoder/decoder for a high speed serial link
US5436626A (en) Variable-length codeword encoder
EP1410509B1 (en) Non-power-of-two gray-code counter system having binary incrementer with counts distributed with bilateral symmetry
US3811108A (en) Reverse cyclic code error correction
EP0344903A2 (en) Traversed (d, k) code translation
JPS63123232A (en) Method of detecting single bit error and arithmetic decoder employing the same
EP0328627A4 (en) Method and apparatus for digital encoding and decoding
JPS60180222A (en) Code error correcting device
JP3190846B2 (en) Asynchronous readout circuit of binary counter
JP3088302B2 (en) Binary counter readout circuit
JPH0654475B2 (en) Device for detecting transition error
GB2175769A (en) Processing image data
EP0240921A2 (en) BCH code signal correcting system
JPH0255987B2 (en)
JPS6032437A (en) Coding system
JP2731189B2 (en) Encoding / decoding device
JPH05291961A (en) Gray code generator
JP2768287B2 (en) Match detection circuit
SU1128281A1 (en) Device for receiving signals with redundancy
KR920001856B1 (en) Sequence repetition code signaling detection circuit between each exchange node
JP2536490B2 (en) Run-length encoding device
JP2556160B2 (en) Compression code decompression device
JP2536489B2 (en) Compressed data decoding device
JPS6229812B2 (en)
JPH0270128A (en) Transmitter for variable length encoding signal

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010417

LAPS Cancellation because of no payment of annual fees