JPH0153812B2 - - Google Patents

Info

Publication number
JPH0153812B2
JPH0153812B2 JP57126912A JP12691282A JPH0153812B2 JP H0153812 B2 JPH0153812 B2 JP H0153812B2 JP 57126912 A JP57126912 A JP 57126912A JP 12691282 A JP12691282 A JP 12691282A JP H0153812 B2 JPH0153812 B2 JP H0153812B2
Authority
JP
Japan
Prior art keywords
frequency
output
microcomputer
programmable
counter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP57126912A
Other languages
Japanese (ja)
Other versions
JPS5917875A (en
Inventor
Takashi Deguchi
Yasuyuki Ejima
Hidekazu Tadamatsu
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP57126912A priority Critical patent/JPS5917875A/en
Publication of JPS5917875A publication Critical patent/JPS5917875A/en
Publication of JPH0153812B2 publication Critical patent/JPH0153812B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K23/00Pulse counters comprising counting chains; Frequency dividers comprising counting chains
    • H03K23/64Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two
    • H03K23/66Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two with a variable counting base, e.g. by presetting or by adding or suppressing pulses

Landscapes

  • Inverter Devices (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、主として可変速のエアコン用コンプ
レツサモータなどの誘導性の負荷を持つたインバ
ータ駆動用のプログラマブル周波数発生器に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a programmable frequency generator for driving an inverter with an inductive load, such as a variable speed compressor motor for an air conditioner.

従来例の構成とその問題点 従来、分周比が広帯域にわたるプログラマブル
タイマを構成するには第1図に示すように分周率
を広範囲とするか、第2図に示すように低ビツト
のプログラマブルカウンタと、バイナリカウンタ
などの縦続接続による方法が知られている。ちな
みにプログラマブルカウンタにより分周された周
波数出力は次式で表わされる。
Conventional configurations and their problems Conventionally, in order to configure a programmable timer with a wide frequency division ratio, the frequency division ratio must be set over a wide range as shown in Figure 1, or a low bit programmable timer as shown in Figure 2 must be used. A method using a cascade connection of a counter and a binary counter is known. Incidentally, the frequency output divided by the programmable counter is expressed by the following equation.

OUTOSC/n(n=1〜(2a−1)) ここでOSCは基準発振器入力、OUTは周波数出
力、nは分周比、aはプログラマブルカウンタの
アドレスビツト数である。
OUT = OSC /n (n = 1 to (2 a - 1)) where OSC is the reference oscillator input, OUT is the frequency output, n is the frequency division ratio, and a is the number of address bits of the programmable counter.

第1図は上式アドレスビツト数aを増加した例
である。
FIG. 1 is an example in which the number of address bits a in the above formula is increased.

第1図の回路は基準発振部1で周波数OSCを発
生し、これをプログラマブルカウンタ2に入力す
る。一方マイクロコンピユータ3の出力端子0
(a-1)よりプログラマブルカウンタ2のアドレ
ス入力P0〜P(a-1)に2進数のアドレスコードが設
定されている。OUTOSCを分周した出力端子で
ある。
In the circuit shown in FIG. 1, a reference oscillation section 1 generates a frequency OSC and inputs it to a programmable counter 2. On the other hand, output terminal 0 of microcomputer 3
~ (a-1) A binary address code is set in the address inputs P 0 ~P (a-1) of the programmable counter 2. OUT is the output terminal that is the frequency-divided OSC .

ここで、アドレスビツト数aを8とすると分周
比nは1〜255となり、またアドレスビツト数a
を10とすると、分周比nは1〜1023となり、さら
にアドレスビツト数aを12とすると、分周比nは
1〜4095となり、このようにアドレスビツト数a
を適当に選ぶことにより所期の目的を達すること
はできるが、この構造は市場に多ビツトのプログ
ラマブルカウンタが存在しないことと、マイクロ
コンピユータのアドレス出力本数が増加し、ソフ
トウエアが繁雑となるなどの欠点を有している。
Here, if the number of address bits a is 8, the division ratio n will be 1 to 255, and the number of address bits a will be 8.
When is set to 10, the frequency division ratio n is 1 to 1023, and when the number of address bits a is 12, the frequency division ratio n is 1 to 4095, and in this way, the number of address bits a is
Although it is possible to achieve the desired purpose by selecting an appropriate number of counters, this structure is difficult because there are no multi-bit programmable counters on the market, and the number of address outputs from the microcomputer increases, making the software complicated. It has the following disadvantages.

次に第2図の構造について説明する。 Next, the structure shown in FIG. 2 will be explained.

同図において、1,2,3は第1図と同じ基準
発振部、プログラマブルカウンタ、マイクロコン
ピユータを示し、4は数段のバイナリーカウンタ
部である。この回路の出力OUTはバイナリーカウ
ンタ部4の各段の出力をマイクロコンピユータ3
の出力端子010xを用いて選択する出力選択
部5により選択出力される。
In the figure, 1, 2, and 3 are the same reference oscillation section, programmable counter, and microcomputer as in FIG. 1, and 4 is a several-stage binary counter section. The output OUT of this circuit is the output of each stage of the binary counter section 4, which is sent to the microcomputer 3.
The output selection unit 5 selects and outputs the signals using the output terminals 01 to 0x .

一例として、プログラマブルカウンタ2は8ビ
ツトで出力OUTとしてOSC/600が必要な場合プロ
グラマブルカウンタ2の分周範囲は分周比nが1
〜255であるからその出力はOUTOSC/(150×
22)となる。
As an example, if programmable counter 2 is 8 bits and OSC /600 is required as output OUT , the frequency division range of programmable counter 2 is such that the division ratio n is 1.
~255, so its output is OUT = OSC / (150×
2 2 ).

したがつてマイクロコンピユータ3の出力端子
70から出力されるアドレスコードは
10010110となり、マイクロコンピユータ3の出力
端子0(x-2)のみ“H”とすることにより得られ
る。この方法では分周比がある程度任意に作り出
せ、市場にある汎用のICを用いて構成できると
いう利点はあるものの、部品点数が多く、マイク
ロコンピユータの出力端子も多く占有し、実用的
ではない。
Therefore, the address code output from the output terminals O7 ~ 0 of the microcomputer 3 is
10010110, which can be obtained by setting only the output terminal 0 (x-2) of the microcomputer 3 to "H". Although this method has the advantage of allowing the frequency division ratio to be created arbitrarily to some extent and can be configured using general-purpose ICs on the market, it requires a large number of parts and occupies many output terminals of the microcomputer, making it impractical.

発明の目的 本発明は、上記従来の欠点を克服するべく、汎
用のICを用い、マイクロコンピユータのソフト
ウエアに大きな負担をかけず、また出力端子も多
く占有せず、簡単な回路構成のプログラマブルカ
ウンタが得られることを目的とするものである。
Purpose of the Invention In order to overcome the above conventional drawbacks, the present invention provides a programmable counter that uses a general-purpose IC, does not place a large burden on the software of a microcomputer, does not occupy many output terminals, and has a simple circuit configuration. The purpose is to obtain the following.

発明の構成 本発明は、マイクロコンピユータで充分追随で
きる領域の周波数をマイクロコンピユータのソフ
トウエアによる分周で合成し、その周波数以上の
周波数領域をプログラマブルカウンタの出力を直
接出力することにより合わせてプログラマブルカ
ウンタとバイナリカウンタの縦続接続回路を等価
的に構成し、誘導性負荷を有するインバータに加
える周波数を合成するもので、ソフトウエア分周
を任意の整数とできるようにしてバイナリカウン
タを使用するよりはより自由度を高くしたもので
ある。
Composition of the Invention The present invention synthesizes frequencies in a range that can be tracked sufficiently by a microcomputer by frequency division using software of the microcomputer, and directly outputs the output of a programmable counter in a frequency range above that frequency. This is a system that equivalently configures a cascade circuit of a binary counter and a binary counter to synthesize the frequency applied to an inverter with an inductive load. It has a high degree of freedom.

実施例の説明 以下、本発明の一実施例としてルームエアコン
用インバータのPWM方式の原発振回路の構成に
ついて第3図により説明する。ここでPWM方式
とはパルス巾変調方式の略語でインバータに加え
る電圧の時間による積分値が正弦波に近似するよ
うに電圧のチヨツピングアルゴリズムを構成した
方式である。
DESCRIPTION OF EMBODIMENTS Hereinafter, as an embodiment of the present invention, the configuration of a PWM type original oscillation circuit for a room air conditioner inverter will be described with reference to FIG. The PWM method is an abbreviation for pulse width modulation method, and is a method in which a voltage chopping algorithm is configured so that the integral value over time of the voltage applied to the inverter approximates a sine wave.

同図において、1は基準周波数OSCを発生する
基準周波数発生器、2はバイナリカウンタを内蔵
した汎用のプログラマブルカウンタ、3はP−
MOSのマイクロコンピユータ、4はプログラマ
ブルカウンタ2に内蔵されたバイナリカウンタ、
5は出力周波数レンジによるデータ12および
3を切換え出力する選択出力回路である。
In the figure, 1 is a reference frequency generator that generates a reference frequency OSC , 2 is a general-purpose programmable counter with a built-in binary counter, and 3 is a P-
MOS microcomputer, 4 is a binary counter built into programmable counter 2,
5 is data 1 , 2 and
This is a selective output circuit that selects and outputs 3 .

上記構成において、基準周波数発振器1により
発生した周波数OSCがプログラマブルカウンタ2
のCLKに端子に入力され、アドレス入力P0〜P7
へマイクロコンピユータ3の出力07よりア
ドレスコードが入力され分周比が決定される。プ
ログラマブルカウンタ2の直接出力は1であり、
プログラマブルカウンタ2に内蔵されたバイナリ
カウンタ4の出力は2で、この出力2はマイクロ
コンピユータ3の割り込み入力I0に入力されてい
る。前記出力2をマイクロコンピユータ3のソフ
トウエアにより分周した出力が3で、最終周波数
出力OUTは周波数レンジによりマイクロコンピユ
ータ3の出力端子0103により指定された選
択出力回路5を経て選択出力される。ここで1
OSC/n(n=1〜255)、2OSC/(2×n)
(n=1〜255)、3OSC(2×n×m)(n=1

255、m=1、2、3……)となる。ちなみにn
はプログラマブルカウンタ2のアドレス入力
(P0〜P7)に加えられるバイナリーコードであ
り、mはマイクロコンピユータ3のソフトウエア
による分周比である。
In the above configuration, the frequency OSC generated by the reference frequency oscillator 1 is transmitted to the programmable counter 2.
CLK is input to the terminal, address input P 0 ~ P 7
The address code is input from outputs 0 to 7 of the microcomputer 3, and the frequency division ratio is determined. The direct output of programmable counter 2 is 1 ,
The output of the binary counter 4 built into the programmable counter 2 is 2 , and this output 2 is input to the interrupt input I0 of the microcomputer 3. The output 2 is frequency-divided by the software of the microcomputer 3 and the final frequency output OUT is selectively outputted via the selection output circuit 5 designated by the output terminals 01 to 03 of the microcomputer 3 depending on the frequency range. . Here 1 =
OSC /n (n=1-255), 2 = OSC /(2×n)
(n=1~255), 3 = OSC (2×n×m)(n=1
~
255, m=1, 2, 3...). By the way, n
is a binary code added to the address input (P 0 to P 7 ) of the programmable counter 2, and m is a frequency division ratio determined by the software of the microcomputer 3.

ここでマイクロコンピユータ3は通常、他のシ
ステム制御も受け持つており、スピードもそれほ
ど早くできないので、出力3の出力時における出
2は比較的低い周波数に設定する必要がある。
Here, the microcomputer 3 is usually in charge of controlling other systems, and the speed cannot be so high. Therefore, when the output 3 is output, the output 2 needs to be set to a relatively low frequency.

ルームエアコン用インバータのPWM方式は通
常モータの同期周波数0にキヤリアを乗じたもの
を原発振とする場合が多いが、ここでその一実施
例の計算結果を第4図に示す。同図に示すものは
キヤリアを42、OSC=320KHz、周波数出力範囲
を同期周波数に換算して、2〜90Hzとして1Hzス
テツプで出力できるようにしたものである。分周
比の欄において左側第1項の85〜254はプログラ
マブルカウンタ分周比、第2項の2はプログラマ
ブルカウンタに付属したバイナリカウンタの出力
指定、第3項の2の乗数はマイクロコンピユータ
のソフトウエアによる分周比を示している。
The PWM system for room air conditioner inverters usually uses the motor's synchronous frequency 0 multiplied by a carrier as the primary oscillation, and the calculation results for one example are shown in Figure 4. The one shown in the figure has a carrier of 42, an OSC of 320 KHz, and a frequency output range converted to a synchronous frequency so that it can be output in 1 Hz steps from 2 to 90 Hz. In the frequency division ratio column, the first term on the left, 85 to 254, is the programmable counter frequency division ratio, the second term, 2, is the output specification of the binary counter attached to the programmable counter, and the third term, the multiplier of 2, is the microcomputer software. It shows the frequency division ratio by wear.

ここでエアコンとしての常用域はモータの同期
周波数に換算して30〜90Hzとすると15Hz未満の周
波数は始動時のみに使用するのでモータが通常の
回転制御を受けている間はマイクロコンピユータ
としてはアドレス指定と、1の出力指定を行うだ
けでよい。
Here, the normal use range for an air conditioner is 30 to 90Hz when converted to the motor's synchronous frequency. Frequencies below 15Hz are used only at startup, so while the motor is under normal rotational control, the microcomputer's address is All you need to do is to specify and specify the output of 1 .

さらに第4図より3の出力時はマイクロコンピ
ユータに入力している周波数の最大値が、OSC
(2×136)≒1.1KHz程度となつており、この程
度の値であれば市販の4ビツトのマイクロコンピ
ユータでも充分追随して処理しうる値である。ま
たマイクロコンピユータ3の入力I0が割り込み入
力できない場合は、ソフトウエアによるタイマを
使用して出力3を合成することもできる。この場
合も始動時のみであるからソフトウエアの負担は
少い。
Furthermore, from Figure 4, when outputting 3 , the maximum frequency input to the microcomputer is OSC /
(2×136)≈1.1 KHz, and this value is a value that even a commercially available 4-bit microcomputer can follow and process. Furthermore, if the input I0 of the microcomputer 3 cannot be used as an interrupt input, the output 3 can be synthesized using a software timer. In this case as well, the burden on the software is small because it is only at the time of starting.

発明の効果 本発明によればプログラマブル周波数発生器に
より任意の周波数を発生させる際に比較的周波数
の低い部分をマイクロコンピユータによる分周で
受け持つているため、構成部品を増加させること
なく、システムとしての分周比を自在に変えるこ
とができ、またソフトウエアでの分周処理はモー
タの始動時のみであるから負担も少く、その結
果、基本的なプログラマブルカウンタを汎用の安
価なもので構成でき、コスト的に多大のメリツト
が得られ、またソフトウエアによる分周比は整数
分の1とできるので、従来のようなプログラマブ
ルカウンタとバイナリカウンタの構成に比較して
分周比の自由度が高くなり、さらにソフトウエア
にかかる負担については割り込み入力を使用した
場合は単に分周指定および出力選択だけであるた
め、多ビツトのプログラマブルカウンタを使用す
るよりもいたつて簡略化することができるなど、
種々の利点を有するものである。
Effects of the Invention According to the present invention, when a programmable frequency generator generates an arbitrary frequency, a relatively low frequency part is handled by frequency division by a microcomputer, so that the system can be easily realized without increasing the number of components. The frequency division ratio can be changed freely, and the software only requires frequency division processing when starting the motor, which reduces the burden on the user.As a result, the basic programmable counter can be configured with a general-purpose, inexpensive counter. There are great advantages in terms of cost, and since the frequency division ratio by software can be reduced to a fraction of an integer, there is a greater degree of freedom in changing the frequency division ratio compared to the conventional configuration of programmable counters and binary counters. Furthermore, as for the burden on the software, when using interrupt input, it is only a matter of specifying the frequency division and selecting the output, so it is much simpler than using a multi-bit programmable counter.
It has various advantages.

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

第1図および第2図はそれぞれ異なる従来例を
示すプログラマブルタイマの回路図、第3図は本
発明の一実施例を示すプログラマブル周波数発生
器の回路図、第4図は同プログラマブル周波数発
生器における具体的な設計例を示す説明図であ
る。 1……基準周波数発生器、2……プログラマブ
ルカウンタ、3……マイクロコンピユータ、4…
…バイナリカウンタ、5……選択出力回路。
1 and 2 are circuit diagrams of a programmable timer showing different conventional examples, FIG. 3 is a circuit diagram of a programmable frequency generator showing an embodiment of the present invention, and FIG. 4 is a circuit diagram of a programmable frequency generator showing an embodiment of the present invention. FIG. 2 is an explanatory diagram showing a specific design example. 1...Reference frequency generator, 2...Programmable counter, 3...Microcomputer, 4...
...Binary counter, 5...Selection output circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 アドレス入力を備えたプログラマブルカウン
タと、選択出力を備えたマイクロコンピユータと
からなり、前記プログラマブルカウンタのアドレ
ス入力を前記マイクロコンピユータにより操作
し、前記プログラマブルカウンタの出力を前記マ
イクロコンピユータの入力端子に取り込み、分岐
周波数として固定の周波数を設定し、さらに前記
分岐周波数以上を常用使用域となし、前記分岐周
波数以下を始動域となし、前記マイクロコンピユ
ータの選択出力を切換えることにより、前記常用
使用域では前記プログラマブルカウンタの出力を
そのまま出力し、また前記始動域では前記プログ
ラマブルカウンタの出力を前記マイクロコンピユ
ータのソフトウエアによる分周出力を含むように
した誘導性負荷を有するインバータ駆動用のプロ
グラマブル周波数発生器。
1 Consisting of a programmable counter equipped with an address input and a microcomputer equipped with a selection output, the address input of the programmable counter is operated by the microcomputer, and the output of the programmable counter is taken into an input terminal of the microcomputer, By setting a fixed frequency as a branching frequency, setting a frequency above the branching frequency as a regularly used range, setting a range below the branching frequency as a starting range, and switching the selection output of the microcomputer, the programmable frequency is set in the regularly used range. A programmable frequency generator for driving an inverter having an inductive load, which outputs the output of the counter as it is, and in the starting region includes a frequency-divided output of the output of the programmable counter by software of the microcomputer.
JP57126912A 1982-07-20 1982-07-20 Programmable frequency generator for driving inverter with inductive load Granted JPS5917875A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57126912A JPS5917875A (en) 1982-07-20 1982-07-20 Programmable frequency generator for driving inverter with inductive load

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57126912A JPS5917875A (en) 1982-07-20 1982-07-20 Programmable frequency generator for driving inverter with inductive load

Publications (2)

Publication Number Publication Date
JPS5917875A JPS5917875A (en) 1984-01-30
JPH0153812B2 true JPH0153812B2 (en) 1989-11-15

Family

ID=14946962

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57126912A Granted JPS5917875A (en) 1982-07-20 1982-07-20 Programmable frequency generator for driving inverter with inductive load

Country Status (1)

Country Link
JP (1) JPS5917875A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56165422A (en) * 1980-05-24 1981-12-19 Matsushita Electric Ind Co Ltd Programmable divider

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56165422A (en) * 1980-05-24 1981-12-19 Matsushita Electric Ind Co Ltd Programmable divider

Also Published As

Publication number Publication date
JPS5917875A (en) 1984-01-30

Similar Documents

Publication Publication Date Title
JPH07297642A (en) Frequency multiplying circuit
JPH0153810B2 (en)
JPH0153812B2 (en)
JPH0153813B2 (en)
JP2637564B2 (en) Microcomputer with built-in motor controller circuit
JPH0153811B2 (en)
JPH0832350A (en) Frequency synthesizer
JPH08223003A (en) Clock multiplying circuit
JPH044482A (en) Microcomputer
JPS6126476A (en) Control circuit for inverter
JPH01218363A (en) Inverter controller
JPH01227627A (en) Power controlling trigger pulse generator circuit
JPS62132406A (en) Sinusoidal wave generator
JPS60152297A (en) Drive controller for inverter
JPH11274863A (en) Switching amplifier
JP2575633B2 (en) Multiplexed PWM inverter
JP2572066Y2 (en) Spectrum analyzer
JPH0527345B2 (en)
JPH01105226U (en)
JPH08204545A (en) Frequency divider circuit
JPH09116432A (en) Variable frequency generator and its output frequency control method
JPH0681509B2 (en) Reference signal creation circuit for synchronous PWM inverter
JPS6074973A (en) Reference signal forming circuit of synchronous pwm inverter
JPH08149872A (en) Speed controller for motor
JPH03253286A (en) Pulse width modulation drive circuit of dc motor