JPH02294113A - Pulse generation circuit - Google Patents

Pulse generation circuit

Info

Publication number
JPH02294113A
JPH02294113A JP11430589A JP11430589A JPH02294113A JP H02294113 A JPH02294113 A JP H02294113A JP 11430589 A JP11430589 A JP 11430589A JP 11430589 A JP11430589 A JP 11430589A JP H02294113 A JPH02294113 A JP H02294113A
Authority
JP
Japan
Prior art keywords
pulse
counter
duty ratio
count
level
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
JP11430589A
Other languages
Japanese (ja)
Inventor
Akira Torisawa
鳥沢 章
Noriaki Itou
伊東 典晃
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP11430589A priority Critical patent/JPH02294113A/en
Publication of JPH02294113A publication Critical patent/JPH02294113A/en
Pending legal-status Critical Current

Links

Landscapes

  • Pulse Circuits (AREA)

Abstract

PURPOSE:To reduce an error in a duty ratio and to vary the duty ratio optionally by deciding a number to be counted of a 2nd counter in response to the duty ratio from a count counted by a 1st counter. CONSTITUTION:When a 1st pulse of an input pulse train goes to a high level, the count of a clock pulse is started by a 1st counter 1 and when the level of a 2nd pulse goes to H, the count is stopped and also a new count is started. Simultaneously, the count is started by the 2nd counter 2 and an output pulse of an output circuit 5 goes to an H level. Then based on the count by the 1st counter 1, the counted value n1 of the 2nd counter 2 is decided in response to the duty ratio of a computing element 3, set to a comparator 4 and when the count of the 2nd counter and the value n1 are coincident, the output pulse of the output circuit 5 goes to a low level. Thus, the error in the duty ratio is reduced and the duty ratio is varied optionally.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はパルス発生回路に関するものである。[Detailed description of the invention] [Industrial application field] The present invention relates to a pulse generation circuit.

[従来の技術] 従来のパルス発生回路としては、光スリット円板、発光
、受光素子およびコンバレータにより構成されたエンコ
ーダが知られている。このように構成されたエンコーダ
の出力パルスのデューティ比は、通常、コンバレータの
スレッショルド電圧、すなわち、設定された基準電圧を
入力電圧が越えるか否かで、決められていた。
[Prior Art] As a conventional pulse generating circuit, an encoder is known which is constituted by an optical slit disk, a light emitting element, a light receiving element, and a converter. The duty ratio of the output pulses of the encoder configured in this manner is usually determined based on whether the input voltage exceeds the threshold voltage of the converter, that is, a set reference voltage.

[発明が解決しようとする課題] しかしながら、従来のパルス発生回路は、基準電圧との
大小でデューティ比を決めるようにしたので、次の(1
) . (2)のような問題点があった。
[Problems to be Solved by the Invention] However, in the conventional pulse generation circuit, the duty ratio is determined based on the magnitude of the reference voltage, so the following (1)
). There were problems like (2).

(1)個々の素子間のバラツキが大きい場合、所定の範
囲にバラツキを抑えようとすると、精密な調整が必要に
なり、コスト高になる。
(1) When the variations between individual elements are large, attempting to suppress the variations within a predetermined range requires precise adjustment, which increases costs.

デューティ比の誤差は通常30零程度であり、これを1
0零以下にするには多大なコストアップをもたらすこと
になる。
The error in the duty ratio is usually about 30 zero, which can be reduced to 1
Reducing the value to 0 or less will result in a significant cost increase.

(2)デューティ比は一度決めると、後から任意に変え
ることが不可能である。
(2) Once the duty ratio is determined, it is impossible to arbitrarily change it later.

本発明の目的は、上記のような問題点を解決し、デュー
ティ比の誤差を軽減する左ともに、デューティ比を任意
に変えることができるパルス発生回路を提供することに
ある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and provide a pulse generation circuit that reduces errors in the duty ratio and can arbitrarily change the duty ratio.

[課題を解決するための手段コ このような目的を達成するため、本発明は、第1入力パ
ルスが到来してから第2入力パルスが到来するまでの間
、基準パルスをカウントする第1カウント手段と、該第
1カウント手段によりカウントされたカウント数から所
定のデューティ比に応じて前記基準パルスの被カウント
数を決定する決定手段と、該決定手段により決定された
被カウント数だけ前記基準パルスをカウントする第2カ
ウント手段と、該第2カウント手段によりカウントが開
始された時、出力信号レベルを第1レベルから第2レベ
ルに変化させ、前記決定手段により決定されたカウント
数だけカウントした時、前記出力信号レベルを第2レベ
ルから第1レベルに変化させる信号出力手段とを備えた
ことを特徴とする。
[Means for Solving the Problems] To achieve such an object, the present invention provides a first count that counts reference pulses from the arrival of the first input pulse until the arrival of the second input pulse. means for determining the number of the reference pulses to be counted from the number of counts counted by the first counting means according to a predetermined duty ratio; a second counting means for counting, and when the second counting means starts counting, changes the output signal level from the first level to the second level, and counts only the number of counts determined by the determining means; , and signal output means for changing the output signal level from a second level to a first level.

[作 用] 本発明では、第1入力パルスが到来してから第2入力パ
ルスが到来するまでの間、基準パルスを第1カウント手
段によりカウントし、第1カウント手段によりカウント
されたカウント数から所定のデューティ比に応じて基準
パルスの被カウント数を決定手段により決定し、決定手
段により決定された被カウント数だけ基準パルスを第2
カウント手段によりカウントし、第2カウント手段によ
りカウントが開始された時、信号出力手段により出力信
号レベルを第1レベルから第2レベルに変化させ、決定
手段により決定されたカウント数だけカウントした時、
信号出力手段により出力信号レベルを第2レベルから第
1レベルに変化させる。
[Function] In the present invention, the reference pulse is counted by the first counting means from the arrival of the first input pulse until the arrival of the second input pulse, and the reference pulse is counted from the count number counted by the first counting means. The number of reference pulses to be counted is determined by the determining means in accordance with a predetermined duty ratio, and the number of reference pulses to be counted is determined by the determining means as the second reference pulse.
When the counting means counts, when the second counting means starts counting, when the signal output means changes the output signal level from the first level to the second level, and when the count number determined by the determining means is counted,
The signal output means changes the output signal level from the second level to the first level.

[実施例コ 以下、本発明の実施例を図面を参照して詳細に説明する
。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例を示す。FIG. 1 shows an embodiment of the invention.

1は第1カウント手段としての第1カウンタで、第1入
力パルスが到来してから第2入力パルスが到来するまで
の間、基準パルスをカウントするものである。3は決定
手段としての演算器で、第1カウンタ1によりカウント
されたカウント数から所定のデューティ比に応じて基準
パルスの被カウント数を決定するものである。2は第2
カウント手段としての第2カウンタで、演算器3により
決定された被カウント数だけ基準パルスをカウントする
ものである。4は比較器で、第2カウンタ2によるカウ
ント値と演算器3により決定された被カウント数を比較
するものである。5は信号出力手段としての出力回路で
、第2カウンタ2によりカウントが開始された時、出力
信号レベルをハイレベルにし、演算器3により決定され
たカウント数だけカウントした時、田カイ8号レベルを
ローレベルにするものである。
Reference numeral 1 designates a first counter as a first counting means, which counts reference pulses from the arrival of the first input pulse until the arrival of the second input pulse. Reference numeral 3 denotes an arithmetic unit as a determining means, which determines the number of reference pulses to be counted from the number counted by the first counter 1 in accordance with a predetermined duty ratio. 2 is the second
The second counter serves as a counting means and counts the reference pulses by the number to be counted determined by the arithmetic unit 3. A comparator 4 compares the count value of the second counter 2 with the number to be counted determined by the arithmetic unit 3. Reference numeral 5 designates an output circuit as a signal output means. When the second counter 2 starts counting, the output signal level is set to high level, and when the count number determined by the calculator 3 has been counted, the output signal level is set to Takai No. 8 level. is set to low level.

木実施例では、入力パルスのデューテイ比が0.9であ
って、パルス周期が±10%F以内で変動し、その変動
周期がパルス周期の10倍となっている。次に、パルス
列のデューティ比を「1」にする場合の動作を説明する
。
In the tree embodiment, the duty ratio of the input pulse is 0.9, the pulse period fluctuates within ±10%F, and the fluctuation period is 10 times the pulse period. Next, the operation when the duty ratio of the pulse train is set to "1" will be explained.

入力パルス列の第1のパルスがハイレベル(}I)にな
ると、第1カウンタ1によりクロックパルスのカウント
が開始され、次に、入力パルスの第2のパルスがrH,
になると、クロツクパルスのカウントが停止されるとと
もに、新たに、クロツクパルスのカウントが開始され、
同時に、第2カウンタ2によりクロックパルスのカウン
トが開始される。また、出力回路5の出力パルスがrH
,になる。
When the first pulse of the input pulse train goes to high level (}I), the first counter 1 starts counting clock pulses, and then the second pulse of the input pulse goes to rH,
When , the clock pulse count is stopped and a new clock pulse count is started.
At the same time, the second counter 2 starts counting clock pulses. Also, the output pulse of the output circuit 5 is rH
,become.

そして、第1カウンタlによるカウント値が保持され、
この保持されたカウント値に基づき、演算器3により、
デューティ比に応じて第2カウンタ2の被カウント数が
決定され、比較器4に設定される。この場合、デューテ
ィ比が「1」であるから、N−2で最終カウント値を割
算し、n+(一カウント値/2)を求める。
Then, the count value by the first counter l is held,
Based on this held count value, the calculator 3 calculates
The number to be counted by the second counter 2 is determined according to the duty ratio, and is set in the comparator 4. In this case, since the duty ratio is "1", the final count value is divided by N-2 to obtain n+(one count value/2).

ついで、第2カウンタ2のカウン1・値と01を比較器
4により比較し、カウント値と11が一致した時、出力
回路5の出力パルスをロー(L)にする。
Next, the comparator 4 compares the count 1 value of the second counter 2 with 01, and when the count value and 11 match, the output pulse of the output circuit 5 is made low (L).

その後、入力パルスの第3パルスが『11」になった時
、第1のカウンタ1によるカウントを停止する。と同時
に、新たに、クロックパルスのカウントを開始し、出力
回・路5の出力パルスをrH,にする。
Thereafter, when the third input pulse becomes "11", counting by the first counter 1 is stopped. At the same time, counting of clock pulses is newly started, and the output pulse of the output circuit/circuit 5 is set to rH.

以後、以上の動作を繰り返すと、入力パルス列より1周
期だけ遅れたパルス列が出力されることになる。
Thereafter, if the above operation is repeated, a pulse train delayed by one cycle from the input pulse train will be output.

出力バスルのデューティ比の誤差は、入力パルスの周期
の変動量の大きさと変動周期の影響を受ける。
The error in the duty ratio of the output busle is affected by the amount of variation in the cycle of the input pulse and the cycle of variation.

人力パルスの周期が一定であれば、出力パルスのデュー
ティ比の誤差は、カウント値の丸め誤差だけである。他
方、入力パルスの周期が上述したように変動する場合は
、その誤差は概略次のようになる。
If the period of the manual pulse is constant, the only error in the duty ratio of the output pulse is a rounding error in the count value. On the other hand, when the period of the input pulse fluctuates as described above, the error is approximately as follows.

バルス周朋は式(1)のように表わすことができる。Valus Shuho can be expressed as in equation (1).

T (t) = To {t+(ΔT/To) sin
 (11 t)=T0{1+(ΔT/To)  si’
n(ωo/10)t)  = (1)ここで、丁。二基
本周期 ΔT:周期の誤差量 ω0:入カバルスの基本周波数 ω:誤差周期の変動周波数 出力パルスのデューティ比の誤差は、時間的に隣り合フ
たパルス周期の差が原因となるので、誤差δは δ= 7 ( (n◆1) Tol − T (nTo
)、(11 0 = (2 ?T /To)より、 δ= To {t+ (ΔT/To) sin(ωo/
10) (n+1)To}−To{14(ΔT/To)
 sin (ωo/10) nT.}= ΔT(sin
((n+1)  yr/5)   −  sin(nπ
/5)))?2 ΔT  sin(π/10)cos(
(2n+1)yr/10}δ@■ 岬0.62ΔT となる。
T (t) = To {t+(ΔT/To) sin
(11 t)=T0{1+(ΔT/To) si'
n(ωo/10)t) = (1) Here, Ding. Two fundamental periods ΔT: Error amount of the period ω0: Fundamental frequency of the input pulse ω: Fluctuation frequency of the error period The error in the duty ratio of the output pulse is caused by the difference between temporally adjacent pulse periods, so the error δ is δ=7 ((n◆1) Tol − T (nTo
), (11 0 = (2?T /To), δ= To {t+ (ΔT/To) sin(ωo/
10) (n+1)To}-To{14(ΔT/To)
sin (ωo/10) nT. }=ΔT(sin
((n+1) yr/5) − sin(nπ
/5)))? 2 ΔT sin(π/10)cos(
(2n+1)yr/10}δ@■ Cape 0.62ΔT.

デューティ比の最大値は、周期誤差量の62%になるの
で、この入力パルス列の場合, 6.2%Fである。デ
ューテイ比が0.938より小さい場合には、本発明が
有効であるといえる。
The maximum value of the duty ratio is 62% of the periodic error amount, so in the case of this input pulse train, it is 6.2%F. When the duty ratio is smaller than 0.938, it can be said that the present invention is effective.

なお、木実施例では、説明を分かり易くするため、第1
カウンタと第2カウンタの2つのカウンタを用いる例を
説明したが、実際には、1つのカウンタで同様の動作を
させることが可能である.また、本実施例では、上記の
ように構成したので、従来例に比して回路を追加するこ
とになるが、ほとんどコストをアップさせることなく、
デューティ比の誤差をlO%iに抑えることができる。
In addition, in the tree example, in order to make the explanation easier to understand, the first
Although an example using two counters, a counter and a second counter, has been described, in reality, it is possible to perform the same operation with one counter. In addition, since this embodiment is configured as described above, a circuit is added compared to the conventional example, but there is almost no increase in cost.
The error in duty ratio can be suppressed to lO%i.

さらに、この特性は温度等の環境の影響をほとんど受け
ることがない。
Furthermore, this characteristic is hardly affected by the environment such as temperature.

特に、パルス幅に応じて印字を行なうプリンタの印字制
御に有効である。
In particular, it is effective for printing control of a printer that prints according to pulse width.

(他の実施例) 第2図は本発明の他の実施例を示す。(Other examples) FIG. 2 shows another embodiment of the invention.

入力パルス列の第1のパルスが『]1』 になると同時
に、第1カウンタ1によりクロツクパルスのカウントが
開始され、第2のパルスがrH,になると、カウントを
停止するとともに、新たに、クロツクパルスのカウント
を開始し、出力回路7の出力パルスをrH,にする。そ
して、カウント値は保持され、その値は出力するデュー
ティ比に応じて演算器3により演算される。演算された
演算値nlは第2のカウンタに入力され、クロックパル
スによってダウンカウントされる。そして、第2カウン
タ6のカウント値が「0」になフだ時、出力回路7の出
力パルスを「L」 にする。
At the same time that the first pulse of the input pulse train becomes "]1", the first counter 1 starts counting clock pulses, and when the second pulse becomes rH, it stops counting and starts counting a new clock pulse. The output pulse of the output circuit 7 is set to rH. Then, the count value is held, and the value is calculated by the calculator 3 according to the output duty ratio. The calculated value nl is input to a second counter, and is counted down by a clock pulse. Then, when the count value of the second counter 6 reaches "0", the output pulse of the output circuit 7 is set to "L".

第3の人力パルスが「H」になった時、第1カウンタ1
はカウントを停止すると同時に、新たに、カウントを開
始する。このとき、出力回路7の出カバルスをrH,に
する。
When the third human power pulse becomes "H", the first counter 1
stops counting and simultaneously starts counting anew. At this time, the output voltage of the output circuit 7 is set to rH.

その後、以上の動作を繰り返し行なうことにより、入力
パルス列より1周期だけ遅れたパルス列が出力される。
Thereafter, by repeating the above operations, a pulse train delayed by one cycle from the input pulse train is output.

本実施例では、上記のように構成したので、本実施例の
作用効果は一実施例のそれと木質的に相違しない。
Since this embodiment is configured as described above, the effects of this embodiment are not physically different from those of the first embodiment.

[発明の効果] 以上説明したように、本発明によれば、上記のように構
成したので、ほとんどコストをアップさせることなくデ
ューティ比の誤差を軽減できるとともに、デューティ比
を任意に変えることができるという効果がある。
[Effects of the Invention] As explained above, according to the present invention, with the above configuration, the error in the duty ratio can be reduced with almost no increase in cost, and the duty ratio can be changed arbitrarily. There is an effect.

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

第1図は本発明一実施例のパルス発生回路を示すブロッ
ク図、 第2図は本発明他の実施例のパルス発生回路を示すブロ
ック図である。 1・・・第1カウンタ、 2・・・第2カウンタ、 3・・・演算器、 4・・・比較器、 5・・・出力回路。
FIG. 1 is a block diagram showing a pulse generating circuit according to one embodiment of the present invention, and FIG. 2 is a block diagram showing a pulse generating circuit according to another embodiment of the present invention. DESCRIPTION OF SYMBOLS 1...First counter, 2...Second counter, 3...Arithmetic unit, 4...Comparator, 5...Output circuit.

Claims (1)

【特許請求の範囲】 1)第1入力パルスが到来してから第2入力パルスが到
来するまでの間、基準パルスをカウントする第1カウン
ト手段と、 該第1カウント手段によりカウントされたカウント数か
ら所定のデューティ比に応じて前記基準パルスの被カウ
ント数を決定する決定手段と、該決定手段により決定さ
れた被カウント数だけ前記基準パルスをカウントする第
2カウント手段と、 該第2カウント手段によりカウントが開始された時、出
力信号レベルを第1レベルから第2レベルに変化させ、
前記決定手段により決定されたカウント数だけカウント
した時、前記出力信号レベルを第2レベルから第1レベ
ルに変化させる信号出力手段と を備えたことを特徴とするパルス発生回路。
[Claims] 1) A first counting means for counting reference pulses from the arrival of the first input pulse until the arrival of the second input pulse; and the number of counts counted by the first counting means. a determining means for determining the number of the reference pulses to be counted according to a predetermined duty ratio from the determining means; a second counting means for counting the reference pulses by the number to be counted determined by the determining means; and the second counting means. When the count is started, the output signal level is changed from the first level to the second level,
A pulse generating circuit comprising signal output means for changing the output signal level from a second level to a first level when the count number determined by the determination means is counted.
JP11430589A 1989-05-09 1989-05-09 Pulse generation circuit Pending JPH02294113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11430589A JPH02294113A (en) 1989-05-09 1989-05-09 Pulse generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11430589A JPH02294113A (en) 1989-05-09 1989-05-09 Pulse generation circuit

Publications (1)

Publication Number Publication Date
JPH02294113A true JPH02294113A (en) 1990-12-05

Family

ID=14634547

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11430589A Pending JPH02294113A (en) 1989-05-09 1989-05-09 Pulse generation circuit

Country Status (1)

Country Link
JP (1) JPH02294113A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998019397A1 (en) * 1996-10-30 1998-05-07 Akira Yokomizo Digital waveform shaping circuit, frequency multiplier circuit, and external synchronizing method and circuit
WO1999057811A1 (en) * 1998-05-05 1999-11-11 Akira Yokomizo Digital waveform shaping circuit, frequency multiplying circuit, external-synchronizing circuit, and external-synchronizing method
WO2014009819A1 (en) * 2012-07-09 2014-01-16 International Business Machines Corporation Self-adjusting duty cycle tuner

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998019397A1 (en) * 1996-10-30 1998-05-07 Akira Yokomizo Digital waveform shaping circuit, frequency multiplier circuit, and external synchronizing method and circuit
EP0840449A3 (en) * 1996-10-30 1998-12-16 YOKOMIZO, Akira Digital wave shaping circuit, frequency multiplying circuit, and external synchronizing method, and external synchronizing circuit
US6097224A (en) * 1996-10-30 2000-08-01 Yokomizo; Akira Digital wave shaping circuit, frequency multiplying circuit, and external synchronizing method, and external synchronizing circuit
US6104774A (en) * 1996-10-30 2000-08-15 Yokomizo; Akira Digital wave shaping circuit, frequency multiplying circuit, and external synchronizing method, and external synchronizing circuit
US6130566A (en) * 1996-10-30 2000-10-10 Yokomizo; Akira Digital wave shaping circuit, frequency multiplying circuit, and external synchronizing method, and external synchronizing circuit
WO1999057811A1 (en) * 1998-05-05 1999-11-11 Akira Yokomizo Digital waveform shaping circuit, frequency multiplying circuit, external-synchronizing circuit, and external-synchronizing method
WO2014009819A1 (en) * 2012-07-09 2014-01-16 International Business Machines Corporation Self-adjusting duty cycle tuner
US9484895B2 (en) 2012-07-09 2016-11-01 International Business Machines Corporation Self-adjusting duty cycle tuner
US9484894B2 (en) 2012-07-09 2016-11-01 International Business Machines Corporation Self-adjusting duty cycle tuner

Similar Documents

Publication Publication Date Title
US4233591A (en) Digital-to-analog converter of the pulse width modulation type
WO2014009819A1 (en) Self-adjusting duty cycle tuner
JPS5811027B2 (en) power measurement device
JP3541509B2 (en) Waveform shaping device
JPH01119118A (en) Clock generation circuit
JPH07301685A (en) Clock circuit
JPH0318950Y2 (en)
JPH028492B2 (en)
JPS62280656A (en) Pulse generator
JPS63187913A (en) Pulse duty detecting circuit
JPH0441634Y2 (en)
SU784007A1 (en) Frequency divider with 2n-1 scaling factor
SU1034145A1 (en) Controlled pulse repetition frequency multiplier
JPS647350B2 (en)
JP3825565B2 (en) Integration type A / D conversion calibration method and integration type A / D converter
SU705360A1 (en) Digital central frequency meter
JPS6311662Y2 (en)
JPH01282927A (en) A/d converter
JPS58162127A (en) Timer device
KR0183747B1 (en) Frequency conversion method and circuit of clock pulse
SU935956A1 (en) Periodic pulse frequency multiplier
RU2010165C1 (en) Device for correcting indications of integrating flowmeter
JPH076533Y2 (en) Frequency counter
JPH02110379A (en) Motor-speed detecting apparatus
SU728492A1 (en) Device for measuring difference of pulse frequencies