JPH04273715A - Counter circuit - Google Patents

Counter circuit

Info

Publication number
JPH04273715A
JPH04273715A JP3055473A JP5547391A JPH04273715A JP H04273715 A JPH04273715 A JP H04273715A JP 3055473 A JP3055473 A JP 3055473A JP 5547391 A JP5547391 A JP 5547391A JP H04273715 A JPH04273715 A JP H04273715A
Authority
JP
Japan
Prior art keywords
phase
signal
input
flip
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.)
Pending
Application number
JP3055473A
Other languages
Japanese (ja)
Inventor
Yoshito Ogawa
義人 小川
Takashi Onodera
孝志 小野寺
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
NEC Miyagi Ltd
Original Assignee
NEC Corp
NEC Miyagi 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 NEC Corp, NEC Miyagi Ltd filed Critical NEC Corp
Priority to JP3055473A priority Critical patent/JPH04273715A/en
Publication of JPH04273715A publication Critical patent/JPH04273715A/en
Pending legal-status Critical Current

Links

Landscapes

  • Pulse Circuits (AREA)

Abstract

PURPOSE:To freely set the phase of an output signal in a counter circuit which generates a required timing signal by frequency-dividing an input signal. CONSTITUTION:A frequency division circuit 13 is comprised of four D flip-flop circuits 14-17, and outputs a signal inputted to an input terminal 11 by performing quadripartite frequency division. A decoder 19 outputs a phase signal based on phase data outputted from a phase setting data generating part 18. A comparator 20 compares the combination of the output signals of the flip-flop circuits 14-17 inputted to the input terminals at one side of EXOR gates 21-24 with that of the phase signal outputted from the decoder 19, and outputs a signal of phase in accordance with the phase data outputted from the phase setting data generating part 18.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は各種回路の動作タイミン
グに使用される信号を発生させるカウンタ回路に係り、
特に出力信号の位相を変化させる機能を有するカウンタ
回路に関する。
[Industrial Application Field] The present invention relates to a counter circuit that generates signals used for operating timing of various circuits.
In particular, the present invention relates to a counter circuit having a function of changing the phase of an output signal.

【0002】0002

【従来の技術】従来、この種のカウンタ回路は、たとえ
ば図3に表すように入力端子1と出力端子2との間に複
数、たとえば4個のD型フリップフロップ(F/F)回
路3〜6により構成されている。入力端子1はフリップ
フロップ回路3のC端子に接続され、このフリップフロ
ップ回路3の反転Q端子は同フリップフロップ回路3の
D端子に接続されている。フリップフロップ回路3のQ
端子は次段のフリップフロップ回路4のC端子に接続さ
れている。以下同様の構成で、最後のフリップフロップ
回路6のQ端子が出力端子2に接続されている。
2. Description of the Related Art Conventionally, a counter circuit of this type has a plurality of, for example four, D-type flip-flop (F/F) circuits 3 to 3 between an input terminal 1 and an output terminal 2, as shown in FIG. 6. The input terminal 1 is connected to the C terminal of a flip-flop circuit 3, and the inverted Q terminal of this flip-flop circuit 3 is connected to the D terminal of the flip-flop circuit 3. Q of flip-flop circuit 3
The terminal is connected to the C terminal of the next-stage flip-flop circuit 4. Thereafter, the configuration is similar, and the Q terminal of the last flip-flop circuit 6 is connected to the output terminal 2.

【0003】すなわち、このカウンタ回路は、入力端子
1に入力した信号をフリップフロップ回路3〜6により
、入力信号を分周し、出力端子2からタイミング信号と
して出力するもので、このフリップフロップ回路の数は
、タイミングに合わせて設定されていた。
That is, in this counter circuit, a signal inputted to an input terminal 1 is frequency-divided by flip-flop circuits 3 to 6, and output as a timing signal from an output terminal 2. The numbers were set according to the timing.

【0004】0004

【発明が解決しようとする課題】上述のように従来のカ
ウンタ回路では、フリップフロップ回路の数を変えるこ
とにより所望のタイミング信号を得ていた。すなわち、
従来のカウンタ回路では、出力信号の位相は、入力信号
と回路により規定されており、位相を自由に設定するこ
とはできなかった。
As described above, in the conventional counter circuit, a desired timing signal is obtained by changing the number of flip-flop circuits. That is,
In conventional counter circuits, the phase of the output signal is defined by the input signal and the circuit, and the phase cannot be set freely.

【0005】ところが、一般に、回路を組み上げた後に
は、回路設計の段階では予想できない要因、たとえばプ
リント基板の配線の長さのずれや実装位置のずれ等が発
生し、そのため出力信号の位相がずれる場合がある。こ
のように位相がずれた場合には、入力信号の位相を変え
ない限り、出力信号の位相を前後に変化させることはで
きなかった。そのため、必要な位相のタイミング信号を
得るためには、回路の見直しを余儀なくされているのが
現状であった。
However, in general, after a circuit is assembled, factors that cannot be predicted at the circuit design stage occur, such as a deviation in the length of the printed circuit board wiring or a deviation in the mounting position, resulting in a phase shift in the output signal. There are cases. When the phase is shifted in this way, it is not possible to change the phase of the output signal back and forth unless the phase of the input signal is changed. Therefore, in order to obtain a timing signal with the required phase, it is currently necessary to review the circuit.

【0006】本発明はかかる問題点に鑑みてなされたも
ので、その目的は、回路設計の段階では予想ができない
要因により位相がずれた場合でも、出力信号の位相を適
切な値に変えることでき、回路の見直し作業を不要とし
うるカウンタ回路を提供することにある。
The present invention has been made in view of the above problems, and its purpose is to change the phase of the output signal to an appropriate value even if the phase is shifted due to factors that cannot be predicted at the circuit design stage. An object of the present invention is to provide a counter circuit that can eliminate the need to review the circuit.

【0007】[0007]

【課題を解決するための手段】上記課題を解決するため
に、本発明のカウンタ回路では、入力信号を分周する分
周手段と、位相設定データを発生する位相設定データ発
生手段と、この位相設定データ発生手段が発生した位相
データを入力として位相信号を出力するデコーダと、前
記分周手段の出力信号と前記デコーダの出力信号とを比
較し、前記位相設定データ発生手段が発生した位相デー
タに応じた位相を有する信号を出力する比較手段とを具
備している。
[Means for Solving the Problems] In order to solve the above problems, the counter circuit of the present invention includes a frequency dividing means for dividing an input signal, a phase setting data generating means for generating phase setting data, and a phase setting data generating means for generating phase setting data. A decoder receives as input the phase data generated by the setting data generating means and outputs a phase signal, and compares the output signal of the frequency dividing means with the output signal of the decoder, and calculates the phase data generated by the phase setting data generating means. and comparing means for outputting a signal having a corresponding phase.

【0008】前記分周手段は、具体的には、複数のフリ
ップフロップ回路により構成され、前記比較手段は、そ
れぞれ一方の入力端子に前記複数のフリップフロップ回
路の各出力信号を入力とし、かつ他方の入力端子に前記
デコーダから出力された位相信号が入力される複数の排
他的論理和ゲートと、これらゲートの出力信号を入力と
する論理和ゲートとにより構成されている。
[0008] The frequency dividing means is specifically constituted by a plurality of flip-flop circuits, and the comparison means has one input terminal each inputting each output signal of the plurality of flip-flop circuits, and the other input terminal. It is composed of a plurality of exclusive OR gates to which input terminals are input the phase signals output from the decoder, and an OR gate to which the output signals of these gates are input.

【0009】このような構成により本発明のカウンタ回
路では、出力されるタイミング信号の位相を可変とする
ことができ、回路設計の段階では予想ができない要因に
より位相がずれた場合でも、タイミング信号の位相を適
切な値に変えることでき、回路の見直し作業が不要にな
る。
With such a configuration, the counter circuit of the present invention can make the phase of the output timing signal variable, and even if the phase is shifted due to factors that cannot be predicted at the circuit design stage, the timing signal remains unchanged. The phase can be changed to an appropriate value, eliminating the need to review the circuit.

【0010】0010

【実施例】以下、図面を参照して本発明の実施例を説明
する。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings.

【0011】図1は本発明の一実施例に係るカウンタ回
路の構成を表すブロック図である。このカウンタ回路で
は、入力端子11と出力端子12との間に分周回路13
と比較回路20が設けられている。分周回路13は、従
来のカウンタ回路と同様に、4つのたとえばD型のフリ
ップフロップ回路14〜17により構成されており、入
力端子11に入力した信号を4分周して出力するもので
ある。これらの出力信号は前述のように入力端子11か
ら入力した入力信号の位相により設定される。
FIG. 1 is a block diagram showing the configuration of a counter circuit according to an embodiment of the present invention. In this counter circuit, a frequency dividing circuit 13 is provided between the input terminal 11 and the output terminal 12.
and a comparison circuit 20 are provided. The frequency dividing circuit 13 is composed of four, for example, D-type flip-flop circuits 14 to 17, similar to a conventional counter circuit, and divides the frequency of the signal input to the input terminal 11 by four and outputs the divided signal. . These output signals are set by the phase of the input signal input from the input terminal 11 as described above.

【0012】比較回路20は、4つの排他的論理和ゲー
ト21〜24と、これらゲート21〜24の出力信号を
入力とする論理和ゲート25とにより構成されている。 排他的論理和ゲート21〜24の各一方の入力端子には
それぞれ、フリップフロップ回路14〜17の各Q端子
の出力信号が入力されるようになっている。すなわち、
これら排他的論理和ゲート21〜24には位相が1パル
スずつシフトした信号が順次入力されるようになってい
る。また、これら排他的論理和ゲート21〜24の各他
方の入力端子にはそれぞれ、デコーダ19からの出力信
号が入力されるようになっている。デコーダ19は位相
設定データ発生部18から出力された位相データを入力
とし、これを解読して位相信号として「1」または「0
」信号を出力するものである。位相設定データ発生部1
8はCPU(中央処理装置)により構成されており、図
示しない操作部からの入力に基づき位相データをデコー
ダ19へ出力するものである。
The comparison circuit 20 is composed of four exclusive OR gates 21-24 and an OR gate 25 which receives the output signals of these gates 21-24. The output signals of the respective Q terminals of the flip-flop circuits 14 to 17 are input to one input terminal of each of the exclusive OR gates 21 to 24, respectively. That is,
Signals whose phases are shifted one pulse at a time are sequentially input to these exclusive OR gates 21 to 24. Further, an output signal from the decoder 19 is input to the other input terminal of each of these exclusive OR gates 21 to 24. The decoder 19 inputs the phase data output from the phase setting data generator 18, decodes it, and outputs a phase signal of "1" or "0".
” signal. Phase setting data generator 1
Reference numeral 8 is composed of a CPU (central processing unit), which outputs phase data to the decoder 19 based on input from an operation section (not shown).

【0013】比較回路20は、排他的論理和ゲート21
〜24の一方の入力端子に入力されたフリップフロップ
回路14〜17の出力信号の組合せと、デコーダ19か
ら出力された位相信号の組合せとを比較し、その組合せ
が一致したときにその出力レベルが変化するものである
。この比較回路20の出力信号はフリップフロップ回路
回路26のD端子に入力されるようになっている。この
フリップフロップ回路回路26はフリップフロップ回路
14〜17の出力信号とデコーダ19から出力された位
相信号との間のわずかなタイミングのずれにより生ずる
いわゆるひげの発生を防止するもので、そのC端子には
入力端子11の入力信号が入力されるようになっており
、そのQ端子は出力端子12に接続されている。なお、
このフリップフロップ回路26により出力信号の位相が
その分だけずれることなるので、これを考慮したデータ
を位相設定データ発生部18から発生する必要がある。
The comparison circuit 20 includes an exclusive OR gate 21
The combination of the output signals of the flip-flop circuits 14 to 17 inputted to one input terminal of the flip-flop circuits 14 to 24 is compared with the combination of phase signals output from the decoder 19, and when the combinations match, the output level is determined. It changes. The output signal of this comparison circuit 20 is input to the D terminal of the flip-flop circuit 26. This flip-flop circuit 26 prevents the so-called whisker from occurring due to a slight timing difference between the output signals of the flip-flop circuits 14 to 17 and the phase signal output from the decoder 19. is configured to receive an input signal from an input terminal 11, and its Q terminal is connected to an output terminal 12. In addition,
Since the phase of the output signal is shifted by this amount due to the flip-flop circuit 26, it is necessary to generate data from the phase setting data generating section 18 that takes this into consideration.

【0014】次に、本実施例のカウンタ回路の動作を図
2に表すタイミングチャートを参照して説明する。すな
わち、まず、所定の位相データが設定されると位相設定
データ発生部18から位相設定データがデコーダ19に
対して出力される。このデータはデコーダ19により解
読され、位相信号f〜iとして比較回路20における排
他的論理和ゲート21〜24の各他方の入力端子に入力
される。ここで、位相信号f〜iは、それぞれたとえば
ハイレベル「1」、「1」、ローレベル「0」、「0」
とする。一方、入力端子11から入力された入力信号a
は、分周回路13の各フリップフロップ回路14〜17
に順次入力される。これらフリップフロップ回路14〜
17からはそれぞれ互いに1パルスずつ位相がずれた信
号b〜eが出力される。これらの信号はそれぞれ比較回
路20における排他的論理和ゲート21〜24の各一方
の入力端子に入力される。比較回路20は入力した信号
b〜eと位相信号f〜iとを比較し、両者が一致した時
点で位相を決定し、これにより論理和ゲート25からは
信号jが出力される。この信号jはフリップフロップ回
路26のD端子に入力され、このフリップフロップ回路
26において位相設定データ発生部18で設定された位
相の信号kとなり、これが出力端子12からタイミング
信号として出力される。
Next, the operation of the counter circuit of this embodiment will be explained with reference to the timing chart shown in FIG. That is, first, when predetermined phase data is set, the phase setting data generator 18 outputs the phase setting data to the decoder 19. This data is decoded by the decoder 19 and input as phase signals f to i to the other input terminals of the exclusive OR gates 21 to 24 in the comparison circuit 20. Here, the phase signals f to i are, for example, high level "1", "1", low level "0", "0", respectively.
shall be. On the other hand, the input signal a input from the input terminal 11
are each flip-flop circuit 14 to 17 of frequency dividing circuit 13
are input sequentially. These flip-flop circuits 14~
17 output signals b to e whose phases are shifted by one pulse from each other. These signals are each input to one input terminal of exclusive OR gates 21 to 24 in comparison circuit 20. The comparison circuit 20 compares the input signals b to e and the phase signals f to i, and when they match, determines the phase, and the OR gate 25 outputs the signal j. This signal j is input to the D terminal of the flip-flop circuit 26, and in this flip-flop circuit 26 it becomes a signal k having the phase set by the phase setting data generating section 18, which is outputted from the output terminal 12 as a timing signal.

【0015】このように本実施例のカウンタ回路では、
出力されるタイミング信号kの位相を位相設定データ発
生部18での設定データに基づいて変化させることがで
きる。したがって、回路設計の段階では予想ができない
要因により位相がずれた場合でも、タイミング信号kの
位相を適切な値に変えることでき、回路の見直し作業が
不要になる。
As described above, in the counter circuit of this embodiment,
The phase of the output timing signal k can be changed based on the setting data from the phase setting data generating section 18. Therefore, even if the phase is shifted due to factors that cannot be predicted at the circuit design stage, the phase of the timing signal k can be changed to an appropriate value, eliminating the need to review the circuit.

【0016】なお、本発明は上記実施例に限定するもの
ではなく、その要旨を変更しない範囲で種々変更可能で
ある。たとえば、分周回路13を構成するフリップフロ
ップ回路はD型として説明したが、その他RS(リセッ
トセット)型フリップフロップ回路でもよい。
It should be noted that the present invention is not limited to the above embodiments, but can be modified in various ways without changing the gist thereof. For example, although the flip-flop circuit constituting the frequency dividing circuit 13 has been described as a D-type flip-flop circuit, it may be an RS (reset set) type flip-flop circuit.

【発明の効果】以上説明したように請求項1および2記
載のカウンタ回路によれば、入力信号を分周する分周手
段の出力と、位相設定データ発生手段が発生した位相デ
ータに基づく位相信号とを比較し、前記位相設定データ
発生手段が発生した位相データに応じた位相の信号を出
力するように構成したので、出力信号の位相を任意に変
化させることができ、したがって回路設計の段階では予
想ができない要因により位相がずれた場合でも、タイミ
ング信号の位相を適切な値に変えることでき、回路の見
直し作業が不要になる。
As explained above, according to the counter circuit according to claims 1 and 2, a phase signal is generated based on the output of the frequency dividing means for frequency dividing the input signal and the phase data generated by the phase setting data generating means. Since the phase setting data generating means outputs a signal with a phase corresponding to the generated phase data, the phase of the output signal can be changed arbitrarily. Even if the phase shifts due to unpredictable factors, the phase of the timing signal can be changed to an appropriate value, eliminating the need to review the circuit.

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

【図1】本発明の一実施例に係るカウンタ回路を表す回
路構成図である。
FIG. 1 is a circuit configuration diagram showing a counter circuit according to an embodiment of the present invention.

【図2】図1のカウンタ回路の動作を説明するためのタ
イミングチャートである。
FIG. 2 is a timing chart for explaining the operation of the counter circuit in FIG. 1;

【図3】従来のカウンタ回路を表す回路構成図である。FIG. 3 is a circuit configuration diagram showing a conventional counter circuit.

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

11  入力端子 12  出力端子 13  分周回路 14〜17  フリップフロップ回路 18  位相設定データ発生部 19  デコーダ 20  比較回路 21〜24  排他的論理和ゲート 25  論理和ゲート 26  フリップフロップ回路 11 Input terminal 12 Output terminal 13 Frequency divider circuit 14-17 Flip-flop circuit 18 Phase setting data generation section 19 Decoder 20 Comparison circuit 21-24 Exclusive OR gate 25 Logical sum gate 26 Flip-flop circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  入力信号を分周する分周手段と、位相
設定データを発生する位相設定データ発生手段と、この
位相設定データ発生手段が発生した位相データを入力と
して位相信号を出力するデコーダと、前記分周手段の出
力信号と前記デコーダの出力信号とを比較し、前記位相
設定データ発生手段が発生した位相データに応じた位相
を有する信号を出力する比較手段とを具備したことを特
徴とするカウンタ回路。
1. A frequency dividing means for dividing an input signal, a phase setting data generating means for generating phase setting data, and a decoder receiving as input the phase data generated by the phase setting data generating means and outputting a phase signal. , further comprising comparing means for comparing the output signal of the frequency dividing means and the output signal of the decoder and outputting a signal having a phase corresponding to the phase data generated by the phase setting data generating means. counter circuit.
【請求項2】  前記分周手段は複数のフリップフロッ
プ回路により構成され、前記比較手段は、それぞれ一方
の入力端子に前記複数のフリップフロップ回路の各出力
信号を入力とし、かつ他方の入力端子に前記デコーダか
ら出力された位相信号が入力される複数の排他的論理和
ゲートと、これらゲートの出力信号を入力とする論理和
ゲートとにより構成されてなる請求項1記載のカウンタ
回路。
2. The frequency dividing means includes a plurality of flip-flop circuits, and the comparing means receives each output signal of the plurality of flip-flop circuits at one input terminal, and inputs each output signal from the plurality of flip-flop circuits at the other input terminal. 2. The counter circuit according to claim 1, comprising a plurality of exclusive OR gates to which the phase signals outputted from the decoder are input, and an OR gate to which the output signals of these gates are input.
JP3055473A 1991-02-28 1991-02-28 Counter circuit Pending JPH04273715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3055473A JPH04273715A (en) 1991-02-28 1991-02-28 Counter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3055473A JPH04273715A (en) 1991-02-28 1991-02-28 Counter circuit

Publications (1)

Publication Number Publication Date
JPH04273715A true JPH04273715A (en) 1992-09-29

Family

ID=12999578

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3055473A Pending JPH04273715A (en) 1991-02-28 1991-02-28 Counter circuit

Country Status (1)

Country Link
JP (1) JPH04273715A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63160411A (en) * 1986-12-24 1988-07-04 Toshiba Corp Pulse width modulation circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63160411A (en) * 1986-12-24 1988-07-04 Toshiba Corp Pulse width modulation circuit

Similar Documents

Publication Publication Date Title
US5361290A (en) Clock generating circuit for use in single chip microcomputer
US4975931A (en) High speed programmable divider
US4354124A (en) Digital phase comparator circuit
US5040197A (en) Fractional frequency divider for providing a symmetrical output signal
US6501815B1 (en) Loadable divide-by-N with fixed duty cycle
US6459753B2 (en) Fractional N-divider, and frequency synthesizer provided with a fractional N-divider
JP4434277B2 (en) Clock generation circuit and method of using the same
JPH04273715A (en) Counter circuit
JP2002182779A (en) Modified clock signal generator
JPH1198007A (en) Frequency divider
JPH0548433A (en) Multi-stage frequency divider
JP3185768B2 (en) Frequency comparator and clock extraction circuit using the same
KR101775636B1 (en) Circuit for generation signal with frequency synthesizer
KR100188079B1 (en) Divide circuit using ring counter
JP2000307419A (en) Frequency dividing circuit
JP2009130760A (en) Frequency divider circuit and synthesizer
KR20030066791A (en) Precision phase generator
JP2689539B2 (en) Divider
JP2757090B2 (en) Divider / multiplier circuit
JPH0529924A (en) 1/9 frequency divider circuit
JPH09232945A (en) Frequency divider, ring counter and pll circuit
JPH0691425B2 (en) Frequency divider using D-type flip-flop
JPH03283029A (en) Pulse generator
JPS6388919A (en) Odd number frequency dividing circuit
KR20030039183A (en) Clock divider with integer n division factor