JPH02126717A - Duty converting circuit - Google Patents

Duty converting circuit

Info

Publication number
JPH02126717A
JPH02126717A JP28059688A JP28059688A JPH02126717A JP H02126717 A JPH02126717 A JP H02126717A JP 28059688 A JP28059688 A JP 28059688A JP 28059688 A JP28059688 A JP 28059688A JP H02126717 A JPH02126717 A JP H02126717A
Authority
JP
Japan
Prior art keywords
circuit
bit
output
counter circuit
borrow
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
JP28059688A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Hamana
浜名 良征
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP28059688A priority Critical patent/JPH02126717A/en
Publication of JPH02126717A publication Critical patent/JPH02126717A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

PURPOSE:To freely change a frequency and to facilitate bit extension by using a selector circuit, switching two values and supplying a data value to a counter circuit. CONSTITUTION:When a synchronizing clock is inputted from an initial condition, the data of An-1 are loaded to an (n) bit down counter circuit 2, counted down from the load value, and when a borrow comes out by the (n) bit down counter circuit 2, the data of Bn to 1 are loaded and the output of an output Y is inverted. Counting-down is executed from the loaded value, the borrow comes out by the (n) bit down counter circuit 2, the data of An-1 are loaded and the output of the output Y is inverted. By repeating such a process, an arbitrary clock pulse is outputted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、クロック信号のデユティ−を自白に変更で
きるようにしたデユティ−変換回路1こ関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a duty conversion circuit 1 which is capable of changing the duty of a clock signal to an arbitrary value.

〔従来の技術〕[Conventional technology]

第4図は、従来のデユティ−変換回路の一例を示す回路
図である。
FIG. 4 is a circuit diagram showing an example of a conventional duty conversion circuit.

図においてαOはnビットアップカウンタ回路、(ロ)
はnビット比較回路である。第5図は第4図の回路の各
部波形のタイミングを示す波形図である。
In the figure, αO is an n-bit up counter circuit, (b)
is an n-bit comparison circuit. FIG. 5 is a waveform diagram showing the timing of waveforms of each part of the circuit of FIG. 4.

次に動作について説明する。デユティ−変換回路はクロ
ックをカウントするnビットアップカウンタ回路αQと
、nビットアップカウンタ回路αQのカウント値(An
−1)と、出力信号のパルスの変化点を指定するデータ
入力(Bn−1)?入力とし、上記2つの値を比較し、
比較条件が満された時、%H#を出力するnビット比改
回路α9で構成されている。
Next, the operation will be explained. The duty conversion circuit includes an n-bit up counter circuit αQ that counts clocks and a count value (An) of the n-bit up counter circuit αQ.
-1) and the data input (Bn-1) that specifies the changing point of the pulse of the output signal? As input, compare the above two values,
It consists of an n-bit ratio correction circuit α9 that outputs %H# when the comparison condition is satisfied.

次いで、第4図のタイミングチャートについて説明する
。第4図に示すポイントAでは、nビットアップカウン
タ回路αQは初期化され、カウント値はO(H)で、n
ビット比較回路αqの条件はAn−1<Bn〜1で出力
Yは′L′ となる。ポイントBでは、nビットアップ
カウンタ回路α0のカウント値は3〔H〕となり、nビ
ット比較回路αηの条件はAn〜1〉Bn〜1で出力Y
は`H´となる。ポイントCでは。
Next, the timing chart of FIG. 4 will be explained. At point A shown in FIG. 4, the n-bit up counter circuit αQ is initialized, the count value is O(H), and n
The condition of the bit comparison circuit αq is An-1<Bn~1, and the output Y becomes 'L'. At point B, the count value of the n-bit up counter circuit α0 is 3 [H], and the conditions of the n-bit comparison circuit αη are An~1>Bn~1 and the output Y
becomes 'H'. At point C.

nビットアップカウンタ回路00のカウント値はキャリ
ーアップし0CH)にもどり、nビット比較回路αυの
条件はA n −1(B n+ 1 となり、出力Yは
′L′となる。
The count value of the n-bit up counter circuit 00 carries up and returns to 0CH), the condition of the n-bit comparison circuit αυ becomes A n -1 (B n+ 1), and the output Y becomes 'L'.

〔発明が解゛決しようとする課題〕[Problem that the invention seeks to solve]

従来のデユティ−変換回路は以上のように構成されてい
るので、パルス幅を設定することができないため1周波
数を変えることができず、また。
Since the conventional duty conversion circuit is configured as described above, it is not possible to set the pulse width, and therefore it is not possible to change one frequency.

出力にスパイクが発生するなどの問題点があった。There were problems such as spikes occurring in the output.

この発明は上記のような問題点を解消するためになされ
たもので、周波数全自由に変えることができると共に、
ビット拡張が容易にできるデユティ−変換回路上寿るこ
とを目的とする。
This invention was made to solve the above problems, and it is possible to change the frequency completely freely, and
The purpose is to provide a long-life duty conversion circuit that allows easy bit expansion.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るデユティ−変換回路は、セレクタ回路を
用いることにより、2つの値を切り換えてカウンタ回路
にデータ値を与えるようにしたものである。
The duty conversion circuit according to the present invention uses a selector circuit to switch between two values and provide a data value to a counter circuit.

〔作用〕[Effect]

この発明におけるデユティ−変換回路は、カウンタ回路
のボロー又はキャリーの1つ前のカウント値を採る論理
積回路と、この出力信号とボロー又はキャリーを論理和
回路で採り、この出力信号によりセレクタ回路のデータ
値を切り換えることにより、速い動作でも1動作するよ
うにする。
The duty conversion circuit according to the present invention includes an AND circuit that takes the count value immediately before the borrow or carry of the counter circuit, and an OR circuit that takes this output signal and the borrow or carry. By switching the data value, one operation is made even if the operation is fast.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第1
図はデユティ−変換回路を示す回路図、第2図は第1図
の回路の各部波形のタイミングを示す波形図である。
An embodiment of the present invention will be described below with reference to the drawings. 1st
2 is a circuit diagram showing a duty conversion circuit, and FIG. 2 is a waveform diagram showing timings of waveforms of various parts of the circuit of FIG. 1.

図において、(1)はパルス幅を設定するデータ値を切
り換えるnビットセレクタ回路、(2)は設定さnたデ
ータ値をカウントするnビットダウンカウンタ回路(n
ビットアップカウンタ回路)、13)はボロー、又はキ
ャリーの1つ前のカウント値を示すための論理積回路、
(4)は同期クロックの反転信号を出力するインバータ
回路、(5)は論理積回路(3)の示す状態により出力
全反転させてnビットセレクタ回路([)のデータ上旬
り換える信号全出力するJ−にフリップフロップ回路、
(6)はnビットダウンカウンタ回路(2)のボロー、
又はキャリーにより出力全反転するJ−にフリップフロ
ップ回路である。
In the figure, (1) is an n-bit selector circuit that switches the data value that sets the pulse width, and (2) is an n-bit down counter circuit (n
bit up counter circuit), 13) is an AND circuit for indicating the count value immediately before borrow or carry;
(4) is an inverter circuit that outputs an inverted signal of the synchronous clock, and (5) is an inverter circuit that inverts all outputs depending on the state indicated by AND circuit (3), and outputs all signals that replace the data in the n-bit selector circuit ([). Flip-flop circuit on J-,
(6) is a borrow of the n-bit down counter circuit (2),
Alternatively, it is a J- flip-flop circuit whose output is completely inverted by a carry.

次に動作について第2図のタイミングチャートを用いて
説明する。初期状態から同期クロックを入力するとnビ
ットダウンカウンタ回路(2)にAn−1のデータがロ
ードされ、そのロード値からカウントダウンして行き、
nビットダウンカウンタ回路(2)でボローが出た時に
Bn〜1のデータがロードされ、出力Yの出力が反転す
る。また、このロード値からカウントダウンして行き、
nビットダウンカウンタ回路(2)でボローが出たとき
に、An−1のデータがロードされ、出力Yの出力が反
転する。
Next, the operation will be explained using the timing chart of FIG. When a synchronous clock is input from the initial state, the data of An-1 is loaded into the n-bit down counter circuit (2), and the countdown starts from the loaded value.
When a borrow occurs in the n-bit down counter circuit (2), data from Bn to 1 is loaded, and the output Y is inverted. Also, count down from this load value,
When a borrow occurs in the n-bit down counter circuit (2), the data of An-1 is loaded and the output Y is inverted.

これを繰り返すことにより、任意のクロックパルス全出
力する。
By repeating this, all arbitrary clock pulses are output.

なお、上記実施例では入力データ値が1〔H〕以上の場
合のデユティ−変換回路について示したが、ロード値0
〔H〕ではnビットセレクタ回路(」)の切り換えを行
えない。そこで第3図Iζ示すように工夫す゛ることに
より解消することができる。第3図はこの発明の他の実
施例によるデユティ−変換回路の回路図である。図にお
いて(1)〜(3)は第1図に示したものと同等である
。(4m) 、 (4b)  はインバータ回路、(5
m)、 (sa) (9)はDフリップフロップ。
In addition, in the above embodiment, the duty conversion circuit is shown when the input data value is 1 [H] or more, but when the load value is 0
At [H], the n-bit selector circuit ('') cannot be switched. Therefore, this problem can be solved by devising a technique as shown in FIG. 3 Iζ. FIG. 3 is a circuit diagram of a duty conversion circuit according to another embodiment of the invention. In the figure, (1) to (3) are equivalent to those shown in FIG. (4m), (4b) are inverter circuits, (5
m), (sa) (9) is a D flip-flop.

(5b)、 (6b)はJ−にフリップフロップ、 +
7)、 (8)は論理和回路である。nビットダウンカ
ウンタ回路(2)のボロー又はキャリーの出る1つ前の
カウント値金示す論理積回路(3)の出力と、nビット
カウンタ回路(2)のボロー又はキャリーを入力とする
論理和回路(8)と、論理和回路(8)の出力と同期ク
ロックの反転信号を出力するインバータ回路(4&)を
入力とするDフリップフロップ回路(5a)と、Dフリ
ツブフロツブ(5&)の出力をクロック入力としDフリ
ップフロップ(5a)の出力のタイミングにより、J−
にフリップフロップ(6b)はnビットセレクタ回路(
1)の切り換え信号全生成する。また、回路全体の初期
化を行うリセット1!!号−1i−Dフリップフロップ
回路(9) ′!i−同期クロックの反転1a号で動作
させることにより、回路全体全クロックの立ち上がりか
ら動作させるようにしたものである。
(5b), (6b) are flip-flops on J-, +
7) and (8) are OR circuits. An OR circuit whose input is the output of the AND circuit (3) indicating the count value of the n-bit down counter circuit (2) immediately before the occurrence of a borrow or carry, and the borrow or carry of the n-bit counter circuit (2). (8), a D flip-flop circuit (5a) whose input is an inverter circuit (4&) that outputs an inverted signal of the output of the OR circuit (8) and a synchronous clock, and a D flip-flop circuit (5a) whose clock input is the output of the D flip-flop (5&). According to the timing of the output of the D flip-flop (5a), J-
The flip-flop (6b) is an n-bit selector circuit (
1) All switching signals are generated. Also, reset 1 to initialize the entire circuit! ! No.-1i-D flip-flop circuit (9)'! By operating with the inverted 1a of the i-synchronous clock, the entire circuit is operated from the rising edge of all clocks.

また、この発明に係る論理積回路は、カウンタ回路にお
ける読み込みタイミングより早くセレクタ回路の切り換
えを行なうことも特徴の−・つとして挙げることができ
る。
Another feature of the AND circuit according to the present invention is that the selector circuit is switched earlier than the read timing in the counter circuit.

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

以上のように、この発明によれば、出力クロックのデユ
ティ−を変えるだけでなく、周波数も変えることができ
、また、ビット拡張が容易にできることが得られる効果
がある。
As described above, according to the present invention, not only the duty of the output clock can be changed, but also the frequency can be changed, and bit expansion can be easily performed.

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

第1図はこの発明の一実施例によるデユティ−変換回路
の回路図、第2図は第1図の各部波形のタイミングを示
す波形図、第3図はこの発明の他の実施例によるデユテ
ィ−変換回路の回路図、第4図は従来のデユティ−変換
回路の回路図、第5図は第4図の各部波形のタイミング
を示す波形図である。 図において、(【)はnビットセレクタ回路、(2)は
nビットダウンカウンタ回路(nビットアップカウンタ
回路)、+3)は論理積回路、(4m)、 (4b)は
インバータ回路、(5m)、 (6m)、(9)はDフ
リップフロップ、 (5) 、 (51))、(6)、
 (6b)はJ−にフリップフロップ回路、+7)、 
(8)は論理和回路である。 なお、図中、同一符号は同一、又は相当部分を示す。
FIG. 1 is a circuit diagram of a duty conversion circuit according to an embodiment of the present invention, FIG. 2 is a waveform diagram showing the timing of each waveform in FIG. 1, and FIG. 3 is a duty conversion circuit according to another embodiment of the invention. FIG. 4 is a circuit diagram of a conventional duty conversion circuit, and FIG. 5 is a waveform diagram showing timings of waveforms of various parts in FIG. 4. In the figure, ([) is an n-bit selector circuit, (2) is an n-bit down counter circuit (n-bit up counter circuit), +3) is an AND circuit, (4m), (4b) is an inverter circuit, (5m) , (6m), (9) are D flip-flops, (5), (51)), (6),
(6b) is a flip-flop circuit at J-, +7),
(8) is an OR circuit. In addition, in the figures, the same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] 出力信号のパルス幅の設定をすべき信号を入力し、上記
入力設定信号を切り換えて出力をするnビットセレクタ
回路と上記nビットセレクタ回路より出力された設定値
を、ボロー又はキャリーのタイミングにより読み込んで
出力信号のパルス幅をカウントして行くnビットダウン
カウンタ回路(nビットアップカウンタ回路)と、上記
nビットダウンカウンタ回路でのボロー又はキャリーが
出るタイミングの1つ前のカウント値で`H´を出力す
る論理積回路と、同期クロックの反転信号を出力するイ
ンバータ回路と、上記論理積回路とインバータ回路の出
力を入力とし、上記セレクタ回路の切り換える信号を出
力する第1のJ−Kフリップフロップ回路と、上記nビ
ットダウンカウンタ回路のボロー又はキャリーの入力に
より、出力を反転させて出力をする第2のJ−Kフリッ
プフロップ回路とを備えたことを特徴とするデユテイー
変換回路。
An n-bit selector circuit that inputs a signal to set the pulse width of an output signal, switches the input setting signal and outputs it, and reads the setting value output from the n-bit selector circuit at borrow or carry timing. An n-bit down counter circuit (n-bit up counter circuit) that counts the pulse width of the output signal with `H' at the count value one time before the borrow or carry timing in the above n-bit down counter circuit. an inverter circuit that outputs an inverted signal of the synchronous clock; and a first J-K flip-flop that receives the outputs of the AND circuit and the inverter circuit and outputs a signal for switching the selector circuit. and a second JK flip-flop circuit that inverts and outputs an output based on a borrow or carry input of the n-bit down counter circuit.
JP28059688A 1988-11-07 1988-11-07 Duty converting circuit Pending JPH02126717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28059688A JPH02126717A (en) 1988-11-07 1988-11-07 Duty converting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28059688A JPH02126717A (en) 1988-11-07 1988-11-07 Duty converting circuit

Publications (1)

Publication Number Publication Date
JPH02126717A true JPH02126717A (en) 1990-05-15

Family

ID=17627237

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28059688A Pending JPH02126717A (en) 1988-11-07 1988-11-07 Duty converting circuit

Country Status (1)

Country Link
JP (1) JPH02126717A (en)

Similar Documents

Publication Publication Date Title
KR890017866A (en) Filter circuit
JPH03127526A (en) Synchronizing device
JPH02126717A (en) Duty converting circuit
JPH1198007A (en) Frequency divider
JPS6316711A (en) Timing device
JP2666479B2 (en) Clock switching circuit and clock switching method
JPH052016B2 (en)
JPH0429248B2 (en)
JPS6253539A (en) Frame synchronizing system
JP2701717B2 (en) Pulse synchronization circuit
JP2932813B2 (en) Output latch circuit
KR970024896A (en) Vertical Sync Signal Generator of Video Signal
JP2679471B2 (en) Clock switching circuit
JPH05243975A (en) Clock frequency divider circuit
JPH11112296A (en) Double edge d-flip flop circuit
JP3382329B2 (en) Odd counter circuit
KR980006918A (en) 50% Duty Cycle Data Generator (50% Duty Cycle Data Generator)
JPS61199322A (en) Switch circuit
JPH0691425B2 (en) Frequency divider using D-type flip-flop
JPH0336812A (en) Synchronizing circuit
JPS62216419A (en) Frequency divider
JPS63206612A (en) Detecting circuit for position of resolver
JPS62295130A (en) Variable phase shifting circuit
JPS6379421A (en) Odd number frequency divider
JPH03282805A (en) Clock signal switching circuit