[go: up one dir, main page]

JP2000037079A - PWM circuit - Google Patents

PWM circuit

Info

Publication number
JP2000037079A
JP2000037079A JP10202622A JP20262298A JP2000037079A JP 2000037079 A JP2000037079 A JP 2000037079A JP 10202622 A JP10202622 A JP 10202622A JP 20262298 A JP20262298 A JP 20262298A JP 2000037079 A JP2000037079 A JP 2000037079A
Authority
JP
Japan
Prior art keywords
signal
frequency
reference signal
wave
output
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.)
Granted
Application number
JP10202622A
Other languages
Japanese (ja)
Other versions
JP3526407B2 (en
Inventor
Koichi Yoshida
幸一 吉田
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 JP20262298A priority Critical patent/JP3526407B2/en
Publication of JP2000037079A publication Critical patent/JP2000037079A/en
Application granted granted Critical
Publication of JP3526407B2 publication Critical patent/JP3526407B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Inverter Devices (AREA)

Abstract

(57)【要約】 【課題】 信号波基準信号17を基にして指令値となる
信号波16を出力させ、上記信号波基準信号17を入力
としてPLL回路15から出力されるパルスを予め設定
された分周比で分周し、その出力をアップ/ダウン・カ
ウンタ23でカウントして、信号波16と同期する搬送
波25を出力し、信号波16と搬送波25との比較によ
り、インバータのスイッチング素子のゲートパルス28
を出力するPWM回路において、分周比を変更して搬送
波25と信号波16との周波数倍率を変更する際、不正
なゲートパルスの発生を防止する。 【解決手段】 予め設定された分周比を一旦第1のレジ
スタ21で保持し、PLL回路15から出力される信号
波16位相が0度のタイミングで第2のレジスタ22に
転送して分周比として用いることにより、搬送波25の
連続性を保つ。
(57) Abstract: A signal wave 16 serving as a command value is output based on a signal wave reference signal 17, and a pulse output from a PLL circuit 15 with the signal wave reference signal 17 as an input is set in advance. The output is counted by an up / down counter 23, a carrier wave 25 synchronized with the signal wave 16 is output, and the signal wave 16 and the carrier wave 25 are compared to determine the switching element of the inverter. Gate pulse 28
In the PWM circuit that outputs the signal, when the frequency division ratio is changed to change the frequency magnification of the carrier wave 25 and the signal wave 16, generation of an incorrect gate pulse is prevented. SOLUTION: A frequency division ratio set in advance is temporarily held in a first register 21 and is transferred to a second register 22 at a timing when a phase of a signal wave 16 output from a PLL circuit 15 is 0 degree to divide the frequency. By using the ratio, the continuity of the carrier wave 25 is maintained.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、自励式インバー
タ装置等の電力変換器のスイッチング素子の制御に用い
るPWM回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a PWM circuit used for controlling a switching element of a power converter such as a self-excited inverter device.

【0002】[0002]

【従来の技術】電力変換システムの自励式インバータ装
置においては、出力電圧の制御には三角波比較PWM
(Pulse Width Modulation)方式が一般に用いられる。
三角波比較PWM方式は、三角波を搬送波、電圧指令値
を信号波とし、搬送波と信号波との大小によりスイッチ
ング素子のスイッチング時間を決定するもので、信号波
の振幅を変化させることによりインバータ装置の出力電
圧を制御することができる。搬送波と信号波が非同期の
場合、搬送波周波数と信号波周波数とが近づいてきた場
合は信号波と側帯波信号とが接近したり、ビートが発生
したりしてインバータ装置の特性が著しく低下する。そ
のため、例えば搬送波の周波数を信号波の周波数の3倍
や9倍にするなど搬送波の周波数と信号波の周波数との
倍率を一定とし、また位相的にも所定の差を維持し同期
させることによりこの問題を回避できることは知られて
いる。
2. Description of the Related Art In a self-excited inverter device of a power conversion system, an output voltage is controlled by a triangular wave comparison PWM.
(Pulse Width Modulation) method is generally used.
The triangular wave comparison PWM method uses a triangular wave as a carrier wave and a voltage command value as a signal wave, and determines the switching time of the switching element according to the magnitude of the carrier wave and the signal wave. The output of the inverter device is changed by changing the amplitude of the signal wave. The voltage can be controlled. When the carrier wave and the signal wave are asynchronous, and when the carrier wave frequency and the signal wave frequency are approaching, the signal wave and the sideband signal approach or a beat is generated, so that the characteristics of the inverter device are significantly deteriorated. Therefore, for example, by making the frequency of the carrier wave three times or nine times the frequency of the signal wave, the magnification of the frequency of the carrier wave and the frequency of the signal wave is kept constant, and the phase is maintained and synchronized by maintaining a predetermined difference. It is known that this problem can be avoided.

【0003】インバータ装置の出力周波数を変化させる
場合は信号波の周波数を変更させて実現するが、上記の
ように搬送波周波数と信号波周波数との倍率を常に一定
にすると、信号波の周波数に比例し搬送波周波数が高く
なったり低くなったりする。電力変換システムではこの
搬送波の周波数はスイッチング素子のスイッチング周波
数に相当しており、信号波の周波数の可変範囲が広い
と、スイッチング素子のスイッチング周波数がインバー
タ装置の周波数すなわち信号波の周波数に比例して高く
なったり低くなったりする。特にスイッチング素子のス
イッチング周波数が異常に高くなるとスイッチング損失
が増大することになり、スイッチング素子の破壊につな
がる恐れが出てくる。そのため信号波の周波数が変化し
てもスイッチング素子のスイッチング周波数をほぼ一定
にするためには、信号波周波数に応じて搬送波周波数と
の倍率を切り替える必要がある。
When the output frequency of the inverter device is changed, it is realized by changing the frequency of the signal wave. However, if the magnification of the carrier wave frequency and the signal wave frequency is always kept constant as described above, the output frequency is proportional to the frequency of the signal wave. And the carrier frequency goes up and down. In the power conversion system, the frequency of the carrier is equivalent to the switching frequency of the switching element.If the variable range of the frequency of the signal wave is wide, the switching frequency of the switching element is proportional to the frequency of the inverter device, that is, the frequency of the signal wave. It goes up and down. In particular, when the switching frequency of the switching element becomes abnormally high, the switching loss increases, which may lead to the destruction of the switching element. Therefore, in order to keep the switching frequency of the switching element substantially constant even when the frequency of the signal wave changes, it is necessary to switch the magnification with the carrier frequency according to the signal wave frequency.

【0004】従来の三角波比較PWM方式を用いたイン
バータ装置の一般的な構成としては、例えば、電気学会
技術報告第596号(1997年7月)に記載されてい
るが、上述したような信号波と搬送波とを同期させる同
期式インバータ装置に適用する従来のPWM回路の構成
を図16に示す。図において、1はPLL回路であっ
て、PWMの信号波2の基となる周波数および位相情報
を含んだ信号波基準信号3を入力として動作する。PL
L回路1では信号波基準信号3の周波数のてい倍の周波
数のパルスを発生させ、さらに信号波基準信号3の特定
の位相を指示する位相基準信号4をも出力する。また、
5はCPUであり、種々の制御情報の設定を行うと共
に、信号波基準信号3を入力として電圧指令となる信号
波2を出力する。
A general configuration of an inverter device using a conventional triangular wave comparison PWM method is described in, for example, Technical Report No. 596 of the Institute of Electrical Engineers of Japan (July 1997). FIG. 16 shows a configuration of a conventional PWM circuit applied to a synchronous inverter device for synchronizing a carrier and a carrier wave. In the figure, reference numeral 1 denotes a PLL circuit which operates with a signal wave reference signal 3 including frequency and phase information serving as a basis of a PWM signal wave 2 as an input. PL
The L circuit 1 generates a pulse having a frequency which is twice as high as the frequency of the signal wave reference signal 3 and also outputs a phase reference signal 4 indicating a specific phase of the signal wave reference signal 3. Also,
Reference numeral 5 denotes a CPU which sets various control information and outputs a signal wave 2 serving as a voltage command with the signal wave reference signal 3 as an input.

【0005】PLL回路1から出力されるパルスは、予
めCPU5で設定されレジスタ6で保持された分周比に
より分周器7で分周され、その出力がアップ/ダウン・
カウンタ8に入力される。このアップ/ダウン・カウン
タ8はアップ動作しているカウンタの値が上限所定値に
なるとダウン動作になり、ダウン動作しているカウンタ
の値が下限所定値になるとアップ動作に転じ、アップ/
ダウンカウントを繰り返す。さらにPLL回路1からの
位相基準信号4を受けて、そのタイミングでアップ/ダ
ウン・カウンタ8のカウンタ値は、予めCPU5で設定
され位相レジスタ9で保持された所定値に強制的にセッ
トされる。以上のアップ/ダウン・カウンタ8の動作が
インバータ装置のPWM回路における搬送波10である
三角波となる。
A pulse output from the PLL circuit 1 is frequency-divided by a frequency divider 7 according to a frequency division ratio set in advance by a CPU 5 and held by a register 6, and its output is increased / decreased.
Input to the counter 8. The up / down counter 8 performs a down operation when the value of the counter performing the up operation reaches the upper limit predetermined value, and shifts to an up operation when the value of the down operation counter reaches the predetermined lower limit value.
Repeat countdown. Further, upon receiving the phase reference signal 4 from the PLL circuit 1, the counter value of the up / down counter 8 is forcibly set to a predetermined value set by the CPU 5 in advance and held by the phase register 9 at that timing. The above operation of the up / down counter 8 becomes a triangular wave which is the carrier wave 10 in the PWM circuit of the inverter device.

【0006】CPU5から出力された信号波2は電圧指
令レジスタ11に入力され、電圧指令レジスタ11から
出力される信号波2とアップ/ダウン・カウンタ8から
出力される搬送波10とを比較器12に入力して、比較
器12は、信号波2の値と搬送波10の値とを比較しそ
の大小により1または0を出力するように動作する。こ
の出力がインバータ装置のスイッチング素子のON/O
FF制御を行うゲートパルス13となりインバータ装置
の出力を制御する。搬送波10の周波数の変更は分周器
7の分周比を変化させることにより実現でき、CPU5
からレジスタ6に保持される分周比を設定することによ
り、分周比を変更しインバータ装置の搬送波10の周波
数を任意に変化させることができる。
The signal wave 2 output from the CPU 5 is input to a voltage command register 11, and the signal wave 2 output from the voltage command register 11 and the carrier wave 10 output from the up / down counter 8 are sent to a comparator 12. Upon input, the comparator 12 operates to compare the value of the signal wave 2 with the value of the carrier wave 10 and output 1 or 0 depending on the magnitude. This output is the ON / O of the switching element of the inverter device.
It becomes a gate pulse 13 for performing FF control and controls the output of the inverter device. The frequency of the carrier 10 can be changed by changing the frequency division ratio of the frequency divider 7.
By setting the frequency division ratio held in the register 6, the frequency division ratio can be changed and the frequency of the carrier 10 of the inverter device can be arbitrarily changed.

【0007】以上の様に構成されるPWM回路におい
て、搬送波10が信号波基準信号3に、即ち信号波2に
同期する様子を図17を用いて説明する。図17(a)
は、信号波基準信号3を基にCPU5から出力された電
圧指令となる信号波2と、搬送波10となるアップ/ダ
ウン・カウンタ8の動作とを示したものであり、図17
(b)は位相基準信号4を、図17(c)は信号波2と
搬送波10とを比較して得られるゲートパルス13を示
すものである。ここではアップ/ダウン・カウンタ8の
ビット数を12ビットとし、上限所定値を4095、下
限所定値を0とする。また、PLL回路1から出力され
る位相基準信号4は信号波基準信号3が0゜の時に出力
されるものとし、さらに信号波基準信号3の4096×
2×15倍のクロックとなるパルスも発生するように設
定してあるものとする。また、例えば、CPU5は設定
値としてレジスタ6に分周比1/3を、位相レジスタ9
に2048を設定する。
The manner in which the carrier wave 10 is synchronized with the signal wave reference signal 3, that is, with the signal wave 2 in the PWM circuit configured as described above will be described with reference to FIG. FIG. 17 (a)
FIG. 17 shows the signal wave 2 serving as a voltage command output from the CPU 5 based on the signal wave reference signal 3 and the operation of the up / down counter 8 serving as the carrier 10.
17B shows the phase reference signal 4 and FIG. 17C shows the gate pulse 13 obtained by comparing the signal wave 2 and the carrier 10. Here, the number of bits of the up / down counter 8 is 12 bits, the upper limit predetermined value is 4095, and the lower limit predetermined value is 0. Further, the phase reference signal 4 output from the PLL circuit 1 is assumed to be output when the signal wave reference signal 3 is 0 °.
It is assumed that a pulse which is a 2 × 15 clock is also generated. Further, for example, the CPU 5 stores the division ratio 1/3 in the register 6 as the set value,
Is set to 2048.

【0008】PLL回路1から位相基準信号4を受信す
るとアップ/ダウン・カウンタ8のカウンタ値は強制的
に位相レジスタ9の値2048に設定され、その値から
カウント動作が継続される。PLL回路1から出力され
たパルスが分周比1/3の分周器7を経由して、アップ
/ダウン・カウンタ8には信号波基準信号3の4096
×2×5倍の周波数のパルスが入力される。そのため、
アップ/ダウン・カウンタ8は0から4095の間アッ
プ/ダウンカウントを5回繰り返した後、次にPLL回
路1から位相基準信号4を受信した時点では必然的にア
ップ/ダウン・カウンタ8の値は2048となる。これ
は、位相レジスタ9の値が強制的に設定される/されな
いに関わらず自動的にアップ/ダウン・カウンタ8の値
は2048となる。
When the phase reference signal 4 is received from the PLL circuit 1, the counter value of the up / down counter 8 is forcibly set to the value 2048 of the phase register 9, and the counting operation is continued from that value. The pulse output from the PLL circuit 1 passes through the frequency divider 7 having a frequency division ratio of 1/3, and is supplied to the up / down counter 8 by the signal wave reference signal 3 of 4096.
A pulse having a frequency of × 2 × 5 times is input. for that reason,
The up / down counter 8 repeats up / down counting five times between 0 and 4095, and when the phase reference signal 4 is received from the PLL circuit 1 next, the value of the up / down counter 8 is inevitably set to 2048. This means that the value of the up / down counter 8 automatically becomes 2048 regardless of whether the value of the phase register 9 is forcibly set or not.

【0009】以上の動作によりアップ/ダウン・カウン
タ8は、信号波基準信号3との相対的位相差を一定に維
持したまま、カウントを継続する。すなわち信号波基準
信号3の5倍の周波数で位相差は常に0゜の搬送波10
が得られる。また電圧指令となる信号波2が図17
(a)に示すように出力されれば、比較器12で信号波
2と搬送波10とを比較し、図17(c)に示すように
ゲートパルス13を得ることができる。ところで、図1
8に示すように、搬送波10を基準として、信号波2を
搬送波10に対して位相を90゜ずらした信号とするた
めには位相レジスタ9に0を設定しておく。PLL回路
1から位相基準信号4が出力された時点でアップ/ダウ
ン・カウンタ8に位相レジスタ9の値0が設定されるた
め、信号波2は搬送波10の90゜位相をずらした信号
となる。
By the above operation, the up / down counter 8 continues counting while keeping the relative phase difference with the signal wave reference signal 3 constant. That is, the carrier 10 whose frequency is five times the frequency of the signal wave reference signal 3 and whose phase difference is always 0 °.
Is obtained. A signal wave 2 serving as a voltage command is shown in FIG.
If the signal is output as shown in FIG. 17A, the signal wave 2 and the carrier wave 10 are compared by the comparator 12, and a gate pulse 13 can be obtained as shown in FIG. 17C. By the way, FIG.
As shown in FIG. 8, 0 is set in the phase register 9 in order to make the signal wave 2 a signal whose phase is shifted by 90 ° with respect to the carrier wave 10 with respect to the carrier wave 10. When the phase reference signal 4 is output from the PLL circuit 1, the value 0 of the phase register 9 is set in the up / down counter 8, so that the signal wave 2 is a signal obtained by shifting the phase of the carrier 10 by 90 °.

【0010】信号波基準信号3の周波数の上昇に伴って
搬送波10の周波数が上昇するのを防ぐためには、例え
ば、信号波基準信号3に対して周波数が5倍の搬送波1
0を出力しているのを、3倍に切り替える。これはCP
U5からレジスタ6に分周比を1/3から1/5に設定
値を変更することにより実現できる。位相レジスタ9に
は2048を設定し、レジスタ6に分周比1/5を設定
すると、PLL回路1からは信号波基準信号3の409
6×2×3倍の周波数のパルスがアップ/ダウン・カウ
ンタ8に入力され、同様にして信号波基準信号3の3倍
の周波数の搬送波10を有するPWM回路が実現でき
る。
In order to prevent the frequency of the carrier 10 from increasing with the increase in the frequency of the signal wave reference signal 3, for example, the carrier wave 1 having a frequency five times that of the signal wave reference signal 3 is used.
The output of 0 is switched three times. This is CP
This can be realized by changing the frequency division ratio from U5 to the register 6 and changing the set value from 1/3 to 1/5. When 2048 is set in the phase register 9 and the frequency division ratio is set to 1/5 in the register 6, the PLL circuit 1 outputs 409 of the signal wave reference signal 3.
A pulse having a frequency of 6 × 2 × 3 is input to the up / down counter 8, and a PWM circuit having a carrier 10 having a frequency three times that of the signal reference signal 3 can be realized in the same manner.

【0011】[0011]

【発明が解決しようとする課題】従来のPWM回路は以
上のように構成されているため、信号波基準信号3の周
波数の上昇に伴う搬送波10の周波数の上昇を防ぐため
に、信号波基準信号3に対する搬送波10の周波数倍率
を切り替える際、図19に示すように、搬送波10とは
非同期に任意の時点、例えばA時点で分周比の設定変更
をした場合、次の位相基準信号4受信時点ではアップ/
ダウン・カウンタ8の値は2048であるとは限らな
い。そこで、この時点で強制的に位相レジスタ9の値2
048にアップ/ダウン・カウンタ8が設定されると、
搬送波10が図に示すように不連続となる。その結果、
ゲートパルス13も不正なパルス14が発生することに
なり、インバータ装置のスイッチング素子のON/OF
F制御の信頼性が劣化するという問題点があった。
Since the conventional PWM circuit is configured as described above, in order to prevent the frequency of the carrier wave 10 from rising due to the rise of the frequency of the signal wave reference signal 3, the signal wave reference signal 3 As shown in FIG. 19, when the frequency magnification of the carrier 10 is changed with respect to the frequency, the setting of the frequency division ratio is changed at an arbitrary time, for example, at the time A, asynchronously with the carrier 10, and when the next phase reference signal 4 is received, up/
The value of the down counter 8 is not always 2048. Therefore, at this time, the value 2 of the phase register 9 is forcibly set.
When the up / down counter 8 is set to 048,
The carrier 10 becomes discontinuous as shown in the figure. as a result,
The gate pulse 13 also generates an incorrect pulse 14, and the ON / OF of the switching element of the inverter device is turned on
There is a problem that the reliability of the F control is deteriorated.

【0012】この発明は上記のような問題点を解消する
ためになされたものであり、搬送波と信号波との周波数
の倍率を変更する場合、搬送波の連続性が常に保たれ
て、ゲートパルスに不正なパルスを発生させることの無
い、信頼性の高いPWM回路を提供することを目的とす
る。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and when changing the magnification of the frequency of a carrier wave and a signal wave, the continuity of the carrier wave is always maintained, and the gate pulse is not changed. It is an object of the present invention to provide a highly reliable PWM circuit that does not generate an illegal pulse.

【0013】[0013]

【課題を解決するための手段】この発明に係わる請求項
1記載のPWM回路は、CPUで設定された分周器の分
周比を一旦保持する第1のレジスタと、一旦保持された
該分周比をPLL回路からの位相基準信号のタイミング
で入力して保持し、上記分周器に反映させる第2のレジ
スタとを備えたものである。
According to a first aspect of the present invention, there is provided a PWM circuit comprising: a first register for temporarily storing a frequency division ratio of a frequency divider set by a CPU; A second register is provided which inputs and holds the frequency ratio at the timing of the phase reference signal from the PLL circuit and reflects the frequency ratio on the frequency divider.

【0014】この発明に係わる請求項2記載のPWM回
路は、CPUで設定された分周器の分周比を複数個保持
可能なFIFOと、PLL回路からの位相基準信号を入
力として、上記FIFOに保持された上記分周比を上記
分周器に順次反映させるタイミングを制御するFIFO
制御回路とを備えたものである。
According to a second aspect of the present invention, there is provided a PWM circuit, comprising: a FIFO capable of holding a plurality of frequency division ratios of a frequency divider set by a CPU; and a phase reference signal from a PLL circuit as an input. Controlling the timing of sequentially reflecting the frequency division ratio held in the frequency divider on the frequency divider
And a control circuit.

【0015】この発明に係わる請求項3記載のPWM回
路は、PLL回路からの位相基準信号のタイミングで、
分周比をCPUからレジスタに入力するものである。
According to a third aspect of the present invention, in the PWM circuit, at the timing of the phase reference signal from the PLL circuit,
The division ratio is input from the CPU to the register.

【0016】この発明に係わる請求項4記載のPWM回
路は、PLL回路のカウンタ出力をCPUに入力し、該
カウンタ出力に対応する位相情報により、アップ/ダウ
ン・カウンタに所定の値を設定するタイミング、および
分周比を上記CPUからレジスタに入力するタイミング
をそれぞれ制御するものである。
According to a fourth aspect of the present invention, in the PWM circuit, a counter output of the PLL circuit is input to a CPU, and a predetermined value is set in an up / down counter based on phase information corresponding to the counter output. , And the timing of inputting the frequency division ratio from the CPU to the register.

【0017】この発明に係わる請求項5記載のPWM回
路は、PLL回路からパルスを入力して該パルスの周波
数を検出する周波数検出器と、予め分周比データが格納
され、検出された上記周波数に対応する分周比を検索し
て出力する分周比テーブルとを備え、上記PLL回路か
らの位相基準信号のタイミングで、上記分周比テーブル
から出力される上記分周比をレジスタに入力するもので
ある。
According to a fifth aspect of the present invention, there is provided a PWM circuit, comprising: a frequency detector for inputting a pulse from a PLL circuit to detect a frequency of the pulse; And a dividing ratio table for searching and outputting a dividing ratio corresponding to the above. The dividing ratio output from the dividing ratio table is input to a register at the timing of the phase reference signal from the PLL circuit. Things.

【0018】この発明に係わる請求項6記載のPWM回
路は、請求項1〜5のいずれかにおいて、分周器がレー
ト・マルチ・バイブレータである。
According to a sixth aspect of the present invention, in the PWM circuit according to any one of the first to fifth aspects, the frequency divider is a rate multivibrator.

【0019】この発明に係わる請求項7記載のPWM回
路は、外部から入力される信号波基準信号を基にした指
令値となる信号波の出力と制御情報の設定とを行うCP
Uと、上記信号波基準信号を入力として、周波数が該信
号波基準信号の周波数のてい倍となるパルスおよび該信
号波基準信号が特定の位相になったことを示す位相基準
信号を出力するPLL回路と、該PLL回路から出力さ
れるパルスをカウントし、該カウンタ値を上記PLL回
路からの上記位相基準信号のタイミングでリセットする
カウンタと、上記信号波基準信号との周波数倍率が異な
る複数種の搬送波パターンが、上記カウンタ出力と上記
搬送波パターンの種類に対応する識別情報とから成るア
ドレスに対してそれぞれ格納され、予め上記CPUで設
定された上記識別情報により所望の搬送波を出力するR
OMと、上記CPUで設定された上記識別情報を一旦保
持する第1のレジスタと、一旦保持された上記識別情報
を上記PLL回路からの上記位相基準信号のタイミング
で入力して保持し、上記ROMに反映させる第2のレジ
スタと、上記搬送波と上記信号波とを比較してその大小
に応じて、電力変換器のスイッチング素子のON/OF
F制御を行うスイッチング信号を出力する比較器と、を
有するものである。
According to a seventh aspect of the present invention, there is provided a PWM circuit for outputting a signal wave as a command value based on a signal wave reference signal inputted from the outside and setting control information.
U and a PLL that receives the signal wave reference signal as input, and outputs a pulse whose frequency is a multiple of the frequency of the signal wave reference signal and a phase reference signal indicating that the signal wave reference signal has a specific phase. A counter that counts pulses output from the PLL circuit and resets the counter value at the timing of the phase reference signal from the PLL circuit; and a plurality of types that have different frequency magnifications from the signal wave reference signal. A carrier wave pattern is stored for each address consisting of the counter output and identification information corresponding to the type of the carrier wave pattern, and a desired carrier wave is output according to the identification information set in advance by the CPU.
OM, a first register for temporarily holding the identification information set by the CPU, and the identification information once held at the timing of the phase reference signal from the PLL circuit and holding the same. And a second register for reflecting the carrier wave and the signal wave, and turning on / off the switching element of the power converter according to the magnitude of the comparison.
And a comparator that outputs a switching signal for performing F control.

【0020】この発明に係わる請求項8記載のPWM回
路は、外部から入力される信号波基準信号を基にした指
令値となる信号波の出力と制御情報の設定とを行うCP
Uと、上記信号波基準信号を入力として、周波数が該信
号波基準信号の周波数のてい倍となるパルスおよび該信
号波基準信号が特定の位相になったことを示す位相基準
信号を出力するPLL回路と、該PLL回路から出力さ
れるパルスをカウントし、該カウンタ値を上記PLL回
路からの上記位相基準信号のタイミングでリセットする
カウンタと、上記信号波基準信号との周波数倍率が異な
る複数種の搬送波パターンが、該倍率切り替えのタイミ
ングデータと共に、上記カウンタ出力と上記搬送波パタ
ーンの種類に対応する識別情報とから成るアドレスに対
してそれぞれ格納され、予め上記CPUで設定された上
記識別情報により所望の搬送波を上記タイミングデータ
と共に出力するROMと、上記CPUで設定された上記
識別情報を一旦保持する第1のレジスタと、一旦保持さ
れた上記識別情報を上記ROMからの上記タイミングデ
ータ発生のタイミングで入力して保持し、上記ROMに
反映させる第2のレジスタと、上記搬送波と上記信号波
とを比較してその大小に応じて、電力変換器のスイッチ
ング素子のON/OFF制御を行うスイッチング信号を
出力する比較器と、を有するものである。
A PWM circuit according to claim 8 of the present invention is a PWM circuit for outputting a signal wave as a command value based on a signal wave reference signal input from the outside and setting control information.
U and a PLL that receives the signal wave reference signal as input, and outputs a pulse whose frequency is a multiple of the frequency of the signal wave reference signal and a phase reference signal indicating that the signal wave reference signal has a specific phase. A counter that counts pulses output from the PLL circuit and resets the counter value at the timing of the phase reference signal from the PLL circuit; and a plurality of types that have different frequency magnifications from the signal wave reference signal. The carrier wave pattern is stored together with the magnification switching timing data at an address consisting of the counter output and the identification information corresponding to the type of the carrier wave pattern, and a desired one is obtained by the identification information set in advance by the CPU. ROM for outputting a carrier wave together with the timing data, and the identification information set by the CPU are temporarily stored. A first register, a second register for inputting and holding the identification information once held at the timing of the generation of the timing data from the ROM, and reflecting the information on the ROM; And a comparator that outputs a switching signal for performing ON / OFF control of the switching element of the power converter according to the magnitude of the comparison.

【0021】この発明に係わる請求項9記載のPWM回
路は、外部から回路に入力される信号波基準信号のてい
倍の周波数で上記回路の出力となるパルスを発生する電
圧制御発振器と、該パルスをカウントするカウンタと、
該カウンタの出力信号と上記信号波基準信号との位相を
比較し、位相差に応じた電圧を出力する位相比較器と、
該位相比較器の出力を平滑し、その出力信号を上記電圧
制御発振器に入力するループフィルタとを有するPLL
回路と、上記信号波基準信号を基にした指令値となる信
号波の出力と制御情報の設定とを行うCPUと、上記信
号波基準信号との周波数倍率が異なる複数種の搬送波パ
ターンが、上記カウンタ出力と上記搬送波パターンの種
類に対応する識別情報とから成るアドレスに対してそれ
ぞれ格納され、予め上記CPUで設定された上記識別情
報により所望の搬送波を出力するROMと、上記CPU
で設定された上記識別情報を一旦保持する第1のレジス
タと、一旦保持された上記識別情報を、上記PLL回路
の上記カウンタからの位相情報によるタイミング制御で
入力して保持し、上記ROMに反映させる第2のレジス
タと、上記搬送波と上記信号波とを比較してその大小に
応じて、電力変換器のスイッチング素子のON/OFF
制御を行うスイッチング信号を出力する比較器と、を有
するものである。
According to a ninth aspect of the present invention, there is provided a PWM circuit which generates a pulse which becomes an output of the circuit at a frequency which is twice as high as that of a signal wave reference signal inputted from the outside to the circuit, and A counter that counts
A phase comparator that compares the phase of the output signal of the counter and the signal wave reference signal, and outputs a voltage corresponding to the phase difference;
And a loop filter for smoothing the output of the phase comparator and inputting the output signal to the voltage controlled oscillator.
Circuit, a CPU for outputting a signal wave serving as a command value based on the signal wave reference signal and setting control information, and a plurality of types of carrier wave patterns having different frequency magnifications from the signal wave reference signal, A ROM that stores a counter output and an address including identification information corresponding to the type of the carrier wave pattern, and that outputs a desired carrier according to the identification information set in advance by the CPU;
And a first register for temporarily storing the identification information set in step (1), and the once-held identification information are input and held by timing control based on phase information from the counter of the PLL circuit, and are reflected in the ROM. A second register for comparing the carrier wave and the signal wave, and turning on / off a switching element of the power converter according to the magnitude of the comparison.
And a comparator that outputs a switching signal for performing control.

【0022】この発明に係わる請求項10記載のPWM
回路は、外部から回路に入力される信号波基準信号のて
い倍の周波数で上記回路の出力となるパルスを発生する
電圧制御発振器と、該パルスをカウントするカウンタ
と、該カウンタ出力を予め設定され保持された分周比で
分周する分周器と、該分周器の出力信号と上記信号波基
準信号との位相を比較し、位相差に応じた電圧を出力す
る位相比較器と、該位相比較器の出力を平滑し、その出
力信号を上記電圧制御発振器に入力するループフィルタ
とを有するPLL回路と、上記信号波基準信号を基にし
た指令値となる信号波の出力と制御情報の設定とを行う
CPUと、搬送波の基本パターンが格納され、上記PL
L回路の上記カウンタ出力を入力として上記基本パター
ンを所定の回数でカウントして所望の搬送波を出力する
ROMと、上記搬送波と上記信号波とを比較してその大
小に応じて、電力変換器のスイッチング素子のON/O
FF制御を行うスイッチング信号を出力する比較器と、
を有するものである。
The PWM according to claim 10 according to the present invention.
The circuit includes a voltage-controlled oscillator that generates a pulse to be output from the circuit at a frequency that is twice as high as a signal wave reference signal input to the circuit from the outside, a counter that counts the pulses, and a counter output that is set in advance. A frequency divider that divides the frequency by the held frequency division ratio, a phase comparator that compares a phase of an output signal of the frequency divider with the signal wave reference signal, and outputs a voltage corresponding to a phase difference; A PLL circuit having a loop filter for smoothing the output of the phase comparator and inputting the output signal to the voltage-controlled oscillator; and outputting a signal wave serving as a command value based on the signal wave reference signal and controlling the control information. The CPU that performs the setting and the basic pattern of the carrier wave are stored.
A ROM that counts the basic pattern at a predetermined number of times with the counter output of the L circuit as an input and outputs a desired carrier, and compares the carrier with the signal to compare the magnitude of the signal with the signal. ON / O of switching element
A comparator that outputs a switching signal for performing FF control;
It has.

【0023】[0023]

【発明の実施の形態】実施の形態1.以下、この発明の
実施の形態1を図について説明する。図1は、この発明
の実施の形態1によるPWM回路の構成を示すものであ
る。図において、15はPLL回路であって、PWMの
信号波16の基となる周波数および位相情報を含んだ信
号波基準信号17を入力として動作する。PLL回路1
5では信号波基準信号17の周波数のてい倍の周波数の
パルスを発生させ、さらに信号波基準信号17の特定の
位相を指示する位相基準信号18をも出力する。また、
19はCPUであり、種々の制御情報の設定を行うと共
に、信号波基準信号17を入力として電圧指令となる信
号波16を出力する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 shows a configuration of a PWM circuit according to Embodiment 1 of the present invention. In the figure, reference numeral 15 denotes a PLL circuit, which operates with a signal wave reference signal 17 including frequency and phase information serving as a basis of a PWM signal wave 16 as an input. PLL circuit 1
In step 5, a pulse having a frequency which is twice the frequency of the signal wave reference signal 17 is generated, and a phase reference signal 18 indicating a specific phase of the signal wave reference signal 17 is also output. Also,
Reference numeral 19 denotes a CPU which sets various control information and outputs a signal wave 16 serving as a voltage command with the signal wave reference signal 17 as an input.

【0024】PLL回路15から出力されるパルスは、
予めCPU19で設定された分周比により分周器20で
分周される。この分周比はCPU19で設定され、一旦
第1のレジスタ21で保持された後、PLL回路15か
らの位相基準信号18のタイミングで第2のレジスタ2
2に転送され、分周器20の分周比として反映される。
分周器20で分周されたパルスは、アップ/ダウン・カ
ウンタ23に入力される。このアップ/ダウン・カウン
タ23はアップ動作しているカウンタの値が上限所定値
になるとダウン動作になり、ダウン動作しているカウン
タの値が下限所定値になるとアップ動作に転じ、アップ
/ダウンカウントを繰り返す。さらにPLL回路15か
らの位相基準信号18を受けて、そのタイミングでアッ
プ/ダウン・カウンタ23のカウンタ値は、予めCPU
19で設定され位相レジスタ24で保持された所定値に
強制的にセットされる。以上のアップ/ダウン・カウン
タ23の動作がインバータ装置のPWM回路における搬
送波25である三角波となる。
The pulse output from the PLL circuit 15 is
The frequency is divided by the frequency divider 20 according to the frequency division ratio set in advance by the CPU 19. This frequency division ratio is set by the CPU 19 and once held in the first register 21, and then the second register 2 is synchronized with the phase reference signal 18 from the PLL circuit 15.
2 and is reflected as the frequency division ratio of the frequency divider 20.
The pulse divided by the frequency divider 20 is input to the up / down counter 23. The up / down counter 23 performs a down operation when the value of the counter operating up reaches a predetermined upper limit value, and starts an up operation when the value of the counter operating down reaches a predetermined lower limit value. repeat. Further, upon receiving the phase reference signal 18 from the PLL circuit 15, the counter value of the up / down counter 23 is
It is forcibly set to a predetermined value set at 19 and held at the phase register 24. The operation of the up / down counter 23 becomes a triangular wave which is the carrier wave 25 in the PWM circuit of the inverter device.

【0025】CPU19から出力された信号波16は電
圧指令レジスタ26に入力され、電圧指令レジスタ26
から出力される信号波16とアップ/ダウン・カウンタ
23から出力される搬送波25とを比較器27に入力し
て、比較器27は、信号波16の値と搬送波25の値と
を比較し、信号波16の方が搬送波25より大きい場合
は1を出力し、小さい場合は0を出力するように動作す
る。この出力がインバータ装置のスイッチング素子のO
N/OFF制御を行うスイッチング信号としてのゲート
パルス28となりインバータ装置の出力を制御する。
The signal wave 16 output from the CPU 19 is input to a voltage command register 26, and the voltage command register 26
Is input to the comparator 27, and the comparator 27 compares the value of the signal wave 16 with the value of the carrier wave 25, When the signal wave 16 is larger than the carrier wave 25, it outputs 1 and when it is smaller, it outputs 0. This output is the output of the switching element of the inverter device.
It becomes a gate pulse 28 as a switching signal for performing N / OFF control, and controls the output of the inverter device.

【0026】搬送波25の周波数の変更は分周器20の
分周比を変化させることにより実現でき、この分周比は
CPU19により設定され、一旦第1のレジスタ21に
保持されるが、その値が実際に分周比として分周器20
に反映されるのは位相基準信号18を受けて第2のレジ
スタ22に転送された時点である。この分周比をCPU
19で変更することによりインバータの搬送波25の周
波数を任意に変化させることができる。また、分周比の
変更の本来の目的は、信号波基準信号17の周波数の上
昇に伴う搬送波25の周波数の上昇を防ぐ、即ち、信号
波基準信号17の周波数に関わりなく搬送波25を常に
一定範囲内の周波数にすることであるが、上記方法と同
様にして所定の分周比に変更することにより、達成でき
る。
The frequency of the carrier wave 25 can be changed by changing the frequency division ratio of the frequency divider 20. The frequency division ratio is set by the CPU 19 and is temporarily stored in the first register 21. Is actually used as a frequency dividing ratio.
Is reflected when the phase reference signal 18 is received and transferred to the second register 22. This division ratio is
By changing the frequency at 19, the frequency of the carrier 25 of the inverter can be arbitrarily changed. The original purpose of the change of the frequency division ratio is to prevent the frequency of the carrier wave 25 from increasing due to the increase in the frequency of the signal wave reference signal 17, that is, to keep the carrier wave 25 constant regardless of the frequency of the signal wave reference signal 17. The frequency is set within the range, but can be achieved by changing to a predetermined frequency division ratio in the same manner as the above method.

【0027】以上の様に構成されるPWM回路におい
て、搬送波25が信号波基準信号17に、即ち信号波1
6に同期する様子を図2を用いて説明する。図2(a)
は、信号波基準信号17を基にCPU19から出力され
た電圧指令となる信号波16と、搬送波25となるアッ
プ/ダウン・カウンタ23の動作とを示したものであ
り、図2(b)は位相基準信号18を、図2(c)は信
号波16と搬送波25とを比較して得られるゲートパル
ス28を示すものである。ここではアップ/ダウン・カ
ウンタ23のビット数を12ビットとし、上限所定値を
4095、下限所定値を0とする。また、PLL回路1
5から出力される位相基準信号18は信号波基準信号1
7が0゜の時に出力されるものとし、さらに信号波基準
信号17の4096×2×15倍のクロックとなるパル
スも発生するように設定してあるものとする。また、例
えば、CPU19は位相レジスタ24に2048を設定
し、さらに分周比1/3を設定し、この分周比は第2の
レジスタ22に保持されて分周器20では分周比1/3
で動作しているとする。
In the PWM circuit configured as described above, the carrier wave 25 is used as the signal wave reference signal 17, that is, the signal wave 1
6 will be described with reference to FIG. FIG. 2 (a)
FIG. 2B shows the signal wave 16 serving as a voltage command output from the CPU 19 based on the signal wave reference signal 17 and the operation of the up / down counter 23 serving as the carrier wave 25. FIG. FIG. 2C shows a gate pulse 28 obtained by comparing the signal wave 16 and the carrier wave 25 with the phase reference signal 18. Here, the number of bits of the up / down counter 23 is 12 bits, the upper limit predetermined value is 4095, and the lower limit predetermined value is 0. PLL circuit 1
5 is the signal reference signal 1
It is assumed that the signal is output when 7 is 0 °, and that a pulse which is 4096 × 2 × 15 times the clock of the signal wave reference signal 17 is also generated. Further, for example, the CPU 19 sets 2048 in the phase register 24 and further sets a frequency division ratio of 1/3, and this frequency division ratio is held in the second register 22 and the frequency divider 20 generates the frequency division ratio of 1 / 3
It works on

【0028】PLL回路15から位相基準信号18を受
信するとアップ/ダウン・カウンタ23のカウンタ値は
強制的に位相レジスタ24の値2048に設定され、そ
の値からカウント動作が継続される。PLL回路15か
ら出力されたパルスが分周比1/3の分周器20を経由
して、アップ/ダウン・カウンタ23には信号波基準信
号17の4096×2×5倍の周波数のパルスが入力さ
れる。そのため、アップ/ダウン・カウンタ23は0か
ら4095の間アップ/ダウンカウントを5回繰り返し
た後、次にPLL回路15から位相基準信号18を受信
した時点では必然的にアップ/ダウン・カウンタ23の
値は2048となる。これは、位相レジスタ24の値が
強制的に設定される/されないに関わらず自動的にアッ
プ/ダウン・カウンタ23の値は2048となる。
When the phase reference signal 18 is received from the PLL circuit 15, the counter value of the up / down counter 23 is forcibly set to the value 2048 of the phase register 24, and the counting operation is continued from that value. A pulse output from the PLL circuit 15 passes through a frequency divider 20 having a frequency division ratio of 1/3, and a pulse having a frequency of 4096 × 2 × 5 times the signal wave reference signal 17 is supplied to an up / down counter 23. Is entered. Therefore, the up / down counter 23 repeats up / down counting five times between 0 and 4095, and when the phase reference signal 18 is received next from the PLL circuit 15, the up / down counter 23 necessarily starts counting up. The value will be 2048. This means that the value of the up / down counter 23 is automatically 2048 regardless of whether the value of the phase register 24 is forcibly set or not.

【0029】以上の動作によりアップ/ダウン・カウン
タ23は、信号波基準信号17との相対的位相差を一定
に維持したまま、カウントを継続する。すなわち信号波
基準信号17の5倍の周波数で位相差は常に0゜の搬送
波25が得られる。また電圧指令となる信号波16が図
2(a)に示すように出力されれば、比較器27で信号
波16と搬送波25とを比較し、図2(c)に示すよう
にゲートパルス28を得ることができる。
With the above operation, the up / down counter 23 continues counting while keeping the relative phase difference with the signal wave reference signal 17 constant. That is, a carrier wave 25 having a frequency five times that of the signal wave reference signal 17 and a phase difference of 0 ° is always obtained. When the signal wave 16 serving as a voltage command is output as shown in FIG. 2A, the comparator 27 compares the signal wave 16 with the carrier wave 25, and as shown in FIG. Can be obtained.

【0030】分周比を切り替える場合、例えば図2のA
時点でCPU19が分周比を1/3から1/5に変更す
る。しかし、分周比は一旦第1のレジスタ21に保持さ
れ、直ちには分周器20に用いる新しい分周比とはなら
ず、次の位相基準信号18受信時点であるB時点で、第
1のレジスタ21の値が第2のレジスタ22に転送さ
れ、はじめて分周器20に用いる分周比が1/5とな
る。つまり、CPU19により分周比の設定を変更した
後、次にPLL回路15から位相基準信号18を受信す
るまでは、変更前の分周比で分周器20は動作している
ため、位相基準信号18により位相レジスタ24の値を
アップ/ダウン・カウンタ23に強制的に設定する時点
ではアップ/ダウン・カウンタ23の値は必然的に20
48である。この時点で分周器20に用いる分周比が新
しくなるため、アップ/ダウン・カウンタ23は204
8から新しい分周比で分周されたパルスでカウントを継
続する。この様に、アップ/ダウン・カウンタ23の動
作により得られる搬送波25は連続したものとなるた
め、ゲートパルス28においても不正パルスは発生しな
い。
When the frequency division ratio is switched, for example, A in FIG.
At this point, the CPU 19 changes the frequency division ratio from 1/3 to 1/5. However, the frequency division ratio is temporarily held in the first register 21 and does not immediately become a new frequency division ratio used for the frequency divider 20. At the time B when the next phase reference signal 18 is received, the first frequency division ratio is set. The value of the register 21 is transferred to the second register 22, and the frequency division ratio used for the frequency divider 20 becomes 1 / for the first time. That is, after the setting of the frequency division ratio is changed by the CPU 19, the frequency divider 20 operates at the frequency division ratio before the change until the next time the phase reference signal 18 is received from the PLL circuit 15; When the value of the phase register 24 is forcibly set in the up / down counter 23 by the signal 18, the value of the up / down counter 23 is necessarily 20.
48. At this time, since the frequency division ratio used for the frequency divider 20 becomes new, the up / down counter 23
Counting is continued with a pulse that has been frequency-divided at a new frequency division ratio from 8. As described above, since the carrier 25 obtained by the operation of the up / down counter 23 is continuous, no illegal pulse is generated even in the gate pulse 28.

【0031】実施の形態2.上記実施の形態1では、分
周器20は分周比1/n(n:整数)を用いるものであ
ったが、図3に示すように、分周器としてレート・マル
チ・バイブレータ29を用いる。レート・マルチ・バイ
ブレータ29は入力されたパルスの周波数をm/n
(m,n:整数)にすることができる。4ビットのレー
ト・マルチ・バイブレータ29の場合はm/16とな
り、信号波基準信号17の3倍、5倍および7倍の周波
数の搬送波25をそれぞれ発生させる場合は、CPU1
9によりmとして3、5および7を設定すれば実現でき
る。
Embodiment 2 In the first embodiment, the frequency divider 20 uses the frequency division ratio 1 / n (n: integer). However, as shown in FIG. 3, a rate multivibrator 29 is used as the frequency divider. . The rate multivibrator 29 changes the frequency of the input pulse to m / n.
(M, n: integer). In the case of the 4-bit rate multivibrator 29, the frequency is m / 16, and when the carrier wave 25 having a frequency three times, five times and seven times the frequency of the signal wave reference signal 17 is generated, the CPU 1
This can be realized by setting 3, 5 and 7 as m according to 9.

【0032】上記実施の形態1で用いたような、通常の
分周比1/nの分周器20では、例えば分周比の切り替
えによって、信号波基準信号17の3倍、5倍および7
倍の周波数の搬送波25をそれぞれ発生させる場合、P
LL回路15からは搬送波25を発生するのに必要とす
る倍率(3,5,7)の最小公倍数以上の周波数のパル
スを発生させなければならない。3、5、7の最小公倍
数は105であるため、12ビットのアップ/ダウン・
カウンタ23の場合、搬送波25周波数の4096×2
×105倍の周波数のパルスをPLL回路15から発生
させる必要がある。信号波基準信号17の周波数が60
Hzの場合はPLL回路15からは50MHzものパル
スを発生させる必要がある。またこの時、搬送波25を
信号波基準信号17の3倍、5倍および7倍の周波数と
する場合はそれぞれ分周比は1/35、1/21および
1/15と設定する。
In the frequency divider 20 having a normal frequency division ratio of 1 / n as used in the first embodiment, for example, by switching the frequency division ratio, the signal wave reference signal 17 is tripled, five times and seven times.
In the case of generating the carrier wave 25 of double frequency, respectively, P
The LL circuit 15 must generate a pulse having a frequency higher than the least common multiple of the magnification (3, 5, 7) required to generate the carrier wave 25. Since the least common multiple of 3, 5, and 7 is 105, a 12-bit up / down
In the case of the counter 23, 4096 × 2 of 25 frequencies of the carrier wave
It is necessary to generate a pulse having a frequency of × 105 from the PLL circuit 15. The frequency of the signal wave reference signal 17 is 60
In the case of Hz, the PLL circuit 15 needs to generate a pulse of as much as 50 MHz. At this time, when the carrier wave 25 has a frequency three times, five times and seven times the frequency of the signal wave reference signal 17, the frequency division ratios are set to 1/35, 1/21 and 1/15, respectively.

【0033】これに対しこの実施の形態では、分周器に
レート・マルチ・バイブレータ29を用いたため、例え
ば4ビットのレート・マルチ・バイブレータ29の場合
は、入力された周波数をm/16にするため、PLL回
路15から出力は4096×2×16倍の周波数のパル
スを出力するだけでよい。信号波基準信号17が60H
zの場合はPLL回路15からの出力パルスの周波数は
7.7MHzとなる。このように分周器にレート・マル
チ・バイブレータ29を用いることにより、上記実施の
形態1と同様にゲートパルス28の不正パルスの発生防
止効果と、さらに回路内の信号の周波数を低く抑えるこ
とができるため、ノイズの影響によるEMC問題の発生
が抑制でき、プリント配線板の設計が容易となる等の効
果がある。
On the other hand, in this embodiment, since the rate multivibrator 29 is used as the frequency divider, for example, in the case of the 4-bit rate multivibrator 29, the input frequency is set to m / 16. Therefore, the output from the PLL circuit 15 need only output a pulse having a frequency of 4096 × 2 × 16 times. Signal wave reference signal 17 is 60H
In the case of z, the frequency of the output pulse from the PLL circuit 15 is 7.7 MHz. By using the rate multivibrator 29 as the frequency divider in this manner, the effect of preventing the generation of the illegal pulse of the gate pulse 28 and the frequency of the signal in the circuit can be suppressed similarly to the first embodiment. Therefore, it is possible to suppress the occurrence of an EMC problem due to the influence of noise, and it is possible to easily design a printed wiring board.

【0034】実施の形態3.次に、この発明の実施の形
態3によるPWM回路について、図4に基づいて説明す
る。上記実施の形態1では、分周器20の分周比をCP
U19で設定し、一旦第1のレジスタ20で保持した
後、第2のレジスタ22に転送したが、分周比の変更タ
イミングおよび切り替え推移があらかじめ判明している
場合、この実施の形態では、第1および第2のレジスタ
21、22を用いず、FIFO(First In First Out)
30を用い、分周器20の分周比を、その切り替え推移
に応じて予めCPU19で設定し、全て格納しておく。
また、FIFO制御回路31を備えて分周比の変更タイ
ミングを発生させることにより、分周比が予め設定され
た順序で自動的にFIFO30から出力されて変更され
る。FIFO制御回路31は、PLL回路15から出力
される位相基準信号18を入力として変更タイミングを
発生させるようにすると、分周比の変更は位相基準信号
18発生時点に実施され、上記実施の形態1と同様に搬
送波25は連続したものとなるため、ゲートパルス28
の不正パルスの発生が防止できる。また、CPU19は
装置起動時に初期設定するのみで、以降は自動的に分周
比が変更されるPWM回路が実現でき、CPU19の負
荷が軽くなる。
Embodiment 3 Next, a PWM circuit according to a third embodiment of the present invention will be described with reference to FIG. In the first embodiment, the frequency division ratio of frequency divider 20 is set to CP
In the present embodiment, when the setting is made in U19, the data is temporarily stored in the first register 20, and then transferred to the second register 22, the change timing of the frequency division ratio and the transition of the switching are known in advance. FIFO (First In First Out) without using the first and second registers 21 and 22
The frequency division ratio of the frequency divider 20 is set in advance by the CPU 19 in accordance with the switching transition and stored in advance.
Further, by providing the FIFO control circuit 31 to generate the change timing of the frequency division ratio, the frequency division ratio is automatically output from the FIFO 30 and changed in a preset order. When the FIFO control circuit 31 receives the phase reference signal 18 output from the PLL circuit 15 as an input and generates the change timing, the division ratio is changed when the phase reference signal 18 is generated. Since the carrier 25 is continuous as in the case of
Can prevent the generation of illegal pulses. Further, the CPU 19 only performs initial setting at the time of starting the apparatus, and thereafter, a PWM circuit in which the frequency division ratio is automatically changed can be realized, and the load on the CPU 19 is reduced.

【0035】実施の形態4.次に、この発明の実施の形
態4によるPWM回路について、図5に基づいて説明す
る。図に示すように、PLL回路15から出力される位
相基準信号18をCPU19に入力させるようにしてお
く。分周器20は、予めCPU19で設定されレジスタ
32で保持された分周比を用いて、PLL回路15から
出力されるパルスを分周する。搬送波25周波数の信号
波基準信号17の周波数に対する倍率を変更させる必要
が発生した場合には、CPU19は、PLL回路15か
ら発生する位相基準信号18を割り込み信号として受信
し、そのタイミングで分周比をレジスタ32に入力す
る。この実施の形態では、CPU19の割り込み処理時
間が搬送波25の動作に比べて十分に短い場合、即ち、
PLL回路15からの位相基準信号18を割り込み信号
として受信した後、直ちに分周比をレジスタ32に入力
してほぼ位相基準信号18発生時点から分周器20で用
いる状態にできる場合に効果が得られ、上記実施の形態
1と同様に搬送波25は連続したものとなり、ゲートパ
ルス28の不正パルスの発生が防止できる。また、実施
の形態1のように分周比設定のためのレジスタを2個持
つ必要が無く、1個のレジスタ32で済むため、回路構
成が簡略化できる。
Embodiment 4 FIG. Next, a PWM circuit according to a fourth embodiment of the present invention will be described with reference to FIG. As shown in the figure, a phase reference signal 18 output from the PLL circuit 15 is input to a CPU 19. The frequency divider 20 divides the frequency of the pulse output from the PLL circuit 15 using the frequency division ratio set in advance by the CPU 19 and held by the register 32. When it is necessary to change the magnification of the carrier wave reference signal 17 with respect to the frequency of the carrier wave 25 frequency, the CPU 19 receives the phase reference signal 18 generated from the PLL circuit 15 as an interrupt signal, Is input to the register 32. In this embodiment, when the interrupt processing time of the CPU 19 is sufficiently shorter than the operation of the carrier 25,
After receiving the phase reference signal 18 from the PLL circuit 15 as an interrupt signal, the frequency division ratio is immediately input to the register 32, and the effect can be obtained when the phase reference signal 18 can be used in the frequency divider 20 almost at the time of generation. Thus, the carrier wave 25 becomes continuous as in the first embodiment, and the occurrence of an illegal pulse of the gate pulse 28 can be prevented. Further, unlike the first embodiment, there is no need to have two registers for setting the frequency division ratio, and only one register 32 is required, so that the circuit configuration can be simplified.

【0036】実施の形態5.次に、この発明の実施の形
態5によるPWM回路について、図6に基づいて説明す
る。一般にPLL回路15は、外部からPLL回路15
に入力される信号波基準信号17のてい倍の周波数のパ
ルスを発生する電圧制御発振器33と、その発振器33
から出力されるパルスをカウントするカウンタ34と、
このカウンタ34から出力される信号と上記信号波基準
信号17との位相を比較し、位相差に応じた電圧を出力
する位相比較器35と、この位相比較器35の出力を平
滑化して、その出力信号を上記電圧制御発振器33に入
力するループフィルタ36とで構成される。
Embodiment 5 Next, a PWM circuit according to a fifth embodiment of the present invention will be described with reference to FIG. In general, the PLL circuit 15 is
A voltage-controlled oscillator 33 for generating a pulse having a frequency twice as high as the signal wave reference signal 17 input to the
A counter 34 for counting pulses output from
The signal output from the counter 34 and the signal wave reference signal 17 are compared in phase with each other, and a phase comparator 35 that outputs a voltage corresponding to the phase difference, and the output of the phase comparator 35 is smoothed. A loop filter 36 for inputting an output signal to the voltage controlled oscillator 33 is provided.

【0037】ところで、搬送波25の信号波基準信号1
7に対する周波数倍率を変更させる場合、変更前と変更
後との搬送波25を信号波基準信号17の位相を0゜で
アップ/ダウン・カウンタ23の値を一致させて比較す
ると、アップ/ダウン・カウンタ23の値が一致し、か
つ勾配方向も一致する位相が存在する。後述する実施の
形態8で詳述するが、少なくとも信号波基準信号の0゜
と180゜でこの条件を満足し、この時に、分周比を切
り替えて搬送波25の信号波基準信号17に対する周波
数の倍率を変更させても、搬送波25の連続性は確保で
きる。また、上記条件を満足する位相は、変更前と変更
後との搬送波25の信号波基準信号17に対する周波数
の倍率の組み合わせにより、予め計算できるものであ
る。
By the way, the signal reference signal 1 of the carrier 25
7 is changed, the carrier 25 before and after the change is compared by making the phase of the signal wave reference signal 17 0 ° and making the value of the up / down counter 23 coincide with each other. There is a phase where the values of 23 coincide and the gradient directions also coincide. As will be described in detail later in an eighth embodiment, at least 0 ° and 180 ° of the signal wave reference signal satisfy this condition. At this time, the frequency division ratio is switched to change the frequency of the carrier wave 25 with respect to the signal wave reference signal 17. Even if the magnification is changed, continuity of the carrier wave 25 can be ensured. Further, the phase satisfying the above condition can be calculated in advance by a combination of the magnification of the frequency of the carrier wave 25 with respect to the signal wave reference signal 17 before and after the change.

【0038】この実施の形態では、PLL回路15内部
のカウンタ34出力をCPU19に入力する。PLL回
路15内部のカウンタ34値は信号波基準信号17の位
相と一致しており、例えば、カウンタ34が12ビット
であれば、カウンタ34値が0の場合は信号波基準信号
17が0゜の時であり、2048の時は180゜である
というようにカウンタ34値と信号波基準信号17の位
相とが1:1に対応している。そのため、カウンタ34
出力をCPU19に入力することにより、信号波基準信
号17の位相を検出できるため、上述したような予め計
算されて設定された、搬送波25の連続性が確保できる
位相になるタイミングで、CPU19により分周比を変
更する。これにより搬送波25は連続し不正パルスは発
生しない。また、信号波基準信号17が特定の位相にな
った時に位相レジスタ24の値を強制的にアップ/ダウ
ン・カウンタ23に設定するタイミングも、信号波基準
信号17の位相を検出できるCPU19で制御する。
In this embodiment, the output of the counter 34 in the PLL circuit 15 is input to the CPU 19. The value of the counter 34 in the PLL circuit 15 matches the phase of the signal wave reference signal 17. For example, if the counter 34 has 12 bits, if the value of the counter 34 is 0, the signal wave reference signal 17 becomes 0 °. The value of the counter 34 and the phase of the signal wave reference signal 17 correspond to 1: 1 such that the angle of 2048 is 180 °. Therefore, the counter 34
By inputting the output to the CPU 19, the phase of the signal wave reference signal 17 can be detected. Therefore, the timing calculated by the CPU 19 as described above is a timing calculated and set in advance as described above so that the continuity of the carrier wave 25 can be ensured. Change the circumference ratio. As a result, the carrier 25 is continuous and no illegal pulse is generated. The timing at which the value of the phase register 24 is forcibly set in the up / down counter 23 when the signal wave reference signal 17 has a specific phase is also controlled by the CPU 19 capable of detecting the phase of the signal wave reference signal 17. .

【0039】この実施の形態では、信号波基準信号17
の0゜以外のタイミングでも分周比の変更を行うことが
できるため、分周比の変更可能なタイミングが増大し、
効率的に搬送波25の信号波基準信号17に対する周波
数の倍率を変更させることができる。また、実施の形態
1のように分周比設定のためのレジスタを2個持つ必要
が無く、1個のレジスタ32で済むため、回路構成が簡
略化できる。
In this embodiment, the signal wave reference signal 17
Since the division ratio can be changed even at a timing other than 0 °, the timing at which the division ratio can be changed increases,
The magnification of the frequency of the carrier wave 25 with respect to the signal wave reference signal 17 can be changed efficiently. Further, unlike the first embodiment, there is no need to have two registers for setting the frequency division ratio, and only one register 32 is required, so that the circuit configuration can be simplified.

【0040】実施の形態6.次に、この発明の実施の形
態6によるPWM回路について、図7に基づいて説明す
る。上述したように、分周比の変更の本来の目的は、信
号波基準信号17の周波数の上昇に伴う搬送波25の周
波数の上昇を防ぐ、即ち、信号波基準信号17の周波数
に関わりなく搬送波25を常に一定範囲内の周波数にす
ることである。このため信号波基準信号17の周波数
と、搬送波25の信号波基準信号17に対する周波数の
倍率との間には1:1の関係ができ、それを予め計算す
るのは極めて容易である。つまり信号波基準信号17の
周波数に対する分周器20の分周比は1:1で決定する
ことができる。
Embodiment 6 FIG. Next, a PWM circuit according to Embodiment 6 of the present invention will be described with reference to FIG. As described above, the original purpose of the change in the division ratio is to prevent the frequency of the carrier wave 25 from increasing with the increase in the frequency of the signal wave reference signal 17, that is, regardless of the frequency of the signal wave reference signal 17, the carrier 25 Is always within a certain range. Therefore, there is a 1: 1 relationship between the frequency of the signal wave reference signal 17 and the frequency magnification of the carrier wave 25 with respect to the signal wave reference signal 17, and it is extremely easy to calculate it in advance. That is, the frequency division ratio of the frequency divider 20 to the frequency of the signal wave reference signal 17 can be determined to be 1: 1.

【0041】この実施の形態では、PLL回路15から
のパルスを入力して、そのパルスの周波数を検出する周
波数検出器37と、上記のように1:1の関係である、
信号波基準信号17の周波数と分周器20の分周比との
関係を分周比テーブル38として格納するROMなどの
メモリとを備え、PLL回路15から出力されるパルス
を分周器20に入力するとともに、周波数検出器37に
入力し、その出力を分周比テーブル38に入力して分周
比を出力する。PLL回路15から出力されるパルスの
周波数と信号波基準信号17の周波数とは一定の比例関
係にあるため、上記パルスの周波数を周波数検出器37
で検出し、このパルスの周波数に対応する分周比データ
を分周比テーブル38から検索することにより信号波基
準信号17の周波数に対する分周比を選択することがで
きる。この分周比が選択された後、PLL回路15から
位相基準信号18が発生すると、そのタイミングで、分
周比テーブル38の選択された分周比がレジスタ32に
転送され、分周器20の分周比として反映される。ま
た、それと同時に予めCPU19で設定され位相レジス
タ24で保持された所定値は強制的にアップ/ダウン・
カウンタ23にセットされ、その値よりカウント動作を
継続する。
In this embodiment, the pulse detector 37 receives a pulse from the PLL circuit 15 and detects the frequency of the pulse. The frequency detector 37 has a 1: 1 relationship as described above.
A memory such as a ROM for storing the relationship between the frequency of the signal wave reference signal 17 and the frequency division ratio of the frequency divider 20 as a frequency division ratio table 38 is provided, and a pulse output from the PLL circuit 15 is supplied to the frequency divider 20. The frequency is input to the frequency detector 37, and the output is input to the frequency division ratio table 38 to output the frequency division ratio. Since the frequency of the pulse output from the PLL circuit 15 and the frequency of the signal wave reference signal 17 are in a fixed proportional relationship, the frequency of the pulse is
The frequency division ratio corresponding to the frequency of the signal wave reference signal 17 can be selected by retrieving the frequency division ratio data corresponding to the pulse frequency from the frequency division ratio table 38. When the phase reference signal 18 is generated from the PLL circuit 15 after this frequency division ratio is selected, the frequency division ratio selected in the frequency division ratio table 38 is transferred to the register 32 at that timing, and the frequency divider 20 It is reflected as a division ratio. At the same time, a predetermined value set in advance by the CPU 19 and held in the phase register 24 is forcibly up / down.
It is set in the counter 23, and the counting operation is continued from the value.

【0042】この実施の形態では、上記実施の形態1と
同様に搬送波25は連続したものとなり、ゲートパルス
28の不正パルスの発生が防止できると共に、CPU1
9は全く分周比すなわち搬送波25の信号波基準信号1
7に対する周波数の倍率を制御する必要がなく、自動的
に搬送波25の周波数を一定の範囲内に収めることがで
きるため、CPU19の負担は大幅に減少する。
In this embodiment, as in the first embodiment, the carrier wave 25 is continuous, so that the generation of an illegal pulse of the gate pulse 28 can be prevented and the CPU 1
9 is a frequency division ratio, that is, a signal wave reference signal 1 of the carrier wave 25.
Since it is not necessary to control the magnification of the frequency with respect to 7, and the frequency of the carrier wave 25 can be automatically kept within a certain range, the load on the CPU 19 is greatly reduced.

【0043】なお、上記実施の形態3から実施の形態6
についても、上記実施の形態2を適用して分周器20に
レート・マルチ・バイブレータ29を用いることがで
き、回路内の信号の周波数を低く抑えることができるた
め、ノイズの影響によるEMC問題の発生が抑制でき、
プリント配線板の設計が容易となる等の効果が得られ
る。
It should be noted that Embodiments 3 to 6 above are described.
Also, the rate multivibrator 29 can be used for the frequency divider 20 by applying the second embodiment, and the frequency of the signal in the circuit can be suppressed low. Generation can be suppressed,
Effects such as easy design of the printed wiring board can be obtained.

【0044】実施の形態7.次に、この発明の実施の形
態7によるPWM回路について、図8に基づいて説明す
る。上記実施の形態1〜6では分周器20とアップ/ダ
ウン・カウンタ23とを用いたが、この実施の形態で
は、単なるアップのみもしくはダウンのみのカウンタ3
9と、ROM40に搬送波パターン41a、41bを格
納したものを用いる。カウンタ39では、PLL回路1
5から出力されたパルスを入力してカウントし、このカ
ウンタ値をPLL回路15からの位相基準信号18のタ
イミングでリセットする。ROM40には、信号波基準
信号17との倍率が異なる複数種の搬送波パターン41
a、41bが、カウンタ39出力と搬送波パターン41
a、41bの種類に対応する識別情報とから成るアドレ
スにそれぞれ格納される。
Embodiment 7 FIG. Next, a PWM circuit according to a seventh embodiment of the present invention will be described with reference to FIG. In the first to sixth embodiments, the frequency divider 20 and the up / down counter 23 are used. However, in this embodiment, the mere up-only or down-only counter 3 is used.
9 and the one in which the carrier wave patterns 41a and 41b are stored in the ROM 40 are used. In the counter 39, the PLL circuit 1
The pulse output from 5 is input and counted, and this counter value is reset at the timing of the phase reference signal 18 from the PLL circuit 15. A plurality of types of carrier wave patterns 41 having different magnifications from the signal wave reference signal 17 are stored in the ROM 40.
a, 41 b are the output of the counter 39 and the carrier wave pattern 41.
a and 41b are respectively stored in addresses composed of identification information corresponding to the types.

【0045】例えば図9のようにROM40にはあらか
じめ信号波基準信号17の3倍および5倍の搬送波パタ
ーン41a、41bが格納されているものとする。RO
M40を13ビットのアドレスと12ビットのデータを
持つものとし、0H番地(16進法の0番地)から0F
FFH番地には信号波基準信号17の5倍、1000H
番地から1FFFH番地には3倍の搬送波25のデータ
(搬送波パターン41a、41b)を格納しておく。ま
た、PLL回路15からは信号波基準信号17の409
6倍の周波数を発生する設定にしておく。カウンタ39
の出力は12ビットとして(000H〜FFFH)、R
OM40の下位アドレスに割り当て、上位1ビットのア
ドレスは、予めCPU19で設定された、搬送波パター
ン41a、41bの種類に対応する識別情報0または1
を割り当てる。カウンタ39は12ビットのため000
HからFFFHの間を繰り返しカウントする。
For example, it is assumed that carrier patterns 41a and 41b three times and five times the signal wave reference signal 17 are stored in the ROM 40 in advance as shown in FIG. RO
It is assumed that M40 has a 13-bit address and 12-bit data, and addresses 0H (hexadecimal 0) to 0F
At address FFH, five times the signal wave reference signal 17, 1000H
From the address to the address 1FFFH, triple data of the carrier 25 (carrier patterns 41a and 41b) are stored. Also, the PLL circuit 15 outputs 409 of the signal wave reference signal 17.
It is set to generate six times the frequency. Counter 39
Output is 12 bits (000H to FFFH), and R
The upper one bit address is assigned to the lower address of the OM 40, and the identification information 0 or 1 corresponding to the type of the carrier wave patterns 41a and 41b set in advance by the CPU 19.
Assign. Since the counter 39 is 12 bits, 000
Count from H to FFFH is repeated.

【0046】上記識別情報は、予めCPU19で設定さ
れ、一旦第1のレジスタ42に格納された後、PLL回
路15からの位相基準信号18を受けて第2のレジスタ
43に転送されて、ROM40に反映される。信号波基
準信号17の5倍の搬送波25を必要とする場合は、C
PU19は識別情報として0を設定して、その値を一旦
第1のレジスタ42に保持する。位相基準信号18のタ
イミングで第2のレジスタ43の値が0になると、カウ
ンタ39出力を入力として、ROM40の0000H番
地から0FFFH番地のデータが繰り返し出力されるこ
とになる。その結果として信号波基準信号17の5倍周
期の搬送波25を得ることができる。位相基準信号18
が入力されるとカウンタ39はリセットされ000Hに
なるが、カウンタ39が12ビットであり、PLL回路
15からの出力パルスの周波数が信号波基準信号17の
4096倍であるため、位相基準信号18が入力される
/されないにかかわらず自動的に位相基準信号18入力
時にはカウンタ値は000Hになる。
The identification information is set in advance by the CPU 19, and once stored in the first register 42, is transferred to the second register 43 upon receiving the phase reference signal 18 from the PLL circuit 15, and is stored in the ROM 40. Will be reflected. If a carrier 25 that is five times as large as the signal wave reference signal 17 is required, C
The PU 19 sets 0 as identification information, and temporarily holds the value in the first register 42. When the value of the second register 43 becomes 0 at the timing of the phase reference signal 18, the data from the address 0000H to the address 0FFFH of the ROM 40 is repeatedly output using the output of the counter 39 as an input. As a result, a carrier wave 25 having a period five times that of the signal wave reference signal 17 can be obtained. Phase reference signal 18
Is input, the counter 39 is reset to 000H. However, since the counter 39 has 12 bits and the frequency of the output pulse from the PLL circuit 15 is 4096 times the signal wave reference signal 17, the phase reference signal 18 The counter value automatically becomes 000H when the phase reference signal 18 is automatically input regardless of whether or not it is input.

【0047】信号波基準信号17の周波数の上昇に伴う
搬送波25の周波数の上昇を防ぐために、信号波基準信
号17に対して周波数が5倍の搬送波25を出力してい
るのを、3倍に切り替える必要が発生した場合、CPU
19により識別情報を1に設定し、一旦第1のレジスタ
42に1を保持する。しかし、直ちにはこの識別情報1
はROM40の読み出しアドレスの一部にはならず、P
LL回路15から位相基準信号18を受けるタイミング
で、第1のレジスタ42の値が第2のレジスタ43に転
送されるとともにカウンタ39がリセットされるためカ
ウンタ値は000Hになる。この時点で初めてROM4
0の読み出しアドレスの上位1ビットが1となる。その
ため、その後ROM40からは1000H番地から1F
FFH番地のデータが繰り返し出力されることになる。
すなわち信号波基準信号17の3倍の周波数の搬送波2
5を発生させることができる。
In order to prevent an increase in the frequency of the carrier wave 25 due to an increase in the frequency of the signal wave reference signal 17, the output of the carrier wave 25 whose frequency is five times that of the signal wave reference signal 17 is reduced to three times. If it is necessary to switch, the CPU
19, the identification information is set to 1, and 1 is temporarily held in the first register 42. However, immediately this identification information 1
Is not part of the read address of the ROM 40, and P
At the timing when the phase reference signal 18 is received from the LL circuit 15, the value of the first register 42 is transferred to the second register 43 and the counter 39 is reset, so that the counter value becomes 000H. At this time, ROM4
The upper one bit of the read address of “0” becomes “1”. Therefore, after that, from ROM 40, it is 1F from address 1000H.
The data at the address FFH is repeatedly output.
That is, the carrier wave 2 having a frequency three times that of the signal wave reference signal 17
5 can be generated.

【0048】この実施の形態では、搬送波25の信号波
基準信号17に対する周波数の倍率を5倍から3倍に切
り替える際、ROM40の読み出しアドレスがFFFH
の次は1000Hとなるため、搬送波25が連続するこ
とになる。また、5倍から3倍に切り替えたとしても、
ROM40の下位アドレスが000Hの時点、即ち搬送
波パターン41a、41bの開始アドレスで実際の切り
替えが行われるため、搬送波25は連続する。また搬送
波25と信号波16の位相差を搬送波25を基準にして
90゜にしたい場合は図10のようなROM40にする
ことにより実現でき、ROM40の格納データを変更す
ることにより任意の位相差を得ることができる。
In this embodiment, when the magnification of the frequency of the carrier wave 25 with respect to the signal wave reference signal 17 is switched from 5 to 3, the read address of the ROM 40 is set to FFFH.
Is next to 1000H, so that the carrier 25 is continuous. Also, even if you switch from 5 times to 3 times,
Since the actual switching is performed at the time when the lower address of the ROM 40 is 000H, that is, at the start address of the carrier patterns 41a and 41b, the carrier 25 is continuous. When it is desired to make the phase difference between the carrier wave 25 and the signal wave 16 90 ° with respect to the carrier wave 25, it can be realized by using a ROM 40 as shown in FIG. 10, and by changing the data stored in the ROM 40, an arbitrary phase difference can be obtained. Obtainable.

【0049】この実施の形態では、上記実施の形態1と
同様に搬送波25は連続したものとなり、ゲートパルス
28の不正パルスの発生が防止できる。また、3倍周波
数データ(搬送波パターン41a)も5倍周波数データ
(搬送波パターン41b)も1000Hすなわち409
6のアドレス空間に格納している。どのような倍率の周
波数の搬送波パターン41a、41bも同じ1000H
の領域に格納すれば、PLL回路15からは信号波基準
信号17の4096倍という低い一定の周波数のパルス
を発生させるだけでよいため、回路内の信号の周波数を
格段と低く抑えることができるため、ノイズの影響によ
るEMC問題の発生が抑制でき、プリント配線板の設計
が容易となる等の効果がある。
In this embodiment, as in the first embodiment, the carrier wave 25 is continuous, and the occurrence of an illegal pulse of the gate pulse 28 can be prevented. Also, the triple frequency data (carrier pattern 41a) and the five times frequency data (carrier pattern 41b) are both 1000H, that is, 409.
6 is stored in the address space. The carrier patterns 41a and 41b of any magnification frequency are the same 1000H.
In this case, the PLL circuit 15 only needs to generate a pulse having a constant frequency as low as 4096 times the signal wave reference signal 17 from the PLL circuit 15, so that the frequency of the signal in the circuit can be significantly reduced. In addition, it is possible to suppress the occurrence of the EMC problem due to the influence of noise, and to facilitate the design of the printed wiring board.

【0050】なお、この実施の形態では搬送波パターン
41a、41bは周波数が3倍と5倍との2パターンで
あるため、CPU19で設定し保持する識別情報は、1
ビットデータであったが、例えば8パターンの場合は3
ビットのデータを設定すればよい。また、搬送波パター
ン41a、41bの組み合わせを変更する場合は、必要
な搬送波パターンを格納したROM40に取り替えるこ
とにより容易に変更できる。
In this embodiment, since the carrier patterns 41a and 41b are two patterns having a frequency of three times and five times, the identification information set and held by the CPU 19 is one.
Although it was bit data, for example, in the case of 8 patterns, 3
Bit data may be set. When the combination of the carrier patterns 41a and 41b is changed, the combination can be easily changed by replacing the ROM 40 with the necessary carrier pattern.

【0051】実施の形態8.次に、この発明の実施の形
態8によるPWM回路について、図11に基づいて説明
する。この実施の形態では、上記実施の形態7におい
て、信号波基準信号17との周波数の倍率が異なる搬送
波パターン41a、41bが、倍率切り替えのタイミン
グデータとしての切り替え指令データ44と共にROM
40に格納され、予めCPU19で設定され第1のレジ
スタ42で一旦保持された識別情報は、切り替え指令デ
ータ44がROM40から発生されるタイミングで、R
OM40に反映する第2のレジスタ43に転送する。
Embodiment 8 FIG. Next, a PWM circuit according to an eighth embodiment of the present invention will be described with reference to FIG. In the present embodiment, the carrier wave patterns 41a and 41b having different frequency magnifications from the signal wave reference signal 17 in the seventh embodiment are stored in the ROM together with the switching command data 44 as the magnification switching timing data.
The identification information stored in the CPU 40, set in advance by the CPU 19, and held once in the first register 42 is the timing at which the switching command data 44 is generated from the ROM 40.
The data is transferred to the second register 43 which is reflected on the OM 40.

【0052】ROM40に格納された搬送波パターン4
1a、41bが上記実施の形態7の場合と同じとして、
2つの搬送波パターン41a、41bを比較すると、図
12に示すように、ROM40アドレスの下位12ビッ
トが同じでかつデータも同じである箇所が必ず何箇所か
存在する。そのうち、さらに勾配の方向が同じ、即ち共
に上り勾配、あるいは共に下り勾配である条件を満足す
る箇所が存在する。2つの搬送波パターン41a、41
bがどのような組み合わせであっても、信号波16と同
期する搬送波25の搬送波パターン41a、41bで
は、少なくともROM40アドレスの下位12ビットが
000Hと800Hとにおいて、アドレスおよびデータ
が共に一致し、しかも勾配方向が一致する。即ち、信号
波基準信号17の少なくとも0゜と180゜でこの条件
を満足し、この条件を満たすかどうかの判別データを上
記切り替え指令データ44として、搬送波パターン41
a、41bのデータ以外にROM40に1ビット追加
し、上記条件を満たす場合に該当アドレスに1、それ以
外を0の値を格納する。図12では切り替え指令データ
44が1のとき(以下、切り替え指令データ44発生時
と称す)のみ↑で示した。
Carrier wave pattern 4 stored in ROM 40
Assuming that 1a and 41b are the same as in the seventh embodiment,
Comparing the two carrier wave patterns 41a and 41b, as shown in FIG. 12, there are always some places where the lower 12 bits of the ROM 40 address are the same and the data is the same. Among them, there are places where the direction of the gradient further satisfies the condition that the gradient direction is the same, that is, both gradients are upward or both gradients are downward. Two carrier wave patterns 41a, 41
Regardless of the combination of b, in the carrier wave patterns 41a and 41b of the carrier wave 25 synchronized with the signal wave 16, at least the lower 12 bits of the ROM 40 address are 000H and 800H, the address and the data match, and The gradient directions match. That is, at least 0 ° and 180 ° of the signal wave reference signal 17 satisfies this condition, and the determination data as to whether this condition is satisfied is used as the switching command data 44 as the carrier wave pattern 41.
One bit is added to the ROM 40 in addition to the data of a and 41b, and when the above condition is satisfied, a value of 1 is stored in the corresponding address, and a value of 0 is stored in the other address. In FIG. 12, only when the switching command data 44 is 1 (hereinafter, referred to as when the switching command data 44 is generated), it is indicated by ↑.

【0053】上記のように、ROM40の下位12ビッ
トのアドレスおよびデータが共に一致し、しかも勾配方
向が一致する時、即ち、切り替え指令データ44発生
時、信号波基準信号17に対する周波数の倍率を変更さ
せても、搬送波25の連続性は確保できゲートパルス2
8の不正パルスの発生が防止できる。またこの様なアド
レスは、変更前と変更後との搬送波25の信号波基準信
号17に対する周波数の倍率の組み合わせにより、予め
計算できてROM40に格納できるものである。この実
施の形態では、予めCPU19で設定され第1のレジス
タ42で一旦保持された、搬送波パターン41a、41
bの種類に対応する識別情報(0または1)を、ROM
40から出力される上記切り替え指令データ44発生の
タイミングで第2のレジスタ43に転送し、ROM40
に反映させるため、上記のような、搬送波25の連続性
は確保できゲートパルス28の不正パルスの発生が防止
できる効果が得られる。
As described above, when the lower 12 bits of the address and the data of the ROM 40 coincide with each other and the gradient directions coincide, that is, when the switching command data 44 is generated, the magnification of the frequency with respect to the signal wave reference signal 17 is changed. However, the continuity of the carrier wave 25 can be secured and the gate pulse 2
8 can be prevented from being generated. Such an address can be calculated in advance and stored in the ROM 40 by a combination of the magnification of the frequency of the carrier wave 25 with respect to the signal wave reference signal 17 before and after the change. In this embodiment, the carrier wave patterns 41a, 41a set in advance by the CPU 19 and once held in the first register 42 are used.
The identification information (0 or 1) corresponding to the type b is stored in the ROM
At the time of generation of the switching command data 44 output from the
In this case, the continuity of the carrier wave 25 can be ensured as described above, and the effect of preventing the generation of an illegal pulse of the gate pulse 28 can be obtained.

【0054】上記実施の形態7では、CPU19が任意
のタイミングで搬送波パターン41a、41bの種類を
変更しても、位相基準信号17は信号波16に対し36
0゜に1回しか発生しないため、信号波16で最長36
0゜の時間遅れでしか実際に、搬送波パターン41a、
41bが切り替われない場合がある。しかし、この実施
の形態では、少なくとも0゜と180゜で切り替え指令
データ44が発生することになるため、、上記実施の形
態7と同様の効果が得られると共に、任意にCPU19
が搬送波パターン41a、41bの種類を変更しても、
最悪180゜しか遅れなく、高速な切り替えが可能とな
る。また、搬送波パターン41a、41bの組み合わせ
によっては360゜間に2箇所以上その条件が満足する
時点があるため、さらに短時間に切り替えが可能とな
り、搬送波25の信号波基準信号17に対する周波数倍
率の変更が、高速で効率的に行える。
In the seventh embodiment, even if the CPU 19 changes the type of the carrier wave patterns 41a and 41b at an arbitrary timing, the phase reference signal 17
Since it occurs only once in 0 °, the signal wave 16 has a maximum length of 36
Only with a time delay of 0 ° is the carrier pattern 41a,
41b may not be switched. However, in this embodiment, since the switching command data 44 is generated at least at 0 ° and 180 °, the same effect as that of the seventh embodiment can be obtained, and the CPU 19 can be arbitrarily selected.
Changes the types of the carrier patterns 41a and 41b,
With a delay of only 180 ° at worst, high-speed switching becomes possible. Further, depending on the combination of the carrier wave patterns 41a and 41b, there are two or more points within 360 ° where the condition is satisfied, so that the switching can be performed in a shorter time, and the frequency magnification of the carrier wave 25 with respect to the signal wave reference signal 17 can be changed. However, it can be performed quickly and efficiently.

【0055】実施の形態9.次に、この発明の実施の形
態9によるPWM回路について、図13に基づいて説明
する。上記実施の形態7では、PLL回路15から出力
されるパルスをカウンタ39でカウントしたが、この実
施の形態では、PLL回路15の内部のカウンタ34を
用い、このカウンタ34出力をROM40に入力する。
PLL回路15は、上記実施の形態5で示したように、
外部からPLL回路15に入力される信号波基準信号1
7のてい倍の周波数のパルスを発生する電圧制御発振器
33と、その発振器33から出力されるパルスをカウン
トするカウンタ34と、このカウンタ34から出力され
る信号と上記信号波基準信号17との位相を比較し、位
相差に応じた電圧を出力する位相比較器35と、この位
相比較器35の出力を平滑化して、その出力信号を上記
電圧制御発振器33に入力するループフィルタ36とで
構成される。
Embodiment 9 FIG. Next, a PWM circuit according to a ninth embodiment of the present invention will be described with reference to FIG. In the seventh embodiment, the pulses output from the PLL circuit 15 are counted by the counter 39. In the present embodiment, the counter 34 inside the PLL circuit 15 is used, and the output of the counter 34 is input to the ROM 40.
The PLL circuit 15, as described in the fifth embodiment,
Signal wave reference signal 1 externally input to PLL circuit 15
A voltage-controlled oscillator 33 for generating a pulse having a frequency which is a multiple of 7, a counter 34 for counting the pulses output from the oscillator 33, and the phase of the signal output from the counter 34 and the signal wave reference signal 17 , And outputs a voltage corresponding to the phase difference, and a loop filter 36 that smoothes the output of the phase comparator 35 and inputs the output signal to the voltage controlled oscillator 33. You.

【0056】この様な構成のPLL回路15では、PL
L回路15内部のカウンタ34は上記実施の形態7で用
いたカウンタ39と同じ働きをする。またPLL回路1
5内部のカウンタ34値は信号波基準信号17の位相と
一致しており、例えば、カウンタ34が12ビットであ
れば、カウンタ34値が0の場合は信号波基準信号17
が0゜の時であり、2048の時は180゜であるとい
うようにカウンタ34値と信号波基準信号17の位相と
が1:1に対応している。そのため、カウンタ34出力
により信号波基準信号17の位相を検出できるため、予
めCPU19で設定され第1のレジスタ42で一旦保持
された搬送波パターン41a、41bの種類に対応する
識別情報を第2のレジスタ43に転送するタイミング
を、上記カウンタ34出力に対応する位相情報により制
御する。これにより上記実施の形態7と同様の効果が得
られると共に、新たなカウンタが不要となるため回路構
成が簡略化できる。
In the PLL circuit 15 having such a configuration, the PL
The counter 34 in the L circuit 15 has the same function as the counter 39 used in the seventh embodiment. PLL circuit 1
The value of the counter 34 inside 5 coincides with the phase of the signal wave reference signal 17. For example, if the counter 34 has 12 bits, the signal wave reference signal 17
Is 0 ° and 2048 is 180 °, so that the value of the counter 34 and the phase of the signal wave reference signal 17 correspond to 1: 1. Therefore, since the phase of the signal wave reference signal 17 can be detected from the output of the counter 34, the identification information corresponding to the types of the carrier wave patterns 41a and 41b set in advance by the CPU 19 and once held in the first register 42 is stored in the second register. The transfer timing to the counter 43 is controlled by the phase information corresponding to the output of the counter 34. As a result, the same effect as in the seventh embodiment can be obtained, and the circuit configuration can be simplified since a new counter is not required.

【0057】実施の形態10.次に、この発明の実施の
形態10によるPWM回路について、図14に基づいて
説明する。この実施の形態では、搬送波25を出力する
ROM40には図15に示すような搬送波基本パターン
45が格納され、またPLL回路15内部において、カ
ウンタ34の出力側に分周器46を配置し、その出力を
位相比較器35の信号波基準信号17との比較信号とす
る。また、この分周器46の分周比は予めCPU19で
設定され、レジスタ32に保持されたものを用いる。
Embodiment 10 FIG. Next, a PWM circuit according to Embodiment 10 of the present invention will be described with reference to FIG. In this embodiment, the carrier wave basic pattern 45 as shown in FIG. 15 is stored in the ROM 40 that outputs the carrier wave 25, and a frequency divider 46 is arranged inside the PLL circuit 15 on the output side of the counter 34. The output is used as a comparison signal with the signal wave reference signal 17 of the phase comparator 35. The frequency division ratio of the frequency divider 46 is set in advance by the CPU 19 and is used by the register 32.

【0058】例えば、分周比として1/5を設定し、カ
ウンタ34が12ビットカウンタとした場合、000H
からFFFHまでを5回カウントしてはじめて分周器4
6から1回信号が発生する。PLL回路15の機能とし
て、分周器46からの発生信号と信号波基準信号17と
が位相および周波数が一致するように動作するため、信
号波基準信号17の1周期に対しカウンタ46が5周期
カウントすることになる。すなわち図15の搬送波基本
パターン45がROM40から5回分読み出されて、信
号波基準信号17に対する周波数倍率が5倍の搬送波2
5が出力される。
For example, when the frequency division ratio is set to 1/5 and the counter 34 is a 12-bit counter, 000H
Frequency divider 4 only after counting 5 times from FFFH to
The signal is generated once from 6 times. As a function of the PLL circuit 15, the operation is performed so that the phase and frequency of the signal generated from the frequency divider 46 and the signal wave reference signal 17 coincide with each other. Will count. That is, the carrier wave basic pattern 45 shown in FIG. 15 is read five times from the ROM 40, and the carrier wave 2 whose frequency magnification with respect to the signal wave reference signal 17 is 5 times.
5 is output.

【0059】例えば、ここでCPU19により分周比を
1/3に変更すると、カウンタ34は000HからFF
FHまでを3回カウントしてはじめて分周器46から1
回信号が発生することになる。PLL回路15は常に信
号波基準信号17と分周器46の出力とが位相および周
波数が一致するように動作するため、結果として、ルー
プフィルタ36の応答速度に従って電圧制御発振器33
からの周波数が徐々に減少し同期状態に移行する。そし
て、信号波基準信号17の1周期に対しカウンタ34が
3周期カウントすることになり、すなわち搬送波基本パ
ターン45がROM40から3回分読み出されて、信号
波基準信号17に対する周波数倍率が3倍に変化する。
For example, when the frequency division ratio is changed to 1/3 by the CPU 19, the counter 34 changes from 000H to FF.
Only after counting up to FH three times, the frequency divider 46-1
A time signal will be generated. Since the PLL circuit 15 always operates so that the phase and frequency of the signal wave reference signal 17 and the output of the frequency divider 46 match, as a result, the voltage control oscillator 33 according to the response speed of the loop filter 36
, Gradually decreases and shifts to the synchronized state. Then, the counter 34 counts three cycles for one cycle of the signal wave reference signal 17, that is, the carrier wave basic pattern 45 is read three times from the ROM 40, and the frequency magnification with respect to the signal wave reference signal 17 is tripled. Change.

【0060】この実施の形態では、周波数倍率は徐々に
変化し、カウンタ34の値も連続するため、搬送波25
の波形も連続したものとなり、ゲートパルス28の不正
パルスの発生はない。また、周波数倍率の変化はループ
フィルタ36の応答速度に依存し、応答速度を遅くする
ことにより、移行を連続的かつ滑らかに行うことができ
緩やかに周波数倍率を変更できる。
In this embodiment, since the frequency magnification changes gradually and the value of the counter 34 is continuous, the carrier 25
Is also continuous, and there is no occurrence of an illegal pulse of the gate pulse 28. Further, the change in the frequency magnification depends on the response speed of the loop filter 36, and by reducing the response speed, the transition can be performed continuously and smoothly, and the frequency magnification can be changed gently.

【0061】[0061]

【発明の効果】以上のように、この発明に係わる請求項
1記載のPWM回路は、CPUで設定された分周器の分
周比を一旦保持する第1のレジスタと、一旦保持された
該分周比をPLL回路からの位相基準信号のタイミング
で入力して保持し、上記分周器に反映させる第2のレジ
スタとを備えたため、信号波基準信号に対する搬送波の
周波数倍率を変更する際、搬送波は連続したものとなる
ため、スイッチング信号の不正パルスの発生が防止で
き、電力変換器のスイッチング素子のON/OFF制御
の信頼性が向上する。
As described above, in the PWM circuit according to the first aspect of the present invention, the first register for temporarily storing the frequency division ratio of the frequency divider set by the CPU, and the first register for temporarily storing the frequency division ratio. A second register for inputting and holding the frequency division ratio at the timing of the phase reference signal from the PLL circuit and reflecting the input to the frequency divider; therefore, when changing the frequency magnification of the carrier with respect to the signal wave reference signal, Since the carrier is continuous, generation of an incorrect pulse of the switching signal can be prevented, and the reliability of ON / OFF control of the switching element of the power converter is improved.

【0062】またこの発明に係わる請求項2記載のPW
M回路は、CPUで設定された分周器の分周比を複数個
保持可能なFIFOと、PLL回路からの位相基準信号
を入力として、上記FIFOに保持された上記分周比を
上記分周器に順次反映させるタイミングを制御するFI
FO制御回路とを備えたため、信号波基準信号に対する
搬送波の周波数倍率を変更する際、搬送波は連続したも
のとなるため、スイッチング信号の不正パルスの発生が
防止でき、電力変換器のスイッチング素子のON/OF
F制御の信頼性が向上すると共に、CPUは初期設定す
るのみで以降は自動的に分周比が変更されるPWM回路
が実現でき、CPUの負荷が軽くなる。
A PW according to claim 2 of the present invention.
The M circuit receives a phase reference signal from the PLL circuit as an input and a FIFO capable of holding a plurality of frequency division ratios of the frequency divider set by the CPU, and divides the frequency division ratio held in the FIFO by the frequency division. FI that controls the timing of sequentially reflecting on the container
Since the FO control circuit is provided, when the frequency magnification of the carrier with respect to the signal wave reference signal is changed, the carrier is continuous, so that the occurrence of an incorrect pulse of the switching signal can be prevented and the switching element of the power converter is turned on. / OF
The reliability of the F control is improved, and a PWM circuit in which the frequency division ratio is automatically changed only by initial setting of the CPU can be realized, and the load on the CPU can be reduced.

【0063】またこの発明に係わる請求項3記載のPW
M回路は、PLL回路からの位相基準信号のタイミング
で、分周比をCPUからレジスタに入力するため、信号
波基準信号に対する搬送波の周波数倍率を変更する際、
搬送波は連続したものとなるため、スイッチング信号の
不正パルスの発生が防止でき、電力変換器のスイッチン
グ素子のON/OFF制御の信頼性が向上すると共に、
回路構成が簡略化できる。
The PW according to claim 3 of the present invention.
The M circuit inputs the frequency division ratio from the CPU to the register at the timing of the phase reference signal from the PLL circuit, so when changing the frequency magnification of the carrier with respect to the signal wave reference signal,
Since the carrier wave is continuous, it is possible to prevent the generation of an illegal pulse of the switching signal, and to improve the reliability of the ON / OFF control of the switching element of the power converter.
The circuit configuration can be simplified.

【0064】またこの発明に係わる請求項4記載のPW
M回路は、PLL回路のカウンタ出力をCPUに入力
し、該カウンタ出力に対応する位相情報により、アップ
/ダウン・カウンタに所定の値を設定するタイミング、
および分周比を上記CPUからレジスタに入力するタイ
ミングをそれぞれ制御するため、信号波基準信号に対す
る搬送波の周波数倍率を変更する際、搬送波は連続した
ものとなるため、スイッチング信号の不正パルスの発生
が防止でき、電力変換器のスイッチング素子のON/O
FF制御の信頼性が向上すると共に、効率的に分周比を
変更させることができ、また回路構成も簡略化できる。
The PW according to claim 4 of the present invention.
The M circuit inputs a counter output of the PLL circuit to the CPU and sets a predetermined value in an up / down counter based on phase information corresponding to the counter output;
In order to control the timing of inputting the frequency division ratio from the CPU to the register, when changing the frequency magnification of the carrier with respect to the signal wave reference signal, the carrier is continuous, so that an incorrect pulse of the switching signal may be generated. ON / O of switching element of power converter
The reliability of the FF control is improved, the frequency division ratio can be changed efficiently, and the circuit configuration can be simplified.

【0065】またこの発明に係わる請求項5記載のPW
M回路は、PLL回路からパルスを入力して該パルスの
周波数を検出する周波数検出器と、予め分周比データが
格納され、検出された上記周波数に対応する分周比を検
索して出力する分周比テーブルとを備え、上記PLL回
路からの位相基準信号のタイミングで、上記分周比テー
ブルから出力される上記分周比をレジスタに入力するた
め、信号波基準信号に対する搬送波の周波数倍率を変更
する際、搬送波は連続したものとなるため、スイッチン
グ信号の不正パルスの発生が防止でき、電力変換器のス
イッチング素子のON/OFF制御の信頼性が向上する
と共に、CPUの負担が大幅に低減できる。
The PW according to claim 5 according to the present invention.
The M circuit receives a pulse from the PLL circuit and detects the frequency of the pulse. The M circuit stores frequency division ratio data in advance and searches for and outputs a frequency division ratio corresponding to the detected frequency. A frequency division ratio table, wherein the frequency division ratio output from the frequency division ratio table is input to a register at the timing of the phase reference signal from the PLL circuit. When changing, the carrier is continuous, which prevents the generation of illegal pulses in the switching signal, improves the reliability of ON / OFF control of the switching element of the power converter, and greatly reduces the load on the CPU. it can.

【0066】またこの発明に係わる請求項6記載のPW
M回路は、請求項1〜5のいずれかにおいて、分周器が
レート・マルチ・バイブレータであるため、信号波基準
信号に対する搬送波の周波数倍率を変更する際、搬送波
は連続したものとなるため、スイッチング信号の不正パ
ルスの発生が防止でき、電力変換器のスイッチング素子
のON/OFF制御の信頼性が向上すると共に、回路内
の信号の周波数を低く抑えることができるため、ノイズ
の影響によるEMC問題の発生が抑制でき、プリント配
線板の設計が容易となる等の効果がある。
The PW according to claim 6 of the present invention.
The M circuit according to any one of claims 1 to 5, wherein the frequency divider is a rate multivibrator, so that when changing the frequency magnification of the carrier with respect to the signal wave reference signal, the carrier becomes continuous. The occurrence of illegal pulses in the switching signal can be prevented, the reliability of the ON / OFF control of the switching element of the power converter can be improved, and the frequency of the signal in the circuit can be suppressed low. Can be suppressed, and the design of the printed wiring board becomes easy.

【0067】この発明に係わる請求項7記載のPWM回
路は、外部から入力される信号波基準信号を基にした指
令値となる信号波の出力と制御情報の設定とを行うCP
Uと、上記信号波基準信号を入力として、周波数が該信
号波基準信号の周波数のてい倍となるパルスおよび該信
号波基準信号が特定の位相になったことを示す位相基準
信号を出力するPLL回路と、該PLL回路から出力さ
れるパルスをカウントし、該カウンタ値を上記PLL回
路からの上記位相基準信号のタイミングでリセットする
カウンタと、上記信号波基準信号との周波数倍率が異な
る複数種の搬送波パターンが、上記カウンタ出力と上記
搬送波パターンの種類に対応する識別情報とから成るア
ドレスに対してそれぞれ格納され、予め上記CPUで設
定された上記識別情報により所望の搬送波を出力するR
OMと、上記CPUで設定された上記識別情報を一旦保
持する第1のレジスタと、一旦保持された上記識別情報
を上記PLL回路からの上記位相基準信号のタイミング
で入力して保持し、上記ROMに反映させる第2のレジ
スタと、上記搬送波と上記信号波とを比較してその大小
に応じて、電力変換器のスイッチング素子のON/OF
F制御を行うスイッチング信号を出力する比較器と、を
有するため、信号波基準信号に対する搬送波の周波数倍
率を変更する際、搬送波は連続したものとなるため、ス
イッチング信号の不正パルスの発生が防止でき、電力変
換器のスイッチング素子のON/OFF制御の信頼性が
向上すると共に、回路内の信号の周波数を格段と低く抑
えることができるため、ノイズの影響によるEMC問題
の発生が抑制でき、プリント配線板の設計が容易となる
等の効果がある。
According to a seventh aspect of the present invention, there is provided a PWM circuit for outputting a signal wave as a command value based on a signal wave reference signal input from the outside and setting control information.
U and a PLL that receives the signal wave reference signal as input, and outputs a pulse whose frequency is a multiple of the frequency of the signal wave reference signal and a phase reference signal indicating that the signal wave reference signal has a specific phase. A counter that counts pulses output from the PLL circuit and resets the counter value at the timing of the phase reference signal from the PLL circuit; and a plurality of types that have different frequency magnifications from the signal wave reference signal. A carrier wave pattern is stored for each address consisting of the counter output and identification information corresponding to the type of the carrier wave pattern, and a desired carrier wave is output according to the identification information set in advance by the CPU.
OM, a first register for temporarily holding the identification information set by the CPU, and the identification information once held at the timing of the phase reference signal from the PLL circuit and holding the same. And a second register for reflecting the carrier wave and the signal wave, and turning on / off the switching element of the power converter according to the magnitude of the comparison.
And a comparator that outputs a switching signal for performing F control. Therefore, when changing the frequency magnification of the carrier with respect to the signal wave reference signal, the carrier is continuous, so that generation of an incorrect pulse of the switching signal can be prevented. In addition, the reliability of ON / OFF control of the switching element of the power converter is improved, and the frequency of the signal in the circuit can be significantly reduced. There are effects such as easy board design.

【0068】またこの発明に係わる請求項8記載のPW
M回路は、外部から入力される信号波基準信号を基にし
た指令値となる信号波の出力と制御情報の設定とを行う
CPUと、上記信号波基準信号を入力として、周波数が
該信号波基準信号の周波数のてい倍となるパルスおよび
該信号波基準信号が特定の位相になったことを示す位相
基準信号を出力するPLL回路と、該PLL回路から出
力されるパルスをカウントし、該カウンタ値を上記PL
L回路からの上記位相基準信号のタイミングでリセット
するカウンタと、上記信号波基準信号との周波数倍率が
異なる複数種の搬送波パターンが、該倍率切り替えのタ
イミングデータと共に、上記カウンタ出力と上記搬送波
パターンの種類に対応する識別情報とから成るアドレス
に対してそれぞれ格納され、予め上記CPUで設定され
た上記識別情報により所望の搬送波を上記タイミングデ
ータと共に出力するROMと、上記CPUで設定された
上記識別情報を一旦保持する第1のレジスタと、一旦保
持された上記識別情報を上記ROMからの上記タイミン
グデータ発生のタイミングで入力して保持し、上記RO
Mに反映させる第2のレジスタと、上記搬送波と上記信
号波とを比較してその大小に応じて、電力変換器のスイ
ッチング素子のON/OFF制御を行うスイッチング信
号を出力する比較器と、を有するため、信号波基準信号
に対する搬送波の周波数倍率を変更する際、搬送波は連
続したものとなるため、スイッチング信号の不正パルス
の発生が防止でき、電力変換器のスイッチング素子のO
N/OFF制御の信頼性が向上すると共に、上記周波数
倍率の変更が、高速で効率的に行える。
The PW according to claim 8 according to the present invention.
The M circuit includes a CPU that outputs a signal wave serving as a command value based on a signal wave reference signal input from the outside and sets control information, and receives the signal wave reference signal as an input and sets a frequency of the signal wave. A PLL circuit that outputs a pulse that is a multiple of the frequency of the reference signal and a phase reference signal indicating that the signal wave reference signal has a specific phase; a counter that counts pulses output from the PLL circuit; Value is PL
A counter that resets at the timing of the phase reference signal from the L circuit, and a plurality of types of carrier patterns having different frequency magnifications from the signal wave reference signal, together with the magnification switching timing data, output the counter output and the carrier wave pattern. A ROM that stores a desired carrier with the timing data according to the identification information set in advance by the CPU, and stores the identification information set by the CPU; And the identification information once held at the timing of generation of the timing data from the ROM, and held.
M, a second register for reflecting the carrier wave and the signal wave, and a comparator for outputting a switching signal for performing ON / OFF control of a switching element of the power converter according to the magnitude of the comparison. Therefore, when changing the frequency magnification of the carrier with respect to the signal wave reference signal, the carrier is continuous, so that the generation of an incorrect pulse of the switching signal can be prevented, and the O of the switching element of the power converter can be prevented.
The reliability of the N / OFF control is improved, and the frequency magnification can be changed efficiently at high speed.

【0069】またこの発明に係わる請求項9記載のPW
M回路は、外部から回路に入力される信号波基準信号の
てい倍の周波数で上記回路の出力となるパルスを発生す
る電圧制御発振器と、該パルスをカウントするカウンタ
と、該カウンタの出力信号と上記信号波基準信号との位
相を比較し、位相差に応じた電圧を出力する位相比較器
と、該位相比較器の出力を平滑し、その出力信号を上記
電圧制御発振器に入力するループフィルタとを有するP
LL回路と、上記信号波基準信号を基にした指令値とな
る信号波の出力と制御情報の設定とを行うCPUと、上
記信号波基準信号との周波数倍率が異なる複数種の搬送
波パターンが、上記カウンタ出力と上記搬送波パターン
の種類に対応する識別情報とから成るアドレスに対して
それぞれ格納され、予め上記CPUで設定された上記識
別情報により所望の搬送波を出力するROMと、上記C
PUで設定された上記識別情報を一旦保持する第1のレ
ジスタと、一旦保持された上記識別情報を、上記PLL
回路の上記カウンタからの位相情報によるタイミング制
御で入力して保持し、上記ROMに反映させる第2のレ
ジスタと、上記搬送波と上記信号波とを比較してその大
小に応じて、電力変換器のスイッチング素子のON/O
FF制御を行うスイッチング信号を出力する比較器と、
を有するため、信号波基準信号に対する搬送波の周波数
倍率を変更する際、搬送波は連続したものとなるため、
スイッチング信号の不正パルスの発生が防止でき、電力
変換器のスイッチング素子のON/OFF制御の信頼性
が向上すると共に、回路構成が簡略化できる。
The PW according to claim 9 according to the present invention.
The M circuit includes a voltage-controlled oscillator that generates a pulse that is output from the circuit at a frequency that is twice as high as a signal wave reference signal input from the outside to the circuit, a counter that counts the pulses, and an output signal of the counter. A phase comparator that compares the phase with the signal wave reference signal and outputs a voltage corresponding to the phase difference; and a loop filter that smoothes the output of the phase comparator and inputs the output signal to the voltage controlled oscillator. P with
An LL circuit, a CPU that outputs a signal wave serving as a command value based on the signal wave reference signal and sets control information, and a plurality of types of carrier wave patterns having different frequency magnifications from the signal wave reference signal, A ROM which stores a counter output and an identification information corresponding to the type of the carrier wave pattern and which outputs a desired carrier according to the identification information set in advance by the CPU;
A first register for temporarily storing the identification information set by the PU, and a PLL for temporarily storing the identification information once stored in the PLL;
A second register which is inputted and held by timing control based on the phase information from the counter of the circuit and reflected in the ROM, and the carrier wave and the signal wave are compared with each other, ON / O of switching element
A comparator that outputs a switching signal for performing FF control;
Because, when changing the frequency magnification of the carrier with respect to the signal wave reference signal, since the carrier is continuous,
It is possible to prevent the generation of illegal pulses of the switching signal, improve the reliability of ON / OFF control of the switching element of the power converter, and simplify the circuit configuration.

【0070】またこの発明に係わる請求項10記載のP
WM回路は、外部から回路に入力される信号波基準信号
のてい倍の周波数で上記回路の出力となるパルスを発生
する電圧制御発振器と、該パルスをカウントするカウン
タと、該カウンタ出力を予め設定され保持された分周比
で分周する分周器と、該分周器の出力信号と上記信号波
基準信号との位相を比較し、位相差に応じた電圧を出力
する位相比較器と、該位相比較器の出力を平滑し、その
出力信号を上記電圧制御発振器に入力するループフィル
タとを有するPLL回路と、上記信号波基準信号を基に
した指令値となる信号波の出力と制御情報の設定とを行
うCPUと、搬送波の基本パターンが格納され、上記P
LL回路の上記カウンタ出力を入力として上記基本パタ
ーンを所定の回数でカウントして所望の搬送波を出力す
るROMと、上記搬送波と上記信号波とを比較してその
大小に応じて、電力変換器のスイッチング素子のON/
OFF制御を行うスイッチング信号を出力する比較器
と、を有するため、信号波基準信号に対する搬送波の周
波数倍率を変更する際、搬送波は連続したものとなるた
め、スイッチング信号の不正パルスの発生が防止でき、
電力変換器のスイッチング素子のON/OFF制御の信
頼性が向上すると共に、周波数倍率の変化はループフィ
ルタの応答速度に依存し、応答速度を遅くすることによ
り、移行を連続的かつ滑らかに行うことができ緩やかに
周波数倍率を変更できる。
According to the tenth aspect of the present invention,
The WM circuit includes a voltage-controlled oscillator that generates a pulse serving as an output of the circuit at a frequency that is twice the frequency of the signal wave reference signal input from the outside, a counter that counts the pulse, and presets the counter output. A frequency divider that divides the frequency by the held frequency division ratio, a phase comparator that compares the phases of the output signal of the frequency divider and the signal wave reference signal, and outputs a voltage corresponding to the phase difference, A PLL circuit having a loop filter for smoothing the output of the phase comparator and inputting the output signal to the voltage-controlled oscillator; output of a signal wave serving as a command value based on the signal wave reference signal; And a basic pattern of a carrier wave are stored.
A ROM that counts the basic pattern at a predetermined number of times with the counter output of the LL circuit as an input and outputs a desired carrier, and compares the carrier with the signal wave to determine the magnitude of the signal. ON / OFF of switching element
And a comparator that outputs a switching signal for performing the OFF control, so that when changing the frequency magnification of the carrier with respect to the signal wave reference signal, the carrier is continuous, thereby preventing generation of an incorrect pulse of the switching signal. ,
The reliability of the ON / OFF control of the switching element of the power converter is improved, and the change in the frequency magnification depends on the response speed of the loop filter, and the transition is performed continuously and smoothly by reducing the response speed. The frequency magnification can be changed gently.

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

【図1】 この発明の実施の形態1によるPWM回路の
構成を示す図である。
FIG. 1 is a diagram showing a configuration of a PWM circuit according to a first embodiment of the present invention.

【図2】 この発明の実施の形態1によるPWM回路の
動作を説明する図である。
FIG. 2 is a diagram illustrating an operation of the PWM circuit according to the first embodiment of the present invention.

【図3】 この発明の実施の形態2によるPWM回路の
構成を示す図である。
FIG. 3 is a diagram showing a configuration of a PWM circuit according to a second embodiment of the present invention.

【図4】 この発明の実施の形態3によるPWM回路の
構成を示す図である。
FIG. 4 is a diagram showing a configuration of a PWM circuit according to a third embodiment of the present invention.

【図5】 この発明の実施の形態4によるPWM回路の
構成を示す図である。
FIG. 5 is a diagram showing a configuration of a PWM circuit according to a fourth embodiment of the present invention.

【図6】 この発明の実施の形態5によるPWM回路の
構成を示す図である。
FIG. 6 is a diagram showing a configuration of a PWM circuit according to a fifth embodiment of the present invention.

【図7】 この発明の実施の形態6によるPWM回路の
構成を示す図である。
FIG. 7 is a diagram showing a configuration of a PWM circuit according to a sixth embodiment of the present invention.

【図8】 この発明の実施の形態7によるPWM回路の
構成を示す図である。
FIG. 8 is a diagram showing a configuration of a PWM circuit according to a seventh embodiment of the present invention.

【図9】 この発明の実施の形態7によるPWM回路の
ROMのデータを示す図である。
FIG. 9 is a diagram showing data in a ROM of a PWM circuit according to a seventh embodiment of the present invention.

【図10】 この発明の実施の形態7によるPWM回路
のROMのデータの別例を示す図である。
FIG. 10 is a diagram showing another example of the data of the ROM of the PWM circuit according to the seventh embodiment of the present invention.

【図11】 この発明の実施の形態8によるPWM回路
の構成を示す図である。
FIG. 11 is a diagram showing a configuration of a PWM circuit according to an eighth embodiment of the present invention.

【図12】 この発明の実施の形態8によるPWM回路
のROMのデータを示す図である。
FIG. 12 is a diagram showing data in a ROM of a PWM circuit according to an eighth embodiment of the present invention.

【図13】 この発明の実施の形態9によるPWM回路
の構成を示す図である。
FIG. 13 is a diagram showing a configuration of a PWM circuit according to a ninth embodiment of the present invention.

【図14】 この発明の実施の形態10によるPWM回
路の構成を示す図である。
FIG. 14 is a diagram showing a configuration of a PWM circuit according to a tenth embodiment of the present invention.

【図15】 この発明の実施の形態10によるPWM回
路のROMのデータを示す図である。
FIG. 15 is a diagram showing data in a ROM of a PWM circuit according to a tenth embodiment of the present invention.

【図16】 従来のPWM回路の構成を示す図である。FIG. 16 is a diagram showing a configuration of a conventional PWM circuit.

【図17】 従来のPWM回路の動作を説明する図であ
る。
FIG. 17 is a diagram illustrating the operation of a conventional PWM circuit.

【図18】 従来のPWM回路の動作を説明する図であ
る。
FIG. 18 is a diagram illustrating the operation of a conventional PWM circuit.

【図19】 従来のPWM回路の問題点を説明する図で
ある。
FIG. 19 is a diagram illustrating a problem of a conventional PWM circuit.

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

15 PLL回路、16 信号波、17 信号波基準信
号、18 位相基準信号、19 CPU、20 分周
器、21 第1のレジスタ、22 第2のレジスタ、2
3 アップ/ダウン・カウンタ、25 搬送波、27
比較器、28 スイッチング信号としてのゲートパル
ス、29 レート・マルチ・バイブレータ、30 FI
FO、31 FIFO制御回路、32 レジスタ、33
電圧制御発振器、34 カウンタ、35 位相比較
器、36 ループフィルタ、37 周波数検出器、38
分周比テーブル、39 カウンタ、40 ROM、4
1a,41b 搬送波パターン、42 第1のレジス
タ、43 第2のレジスタ、44 倍率切り替えのタイ
ミングデータとしての切り替え指令データ、45 搬送
波基本パターン、46 分周器。
Reference Signs List 15 PLL circuit, 16 signal wave, 17 signal wave reference signal, 18 phase reference signal, 19 CPU, 20 frequency divider, 21 first register, 22 second register, 2
3 up / down counter, 25 carriers, 27
Comparator, 28 gate pulse as switching signal, 29 rate multivibrator, 30 FI
FO, 31 FIFO control circuit, 32 registers, 33
Voltage controlled oscillator, 34 counter, 35 phase comparator, 36 loop filter, 37 frequency detector, 38
Frequency division ratio table, 39 counter, 40 ROM, 4
1a, 41b carrier pattern, 42 first register, 43 second register, 44 switching command data as timing data of magnification switching, 45 carrier wave basic pattern, 46 frequency divider.

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 外部から入力される信号波基準信号を基
にした指令値となる信号波の出力と制御情報の設定とを
行うCPUと、上記信号波基準信号を入力として、周波
数が該信号波基準信号の周波数のてい倍となるパルスお
よび該信号波基準信号が特定の位相になったことを示す
位相基準信号を出力するPLL回路と、該PLL回路か
ら出力される上記パルスを、予め上記CPUで設定され
た分周比で分周する分周器と、該分周器の出力を入力と
して、上記PLL回路からの上記位相基準信号のタイミ
ングで予め設定された所定の値に設定し、その値から別
途設定された所定の二値間でアップ、ダウンカウントを
繰り返し搬送波を出力するアップ/ダウン・カウンタ
と、上記搬送波と上記信号波とを比較してその大小に応
じて、電力変換器のスイッチング素子のON/OFF制
御を行うスイッチング信号を出力する比較器と、を有す
るPWM回路において、上記CPUで設定された上記分
周器の分周比を一旦保持する第1のレジスタと、一旦保
持された該分周比を上記PLL回路からの上記位相基準
信号のタイミングで入力して保持し、上記分周器に反映
させる第2のレジスタとを備えたことを特徴とするPW
M回路。
1. A CPU for outputting a signal wave serving as a command value based on a signal wave reference signal input from the outside and setting control information, and receiving the signal wave reference signal as an input and changing the frequency of the signal. A PLL circuit that outputs a pulse that is a multiple of the frequency of the wave reference signal and a phase reference signal indicating that the signal wave reference signal has a specific phase; and the pulse that is output from the PLL circuit, A frequency divider for dividing the frequency by the frequency division ratio set by the CPU, and an output of the frequency divider as an input, set to a predetermined value preset at the timing of the phase reference signal from the PLL circuit, An up / down counter that repeats up and down counting between predetermined values separately set from the value and outputs a carrier wave; and compares the carrier wave and the signal wave to each other, and according to the magnitude thereof, a power converter. No In a PWM circuit having a comparator for outputting a switching signal for performing ON / OFF control of the switching element, a first register for temporarily holding a frequency division ratio of the frequency divider set by the CPU, and a once register A second register for inputting and holding the obtained frequency division ratio at the timing of the phase reference signal from the PLL circuit, and reflecting the input to the frequency divider.
M circuit.
【請求項2】 外部から入力される信号波基準信号を基
にした指令値となる信号波の出力と制御情報の設定とを
行うCPUと、上記信号波基準信号を入力として、周波
数が該信号波基準信号の周波数のてい倍となるパルスお
よび該信号波基準信号が特定の位相になったことを示す
位相基準信号を出力するPLL回路と、該PLL回路か
ら出力される上記パルスを、予め上記CPUで設定され
た分周比で分周する分周器と、該分周器の出力を入力と
して、上記PLL回路からの上記位相基準信号のタイミ
ングで予め設定された所定の値に設定し、その値から別
途設定された所定の二値間でアップ、ダウンカウントを
繰り返し搬送波を出力するアップ/ダウン・カウンタ
と、上記搬送波と上記信号波とを比較してその大小に応
じて、電力変換器のスイッチング素子のON/OFF制
御を行うスイッチング信号を出力する比較器と、を有す
るPWM回路において、上記CPUで設定された上記分
周器の分周比を複数個保持可能なFIFOと、上記PL
L回路からの上記位相基準信号を入力として、上記FI
FOに保持された上記分周比を上記分周器に順次反映さ
せるタイミングを制御するFIFO制御回路とを備えた
ことを特徴とするPWM回路。
2. A CPU for outputting a signal wave serving as a command value based on a signal wave reference signal input from the outside and setting control information, and receiving the signal wave reference signal as an input and changing the frequency of the signal. A PLL circuit that outputs a pulse that is a multiple of the frequency of the wave reference signal and a phase reference signal indicating that the signal wave reference signal has a specific phase; and the pulse that is output from the PLL circuit, A frequency divider for dividing the frequency by the frequency division ratio set by the CPU, and an output of the frequency divider as an input, set to a predetermined value preset at the timing of the phase reference signal from the PLL circuit, An up / down counter that repeats up and down counting between predetermined two values separately set from the value and outputs a carrier wave, and compares the carrier wave with the signal wave, and according to the magnitude thereof, a power converter No In a PWM circuit having a comparator for outputting a switching signal for performing ON / OFF control of the switching element, a FIFO capable of holding a plurality of frequency division ratios of the frequency divider set by the CPU, and the PL
The phase reference signal from the L circuit is input and the FI
And a FIFO control circuit for controlling timing for sequentially reflecting the frequency division ratio held in the FO to the frequency divider.
【請求項3】 外部から入力される信号波基準信号を基
にした指令値となる信号波の出力と制御情報の設定とを
行うCPUと、上記信号波基準信号を入力として、周波
数が該信号波基準信号の周波数のてい倍となるパルスお
よび該信号波基準信号が特定の位相になったことを示す
位相基準信号を出力するPLL回路と、該PLL回路か
ら出力される上記パルスを、予め上記CPUで設定され
レジスタで保持された分周比で分周する分周器と、分周
器の出力を入力として、上記PLL回路からの上記位相
基準信号のタイミングで予め設定された所定の値に設定
し、その値から別途設定された所定の二値間でアップ、
ダウンカウントを繰り返し搬送波を出力するアップ/ダ
ウン・カウンタと、上記搬送波と上記信号波とを比較し
てその大小に応じて、電力変換器のスイッチング素子の
ON/OFF制御を行うスイッチング信号を出力する比
較器と、を有するPWM回路において、上記PLL回路
からの上記位相基準信号のタイミングで、上記分周比を
上記CPUから上記レジスタに入力することを特徴とす
るPWM回路。
3. A CPU for outputting a signal wave serving as a command value based on a signal wave reference signal input from the outside and setting control information, and receiving the signal wave reference signal as an input and changing the frequency of the signal. A PLL circuit that outputs a pulse that is a multiple of the frequency of the wave reference signal and a phase reference signal indicating that the signal wave reference signal has a specific phase; and the pulse that is output from the PLL circuit, A frequency divider that divides the frequency by the frequency division ratio set by the CPU and held by the register, and an output of the frequency divider as an input, which is set to a predetermined value set in advance by the timing of the phase reference signal from the PLL circuit. Set up from that value between predetermined two values set separately,
An up / down counter that repeats down-counting and outputs a carrier wave, and compares the carrier wave with the signal wave and outputs a switching signal for performing ON / OFF control of a switching element of a power converter according to the magnitude of the signal wave. A PWM circuit, comprising: inputting the frequency division ratio from the CPU to the register at a timing of the phase reference signal from the PLL circuit.
【請求項4】 外部から回路に入力される信号波基準信
号のてい倍の周波数で上記回路の出力となるパルスを発
生する電圧制御発振器と、該パルスをカウントするカウ
ンタと、該カウンタの出力信号と上記信号波基準信号と
の位相を比較し、位相差に応じた電圧を出力する位相比
較器と、該位相比較器の出力を平滑し、その出力信号を
上記電圧制御発振器に入力するループフィルタとを有す
るPLL回路と、上記信号波基準信号を基にした指令値
となる信号波の出力と制御情報の設定とを行うCPU
と、上記PLL回路から出力される上記パルスを、予め
上記CPUで設定されレジスタで保持された分周比で分
周する分周器と、分周器の出力を入力として、上記信号
波基準信号が特定の位相になるタイミングで予め設定さ
れた所定の値に設定し、その値から別途設定された所定
の二値間でアップ、ダウンカウントを繰り返し搬送波を
出力するアップ/ダウン・カウンタと、上記搬送波と上
記信号波とを比較してその大小に応じて、電力変換器の
スイッチング素子のON/OFF制御を行うスイッチン
グ信号を出力する比較器と、を有するPWM回路におい
て、上記PLL回路のカウンタ出力を上記CPUに入力
し、該カウンタ出力に対応する位相情報により、上記ア
ップ/ダウン・カウンタに所定の値を設定する上記タイ
ミング、および上記分周比を上記CPUから上記レジス
タに入力するタイミングをそれぞれ制御することを特徴
とするPWM回路。
4. A voltage-controlled oscillator for generating a pulse to be output from the circuit at a frequency which is twice as high as a signal wave reference signal input from the outside to the circuit, a counter for counting the pulses, and an output signal of the counter And a phase comparator for comparing the phase of the signal wave reference signal and outputting a voltage corresponding to the phase difference, and a loop filter for smoothing the output of the phase comparator and inputting the output signal to the voltage controlled oscillator And a CPU for outputting a signal wave serving as a command value based on the signal wave reference signal and setting control information
A frequency divider that divides the pulse output from the PLL circuit by a frequency division ratio set in advance by the CPU and held in a register, and an output of the frequency divider as an input, and the signal wave reference signal An up / down counter that sets a predetermined value at a timing at which the phase becomes a specific phase, repeats up and down counting between predetermined two values separately set from the value, and outputs a carrier wave; A comparator that compares a carrier wave with the signal wave and outputs a switching signal for performing ON / OFF control of a switching element of the power converter according to the magnitude of the signal wave. Is input to the CPU, and the phase information corresponding to the counter output is used to set a predetermined value in the up / down counter. PWM circuit the dividing ratio and controls respectively the timing of input to the register from the CPU.
【請求項5】 外部から入力される信号波基準信号を基
にした指令値となる信号波の出力と制御情報の設定とを
行うCPUと、上記信号波基準信号を入力として、周波
数が該信号波基準信号の周波数のてい倍となるパルスお
よび該信号波基準信号が特定の位相になったことを示す
位相基準信号を出力するPLL回路と、該PLL回路か
ら出力される上記パルスを、予め設定されレジスタで保
持された分周比で分周する分周器と、分周器の出力を入
力として、上記PLL回路からの上記位相基準信号のタ
イミングで予め設定された所定の値に設定し、その値か
ら別途設定された所定の二値間でアップ、ダウンカウン
トを繰り返し搬送波を出力するアップ/ダウン・カウン
タと、上記搬送波と上記信号波とを比較してその大小に
応じて、電力変換器のスイッチング素子のON/OFF
制御を行うスイッチング信号を出力する比較器と、を有
するPWM回路において、上記PLL回路から上記パル
スを入力して該パルスの周波数を検出する周波数検出器
と、予め分周比データが格納され、検出された上記周波
数に対応する分周比を検索して出力する分周比テーブル
とを備え、上記PLL回路からの上記位相基準信号のタ
イミングで、上記分周比テーブルから出力される上記分
周比を上記レジスタに入力することを特徴とするPWM
回路。
5. A CPU for outputting a signal wave serving as a command value based on a signal wave reference signal input from the outside and setting control information, and receiving the signal wave reference signal as an input and changing the frequency of the signal. A PLL circuit that outputs a pulse that is a multiple of the frequency of the wave reference signal and a phase reference signal indicating that the signal wave reference signal has a specific phase; and sets the pulse output from the PLL circuit in advance. A frequency divider that divides the frequency by the frequency division ratio held by the register and an output of the frequency divider are set as inputs, and set to a predetermined value preset at the timing of the phase reference signal from the PLL circuit, An up / down counter that repeats up and down counting between predetermined values separately set from the value and outputs a carrier wave; and compares the carrier wave and the signal wave to each other, and according to the magnitude thereof, a power converter. ON / OFF of switching element
A PWM circuit having a comparator that outputs a switching signal for performing control; a frequency detector that receives the pulse from the PLL circuit and detects the frequency of the pulse; A frequency division ratio table for retrieving and outputting a frequency division ratio corresponding to the frequency, wherein the frequency division ratio output from the frequency division table at the timing of the phase reference signal from the PLL circuit. Is input to the register.
circuit.
【請求項6】 分周器がレート・マルチ・バイブレータ
であることを特徴とする請求項1〜5のいずれかに記載
のPWM回路。
6. The PWM circuit according to claim 1, wherein the frequency divider is a rate multivibrator.
【請求項7】 外部から入力される信号波基準信号を基
にした指令値となる信号波の出力と制御情報の設定とを
行うCPUと、上記信号波基準信号を入力として、周波
数が該信号波基準信号の周波数のてい倍となるパルスお
よび該信号波基準信号が特定の位相になったことを示す
位相基準信号を出力するPLL回路と、該PLL回路か
ら出力されるパルスをカウントし、該カウンタ値を上記
PLL回路からの上記位相基準信号のタイミングでリセ
ットするカウンタと、上記信号波基準信号との周波数倍
率が異なる複数種の搬送波パターンが、上記カウンタ出
力と上記搬送波パターンの種類に対応する識別情報とか
ら成るアドレスに対してそれぞれ格納され、予め上記C
PUで設定された上記識別情報により所望の搬送波を出
力するROMと、上記CPUで設定された上記識別情報
を一旦保持する第1のレジスタと、一旦保持された上記
識別情報を上記PLL回路からの上記位相基準信号のタ
イミングで入力して保持し、上記ROMに反映させる第
2のレジスタと、上記搬送波と上記信号波とを比較して
その大小に応じて、電力変換器のスイッチング素子のO
N/OFF制御を行うスイッチング信号を出力する比較
器と、を有することを特徴とするPWM回路。
7. A CPU for outputting a signal wave serving as a command value based on a signal wave reference signal input from the outside and setting control information, and receiving the signal wave reference signal as an input and setting the frequency to the signal A PLL circuit that outputs a pulse that is a multiple of the frequency of the wave reference signal and a phase reference signal indicating that the signal wave reference signal has a specific phase; and counts pulses output from the PLL circuit. A counter for resetting a counter value at the timing of the phase reference signal from the PLL circuit, and a plurality of types of carrier wave patterns having different frequency magnifications from the signal wave reference signal correspond to the counter output and the type of the carrier wave pattern. Is stored for each address consisting of the identification information,
A ROM for outputting a desired carrier according to the identification information set by the PU, a first register for temporarily holding the identification information set by the CPU, and a first register for storing the identification information once held by the PLL circuit. A second register which is inputted and held at the timing of the phase reference signal and reflected in the ROM, and which compares the carrier wave with the signal wave and determines whether or not the switching element of the power converter is in accordance with the magnitude thereof.
And a comparator that outputs a switching signal for performing N / OFF control.
【請求項8】 外部から入力される信号波基準信号を基
にした指令値となる信号波の出力と制御情報の設定とを
行うCPUと、上記信号波基準信号を入力として、周波
数が該信号波基準信号の周波数のてい倍となるパルスお
よび該信号波基準信号が特定の位相になったことを示す
位相基準信号を出力するPLL回路と、該PLL回路か
ら出力されるパルスをカウントし、該カウンタ値を上記
PLL回路からの上記位相基準信号のタイミングでリセ
ットするカウンタと、上記信号波基準信号との周波数倍
率が異なる複数種の搬送波パターンが、該倍率切り替え
のタイミングデータと共に、上記カウンタ出力と上記搬
送波パターンの種類に対応する識別情報とから成るアド
レスに対してそれぞれ格納され、予め上記CPUで設定
された上記識別情報により所望の搬送波を上記タイミン
グデータと共に出力するROMと、上記CPUで設定さ
れた上記識別情報を一旦保持する第1のレジスタと、一
旦保持された上記識別情報を上記ROMからの上記タイ
ミングデータ発生のタイミングで入力して保持し、上記
ROMに反映させる第2のレジスタと、上記搬送波と上
記信号波とを比較してその大小に応じて、電力変換器の
スイッチング素子のON/OFF制御を行うスイッチン
グ信号を出力する比較器と、を有することを特徴とする
PWM回路。
8. A CPU for outputting a signal wave serving as a command value based on a signal wave reference signal input from the outside and setting control information, and receiving the signal wave reference signal as an input and changing the frequency of the signal. A PLL circuit that outputs a pulse that is a multiple of the frequency of the wave reference signal and a phase reference signal indicating that the signal wave reference signal has a specific phase; and counts pulses output from the PLL circuit. A counter for resetting a counter value at the timing of the phase reference signal from the PLL circuit, and a plurality of types of carrier wave patterns having different frequency magnifications from the signal wave reference signal, together with the magnification switching timing data and the counter output, The identification information stored for each address composed of the identification information corresponding to the type of the carrier wave pattern and set in advance by the CPU. A ROM for outputting a desired carrier together with the timing data, a first register for temporarily storing the identification information set by the CPU, and a method for generating the timing data from the ROM by temporarily storing the identification information. A second register which is inputted and held at a timing and reflected in the ROM, and which compares the carrier wave and the signal wave and performs ON / OFF control of a switching element of a power converter according to the magnitude of the comparison. And a comparator for outputting a signal.
【請求項9】 外部から回路に入力される信号波基準信
号のてい倍の周波数で上記回路の出力となるパルスを発
生する電圧制御発振器と、該パルスをカウントするカウ
ンタと、該カウンタの出力信号と上記信号波基準信号と
の位相を比較し、位相差に応じた電圧を出力する位相比
較器と、該位相比較器の出力を平滑し、その出力信号を
上記電圧制御発振器に入力するループフィルタとを有す
るPLL回路と、上記信号波基準信号を基にした指令値
となる信号波の出力と制御情報の設定とを行うCPU
と、上記信号波基準信号との周波数倍率が異なる複数種
の搬送波パターンが、上記カウンタ出力と上記搬送波パ
ターンの種類に対応する識別情報とから成るアドレスに
対してそれぞれ格納され、予め上記CPUで設定された
上記識別情報により所望の搬送波を出力するROMと、
上記CPUで設定された上記識別情報を一旦保持する第
1のレジスタと、一旦保持された上記識別情報を、上記
PLL回路の上記カウンタからの位相情報によるタイミ
ング制御で入力して保持し、上記ROMに反映させる第
2のレジスタと、上記搬送波と上記信号波とを比較して
その大小に応じて、電力変換器のスイッチング素子のO
N/OFF制御を行うスイッチング信号を出力する比較
器と、を有することを特徴とするPWM回路。
9. A voltage controlled oscillator for generating a pulse which is output from the circuit at a frequency which is twice as high as a signal wave reference signal inputted from the outside to the circuit, a counter for counting the pulse, and an output signal of the counter And a phase comparator for comparing the phase of the signal wave reference signal and outputting a voltage corresponding to the phase difference, and a loop filter for smoothing the output of the phase comparator and inputting the output signal to the voltage controlled oscillator And a CPU for outputting a signal wave serving as a command value based on the signal wave reference signal and setting control information
And a plurality of types of carrier patterns having different frequency magnifications with respect to the signal wave reference signal are respectively stored for addresses composed of the counter output and identification information corresponding to the type of the carrier wave pattern, and set in advance by the CPU. A ROM for outputting a desired carrier wave according to the identified identification information,
A first register for temporarily holding the identification information set by the CPU; and the identification information once held by the timing control based on phase information from the counter of the PLL circuit. And a second register for reflecting the carrier wave and the signal wave, and according to the magnitude thereof, the O of the switching element of the power converter is changed.
And a comparator that outputs a switching signal for performing N / OFF control.
【請求項10】 外部から回路に入力される信号波基準
信号のてい倍の周波数で上記回路の出力となるパルスを
発生する電圧制御発振器と、該パルスをカウントするカ
ウンタと、該カウンタ出力を予め設定され保持された分
周比で分周する分周器と、該分周器の出力信号と上記信
号波基準信号との位相を比較し、位相差に応じた電圧を
出力する位相比較器と、該位相比較器の出力を平滑し、
その出力信号を上記電圧制御発振器に入力するループフ
ィルタとを有するPLL回路と、上記信号波基準信号を
基にした指令値となる信号波の出力と制御情報の設定と
を行うCPUと、搬送波の基本パターンが格納され、上
記PLL回路の上記カウンタ出力を入力として上記基本
パターンを所定の回数でカウントして所望の搬送波を出
力するROMと、上記搬送波と上記信号波とを比較して
その大小に応じて、電力変換器のスイッチング素子のO
N/OFF制御を行うスイッチング信号を出力する比較
器と、を有することを特徴とするPWM回路。
10. A voltage controlled oscillator for generating a pulse which is output from the circuit at a frequency which is twice as high as a signal wave reference signal inputted from the outside to the circuit, a counter for counting the pulses, and A frequency divider that divides the frequency by the set and held frequency division ratio, a phase comparator that compares the phases of the output signal of the frequency divider and the signal wave reference signal, and outputs a voltage corresponding to the phase difference; Smoothing the output of the phase comparator,
A PLL circuit having a loop filter for inputting the output signal to the voltage-controlled oscillator, a CPU for outputting a signal wave serving as a command value based on the signal wave reference signal and setting control information, and a carrier wave. A basic pattern is stored, a ROM that receives the counter output of the PLL circuit as an input, counts the basic pattern at a predetermined number of times, and outputs a desired carrier, Accordingly, the O of the switching element of the power converter is
And a comparator that outputs a switching signal for performing N / OFF control.
JP20262298A 1998-07-17 1998-07-17 PWM circuit Expired - Fee Related JP3526407B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20262298A JP3526407B2 (en) 1998-07-17 1998-07-17 PWM circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20262298A JP3526407B2 (en) 1998-07-17 1998-07-17 PWM circuit

Publications (2)

Publication Number Publication Date
JP2000037079A true JP2000037079A (en) 2000-02-02
JP3526407B2 JP3526407B2 (en) 2004-05-17

Family

ID=16460427

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20262298A Expired - Fee Related JP3526407B2 (en) 1998-07-17 1998-07-17 PWM circuit

Country Status (1)

Country Link
JP (1) JP3526407B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1630944A4 (en) * 2003-06-02 2007-04-11 Seiko Epson Corp PULSE CONTROL SYSTEM MODULATED IN DURATION
KR100729845B1 (en) 2006-08-03 2007-06-18 한국전기연구원 Digital PMM Generator Using Clock Division and Clock Synthesis
CN102761288A (en) * 2011-04-28 2012-10-31 株式会社日立制作所 Power conversion device
JP2013042591A (en) * 2011-08-15 2013-02-28 Hitachi Ltd Power converter control device
CN103219971A (en) * 2013-04-19 2013-07-24 上海大学 Sinusoidal pulse width modulation (SPWM) impulse wave production system based on modulating wave period normalization
JP2016082606A (en) * 2014-10-09 2016-05-16 富士通株式会社 Power supply circuit
CN108562878A (en) * 2018-03-29 2018-09-21 南京长峰航天电子科技有限公司 A kind of radar signal simulator broadband frequency agility frequency measuring method
CN114002985A (en) * 2021-11-02 2022-02-01 湖南航天机电设备与特种材料研究所 PWM waveform generation method and device based on FPGA
CN114285302A (en) * 2021-11-11 2022-04-05 中车永济电机有限公司 Frequency doubling switching four-quadrant converter

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1630944A4 (en) * 2003-06-02 2007-04-11 Seiko Epson Corp PULSE CONTROL SYSTEM MODULATED IN DURATION
US7315155B2 (en) 2003-06-02 2008-01-01 Seiko Epson Corporation PWM control system
US7528591B2 (en) 2003-06-02 2009-05-05 Seiko Epson Corporation PWM control system
KR100729845B1 (en) 2006-08-03 2007-06-18 한국전기연구원 Digital PMM Generator Using Clock Division and Clock Synthesis
CN102761288A (en) * 2011-04-28 2012-10-31 株式会社日立制作所 Power conversion device
CN102957376A (en) * 2011-08-15 2013-03-06 株式会社日立制作所 Electric power converter control device and electric power conversion control method
JP2013042591A (en) * 2011-08-15 2013-02-28 Hitachi Ltd Power converter control device
CN103219971A (en) * 2013-04-19 2013-07-24 上海大学 Sinusoidal pulse width modulation (SPWM) impulse wave production system based on modulating wave period normalization
JP2016082606A (en) * 2014-10-09 2016-05-16 富士通株式会社 Power supply circuit
CN108562878A (en) * 2018-03-29 2018-09-21 南京长峰航天电子科技有限公司 A kind of radar signal simulator broadband frequency agility frequency measuring method
CN108562878B (en) * 2018-03-29 2021-08-31 南京长峰航天电子科技有限公司 Broadband frequency agility frequency measurement method for radar signal simulator
CN114002985A (en) * 2021-11-02 2022-02-01 湖南航天机电设备与特种材料研究所 PWM waveform generation method and device based on FPGA
CN114285302A (en) * 2021-11-11 2022-04-05 中车永济电机有限公司 Frequency doubling switching four-quadrant converter
CN114285302B (en) * 2021-11-11 2023-09-08 中车永济电机有限公司 Four-quadrant converter with frequency doubling switching function

Also Published As

Publication number Publication date
JP3526407B2 (en) 2004-05-17

Similar Documents

Publication Publication Date Title
US5727193A (en) Clock signal and line voltage control for efficient power consumption
US5524035A (en) Symmetric clock system for a data processing system including dynamically switchable frequency divider
JPH0766723A (en) Pll frequency synthesizer
JP2007053770A (en) Semiconductor device with reduced jitter, distributed spectrum clock generator, and signal output method
JP3526407B2 (en) PWM circuit
JP3039781B1 (en) Timer circuit
JP3014566B2 (en) PLL circuit
JPH11205134A (en) Lock detection circuit and PLL frequency synthesizer
JP4520937B2 (en) Phase-locked loop circuit having deadlock prevention circuit and deadlock prevention method thereof
JPH08286780A (en) Clock circuit, processor using the same, and processor operating method
US6853222B2 (en) Phase locked loop circuit having main and auxiliary frequency dividers and multiple phase comparisons
JPH04248714A (en) Controllable frequency generator
KR970055559A (en) Noise Reduction Method for PLL Circuit and PLL Circuit
JP2000092851A (en) PWM type rotating machine controller
JPH10322200A (en) Phase lock detection circuit
US6177821B1 (en) Microcomputer with frequency multiplication circuit
JP2980034B2 (en) PLL circuit for low power consumption mode and test method thereof
JP4520380B2 (en) Clock generation circuit
JPH0758636A (en) Frequency synthesizer
CN114337661B (en) Decimal frequency dividing and dynamic phase shifting system based on PLL circuit
JP2000106524A (en) Pll circuit
JP3883812B2 (en) PLL circuit
KR100275442B1 (en) A clock generator using dual port ram
JPH07123001A (en) Clock signal supply circuit
JP2003347931A (en) Semiconductor integrated circuit mounting pll

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040210

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040213

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080227

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090227

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100227

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100227

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110227

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120227

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120227

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130227

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140227

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees