JPH0754894B2 - Pulse width modulation circuit - Google Patents
Pulse width modulation circuitInfo
- Publication number
- JPH0754894B2 JPH0754894B2 JP17005386A JP17005386A JPH0754894B2 JP H0754894 B2 JPH0754894 B2 JP H0754894B2 JP 17005386 A JP17005386 A JP 17005386A JP 17005386 A JP17005386 A JP 17005386A JP H0754894 B2 JPH0754894 B2 JP H0754894B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- output
- counter
- data
- outputs
- 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 - Lifetime
Links
Landscapes
- Analogue/Digital Conversion (AREA)
- Manipulation Of Pulses (AREA)
- Pulse Circuits (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明は、ディジタル値を、ディジタル値に応じた幅を
もつパルス信号に変換するパルス幅変調回路(以下、PW
M回路と略す)に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pulse width modulation circuit (hereinafter, PW) for converting a digital value into a pulse signal having a width according to the digital value.
Abbreviated as M circuit).
従来の技術 近年、ディジタル値をパルス幅に変換するPWM回路は、
各種電子回路のディジタル化により多用されている。2. Description of the Related Art In recent years, PWM circuits that convert digital values into pulse widths have
It is widely used by digitizing various electronic circuits.
以下図面を参照しながら、上述した従来のPWM回路の一
例について説明する。An example of the conventional PWM circuit described above will be described below with reference to the drawings.
第5図は従来のPWM回路の一構成例を示すブロック図で
ある。第5図において、15はクロック発生回路、16はデ
ィジタルデータを保持するためのラッチ回路、17はロー
ド機能付カウンタ回路、18はカウンタ回路の出力をデコ
ードするためのデコーダ回路、19はセットリセット可能
なフリップフロップ、20はラッチ回路にラッチタイミン
グ信号を、カウンタ回路にデータロードタイミング信号
とクロックを、フリップフロップにタイミング信号をそ
れぞれ出力するタイミング発生回路である。FIG. 5 is a block diagram showing a configuration example of a conventional PWM circuit. In FIG. 5, reference numeral 15 is a clock generation circuit, 16 is a latch circuit for holding digital data, 17 is a counter circuit with a load function, 18 is a decoder circuit for decoding the output of the counter circuit, and 19 is set / reset. A flip-flop 20 is a timing generation circuit that outputs a latch timing signal to a latch circuit, a data load timing signal and a clock to a counter circuit, and a timing signal to a flip-flop.
以上のように構成されたPWM回路の一例について、以下
その動作について説明する。The operation of the PWM circuit configured as above will be described below.
タイミング発生回路20は、クロック発生回路15の出力を
うけて、まずラッチ回路16にラッチタイミング信号を出
力する。ラッチ回路16はラッチタイミング信号をうけて
ディジタル値を保持する。次に、タイミング発生回路20
は、カウンタ回路17へロード信号を出力するとともにカ
ウント用クロックを出力する。カウンタ回路17は、ロー
ド信号をうけて、ラッチ回路16で保持されているデータ
をロードしカウンタ用クロックでカウントを開始する。
デコーダ回路18は、カウンタ回路17のカウント値が設定
値になると、フリップフロップ19へタイミングパルスを
出力する。そして、タイミング発生回路20は、クロック
発生回路15の出力をうけて、フリップフロップ19へタイ
ミング信号を出力するとともに、カウンタ回路17へ出力
しているカウント用クロックを止める。フリップフロッ
プ19は、デコーダ回路18の出力でセットされタイミング
発生回路20の出力でリセットされる。フリップフロップ
19の出力は、ラッチ回路16で保持されたディジタル値に
応じた幅をもつパルス信号となる。The timing generation circuit 20 receives the output of the clock generation circuit 15 and first outputs a latch timing signal to the latch circuit 16. The latch circuit 16 receives the latch timing signal and holds the digital value. Next, the timing generation circuit 20
Outputs a load signal to the counter circuit 17 and a count clock. The counter circuit 17 receives the load signal, loads the data held in the latch circuit 16, and starts counting with the counter clock.
The decoder circuit 18 outputs a timing pulse to the flip-flop 19 when the count value of the counter circuit 17 reaches the set value. Then, the timing generation circuit 20 receives the output of the clock generation circuit 15 and outputs a timing signal to the flip-flop 19 and stops the counting clock output to the counter circuit 17. The flip-flop 19 is set by the output of the decoder circuit 18 and reset by the output of the timing generation circuit 20. flip flop
The output of 19 becomes a pulse signal having a width according to the digital value held by the latch circuit 16.
(例えば、パルス回路技術事典、オーム社695ページ) 発明が解決しようとする問題点 しかしながら上記のような構成では、ディジタル値を保
持するための回路や、複雑なタイミング発生回路が必要
なので、PWM回路が複雑となり、また回路規模も大きく
なるという問題点を有していた。(For example, Pulse Circuit Technology Encyclopedia, page 695 by Ohmsha) Problems to be solved by the invention However, in the above configuration, a circuit for holding a digital value and a complicated timing generation circuit are required, so a PWM circuit Had a problem in that it became complicated and the circuit scale also increased.
本発明は上記問題点に鑑み、ディジタル値を保持するた
めの回路を省き、回路規模を小さくしたPWM回路を提供
するものである。In view of the above problems, the present invention provides a PWM circuit in which a circuit for holding a digital value is omitted and the circuit scale is reduced.
問題点を解決するための手段 上記問題点を解決するために本発明のPWM回路は、クロ
ック発生回路と、データロード機能付カウンタ回路と、
カウンタ回路の出力か反転出力かを選択し出力する反転
回路と、カウンタに回路ロードされるデータが有効かい
なかを出力する判別回路と、クロック発生回路の出力と
判別回路の出力をうけて、カウンタ回路にロード信号
を、反転回路に反転信号を出力するタイミング回路とか
ら構成されたものである。Means for Solving the Problems In order to solve the above problems, the PWM circuit of the present invention includes a clock generation circuit, a counter circuit with a data load function,
An inverting circuit that selects and outputs the output of the counter circuit or an inverted output, a discrimination circuit that outputs whether the data loaded into the counter is valid, and a counter that receives the output of the clock generation circuit and the output of the discrimination circuit The timing circuit outputs a load signal to the circuit and an inversion signal to the inversion circuit.
作用 本発明は上記した構成により、判別回路を設け、この出
力でカウンタ回路のロード信号入力をマスクすると同時
に、カウンタ回路の出力をうける反転回路をコントロー
ルすることにより、ロードデータの保持回路を省略でき
るとともに、回路構成も簡単なものとなる。According to the present invention, by the above-described configuration, the determination circuit is provided, the load signal input of the counter circuit is masked by this output, and at the same time, the inverting circuit receiving the output of the counter circuit is controlled, whereby the load data holding circuit can be omitted. At the same time, the circuit configuration becomes simple.
実施例 以下本発明の一実施例のPWM回路について、図面を参照
しながら説明する。Embodiment A PWM circuit according to an embodiment of the present invention will be described below with reference to the drawings.
第1図は本発明の一実施例におけるPWM回路のブロック
図を示すものである。第1図において、1はクロック発
生回路、2はデータロード機能付カウンタ回路、3はカ
ウンタ回路2の出力か反転出力かを選択して出力する反
転回路、4はカウンタ回路2のデータロード入力21に入
力されるデータの有効無効を出力する判別回路、5はク
ロック発生回路1の出力と判別回路4の出力をうけて、
カウンタ回路2にロード信号を、反転回路3に反転信号
を出力するタイミング回路である。FIG. 1 is a block diagram of a PWM circuit according to an embodiment of the present invention. In FIG. 1, 1 is a clock generation circuit, 2 is a counter circuit with a data load function, 3 is an inverting circuit that selects and outputs the output or inverted output of the counter circuit 2, and 4 is a data load input 21 of the counter circuit 2. The discriminating circuit 5 for outputting the validity / invalidity of the data inputted to the terminal receives the output of the clock generating circuit 1 and the output of the discriminating circuit 4,
The timing circuit outputs a load signal to the counter circuit 2 and an inversion signal to the inversion circuit 3.
以上のように構成されたPWM回路について、以下第1図
及び第2図,第3図を用いてその動作を説明する。The operation of the PWM circuit configured as described above will be described below with reference to FIGS. 1, 2, and 3.
第2図は第1図に示す一実施例であるブロック図の、具
体的な回路構成例を示したものである。この例では、ロ
ード入力は3ビット、2進数で「000」から「111」のデ
ィジタル値に応じた幅をもつパルスを発生するものであ
る。第3図,第4図は第2図の動作を説明するためのタ
イミング図である。FIG. 2 shows a concrete circuit configuration example of the block diagram which is one embodiment shown in FIG. In this example, the load input is a 3-bit binary pulse that generates a pulse having a width corresponding to a digital value of "000" to "111". 3 and 4 are timing charts for explaining the operation of FIG.
第2図において、クロック発生回路1の出力を第3図
(a)に示す。判別回路4は、カウンタ回路2のロード
データ入力6に入力されるデータが有効ならばH、無効
ならばLを出力する。まず、判別回路4の出力がHであ
る場合を考える。In FIG. 2, the output of the clock generation circuit 1 is shown in FIG. The discrimination circuit 4 outputs H if the data input to the load data input 6 of the counter circuit 2 is valid, and outputs L if the data is invalid. First, consider a case where the output of the discrimination circuit 4 is H.
分周回路7は、クロック発生回路1の出力を8分の1分
周して出力する。これを第3図(b)に示す。今、判別
回路4の出力はHだから、インバータ10の出力はLとな
り、AND回路9の出力は常にLとなる。従ってDフリッ
プフロップ11の出力はLとなる。一方NAND回路の出力は
第3図(c)に示すようになり、Tフリップフロップ12
をリセットすると同時に、カウンタ回路2にロードタイ
ミングを与える。カウンタ回路2は74HC161のような、
4ビットデータロード機能付バイナリー同期カウンタ13
で構成されており、クロック発生回路1の出力をうけて
動作する。今ロードデータ入力6のD0,D1,D2入力値が、
L,H,Lである時のQ0,Q1,Q2,Q3出力を第3図(d),
(e),(f),(g)に示す。反転回路3は、EXOR回
路14で構成されている。Tフリップフロップの出力はL
だから、EXOR回路14の出力は第3図(h)に示すように
なり、バイナリー同期カウンタ13のロードデータのL,
H、Lに対応して、LとHの周期比が6:2となっているこ
とがわかる。The frequency dividing circuit 7 divides the output of the clock generating circuit 1 into ⅛ and outputs it. This is shown in FIG. 3 (b). Since the output of the discrimination circuit 4 is now H, the output of the inverter 10 is L and the output of the AND circuit 9 is always L. Therefore, the output of the D flip-flop 11 becomes L. On the other hand, the output of the NAND circuit is as shown in FIG.
At the same time as resetting, the load timing is given to the counter circuit 2. The counter circuit 2 is like 74HC161,
Binary synchronous counter with 4-bit data loading function 13
And is operated by receiving the output of the clock generation circuit 1. Now the D0, D1, D2 input values of load data input 6 are
Q0, Q1, Q2, Q3 outputs when L, H, L are shown in Fig. 3 (d),
Shown in (e), (f) and (g). The inverting circuit 3 is composed of an EXOR circuit 14. The output of the T flip-flop is L
Therefore, the output of the EXOR circuit 14 becomes as shown in FIG. 3 (h), and the load data of the binary synchronous counter 13 is L,
It can be seen that the period ratio of L and H is 6: 2 corresponding to H and L.
次に、判別回路4の出力が第4図(k)に示すようにH
かLになった場合を考える。Next, the output of the discrimination circuit 4 becomes H as shown in FIG.
Consider the case of L.
クロック発生回路1の出力を第4図(a)に、分周回路
7の出力を第4図(b)に示す。今、判別回路4の出力
はLだからNAND回路8の出力はL、インバータ10の出力
はHとなり、AND回路9の出力は第4図(c)に示すよ
うになる。Dフリップフロップ11の出力を第4図(d)
に、Tフリップフロップ12の出力を第4図(e)に示
す。判別回路4の出力がLになる前のバイナリー同期カ
ウンタ13のロードデータが、D0はL、D1はH、D2はLだ
とすれば、バイナリー同期カウンタ13のQ0,Q1,Q2,Q3,Q4
は第4図(f),(g),(h),(i)に示すように
なり、EXOR回路14の出力は、第4図(j)に示すような
波形となる。この波形からわかるように、判別回路4の
出力がLになると、バイナリー同期カウンタ13が直前で
ラッチしたロードデータから作成されるPWM出力を保持
する。The output of the clock generating circuit 1 is shown in FIG. 4 (a), and the output of the frequency dividing circuit 7 is shown in FIG. 4 (b). Since the output of the discrimination circuit 4 is L now, the output of the NAND circuit 8 becomes L, the output of the inverter 10 becomes H, and the output of the AND circuit 9 becomes as shown in FIG. 4 (c). The output of the D flip-flop 11 is shown in FIG. 4 (d).
The output of the T flip-flop 12 is shown in FIG. If the load data of the binary synchronization counter 13 before the output of the discrimination circuit 4 becomes L is D0 is L, D1 is H, and D2 is L, Q0, Q1, Q2, Q3, Q4 of the binary synchronization counter 13 is assumed.
Is as shown in FIGS. 4 (f), (g), (h), and (i), and the output of the EXOR circuit 14 has a waveform as shown in FIG. 4 (j). As can be seen from this waveform, when the output of the discrimination circuit 4 becomes L, the binary synchronization counter 13 holds the PWM output created from the load data latched immediately before.
以上のように本一実施例によれば、判別回路4を設け、
この出力でバイナリー同期カウンタ13のロード信号入力
をマスクすると同時に、バイナリー同期カウンタ13の出
力信号をうけるEXOR回路14の他方の入力をコントロール
することにより、ロードデータが有効すなわち判別回路
4の出力がHのときは、バイナリー同期カウンタ13に初
期値としてロードデータがロードされ、データ値に応じ
たパルス幅をもつ信号が出力される。またロードデータ
が無効の時、すなわち判別回路4の出力がLのときは、
バイナリー同期カウンタ13は、判別回路4の出力がLに
なる直前にロードした値に応じたパルス幅の信号を出力
しつづける。As described above, according to the present embodiment, the discrimination circuit 4 is provided,
By masking the load signal input of the binary sync counter 13 with this output and controlling the other input of the EXOR circuit 14 receiving the output signal of the binary sync counter 13, the load data is valid, that is, the output of the discrimination circuit 4 is H. At this time, load data is loaded as an initial value into the binary synchronization counter 13, and a signal having a pulse width corresponding to the data value is output. When the load data is invalid, that is, when the output of the discrimination circuit 4 is L,
The binary synchronization counter 13 continues to output a signal having a pulse width corresponding to the value loaded immediately before the output of the discrimination circuit 4 becomes L.
なお、実施例でバイナリー同期カウンタ13は4ビットで
あるが、ビット数は限定しない。Although the binary synchronization counter 13 has 4 bits in the embodiment, the number of bits is not limited.
発明の効果 以上のように本発明は、判別回路の出力でカウンタ回路
のロード信号をマスクすると同時に、カウンタ回路の出
力,反転出力を選択し出力する反転回路をコントロール
することにより、ロードデータの保持回路を省き回路規
模を小さくするとともに、全体の回路構成も簡単なもの
にすることができる。As described above, according to the present invention, the load signal of the counter circuit is masked by the output of the discriminating circuit, and at the same time, the output of the counter circuit is controlled and the inverting circuit for selecting and outputting the output of the counter circuit is controlled to hold the load data It is possible to omit the circuit, reduce the circuit scale, and simplify the entire circuit configuration.
第1図は本発明の実施例におけるPWM回路のブロック
図、第2図は第1図の具体例を示した構成図、第3図,
第4図は第2図の動作を説明するためのタイミング図、
第5図は従来のPWM回路の具体的構成例を示すブロック
図である。 1……クロック発生回路、2……カウンタ回路、3……
反転回路、4……判別回路、5……タイミング回路。FIG. 1 is a block diagram of a PWM circuit in an embodiment of the present invention, FIG. 2 is a configuration diagram showing a concrete example of FIG. 1, FIG.
FIG. 4 is a timing chart for explaining the operation of FIG.
FIG. 5 is a block diagram showing a specific configuration example of a conventional PWM circuit. 1 ... Clock generation circuit, 2 ... Counter circuit, 3 ...
Inversion circuit, 4 ... Discrimination circuit, 5 ... Timing circuit.
Claims (1)
路の出力をうけて動作するデータロード機能付カウンタ
回路と、前記カウンタ回路の出力か、反転出力かを選択
し出力する反転回路と、前記カウンタ回路へ出力される
データが、有効かどうかを出力する判別回路と、前記ク
ロック発生回路の出力と前記判別回路の出力をうけて、
前記カウンタ回路にロード信号を、前記反転回路に反転
信号を出力するタイミング回路とを具備し、前記判別回
路の出力をうけて、前記カウンタへ出力されるデータの
値に応じた幅をもつパルスを、出力することを特徴とし
たパルス幅変調回路。1. A clock generation circuit, a counter circuit with a data load function that operates by receiving the output of the clock generation circuit, an inverting circuit that selects and outputs the output of the counter circuit or an inverted output, and the counter. The data output to the circuit receives a determination circuit that outputs whether the data is valid, an output of the clock generation circuit and an output of the determination circuit,
A timing circuit that outputs a load signal to the counter circuit and an inversion signal to the inversion circuit, and receives a pulse having a width according to the value of the data output to the counter in response to the output of the determination circuit. , A pulse width modulation circuit characterized by outputting.
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17005386A JPH0754894B2 (en) | 1986-07-18 | 1986-07-18 | Pulse width modulation circuit |
US07/064,121 US4795950A (en) | 1986-06-30 | 1987-06-19 | Phase controller for motor |
KR1019870006685A KR900007108B1 (en) | 1986-06-30 | 1987-06-30 | Phase controller for motor |
DE8787305780T DE3785496T2 (en) | 1986-06-30 | 1987-06-30 | PHASE CONTROLLER FOR A MOTOR. |
EP87305780A EP0251763B1 (en) | 1986-06-30 | 1987-06-30 | Phase controller for motor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17005386A JPH0754894B2 (en) | 1986-07-18 | 1986-07-18 | Pulse width modulation circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS6326114A JPS6326114A (en) | 1988-02-03 |
JPH0754894B2 true JPH0754894B2 (en) | 1995-06-07 |
Family
ID=15897748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP17005386A Expired - Lifetime JPH0754894B2 (en) | 1986-06-30 | 1986-07-18 | Pulse width modulation circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0754894B2 (en) |
-
1986
- 1986-07-18 JP JP17005386A patent/JPH0754894B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPS6326114A (en) | 1988-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4786823A (en) | Noise pulse suppressing circuit in digital system | |
JPH0754894B2 (en) | Pulse width modulation circuit | |
JPH11509658A (en) | Extended chip select reset device and method | |
JPS6010922A (en) | Binary counter | |
JPH052016B2 (en) | ||
JPS6142895B2 (en) | ||
JPH0323714Y2 (en) | ||
JP2719071B2 (en) | Timing control signal generation circuit | |
JP2547723B2 (en) | Divider circuit | |
JP2689539B2 (en) | Divider | |
JPS59156049A (en) | Signal detecting circuit | |
JP2930083B2 (en) | Parallel / serial conversion circuit | |
JP3382329B2 (en) | Odd counter circuit | |
JP2563238B2 (en) | Counter circuit | |
JPH0566049B2 (en) | ||
JPS6258572B2 (en) | ||
JP2000068837A (en) | Pwm output device by means of serial data | |
JPH0338115A (en) | Data transmission equipment | |
JPS6282820A (en) | Comparator circuit | |
JPS636932A (en) | Stuff control circuit | |
JPS639686B2 (en) | ||
JPS60164966A (en) | Information reproducing device | |
JPS6281840A (en) | Synchronizing circuit | |
JPH02241110A (en) | Pulse eliminating circuit | |
JPH04356810A (en) | Digital signal pattern generating circuit |