JPS6331477A - Sinusoidal wave pwm signal generator - Google Patents
Sinusoidal wave pwm signal generatorInfo
- Publication number
- JPS6331477A JPS6331477A JP61173077A JP17307786A JPS6331477A JP S6331477 A JPS6331477 A JP S6331477A JP 61173077 A JP61173077 A JP 61173077A JP 17307786 A JP17307786 A JP 17307786A JP S6331477 A JPS6331477 A JP S6331477A
- Authority
- JP
- Japan
- Prior art keywords
- data
- pwm signal
- rom
- ram
- frequency
- 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
Links
Landscapes
- Inverter Devices (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野〕
この発明は、インバータ装置、特に1デツプマイコン応
用したインバータの正弦波PWM信号発生装置に関する
ものである。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an inverter device, and particularly to a sine wave PWM signal generating device for an inverter to which a 1-deep microcomputer is applied.
第4図はたとえばrACサーボモータとマイコン制御J
(昭和59年2月)総合電子出版社発行) ”js
6章に示されるマイコンによる正弦波PWM信号発生マ
イコン内部ブロック図である。F記の文献では、ソフト
ウェアタイマによって行なっているが、本従来例では実
際に即したインターバルタイマを用いたものとしている
。第5図はPWM発生の割込処理のフローチャート、第
6図はメイン処理のフローチャートである。Figure 4 shows, for example, rAC servo motor and microcomputer control J
(February 1980) Published by General Electronic Publishing Company) “js
FIG. 6 is an internal block diagram of a microcomputer that generates a sine wave PWM signal using a microcomputer shown in Chapter 6. In the document No. F, a software timer is used for this purpose, but in this conventional example, an interval timer suitable for actual use is used. FIG. 5 is a flowchart of PWM generation interrupt processing, and FIG. 6 is a flowchart of main processing.
第4図において101はcpu、102はタイマ、10
3は補正値を入わるRAM、104はパソコンなどの訂
算機によって作成された波形発生データ(ポート出力デ
ータ十時間データ)テーブルを格納しであるROM、1
05は波形データのポインタ、106はP W M (
見分を出力するポートである。In FIG. 4, 101 is a CPU, 102 is a timer, 10
3 is a RAM that stores correction values; 104 is a ROM that stores a table of waveform generation data (port output data and hourly data) created by a calculator such as a personal computer; 1;
05 is a waveform data pointer, 106 is PWM (
This is a port that outputs the results.
つぎに、動作について第4図、第5図および第6図を用
いて説明する。Next, the operation will be explained using FIG. 4, FIG. 5, and FIG. 6.
第5図のフローチャー1・に示すようにタイマ102に
よる割込要求により、タイマ割込に入り、ROM104
のテーブルのアドレスポインタ105をインクリメント
しく501)、 アドレスポインタ105がテーブルエ
ンドであればねアドレスポインタ105をイニシャルし
く502゜503)、テーブルからデータをCPUl0
Iに取り込み、ポート出力データをポート106に出力
しく504)、ポート出力がゼロ′市圧であれば、時間
データにRAM103つに格納されている補正値を加え
る(505,506)。つぎに、次の割込までの時間デ
ータをタイマ102にセットしく507)、割込処理か
ら抜ける。As shown in flowchart 1 in FIG.
Increment the address pointer 105 of the table 501), and if the address pointer 105 is the table end, initialize the address pointer 105 502, 503), and transfer the data from the table to CPU10.
I and output the port output data to the port 106 (504). If the port output is zero' city pressure, the correction value stored in the RAM 103 is added to the time data (505, 506). Next, time data for the next interrupt is set in the timer 102 (507), and the interrupt processing is exited.
以後、ROM104の内のテーブルに格納された波形発
生データの時間データのタイミングで割込みが入り、5
01〜507の動作を繰り返しPWM信号が発生される
。つぎに周波数を変える際には、第6図に示すように補
正値が補正限度内であるかの判定を行ない(602)、
限度内であれば、506で加えられるRAM103内の
補正値を変更する。補正値が限度を越える場合は、RO
M104内にあるテーブルを変更する。Thereafter, an interrupt occurs at the timing of the time data of the waveform generation data stored in the table in the ROM 104, and
The PWM signal is generated by repeating the operations from 01 to 507. Next, when changing the frequency, as shown in FIG. 6, it is determined whether the correction value is within the correction limit (602),
If it is within the limit, the correction value added in the RAM 103 in step 506 is changed. If the correction value exceeds the limit, RO
Change the table in M104.
(発明が解決しようとする問題点〕
従来の正弦PWM信号発生装置は以上のように槽成され
ているのて、第7図に示すように、ベースの波形発生デ
ータに対して補正を加えて周波数をドげ、同時に電圧を
下げているので、電圧と周波数の関係を独立して設定す
ることができず、一義的に決まってしまう欠点があり、
かつROM内にテーブルを多くもつ必要があり、ROM
容量を増加させるという問題点があった。(Problems to be Solved by the Invention) The conventional sine PWM signal generator is configured as described above, and as shown in FIG. Since the frequency is lowered and the voltage is lowered at the same time, the relationship between voltage and frequency cannot be set independently and has the disadvantage that it is determined uniquely.
And it is necessary to have many tables in ROM,
There was a problem in increasing the capacity.
この発明は、上記のような問題点を解消するためになさ
れたもので、少ないROM容量で、電圧と周波数を任意
に設定できる正弦波PWM信号発生装置を得ることを目
的とする。The present invention has been made to solve the above-mentioned problems, and aims to provide a sine wave PWM signal generating device that can arbitrarily set the voltage and frequency with a small ROM capacity.
この発明に係る正弦波PWM信号発生装置は、RAM−
ヒに複数個の波形発生データテーブルをもうけるもので
ある。The sine wave PWM signal generator according to the present invention has a RAM-
A plurality of waveform generation data tables are created in H.
(作用−)
この発明に係る正弦波PWM信号発生装置は、従来パソ
コンなとて作成しROM内に書き込まれていた波形発生
データをマイコン内で作成し、RAll上に書き込み、
そのデータをもとにPWM信号を発生させるようにした
ちのである。(Function) The sine wave PWM signal generating device according to the present invention creates waveform generation data, which was conventionally created in a personal computer and written in the ROM, in a microcomputer and writes it on the RAll.
A PWM signal is generated based on this data.
(発明の実施例〕 以F、この発明の一実施例を詳細に説明する。(Embodiments of the invention) Hereinafter, one embodiment of the present invention will be described in detail.
第1図はこの発明の一実施例を示すコンピュータである
マイコン内部ブロック図である。図中101はCPU、
!02はタイマ、103は波形発生データを格納するR
AM、104は基準正弦波データなどの波形データテー
ブルを格納しであるROM、105は波形発生データテ
ーブル内の波形発生データアドレスを示すアドレスポイ
ンタ、106はPWM信号を出力するポートである。FIG. 1 is an internal block diagram of a microcomputer which is a computer showing one embodiment of the present invention. In the figure, 101 is a CPU;
! 02 is a timer, 103 is R for storing waveform generation data
AM, 104 is a ROM which stores a waveform data table such as reference sine wave data, 105 is an address pointer indicating a waveform generation data address in the waveform generation data table, and 106 is a port for outputting a PWM signal.
第1図中、実線で古かれている部分はPWM信号発生の
ための割込み処理の流れを示し、点線の部分は、波形発
生データ作成のためのメイン処理の流れを示す。In FIG. 1, the part marked with a solid line shows the flow of interrupt processing for generating a PWM signal, and the part marked with a dotted line shows the flow of main processing for creating waveform generation data.
つぎに、動作について説明する。Next, the operation will be explained.
第3a図および第3b図にメインIA理のフローチャー
トを示す。Flowcharts of the main IA process are shown in FIGS. 3a and 3b.
まず、メイン処理では、301で周波数、電圧に変更が
あるかどうか判別し、変更がある場合は302のデータ
作成プログラムに行く。データ作成プログラムでは、作
成データの出力として、割込み処理で使用されていない
ほうを選択する(303)。First, in the main process, it is determined in 301 whether there is a change in the frequency or voltage, and if there is a change, the process goes to the data creation program in 302. The data creation program selects the one that is not used in the interrupt processing as the output of the creation data (303).
つぎに、周波数データ、電圧データ、キャリア周波数デ
ータおよびROM104内により波形データより従来の
三角波比較方式により30°分の波形発生データを作成
する(304)。Next, waveform generation data for 30° is created using the conventional triangular wave comparison method from the frequency data, voltage data, carrier frequency data, and waveform data stored in the ROM 104 (304).
つきに、30°分のデータから60°分にJμ開する(
305)、さらに、306で時間的に短いデータ(マイ
コンの処理においつかない)をカットする。データ作成
か終了したらテーブル切換えが可能であることを示すフ
ラグを立てて(307)、メインをループする。At the same time, Jμ is opened from 30° data to 60° (
305), and further, in 306, time-short data (which cannot be processed by the microcomputer) is cut. When data creation is completed, a flag indicating that table switching is possible is set (307), and the main process is looped.
一方、第2図のフローチャートに示す割込み処埋では、
タイマ102によって割込み処理に入ると、アドレスポ
インタ105をインクリメントしく201)、テーブル
エンドであるかどうかを判別する(202)、テーブル
エンドであった場合は新しいテーブルを切換える。つぎ
に、アドレスポインタ105をイニシャルする。On the other hand, in the interrupt processing shown in the flowchart of FIG.
When interrupt processing is started by the timer 102, the address pointer 105 is incremented (201), it is determined whether or not it is the end of the table (202), and if it is the end of the table, a new table is switched. Next, the address pointer 105 is initialized.
さらに、アトレイポインタ105で示されるRAM10
3上にあるテーブルの内容をCPUに1y。Furthermore, the RAM 10 indicated by the atray pointer 105
3. Transfer the contents of the table above to the CPU.
り込み、ポイント出力データをポート106に出力しく
206)、時間データをタイマ102にセットし、割込
処理から抜ける。以後、波形発生データの時間データに
したかったタイミングで割込み処理に入りPWM信号を
発生する。206), sets the time data in the timer 102, and exits from the interrupt process. Thereafter, interrupt processing is performed at the desired timing to generate time data of the waveform generation data, and a PWM signal is generated.
この発明の一実施例によれば、RAM上に複数個の波形
発生データテーブルを設け、パソコンなどで作成しRO
Mに書き込まれていた波形発生データをマイコン内で作
成し、RAM上に書き込み、このデータをもとにPWM
信号を発生させることにより、ROM1.:多くのデー
タをbつ必要がなく、さらに、電圧と周波数のデータか
ら波形発生データを作成するので、ゼロ電圧の補正を加
えることなく、かつ、第8図に示すように、電圧と周波
数を任影:に設定しつるという効果かある。According to one embodiment of the present invention, a plurality of waveform generation data tables are provided on the RAM, created on a personal computer, etc., and
Create the waveform generation data written in M in the microcontroller, write it on RAM, and perform PWM based on this data.
By generating a signal, ROM1. : There is no need for a lot of data, and since the waveform generation data is created from voltage and frequency data, there is no need to add zero voltage correction, and the voltage and frequency can be adjusted as shown in Figure 8. Ninmage: It has a vine effect when set to .
以トのように、この発明によれば、RAM上に波形発生
データを格納するためROM 、J−に多くのデータを
bつ必要がなく、さらに電圧と周波数のデータから波形
発生データを作成するので、セロ電圧の補正を加える必
要がなく、かつ、電圧と周波数を任意に設定することか
ilf (:ヒとなる装置が得られるという効果がある
。As described above, according to the present invention, it is not necessary to store a large amount of data in the ROM and J- in order to store the waveform generation data on the RAM, and furthermore, the waveform generation data can be created from voltage and frequency data. Therefore, there is an effect that there is no need to make corrections to the cello voltage, and a device that achieves ilf (:hi) can be obtained by arbitrarily setting the voltage and frequency.
第1図はこの発明の一実施例を示すマイコン部ブロック
1メ1、第2図、第3a[図、および第3b図はこの発
明の一実施例を示すフローチャート、第4図は従来のマ
イコン内部ブロック図、第5図。
第6図は従来のフローチャート、第7図は従来の電圧/
周波数パターンの説明1.J、第8図は発明の一実施例
による電圧/周波数パターンの説明図である。
図中、101はCPU、102はタイマ、103はRA
M、104はROM、105はアドレスポインタ、10
6はポートである。
なお、図中、同一符号は同一または相当部分を示す。FIG. 1 is a microcomputer block 1, FIG. 2, FIG. 3a, and FIG. 3b are flowcharts showing an embodiment of the present invention, and FIG. 4 is a flowchart of a conventional microcomputer block 1, FIG. Internal block diagram, Figure 5. Figure 6 is a conventional flowchart, and Figure 7 is a conventional voltage/voltage chart.
Explanation of frequency patterns 1. J, FIG. 8 is an explanatory diagram of a voltage/frequency pattern according to an embodiment of the invention. In the figure, 101 is the CPU, 102 is the timer, and 103 is the RA.
M, 104 is ROM, 105 is address pointer, 10
6 is a port. In addition, in the figures, the same reference numerals indicate the same or corresponding parts.
Claims (1)
て、ポート出力データと時間データからなる波形発生デ
ータを順次並べられるテーブルをRAMに複数個有し、
また正弦波などの波形データをROM上に有し、一つの
テーブルを用いてタイマ割込処理によりPWM信号を発
生し、平行してメイン処理により前記ROM上の波形デ
ータおよび周波数,電圧指令を基に他のテーブルに波形
発生データを作成し、作成後割込処理で選択するテーブ
ルを切換え順次、周波数,電圧を切換えていくことを特
徴とする正弦波PWM信号発生装置。A computer-based sine wave PWM signal generator has a plurality of tables in RAM in which waveform generation data consisting of port output data and time data can be sequentially arranged,
It also has waveform data such as sine waves on the ROM, generates a PWM signal through timer interrupt processing using one table, and in parallel, uses the waveform data on the ROM and frequency and voltage commands through main processing. A sine wave PWM signal generator characterized in that waveform generation data is created in another table, and after the creation, the selected table is switched by interrupt processing and the frequency and voltage are sequentially changed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61173077A JPH0797908B2 (en) | 1986-07-23 | 1986-07-23 | Sine wave PWM signal generator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61173077A JPH0797908B2 (en) | 1986-07-23 | 1986-07-23 | Sine wave PWM signal generator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6331477A true JPS6331477A (en) | 1988-02-10 |
| JPH0797908B2 JPH0797908B2 (en) | 1995-10-18 |
Family
ID=15953779
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61173077A Expired - Fee Related JPH0797908B2 (en) | 1986-07-23 | 1986-07-23 | Sine wave PWM signal generator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0797908B2 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02188194A (en) * | 1989-01-17 | 1990-07-24 | Fujitsu General Ltd | Controlling method for inverter |
| JPH03245771A (en) * | 1990-02-22 | 1991-11-01 | Mitsubishi Electric Corp | Operation command method for inverter |
| JPH0413307A (en) * | 1990-05-01 | 1992-01-17 | Fuji Electric Co Ltd | Carrier signal generating circuit |
| KR100645555B1 (en) | 2004-12-03 | 2006-11-15 | 현대자동차주식회사 | Motor controller |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58179175A (en) * | 1982-04-14 | 1983-10-20 | Sanken Electric Co Ltd | Control system for inverter |
-
1986
- 1986-07-23 JP JP61173077A patent/JPH0797908B2/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58179175A (en) * | 1982-04-14 | 1983-10-20 | Sanken Electric Co Ltd | Control system for inverter |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02188194A (en) * | 1989-01-17 | 1990-07-24 | Fujitsu General Ltd | Controlling method for inverter |
| JPH03245771A (en) * | 1990-02-22 | 1991-11-01 | Mitsubishi Electric Corp | Operation command method for inverter |
| JPH0413307A (en) * | 1990-05-01 | 1992-01-17 | Fuji Electric Co Ltd | Carrier signal generating circuit |
| KR100645555B1 (en) | 2004-12-03 | 2006-11-15 | 현대자동차주식회사 | Motor controller |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0797908B2 (en) | 1995-10-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2570845B2 (en) | Information processing device | |
| HK56395A (en) | Stack method and circuitry | |
| JPS6331477A (en) | Sinusoidal wave pwm signal generator | |
| JP2642566B2 (en) | System controller clock regeneration circuit | |
| JPH0285908A (en) | Sine function generating method | |
| JPS6243774A (en) | Data processor | |
| JP3064560B2 (en) | Music synthesizer | |
| JP3135252B2 (en) | Addressing device | |
| JPS63213028A (en) | Programmable controller | |
| JPH10135742A (en) | Signal waveform generator | |
| JPH06252646A (en) | Digital synthesizer | |
| JPS63213200A (en) | System for changing mask rom | |
| JPH0345009A (en) | Approximate sine wave PWM waveform output method | |
| JPH02126377A (en) | Thick line plotting system | |
| JPH0365683B2 (en) | ||
| JPS6143883B2 (en) | ||
| KR20010060033A (en) | Method for implementing division of orthogonal frequency division multiplexing by digital signal processor | |
| JPS6147071B2 (en) | ||
| JPH0459652B2 (en) | ||
| JPS6210779A (en) | Graphic data generator | |
| JPS62128309A (en) | Signal generator | |
| JPH10200336A (en) | Numerical control oscillator | |
| JPS6028304A (en) | Digital sinusoidal wave oscillating circuit | |
| JPS59158199U (en) | electronic musical instruments | |
| JPS5998254A (en) | Address circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |