JPH04229096A - Method of automatically sensing and controlling frequency of power source - Google Patents

Method of automatically sensing and controlling frequency of power source

Info

Publication number
JPH04229096A
JPH04229096A JP3099415A JP9941591A JPH04229096A JP H04229096 A JPH04229096 A JP H04229096A JP 3099415 A JP3099415 A JP 3099415A JP 9941591 A JP9941591 A JP 9941591A JP H04229096 A JPH04229096 A JP H04229096A
Authority
JP
Japan
Prior art keywords
frequency
power
power supply
interrupt subroutine
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3099415A
Other languages
Japanese (ja)
Inventor
Dong-Yul Nam
南 東烈
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.)
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics 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 Samsung Electronics Co Ltd filed Critical Samsung Electronics Co Ltd
Publication of JPH04229096A publication Critical patent/JPH04229096A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation

Landscapes

  • Control Of Ac Motors In General (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

PURPOSE: To dispense with changeover switching operation by detecting the frequency of an AC power source and performing the operation geared to it. CONSTITUTION: A source voltage is inputted into a microcomputer 10 as a frequency signal, being half-wave rectified with a rectifier DB and made into pulses by a transistor TR1. The microcomputer 10 decides the power frequency, clocking the frequency signal, with the clock of an oscillator 50 as a reference. Then, it performs the PID computation geared to the power frequency, and performs output to a drive controller 60 with the phase data geared to the result so as to control a motor M.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、電源周波数に自動対応
する方法に係わるもので、特に、マイコンを具備した各
種機器において、その機器に入力される交流電源の周波
数を自動に感知し、電源周波数に関連された各駆動部を
感知した、周波数に従って動作させる電源周波数自動感
対応方法に関するものである。
[Industrial Application Field] The present invention relates to a method of automatically responding to power supply frequency, and in particular, in various devices equipped with a microcomputer, the present invention automatically senses the frequency of AC power input to the device, and The present invention relates to a method for automatically sensing power supply frequency, in which each drive unit related to the frequency is sensed and operated according to the frequency.

【0002】0002

【従来の技術および課題】交流電源を位相制御して、機
器に必要なモータの速度を制御する各種機器、つまり、
例えばモータの駆動を制御する従来の機器等は、電源周
波数を感知することができる手段が具備されていなかっ
たため、別途の周波数切換スイッチを設置し、そのスイ
ッチを使用者が手動で切換えるものであった。
[Prior Art and Problems] Various devices that control the phase of an AC power source to control the speed of a motor required for the device, that is,
For example, conventional equipment that controls the drive of motors did not have a means to detect the power frequency, so a separate frequency selection switch was installed and the switch was manually changed by the user. Ta.

【0003】しかし、上記のような方式は使用者が入力
される交流電源の周波数を確認した後、それに合わせて
周波数切換スイッチを切り換えなければならなかったた
め、使用者に多くの煩わしさを与えるという問題があっ
た。また、周波数切換スイッチを誤って切り替えると機
器が誤動作するので、使用者が望む出力を得ることがで
きなくなるという問題もあった。
However, the above-mentioned method causes a lot of trouble to the user because the user has to check the frequency of the input AC power source and then change the frequency selection switch accordingly. There was a problem. In addition, if the frequency selection switch is changed incorrectly, the equipment will malfunction, so there is a problem that the user will not be able to obtain the desired output.

【0004】このような問題点を解決するために、電源
周波数を自動的に感知する方法を発表した代表例として
は、日本特許公開昭56−33561号がある。この方
法は、電源周波数50/60Hzの電源を同じ周波数の
矩形パルスで変形させ、該信号をマイクロコンピュータ
ーに入力されるように構成し、該信号の上昇パルスと、
次の上昇パルス間の時間、または、下降パルスと次の下
降パルス間の時間をカウントして60Hzの場合には、
16.6ms後に、次のパルスの上昇があり、50Hz
の場合には、20ms後に次のパルスの上昇があるので
最初のパルスの上昇より16.6msと、20.0ms
の中間値である18.3msより後に次の上昇パルスが
あれば50Hzと判断し、18.3msより前に上昇パ
ルスがあれば、60Hzと判定する。これは、下降パル
ス間の時間をカウントして判定するときも同様である。 このように、マイクロコンピューターにより電源周波数
60Hz/60Hzの磁気判別を行い、該判別出力を利
用して、電源周波数の転換を自動化する。しかし、上記
のような方法は電源周波数を判定するのに限られている
[0004] A representative example of a method for automatically detecting the power frequency to solve these problems is Japanese Patent Publication No. 33561/1983. This method transforms a power source with a power frequency of 50/60 Hz with a rectangular pulse of the same frequency, configures the signal to be input to a microcomputer, and converts the rising pulse of the signal into a rectangular pulse of the same frequency.
If the frequency is 60Hz, count the time between the next rising pulse or the time between the falling pulse and the next falling pulse.
16.6ms later, the next pulse rises, 50Hz
In the case of , the next pulse rises after 20ms, so it is 16.6ms and 20.0ms after the first pulse rises.
If the next rising pulse occurs after 18.3 ms, which is the intermediate value of , it is determined that the frequency is 50 Hz, and if there is a rising pulse before 18.3 ms, it is determined that the frequency is 60 Hz. This also applies when determining by counting the time between falling pulses. In this way, the microcomputer performs magnetic discrimination between power supply frequencies of 60 Hz and 60 Hz, and the output of the discrimination is used to automate the conversion of the power supply frequency. However, the methods described above are limited to determining the power supply frequency.

【0005】[0005]

【発明の目的】本発明は、上記事情に鑑みてなされたも
ので、機器に内蔵されたマイコンを利用して電源周波数
を判定し、その電源周波数に従ってモータの速度を制御
する方法を提供することを目的としている。
[Object of the Invention] The present invention has been made in view of the above circumstances, and provides a method for determining the power frequency using a microcomputer built into a device and controlling the speed of a motor in accordance with the power frequency. It is an object.

【0006】[0006]

【課題を解決するための手段】このような目的を有する
本発明は、機器に入力される交流電源を外部インターラ
プト信号供給部により、ゼロクロス付近において一定の
幅を有し、一定値を有する矩形波を成し、その矩形波を
インターラプト信号にて使用し、交流電源のゼロクロス
始点に伴う一定数の外部インターラプト信号が10個入
力される間、クロックの数をカウントし、そのカウント
値にて交流電源の周波数を感知する段階と、感知された
電源周波数に従って、外部インターラプト信号をカウン
トし、時計機能を遂行する段階と、感知された電源周波
数に従って、基準回転数を設定し、該基準回転数で位相
制御のためのPID(Propotional  In
tegral  Differentiate)計算を
遂行する段階と、PIDチェック完了の可否を判断し、
それに従ってタイマーカウンターに位相データを入力さ
せる段階と、PID計算による位相データで駆動制御信
号を出力して、駆動部を位相制御する段階等を遂行する
[Means for Solving the Problems] The present invention, which has the above-mentioned object, uses an external interrupt signal supply unit to convert AC power input to a device into a rectangular shape having a constant width and a constant value near zero cross. The rectangular wave is used as an interrupt signal, and the number of clocks is counted while a fixed number of 10 external interrupt signals are input at the zero-crossing start point of the AC power supply, and the count value is a step of sensing the frequency of the AC power supply using the power supply; a step of counting external interrupt signals according to the sensed power supply frequency to perform a clock function; and a step of setting a reference rotation speed according to the sensed power supply frequency; PID (Proportional In) for phase control by rotation speed
tegral Differentiate) and determine whether the PID check is complete.
Accordingly, the steps of inputting phase data to a timer counter and outputting a drive control signal based on the phase data obtained by PID calculation to control the phase of the drive unit are performed.

【0007】[0007]

【実施例】以下、添付された図面を参照して、本発明の
電源周波数自動対応方法を詳細に説明すれば次のとおり
である。図1は、本発明の電源周波数自動対応方法が適
用される制御機器の実施例を示した回路図であり、ここ
に図示されたように、周波数感知及び位相制御の全体動
作を制御するマイコン10と、電源フラグPLを通じて
入力される交流電源を高圧化するパワートランスPTと
、パワートランスPTの2次コイルに誘導された電源を
、電波整流するブリッジダイオードBDと、電波整流さ
れた入力電源を静電圧にて交換し、マイコン10及び回
路の各部に動作電源を供給するダイオードD1、平滑コ
ンデンサーC1、C2、レギュレーター(reg)にて
成された静電圧部20と、マイコン10に交流電源の周
波数に伴う外部インターラプト信号を入力させる抵抗R
1−R3及びトランジスターTR1にて成された外部イ
ンターラプト信号供給部30と、マイコン10をリセッ
トさせるリセット用集積素子RST、抵抗R4、コンデ
ンサーC3にて成されたリセット部40と、マイコン1
0にクロックしこれを入力させる発振部50と、マイコ
ン10の駆動制御信号に従って、交流電源をスイッチン
グして、モータMを位相制御するバッファーBUF、ポ
ートトライアックPTA、トライアックTRA、抵抗R
5−R9、コンデンサーc4、c5にて成された駆動制
御部60にて構成される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a method for automatically adapting power frequency according to the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 is a circuit diagram showing an embodiment of a control device to which the power frequency automatic response method of the present invention is applied. , a power transformer PT that increases the voltage of the AC power input through the power flag PL, a bridge diode BD that rectifies the power induced by the secondary coil of the power transformer PT, and a bridge diode BD that rectifies the radio wave rectified input power. The electrostatic voltage unit 20 is made up of a diode D1, smoothing capacitors C1 and C2, and a regulator (reg) that supplies operating power to the microcomputer 10 and each part of the circuit. Resistor R for inputting the accompanying external interrupt signal
1-R3 and a transistor TR1; a reset unit 40 including a reset integrated element RST for resetting the microcomputer 10; a resistor R4; and a capacitor C3;
an oscillator unit 50 that clocks 0 and inputs it; a buffer BUF that switches the AC power supply and controls the phase of the motor M according to a drive control signal from the microcomputer 10; a port triac PTA; a triac TRA; and a resistor R.
5-R9, and a drive control section 60 made up of capacitors c4 and c5.

【0008】ここで、符号Fは、ヒューズであり、BU
Fはオープンコレクター型電流駆動バッファーである。 図2ないし図5は、本発明の電源周波数自動対応方法を
示した信号流れ図である。図2に図示されたように、動
作電源を供給すれば、メインルーチンにおいては、リセ
ント部40の作用でマイコン10がリセットされるに従
って、段階100において、初期化動作を遂行し、段階
101において、マイコン10に内蔵されたタイマーが
一定時間をカウントし、オバーフローが生ずる時、遂行
される交流電源の周波数が50Hzであるか、60Hz
であるかを感知するクロックインターラプトサブルーチ
ンと、外部インターラプト信号が印加される毎に、感知
された周波数に従って、時計機能を遂行し、PIDチェ
ック完了の可否に従って、タイマーカウンターに位相デ
ータを印加する外部インターラプトサブルーチンを遂行
できるようにする。
[0008] Here, the symbol F is a fuse, and BU
F is an open collector current driven buffer. 2 to 5 are signal flow diagrams illustrating the power frequency automatic adaptation method of the present invention. As shown in FIG. 2, when the operating power is supplied, in the main routine, as the microcomputer 10 is reset by the action of the resent unit 40, an initialization operation is performed in step 100, and in step 101, A timer built into the microcomputer 10 counts a certain period of time, and when an overflow occurs, it determines whether the frequency of the AC power is 50Hz or 60Hz.
A clock interrupt subroutine detects whether the external interrupt signal is applied, and performs a clock function according to the sensed frequency every time an external interrupt signal is applied, and applies phase data to the timer counter according to whether the PID check is completed or not. Allows execution of external interrupt subroutines.

【0009】さらに、段階102において、上記クロッ
クインターラプトサブルーチンにおいて、電源周波数判
別前には、60Hzに合うように設定された基準回転数
を入力し、段階103において、クロックインターラプ
トサブルーチンによって感知された周波数が50Hzで
あるか60Hzであるかを判断し、50Hzである場合
には、段階104において、50Hzに合うように基準
回転数を変更し、60Hzである場合には、段階105
において基準回転数をそのまま維持する。
Further, in step 102, in the clock interrupt subroutine, a reference rotation speed set to match 60 Hz is inputted before determining the power supply frequency, and in step 103, the reference rotation speed set to match 60Hz is input. It is determined whether the frequency is 50 Hz or 60 Hz, and if it is 50 Hz, the reference rotation speed is changed in step 104 to match 50 Hz, and if it is 60 Hz, in step 105
The reference rotation speed is maintained as it is.

【0010】段階106において、入力された基準回転
数と、モータMの実際回転数との差を利用し、モータM
の位相を制御するためのPID計算を遂行し、段階10
7において、PIDチェック完了されればPIDチェッ
クビットをセットさせ、段階102より繰り返し遂行し
、モータが一定数回転される毎に上記PID計算動作を
繰り返すのである。
In step 106, the difference between the input reference rotation speed and the actual rotation speed of the motor M is used to control the motor M.
Step 10: perform PID calculation to control the phase of
If the PID check is completed in step 7, the PID check bit is set, and the process is repeated from step 102, repeating the PID calculation operation every time the motor rotates a certain number of times.

【0011】メインルーチンにおいて許可された、クロ
ックインターラプトサブルーチンは、一定条件(例えば
、1msec毎に、インターラプトがかかるようになさ
れることもある)が満足されれば遂行され、クロックル
ーチンにおいては、図3に図示されたように入力周波数
を感知するが、段階201において、モータの回転数を
サンプリングして、PIDチェックが上記基準回転数と
一致されるPID完了始点を設定し、段階202におい
て周波数感知の可否を判断し、感知されなかったならば
、段階203において外部インターラプト信号をクロッ
クインターラプト信号でサンプリングする。
The clock interrupt subroutine, which is permitted in the main routine, is executed if a certain condition (for example, an interrupt may occur every 1 msec) is satisfied, and in the clock routine, The input frequency is sensed as shown in FIG. 3, but in step 201, the rotation speed of the motor is sampled to set a PID completion starting point where the PID check is matched with the reference rotation speed, and in step 202, the frequency It is determined whether sensing is possible, and if not sensing, the external interrupt signal is sampled with the clock interrupt signal in step 203.

【0012】これを詳細に説明すれば、図6のような交
流電源が入力される場合、外部インターラプト信号供給
部30においては、図3に図示されたところのように、
ブリッジダイオードBDによって、電波整流された誘導
電圧が印化され、外部インターラプト信号供給部30に
おいては、位相制御の際に動機を合わせると共に、外部
インターラプトルーチンの遂行のため、該信号を矩形波
に変換し、マイコン10に印加するようになる。すなわ
ち、電波整流電圧が抵抗R1、R2によって分圧され、
トランジスターTR1のベースで印加されるとき、ベー
ス電位が低電位状態であればトランジスターTR1が導
通されて高電位信号が印加され、ベース電位が高電位状
態であれば、トランジスターTR1がオフされるに従っ
て低電位信号が印加されるので、マイコン10の入力端
子IRQには、図4におけるように、入力電源のゼロク
ロス(Zero−cross)点において、高電位とな
る矩形波信号が印加される毎に、外部インターラプトル
ーチンを遂行する。このとき、上記矩形信号の周波数は
、入力周波数が60Hzである場合には、120Hzに
なり、入力周波数が50Hzである場合には、100H
zとなる。
To explain this in detail, when an AC power supply as shown in FIG. 6 is input, the external interrupt signal supply unit 30 outputs the
The bridge diode BD applies a radio-rectified induced voltage, and the external interrupt signal supply section 30 converts the signal into a rectangular wave in order to match the motive during phase control and to execute the external interrupt routine. and is applied to the microcomputer 10. That is, the radio wave rectified voltage is divided by resistors R1 and R2,
When applied at the base of the transistor TR1, if the base potential is in a low potential state, the transistor TR1 is conductive and a high potential signal is applied; if the base potential is in a high potential state, the transistor TR1 becomes low as the transistor TR1 is turned off. Since a potential signal is applied to the input terminal IRQ of the microcomputer 10, as shown in FIG. Execute interrupt routine. At this time, the frequency of the rectangular signal is 120Hz when the input frequency is 60Hz, and 100Hz when the input frequency is 50Hz.
It becomes z.

【0013】マイコン10においては、上記外部インタ
ーラプト信号が10個入力される時間の間、680us
ecの周期を有するクロックインターラプト信号をカウ
ントするが、50Hzの場合には、外部インターラプト
信号が10個入力される時間は、0.1secであるの
で、 0.1(sec)/680(USEC) = 147.
05882・・・・・・・・(1)60Hzの場合には
、外部インターラプト信号が10個入力される時間は1
/12secであるので、1/12(sec)/680
(USEC) = 122,5・・・・・・・・・・・
(2)従って、(1)式の結果と(2)式の結果の中間
値である135と比較して50Hzと60Hzを判定す
る。
In the microcomputer 10, 680us is input during the time when the 10 external interrupt signals are input.
Clock interrupt signals with a period of ec are counted. In the case of 50 Hz, the time for inputting 10 external interrupt signals is 0.1 sec, so 0.1 (sec) / 680 (USEC) ) = 147.
05882・・・・・・(1) In the case of 60Hz, the time for 10 external interrupt signals to be input is 1
/12sec, so 1/12 (sec)/680
(USEC) = 122,5・・・・・・・・・・・・
(2) Therefore, 50 Hz and 60 Hz are determined by comparing the result of equation (1) with 135, which is the intermediate value of the result of equation (2).

【0014】段階240において、カウント値が135
以上であるか判断し、それ以上である場合にマイコン1
0は50Hzと認知し、段階205において、50Hz
フラグF50を1にセットさせると同時に、60Hzフ
ラグF60を0にてクリアさせ、135以上でない場合
には、60HzフラグF60をセットさせると同時に、
50HzフラグF50をクリアさせる。段階207にお
いて上記のような周波数感知動作が完了されれば、外部
インターラプト信号の周波数カウントを停止し、クロッ
クインターラプトサブルーチンにてジャンプ(Jump
)した当時のアドレスにリターンし、メインルーチンを
さらに遂行し、段階202において、入力周波数が感知
された場合にも同様にメインルーチンにてリターンする
At step 240, the count value is 135.
If the value is higher than that, microcontroller 1
0 is recognized as 50Hz, and in step 205, 50Hz
At the same time as setting the flag F50 to 1, clearing the 60Hz flag F60 to 0, and if it is not 135 or more, setting the 60Hz flag F60 at the same time,
Clear the 50Hz flag F50. When the frequency sensing operation as described above is completed in step 207, the frequency count of the external interrupt signal is stopped and a jump is executed in the clock interrupt subroutine.
), the main routine is further executed, and when the input frequency is sensed in step 202, the main routine is also returned.

【0015】一方、メインルーチンにおいて許可された
インターラプトサブルーチンは、マイコン10の入力端
子IRQにパルスが入力される毎に遂行されるが、上記
クロックインターラプトサブルーチンと同時に掛かる時
、外部インターラプトサブルーチンが最も優先される。 このような外部インターラプトルーチンにおいては、図
4に図示されたように、段階301において感知された
周波数が、60Hzであるか50Hzであるかを判断し
、60Hzである場合にマイコン10は、段階302に
おいて外部インターラプト信号を120個カウントして
1秒と感知し、50Hzである場合には、段階303に
おいて外部インターラプト信号を100個カウントして
1秒と感知し、段階304において、秒、分、時を順々
に増加させながら、時計機能を遂行させる。
On the other hand, the interrupt subroutine permitted in the main routine is executed every time a pulse is input to the input terminal IRQ of the microcomputer 10, but when it is executed simultaneously with the clock interrupt subroutine, the external interrupt subroutine is executed. highest priority. In such an external interrupt routine, as shown in FIG. In step 302, 120 external interrupt signals are counted and 1 second is sensed, and if the frequency is 50 Hz, in step 303, 100 external interrupt signals are counted and 1 second is sensed, and in step 304, seconds, The clock function is performed while increasing the minutes and hours in sequence.

【0016】次に、段階305において、上記外部イン
ターラプト信号が入力された時から、一定時間が経過さ
れ、上記マイコン10に内臓されたタイマーカウンター
よりオバーフローが生ずるとき、タイマーインターラプ
トサブルーチンを遂行すべくタイマーインターラプトを
許可し、事前に決定された一定条件を満足する場合にP
ID計算による位相データに従って駆動制御信号を出力
し、モータを制御するタイマーインターラプトサブルー
チンを遂行できるようにし、段階306において、PI
Dチェックが完了されたかを判断、つまり、一定回転数
毎に繰り返されるPID計算動作が完了されたかを判断
し、完了されなかったならば段階307において以前の
位相データをタイマーカウンターに入力し、PIDチェ
ック完了の際には、段階308において新たな位相デー
タをタイマーカウンターに入力し、外部インターラプト
サブルーチンにジャンプする当時のアドレスにリターン
する。
Next, in step 305, when a certain period of time has elapsed since the external interrupt signal was input and the timer counter built in the microcomputer 10 overflows, a timer interrupt subroutine is executed. Allow timer interrupts if possible, and set P when certain predetermined conditions are met.
In step 306, the PI outputs a drive control signal according to the phase data from the ID calculation to enable a timer interrupt subroutine for controlling the motor to be executed.
It is determined whether the D check has been completed, that is, whether the PID calculation operation that is repeated at a constant number of revolutions has been completed. If it has not been completed, the previous phase data is input to the timer counter in step 307, and the PID calculation operation is determined. Upon completion of the check, step 308 inputs new phase data into the timer counter and returns to the current address to jump to the external interrupt subroutine.

【0017】上記外部インターラプトサブルーチンから
タイマーカウンターに入力された位相データによりモー
タがオフされる瞬間に、タイマーインターラプトサブル
ーチンにジャンプされるが、タイマーインターラプトサ
ブルーチンにおいては、図5に図示されたように、段階
401において、タイマーカウンター値が$FF−$0
0に増加される瞬間にタイマーインターラプトを禁止し
、段階402において、マイコン10に入力される外部
インターラプト信号に入力電源がゼロクロシングされる
初期時間であるかを判断し、初期には、段階403にお
いてマイコン10の出力端子(OUT)を通じて低電位
信号を出力する。
At the moment when the motor is turned off by the phase data input to the timer counter from the external interrupt subroutine, the timer interrupt subroutine is jumped to. Then, in step 401, the timer counter value is $FF-$0.
In step 402, the external interrupt signal input to the microcontroller 10 is determined to be the initial time at which the input power supply zero-crosses. At 403, a low potential signal is output through the output terminal (OUT) of the microcomputer 10.

【0018】低電位信号が入力されるに従って、駆動制
御部60のバッファー(BUF)は、高電位信号を出力
するため抵抗R5を通じて電流が流れ、ポートトライア
ックPTAの発光部が発光するようになり、光が感知さ
れれば、ポートトライアックPTAの受光部が導通され
、トライアックTRAのゲートにトリガー信号が印加さ
れるのでトライアックTRAが導通され、モータMには
交流電源が印加される。段階404においてタイマーカ
ウンターに$FOを入れてやり、段階405においてタ
イマーインターラプトを許可した後、タイマーインター
ラプトサブルーチンにジャンプする当時のスッタックに
貯蔵されていたアドレスにリターンする。
As the low potential signal is input, the buffer (BUF) of the drive control section 60 outputs a high potential signal, so a current flows through the resistor R5, and the light emitting section of the port triac PTA starts to emit light. When light is sensed, the light receiving part of the port triac PTA is made conductive, and a trigger signal is applied to the gate of the triac TRA, so that the triac TRA is made conductive, and AC power is applied to the motor M. In step 404, $FO is placed in the timer counter, and in step 405, after enabling the timer interrupt, the process returns to the address stored in the stack at the time of jumping to the timer interrupt subroutine.

【0019】上記タイマーカウンター値が$FF−$0
0に増加されれば、タイマーインターラプトサブルーチ
ンを再び遂行し、段階402において、初期時間でない
場合、段階406において、マイコン10の出力端子O
UTを通じて高電位信号を出力し、さらに、タイマーイ
ンターラプトサブルーチンにジャンプする当時、スタッ
クに貯蔵しておいたアドレスにリターンする。この場合
、バッファーBUFにおいて出力される低電位信号によ
ってポートトライアック(PTA)が動作しなくなるの
で、トライアックPRAに印加されるトリガー信号は遮
断されるが、トライアックTRAの特性上、交流電源が
ゼロクロスされるまで導通状態が維持されるので、モー
タMの駆動はゼロクロス始点まで継続され、上述された
ようなルーチン等を遂行するようになれば入力周波数に
従ってモータMの回転数が自動的に可変する。
[0019] The above timer counter value is $FF - $0
If the timer interrupt subroutine is increased to 0, the timer interrupt subroutine is executed again, and if it is not the initial time in step 402, the output terminal O of the microcomputer 10 is increased in step 406.
It outputs a high potential signal through the UT and returns to the address stored in the stack at the time of jumping to the timer interrupt subroutine. In this case, the port triac (PTA) will no longer operate due to the low potential signal output from the buffer BUF, so the trigger signal applied to the triac PRA will be cut off, but due to the characteristics of the triac TRA, the AC power supply will cross zero. Since the conduction state is maintained until the zero cross start point, the drive of the motor M is continued until the zero-crossing starting point, and when the above-mentioned routine etc. are carried out, the rotational speed of the motor M is automatically varied according to the input frequency.

【0020】[0020]

【発明の効果】以上において詳細に説明したように、本
発明は、ソフトウェアーにて交流電源の周波数を感知し
、それに伴う動作を遂行するので、使用者が一々交流電
源の周波数を判別し、周波数切換スイッチを切換えなけ
ればならない煩わしさを除去出来るのは勿論、周波数に
伴う機器の誤動作を防止することが出来る効果がある。
Effects of the Invention As explained in detail above, the present invention uses software to sense the frequency of the AC power source and perform the associated operations, so that the user can determine the frequency of the AC power source one by one. This not only eliminates the trouble of having to change the frequency selection switch, but also has the effect of preventing equipment malfunctions caused by frequency.

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

【図1】本発明の電源周波数自動感知及び制御方法が適
用される制御機器の実施例を示した回路図である。
FIG. 1 is a circuit diagram showing an embodiment of a control device to which the power frequency automatic sensing and control method of the present invention is applied.

【図2】本発明の電源周波数自動感知及び制御方法を示
した信号流れ図である。
FIG. 2 is a signal flow diagram illustrating the power frequency automatic sensing and control method of the present invention.

【図3】本発明の電源周波数自動感知及び制御方法を示
した信号流れ図である。
FIG. 3 is a signal flow diagram illustrating the power frequency automatic sensing and control method of the present invention.

【図4】本発明の電源周波数自動感知及び制御方法を示
した信号流れ図である。
FIG. 4 is a signal flow diagram illustrating the power frequency automatic sensing and control method of the present invention.

【図5】本発明の電源周波数自動感知及び制御方法を示
した信号流れ図である。
FIG. 5 is a signal flow diagram illustrating the power frequency automatic sensing and control method of the present invention.

【図6】本発明の周波数自動感知及び制御方法を説明す
るための波形図である。
FIG. 6 is a waveform diagram for explaining the automatic frequency sensing and control method of the present invention.

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

10  マイコン 20  静電圧 30  供給部 40  リセット部 50  発振部 60  駆動制御部 10 Microcomputer 20 Static voltage 30 Supply section 40 Reset section 50 Oscillation section 60 Drive control section

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】  電源周波数のゼロクロス毎にパルスを
発生させ、そのパルスをマイコンに外部インターラプト
信号に印加し、上記インターラプト信号をカウントして
、電源周波数を判断し、該周波に合うべくモータを制御
する電源周波数自動感知及び制御方法において、電源が
印加された後、初期化する段階と、上記マイコンの内臓
タイマーが、一定時間をカウントし、オーバーフローが
生ずる際、電源周波数を判別するクロックインターラプ
トサブルーチン及び、上記外部インターラプト信号が印
加される毎に、モータを位相制御する位相データを算出
する外部インターラプトサブルーチンが遂行されるよう
許可する段階と、上記クロックインターラプトサブルー
チンにおいて電源周波数判別前には、60Hzに合う基
準回転数を入力し、上記クロックインターラプトサブル
ーチンにおいて、セットされた50Hzフラグ及び60
Hzフラグに従って、電源周波数が50Hzであるか、
60Hzであるかを判別して、基準回転数を判別された
周波数に合わせる段階と、上記入力された基準回転数に
従って、モータの位相を制御するためにPID計算する
段階と、PIDチェックが完了された時、PIDチェッ
クビットをセットさせ、リターンする段階等で構成され
たことを特徴とする電源周波数自動感知及び制御方法。
1. A pulse is generated at each zero cross of the power supply frequency, the pulse is applied to the microcontroller as an external interrupt signal, the interrupt signal is counted, the power supply frequency is determined, and the motor is controlled to match the frequency. In the power frequency automatic detection and control method for controlling the power supply frequency, there is an initialization stage after power is applied, and a clock interface that counts a certain period of time and determines the power frequency when an overflow occurs. a step of allowing an external interrupt subroutine to be executed that calculates phase data for controlling the phase of the motor each time the external interrupt signal is applied; and before determining the power supply frequency in the clock interrupt subroutine. Input the reference rotation speed that matches 60Hz, and set the 50Hz flag and 60Hz in the clock interrupt subroutine above.
According to the Hz flag, the power frequency is 50Hz or
The PID check is completed by determining whether the frequency is 60Hz and adjusting the reference rotation speed to the determined frequency, and calculating the PID to control the phase of the motor according to the input reference rotation speed. A power frequency automatic detection and control method comprising the steps of setting a PID check bit and returning when a PID check bit is detected.
【請求項2】  上記クロックインターラプトサブルー
チンは、PIDチェックが完了される始点を設定するた
めに、モータ回転数をサンプリングする段階と、電源周
波数が判別されたとき、メインルーチンに戻り、電源周
波数が判別されなかったとき、電源周波数のゼロクロス
始点毎に、入力されるインターラプト信号が、一定数入
力される間、クロックをカウントし、一定数以上である
場合は50Hzと判断し、一定数以上でない場合は50
Hzにて判断して、周波数感知を完了する段階と、周波
数感知が完了された後、リターンする等によって構成さ
れたことを特徴とする請求項1記載の電源周波数自動感
知及び制御方法。
2. The clock interrupt subroutine includes a step of sampling the motor rotation speed in order to set a starting point at which the PID check is completed, and a return to the main routine when the power supply frequency is determined. If it is not determined, the clock is counted while a certain number of interrupt signals are input at each zero-crossing start point of the power supply frequency, and if it is above a certain number, it is judged as 50Hz, and if it is not above a certain number. 50 if
The method of claim 1, further comprising the steps of: determining the frequency in Hz and completing the frequency sensing; and returning after the frequency sensing is completed.
【請求項3】  上記外部インターラプトサブルーチン
は、マイコンに入力される外部インターラプト信号をカ
ウントし、時計機能を遂行する段階と、上記外部インタ
ーラプト信号が入力された時間より、一定時間をカウン
トする中に、上記マイコンに内臓されたタイマーカウン
ターがオバーフローされる際、タイマーインターラプト
サブルーチンを遂行すべく許可する段階と、上記メイン
ルーチンのPIDチェックビットを判断し、PIDチェ
ックが完了されたとき、タイマーカウンターに新たな位
相データを入力し、PIDチェックが完了されなかった
とき、タイマーカウンターに以前の位相データを入力し
、リターンする段階等で構成されたことを特徴とする請
求項1記載の電源周波数自動感知及び制御方法。
3. The external interrupt subroutine counts external interrupt signals input to the microcomputer, performs a clock function, and counts a certain period of time from the time when the external interrupt signal is input. When the timer counter built into the microcontroller overflows, the timer interrupt subroutine is permitted to be executed, and the PID check bit of the main routine is determined, and when the PID check is completed, the timer interrupt subroutine is allowed to execute. 2. The power supply frequency according to claim 1, further comprising the steps of inputting new phase data to a counter, inputting previous phase data to a timer counter when the PID check is not completed, and returning. Automatic sensing and control methods.
【請求項4】  上記タイマーインターラプトサブルー
チンは、次のタイマーインターラプトサブルーチンが掛
かるのを禁止する段階と、電源がゼロクロスされる初期
時間でない場合、メインルーチインに戻り、ゼロクロス
される初期時間である場合、出力ポートに低電位を出力
する段階と、タイマーカウンターに$FOを入力する段
階と、上記タイマーカウンターが$OOとなるとき、次
のタイマーインターラプトサブルーチンを許可し、リタ
ーンする段階等で構成されたことを特徴とする、請求第
1項記載の電源周波数自動感知及び制御方法。
4. The timer interrupt subroutine is a step of prohibiting the next timer interrupt subroutine from starting, and if it is not the initial time at which the power is zero-crossed, the timer interrupt subroutine returns to the main routine and is the initial time at which the power is zero-crossed. In this case, it consists of a step of outputting a low potential to the output port, a step of inputting $FO to the timer counter, and a step of permitting the next timer interrupt subroutine and returning when the timer counter reaches $OO. The power frequency automatic sensing and control method according to claim 1, characterized in that:
JP3099415A 1990-05-04 1991-04-04 Method of automatically sensing and controlling frequency of power source Pending JPH04229096A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1019900006344A KR960007852B1 (en) 1990-05-04 1990-05-04 Method for operating driving apparatus in accordance with a frequency
KR19906344 1990-05-04

Publications (1)

Publication Number Publication Date
JPH04229096A true JPH04229096A (en) 1992-08-18

Family

ID=19298715

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3099415A Pending JPH04229096A (en) 1990-05-04 1991-04-04 Method of automatically sensing and controlling frequency of power source

Country Status (2)

Country Link
JP (1) JPH04229096A (en)
KR (1) KR960007852B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IT201600130095A1 (en) * 2016-12-22 2018-06-22 Eggtronic Eng S R L Wireless power transfer system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6188789A (en) * 1984-10-05 1986-05-07 Matsushita Electric Ind Co Ltd Phase controller of cleaning device
JPS641496A (en) * 1987-06-22 1989-01-05 Mitsui Seiki Kogyo Co Ltd Automatic setting device for control element by supervision of power source
JPS6430457A (en) * 1987-07-22 1989-02-01 Mitsubishi Electric Corp Phase controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6188789A (en) * 1984-10-05 1986-05-07 Matsushita Electric Ind Co Ltd Phase controller of cleaning device
JPS641496A (en) * 1987-06-22 1989-01-05 Mitsui Seiki Kogyo Co Ltd Automatic setting device for control element by supervision of power source
JPS6430457A (en) * 1987-07-22 1989-02-01 Mitsubishi Electric Corp Phase controller

Also Published As

Publication number Publication date
KR960007852B1 (en) 1996-06-12
KR910021038A (en) 1991-12-20

Similar Documents

Publication Publication Date Title
JPH07178678A (en) Drill driver and its control method
US20110291735A1 (en) Switch circuit
EP0175294B1 (en) Method and apparatus for controlling induction motor
JPH04229096A (en) Method of automatically sensing and controlling frequency of power source
JP3363200B2 (en) Method for regulating power and apparatus for implementing the method
US20030107343A1 (en) Voltage-controlled starting relay for induction motor
JP2006514295A (en) Method for rotational identification of a step motor driving at least one hand of a watch
JPH08126303A (en) Power supply
JP2003333878A (en) Motor controller and washing machine
JP3518017B2 (en) Motor control device and washing machine
JP2712369B2 (en) DC power supply
JPH07264887A (en) Starting equipment for single-phase induction motor
JPH0715865A (en) Protective apparatus for power source circuit
JPH0211924B2 (en)
JP2000000054U (en) Power frequency automatic recognition device
JPH0243433B2 (en)
KR100242780B1 (en) Digital timing relay
SU1515329A2 (en) Device for controlling excitation of synchronous generator
KR0123121Y1 (en) Speed control apparatus of an induction motor
JP2588117Y2 (en) Motor control device
JPH06276782A (en) Device for operating brushless dc motor for driving compressor
JPH0947076A (en) Control method for brushless motor
JPH0974343A (en) Current limiter circuit
JPH0759158B2 (en) DC motor drive controller
JPH1054553A (en) Combustion apparatus

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19960716