JPS6366455B2 - - Google Patents
Info
- Publication number
- JPS6366455B2 JPS6366455B2 JP20113582A JP20113582A JPS6366455B2 JP S6366455 B2 JPS6366455 B2 JP S6366455B2 JP 20113582 A JP20113582 A JP 20113582A JP 20113582 A JP20113582 A JP 20113582A JP S6366455 B2 JPS6366455 B2 JP S6366455B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- output
- counter
- decoding
- input
- 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
Links
- 230000000087 stabilizing effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 6
- 230000010363 phase shift Effects 0.000 description 3
- 230000007257 malfunction Effects 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K23/00—Pulse counters comprising counting chains; Frequency dividers comprising counting chains
- H03K23/64—Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two
- H03K23/66—Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two with a variable counting base, e.g. by presetting or by adding or suppressing pulses
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K21/00—Details of pulse counters or frequency dividers
- H03K21/38—Starting, stopping or resetting the counter
Landscapes
- Manipulation Of Pulses (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Description
【発明の詳細な説明】
本発明はデイジタルパルスカウントするカウン
ト回路の構成に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to the configuration of a counting circuit for counting digital pulses.
従来、ある一定数をカウントするカウンタ回路
は第1図のように構成される。即ち、カウンタ回
路1(例えばテキサスインストルメント社製のフ
ルシンクロナスカウンタIC、SN74163N等)にク
ロツクパルスClを印加すれば、カウンタ出力は
0、1、2、……n、n+1、……のようにクロ
ツクClの立上りで1つづつ増加する。ここでクリ
ア入力Crを1クロツク区間だけ印加すれば、カ
ウンタ出力は強制的に0となり、次に1、2、
3、……の如く再びカウントを続ける。従つて、
ある一定周期でクリアパルスを印加すれば、カウ
ンタ出力は一定周期でのカウントを繰返すことに
なる。ここで、クリア入力Crが常に安定であれ
ば、カウンタ出力も安定に動作する。 Conventionally, a counter circuit for counting a certain number is configured as shown in FIG. That is, if a clock pulse Cl is applied to the counter circuit 1 (for example, a fully synchronous counter IC manufactured by Texas Instruments, SN74163N, etc.), the counter output will be 0, 1, 2, . . . n, n+1, . . . Increases by 1 at the rising edge of clock Cl. If the clear input Cr is applied for one clock period, the counter output will be forced to 0, then 1, 2, etc.
3. Continue counting again as follows. Therefore,
If a clear pulse is applied at a certain period, the counter output will repeat counting at a certain period. Here, if the clear input Cr is always stable, the counter output also operates stably.
ところが、実際の機器に応用する場合に、クリ
ア入力が必ずして常に安定に得られるとは限らな
い。場合によつてはクリア入力の位相がずれる時
もあり、クリア入力そのものが断となる時もあ
る。このような場合には、カウンタ回路が誤動作
し、機器として望ましくない状態におちいること
がある。 However, when applied to actual equipment, it is not always possible to obtain clear input stably. In some cases, the phase of the clear input may shift, and the clear input itself may be disconnected. In such a case, the counter circuit may malfunction, resulting in an undesirable state for the device.
本発明は従来の上記欠点を除去する為になされ
たものであり、従つて本発明の目的は、上述のよ
うな場合にも正常にカウントを続けることができ
るようにした新規な回路を提供することになる。 The present invention has been made to eliminate the above-mentioned drawbacks of the conventional art, and therefore, an object of the present invention is to provide a novel circuit that can continue counting normally even in the above-mentioned cases. It turns out.
上記目的を達成する為に、本発明はクリア入力
の位相がずれた場合には、カウンタ回路の出力を
デコードして得たパルスによりクリア入力を禁止
して誤動作を起さないようにし、且つ常に正しい
位相でカウンタ回路をクリアするよう構成された
もう1つのデコーダ回路からの出力をクリア端子
に供給するよう構成したものである。 In order to achieve the above object, the present invention inhibits the clear input using a pulse obtained by decoding the output of the counter circuit when the phase of the clear input is shifted, so as to prevent malfunction. The output from another decoder circuit configured to clear the counter circuit with the correct phase is supplied to the clear terminal.
即ち、本発明によれば、パルスカウント回路に
おいてカウント出力をあらかじめ定められた数に
てデコードする第1のデコード回路と、該第1の
デコード回路の出力により外部からのカウント回
路へのリセツト信号を禁止する回路と、あらかじ
め定められた数にてデコードする第2のデコード
回路と、該第2のデコード回路の出力にてカウン
ト回路をリセツトする回路とを具備することを特
徴とした安定化カウント回路が得られる。 That is, according to the present invention, the pulse counting circuit includes a first decoding circuit that decodes the count output by a predetermined number, and an output of the first decoding circuit that receives a reset signal from the outside to the counting circuit. A stabilizing count circuit comprising: a prohibition circuit; a second decode circuit that decodes with a predetermined number; and a circuit that resets a count circuit with the output of the second decode circuit. is obtained.
次に本発明をその好ましい一実施例について図
面を参照して具体的に説明する。 Next, a preferred embodiment of the present invention will be specifically explained with reference to the drawings.
第2図は本発明の一実施例を示すブロツク構成
図である。図において、クリア入力CrはAND回
路の1つの入力となる(第2図ではAND回路は
一例として負入力AND回路としている)。AND
回路のもう1つの入力にはカウンタ11をデコー
ド回路(デコーダ)12によりデコードして得た
パルスの極性をインバータINVにより反転して
得たパルスを印加する。AND回路の出力はOR回
路の入力として印加され、OR回路のもう1つの
入力にはデコード回路(デコーダ)13の出力が
印加される。OR回路の出力はカウンタ11のク
リア入力に加えられている。 FIG. 2 is a block diagram showing one embodiment of the present invention. In the figure, the clear input Cr becomes one input of an AND circuit (the AND circuit in FIG. 2 is a negative input AND circuit as an example). AND
A pulse obtained by inverting the polarity of the pulse obtained by decoding the counter 11 by a decoding circuit (decoder) 12 by an inverter INV is applied to the other input of the circuit. The output of the AND circuit is applied as an input to the OR circuit, and the output of the decoding circuit (decoder) 13 is applied to the other input of the OR circuit. The output of the OR circuit is added to the clear input of the counter 11.
ここで今、本発明に係るカウンタ回路では、例
えば、0からNまで繰返しカウントするよう構成
されているとする。クリア入力Crとしては第3
図aに示すようにN+1クロツク長の周期のパル
ス列である。bはクロツク入力Cl、cはカウンタ
11の出力の数値を示している。dは、デコード
回路13の出力であり、カウンタ11の出力の数
値がNの時にのみパルスを出力する。eは、デコ
ード回路12の出力であり、カウンタ11の出力
の数値がN−1の時にのみパルスを出力する。デ
コード回路12の出力はインバータINVにより
極性反転された後に前述のANDゲート回路に加
えられる。従つて、デコード回路12の出力が存
在する期間、即ちカウンタ出力数値がN−1の期
間はクリア入力Crが禁止されることになる。即
ちクリア入力Crの位相が何らかの原因で第3図
a′の点線部分のように前に進んでしまつた場合に
は、進んだ部分は禁止され、ANDゲート回路の
出力はf図のようになる。この場合、位相の進む
程度によつてはf図中央に示すように残り“カ
ス”が存在するが、この部分はbのクロツクClの
立上り部分をよぎらないので、この部分でクリア
動作は起らない。従つて、この場合デコード回路
13からのパルスがORゲート回路に供給され、
このゲート回路出力がカウンタ11のクリア端子
に印加されるので、カウンタ11は正常値にてク
リアされ、正常にカウント動作を続ける。 Here, it is assumed that the counter circuit according to the present invention is configured to repeatedly count from 0 to N, for example. Third clear input Cr
As shown in Figure a, this is a pulse train with a period of N+1 clock length. b indicates the clock input Cl, and c indicates the numerical value of the output of the counter 11. d is the output of the decoding circuit 13, which outputs a pulse only when the output value of the counter 11 is N. e is the output of the decoding circuit 12, which outputs a pulse only when the output value of the counter 11 is N-1. The output of the decode circuit 12 is inverted in polarity by the inverter INV and then applied to the above-mentioned AND gate circuit. Therefore, the clear input Cr is prohibited during the period when the output of the decoding circuit 12 exists, that is, during the period when the counter output value is N-1. In other words, the phase of the clear input Cr may change as shown in Fig. 3 for some reason.
If it advances forward as shown in the dotted line portion of a', the advanced portion is inhibited and the output of the AND gate circuit becomes as shown in diagram f. In this case, depending on the extent to which the phase advances, there may be a remaining "scrap" as shown in the center of the diagram f, but this part does not cross the rising edge of the clock Cl in b, so the clearing operation will not occur in this part. No. Therefore, in this case, the pulse from the decoding circuit 13 is supplied to the OR gate circuit,
Since this gate circuit output is applied to the clear terminal of the counter 11, the counter 11 is cleared to a normal value and continues counting normally.
このように、正しくないクリア入力はデコード
回路12の出力により禁止され、代りにデコード
回路13からのパルスによりカウンタ11はクリ
アされるので、たとえクリア入力が多少の位相ず
れを持つていても正しくカウントを続けることが
できる。 In this way, an incorrect clear input is inhibited by the output of the decoding circuit 12, and the counter 11 is instead cleared by a pulse from the decoding circuit 13, so even if the clear input has a slight phase shift, it will count correctly. can continue.
ここで、デコード回路12はカウンタの値がN
−1の時のみ出力を発生するものとして話を進め
たが、例えば、N−2の時も出力するよう構成す
ることは可能であり、この場合にはクリア入力が
2クロツク分進んでしまつても、正しくカウント
を続けることができることは明らかである。この
量は実際の応用のさいに、クリア入力の予想され
る位相ずれより決定しうるものである。 Here, the decoding circuit 12 assumes that the counter value is N
Although we have proceeded with the discussion assuming that the output is generated only when the clock is -1, for example, it is possible to configure the output so that it is also output when the clock is N-2. In this case, the clear input will be advanced by two clocks. It is clear that the count can continue correctly even if the This amount can be determined in practical applications from the expected phase shift of the clear input.
又、本実施例においてはカウンタの値をリセツ
トするのにクリア端子にクリア入力を与えるとし
てきたが、カウンタの値を規正できる方法であれ
ば他の方法を用いてもよいことはいうまでもな
い。その他本発明についてはその範囲から逸脱す
ることなく種々の変更を加えて実施できることは
勿論である。 Furthermore, in this embodiment, a clear input is applied to the clear terminal to reset the counter value, but it goes without saying that other methods may be used as long as the counter value can be regulated. . It goes without saying that the present invention can be implemented with various modifications without departing from its scope.
以上説明したように、本発明によれば、カウン
タとデコーダとANDゲート回路とORゲート回路
を前述したように組合せることにより、クリア入
力に位相ずれ(ジツタ)がある場合にも安定した
カウンタ回路を構成することができる。 As explained above, according to the present invention, by combining a counter, a decoder, an AND gate circuit, and an OR gate circuit as described above, a stable counter circuit can be realized even when there is a phase shift (jitter) in the clear input. can be configured.
第1図は従来のカウンタ回路を示す図、第2図
は本発明による安定化カウンタ回路の一実施例を
示すブロツク構成図、第3図は第2図の説明に用
いる各部のタイミングを示す図である。
1,11…カウンタ、12,13…デコード回
路(デコーダ)。
FIG. 1 is a diagram showing a conventional counter circuit, FIG. 2 is a block configuration diagram showing an embodiment of the stabilizing counter circuit according to the present invention, and FIG. 3 is a diagram showing the timing of each part used for explaining FIG. 2. It is. 1, 11...Counter, 12, 13...Decoding circuit (decoder).
Claims (1)
をあらかじめ定められた数にてデコードする第1
のデコード回路と、該第1のデコード回路の出力
により外部からのカウント回路へのリセツト信号
を禁止する回路と、あらかじめ定められた数にて
デコードする第2のデコード回路と、該第2のデ
コード回路の出力にてカウント回路をリセツトす
る回路とを具備することを特徴とした安定化カウ
ント回路。1 In the pulse count circuit, the first circuit decodes the count output with a predetermined number.
a decoding circuit, a circuit for prohibiting a reset signal from the outside to the counting circuit by the output of the first decoding circuit, a second decoding circuit for decoding with a predetermined number, and the second decoding circuit. A stabilizing count circuit comprising: a circuit for resetting the count circuit at the output of the circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20113582A JPS5991730A (en) | 1982-11-18 | 1982-11-18 | Stable counting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20113582A JPS5991730A (en) | 1982-11-18 | 1982-11-18 | Stable counting circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5991730A JPS5991730A (en) | 1984-05-26 |
| JPS6366455B2 true JPS6366455B2 (en) | 1988-12-20 |
Family
ID=16435980
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP20113582A Granted JPS5991730A (en) | 1982-11-18 | 1982-11-18 | Stable counting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5991730A (en) |
-
1982
- 1982-11-18 JP JP20113582A patent/JPS5991730A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5991730A (en) | 1984-05-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR880003238A (en) | Clock player | |
| US6621359B2 (en) | Noise elimination circuit | |
| JPH01144738A (en) | Circuit for protecting window method synchronization | |
| JPS6366455B2 (en) | ||
| JPS62176320A (en) | Input circuit for semiconductor integrated circuit | |
| JPS5895447A (en) | Clock regenerating circuit | |
| JPS6347083Y2 (en) | ||
| KR920007076B1 (en) | Synchronous protection circuit of PCM decoder | |
| JPH0431211B2 (en) | ||
| JPH0332115Y2 (en) | ||
| JPS6395382A (en) | Variable busy signal generation circuit | |
| JPH0543544Y2 (en) | ||
| JP3036940B2 (en) | Divider circuit with phase inversion protection function | |
| JPH0256853B2 (en) | ||
| JPS5922466A (en) | Demodulating method of biphase digital modulation signal | |
| JPH06140920A (en) | Automatic frequency divider circuit | |
| JP2638337B2 (en) | Error counter circuit | |
| KR930007789Y1 (en) | System reset prevent circuit though glitch | |
| JPH05218824A (en) | Pulse width correction circuit | |
| JPH10126231A (en) | Chattering elimination circuit | |
| JPS6212225A (en) | Digital pll circuit | |
| JPH02241110A (en) | Pulse eliminating circuit | |
| JPH02170616A (en) | Logical integrated circuit | |
| JPS58138145A (en) | Clock pulse generating circuit in pcm signal receiver | |
| JPH03257379A (en) | Counter circuit |