JPH04331471A - Sine wave pwm signal generator - Google Patents
Sine wave pwm signal generatorInfo
- Publication number
- JPH04331471A JPH04331471A JP3016775A JP1677591A JPH04331471A JP H04331471 A JPH04331471 A JP H04331471A JP 3016775 A JP3016775 A JP 3016775A JP 1677591 A JP1677591 A JP 1677591A JP H04331471 A JPH04331471 A JP H04331471A
- Authority
- JP
- Japan
- Prior art keywords
- output
- data
- timing
- sine wave
- interrupt
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Inverter Devices (AREA)
- Control Of Ac Motors In General (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】この発明は、インバータ等で用い
られる正弦波PWM(Pulse Wides Mod
ulation)信号発生装置に関するものである。[Industrial Application Field] This invention applies to sine wave PWM (Pulse Wide Mod) used in inverters, etc.
ulation) signal generator.
【0002】0002
【従来の技術】図11ないし図15は、例えば特開昭6
3−31477号公報に示されたマイコンを使用した従
来の正弦波PWM信号発生装置を示すものであり、図1
1において実線はPWM信号発生のための割り込み処理
の流れを、点線は波形発生データ作成のためのメイン処
理の流れを示しており、図において、(101)は割り
込み処理の際に図12に示したフローチャートに基づく
プログラム制御を行い、メイン処理の際図13及び図1
4に示すフローチャートに基づくプログラム制御を行う
CPU、(102)はタイマ割り込みの入る時に上記C
PU(101)に割り込み要求を出力し、上記CPU(
101)から時間データがセットされ、その時間データ
に基づき上記CPU(101)に割り込み要求を出力す
るタイマ、(103)は二つの波形発生データテーブル
が確保されており、メイン処理によって作成された波形
発生データが格納されるRAM、(104)はメイン処
理の際に上記RAM(103)に格納される波形発生デ
ータを作成するための基準正弦波データなどが格納され
ているROM、(105)は上記RAM(103)にお
ける波形発生データテーブル内の波形発生データアドレ
スを出力するアドレスポインタ、(106)は上記CP
U(101)からのポート出力データを受けてPWM信
号を発生するポートである。[Prior Art] FIGS. 11 to 15 show, for example,
This shows a conventional sine wave PWM signal generator using a microcomputer as disclosed in Publication No. 3-31477, and FIG.
1, the solid line shows the flow of interrupt processing for PWM signal generation, and the dotted line shows the flow of main processing for creating waveform generation data. 13 and 1 during main processing.
A CPU (102) that performs program control based on the flowchart shown in FIG.
An interrupt request is output to the PU (101), and the above CPU (
Time data is set from 101), and a timer outputs an interrupt request to the CPU (101) based on the time data. Two waveform generation data tables are secured at (103), and the waveform generated by the main processing. A RAM (104) stores generated data, a ROM (105) stores reference sine wave data, etc. for creating waveform generation data to be stored in the RAM (103) during main processing. An address pointer that outputs the waveform generation data address in the waveform generation data table in the RAM (103), (106) is the address pointer for the CP
This port receives port output data from U (101) and generates a PWM signal.
【0003】次に、このように構成された正弦波PWM
信号発生装置の動作について説明する。まず、割り込み
処理について図12に基づいて説明する。タイマ(10
2)からCPU(101)に割り込み要求がなされると
、CPU(101)はタイマ割り込みに入る。すると、
ステップ(121)に示すようにアドレスポインタ(1
05)をインクリメントし、ステップ(122)に進み
、RAM(103)の波形発生データテーブルが終りで
あるかどうかを判別し、終わりと判別すればステップ(
123)に、終わりでないと判別すればステップ(12
6)に進む。ステップ(123)ではRAM(103)
内の波形発生データテーブルを切り替える必要があるか
いなかを判定し、必要な場合、つまり、出力周波数また
は出力電圧を変更する場合はステップ(124)にてR
AM(103)内の波形発生データテーブルを切り替え
、必要なければステップ(126)に進む。ステップ(
125)ではアドレスポインタ(105)を初期化し、
ステップ(126)にてアドレスポインタ(105)で
指定されたRAM(103)の波形発生データテーブル
における波形発生データをCPU(101)に読み込み
、ポート出力データとしてポート(106)に出力し、
PWM信号が出力される。その後、ステップ(127)
にてCPU(101)から時間データがタイマ(102
)にセットされ、割り込み処理を終了する。以後、タイ
マ(102)がセットされた時間データに基づいたタイ
ミングにて割り込み要求がなされ、割り込み処理に入り
、PWM信号をポート(106)から発生するものであ
る。Next, the sine wave PWM constructed in this way
The operation of the signal generator will be explained. First, interrupt processing will be explained based on FIG. 12. Timer (10
When an interrupt request is made from 2) to the CPU (101), the CPU (101) enters a timer interrupt. Then,
As shown in step (121), the address pointer (1
05), and proceeds to step (122), where it is determined whether the waveform generation data table in RAM (103) has reached its end. If it is determined that it has ended, step (
123), if it is determined that it is not the end, step (12
Proceed to 6). In step (123), RAM (103)
It is determined whether or not it is necessary to switch the waveform generation data table in
The waveform generation data table in AM (103) is switched, and if it is not needed, the process proceeds to step (126). Step (
125) initializes the address pointer (105),
In step (126), the waveform generation data in the waveform generation data table of the RAM (103) specified by the address pointer (105) is read into the CPU (101), and outputted to the port (106) as port output data,
A PWM signal is output. Then step (127)
The time data is sent from the CPU (101) to the timer (102).
) and terminates interrupt processing. Thereafter, an interrupt request is made at a timing based on the time data set by the timer (102), interrupt processing is started, and a PWM signal is generated from the port (106).
【0004】次に、RAM(103)の波形発生データ
テーブルに波形発生データを格納する処理(メイン処理
)について図13及び図14に基づいて説明する。図1
3におけるステップ(131)にて周波数及び電圧に変
更があるかいなかを判定し、変更がある場合はステップ
(132)にてデータ作成プログラムを呼び出す。この
データ作成プログラムが呼び出されると、図14に示し
たフローチャートに基づき処理される。つまり、ステッ
プ(141)にてタイマ割り込みで使用されていない方
のRAM(103)における波形発生データテーブルを
選択する。次に、ステップ(142)にて周波数データ
、電圧データ、キャリア周波数データ、及びROM(1
04)内に格納されている基準周波数データより、三角
波比較方式により30゜分の波形発生データを作成し、
ステップ(143)に進む。ステップ(143)ではこ
の波形発生データを60゜分のデータに展開し、ステッ
プ(144)にてマイコンが処理しきれない時間的に短
いデータをカットする。データ作成が終了したら、ステ
ップ(145)にてテーブルが切り替えが可能であるこ
とを示すフラグを立て図13に示すメイン処理に戻る。
これによってRAM(103)の波形発生データテーブ
ルに波形発生データが書き替えられるものである。Next, the process (main process) of storing waveform generation data in the waveform generation data table of the RAM (103) will be explained based on FIGS. 13 and 14. Figure 1
In step (131) in step 3, it is determined whether there is a change in frequency and voltage, and if there is a change, a data creation program is called in step (132). When this data creation program is called, processing is performed based on the flowchart shown in FIG. That is, in step (141), the waveform generation data table in the RAM (103) that is not used by the timer interrupt is selected. Next, in step (142), frequency data, voltage data, carrier frequency data, and ROM (1
04) Create waveform generation data for 30° using the triangular wave comparison method from the reference frequency data stored in the
Proceed to step (143). In step (143), this waveform generation data is developed into 60° worth of data, and in step (144), time-short data that cannot be processed by the microcomputer is cut. When the data creation is completed, a flag indicating that the table can be changed is set in step (145) and the process returns to the main process shown in FIG. This causes the waveform generation data to be rewritten in the waveform generation data table in the RAM (103).
【0005】このように構成された正弦波PWM信号発
生装置は、上記したように動作し、タイマ割り込み処理
が発生するタイミングは、図15に矢印で示すようにな
り、1キャリア周期の間に4回の割り込みが発生してい
るものである。The sine wave PWM signal generator configured as described above operates as described above, and the timing at which timer interrupt processing occurs is as shown by the arrow in FIG. This is the one that caused the interrupt.
【0006】図16及び図17は例えば特開昭61−1
50671号公報に示された従来のパルス幅変調インバ
ータの制御装置を示すものであり、図16において、(
1)はマイクロプロセッサ、(2)はPWMパルスパタ
ーンの時間に関するデータを記憶するメモリ、(3)は
このメモリに記憶されたデータをラッチするI/Oポー
ト、(4)及び(5)はこのI/Oポートでラッチされ
たPWMパルスパターンの時間データを各々セットする
第1及び第2のカウンタ、(6)はこの第1のカウンタ
からの出力がセット信号として入力され、上記第2のカ
ウンタ(5)からの出力がリセット信号として入力され
るフリップフロップ、(20)は上記マイクロプロセッ
サ(1)、メモリ(2)、I/Oポート(3)、第1及
び第2のカウンタ(4)(5)並びにフリップフロップ
(6)によって構成された第1のパルス形成回路、(2
1)はこの第1のパルス形成回路と同様の構成を持った
第2のパルス形成回路、(7)は上記第1及び第2のカ
ウンタ(4)(5)に入力するためのクロック信号を発
生する発振器、(8)はこの発振器からの出力を所望の
キャリフ周波数に分周して分周信号を出力する分周器、
(9)はこの分周器からの分周信号により動作するnビ
ットシフトレジスタ、(10)及び(11)はこのnビ
ットシフトレジスタからの出力によって上記第1及び第
2のパルス形成回路(20)(21)の第1及び第2の
カウンタ(4)(5)に入力するためのロード信号及び
マイクロプロセッサ(1)に入力するための割り込み信
号を発生する第1及び第2のタイミング信号発生回路、
(12)は上記第1及び第2のパルス形成回路(20)
(21)のフリップフロップ(6)からの出力を論理和
するOR回路である。FIGS. 16 and 17 are, for example, Japanese Patent Laid-Open No. 61-1
This shows a conventional pulse width modulation inverter control device disclosed in Japanese Patent No. 50671, and in FIG.
1) is a microprocessor, (2) is a memory that stores data related to the time of the PWM pulse pattern, (3) is an I/O port that latches the data stored in this memory, and (4) and (5) are this First and second counters each setting the time data of the PWM pulse pattern latched at the I/O port, the output from the first counter is input as a set signal, and the output from the first counter is input to the second counter. (5) A flip-flop whose output is input as a reset signal; (20) the microprocessor (1), memory (2), I/O port (3), first and second counters (4); (5) and a first pulse forming circuit constituted by a flip-flop (6), (2
1) is a second pulse forming circuit having the same configuration as this first pulse forming circuit, and (7) is a clock signal to be input to the first and second counters (4) and (5). (8) is a frequency divider that divides the output from this oscillator to a desired carrier frequency and outputs a frequency-divided signal;
(9) is an n-bit shift register operated by the frequency division signal from this frequency divider, and (10) and (11) are the first and second pulse forming circuits (20) operated by the output from this n-bit shift register. ) (21) first and second timing signal generation for generating load signals for input to the first and second counters (4) and (5) and interrupt signals for input to the microprocessor (1); circuit,
(12) is the first and second pulse forming circuit (20)
This is an OR circuit that logically adds the outputs from the flip-flop (6) of (21).
【0007】次に、このように構成された従来のパルス
幅変調インバータの制御装置の動作について図17に示
した波形図に従って説明する。ある時間基準点から各パ
ルスの立ち上がり時点及び立ち下がり時点までの時間に
関するデータt11、t12、t21、t22、t31
、t32、t41、t42、t51、t52、t61、
t62のうちのt11、t12、t31、t32、t5
1、t52は第1のパルス形成回路(20)のメモリ(
2)に、またt21、t22、t41、t42、t61
、t62は第2のパルス形成回路(21)のメモリ(2
)に予め記憶されている。今、t1、t2間でnビット
シフトレジスタ(9)からの第1出力C1を「H」、第
2出力C2を「L」となるようにプリセットして、分周
器(8)からの分周信号Bがnビットシフトレジスタ(
9)に入力されるとその第1及び第2の出力C1及びC
2は図17のC1及びC2に示すようになり、第1のタ
イミング信号発生回路(10)から時刻t1、t3、t
5、t7で出力される割り込み信号E1(ロード信号D
1)が出力され、この割り込み信号E1によって第1の
パルス形成回路(20)のマイクロプロセッサ(1)に
対して割り込みがかかる。Next, the operation of the conventional pulse width modulation inverter control device configured as described above will be explained with reference to the waveform diagram shown in FIG. 17. Data t11, t12, t21, t22, t31 regarding the time from a certain time reference point to the rising and falling points of each pulse
, t32, t41, t42, t51, t52, t61,
t11, t12, t31, t32, t5 of t62
1, t52 is the memory (
2), also t21, t22, t41, t42, t61
, t62 is the memory (2) of the second pulse forming circuit (21).
) is stored in advance. Now, preset the first output C1 from the n-bit shift register (9) to "H" and the second output C2 to "L" between t1 and t2, and The frequency signal B is transferred to an n-bit shift register (
9), its first and second outputs C1 and C
2 is as shown in C1 and C2 in FIG.
5, interrupt signal E1 (load signal D
1) is output, and the microprocessor (1) of the first pulse forming circuit (20) is interrupted by this interrupt signal E1.
【0008】今、便宜上、第1のパルス形成回路(20
)のメモリ(2)から読み出されるデータの最初をt3
1とすると、時刻t1で出力される割り込み信号E1に
より、データt31が時刻t1からマイクロプロセッサ
(1)の固有の処理時間θ経過後にI/Oポート(3)
でラッチされ、続いてデータt32がメモリ(2)から
読み出され、処理時間θ経過後にI/Oポート(3)で
ラッチされる。このI/Oポート(3)からの出力され
るF1(t31)及びG1(t32)は、第1のタイミ
ング信号発生回路(10)から時刻t3で出力されるロ
ード信号D1が「H」になると、第1及び第2のカウン
タ(4)及び(5)にそれぞれセットされる。第1及び
第2のカウンタ(4)及び(5)は、発振器(7)から
出力されるクロック信号Aにより、上記したロード信号
D1の立ち下がり時点からカウントダウンを開始し、時
間t31をカウントすると、第1のカウンタ(4)から
フリップフロップ(6)のS入力にセット信号が与えら
れ、フリップフロップ(6)の出力Qは「H」となる。
一方、第2のカウンタ(5)で時間t32をカウントダ
ウンすると、第2のカウンタ(5)からフリップフロッ
プ(6)のR入力にリセット信号が与えられ、フリップ
フロップ(6)の出力Qが「H」から「L」に反転する
。つまり、t32−t31の期間でフリップフロップ(
6)の出力Qが「H」となり、図17のHに示す(3)
のパルスが出力されることになる。Now, for convenience, the first pulse forming circuit (20
) at t3.
1, data t31 is sent to the I/O port (3) after the specific processing time θ of the microprocessor (1) has elapsed from time t1 due to the interrupt signal E1 output at time t1.
The data t32 is then read out from the memory (2), and after the processing time θ has passed, it is latched at the I/O port (3). F1 (t31) and G1 (t32) output from this I/O port (3) are generated when the load signal D1 output from the first timing signal generation circuit (10) at time t3 becomes "H". , are set in the first and second counters (4) and (5), respectively. The first and second counters (4) and (5) start counting down from the fall of the load signal D1 described above using the clock signal A output from the oscillator (7), and when they count time t31, A set signal is applied from the first counter (4) to the S input of the flip-flop (6), and the output Q of the flip-flop (6) becomes "H". On the other hand, when the second counter (5) counts down the time t32, a reset signal is applied from the second counter (5) to the R input of the flip-flop (6), and the output Q of the flip-flop (6) becomes "H". ” to “L”. In other words, the flip-flop (
The output Q of 6) becomes "H", which is shown in H in FIG. 17 (3)
pulses will be output.
【0009】ところで、時刻t3では第1のタイミング
信号発生回路(10)から次の割り込み信号E1が出力
されているので、第1のパルス形成回路(20)のマイ
クロプロセッサ(1)の処理時間θ毎にデータt51及
びt52がI/Oポート(3)に順次ラッチされる。I
/Oポート(3)からのデータF1(t51)及びG1
(t52)は時刻t5で出力される第1のタイミング信
号発生回路(10)からのロード信号D1によって第1
及び第2のカウンタ(4)及び(5)にセットされ、上
記した場合と同様にカウントダウンを開始する。その結
果、フリップフロップ(6)からの出力Qは、t52−
t51の期間「H」となり、図17に示すHにおける(
5)のパルスが出力される。また、データt11及びt
12については、時刻t1で出力される第1のタイミン
グ信号発生回路(10)からのロード信号D1により、
t12−t11の期間でフリップフロップ(6)からの
出力Qが「H」となり、図17に示すHの(1)のパル
スが出力される。By the way, since the next interrupt signal E1 is output from the first timing signal generating circuit (10) at time t3, the processing time θ of the microprocessor (1) of the first pulse forming circuit (20) Data t51 and t52 are sequentially latched to the I/O port (3) at each time. I
Data F1 (t51) and G1 from /O port (3)
(t52) is activated by the load signal D1 from the first timing signal generation circuit (10) output at time t5.
and second counters (4) and (5), and start counting down in the same way as in the above case. As a result, the output Q from the flip-flop (6) is t52−
The period t51 becomes “H”, and (
5) pulse is output. In addition, data t11 and t
12, due to the load signal D1 from the first timing signal generation circuit (10) output at time t1,
During the period t12-t11, the output Q from the flip-flop (6) becomes "H", and the pulse (1) of H shown in FIG. 17 is output.
【0010】一方、第2のタイミング信号発生回路(1
1)からは、時刻t1、t3、t5で出力される第1の
タイミング信号発生回路(10)からの割り込み信号E
1よりもtc’/2の時間差遅れて時刻t2、t4、t
6で出力される割り込み信号E2(ロード信号D2)が
出力され、この割り込み信号E2によって第2のパルス
形成回路(21)のマイクロプロセッサ(1)に対して
割り込みがかかる。今、便宜上、第2のパルス形成回路
(21)のメモリ(2)から読み出されるデータの最初
をt41とすると、時刻t2で出力される割り込み信号
E2により、データt41が時刻t2からマイクロプロ
セッサ(1)の固有の処理時間θ経過後にこのデータt
41がI/Oポート(3)でラッチされ、続いてデータ
t42がメモリ(2)から読み出され、処理時間θ経過
後にこのデータt42がI/Oポート(3)でラッチさ
れる。このI/Oポート(3)からの出力されるF2(
t41)及びG2(t42)は、第2のタイミング信号
発生回路(11)から時刻t4で出力されるロード信号
D2が「H」になると、第1及び第2のカウンタ(4)
及び(5)にそれぞれセットされる。On the other hand, the second timing signal generation circuit (1
1), the interrupt signal E from the first timing signal generation circuit (10) is output at times t1, t3, and t5.
Time t2, t4, t after a time difference of tc'/2 than 1
An interrupt signal E2 (load signal D2) is output at 6, and this interrupt signal E2 interrupts the microprocessor (1) of the second pulse forming circuit (21). Now, for convenience, let us assume that the beginning of the data read from the memory (2) of the second pulse forming circuit (21) is t41. By the interrupt signal E2 outputted at time t2, data t41 is changed from time t2 to microprocessor (1). ) after the unique processing time θ has elapsed, this data t
41 is latched at the I/O port (3), then data t42 is read from the memory (2), and after the processing time θ has elapsed, this data t42 is latched at the I/O port (3). This I/O port (3) outputs F2 (
t41) and G2 (t42), when the load signal D2 output from the second timing signal generation circuit (11) at time t4 becomes "H", the first and second counters (4)
and (5), respectively.
【0011】第1及び第2のカウンタ(4)及び(5)
は、発振器(7)から出力されるクロック信号Aにより
、上記したロード信号D2の立ち下がり時点からカウン
トダウンを開始し、時間t41をカウントすると、第1
のカウンタ(4)からフリップフロップ(6)のS入力
にセット信号が与えられ、フリップフロップ(6)の出
力Qは「H」となる。
一方、第2のカウンタ(5)で時間t42をカウントダ
ウンすると、第2のカウンタ(5)からフリップフロッ
プ(6)のR入力にリセット信号が与えられ、フリップ
フロップ(6)の出力Qが「H」から「L」に反転する
。つまり、t42−t41の期間でフリップフロップ(
6)の出力Qが「H」となり、図17のIに示す(4)
のパルスが出力されることになる。[0011] First and second counters (4) and (5)
starts counting down from the fall of the load signal D2 described above using the clock signal A output from the oscillator (7), and when the time t41 is counted, the first
A set signal is applied from the counter (4) to the S input of the flip-flop (6), and the output Q of the flip-flop (6) becomes "H". On the other hand, when the second counter (5) counts down the time t42, a reset signal is applied from the second counter (5) to the R input of the flip-flop (6), and the output Q of the flip-flop (6) becomes "H". ” to “L”. In other words, the flip-flop (
The output Q of 6) becomes “H” and is shown in I of FIG. 17 (4)
pulses will be output.
【0012】このようにして、データt61及びt62
並びにデータt21及びt22についても同様にして図
17に示すIの(6)及び(2)のパルスがフリップフ
ロップ(6)から出力される。そして、第1のパルス形
成回路(20)のフリップフロップ(6)からの図17
のHに示すパルスと第2のパルス形成回路(21)のフ
リップフロップ(6)からの図17のIに示すパルスと
がOR回路(12)によって論理和をとられ、図17の
Jに示すパルス列が出力され、パルス幅変調信号が得ら
れることになる。In this way, data t61 and t62
Similarly, for the data t21 and t22, the pulses (6) and (2) of I shown in FIG. 17 are output from the flip-flop (6). 17 from the flip-flop (6) of the first pulse forming circuit (20).
The pulse shown at H in FIG. 17 and the pulse shown at I in FIG. 17 from the flip-flop (6) of the second pulse forming circuit (21) are logically summed by the OR circuit (12), and the pulse shown at J in FIG. A pulse train is output and a pulse width modulated signal is obtained.
【0013】[0013]
【発明が解決しようとする課題】しかるに、図11に示
した従来の正弦波PWM信号発生装置は、1キャリア周
期の間に割り込み処理が4回入ることになり、ソフトウ
エアの負担が大きく、ポート(106)への出力もソフ
トウエアで行っているため、出力タイミングの精度が得
難いものであった。また、RAM(103)に大きな波
形発生データテーブルを2つ持たせてあるが、RAM容
量を大きくできないため、他プログラムが共存する場合
、大きな制約を受けるものである。さらに、出力周波数
の周期、例えば50Hzの場合20ms間隔で、電圧及
び周波数を変えることができるが、モータのベクトル制
御など数百μsで周波数及び電圧を変化させる必要があ
るものにおいては、使用できないものである。However, in the conventional sine wave PWM signal generation device shown in FIG. Since output to (106) is also performed by software, it is difficult to obtain output timing accuracy. In addition, although the RAM (103) has two large waveform generation data tables, since the RAM capacity cannot be increased, there are significant restrictions when other programs coexist. Furthermore, although it is possible to change the voltage and frequency at intervals of 20 ms in the case of the output frequency cycle, for example 50 Hz, it cannot be used in applications where the frequency and voltage need to be changed over hundreds of microseconds, such as motor vector control. It is.
【0014】また、図16に示した従来のパルス幅変調
インバータ装置の制御装置にあっては、一つのパルス列
を作成するために複数、少なくとも2つのマイクロプロ
セッサ(1)を必要としているため、ハードウエアの構
成が複雑かつコストが高いものであった。Furthermore, the conventional control device for the pulse width modulation inverter device shown in FIG. 16 requires a plurality of, at least two, microprocessors (1) to create one pulse train. The structure of the wear was complicated and the cost was high.
【0015】この発明は、上記した点に鑑みてなされた
ものであり、RAMに波形発生データテーブルを設ける
必要がなく、構成が簡単にしてマイクロプロセッサを1
つで実現可能であり、出力電圧と周波数をN/2・キャ
リア周波数毎に変更することも可能な正弦波PWM信号
発生装置を得ることを目的としているものである。The present invention has been made in view of the above-mentioned points, and eliminates the need to provide a waveform generation data table in the RAM, simplifying the configuration, and reducing the need for a single microprocessor.
The object of the present invention is to obtain a sine wave PWM signal generator which can be realized by using the following method and which can also change the output voltage and frequency every N/2 carrier frequency.
【0016】[0016]
【課題を解決するための手段】この発明に係わる正弦波
PWM信号発生装置は、三角波キャリアの最上点を含む
近傍の時点あるいは最下点を含む近傍の時点の少なくと
も一方の時点において割り込み処理を発生し、N回(N
は2以上の整数)の割り込み処理毎に各相の出力変化タ
イミングを演算する演算手段と、この演算手段によって
求められた各相の出力変化タイミングを、割り込み処理
が発生する毎に出力制御するタイミング設定手段と、こ
のタイミング設定手段によって設定された出力変化タイ
ミングを記憶し、この記憶された出力変化タイミングに
おいて出力を変化させるためのPWM信号を出力するた
めの出力制御手段とを設けたものである。[Means for Solving the Problems] A sine wave PWM signal generation device according to the present invention generates an interrupt process at at least one of a time point in the vicinity of the highest point of a triangular wave carrier or a time point in the vicinity of a triangular wave carrier including the lowest point. and N times (N
is an integer greater than or equal to 2); and a calculation means for calculating the output change timing of each phase for each interrupt processing; and a timing for output control of the output change timing of each phase obtained by the calculation means each time an interrupt processing occurs. The device is provided with a setting means and an output control means for storing the output change timing set by the timing setting means and outputting a PWM signal for changing the output at the stored output change timing. .
【0017】[0017]
【作用】この発明においては、演算手段が三角波キャリ
アの最上点を含む近傍の時点あるいは最下点を含む近傍
の時点の少なくとも一方の時点において割り込み処理を
発生し、N回(Nは2以上の整数)の割り込み処理毎に
各相の出力変化タイミングを演算し、タイミング設定手
段が演算手段によって求められた各相の出力変化タイミ
ングを、割り込み処理が発生する毎に出力制御手段に設
定し、PWM信号を出力せしめているものである。[Operation] In this invention, the arithmetic means generates an interrupt process at at least one of the points in the vicinity of the top point of the triangular wave carrier or the points in the vicinity of the bottom point of the triangular wave carrier, N times (N is 2 or more). The output change timing of each phase is calculated for each interrupt processing (an integer), and the timing setting means sets the output change timing of each phase obtained by the calculation means to the output control means every time an interrupt processing occurs, and the PWM This is what outputs the signal.
【0018】[0018]
【実施例】以下にこの発明の一実施例を図1ないし図1
0に基づいて説明する。図1において(101)は割り
込み処理の際に図3ないし図5に示したフローチャート
に基づくプログラム制御を行い、メイン処理の際に図7
に示すフローチャートに基づくプログラム制御を行うC
PUで、図2に示すように三角波キャリア(201)の
最上点を含む近傍の時点あるいは最下点を含む近傍の時
点の少なくとも一方の時点(図2のおいては両方の時点
)において割り込み処理(図2において矢印にて示す)
を発生し、N回(Nは2以上の整数)の割り込み処理毎
に各相の出力変化タイミング、つまり正弦波データと三
角波キャリア(201)を比較して各相のスイッチング
素子のオンまたはオフのタイミングを演算する演算手段
と、この演算手段によって求められた各相の出力変化タ
イミングを、割り込み処理が発生する毎に出力制御する
タイミング設定手段との機能を有するものである。[Embodiment] An embodiment of the present invention will be described below with reference to FIGS. 1 and 1.
The explanation will be based on 0. In FIG. 1, (101) performs program control based on the flowcharts shown in FIGS. 3 to 5 during interrupt processing, and performs program control based on the flowcharts shown in FIGS.
C that performs program control based on the flowchart shown in
As shown in FIG. 2, the PU performs interrupt processing at at least one of the points near the top of the triangular wave carrier (201) or the bottom of the triangular wave carrier (201) (in both cases in FIG. 2). (Indicated by arrow in Figure 2)
is generated, and the output change timing of each phase, that is, the sine wave data and the triangular wave carrier (201) are compared every N times (N is an integer of 2 or more) to determine whether the switching element of each phase is turned on or off. It has the functions of a calculation means for calculating timing, and a timing setting means for controlling the output change timing of each phase determined by the calculation means every time an interrupt process occurs.
【0019】(102)はタイマ、(103a)は上記
出力変化タイミングの演算に必要な電圧倍率データ、つ
まり実際の出力電圧を出力周波数に対しV/Fパターン
で予め設定されている出力電圧のデータである標準出力
電圧データより決める際の係数であるデータを格納する
第1のRAM、(103b)は上記CPU(101)の
演算手段によって求められた出力変化タイミングを一時
記憶する記憶手段を構成する第2のRAM、(104)
は正弦波データと三角波キャリア(201)を比較して
上記各相の出力変化タイミングを得る三角波比較方式に
おける正弦波データ作成の基準となる基準正弦波データ
と、上記標準出力電圧データなどを格納しているROM
、(105)はこのROM(104)内に記憶された基
準正弦波データをアクセスするアドレスを示すアドレス
ポインタ、(106)はPWM信号を出力するポート、
(107)は上記CPU(101)のタイミング設定手
段によって設定された出力変化タイミングや割り込みタ
イミングを記憶するレジスタ(108)を有し、このレ
ジスタ(108)に記憶された出力変化タイミングにお
いて出力を変化させて上記ポート(106)に出力した
り、上記CPU(101)に割り込み要求を出力する出
力制御手段、(109)は外部機器やセンサなどと情報
の入出力を行うI/Oである。(102) is a timer, and (103a) is voltage multiplication data necessary for calculating the output change timing, that is, output voltage data that is preset in a V/F pattern with respect to the actual output voltage and the output frequency. A first RAM (103b) that stores data that is a coefficient when determining from standard output voltage data, which is a standard output voltage data, constitutes a storage means that temporarily stores the output change timing determined by the calculation means of the CPU (101). Second RAM, (104)
stores the reference sine wave data that is the standard for creating sine wave data in the triangular wave comparison method that compares the sine wave data and the triangular wave carrier (201) to obtain the output change timing of each phase, the standard output voltage data, etc. ROM
, (105) is an address pointer indicating an address for accessing the reference sine wave data stored in this ROM (104), (106) is a port that outputs a PWM signal,
(107) has a register (108) that stores the output change timing and interrupt timing set by the timing setting means of the CPU (101), and changes the output at the output change timing stored in this register (108). Output control means (109) is an I/O unit that inputs and outputs information to and from external devices, sensors, and the like.
【0020】次に、この様に構成された正弦波PWM信
号発生装置の動作について説明する。まず、割り込み処
理について図3に基づいて説明する。まず、ステップ(
301)にてアドレスポインタ(105)が示すROM
(104)のアドレスから基準正弦波データをCPU(
101)が読み込む。ステップ(302)にてこの読み
込まれた基準正弦波データに、ROM(104)内に格
納され、メイン処理によって第1のRAM(103a)
内に移された標準出力電圧データと、第1のRAM(1
03a)内に格納された電圧倍率データを乗算し、この
乗算結果と三角波キャリア(201)に基づいて、割り
込みタイミング間のうちの三角波キャリア(201)の
上昇中における出力変化タイミングを演算し、この演算
結果をステップ(303)にて第2のRAM(103b
)に記憶する。次に、ステップ(304)にて三角キャ
リア(201)の下降中の出力変化タイミングを演算す
るために、ステップ(302)にて得られた出力変化タ
イミングのデータから三角キャリア(201)のキャリ
ア周期を減算し、この減算結果をステップ(305)に
て第2のRAM(103b)に記憶させる。次に、他の
相の出力変化タイミングを演算するために、ステップ(
302)にてアドレスポインタ(105)を位相差に相
当する値だけ進め、ステップ(307)にてこのアドレ
スポインタ(105)が示すROM(104)内に格納
された基準正弦波データを読み込む。Next, the operation of the sine wave PWM signal generator constructed in this manner will be explained. First, interrupt processing will be explained based on FIG. 3. First, step (
301), the ROM indicated by the address pointer (105)
The reference sine wave data is sent from the address of (104) to the CPU (
101) is read. The reference sine wave data read in step (302) is stored in the ROM (104), and is stored in the first RAM (103a) by main processing.
The standard output voltage data transferred to the first RAM (1
03a), and based on this multiplication result and the triangular wave carrier (201), calculate the output change timing during the rise of the triangular wave carrier (201) between interrupt timings. The calculation result is stored in the second RAM (103b) in step (303).
). Next, in step (304), in order to calculate the output change timing during the descent of the triangular carrier (201), the carrier period of the triangular carrier (201) is calculated from the output change timing data obtained in step (302). is subtracted, and the subtraction result is stored in the second RAM (103b) in step (305). Next, in order to calculate the output change timing of other phases, step (
At step 302), the address pointer (105) is advanced by a value corresponding to the phase difference, and at step (307), the reference sine wave data stored in the ROM (104) indicated by this address pointer (105) is read.
【0021】そして、ステップ(308)にてこの読み
込まれた基準正弦波データに、第1のRAM(103a
)内に格納された標準出力電圧データと、第1のRAM
(103a)内に格納された電圧倍率データを乗算し、
この乗算結果と三角波キャリア(201)に基づいて、
割り込みタイミング間のうちの三角波キャリア(201
)の上昇中における出力変化タイミングを演算し、この
演算結果をステップ(309)にて第2のRAM(10
3b)に記憶する。次に、ステップ(310)にて三角
キャリア(201)の下降中の出力変化タイミングを演
算するために、ステップ(308)にて得られた出力変
化タイミングのデータから三角キャリア(201)のキ
ャリア周期を減算し、この減算結果をステップ(311
)にて第2のRAM(103b)に記憶させる。以上の
ステップにて三角波キャリア(201)内のタイミング
がすべて求まる。
次に、ステップ(312)にて出力周波数に対応した量
だけアドレスポインタ(105)のアドレスを進め、ス
テップ(313)にてアドレスポインタ(105)内の
アドレスがテーブルの範囲を越えたかいなかを判定し、
越えている場合は、ステップ(314)に進み、アドレ
スポインタ(105)を初期化する。このようにして割
り込み処理毎における各相の出力変化タイミングが求ま
るものである。[0021] Then, in step (308), the read reference sine wave data is stored in the first RAM (103a).
) and the standard output voltage data stored in the first RAM.
(103a) is multiplied by the voltage magnification data stored in
Based on this multiplication result and the triangular wave carrier (201),
Triangular wave carrier (201
) is calculated, and the calculation result is stored in the second RAM (10) in step (309).
3b). Next, in step (310), in order to calculate the output change timing during the descent of the triangular carrier (201), the carrier period of the triangular carrier (201) is calculated from the output change timing data obtained in step (308). is subtracted, and this subtraction result is used in step (311
) in the second RAM (103b). Through the above steps, all timings within the triangular wave carrier (201) are determined. Next, in step (312), the address of the address pointer (105) is advanced by an amount corresponding to the output frequency, and in step (313), it is determined whether the address in the address pointer (105) exceeds the range of the table. death,
If it exceeds, the process advances to step (314) and the address pointer (105) is initialized. In this way, the output change timing of each phase is determined for each interrupt process.
【0022】一方、CPU(101)におけるタイミン
グ設定手段は図4に示すフローチャートに基づいて動作
する。まず、ステップ(401)にて三角波キャリア(
201)が上昇中のタイミングを設定するのか、下降中
のタイミングを設定するのかを判定し、上昇中であれば
ステップ(402)に、下降中であればステップ(40
4)に進む。ステップ(402)では、図3にて示した
CPU(101)の演算手段における動作のステップ(
303)で記憶された出力変化タイミングを出力制御手
段(107)のレジスタ(108)にセットし、ステッ
プ(403)にて図3にて示したCPU(101)の演
算手段における動作のステップ(309)で記憶された
出力変化タイミングを出力制御手段(107)のレジス
タ(108)にセットする。同様に下降中の場合は、ス
テップ(404)及び(405)によって図3にて示し
たCPU(101)の演算手段における動作のステップ
(305)及び(311)で記憶された出力変化タイミ
ングを出力制御手段(107)のレジスタ(108)に
セットする。この様にしてCPU(101)の演算手段
によって割り込み処理毎における各相の出力変化タイミ
ングが求められたものを、タイミング設定手段によって
出力制御手段のレジスタ(108)にセットできるもの
である。On the other hand, the timing setting means in the CPU (101) operates based on the flowchart shown in FIG. First, in step (401), the triangular wave carrier (
201) determines whether to set the timing while ascending or descending, and if it is ascending, the step (402) is set, and if it is descending, the step (40) is set.
Proceed to 4). In step (402), the operation step (
The output change timing stored in step (303) is set in the register (108) of the output control means (107), and in step (403) the operation step (309) in the calculation means of the CPU (101) shown in FIG. ) is set in the register (108) of the output control means (107). Similarly, when descending, steps (404) and (405) output the output change timing stored in steps (305) and (311) of the operation in the calculation means of the CPU (101) shown in FIG. Set in the register (108) of the control means (107). In this way, the output change timing of each phase determined for each interrupt process by the arithmetic means of the CPU (101) can be set in the register (108) of the output control means by the timing setting means.
【0023】次に、上記したCPU(101)の演算手
段及びタイミング設定手段の処理が、割り込み処理内で
どのように実行されるかを図5を用いて説明する。まず
、割り込み要求が発生し、割り込み処理に入ると、ステ
ップ(501)にて割り込み処理カウンタ(図示せず)
をカウンタアップし、ステップ(502)にてカウンタ
の値に応じて分岐する。カウンタのカウント値が1であ
ると、ステップ(503)に進み、CPU(101)の
演算手段の処理、つまり図3に示したフローチャートに
基づいた処理を行い、ステップ(505)に進む。また
、ステップ(502)でカウンタの値が2及び3の場合
はステップ(505)に進み、カウントの値が4の時は
ステップ(504)にてカウンタのカウント値を1にし
てステップ(505)に進む。ステップ(505)では
、CPU(101)のタイミング設定手段の処理、つま
り図4に示したフローチャートに基づいた処理を行ない
、割り込み処理を終了する。Next, how the processing of the arithmetic means and timing setting means of the CPU (101) described above is executed within the interrupt processing will be explained using FIG. First, when an interrupt request occurs and interrupt processing begins, an interrupt processing counter (not shown) is set in step (501).
is incremented, and the process branches at step (502) according to the value of the counter. If the count value of the counter is 1, the process proceeds to step (503), where the processing by the calculation means of the CPU (101), that is, the process based on the flowchart shown in FIG. 3, is performed, and the process proceeds to step (505). Also, if the counter values are 2 and 3 in step (502), the process proceeds to step (505), and if the count value is 4, the counter value is set to 1 in step (504), and step (505) is performed. Proceed to. In step (505), the processing of the timing setting means of the CPU (101), that is, the processing based on the flowchart shown in FIG. 4, is performed, and the interrupt processing is ended.
【0024】これらの処理が実行される順序をタイミン
グ的に現わすと、図6に示すようになる。つまり、第1
回目の割り込み発生タイミングが発生すると、演算手段
の処理−タイミング設定手段の処理−メイン処理−2回
目の割り込み発生タイミングの発生−タイミング設定手
段の処理−メイン処理−3回目の割り込み発生タイミン
グの発生−タイミング設定手段の処理−メイン処理−4
回目の割り込み発生タイミングの発生−タイミング設定
手段の処理−メイン処理−1回目の割り込み発生タイミ
ングの発生−演算手段の処理−と行われるものであり、
出力変化タイミングの演算はN回毎、この実施例におい
ては4回毎に行い、毎回の処理は記憶手段である第2の
RAM(103b)に記憶された出力変化タイミングデ
ータを設定している。The order in which these processes are executed is shown in FIG. 6 in terms of timing. In other words, the first
When the second interrupt generation timing occurs, the processing of the calculation means - the processing of the timing setting means - the main processing - the generation of the second interrupt generation timing - the processing of the timing setting means - the main processing - the generation of the third interrupt generation timing - Processing of timing setting means - Main processing - 4
This is performed as follows: generation of the first interrupt generation timing - processing of the timing setting means - main processing - generation of the first interrupt generation timing - processing of the calculation means.
The calculation of the output change timing is performed every N times, or every 4 times in this embodiment, and each time the output change timing data stored in the second RAM (103b), which is a storage means, is set.
【0025】そして、上記のようにCPU(101)の
演算手段及びタイミング設定手段によって割り込み処理
のための演算が行われ、出力制御手段(107)のレジ
スタ(108)に出力変化タイミングがセットされると
、出力制御手段(107)はレジスタ(108)内に記
憶された出力変化タイミングのデータを、タイマ(10
2)の値と比較し、両者が一致した時点で出力をポート
(106)に出力してPWM信号を出力させるとともに
、CPU(101)に割り込み要求を発生するものであ
る。Then, as described above, the calculation means and timing setting means of the CPU (101) perform calculations for interrupt processing, and the output change timing is set in the register (108) of the output control means (107). Then, the output control means (107) transmits the output change timing data stored in the register (108) to the timer (10
2), and when the two match, the output is output to the port (106) to output a PWM signal, and an interrupt request is generated to the CPU (101).
【0026】次に、メイン処理について図7に基づいて
説明する。このメイン処理はI/O(109)を通じて
外部条件やデータの取り込みを行い、出力周波数及び出
力電圧に関するデータを演算する処理であり、ステップ
(701)にてI/O(109)を通じて外部条件及び
データの取り込みを行い、ステップ(702)にてこの
取り込んだ条件及びデータから出力周波数及び電圧倍率
を演算する。そして、ステップ(703)にて決定した
出力周波数から標準出力電圧及びアドレスポインタ(1
05)の進め量をROM(104)から読み出し、また
は演算して第1のRAM(103a)に格納するもので
ある。Next, the main processing will be explained based on FIG. This main processing is a process of importing external conditions and data through the I/O (109) and calculating data regarding the output frequency and output voltage. Data is captured, and in step (702) the output frequency and voltage magnification are calculated from the captured conditions and data. Then, from the output frequency determined in step (703), the standard output voltage and address pointer (1
05) is read out from the ROM (104) or calculated and stored in the first RAM (103a).
【0027】なお、上記実施例においてCPU(101
)の演算手段によって出力変化タイミングを図3に示し
たフローチャートに従って基準正弦波データと標準出力
電圧データと電圧倍率データの乗算に基づいて求めたも
のを示したが、具体的には以下にして求めているもので
ある。すなわち、標準出力電圧データを8ビット電圧倍
率データを8ビット、基準正弦波データを9ビットで扱
い、これらを乗算すると24ビット(以上)のデータと
なるようにし、さらに、その24ビット(以上)のデー
タのうち下位16ビットのデータを四捨五入して8ビッ
ト(以上)のデータに落としているものであり、マイク
ロプロセッサ内部で出力変化タイミングを決めるタイマ
に設定する値となるように各値の大きさを調整している
ものである。[0027] In the above embodiment, the CPU (101
), the output change timing is calculated based on the multiplication of the reference sine wave data, standard output voltage data, and voltage multiplication data according to the flowchart shown in Figure 3, but specifically, it is calculated as follows. It is something that In other words, the standard output voltage data is treated as 8 bits, the voltage magnification data as 8 bits, and the reference sine wave data as 9 bits, and when these are multiplied, it becomes 24 bits (or more) of data, and then the 24 bits (or more) The lower 16 bits of data are rounded down to 8 bits (or more) of data, and the size of each value is adjusted so that it becomes the value set in the timer that determines the output change timing inside the microprocessor. It adjusts the
【0028】また、三角波キャリア下降中の出力変化タ
イミングは、1キャリア内の各波形は図8に示すように
対称であるので、下降中の出力変化タイミングは、三角
波キャリアのキャリア周期Tcから上昇中の出力変化タ
イミングのデータ時間aを引けば求まるものである。In addition, the output change timing during the falling triangular wave carrier is symmetrical as shown in FIG. It can be found by subtracting the data time a of the output change timing.
【0029】さらに、ROM(104)内に記憶される
データは次のようにしているものである。つまり、基準
正弦波データを8ビットで保有する場合、一般に図9に
示すように、SinXが0の時に0を、SinXが1の
時に255を対応させて1/2から1まで記憶させてお
り、その値は128から255までとなり、実質的には
7ビットの分解能しか得られないものであるが、上記実
施例においては図10に示すように、SinXが1/2
の時に0を、SinXが1の時に255を対応させてい
るものであり、その結果8ビットの分解能を得ているも
のであり、しかも、このデータを演算に用いるときは9
ビット目を常に1として、9ビットデータとして用いて
おり、ROM(104)には8ビットで格納していても
9ビットデータとして得ているものであり、同じメモリ
容量でデータの精度を高めているものである。Furthermore, the data stored in the ROM (104) is as follows. In other words, when holding reference sine wave data in 8 bits, generally, as shown in Fig. 9, 0 is stored when SinX is 0, 255 is stored when SinX is 1, and 1/2 to 1 are stored. , the value ranges from 128 to 255, and in reality only a 7-bit resolution can be obtained, but in the above example, as shown in FIG. 10, SinX is 1/2
0 when SinX is 1, and 255 when Sin
The bit is always set to 1 and is used as 9-bit data, so even if it is stored in ROM (104) as 8-bit data, it is obtained as 9-bit data. It is something that exists.
【0030】なお、上記実施例においては、割り込み処
理を三角波キャリアの1キャリア周期に2回発生するも
のとしたが、どちらかいっぽうのタイミングのみ割り込
みが発生するようにし、三角波キャリア上昇中と下降中
で分けて行っていたタイミング設定処理を一回で行って
も良いものである。また、出力変化タイミングの演算を
4回の割り込み毎に演算しているものとしたが、N回(
Nは2以上の整数)の割り込み毎に演算しても良いもの
である。In the above embodiment, the interrupt processing is assumed to occur twice in one carrier period of the triangular wave carrier, but the interrupt is generated only at one of the timings, and when the triangular wave carrier is rising and falling. The timing setting process, which was previously performed separately, may be performed at once. Also, it is assumed that the output change timing is calculated every four interrupts, but N times (
The calculation may be performed for each interrupt (N is an integer of 2 or more).
【0031】[0031]
【発明の効果】この発明は、以上に述べたように、三角
キャリアの最上点を含む近傍の時点あるいは最下点を含
む近傍の時点の少なくとも一方の時点において割り込み
処理を発生し、N回(Nは2以上の整数)の割り込み処
理毎に正弦波データと三角波キャリアとに基づいて得ら
れる各相の出力変化タイミングを演算する演算手段と、
この演算手段によって求められた各相の出力変化タイミ
ングを、割り込み処理が発生する毎に出力制御するタイ
ミング設定手段と、このタイミング設定手段によって出
力制御された出力変化タイミングを記憶し、この出力変
化タイミングにおいて出力を変化させるためのPWM信
号を出力するための出力制御手段とを設けたものとした
ので、割り込み処理回数が減り、つまり、出力変化タイ
ミングの演算処理をN回に一回ですみ、ソフトウエアの
負担を軽減できるという効果を有するものである。Effects of the Invention As described above, the present invention generates an interrupt process at at least one of the points in the neighborhood including the top point of the triangular carrier or the points in the neighborhood including the bottom point, and interrupts N times ( calculation means for calculating the output change timing of each phase obtained based on the sine wave data and the triangular wave carrier for each interrupt processing (N is an integer of 2 or more);
A timing setting means for output-controlling the output change timing of each phase obtained by the calculation means every time an interrupt process occurs, and a timing setting means for storing the output change timing controlled by the timing setting means, and storing the output change timing. Since the output controller is provided with an output control means for outputting a PWM signal for changing the output, the number of interrupt processing is reduced, in other words, the calculation processing of the output change timing is only performed once every N times, and the software This has the effect of reducing the burden on the wearer.
【0032】また、出力電圧と出力周波数をN/2・キ
ャリア周期毎に独立に変化させることができ、しかも三
角波キャリアの周波数を高くできるものである。さらに
、出力変化タイミングを求めるために、ROM内に基準
正弦波データと標準出力電圧データを持つだけでよく、
かつ記憶手段を構成するRAMに図11で示した従来例
のようにテーブルを持たせなくてもすむため、RAM容
量を減らすことができるものである。またさらに、標準
出力電圧データを基にして電圧倍率を可変にして出力電
圧を得るようにすれば、出力電圧を何等かのフィードバ
ック制御で変化させて運転している被制御装置における
制御機構が万一故障しても予め設定されたV/Fパター
ンで応急運転ができるものである。Further, the output voltage and the output frequency can be changed independently every N/2 carrier period, and the frequency of the triangular wave carrier can be increased. Furthermore, in order to determine the output change timing, it is only necessary to have reference sine wave data and standard output voltage data in the ROM.
Moreover, since the RAM constituting the storage means does not need to have a table unlike the conventional example shown in FIG. 11, the RAM capacity can be reduced. Furthermore, if the output voltage is obtained by varying the voltage multiplier based on the standard output voltage data, the control mechanism of the controlled device that is operated by changing the output voltage using some kind of feedback control can be guaranteed. Even if a failure occurs, emergency operation can be performed using a preset V/F pattern.
【図1】この発明の一実施例を示すブロック線図。FIG. 1 is a block diagram showing one embodiment of the present invention.
【図2】図1に示した正弦波PWM信号発生装置におけ
る割り込み処理の発生タイミングを示す図。FIG. 2 is a diagram showing the timing of interrupt processing in the sine wave PWM signal generator shown in FIG. 1;
【図3】図1に示した正弦波PWM信号発生装置におけ
る割り込み処理の出力変化タイミングを演算するフロー
チャート。FIG. 3 is a flowchart for calculating the output change timing of interrupt processing in the sine wave PWM signal generator shown in FIG. 1;
【図4】図1に示した正弦波PWM信号発生装置におけ
る割り込み処理のタイミング設定を行うフローチャート
。FIG. 4 is a flowchart for setting the timing of interrupt processing in the sine wave PWM signal generator shown in FIG. 1;
【図5】図1に示した正弦波PWM信号発生装置におけ
る割り込み処理を示すフローチャート。FIG. 5 is a flowchart showing interrupt processing in the sine wave PWM signal generator shown in FIG. 1;
【図6】図1に示した正弦波PWM信号発生装置におけ
る割り込み処理が実行される順序を示すタイミングを示
す図。FIG. 6 is a timing chart showing the order in which interrupt processing is executed in the sine wave PWM signal generator shown in FIG. 1;
【図7】図1に示した正弦波PWM信号発生装置におけ
るメイン処理を示すフローチャート。FIG. 7 is a flowchart showing main processing in the sine wave PWM signal generator shown in FIG. 1;
【図8】図1に示した正弦波PWM信号発生装置におけ
る出力変化タイミングの演算法を説明するための図。FIG. 8 is a diagram for explaining a calculation method for output change timing in the sine wave PWM signal generator shown in FIG. 1;
【図9】一般的な基準正弦波データの持ち方を示す図。FIG. 9 is a diagram showing how to hold general reference sine wave data.
【図10】図1に示した正弦波PWM信号発生装置にお
ける基準正弦波データの持ち方を示す図。FIG. 10 is a diagram showing how reference sine wave data is held in the sine wave PWM signal generator shown in FIG. 1;
【図11】従来の正弦波PWM信号発生装置を示すブロ
ック図。FIG. 11 is a block diagram showing a conventional sine wave PWM signal generator.
【図12】図11に示した正弦波PWM信号発生装置に
おける割り込み処理を示すフローチャート。FIG. 12 is a flowchart showing interrupt processing in the sine wave PWM signal generator shown in FIG. 11;
【図13】図11に示した正弦波PWM信号発生装置に
おけるメイン処理を示すフローチャート。FIG. 13 is a flowchart showing main processing in the sine wave PWM signal generator shown in FIG. 11;
【図14】図11に示した正弦波PWM信号発生装置に
おけるデータ作成プログラムを示すフローチャート。FIG. 14 is a flowchart showing a data creation program in the sine wave PWM signal generator shown in FIG. 11;
【図15】図11に示した正弦波PWM信号発生装置に
おける割り込み処理の発生タイミングを示す図。FIG. 15 is a diagram showing the timing of occurrence of interrupt processing in the sine wave PWM signal generator shown in FIG. 11;
【図16】従来のパルス幅変調インバータの制御装置を
示すブロック線図。FIG. 16 is a block diagram showing a conventional pulse width modulation inverter control device.
【図17】図17に示すパルス幅変調インバータの制御
装置における割り込み処理の発生タイミングを示す図。FIG. 17 is a diagram showing the timing of occurrence of interrupt processing in the control device for the pulse width modulation inverter shown in FIG. 17;
101 演算手段及びタイミング設定手段の機能
を有するCPU
103b 記憶手段を構成するRAM107
出力制御手段
201 三角波キャリア101 CPU having functions of calculation means and timing setting means 103b RAM 107 constituting storage means
Output control means 201 Triangular wave carrier
Claims (1)
時点あるいは最下点を含む近傍の時点の少なくとも一方
の時点において割り込み処理を発生し、N回(Nは2以
上の整数)の割り込み処理毎に正弦波データと上記三角
波キャリアとに基づいて得られる各相の出力変化タイミ
ングを演算する演算手段、この演算手段によって求めら
れた各相の出力変化タイミングを、割り込み処理が発生
する毎に出力制御するタイミング設定手段、このタイミ
ング設定手段によって出力制御された出力変化タイミン
グを記憶し、この出力変化タイミングにおいて出力を変
化させるためのPWM信号を出力するための出力制御手
段を備えた正弦波PWM信号出力装置。Claim 1: An interrupt process is generated at at least one of a time point near the top point of the triangular wave carrier or a time point near the bottom point, and every N times (N is an integer of 2 or more). a calculation means for calculating the output change timing of each phase obtained based on the sine wave data and the triangular wave carrier, and output control of the output change timing of each phase obtained by this calculation means every time an interrupt process occurs. a sine wave PWM signal output comprising a timing setting means for controlling the output, and an output control means for storing the output change timing controlled by the timing setting means and outputting a PWM signal for changing the output at this output change timing. Device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3016775A JPH04331471A (en) | 1991-01-18 | 1991-01-18 | Sine wave pwm signal generator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3016775A JPH04331471A (en) | 1991-01-18 | 1991-01-18 | Sine wave pwm signal generator |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04331471A true JPH04331471A (en) | 1992-11-19 |
Family
ID=11925580
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3016775A Pending JPH04331471A (en) | 1991-01-18 | 1991-01-18 | Sine wave pwm signal generator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04331471A (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6416265A (en) * | 1987-07-10 | 1989-01-19 | Hitachi Ltd | Controller for converter |
| JPH02194723A (en) * | 1989-01-23 | 1990-08-01 | Mitsubishi Electric Corp | Sine wave pwm signal generator |
| JPH03128677A (en) * | 1989-10-09 | 1991-05-31 | Yaskawa Electric Mfg Co Ltd | Pulse width modulation inverter controller |
-
1991
- 1991-01-18 JP JP3016775A patent/JPH04331471A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6416265A (en) * | 1987-07-10 | 1989-01-19 | Hitachi Ltd | Controller for converter |
| JPH02194723A (en) * | 1989-01-23 | 1990-08-01 | Mitsubishi Electric Corp | Sine wave pwm signal generator |
| JPH03128677A (en) * | 1989-10-09 | 1991-05-31 | Yaskawa Electric Mfg Co Ltd | Pulse width modulation inverter controller |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH04336308A (en) | Single-chip microcomputer | |
| KR0133471B1 (en) | Semiconductor integrated circuit | |
| JP6328500B2 (en) | Information processing device | |
| JPS60230705A (en) | Digital circuit for generating time change signal and methodtherefor | |
| US4145667A (en) | Phase locked loop frequency synthesizer using digital modulo arithmetic | |
| JPH04331471A (en) | Sine wave pwm signal generator | |
| JPH0758892B2 (en) | Digital pulse width modulation circuit | |
| JPH1198007A (en) | Frequency divider | |
| JP2773546B2 (en) | Pulse generation circuit | |
| JP3777242B2 (en) | Motor control device | |
| US20100134151A1 (en) | Method for locking a synthesised output signal of a synthesised waveform synthesiser in a phase relationship | |
| JPH08139575A (en) | Pulse output circuit | |
| JP3132810B2 (en) | Diffuse fractional frequency divider | |
| JP2004032632A (en) | Semiconductor integrated circuit | |
| JP2009152886A (en) | Clock generation circuit and method of using the same | |
| JP2723545B2 (en) | Frequency divider and capstan servo device | |
| JP3538358B2 (en) | Programmable controller | |
| JP3100148B2 (en) | Sine wave approximation pulse width modulation signal generator | |
| JP2701410B2 (en) | Sine wave PWM signal generator | |
| JP2522073B2 (en) | Sine wave PWM signal generator | |
| JPH11220364A (en) | Variable frequency pulse generator | |
| KR0183747B1 (en) | Frequency conversion method and circuit of clock pulse | |
| JPH05316738A (en) | Circuit for controlling inverter | |
| JPH05315898A (en) | Trigger synchronization circuit | |
| JPH08330914A (en) | Waveform generator |