JPH03253295A - Signal generation circuit - Google Patents
Signal generation circuitInfo
- Publication number
- JPH03253295A JPH03253295A JP2051363A JP5136390A JPH03253295A JP H03253295 A JPH03253295 A JP H03253295A JP 2051363 A JP2051363 A JP 2051363A JP 5136390 A JP5136390 A JP 5136390A JP H03253295 A JPH03253295 A JP H03253295A
- Authority
- JP
- Japan
- Prior art keywords
- data
- waveform data
- register
- signal
- waveform
- 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
- Control Of Ac Motors In General (AREA)
- Control Of Stepping Motors (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、たとえばインバータ回路を有する空気調和装
置に使用されるコンプレッサまたはステッピングモータ
などのパルス幅変調(PWM)信号によって制御される
モータなどの回転を制御するためなどに好適に実施され
る信号発生回路に関する。DETAILED DESCRIPTION OF THE INVENTION Industrial Application The present invention is useful for controlling the rotation of motors controlled by pulse width modulated (PWM) signals, such as compressors or stepping motors used, for example, in air conditioners with inverter circuits. The present invention relates to a signal generation circuit suitably implemented for control purposes.
従来の技術
たとえばニアコンディショナなどに使用されるステッピ
ングモータや3相交流モータなどの回転制御には、トラ
ンスのタップ切換えや位相制御などによる電圧可変方式
が用いられてきたが、モータのトルク不足や騒音発生な
どの問題があり、代わってインバータ方式が使用される
ようになってきた。前記方式では、いわゆるワンチップ
マイクロコンピュータなどで信号発生回路を構成し、前
記信号発生回路から制御信号を出力して直流/交流イン
バータを制御し、所望の回転数に対応した周波数の電力
でモータを駆動することによって、回転制御を円滑に行
うものである。Conventional technology For example, variable voltage systems such as transformer tap switching and phase control have been used to control the rotation of stepping motors and three-phase AC motors used in near conditioners. Due to problems such as noise generation, inverter systems have come to be used instead. In the above method, a signal generation circuit is configured with a so-called one-chip microcomputer, etc., and a control signal is output from the signal generation circuit to control a DC/AC inverter, thereby driving the motor with power at a frequency corresponding to the desired rotation speed. By driving, rotation control is performed smoothly.
第13図は、従来技術の信号発生回路1を使用してコン
プレッサ12の制御を行う構成を示すブロック図である
。信号発生回路1はデータバス2を介して接続されるレ
ジスタ4、リードオンリメモリ (ROM)5、中央処
理回路(CPU)3、内部タイマ6および入出力用のレ
ジスタ7を含んで構成される。FIG. 13 is a block diagram showing a configuration for controlling the compressor 12 using the signal generation circuit 1 of the prior art. The signal generation circuit 1 includes a register 4 connected via a data bus 2, a read-only memory (ROM) 5, a central processing circuit (CPU) 3, an internal timer 6, and an input/output register 7.
ROM5には信号発生回路1の動作プログラムおよび波
形データが記憶されている。CPU3はこの動作プログ
ラムにしたがって、レジスタ4に記憶されるデータなど
を参照してROM5から波形データを選択的に読出す。The ROM 5 stores an operation program and waveform data for the signal generating circuit 1. The CPU 3 selectively reads waveform data from the ROM 5 with reference to the data stored in the register 4 in accordance with this operating program.
さらにレジスタ4に記憶されるデータに基づいてデータ
変換などの信号処理を施し、入出力用レジスタ7を介し
て外部に信号を出力する。このとき、内部タイマ6によ
って発生される割込信号がライン8を介してCPU3に
与えられ、これによって出力される信号のタイミングが
制御される。Furthermore, signal processing such as data conversion is performed based on the data stored in the register 4, and the signal is outputted to the outside via the input/output register 7. At this time, an interrupt signal generated by internal timer 6 is applied to CPU 3 via line 8, thereby controlling the timing of the output signal.
信号発生回路1から出力された信号は、遅延回路9およ
びホトカプラ10を介してインバータ13のトランジス
タT1〜T6に与えられる。遅延回路9はトランジスタ
T1〜T6におけるターンオフ時間を考慮して設けられ
ており、ホトカプラ10は外来ノイズが信号発生回路l
に入力されることを防止している。トランジスタTl、
T2、トランジスタT3.T4およびトランジスタT5
゜T6はそれぞれ直列に接続されており、トランジスタ
Tl、T3.T5のコレクタには電源回路11からの電
源電圧が並列に与えられている。ホトカプラ10の出力
信号SL、SlはトランジスタTI、T2のベースにそ
れぞれ与えられ、出力信号S2.S2はトランジスタT
3.T4のベースにそれぞれ与えられ、出力信号S3.
S3はトランジスタT5.T6のベースにそれぞれ与え
られる。トランジスタTI、T2の接続部、トランジス
タT3.T4の接続部およびトランジスタT5゜T6の
接続部における信号がライン1 a、 1 b。The signal output from the signal generation circuit 1 is applied to the transistors T1 to T6 of the inverter 13 via the delay circuit 9 and the photocoupler 10. The delay circuit 9 is provided in consideration of the turn-off time of the transistors T1 to T6, and the photocoupler 10 is provided to prevent external noise from occurring in the signal generation circuit l.
is prevented from being input. Transistor Tl,
T2, transistor T3. T4 and transistor T5
゜T6 are connected in series, and the transistors Tl, T3 . A power supply voltage from the power supply circuit 11 is applied in parallel to the collector of T5. Output signals SL and Sl of the photocoupler 10 are applied to the bases of transistors TI and T2, respectively, and output signals S2. S2 is a transistor T
3. T4, respectively, and output signals S3.
S3 is a transistor T5. Each is given to the base of T6. Connection of transistors TI and T2, transistor T3. The signals at the connection of T4 and the connection of transistors T5 and T6 are connected to lines 1a, 1b.
ICを介してそれぞれコンプレッサ12に与えられる。Each signal is applied to the compressor 12 via the IC.
コンプレッサ12はたとえば3相交流モータによって動
作され、等価的にコイル12a、12b。The compressor 12 is operated, for example, by a three-phase AC motor, equivalently having coils 12a, 12b.
12cによって表すことができる。コイル12a〜12
cの一端部は相互に接続されており、前述したライン1
a〜lcはコイル12a〜12cの他端部にそれぞれ接
続されている。12c. Coils 12a-12
One end of c is connected to the line 1 mentioned above.
a-lc are connected to the other ends of the coils 12a-12c, respectively.
このようにしてインバータ13によって電源回路11か
らの直流出力を3相交流と等価な矩形波に変換し、前記
コイル12a〜12cへ印加することによって、コンプ
レッサ12における動作状態、すなわちモータの回転速
度が制御される。In this way, the inverter 13 converts the DC output from the power supply circuit 11 into a rectangular wave equivalent to three-phase AC, and applies it to the coils 12a to 12c, thereby changing the operating state of the compressor 12, that is, the rotational speed of the motor. controlled.
発−明が解決しようとする課題
上記信号発生回路1を用いてコンプレッサ12の動作状
態を制御する場合には、信号発生回路1を動作させるた
めに、ROM5に記憶されるプログラムを作成する必要
があるにのプログラムに従ってROM5からの波形デー
タの読出しや、この波形データの変換などのすべての動
作が行われるので、プログラム自体が大きくなり、ソフ
トウェア作成の上でその負担が大きくなってしまうとい
う問題がある。しかも、プログラムの各サブルーチンな
どを実行するための時間やプログラムに含まれる各命令
を実行するための時間(サイクルタイム)によって出力
される信号の波形が微妙に変化する。したがってこの信
号発生回路1には、高精度のパルス波形を有する信号を
発生することができないという問題がある。Problems to be Solved by the Invention When controlling the operating state of the compressor 12 using the signal generating circuit 1 described above, it is necessary to create a program stored in the ROM 5 in order to operate the signal generating circuit 1. Since all operations such as reading waveform data from ROM 5 and converting this waveform data are performed according to the program, the program itself becomes large and the burden of creating software increases. be. Moreover, the waveform of the output signal changes slightly depending on the time required to execute each subroutine of the program and the time required to execute each instruction included in the program (cycle time). Therefore, this signal generating circuit 1 has a problem in that it cannot generate a signal having a highly accurate pulse waveform.
上述の問題点を解決するために、第14図に示される信
号発生口II@15の構成が考えられる。なお、第13
図と同一もしくは対応する部分には同一の参照符を付し
て示す。In order to solve the above-mentioned problems, the configuration of the signal generating port II@15 shown in FIG. 14 can be considered. In addition, the 13th
Parts that are the same as or correspond to those in the figures are designated by the same reference numerals.
信号発生回路15は、マイクロコンピュータなどで実現
される中央処理回路(CPU)3、ランダムアクセスメ
モリ(RAM>16、複数のり一ドオンリメモリ(RO
M)17.18.波形発生回路19の各ブロックで構成
されている。複数のROM17.18において、プログ
ラム専用ROM17にはCPU3の動作に必要な動作プ
ログラムが予めストアされており、波形データ専用RO
M18にはコンプレッサ12へ印加する3相交流波形(
たとえば60I(Z)に関する波形データが予めストア
されている。またRAM16には、図示しない外部コン
トローラなどで設定されたモータの回転数や、温度セン
サからの温度情報などのデータが書込まれる。The signal generation circuit 15 includes a central processing circuit (CPU) 3 realized by a microcomputer or the like, a random access memory (RAM>16), and a plurality of one-way only memories (RO).
M) 17.18. It is composed of each block of the waveform generation circuit 19. In the plurality of ROMs 17 and 18, the program-dedicated ROM 17 stores in advance the operating programs necessary for the operation of the CPU 3, and the waveform data-dedicated ROM
M18 has a 3-phase AC waveform applied to the compressor 12 (
For example, waveform data regarding 60I(Z) is stored in advance. Further, data such as the motor rotation speed set by an external controller (not shown) and temperature information from a temperature sensor are written in the RAM 16.
各ブロックは、データバスfl、コントロールバス12
.13を介して相互に接続される。CPU3はコントロ
ールバス12.13を介して各ブロックの読出/書込モ
ードを命令し、読出しに必要なアドレスはアドレスバス
14を介して指定する。プログラム専用ROM17から
読出された動作プログラム、およびRAM16から読出
された設定データにおいて対応するデータは前記データ
バス11を介してC’P U 3および波形発生回路1
9にそれぞれ入力される。Each block has a data bus fl, a control bus 12
.. They are interconnected via 13. The CPU 3 instructs the read/write mode of each block via the control buses 12 and 13, and specifies the address necessary for reading via the address bus 14. The operating program read from the program-only ROM 17 and the corresponding data in the setting data read from the RAM 16 are transferred to the C'P U 3 and the waveform generation circuit 1 via the data bus 11.
9 respectively.
波形発生回路19と波形データ専用ROM 18との間
には、波形データバス15とアドレスバス16が接続さ
れ、モータに要求される回転数に対応した読取速度で、
波形データ専用ROM18から前記波形データが選択的
に読出される。この読出しに必要なアドレス指定は前記
アドレスバス16を介して行われる。A waveform data bus 15 and an address bus 16 are connected between the waveform generation circuit 19 and the waveform data-dedicated ROM 18.
The waveform data is selectively read from the waveform data-dedicated ROM 18. Addressing necessary for this reading is performed via the address bus 16.
波形発生回路19では、波形データ専用ROM18から
読出された波形データに基づき、予めCPU3から設定
される初期値データに応じてデータ変換等の信号処理が
行われる。また図示しない内部タイマからの割込信号に
よってタイミングが制御され、モータの所望する回転数
に対応した各相ごとの制御信号Sl、Sl、S2.S2
・、S3゜S3が作成される。In the waveform generation circuit 19, signal processing such as data conversion is performed based on the waveform data read from the waveform data-dedicated ROM 18 and according to initial value data set in advance by the CPU 3. Further, the timing is controlled by an interrupt signal from an internal timer (not shown), and control signals Sl, Sl, S2 . S2
・, S3°S3 is created.
前記制御信号81〜S3によって、前述のようにトラン
ジスタT1〜T6の導通/遮断のタイミングが所定の相
順に制御され、インバータ13は供給される直流出力を
3相交流と等価な矩形波に変換し、コンプレッサ12の
各コイル12a〜12cに印加する。このようにしてモ
ータの回転速度が制御される。The control signals 81 to S3 control the conduction/cutoff timing of the transistors T1 to T6 in a predetermined phase order as described above, and the inverter 13 converts the supplied DC output into a rectangular wave equivalent to three-phase AC. , is applied to each coil 12a to 12c of the compressor 12. In this way, the rotational speed of the motor is controlled.
前述の構成によって、CPU3から波形発生回路19へ
予め定める初期値データが設定された後は、ハードウェ
アから成る波形発生回路19がアドレスの指定データの
変換を自動的に実行し、波形データ専用ROM18から
波形データを読出し、データ変換後、制御信号81〜S
3としてインバータ13へ出力する。すなわち前記初期
値データの設定後に前記波形データの変換処理には、C
PU3は関与する必要がない、したがって、このような
アドレス指定および波形データの変換のためのプログラ
ムを作成する必要がなく、プログラム作成の負担が大幅
に軽減される。しがち、CPU3の命令サイクルタイム
がプログラムのサブルーチンの長さに依存して波形に変
化が生じることがないので、高精度の信号を出力するこ
とができると考えられる。With the above-described configuration, after predetermined initial value data is set from the CPU 3 to the waveform generation circuit 19, the waveform generation circuit 19 consisting of hardware automatically converts the address designation data, and the waveform data dedicated ROM 18 After reading the waveform data from and converting the data, control signals 81 to S
3 and output to the inverter 13. That is, after setting the initial value data, the conversion process of the waveform data includes C
There is no need for the PU3 to be involved, so there is no need to create a program for such addressing and waveform data conversion, and the burden of program creation is greatly reduced. Since the instruction cycle time of the CPU 3 does not tend to change in waveform depending on the length of the subroutine of the program, it is considered that a highly accurate signal can be output.
けれども、前記信号発生回路15の構成においては、C
PU’3に関連して動作プログラム専用ROM17、お
よび波形発生回路7に関連して波形データ専用ROM1
8の少なくとも2個のメモリが個別に必要である。However, in the configuration of the signal generation circuit 15, C
A ROM 17 dedicated to operation programs is associated with PU'3, and a ROM 1 dedicated to waveform data is associated with the waveform generation circuit 7.
At least two memories of 8 are required separately.
一方、マイクロコンピュータを用いたシステムの開発段
階では、当該システムを構成するROMを書込み消去自
在なE F ROM (ErasableProgra
m論able ROM)に置換え、試行錯誤によってプ
ログラムを作成する手法が一般的であり、そのために第
15図に示されるピギーバック51が使用される。ピギ
ーバック51は、マイクロコンピュータを内蔵したパッ
ケージ51a上にEPROM用のソケット51bを、搭
載し、ソケット51bにEPROMを挿着して応用プロ
グラムを自由に何回でも書換え、最終プログラムを完成
させて行くためのツールである。またピギーバック51
を用いて製品の実装チエツクを行うこともできる。On the other hand, at the development stage of a system using a microcomputer, the ROM constituting the system is an E F ROM (Erasable Programmer) that can be written and erased.
A common method is to replace the program with a logical ROM (ROM) and create a program by trial and error, and a piggyback 51 shown in FIG. 15 is used for this purpose. The piggyback 51 has an EPROM socket 51b mounted on a package 51a containing a microcomputer, and inserts the EPROM into the socket 51b to freely rewrite the application program as many times as needed to complete the final program. It is a tool for Also piggyback 51
It is also possible to perform a product mounting check using .
したがってこのようなピギーバック51を用いて前述の
信号発生回路15に必要なプログラムを作成しようとす
れば、パッケージ51aにはソケット51bを少なくと
も2個搭載しなければならないが、これはパッケージ5
1aのスペースがらみて困難である。したがって一方の
EPROMに動作プログラムを書込んで検討し、次に他
方のEPROMに波形データを書込んで検討するという
手間がかかり、プログラム作成の時間、労力のコストが
高いものになってしまう。Therefore, in order to create a program necessary for the signal generation circuit 15 described above using such a piggyback 51, the package 51a must be equipped with at least two sockets 51b;
This is difficult due to the space of 1a. Therefore, it takes time and effort to write an operating program into one EPROM and examine it, and then write waveform data into the other EPROM and examine it, resulting in high costs in terms of time and labor for creating the program.
したがって本発明の目的は、プログラムの作成における
負担を大幅に軽減し、高精度のパルス波形を有する信号
を発生することができる信号発生回路を提供することで
ある。Therefore, an object of the present invention is to provide a signal generation circuit that can significantly reduce the burden of creating a program and generate a signal having a highly accurate pulse waveform.
課題を解決するための手段
本発明は、動作プログラムに基づいて、信号を処理する
中央処理回路と、
前記中央処理回路にデータバスを介して接続され、出力
する信号に関し基準となる初期値データが記憶される1
つまたは複数のレジスタと、前記動作プログラム、およ
び出力する信号に関する波形データが記憶されるメモリ
と、前記レジスタに記憶される初期値データに基づいて
前記メモリに記憶される波形データのアドレスを指定す
るアドレス指定手段と、
前記メモリからの波形データに応答し、前記レジスタに
記憶される初期値データに基づいて、前記波形データに
信号処理を施して、外部に信号を出力する信号処理手段
と、
前記メモリから中央処理回路への動作プログラムの読出
し、および前記メモリから信号処理手段への波形データ
の読出しに対応して、中央処理回路とメモリとの間のデ
ータバス、および信号処理手段とメモリとの間のデータ
バスを切換える切換手段とを含むことを特徴とする信号
発生回路である。Means for Solving the Problems The present invention includes a central processing circuit that processes signals based on an operation program, and a system that is connected to the central processing circuit via a data bus and has initial value data that serves as a reference for output signals. remembered1
one or more registers, a memory in which waveform data regarding the operating program and the signal to be output are stored, and an address of the waveform data to be stored in the memory based on initial value data stored in the register; addressing means; signal processing means for responding to the waveform data from the memory, performing signal processing on the waveform data based on initial value data stored in the register, and outputting the signal to the outside; Corresponding to the reading of the operating program from the memory to the central processing circuit and the reading of waveform data from the memory to the signal processing means, a data bus between the central processing circuit and the memory and a connection between the signal processing means and the memory are provided. and switching means for switching data buses between the two.
作 用
本発明の信号発生回路に従えば、メモリには中央処理回
路で処理される動作プログラムと出力する信号に間する
波形データとが記憶されている。Operation According to the signal generation circuit of the present invention, the memory stores an operation program to be processed by the central processing circuit and waveform data for output signals.
1つまたは複数のレジスタには、前記中央処理回路から
出力する信号に関し基準となる初期値データが設定され
、前記初期値データに基づいてアドレス指定手段は前記
メモリに記憶される波形データのアドレスを指定する。Initial value data serving as a reference for the signal output from the central processing circuit is set in one or more registers, and based on the initial value data, the addressing means determines the address of the waveform data stored in the memory. specify.
指定されたアドレスの波形データは信号処理手段に読出
され、前記信号処理手段によって波形データに信号処理
が施されて外部に信号が出力される。したがって、アド
レス指定手段によって指定されるアドレスから波形デー
タが読出されるので、中央処理回路はメモリのアドレス
指定には直接には関与せず、波形データを読出すための
プログラムを必要としない、また読出された波形データ
は信号処理手段によって信号処理が施されるので、この
ような信号処理に関するプログラムを必要としない、し
かもアドレス指定手段および信号処理手段を中央処理回
路とは独立に設けられており、高速度で処理動作を実行
することができるので、本発明に従う信号発生回路は、
高精度のパルス波形を有する信号を出力することができ
る。The waveform data at the designated address is read out by the signal processing means, and the signal processing means performs signal processing on the waveform data and outputs the signal to the outside. Therefore, since the waveform data is read from the address specified by the addressing means, the central processing circuit is not directly involved in memory addressing, and a program for reading the waveform data is not required. Since the read waveform data is subjected to signal processing by the signal processing means, there is no need for a program related to such signal processing, and moreover, the addressing means and the signal processing means are provided independently of the central processing circuit. , the signal generation circuit according to the invention is capable of performing processing operations at high speed.
A signal having a highly accurate pulse waveform can be output.
また、前記信号処理手段への波形データの読出しは、中
央処理回路を介する必要がないので、前記波形データの
読出しの際にのみ、メモリおよび中央処理回路間のパス
ラインから、メモリおよび波形発生回路間のパスライン
へ切換手段によって切換える。したがって、前記波形デ
ータと動作プログラムとを同一のメモリに記憶させるこ
とができ、rM発段階時におけるプログラム作成の時間
およびピギーバックによるスペース占有量を大幅に軽減
することができる。Furthermore, reading out the waveform data to the signal processing means does not need to go through the central processing circuit, so only when reading out the waveform data is the path line between the memory and the central processing circuit connected to the memory and the waveform generation circuit. The switching means switches to the pass line between the two. Therefore, the waveform data and the operation program can be stored in the same memory, and the time required to create the program and the amount of space occupied by piggybacking during the rM generation stage can be significantly reduced.
実施例
第1図は本発明の一実施例である信号発生回路21の簡
略化した構成を示すブロック図であり、第2図は信号発
生回路21を用いてコンプレッサ42の動作状態を制御
する場合の構成を示すブロック図である。たとえば、本
実施例の信号発生回路21から出力される制御信号がイ
ンバータ43に与えられ、コンプレッサ42の動作、す
なわち負荷であるモータの回転数などが制御される。前
記信号発生回路21とインバータ43との間には、雑音
などの外乱抑制のためにホトカブラ40が介在して接続
されている。Embodiment FIG. 1 is a block diagram showing a simplified configuration of a signal generation circuit 21 according to an embodiment of the present invention, and FIG. 2 shows a case where the operating state of a compressor 42 is controlled using the signal generation circuit 21. FIG. 2 is a block diagram showing the configuration of FIG. For example, a control signal output from the signal generating circuit 21 of this embodiment is given to the inverter 43, and the operation of the compressor 42, that is, the rotation speed of the motor as a load, etc. are controlled. A photocoupler 40 is interposed and connected between the signal generation circuit 21 and the inverter 43 in order to suppress disturbances such as noise.
信号発生回路21は、マイクロコンピュータなどで実現
される中央処理回路(以下、rcPUJと言う、)34
、ランダムアクセスメモリ(以下、rRAMJと言う、
)45、リードオンリメモリ(以下、FROM、と言う
。〉28、波形発生回路46の各ブロックと、切換手段
であるライン切換スイッチ47a、47b、47cとで
構成され、波形発生回路46のブロックは内部に、後述
する複数のレジスタとアドレス指定手段35と、さらに
信号処理手段36とを含む。The signal generation circuit 21 is a central processing circuit (hereinafter referred to as rcPUJ) 34 realized by a microcomputer or the like.
, random access memory (hereinafter referred to as rRAMJ)
) 45, read-only memory (hereinafter referred to as FROM) 28, consists of each block of the waveform generation circuit 46 and line selection switches 47a, 47b, 47c as switching means, the blocks of the waveform generation circuit 46 are Inside, it includes a plurality of registers and addressing means 35, which will be described later, and further a signal processing means 36.
ROM28には、CPU34の動作に必要な動作プログ
ラムPと、コンプレッサ42へ印加する3相交流波形に
関する波形データとが予め定める領域にストアされてい
る。またRAM45には、外部コントローラ20などで
設定されたモータの回転数や、温度センサからの温度情
報などのデータが書込まれる0本実施例においては、前
記ライン切換スイッチ47a〜47cを設け、CPU3
4とROM28との間で必要なアドレス指定およびプロ
グラムデ・−夕の転送を実行する際には、前記ライン切
換スイッチ47a〜47cの各切換接片SW1〜SW3
はCPU34側に設定され、アドレスデータ用としてパ
スライン115.&16およびプログラムデータ用とし
てパスライン111、#12、さらに読出用コントロー
ルバス118、f19がそれぞれ接続される。CPU3
4は、読込んだ動作プログラムPに基づいて、波形発生
回路46を構成するレジスタにパスライン124を介し
て初期値データFを設定するなど、他のブロックを制御
する。In the ROM 28, an operation program P necessary for the operation of the CPU 34 and waveform data regarding a three-phase AC waveform to be applied to the compressor 42 are stored in a predetermined area. Further, data such as the motor rotation speed set by the external controller 20 and temperature information from the temperature sensor are written in the RAM 45. In this embodiment, the line changeover switches 47a to 47c are provided, and the CPU 3
4 and the ROM 28, the switching contacts SW1 to SW3 of the line changeover switches 47a to 47c are
is set on the CPU 34 side, and the path line 115. is set for address data. &16, pass lines 111 and #12 for program data, and read control buses 118 and f19 are connected, respectively. CPU3
4 controls other blocks, such as setting initial value data F to the registers forming the waveform generation circuit 46 via the pass line 124, based on the read operation program P.
一方、ROM28から波形データの読出しを要求する際
には、前記波形発生回路46からCPU34へ切換要求
信号Dkがライン122を介して出力され、CPU34
では前記切換要求信号Dkに応じて、ライン123を介
してバス切換信号Bkを出力し、前記ライン切換スイッ
チ47a〜47cの切換接片SW1〜SW3を波形発生
回路46側へ切換える。これによって波形データ用のパ
スライン/12,113およびアドレスデータ用のパス
ライン116,117、さらに読出用コントロールバス
l 19,120が相互に接続される。On the other hand, when requesting reading of waveform data from the ROM 28, a switching request signal Dk is output from the waveform generating circuit 46 to the CPU 34 via the line 122, and the CPU 34
Then, in response to the switching request signal Dk, a bus switching signal Bk is outputted via the line 123, and switching contacts SW1 to SW3 of the line switching switches 47a to 47c are switched to the waveform generation circuit 46 side. As a result, the waveform data pass lines /12 and 113, the address data pass lines 116 and 117, and the read control buses I19 and 120 are interconnected.
初期値データFが設定された波形発生回路46へはCP
U34が関与することがなく、したがって、波形発生回
路46から、RAM45およびROM28ヘアドレスデ
ータを転送し、前記RAM45のデータおよびROM2
8の波形データを読出す際には、前記CPU34ヘアド
レスデータ用および波形データ用のパスラインが接続さ
れる必要がない。CP to the waveform generation circuit 46 in which the initial value data F is set.
U34 is not involved, therefore, the address data is transferred from the waveform generation circuit 46 to the RAM 45 and the ROM 28, and the data in the RAM 45 and the ROM 2 are transferred.
When reading out the waveform data of No. 8, it is not necessary to connect the pass lines for address data and waveform data to the CPU 34.
すなわち前記CPU34は待機状態である。こうして波
形発生回路46は読出命令RDを出力し、前記波形発生
回路46とROM28との間で必要なアドレス指定およ
び波形データの転送が実行される。前記波形データが波
形発生回路46内へ格納されると、前記バス切換信号B
kによって前記ライン切換スイッチ47a〜47cの切
換接片SW1〜SW3がCPU34側へ復帰し、以後、
CPU34は中断していた動作プログラムを実行する。That is, the CPU 34 is in a standby state. In this way, the waveform generation circuit 46 outputs the read command RD, and necessary addressing and waveform data transfer are performed between the waveform generation circuit 46 and the ROM 28. When the waveform data is stored in the waveform generation circuit 46, the bus switching signal B
k, the switching contacts SW1 to SW3 of the line changeover switches 47a to 47c return to the CPU 34 side, and thereafter,
The CPU 34 executes the suspended operation program.
なお、書込用コントロールバス121は常にCPU34
、波形発生回路46およびRAM45の間で接続されて
いる。Note that the write control bus 121 is always connected to the CPU 34.
, the waveform generating circuit 46 and the RAM 45.
したがって本実施例によれば、CPU34において動作
プログラムPの読出すタイミングおよび波形発生口、路
46において波形データの読出すタイミングに応じて、
前記メモリからCPU34へ、および波形発生回路46
へのパスラインをそれぞれ切換えるように構成している
ので、異なる種類のデータを共通のROM28にストア
させても、データ読出しの際のデータバス占有の問題は
生じることはない、このように、1個のメモリであるR
OM28へ前記動作プログラムPおよび波形データをス
トアすることができるので、開発段階時において従来で
述べたピギーバックによるプログラム作成時のスペース
、時間また労力のコストの軽減化を十分図ることができ
る。Therefore, according to this embodiment, depending on the timing at which the operating program P is read out in the CPU 34 and the timing at which the waveform data is read out at the waveform generation port 46,
From the memory to the CPU 34 and the waveform generation circuit 46
Since the configuration is such that the path lines to the ROM 28 are individually switched, even if different types of data are stored in the common ROM 28, the problem of data bus occupancy when reading data does not occur. memory of R
Since the operating program P and waveform data can be stored in the OM 28, it is possible to sufficiently reduce the cost of space, time, and labor when creating a program by piggybacking as described in the prior art during the development stage.
さらに、波形発生回路46はROM28ヘアドレスを直
接指定して読出された波形データを直接読込む、いわゆ
るダイレクトメモリアクセス(略称DMA)転送方式を
用い、CPU34を介在させずに直接波形データを読取
ることができるので、前記ROM28には、波形データ
読出し用のプログラムを書込む必要がなく、また前記波
形データを処理するプログラムを必要としない、したが
うてプログラム作成の負担が格段に軽減され、また高速
で波形データを読出すことができるので、制御の即応性
が格段に向上する。Furthermore, the waveform generation circuit 46 uses a so-called direct memory access (abbreviation DMA) transfer method in which an address is directly specified to the ROM 28 and the read waveform data is directly read, and the waveform data can be directly read without the intervention of the CPU 34. Therefore, there is no need to write a program for reading waveform data into the ROM 28, and there is no need for a program to process the waveform data.Therefore, the burden of program creation is significantly reduced, and the process can be performed at high speed. Since waveform data can be read, control responsiveness is greatly improved.
以下、第2図を参照して、信号発生回路21からの制御
信号によってコンプレッサ42を制御する構成を説明す
る。信号発生回路21を動作させるためのクロック信号
CKは、クロック信号発生回路39から端子T9を介し
て与えられている。A configuration for controlling the compressor 42 using a control signal from the signal generation circuit 21 will be described below with reference to FIG. A clock signal CK for operating the signal generation circuit 21 is provided from a clock signal generation circuit 39 via a terminal T9.
この信号発生回路21から出力された信号は、前述のよ
うにホトカプラ40を介してコンバータ43のトランジ
スタTri〜Tr6に与えられる。The signal output from this signal generation circuit 21 is given to the transistors Tri to Tr6 of the converter 43 via the photocoupler 40 as described above.
トランジスタTrl、Tr2、トランジスタTr3、T
r4およびトランジスタTr5.Tr6はそれぞれ直列
に接続されており、トランジスタTr 1 、T r
3 、T r 5のコレクタには電源回路41からの直
流電源電圧が並列に与えられている。ホトカプラ40の
出力信号R1,R1はトランシタTri、Tr2のベー
スにそれぞれ与えられ、出力信号R2,R2はトランジ
スタTr3.Tr4のベースにそれぞれ与えられ、出力
信号R3,R3はトランジスタT r 5 、 T r
6のベースにそれぞれ与えられる。トランジスタTr
l、Tr2の接続部、トランジスタTr3.Tr4の接
続部およびトランジスタTr5.Tr6の接続部におけ
る信号がラインLa、Lb、Lcを介してそれぞれコン
プレッサ42に与えられる。Transistors Trl, Tr2, transistors Tr3, T
r4 and transistor Tr5. The transistors Tr6 are connected in series, and the transistors Tr 1 and Tr
A DC power supply voltage from a power supply circuit 41 is applied in parallel to the collectors of T.3 and T.sub.r5. The output signals R1, R1 of the photocoupler 40 are applied to the bases of the transistors Tri, Tr2, respectively, and the output signals R2, R2 are applied to the bases of the transistors Tr3. The output signals R3 and R3 are given to the bases of Tr4, respectively, and the output signals R3 and R3 are provided to the bases of transistors T r 5 and T r
6 bases each. Transistor Tr
1, connection portion of Tr2, transistor Tr3. Connection portion of Tr4 and transistor Tr5. Signals at the connections of Tr 6 are applied to compressors 42 via lines La, Lb, and Lc, respectively.
コンプレッサ42はたとえば3相交流モータによって動
作され、等価的にコイル42a、42b。The compressor 42 is operated, for example, by a three-phase AC motor, equivalently having coils 42a, 42b.
42Cによって表すことができる。コイル42a〜42
cの一端部は相互に接続されており、前述したラインL
a〜Lcはコイル42a〜42cの他端部にそれぞれ接
続されている。42C. Coils 42a-42
One end of c is connected to the above-mentioned line L.
a to Lc are connected to the other ends of the coils 42a to 42c, respectively.
このようにしてインバータ43によって電源回路41か
らの直流出力を3相交流と等価な矩形波に変換し、前記
コイル42a〜42cへ印加することによって、コンプ
レッサ42における動作状態、すなわちモータの回転速
度が制御される。In this way, the inverter 43 converts the DC output from the power supply circuit 41 into a rectangular wave equivalent to three-phase AC, and applies it to the coils 42a to 42c, thereby changing the operating state of the compressor 42, that is, the rotational speed of the motor. controlled.
なおホトカプラ40はたとえばホトダイオードとホトト
ランジスタとから戒り、出力電圧が入力電圧とは反転す
るので、第2図においては反転器の記号を用いて表しで
ある。Note that the photocoupler 40 is different from, for example, a photodiode and a phototransistor, and since its output voltage is inverted from the input voltage, it is represented using the symbol of an inverter in FIG.
以下、信号発生回路21の具体的構成を第3図を参照し
て説明する。The specific configuration of the signal generation circuit 21 will be explained below with reference to FIG.
この信号発生回路21はアドレス指定手段35と波形デ
ータが記憶されるROM28と、信号処理手段36と、
さらに複数のレジスタとを含んで構成される。なお複数
のレジスタについては、そのレジスタ名と同一の参照符
を用いて表す、これらのレジスタは、図示しないアドレ
スバスおよびデータバス124を介してCPU34に接
続され、予め定めるタイミングで初期値データFが設定
される。各レジスタのアドレスとレジスタ名とは第1表
に示される。This signal generation circuit 21 includes an addressing means 35, a ROM 28 in which waveform data is stored, a signal processing means 36,
Furthermore, it is configured to include a plurality of registers. Note that a plurality of registers are indicated using the same reference numeral as the register name. These registers are connected to the CPU 34 via an address bus and a data bus 124 (not shown), and the initial value data F is input at a predetermined timing. Set. The address and register name of each register are shown in Table 1.
(以下余白〉
第 1 表
アドレス指定手段35は、たとえば論理積置n22、ア
ップカウンタ23、アドレス信号発生回路24、一致判
定回路26およびマルチプレクサ27を含んで構成され
ている。前述したクロック信号発生回路39によって発
生された、たとえば4MHzのクロック信号CKは端子
T9を介して論理積回路22の一方の入力端子に与えら
れる。(Left below) Table 1 The address designation means 35 includes, for example, a logical product n22, an up counter 23, an address signal generation circuit 24, a coincidence determination circuit 26, and a multiplexer 27.The above-mentioned clock signal generation circuit A clock signal CK of, for example, 4 MHz generated by the circuit 39 is applied to one input terminal of the AND circuit 22 via the terminal T9.
またレジスタC0NTの第7ビツトはスタートフラグど
なっており、この第7ビツトの論理値が論理積回路22
の他方の入力端子に与えられる。Furthermore, the 7th bit of the register C0NT is a start flag, and the logical value of this 7th bit is the AND circuit 22.
is applied to the other input terminal of
たとえば10ビツト構成のアップカウンタ23にはレジ
スタSAMPに設定される初期値データFが初期値とし
てセットされ、前記論理積回路22からの出力によって
計数動作を行う、このアップカウンタ23がオーバフロ
ーしたときに、たとえばハイレベルとなる信号はアドレ
ス信号発生回路24に与えられる。このアドレス信号発
生回路24は、たとえば13ビツトのアップダウンカウ
ンタなどであって、アップカウンタ23からの信号の立
上りで計数動作を行う、その計数動作の動作態様はデコ
ーダ29からの制御信号に基づいて後述するように設定
される。For example, the initial value data F set in the register SAMP is set as an initial value in the up counter 23 having a 10-bit configuration, and the up counter 23 performs counting operation based on the output from the AND circuit 22. When the up counter 23 overflows, , for example, a high level signal is applied to the address signal generation circuit 24. This address signal generation circuit 24 is, for example, a 13-bit up/down counter, and performs a counting operation at the rising edge of the signal from the up counter 23. The operation mode of the counting operation is based on the control signal from the decoder 29. It is set as described below.
また前記ハイレベルとなる信号は、前記切換要求信号D
kとしてCPU34へ与えられる。CPU34では、前
記信号Dkに応答して、前記第1図に示されるライン1
23を介してバス切換信号Bkを出力し、ライン切換ス
イッチ47a〜47Cの切換接片SW1〜SW3を波形
発生回路46側に切換え、後述のようにROM28への
アドレスデータの指定および波形データの転送を実行す
る。Further, the signal that becomes the high level is the switching request signal D.
It is given to the CPU 34 as k. In the CPU 34, in response to the signal Dk, the line 1 shown in FIG.
23, the switching contacts SW1 to SW3 of the line changeover switches 47a to 47C are switched to the waveform generation circuit 46 side, and the address data is designated and the waveform data is transferred to the ROM 28 as described later. Execute.
アドレス信号発生回路24の初期値は、マルチプレクサ
27から与えられる。このマルチプレクサ27は、レジ
スタ5TRTおよびレジスタENDに記憶される値を後
述するデコーダ29からの信号によって選択して前記ア
ドレス信号発生回路24に出力する。マルチプレクサ2
7からの出力は一致判定回路26にも与えられる。この
一致判定回路26は、マルチプレクサ27から導出され
るデータと、アドレス信号発生回路24から出力される
アドレスデータとを比較し、両者が一致したときに、た
とえばハイレベルとなる信号を出力する。The initial value of address signal generation circuit 24 is given from multiplexer 27 . The multiplexer 27 selects the values stored in the register 5TRT and the register END according to a signal from a decoder 29, which will be described later, and outputs the selected value to the address signal generation circuit 24. multiplexer 2
The output from 7 is also given to the match determination circuit 26. The match determining circuit 26 compares the data derived from the multiplexer 27 and the address data output from the address signal generating circuit 24, and outputs a signal that goes high, for example, when the two match.
レジスタCNT12は、たとえば「0」〜「11」まで
を計数するカウンタであって、一致判定回路26からの
一致判定信号に基づいて計数動作を行う、このときレジ
スタC0NTに設定される初期値データFにおいて第4
ビツトが「0」である場合には、レジスタC0NTの第
6ビツトおよび第5ビツトによってそのカウントアツプ
数が予め設定される。またレジスタC0NTの第4ビツ
トが「1」である場合には、レジスタCNT12は、カ
ウンタとして使用されず、CPU34によって任意の値
が設定される。The register CNT12 is a counter that counts, for example, from "0" to "11", and performs a counting operation based on a match judgment signal from the match judgment circuit 26. At this time, the register CNT12 is a counter that counts from "0" to "11". 4th in
If the bit is "0", the count up number is preset by the sixth and fifth bits of register C0NT. Further, when the fourth bit of the register C0NT is "1", the register CNT12 is not used as a counter, and an arbitrary value is set by the CPU 34.
レジスタCNT12に記憶されるデータはデコーダ29
によってデコードされ、この数値に基づいてアドレス信
号発生回路24におけるアドレスの指定態様、マルチプ
レクサ27における導出データの選択態様およびデータ
変換回路3oにおけるデータQ変換態様が設定される。The data stored in register CNT12 is sent to decoder 29.
Based on this numerical value, the address designation manner in the address signal generation circuit 24, the derived data selection manner in the multiplexer 27, and the data Q conversion manner in the data conversion circuit 3o are set.
なお、レジスタC0NTの第4ビツトがrQ。Note that the fourth bit of register C0NT is rQ.
である場合、すなわちレジスタCNT12がカウンタと
して使用されている場合には、スイッチ25によってレ
ジスタCNT12がオーバフローしたときに、たとえば
ハイレベルとなる信号がライン38に導出される。また
、レジスタC0NTの第4ビツトが「1」である場合に
は、スイッチ25によって一致判定回路26がらの信号
がライン38に導出される。ライン38の信号は、CP
U34に割込信号として与えられる。レジスタc。If this is the case, that is, if the register CNT12 is used as a counter, then the switch 25 will cause a signal to go high, for example, to the line 38 when the register CNT12 overflows. Further, when the fourth bit of the register C0NT is "1", the signal from the match determination circuit 26 is led out to the line 38 by the switch 25. The signal on line 38 is CP
It is given to U34 as an interrupt signal. register c.
NTの第4ビツトが「1」である場合には、この割込信
号による割込処理で、レジスタCNT12の第3ビツト
〜第Oビツト所望の数値が設定される。またライン38
の信号は、1バイトカウンタであるレジスタCNTFF
にも与えられ、これによってCPU34には256周期
の信号発生毎に割込信号が与えられる。すなわち、これ
ら割込信号のタイミングで実行される割込処理などによ
って、各レジスタへの初期値データFなどが更新され、
その結果、モータへ印加する電力の周波数を円滑に変化
させ、最適な制御を実現する。When the fourth bit of NT is "1", the third to Oth bits of register CNT12 are set to desired numerical values by the interrupt processing by this interrupt signal. Also line 38
The signal is the register CNTFF, which is a 1-byte counter.
This also provides the CPU 34 with an interrupt signal every 256 cycles of signal generation. That is, the initial value data F etc. to each register are updated by interrupt processing executed at the timing of these interrupt signals, etc.
As a result, the frequency of the power applied to the motor can be smoothly changed to achieve optimal control.
ROM28は、たとえば8にバイトウ3ビツト構成のリ
ードオンリメモリであって、アドレス信号発生回路24
がら出力され、ライン切換スイッチ47aを介するアド
レスデータによって指定されたアドレスの3ビツトのデ
ータをそれぞれ波形データDa、Db、Dcとして、ラ
イン切換スイッチ47bを介して信号処理手段36に出
力する。The ROM 28 is a read-only memory having, for example, 8 bytes and 3 bits, and the address signal generation circuit 24
The 3-bit data of the address designated by the address data via the line changeover switch 47a is outputted to the signal processing means 36 via the line changeover switch 47b as waveform data Da, Db, and Dc, respectively.
信号処理手段36は、データ変換回路30と立上り遅延
回路31と、さらに出力回路32とを含んで構成される
。ROM28からの波形データDa 、D b 、D
cはデータ変換回路30に与えられる。The signal processing means 36 includes a data conversion circuit 30, a rise delay circuit 31, and an output circuit 32. Waveform data Da, Db, D from ROM28
c is given to the data conversion circuit 30.
データ変換回路30は前述したデコーダ29からの信号
に基づいてデータの変換を行い、信号Ea。The data conversion circuit 30 converts data based on the signal from the decoder 29 described above, and generates a signal Ea.
31に出力する。立上り遅延回路31はこれらの信号E
a〜Ec、Ea〜Ecの立上りをレジスタC0NTの第
3ビツト〜第Oビツトによって設定される遅延時間dだ
け遅延し、信号号Fa〜Pc。Output to 31. The rise delay circuit 31 receives these signals E
The rising edges of a to Ec and Ea to Ec are delayed by a delay time d set by the third to Oth bits of the register C0NT, and the signal signals Fa to Pc are generated.
Fa〜Fcとして出力回路32に出力する。出力回路3
2は、この信号F a〜F c 、 F a〜F cに
基づいて、前述したホトカプラ40を駆動するために、
20mAの吸込み電流で、前述したコンプレッサ42を
制御するための信号Pa〜Pc、Pa〜Pcを、端子T
1〜T6を介して出力する。It is output to the output circuit 32 as Fa to Fc. Output circuit 3
2 is for driving the photocoupler 40 described above based on the signals F a to F c and F a to F c.
The signals Pa to Pc and Pa to Pc for controlling the compressor 42 described above are connected to the terminal T with a suction current of 20 mA.
1 to T6.
なお、外部から端子T7を介してラッチ回路33に停止
信号を送出することによって前記出力回路32の出力動
作を停止することができる。また、この停止信号は、C
PU34への割込信号となる。Note that the output operation of the output circuit 32 can be stopped by sending a stop signal from the outside to the latch circuit 33 via the terminal T7. Also, this stop signal is C
This becomes an interrupt signal to the PU34.
以下、第4図のフローチャートを参照して信号発生回路
21における動作を簡単に説明する。信号発生回路21
からコンプレッサ42の制御を行うための信号を発生す
るに先立って、ステップn1で信号発生回路21の各レ
ジスタ群に記憶される初期値データFが設定される0次
にステップn2で、レジスタに記憶される初期値データ
Fに基づいてアドレス指定手段35によってROM28
のアドレスが指定される。このとき、ライン切換スイッ
チ47a〜47cの切換接片SWI〜SW3は、波形発
生回路46側に設定される。これによってステップn3
でそのアドレスの波形データD a 、D b 、D
cが出力され、信号処理手段36によって読出される。The operation of the signal generation circuit 21 will be briefly described below with reference to the flowchart of FIG. Signal generation circuit 21
In step n1, initial value data F to be stored in each register group of the signal generation circuit 21 is set, prior to generating a signal for controlling the compressor 42 from 0.Next, in step n2, initial value data F to be stored in the registers is set. Based on the initial value data F stored in the ROM 28 by the addressing means 35,
address is specified. At this time, the switching contacts SWI to SW3 of the line changeover switches 47a to 47c are set to the waveform generation circuit 46 side. This allows step n3
The waveform data of that address D a , D b , D
c is output and read out by the signal processing means 36.
前記読出後、前記切換接片SW1〜SW3は、CPU3
4からのバス切換信号Bkに基づいて、CPU34側へ
切換えて設定される。After the reading, the switching contact pieces SW1 to SW3 are connected to the CPU 3.
Based on the bus switching signal Bk from 4, the setting is switched to the CPU 34 side.
ステップn4において、信号処理手段36は、この波形
データD a 、D b 、D cに信号処理を施し、
ステップn5で信号処理の結果を出力信号Pa〜Pc、
Pa〜Pcとして出力する。In step n4, the signal processing means 36 performs signal processing on the waveform data Da, Db, Dc,
In step n5, the signal processing results are output as signals Pa to Pc,
Output as Pa to Pc.
次にステップn6でマルチプレクサ27によって導出さ
れている信号と、アドレス信号発生回路24から出力さ
れているアドレスデータとが一致するか否かが判断され
る。一致していない場合には、アドレス信号発生回路2
4がら出力されるアドレスデータがインクリメントまた
はデクリメントされ、前述したステップn2に戻る。ス
テップn6における判断が肯定である場合には、レジス
タC0NTの第4ビツトの論理値によって処理動作が分
岐する。この論理値が「0」である場合には、レジスタ
CNT12を使用してカウント動作が行われる。このと
きのカウントアツプ数は前述したようにレジスタC0N
Tの第5ビツトおよび第6ビツトによって設定される。Next, in step n6, it is determined whether the signal derived by the multiplexer 27 and the address data output from the address signal generation circuit 24 match. If they do not match, address signal generation circuit 2
The address data output from 4 is incremented or decremented, and the process returns to step n2 described above. If the determination at step n6 is affirmative, the processing operation branches depending on the logical value of the fourth bit of register C0NT. If this logical value is "0", a counting operation is performed using register CNT12. The count-up number at this time is the register C0N as mentioned above.
Set by the fifth and sixth bits of T.
この後ステップn9においてレジスタCNTl2におけ
る計数値が所定の値、すなわち12以上であるか否かが
判断される。この判断が否定である場合にはアドレス信
号発生口#!24から出力されるアドレスデータの初期
値が再び設定され、前述したステップn2に戻る。また
この判断が肯定である場合には後述するステップnlo
に移る。Thereafter, in step n9, it is determined whether the count value in the register CNTl2 is a predetermined value, that is, 12 or more. If this judgment is negative, address signal generation port #! The initial value of the address data output from 24 is set again, and the process returns to step n2 described above. Also, if this judgment is affirmative, step nlo, which will be described later.
Move to.
ステップn7において、レジスタC0NTの第4ビツト
の値が「1」である場合には、ステップnloにおいて
割込みが発生され、CPU34は割込処理ルーチン内で
、レジスタCNT12に所望の値を設定できる
この割込信号によって、ステップnllにてレジスタC
NTFFのカウントアツプ動作が行われ、ステップn1
2でレジスタCNTFFの計数値が予め定めた値256
以上であるか否がが判断される。この判断が否定の場合
には、アドレス信号発生回路24から発生されるアドレ
ス信号が再び設定されて前述したステップn2に戻る。If the value of the fourth bit of register C0NT is "1" in step n7, an interrupt is generated in step nlo, and the CPU 34 uses this interrupt to set a desired value in register CNT12 in the interrupt processing routine. register C in step nll due to the input signal.
A count-up operation of NTFF is performed, and step n1
2, the count value of register CNTFF becomes the predetermined value 256.
It is determined whether or not this is the case. If this determination is negative, the address signal generated from the address signal generation circuit 24 is set again and the process returns to step n2 described above.
またこの判断が肯定である場合には、ステップn13に
移って割込信号が発生される。If this determination is affirmative, the process moves to step n13 and an interrupt signal is generated.
なお本実施例では、CPU34は割込信号が入力される
ことによって各レジスタの初期値データFの更新などの
所定の割込動作を行うように構成することができる。In this embodiment, the CPU 34 can be configured to perform a predetermined interrupt operation such as updating the initial value data F of each register when an interrupt signal is input.
このようにして信号処理手段36からはコンプレッサ4
2の動作状態を制御するための信号Pa〜Pc、Pa〜
Pcが出力される。In this way, the signal processing means 36 outputs the signal to the compressor 4.
Signals Pa~Pc, Pa~ for controlling the operating state of 2
Pc is output.
以下、信号発生回路21における各動作について詳細に
説明する。Each operation in the signal generation circuit 21 will be described in detail below.
■サンプリング時間の設定
信号発生回路21では、ROM28から波形データDa
〜Dcを読出す時間間隔(以下、サンプリング時間とい
う)をレジスタSAMPに設定される初期値データに基
づいて変更することができる。レジスタSAMPはアド
レス番号FF25h(「h」は16進表示であることを
表す)およびアドレス番号FF26hで指定される記憶
領域から戒り、各ビットの意味は第2表に示されるとお
りである。■The sampling time setting signal generation circuit 21 receives the waveform data Da from the ROM 28.
The time interval for reading ~Dc (hereinafter referred to as sampling time) can be changed based on the initial value data set in the register SAMP. Register SAMP is stored in a storage area specified by address number FF25h ("h" indicates hexadecimal notation) and address number FF26h, and the meaning of each bit is as shown in Table 2.
(以下余白〉
第 2
表
すなわちアドレス番号FF25hはサンプリング時間を
表すデータの下位8ビツトを表し、アドレス番号FF2
6hの下位2ビツトはサンプリング時間を表すデータの
上位2ビツトを表す、したかってサンプリング時間を表
すデータは00h〜3FFhまでの値を取ることができ
る。この値がアップカウンタ23の初期値となる。(Margins below) Table 2: address number FF25h represents the lower 8 bits of data representing the sampling time, and address number FF2
The lower 2 bits of 6h represent the upper 2 bits of data representing the sampling time. Therefore, the data representing the sampling time can take values from 00h to 3FFh. This value becomes the initial value of the up counter 23.
アップカウンタ23は最大4MHzのクロック信号によ
って計数動作を行うので、サンプリングタイムはOOh
〜3FFhに対応して256μ秒から0.25μ秒まで
0.25μ秒毎に選択することができる。なおサンプリ
ング時間を表すデータがOOhのときにはサンプリング
時間は256μ秒となる。Since the up counter 23 performs counting operation using a clock signal of maximum 4 MHz, the sampling time is OOh.
It is possible to select every 0.25 μsec from 256 μsec to 0.25 μsec corresponding to ~3FFh. Note that when the data representing the sampling time is OOh, the sampling time is 256 μsec.
またアドレス番号FF26hの第7ビツトはアップカウ
ンタセットフラグとなっており、論理値「1」が設定さ
れると、前記サンプリング時間を表すデータがアップカ
ウンタ23に初期値として設定される。初期値として設
定された後にはこのアップカウンタセットフラグは「O
」とされる。The seventh bit of the address number FF26h is an up counter set flag, and when the logic value "1" is set, data representing the sampling time is set in the up counter 23 as an initial value. After being set as the initial value, this up counter set flag is set to “O”.
”.
■波形データの作成
アップカウンタ23からの信号の立上り毎にアドレス信
号発生回路24はROM28にアドレスデータを出力す
る。このROM28に記憶される波形データは以下に説
明するようにして作成され、予め記憶されている。(2) Creation of Waveform Data The address signal generation circuit 24 outputs address data to the ROM 28 every time the signal from the up counter 23 rises. The waveform data stored in this ROM 28 is created as described below and is stored in advance.
3相交流モータの駆動に必要な3相交流の波形は、第5
図(1)に示されるように、位相が互いに2π/3 (
=120” )だけ隔たった3相の正弦波11〜13で
あり、その周波数を変化させることによって前記モータ
の回転数が制御される。The waveform of the three-phase AC required to drive the three-phase AC motor is the fifth waveform.
As shown in Figure (1), the phases are 2π/3 (
The rotational speed of the motor is controlled by changing the frequency of the three-phase sine waves 11 to 13 separated by 120'').
前記周波数の可変範囲は、たとえば20〜180Hzで
ある。前記波形データDa〜Dcは、第5図(2)で示
される周期2π/n(nは整数であり、第5図(2)に
おいてはn=24)の三角波14を前記正弦波形11〜
13によるパルス幅変調(PWM)でサンプリングする
ことによって求められる。The variable range of the frequency is, for example, 20 to 180 Hz. The waveform data Da to Dc are a triangular wave 14 with a period of 2π/n (n is an integer, and n=24 in FIG. 5(2)) shown in FIG. 5(2), and a triangular wave 14 shown in FIG.
13 by sampling with pulse width modulation (PWM).
第6図には、例として第5図の時間θ1で示される30
度分の波形データDa〜Dcの生成を説明するために、
前記時間θlにおける3相交流の波形を示す波形図が示
されている。In FIG. 6, as an example, 30
To explain the generation of degree waveform data Da to Dc,
A waveform diagram showing the waveform of three-phase alternating current at the time θl is shown.
すなわち時間θ1をさらに、たとえば16ビツトに対応
する16に時分割し、各時刻tO〜t15における正弦
波11〜13と三角波14との大きさを比較する。正弦
波11と三角波14との比較によって波形データDaが
作成され、正弦波12と三角波14との比較によって波
形データDbが作成され、さらに正弦波13と三角波1
4との比較によってデータDcが作成される。つまり各
時刻tO〜t15において、正弦波11〜13の値が三
角波14の値以下である場合には、波形データの論理値
は「0」となり、正弦波11〜13の値が三角波14の
値を越える場合には波形データの論理値は「1」となる
、このようにして作成された30度分の波形データDa
〜Dcは第3表に示される。なお、前記分割数によって
データのビット長が増減し、パルス変調を施す三角波1
4の周期によってサンプリング精度が定まる。したがっ
て、前記三角波14の周期が短く分割数が多いほど精度
は向上する。That is, the time .theta.1 is further time-divided into, for example, 16 times corresponding to 16 bits, and the magnitudes of the sine waves 11-13 and the triangular wave 14 at each time tO-t15 are compared. Waveform data Da is created by comparing the sine wave 11 and the triangular wave 14, waveform data Db is created by comparing the sine wave 12 and the triangular wave 14, and further waveform data Db is created by comparing the sine wave 12 and the triangular wave 14.
Data Dc is created by comparison with 4. In other words, at each time tO to t15, if the values of the sine waves 11 to 13 are less than or equal to the value of the triangular wave 14, the logical value of the waveform data becomes "0", and the values of the sine waves 11 to 13 become the value of the triangular wave 14. If the waveform data exceeds Da, the logical value of the waveform data becomes "1".
~Dc is shown in Table 3. Note that the bit length of the data increases or decreases depending on the number of divisions, and the triangular wave 1 to which pulse modulation is applied
The sampling accuracy is determined by the period of 4. Therefore, the accuracy improves as the period of the triangular wave 14 becomes shorter and the number of divisions increases.
〈以下余白)
第 3
表
後述するように30度分の波形データから1周期分の信
号を発生する場合には、データ変換回路30によって前
記30度分の波形データに後述するようなデータ変換が
施され、−周期に亘る波形データが得られる。たとえば
第3表に示される30度分の波形データDaからはデー
タ変換によって第4表に示される波形データが作成され
る。(Left below) Table 3 When generating one cycle of signals from 30 degrees of waveform data as described later, the data conversion circuit 30 performs data conversion on the 30 degrees of waveform data as described below. waveform data over a - period is obtained. For example, from the waveform data Da for 30 degrees shown in Table 3, the waveform data shown in Table 4 is created by data conversion.
第 4 表
第4表において波形データ(−Da)は波形データDa
の時系列的に並ぶ各論理値を逆方向にしたものであり、
アドレスの指定方向を逆方向に更新させて指定すること
により得ることができる。Table 4 In Table 4, waveform data (-Da) is waveform data Da.
It is the reverse direction of each logical value arranged in chronological order,
This can be obtained by updating the address specification direction in the opposite direction.
また波形データDaは波形データDaを反転することに
よって得ることができる。したがって波形データ(−D
a )は、波形データ(−Da)の反転である。Further, the waveform data Da can be obtained by inverting the waveform data Da. Therefore, the waveform data (-D
a) is the inversion of the waveform data (-Da).
■波形データの変換
ROM28から出力される波形データDa〜DCは、レ
ジスタC0NT、CNTl 2に設定される初期値デー
タFによって複数態様で変換される。(2) Conversion of Waveform Data The waveform data Da to DC output from the ROM 28 are converted in a plurality of ways according to the initial value data F set in the registers C0NT and CNTl2.
レジスタC0NTの内容は第5表に示される。The contents of register C0NT are shown in Table 5.
(以下余白)
第 5 表
レジスタC0NTの第Oビット〜第3ビットは後述する
ような遅延時間dを設定するために使用される。また第
4ビツトは前述したようにレジスタCNT12をカウン
タとして使用するか否かを選択するための選択フラグと
なっている。(Left below) Table 5 The Oth bit to the third bit of the register C0NT are used to set a delay time d as described later. Further, the fourth bit serves as a selection flag for selecting whether or not to use the register CNT12 as a counter, as described above.
第5ピツトおよび第6ビツトは波形データの種類を選択
するために設けられる。なお第7ビツトはスタートフラ
グとなっており、論理値「O」のときには前記信号発生
回路21からの信号の出力が停止される。このスタート
フラグが「0」から「1」に変化したときレジスタCN
T12および後述するレジスタCNTFFは初期値「O
」に設定され、前述したレジスタ5TRT、END、S
AMPの最上位ビットはリセットされる。The fifth pit and the sixth bit are provided for selecting the type of waveform data. Note that the seventh bit is a start flag, and when the logical value is "O", output of the signal from the signal generating circuit 21 is stopped. When this start flag changes from "0" to "1", register CN
T12 and register CNTFF, which will be described later, have an initial value of “O”.
”, and registers 5TRT, END, and S
The most significant bit of AMP is reset.
レジスタCNT12の第3ビツト〜第Oビツトは波形デ
ータの変換態様を設定するために設けられており、前述
したレジスタC0NTの第4ビツトが「1」である場合
には、CPU34がら任意の数値(0〜11)を設定す
ることができる。レジスタCNT12の第3ビツト〜第
Oビツトの値とデータの変換態様との関係は、後述する
ように第7表に示されている。The third bit to the Oth bit of the register CNT12 are provided to set the conversion mode of the waveform data, and when the fourth bit of the register C0NT mentioned above is "1", the CPU 34 can input any numerical value ( 0 to 11) can be set. The relationship between the values of the third bit to the Oth bit of the register CNT12 and the data conversion mode is shown in Table 7, as will be described later.
またレジスタC0NTの第4ビツトが「OJの場合には
、このレジスタCNT12の第3ビツト〜第Oビツトは
カウンタとして使用される。レジスタC0NTの第6ビ
ツトおよび第5ビツトの数値とレジスタCNT12にお
けるカウントアツプ数との関係は第6表に示される。If the fourth bit of register C0NT is "OJ," the third to Oth bits of register CNT12 are used as a counter. The relationship with the number of ups is shown in Table 6.
第 6
表
以下、レジスタC0NTの第6ビツト〜第4ビツトの数
値毎に波形データDa〜Dcの変換について詳述する。Table 6 below describes in detail the conversion of waveform data Da to Dc for each value of the sixth to fourth bits of register C0NT.
(a)レジスタC0NTの第6ビツト〜第4ビツトがr
o 00 Jの場合
レジスタC0NTの第6ビツト〜第4ビツトがro 0
0 Jである場合には30度分の波形データから1周期
の出力信号が生成される。このときレジスタCNT12
はカウントアツプ数が「+1」に設定され、「O」から
「11」までカウントアツプ数「十l」で順次計数動
作を行う、これによって30度分の波形データD a
−D cは1周期において、第7図の角度θa1〜θa
12までに亘って12回読出されることになる。(a) The 6th to 4th bits of register C0NT are r
o 00 J, the 6th to 4th bits of register C0NT are ro 0
In the case of 0 J, one cycle of output signal is generated from 30 degrees of waveform data. At this time, register CNT12
The count-up number is set to "+1", and the counting operation is performed sequentially from "O" to "11" with the count-up number "10l". This results in 30 degrees worth of waveform data D a
-D c is the angle θa1 to θa in Fig. 7 in one cycle.
The data will be read out 12 times by 12 times.
またデコーダ29からアドレス信号発生回路24および
マルチプレクサ27にはレジスタCNT12の第Oビッ
トに基づいて信号が導出される。Further, a signal is derived from the decoder 29 to the address signal generation circuit 24 and the multiplexer 27 based on the Oth bit of the register CNT12.
したがってレジスタCNT12の第Oビットが「0」で
ある場合には、マルチプレクサ27はまずレジスタ5T
RTに記憶される数値を導出する。Therefore, when the O-th bit of register CNT12 is "0", multiplexer 27 first outputs register 5T.
Derive the numerical value stored in RT.
これによってアドレス信号発生回路24の初期値はレジ
スタ5TRTに記憶される初期値データFとなる。また
アドレス信号発生同時24はデコーダ29からの信号に
よってアップカウンタとして機能し、順次アドレス値を
インクリメントしながら指定することになる。このとき
マルチプレクサ27はレジスタENDを導出するように
切換わり、一致判定回路26ではアドレス信号発生回路
24からのアドレスデータとレジスタENDに記憶され
る初期値データFとを比較する。この場合にはアドレス
信号発生回路24によって、たとえば16回アドレスが
指定されると、一致判定回路26の出力はたとえばハイ
レベルに変わる。As a result, the initial value of the address signal generation circuit 24 becomes the initial value data F stored in the register 5TRT. Further, the address signal generation simultaneous 24 functions as an up counter based on the signal from the decoder 29, and specifies the address value while sequentially incrementing it. At this time, the multiplexer 27 is switched to derive the register END, and the match determination circuit 26 compares the address data from the address signal generation circuit 24 with the initial value data F stored in the register END. In this case, when the address is specified, for example, 16 times by the address signal generation circuit 24, the output of the match determination circuit 26 changes to, for example, a high level.
またレジスタCNT12の第0ビツトが「1」である場
合には、マルチプレクサ27はまずレジスタENDに記
憶される初期値データFをアドレス信号発生回路24に
導出する。この場合にはデコーダ29からの制御信号に
よってアドレス信号発生回路24はダウンカウンタとし
て機能する。Further, when the 0th bit of the register CNT12 is "1", the multiplexer 27 first derives the initial value data F stored in the register END to the address signal generating circuit 24. In this case, the address signal generation circuit 24 functions as a down counter by the control signal from the decoder 29.
アドレス信号発生回路24によって16回アドレスが指
定されると、マルチプレクサ27から切換えられて導出
されているレジスタ5TRTの初期値データFとアドレ
ス信号発生回路24からのアドレスデータとが一致し、
一致判定回路26の出力がハイレベルになる。When the address is specified 16 times by the address signal generation circuit 24, the initial value data F of the register 5TRT, which is switched and derived from the multiplexer 27, and the address data from the address signal generation circuit 24 match.
The output of the match determination circuit 26 becomes high level.
このようにしてROM28から出力される波形データD
a〜Dcにはデータ変換回130によってデータの変換
が施される。すなわちデコーダ29からはレジスタCN
T12の第3ビツト〜第Oビツトのデータが導出され、
これに基づいて前述したようにデータの変換が施される
。データ変換回路30における変換態様は第7表に示さ
れる。Waveform data D output from the ROM 28 in this way
A to Dc are subjected to data conversion by a data conversion circuit 130. That is, from the decoder 29, the register CN
The data of the 3rd bit to the Oth bit of T12 is derived,
Based on this, the data is converted as described above. The conversion mode in the data conversion circuit 30 is shown in Table 7.
すなわちたとえば−例として、角度θa1においては、
レジスタCNT12に記憶される値が「0」であるから
、波形データDa〜Dcがそのまま波形データEa〜E
cとして出力される。波形データEa〜Ecは波形デー
タEa〜Ecをそれぞれ反転したデータである。また角
度θa2において4よ、レジスタCNT12の値は「1
」であるから、波形データDcが波形データEaとして
出力され、波形データDbが波形データEbとして出力
され、波形データDaが波形データEcとして出力され
る。That is, for example - as an example, at angle θa1,
Since the value stored in the register CNT12 is "0", the waveform data Da to Dc are directly converted to the waveform data Ea to E.
Output as c. The waveform data Ea to Ec are data obtained by inverting the waveform data Ea to Ec, respectively. Also, at angle θa2, the value of register CNT12 is “1”.
'', waveform data Dc is output as waveform data Ea, waveform data Db is output as waveform data Eb, and waveform data Da is output as waveform data Ec.
このように各角度θa1〜θa12においては第7表に
示されるように、データ変換回路30は波形データDa
〜Dcおよび波形データDa〜DCを、デコーダ29か
らのデータに基づいて異なる態様で波形データEa〜E
cおよび波形データEa〜Ecに変換して導出する。In this way, at each angle θa1 to θa12, as shown in Table 7, the data conversion circuit 30 converts the waveform data Da
~Dc and waveform data Da~DC are converted into waveform data Ea~E in different ways based on data from the decoder 29.
c and waveform data Ea to Ec.
このようにしてデータ変換回路30によって30度分の
波形データDa〜Dcから1周期分の波形データEa〜
Ec、Ea〜Ecがデータ変換によって作成される。In this way, the data conversion circuit 30 converts 30 degrees worth of waveform data Da~Dc into one period worth of waveform data Ea~
Ec and Ea to Ec are created by data conversion.
したがって、波形データE a −E cに基づいて動
作されるコンプレッサ42の各コイル42a〜42cに
は、第7図に示される3相交流を構成する正弦波11a
〜11Cに近い電圧降下が生じる。Therefore, each coil 42a to 42c of the compressor 42 operated based on the waveform data E a -E c has a sine wave 11 a constituting the three-phase alternating current shown in FIG.
A voltage drop close to ~11C occurs.
なお第7図において、正弦波1’la〜11Cは波形デ
ータEa〜Ecに個別的に対応している。In FIG. 7, sine waves 1'la to 11C individually correspond to waveform data Ea to Ec.
すなわち第4表に示されるような、少なくとも3種類の
波形データDa〜DcをROM28にストアさせておけ
ば、モータの駆動に必要な3相交流波形を容易に復調さ
せることができる。またROM28からの波形データD
a % D cのサンプリング速度を可変することに
より、容易にモータに要求される回転数に対応させるこ
とができる。That is, by storing at least three types of waveform data Da to Dc as shown in Table 4 in the ROM 28, it is possible to easily demodulate the three-phase AC waveform necessary for driving the motor. Also, waveform data D from ROM28
By varying the sampling speed of a%Dc, it is possible to easily match the rotational speed required of the motor.
(b)レジスタC0NTの第6ビツト〜第4ビツトがr
o 10 Jの場合
レジスタC0NTの第6ビツト〜第4ビツトが’010
Jである場合には、60度分の波形データから1周期
の出力信号が生成される。このときレジスタCNT12
はカウントアツプ数が「+2」に設定され、「0」から
rlo、までカウントアツプ数「+2」で順次計数動
作を行う、これによって60度分の波形データDa〜D
cは1周期において、第8図の角度θb1〜θb6まで
に亘って6回読出されることになる。したがってレジス
タCNT12の数値は常に偶数であり、その第Oピット
がrO」であるから、マルチプレクサ27はまずレジス
タ5TRTに記憶される初期値データFを導出する。こ
れによってアドレス信号発生回路24の初期値はレジス
タ5TRTに記憶される初期値データFとなる。またア
ドレス信号発生回路24はデコーダ29からの信号によ
ってアップカウンタとして機能し、順次アドレス値をイ
ンクリメントしながら指定することになる。このときマ
ルチプレクサ27はレジスタENDを導出するように切
換わり、一致判定回路26ではアドレス信号発生回路2
4からのアドレスデータとレジスタENDに記憶される
初期値データFとを比較する。この場合にはアドレス信
号発生回路24によって、たとえば各角度θb1〜θb
6をそれぞれ時分割する32回分のアドレスが指定され
ると、一致判定回路26の出力はたとえばハイレベルに
変わる。(b) The 6th to 4th bits of register C0NT are r
o In the case of 10 J, the 6th to 4th bits of register C0NT are '010'
In the case of J, one cycle of output signal is generated from 60 degrees of waveform data. At this time, register CNT12
The count up number is set to ``+2'', and the counting operation is performed sequentially from ``0'' to rlo with the count up number ``+2'', thereby generating 60 degrees of waveform data Da to D.
c is read six times in one period over the angles θb1 to θb6 in FIG. Therefore, the numerical value of the register CNT12 is always an even number, and the Oth pit is rO'', so the multiplexer 27 first derives the initial value data F stored in the register 5TRT. As a result, the initial value of the address signal generation circuit 24 becomes the initial value data F stored in the register 5TRT. Further, the address signal generating circuit 24 functions as an up counter in response to a signal from the decoder 29, and specifies the address value while sequentially incrementing it. At this time, the multiplexer 27 is switched to derive the register END, and the match determination circuit 26 outputs the register END.
The address data from 4 and the initial value data F stored in the register END are compared. In this case, the address signal generating circuit 24 generates, for example, each angle θb1 to θb.
When the addresses for 32 time divisions of 6 are specified, the output of the match determination circuit 26 changes to, for example, a high level.
このようにしてROM28から出力される波形データD
a〜Dcには、データ変換回路30によってデータの変
換が施される。すなわちデコーダ29からはレジスタC
NT12の第3ビツト〜第Oビツトのデータが導出され
、これに基づいて前述したようにデータの変換が施され
る。データ変換回路30における変換態様は第8表に示
される。Waveform data D output from the ROM 28 in this way
A to Dc are subjected to data conversion by a data conversion circuit 30. That is, from the decoder 29, the register C
The data of the 3rd bit to the Oth bit of NT12 is derived, and based on this data, the data is converted as described above. The conversion mode in the data conversion circuit 30 is shown in Table 8.
第 8 表
すなわちたとえば−例として、角度θb1においては、
レジスタCNT12に記憶される値が「O」であるから
、波形データDa〜Dcがそのまま波形データEa〜E
cとして出力される。波形データEa〜Ecは波形デー
タEa〜Ecをそれぞれ反転したデータである。また角
度θb2においては、レジスタCNT12の値は「2」
であるから波形データDbが波形データEaとして出力
され、波形データDcが波形データEbとして出力され
、波形データDaが波形データEcとして出力される。Table 8: For example, for angle θb1:
Since the value stored in the register CNT12 is "O", the waveform data Da to Dc are directly converted to the waveform data Ea to E.
Output as c. The waveform data Ea to Ec are data obtained by inverting the waveform data Ea to Ec, respectively. Also, at angle θb2, the value of register CNT12 is "2"
Therefore, waveform data Db is output as waveform data Ea, waveform data Dc is output as waveform data Eb, and waveform data Da is output as waveform data Ec.
このように各角度θb1〜θb6においては第8表に示
されるようにデータ変換回路30は波形データDa〜D
cおよび波形データDa〜Dcを、デコーダ29からの
データに基づいて異なる態様で波形データEa〜Ecお
よび波形データEa〜Ecとして導出する。In this way, at each angle θb1 to θb6, the data conversion circuit 30 converts the waveform data Da to D as shown in Table 8.
c and waveform data Da to Dc are derived as waveform data Ea to Ec and waveform data Ea to Ec in different ways based on the data from the decoder 29.
このようにしてデータ変換回路30によって60度分の
波形データDa〜Dcから1周期分の波形データEa〜
Ec、Ea〜Ecがデータ変換によって作成される。In this way, the data conversion circuit 30 converts 60 degrees of waveform data Da to Dc into one cycle of waveform data Ea to
Ec and Ea to Ec are created by data conversion.
したがって、波形データEa〜Ecに基づいて動作され
るコンプレッサ42の各コイル42a〜42cには、第
8図に示される3相交流を構成する正弦波12a〜12
cに近い電圧降下が生じる。Therefore, each coil 42a-42c of the compressor 42 operated based on the waveform data Ea-Ec has sine waves 12a-12 constituting the three-phase alternating current shown in FIG.
A voltage drop close to c occurs.
なお第8図において、正弦波12a〜12cは波形デー
タEa〜Ecに個別的に対応している。In FIG. 8, the sine waves 12a to 12c individually correspond to the waveform data Ea to Ec.
(C)レジスタC0NTの第6ビツト〜第4ビツトがr
loOJの場合
レジスタC0NTの第6ビツト〜第4ビツトがrloO
Jである場合には、120度分の波形データから1周期
の出力信号が生成される。このときレジスタCNT12
はカウントアツプ数が「+4」に設定され、r□」から
「8Jまでカウントアツプ数「+4」で順次計数動作を
行う、これによって120度分の波形データDa〜Dc
は1周期において、第9図の角度θc1〜θc3までに
亘って3回読出されることになる。したがってレジスタ
CNT12の数値は常に偶数であり、その第Oビットが
「O」であるから、マルチプレクサ27はまずレジスタ
5TRTに記憶される初期値データFを導出する。これ
によってアドレス信号発生回路24の初期値はレジスタ
5TRTに記憶される初期値データFとなる。またアド
レス信号発生回路24はデコーダ29がらの信号によっ
てアップカウンタとして機能し、順次アドレス値をイン
クリメントしながら指定することになる。このときマル
チプレクサ27はレジスタENDを導出するように切換
わり、一致判定回路26ではアドレス信号発生回路24
からのアドレスデータとレジスタENDに記憶される初
期値データFとを比較する。この場合にはアドレス信号
発生回路24によって、たとえば各角度θc1〜θc3
をそれぞれ時分割する64回分のアドレスが指定される
と、一致判定回路26の出力はたとえばハイレベルに変
わる。(C) The 6th to 4th bits of register C0NT are r
In the case of loOJ, the 6th to 4th bits of register C0NT are rloO.
In the case of J, one period of output signal is generated from 120 degrees of waveform data. At this time, register CNT12
The count-up number is set to "+4", and the counting operation is performed sequentially from r
is read out three times in one period over the angles θc1 to θc3 in FIG. Therefore, since the numerical value of register CNT12 is always an even number and its Oth bit is "O", multiplexer 27 first derives initial value data F stored in register 5TRT. As a result, the initial value of the address signal generation circuit 24 becomes the initial value data F stored in the register 5TRT. Further, the address signal generating circuit 24 functions as an up counter by the signals from the decoder 29, and specifies the address value while sequentially incrementing it. At this time, the multiplexer 27 is switched to derive the register END, and the match determination circuit 26 outputs the register END.
The address data from and the initial value data F stored in the register END are compared. In this case, the address signal generation circuit 24 generates, for example, each angle θc1 to θc3.
When the addresses for 64 times of time-division are specified, the output of the match determination circuit 26 changes to, for example, a high level.
このようにしてROM28から出力される波形データD
a〜Dcには、データ変換回路30によってデータの変
換が施される。すなわちデコーダ29からはレジスタC
NT12の第3ビツト〜第0ビツトのデータが導出され
、これに基づいて前述したようにデータの変換が施され
る。データ変検回路30におけ゛る変換態様は第9表に
示される。Waveform data D output from the ROM 28 in this way
A to Dc are subjected to data conversion by a data conversion circuit 30. That is, from the decoder 29, the register C
The data of the 3rd bit to the 0th bit of NT12 is derived, and based on this data, the data is converted as described above. Table 9 shows the conversion mode in the data change detection circuit 30.
第 9 表
すなわちたとえば−例として、角度θC1においては、
レジスタCNT12に記憶される値がr□」であるから
、波形データDa〜Dcがそのまま波形データE a
−E cとして出力される。波形データEa〜Ecは波
形データEa〜Ecをそれぞれ反転したデータである。Table 9: For example, for angle θC1:
Since the value stored in the register CNT12 is r
-E c is output. The waveform data Ea to Ec are data obtained by inverting the waveform data Ea to Ec, respectively.
また角度θC2においては、レジスタCNT12の値は
「4」であるから、波形データDcが波形データEaと
して出力され、波形データDaが波形データEbとして
出力され、波形データDbが波形データEcとして出力
される。Furthermore, at angle θC2, the value of register CNT12 is "4", so waveform data Dc is output as waveform data Ea, waveform data Da is output as waveform data Eb, and waveform data Db is output as waveform data Ec. Ru.
このように各角度θC1〜θC3においては、第9表に
示されるようにデータ変換回路30は波形データDa〜
Dcおよび波形データDa〜Dcを、デコーダ29から
のデータに基づいて異なる態様で波形データEa〜Ec
および波形データEa〜Ecとして導出する。In this way, at each angle θC1 to θC3, the data conversion circuit 30 converts the waveform data Da to θC3 as shown in Table 9.
Dc and waveform data Da to Dc are converted into waveform data Ea to Ec in different ways based on data from the decoder 29.
and waveform data Ea to Ec.
このようにしてデータ変換回路30によって120度分
の波形データDa〜Daから1周期分の波形データEa
〜Ec、Ea〜Ecがデータ変換によって作成される。In this way, the data conversion circuit 30 converts the waveform data Ea for one cycle from the waveform data Da to Da for 120 degrees.
~Ec and Ea~Ec are created by data conversion.
したがって、波形データEa〜Ecに基づいて動作され
るコンプレッサ42の各コイル42a〜42cには、第
9図に示される3相交流を構成する正弦波Z3a〜13
cに近い電圧降下が生じる。Therefore, each coil 42a-42c of the compressor 42 operated based on the waveform data Ea-Ec has sine waves Z3a-13 constituting the three-phase alternating current shown in FIG.
A voltage drop close to c occurs.
なお第9図において、正弦波f3a〜13cは波形デー
タEa〜Ecに個別的に対応している9(d)レジスタ
C0NTの第4ビツトが「1」の場合(90度分の波形
データがROM28に記憶されている場合)
レジスタC0NTの第4ビツトが「1」である場合には
、任意の角度分の波形データから1周期の出力信号が生
成される。以下、90度分の波形データから1周期の出
力信号が生成される場合について、第10図を参照して
説明する。このときレジスタCNT12には、第10表
に示されるような数値が各角度θd1〜θd4において
設定される。このレジスタCNT12の数値が偶数、す
なわち第Oビットがr□、である場合には、マルチプレ
クサ27はまずレジスタ5TRTに記憶される初期値デ
ータFを導出する。これによってアドレス信号発生回路
24の初期値はレジスタ5TRTに記憶される初期値デ
ータFとなる。またアドレス信号発生回路24はデコー
ダ29からの信号によってアップカウンタとして機能し
、順次アドレス値をインクリメントしながら指定するこ
とになる。このときマルチプレクサ27はレジスタEN
Dの初期値データFを導出するように切換わり、一致判
定回路26ではアドレス信号発生回路24からのアドレ
スデータとレジスタENDに記憶される初期値データF
とを比較する。この場合C=はアドレス信号発生回路2
4によって所定の回数(たとえば各角度θd1〜θd4
を時分割する48回)だけアドレスが指定されると、一
致判定回路26の出力はたとえばハイレベルに変わる。In FIG. 9, the sine waves f3a to 13c individually correspond to the waveform data Ea to Ec. 9(d) When the fourth bit of the register C0NT is "1" (the waveform data for 90 degrees is (When the fourth bit of the register C0NT is "1", one period of output signal is generated from the waveform data for an arbitrary angle. Hereinafter, a case where one period of output signal is generated from 90 degrees worth of waveform data will be explained with reference to FIG. 10. At this time, numerical values as shown in Table 10 are set in the register CNT12 at each of the angles θd1 to θd4. When the value of this register CNT12 is an even number, that is, the Oth bit is r□, the multiplexer 27 first derives the initial value data F stored in the register 5TRT. As a result, the initial value of the address signal generation circuit 24 becomes the initial value data F stored in the register 5TRT. Further, the address signal generating circuit 24 functions as an up counter in response to a signal from the decoder 29, and specifies the address value while sequentially incrementing it. At this time, the multiplexer 27 is connected to the register EN.
D is switched to derive the initial value data F of D, and the match determination circuit 26 uses the address data from the address signal generation circuit 24 and the initial value data F stored in the register END.
Compare with. In this case, C= is address signal generation circuit 2
4 for a predetermined number of times (for example, each angle θd1 to θd4
When the address is specified 48 times (by time-division), the output of the match determination circuit 26 changes to, for example, a high level.
またレジスタCNT12の第Oビットが「1」である場
合には、マルチプレクサ27はまずレジスタENDに記
憶される初期値データFをアドレス信号発生回路24に
導出する。この場合にはデコーダ29からの制御信号に
よってアドレス信号発生回路24はダウンカウンタとし
て機能する。Further, when the O-th bit of the register CNT12 is "1", the multiplexer 27 first derives the initial value data F stored in the register END to the address signal generation circuit 24. In this case, the address signal generation circuit 24 functions as a down counter by the control signal from the decoder 29.
アドレス信号発生回路24によって48回アドレスが指
定されると、マルチプレクサ27から切換えられて導出
されているレジスタ5TRTの初期値データFとアドレ
ス信号発生回路24からのアドレスデータとが一致し、
一致判定回路26の出力がハイレベルになる。When the address is specified 48 times by the address signal generation circuit 24, the initial value data F of the register 5TRT which is switched and derived from the multiplexer 27 and the address data from the address signal generation circuit 24 match.
The output of the match determination circuit 26 becomes high level.
このようにしてROM28から出力される波形データD
a〜Dcにはデータ変換回路30によってデータの変換
が施される。すなわちデコーダ29からはレジスタCN
T12の第3ビット〜第Oビットのデータが導出され、
これに基づいて前述したようにデータの変換が施される
。データ変換回路30における変換態様は第10表に示
される。Waveform data D output from the ROM 28 in this way
A to Dc are subjected to data conversion by a data conversion circuit 30. That is, from the decoder 29, the register CN
The data of the third bit to the Oth bit of T12 is derived,
Based on this, the data is converted as described above. The conversion mode in the data conversion circuit 30 is shown in Table 10.
第 lO表
すなわちたとえば−例として、角度θdlにおいては、
レジスタCNT12に記憶される値がr OJであるか
ら、波形データDa〜Dcがそのまま波形データEa〜
Ecとして出力される。波形データEa〜Ecは波形デ
ータE a −E cをそれぞれ反転したデータである
。また角度θd2においては、レジスタCNT12の値
は「5」であるから波形データDaが波形データEaと
して出力され、波形データDcが波形データEbとして
出力され、波形データDbが波形データEcとして出力
される。Table lO, for example - As an example, at angle θdl,
Since the value stored in the register CNT12 is rOJ, the waveform data Da~Dc are directly converted into the waveform data Ea~
It is output as Ec. The waveform data Ea to Ec are data obtained by inverting the waveform data Ea to Ec, respectively. At angle θd2, the value of register CNT12 is "5", so waveform data Da is output as waveform data Ea, waveform data Dc is output as waveform data Eb, and waveform data Db is output as waveform data Ec. .
このように各角度θd1〜θd4においては第10表に
示されるようにデータ変換回路30は波形データDa〜
Dcおよび波形データDa〜Dcを、デコーダ29から
のデータに基づいて異なる態様で波形データEa〜Ec
および波形データEa〜Ecとして導出する。In this way, at each angle θd1 to θd4, as shown in Table 10, the data conversion circuit 30 converts the waveform data Da to
Dc and waveform data Da to Dc are converted into waveform data Ea to Ec in different ways based on data from the decoder 29.
and waveform data Ea to Ec.
このようにしてデータ変換回路30によって90度分の
波形データDa〜Dcから1周期分の波形データEa〜
Ec、Ea〜Ecがデータ変換によって作成される。In this way, the data conversion circuit 30 converts 90 degrees of waveform data Da to Dc into one cycle of waveform data Ea to Dc.
Ec and Ea to Ec are created by data conversion.
したがって、波形データEa〜Ecに基づいて動作され
るコンプレッサ42の各コイル42a〜42cには、第
10図に示される3相交流を構成する正弦波14a〜1
4cに近い電圧降下が生じる。なお第10図において、
正弦波14a−14Cは波形データEa〜Ecに個別的
に対応している。Therefore, each coil 42a to 42c of the compressor 42 operated based on the waveform data Ea to Ec has sine waves 14a to 14a constituting the three-phase alternating current shown in FIG.
A voltage drop close to 4c occurs. In addition, in Figure 10,
The sine waves 14a-14C individually correspond to the waveform data Ea-Ec.
(e〉レジスタC0NT第4ビツトが「1」の場合(1
80度分の波形データがROM28に記憶されている場
合)
レジスタC0NT第4ビツトが11」であり、180度
分の波形データから1周期の出力信号が生成される場合
について、第11図を参照して説明する。このときレジ
スタCNT12には、第11表に示されるような数値が
各角度θel、θe2において設定される。このレジス
タCNT12の数値は常に偶数であり、第Oビットが「
0」であるから、マルチプレクサ27はまずレジスタ5
TRTに記憶される初期値データFを導出する。(e> If the 4th bit of register C0NT is “1” (1
(When 80 degrees worth of waveform data is stored in the ROM 28) When the fourth bit of register C0NT is 11'' and one period of output signal is generated from 180 degrees worth of waveform data, see Figure 11. and explain. At this time, numerical values as shown in Table 11 are set in the register CNT12 at each angle θel and θe2. The value of this register CNT12 is always an even number, and the Oth bit is "
0'', multiplexer 27 first selects register 5.
Initial value data F stored in TRT is derived.
これによってアドレス信号発生回路24の初期値はレジ
スタ5TRTに記憶される初期値データFとなる。また
アドレス信号発生回路24はデコーダ29からの信号に
よってアップカウンタとして機能し、順次アドレス値を
インクリメントしながら指定することになる。このとき
マルチプレクサ27はレジスタENDの初期値データF
を導出するように切換わり、一致判定回路26ではアド
レス信号発生回路24からのアドレスデータとレジスタ
ENDに記憶される初期値データFとを比較する。この
場合にはアドレス信号発生回路24によって所定の回数
(たとえば各角度θel、θe2を時分割する96回〉
だけアドレスが指定されると、一致判定回路26の出力
はたとえばハイレベルに変わる。As a result, the initial value of the address signal generation circuit 24 becomes the initial value data F stored in the register 5TRT. Further, the address signal generating circuit 24 functions as an up counter in response to a signal from the decoder 29, and specifies the address value while sequentially incrementing it. At this time, the multiplexer 27 outputs the initial value data F of the register END.
The match determining circuit 26 compares the address data from the address signal generating circuit 24 with the initial value data F stored in the register END. In this case, the address signal generation circuit 24 performs a predetermined number of times (for example, 96 times by time-division of each angle θel, θe2).
When an address is specified, the output of the match determination circuit 26 changes to, for example, a high level.
このようにしてROM28から出力される波形データD
a〜DCにはデータ変換回路30によってデータの変換
が施される。すなわちデコーダ2つからはレジスタCN
T12の第3ビツト〜第Oビツトのデータが導出され、
これに基づいて前述したようにデータの変換が施される
。データ変換回路30における変換態様は第11表に示
される。Waveform data D output from the ROM 28 in this way
A to DC are subjected to data conversion by a data conversion circuit 30. In other words, from the two decoders, register CN
The data of the 3rd bit to the Oth bit of T12 is derived,
Based on this, the data is converted as described above. The conversion mode in the data conversion circuit 30 is shown in Table 11.
(以下余白〉
第11表
すなわち角度θe1においては、レジスタCNT12に
記憶される値がr□、であるから、波形データD a
% D cがそのまま波形データEa〜Ecとして出力
される。波形データEa〜ECは波形データE a %
E cをそれぞれ反転したデータである。また角度θ
e2においては、レジスタCNT12の値は「6」であ
るから、波形データDaが波形データEaとして出力さ
れ、波形データDbが波形データEbとして出力され、
波形データDCが波形データEcとして出力される。(Margins below) In Table 11, that is, for the angle θe1, the value stored in the register CNT12 is r□, so the waveform data D a
% D c is output as is as waveform data Ea to Ec. Waveform data Ea to EC are waveform data E a %
This is data obtained by inverting Ec. Also the angle θ
In e2, the value of the register CNT12 is "6", so the waveform data Da is output as the waveform data Ea, the waveform data Db is output as the waveform data Eb,
Waveform data DC is output as waveform data Ec.
このように各期間θel、θe2においては第11表に
示されるようにデータ変換回路30は波形ターンDa〜
Dcおよび波形データDa〜Dcを、デコーダ29から
のデータに基づいて異なる態様で波形データEa〜Ec
および波形データEa〜Ecとして導出する。In this way, in each period θel, θe2, the data conversion circuit 30 converts the waveform turns Da to
Dc and waveform data Da to Dc are converted into waveform data Ea to Ec in different ways based on data from the decoder 29.
and waveform data Ea to Ec.
このようにしてデータ変換回路30によって180度分
の波形データDa〜Dcから1周期分の波形データEa
〜Ec、Ea〜Ecがデータ変換によって作成される。In this way, the data conversion circuit 30 converts one period of waveform data Ea from 180 degrees of waveform data Da to Dc.
~Ec and Ea~Ec are created by data conversion.
したがって、波形データEa〜Ecに基づいて動作され
るコンプレッサ42の各コイル42a〜42cには、第
11図に示される三相交流をnttcする正弦波f5a
〜1’5cに近い電圧降下が生じる。なお第11図にお
いて、正弦波15a〜15Cは波形データEa〜Ecに
個別的に対応している。Therefore, each coil 42a to 42c of the compressor 42 operated based on the waveform data Ea to Ec has a sine wave f5a which transmits the three-phase alternating current shown in FIG.
A voltage drop close to ~1'5c occurs. In FIG. 11, the sine waves 15a to 15C individually correspond to the waveform data Ea to Ec.
■遅延動作
上述したように変換された波形データEa〜Ec、Ea
〜Ecは立上り遅延回路31によって所望の遅延時間d
でその立上りが遅延される。このような出力信号に遅延
を必要とする理由は、前述したパワートランジスタTr
1〜Tr6はターンオフ時間が遅いので、たとえばトラ
ンジスタTr1とTr2との各ベースに相互に反転され
た信号が与えられた場合、−時的に双方のトランジスタ
Tri、Tr2が導通状態となる。これによってトラン
ジスタTri、Tr2を介して過大な電流が流れてしま
うことがある。このような事態を防止するために立上り
遅延回路31は波形データEa〜Ec、Ea〜Ecの立
上りを遅延している。■Delay operation Waveform data Ea to Ec, Ea converted as described above
~Ec is the desired delay time d set by the rise delay circuit 31
Its rise is delayed. The reason why such an output signal requires a delay is due to the power transistor Tr mentioned above.
Since the turn-off times of transistors Tr1 to Tr6 are slow, for example, when mutually inverted signals are applied to the bases of transistors Tr1 and Tr2, both transistors Tri and Tr2 temporarily become conductive. As a result, an excessive current may flow through the transistors Tri and Tr2. In order to prevent such a situation, the rise delay circuit 31 delays the rise of the waveform data Ea to Ec and Ea to Ec.
すなわち第12図(1)に示されるように波形データD
a(第3表の波形データDa)がデータ変換回路30に
出力された場合にはレジスタCNT12の数値が「O」
である場合には、データ変換回路31からは第12図(
2)および第12図(3)に示されるような波形デー、
りEaおよび波形データEaがそれぞれ出力される。That is, as shown in FIG. 12 (1), the waveform data D
When a (waveform data Da in Table 3) is output to the data conversion circuit 30, the value of the register CNT12 is "O".
In this case, the data conversion circuit 31 outputs the data as shown in FIG.
2) and waveform data as shown in FIG. 12 (3),
Ea and waveform data Ea are respectively output.
この波形データEaおよび波形データEaは立上り遅延
回路31でその立上りだけが遅延時間dだけ遅延される
。立上り遅延回路31からの出力信号Faおよび出力信
号Faは第12図(4)および第12図(5〉にそれぞ
れ示されるとおりである。The rising edge of the waveform data Ea and waveform data Ea is delayed by a delay time d in a rising edge delay circuit 31. The output signal Fa and the output signal Fa from the rise delay circuit 31 are as shown in FIG. 12 (4) and FIG. 12 (5>), respectively.
なお立上り遅延回路31からの出力信号Fa〜Fc、F
a 〜Fcは出力回路32によって20.mAの吸込み
電流で出力される。したがって出力端子T1〜T6から
は反転された信号が出力される。Note that the output signals Fa to Fc, F from the rise delay circuit 31
a to Fc are output by the output circuit 32 at 20. Output with mA sink current. Therefore, inverted signals are output from the output terminals T1 to T6.
出力端子TI、T2から出力される信号Pa、Paは第
12図(6〉および第12図(7)にそれぞれ示される
とおりである。前記信号Pa、Paはホトラプラ40を
介して反転され、制御信号R1、R1となる。したがっ
て、前記制御信号R1゜R1は第12図(4)および第
12図(5)にそれぞれ示される出力信号Fa、Faに
対応し、トランジスタTri、Tr2の同時導通が免れ
る。The signals Pa and Pa output from the output terminals TI and T2 are as shown in FIG. 12 (6> and FIG. 12 (7), respectively. The signals Pa and Pa are inverted via the phototrapper 40 and controlled. Therefore, the control signal R1°R1 corresponds to the output signals Fa and Fa shown in FIG. 12 (4) and FIG. 12 (5), respectively, and the simultaneous conduction of transistors Tri and Tr2 be spared.
信号発生回路21においては、レジスタCON丁の第3
ビツト〜第Oビツトは遅延時間dを設定するために設け
られている。遅延時間dとレジスタC0NTの第3ビツ
ト〜第0ビ゛ツトとの値の関係は第12表に示されると
おりである。In the signal generation circuit 21, the third
The bits to the Oth bit are provided for setting the delay time d. The relationship between the delay time d and the values of the third to zeroth bits of the register C0NT is as shown in Table 12.
このように本実施例においては使用されるパワートラン
ジスタTrl〜Tr6の種類によって所望の遅延時間d
を選択的に与えることができる。As described above, in this embodiment, the desired delay time d is determined depending on the types of power transistors Trl to Tr6 used.
can be given selectively.
このようにして端子T1〜T6から出力される信号Pa
〜Pc、Pa〜Pcはホトカプラ4oを介してパワート
ランジスタTri〜Tr6に与えられ、これによってコ
ンプレッサ42に与えられる印加電圧を制御し、コンプ
レッサ42における回転が制御される。The signal Pa output from the terminals T1 to T6 in this way
~Pc, Pa~Pc are applied to the power transistors Tri to Tr6 via the photocoupler 4o, thereby controlling the applied voltage applied to the compressor 42 and controlling the rotation in the compressor 42.
このように本実施例においては各レジスタに記憶される
初期値データFに基づいてアドレスの指定データの変換
がハードウェアによって行われる。In this manner, in this embodiment, the conversion of address designation data is performed by hardware based on the initial value data F stored in each register.
したがってこのようなアドレスの指定およびデータの変
換のためのプログラムを作成する必要がなく、プログラ
ム作成の負担が大幅に軽減される。Therefore, there is no need to create a program for such address designation and data conversion, and the burden of program creation is significantly reduced.
しかもCPU34の命令サイクルタイムがプログラムの
サブルーチンの長さに依存して波形に変化が生ずること
がないので、高精度の信号を出力することができる。し
たがってたとえば遅延時間dを最適な値に細かく設定す
るなどの信号処理を施すこともできる。Moreover, since the command cycle time of the CPU 34 does not depend on the length of the subroutine of the program and the waveform does not change, highly accurate signals can be output. Therefore, it is also possible to perform signal processing such as finely setting the delay time d to an optimal value.
さらに、ライン切換スイッチによって、メモリーCPU
間およびメモリー波形発生回路間のデータ転送を転送す
べきデータの読出しのタイミングに応じて切換えるよう
に構成し、データバス占有の問題を解消しているので、
前記波形データおよび動作プログラムを同一のメモリに
ストアすることができる。したがって前記信号発生回路
の開発段階時におけるピギーバックによるスペース占有
量が軽減でき、その結果、プログラムおよびデータの作
成での負担が大幅に軽減される。Furthermore, the line selection switch allows the memory CPU to
The data transfer between the memory waveform generation circuit and the memory waveform generation circuit is configured to switch according to the timing of reading the data to be transferred, solving the problem of data bus occupancy.
The waveform data and operating program can be stored in the same memory. Therefore, the amount of space occupied by piggybacking during the development stage of the signal generation circuit can be reduced, and as a result, the burden of creating programs and data can be significantly reduced.
本実施例においては、モータを駆動する構成に関連して
説明しているけれども、このことは制限されることでは
ない。Although this embodiment is described in relation to a configuration for driving a motor, this is not a limitation.
発明の効果
以上のように本発明によれば、中央処理回路に関与する
ことなく、アドレス指定手段によって指定されたアドレ
スからメモリ上の波形データが読出されるので、前記波
形データを読出すためのプログラムを必要としない。ま
た読取られた波形データは信号処理手段によって信号処
理が施されるので、このような信号処理に関するプログ
ラムも必要としない、さらにアドレス指定手段および信
号処理手段は中央処理回路とは独立して設けられており
、高速度で実行することができるので、高精度のパルス
波形を有する信号を出力することができる。さらにまた
切換手段によって信号処理手段への波形データの読出し
および中央処理回路への動作プログラムの読出しを切換
えるので、前記波形データおよび動作プログラムを同一
のメモリに記憶することができる。Effects of the Invention As described above, according to the present invention, the waveform data on the memory is read from the address specified by the addressing means without involving the central processing circuit. No program required. Furthermore, since the read waveform data is subjected to signal processing by the signal processing means, there is no need for a program related to such signal processing, and furthermore, the addressing means and the signal processing means are provided independently of the central processing circuit. Since this method can be executed at high speed, it is possible to output a signal having a highly accurate pulse waveform. Furthermore, since the switching means switches between reading the waveform data to the signal processing means and reading the operating program to the central processing circuit, the waveform data and the operating program can be stored in the same memory.
したがって、開発段階時からのプログラムの作成および
波形データなどの調整における負担を大幅に軽減するこ
とができる。Therefore, the burden of creating programs and adjusting waveform data etc. from the development stage can be significantly reduced.
第1図は本発明の一実施例である信号発生回路21の簡
略化した構成を示すブロック図、第2図は信号発生回路
21によってコンプレッサ42の動作状態を制御する場
合の構成を示すブロック図、第3図は信号発生口N12
1の具体的構成を示すブロック図、第4図は信号発生回
路21の動作を説明するためのフローチャート、第5図
は波形データの作成に使用される3相交流および三角波
の波形を示す波形図、第6図は第5図の時間81部分を
拡大して示す波形図、第7図は30度分の波形データか
ら1周期分の信号を発生する信号の変換動作を説明する
ための3相交流の波形図、第8図は60度分の波形デー
タから1周期分の信号を発生する信号の変換動作を説明
するための3相交流の波形図、第9図は120度分の波
形データから1周期分の信号を発生する信号の変換動作
を説明するための3相交流の波形図、第10図は90度
分の波形データから1周期分の信号を発生する信号の変
換動作を説明するための3相交流の波形図、第11図は
180度分の波形データから1周期分の信号を発生する
信号の変換動作を説明するための3相交流の波形図、第
12図は立上り遅延回路31における遅延動作を説明す
るための波形図、第13図は先行技術の信号発生回路1
の構成を示すブロック図、第14図は先行技術の問題そ
解決するために考えられる信号発生回路15の簡略化し
た構成を示すブロック図、第15図は開発段階時でのE
PROMへのプログラム作成に用いられるピギーバック
51の構成を示す斜視図である。
21・・・信号発生回路、23・・・アップカウンタ、
24・・・アドレス信号発生回路、26・・一致判定回
路、27・・・マルチプレクサ、28・・・リードオン
リメモリ(ROM)、29・・・デコーダ、30・・・
データ変換回路、31・・・立上り遅延回路、32・・
・出力回路、34・・・中央処理回路(CPLI)、3
5・・・アドレス指定手段、36・・・信号処理手段、
40・・・ホトカプラ、41・・・電源、42・・・コ
ンプレッサ、47a〜47c・・・ライン切換スイッチ
、C0NT。FIG. 1 is a block diagram showing a simplified configuration of a signal generating circuit 21 according to an embodiment of the present invention, and FIG. 2 is a block diagram showing a configuration when the operating state of a compressor 42 is controlled by the signal generating circuit 21. , Figure 3 shows the signal generation port N12.
1 is a block diagram showing the specific configuration of 1, FIG. 4 is a flowchart for explaining the operation of the signal generation circuit 21, and FIG. 5 is a waveform diagram showing three-phase AC and triangular waveforms used to create waveform data. , FIG. 6 is a waveform diagram showing an enlarged view of the time 81 portion in FIG. AC waveform diagram. Figure 8 is a three-phase AC waveform diagram to explain the signal conversion operation that generates one cycle of signals from 60 degrees of waveform data. Figure 9 is 120 degrees of waveform data. Figure 10 is a three-phase AC waveform diagram to explain the conversion operation of a signal that generates a signal for one period from 90 degree waveform data. Figure 11 is a waveform diagram of three-phase AC to explain the signal conversion operation that generates one cycle of signals from 180 degrees of waveform data, and Figure 12 is a waveform diagram of three-phase AC to A waveform diagram for explaining the delay operation in the delay circuit 31, FIG. 13 is the signal generation circuit 1 of the prior art.
FIG. 14 is a block diagram showing a simplified configuration of the signal generation circuit 15 considered to solve the problem of the prior art, and FIG.
FIG. 2 is a perspective view showing the configuration of a piggyback 51 used for creating a program in a PROM. 21... Signal generation circuit, 23... Up counter,
24... Address signal generation circuit, 26... Match determination circuit, 27... Multiplexer, 28... Read only memory (ROM), 29... Decoder, 30...
Data conversion circuit, 31...Rise delay circuit, 32...
・Output circuit, 34...Central processing circuit (CPLI), 3
5... Address designation means, 36... Signal processing means,
40... Photocoupler, 41... Power supply, 42... Compressor, 47a to 47c... Line selection switch, C0NT.
Claims (1)
路と、 前記中央処理回路にデータバスを介して接続され、出力
する信号に関し基準となる初期値データが記憶される1
つまたは複数のレジスタと、前記動作プログラム、およ
び出力する信号に関する波形データが記憶されるメモリ
と、 前記レジスタに記憶される初期値データに基づいて前記
メモリに記憶される波形データのアドレスを指定するア
ドレス指定手段と、 前記メモリからの波形データに応答し、前記レジスタに
記憶される初期値データに基づいて、前記波形データに
信号処理を施して、外部に信号を出力する信号処理手段
と、 前記メモリから中央処理回路への動作プログラムの読出
し、および前記メモリから信号処理手段への波形データ
の読出しに対応して、中央処理回路とメモリとの間のデ
ータバス、および信号処理手段とメモリとの間のデータ
バスを切換える切換手段とを含むことを特徴とする信号
発生回路。[Scope of Claims] A central processing circuit that processes signals based on an operation program; and 1, which is connected to the central processing circuit via a data bus and stores initial value data that serves as a reference for output signals.
one or more registers, a memory in which waveform data related to the operating program and the signal to be output are stored, and an address of the waveform data stored in the memory is specified based on initial value data stored in the register; addressing means; signal processing means for responding to the waveform data from the memory, performing signal processing on the waveform data based on initial value data stored in the register, and outputting the signal to the outside; Corresponding to the reading of the operating program from the memory to the central processing circuit and the reading of waveform data from the memory to the signal processing means, a data bus between the central processing circuit and the memory and a connection between the signal processing means and the memory are provided. and switching means for switching data buses between the two.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2051363A JP2502397B2 (en) | 1990-03-01 | 1990-03-01 | Signal generation circuit |
| KR1019900004251A KR930010167B1 (en) | 1989-03-31 | 1990-03-29 | Signal generating circuit and compressor controller |
| US07/501,857 US5184310A (en) | 1989-03-31 | 1990-03-30 | Signal generation circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2051363A JP2502397B2 (en) | 1990-03-01 | 1990-03-01 | Signal generation circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03253295A true JPH03253295A (en) | 1991-11-12 |
| JP2502397B2 JP2502397B2 (en) | 1996-05-29 |
Family
ID=12884860
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2051363A Expired - Fee Related JP2502397B2 (en) | 1989-03-31 | 1990-03-01 | Signal generation circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2502397B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7517557B2 (en) | 2003-03-10 | 2009-04-14 | Ngk Insulators, Ltd. | Oxide films, a method of producing the same and structures having the same |
| CN107653470A (en) * | 2011-12-20 | 2018-02-02 | 苹果公司 | Metal surface and the technique for handling metal surface |
| WO2021042112A1 (en) * | 2019-08-29 | 2021-03-04 | Microchip Technology Incorporated | Pre-processing of data using autonomous memory access and related systems, methods, and devices |
-
1990
- 1990-03-01 JP JP2051363A patent/JP2502397B2/en not_active Expired - Fee Related
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7517557B2 (en) | 2003-03-10 | 2009-04-14 | Ngk Insulators, Ltd. | Oxide films, a method of producing the same and structures having the same |
| CN107653470A (en) * | 2011-12-20 | 2018-02-02 | 苹果公司 | Metal surface and the technique for handling metal surface |
| WO2021042112A1 (en) * | 2019-08-29 | 2021-03-04 | Microchip Technology Incorporated | Pre-processing of data using autonomous memory access and related systems, methods, and devices |
| US11354260B2 (en) | 2019-08-29 | 2022-06-07 | Microchip Technology Incorporated | Pre-processing of data using autonomous memory access and related systems, methods, and devices |
| US11847076B2 (en) | 2019-08-29 | 2023-12-19 | Microchip Technology Incorporated | Pre-processing of waveform data using autonomous waveform circuitry and related apparatuses and methods |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2502397B2 (en) | 1996-05-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5404089A (en) | PWM inverter controller with wave form memory | |
| KR930010167B1 (en) | Signal generating circuit and compressor controller | |
| US6552625B2 (en) | Processor with pulse width modulation generator with fault input prioritization | |
| JPH0218031B2 (en) | ||
| EP0077836B1 (en) | Control apparatus for electric motors | |
| US6937084B2 (en) | Processor with dual-deadtime pulse width modulation generator | |
| JP3677497B2 (en) | Pulse width modulation waveform generator and three-phase pulse width modulation waveform generator | |
| JPH03253295A (en) | Signal generation circuit | |
| US6975679B2 (en) | Configuration fuses for setting PWM options | |
| JPH0974790A (en) | Inverter device | |
| EP0481495B1 (en) | Port output controller for use in microcomputer | |
| US20020190768A1 (en) | Extended resolution mode for a PWM module application | |
| JP2908806B2 (en) | Signal generation circuit | |
| JP3194067B2 (en) | PWM pulse generator | |
| JPH0560193U (en) | Three-Phase PWM Waveform Digital Generator for Variable Speed Control of Induction Motor | |
| JP7787478B2 (en) | Control circuits and electronic devices | |
| JPH05328734A (en) | Microcomputer having built-in motor control circuit | |
| JPH0447553B2 (en) | ||
| JP2705059B2 (en) | PWM control device for inverter | |
| JPS631375A (en) | Output controller for inverter | |
| JP6695158B2 (en) | Motor control circuit, fan using it | |
| JPH07182267A (en) | Output control circuit | |
| JPS62104480A (en) | Pulse width modulation signal generator for inverter | |
| JPH01261747A (en) | computer equipment | |
| JPH0235554B2 (en) | DENRYOKUHENKANSOCHINOSEIGYOSOCHI |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080313 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090313 Year of fee payment: 13 |
|
| LAPS | Cancellation because of no payment of annual fees |