JPH03124295A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH03124295A
JPH03124295A JP1259210A JP25921089A JPH03124295A JP H03124295 A JPH03124295 A JP H03124295A JP 1259210 A JP1259210 A JP 1259210A JP 25921089 A JP25921089 A JP 25921089A JP H03124295 A JPH03124295 A JP H03124295A
Authority
JP
Japan
Prior art keywords
zero
output
program
binary counter
oscillator
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
JP1259210A
Other languages
Japanese (ja)
Inventor
Hideji Abe
秀二 安倍
Seiichi Ueno
聖一 上野
Haruo Terai
春夫 寺井
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 JP1259210A priority Critical patent/JPH03124295A/en
Publication of JPH03124295A publication Critical patent/JPH03124295A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control By Computers (AREA)
  • Control Of Ac Motors In General (AREA)

Abstract

PURPOSE:To simplify a program configuration by operating the set value of phase control by a program only when suction air flow rate is altered. CONSTITUTION:When suction air flow is for, example, set to an 'intermediate' rate by operating means 14, a system controller 10 sets corresponding data in a timer buffer 4 by a control program stored in a ROM 12. When zero cross detecting means 1 detects the zero-crossing point of a commercial power source 9, the buffer 4 outputs a stored value to a binary counter 3, the counter 3 turns OFF an output unit 5 and then starts counting the output pulse from an oscillator 2. When the count of the counter 3 reaches the end and the unit 5 is turned ON, a bidirectional controller 17 is turned ON, and a voltage is applied on a motor 19. This operation is repeated each time the means 1 detects the zero- crossing point, and the phase of a motor 19 is controlled.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、産業用等で利用されるマイクロコンピュータ
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a microcomputer used for industrial purposes.

従来の技術 従来、マイクロコンピュータを使用してモータやヒータ
の位相制御を行う場合、プログラムで実現していた。第
3図に動作の流れを示す。ゼロクロス点を検出すると、
マイクロコンピュータ内蔵のタイマーに初期値をセット
し、タイマーカウントをスタートする。タイマーカウン
トはその他の通常の処理プログラムとは別にカウントが
進行し、タイマーカウントが終了すると、割り込みが発
生する。割り込みが発生ずると、プログラムは割り込み
処理部に流れが移り、ここでタイマーカウントを終了し
出力制御を行い、再び通常の処理プログラムに流れが移
るものであった。
Conventional Technology Conventionally, when using a microcomputer to control the phase of a motor or heater, it was achieved using a program. Figure 3 shows the flow of operation. When the zero crossing point is detected,
Set the initial value to the microcomputer's built-in timer and start the timer count. The timer count progresses separately from other normal processing programs, and when the timer count ends, an interrupt occurs. When an interrupt occurs, the flow of the program is transferred to the interrupt processing section, where the timer count ends, output control is performed, and the flow returns to the normal processing program.

発明が解決しようとする課題 しかし、上記の構成では、プログラムにより位相制御の
制御をおこなっており、プログラムの構成が複雑になる
という課題があった。本発明はこのような従来の課題を
解決しようとするものであって、プログラムの構成が簡
単になるようなマイクロコンピュータを提供することを
目的とするものである。
Problems to be Solved by the Invention However, in the above configuration, the phase control is controlled by a program, and there is a problem that the program configuration becomes complicated. The present invention is intended to solve these conventional problems, and it is an object of the present invention to provide a microcomputer whose program structure can be simplified.

課題を解決するための手段 」二記目的を達成するために、本発明では商用電源のゼ
ロクロス点を検出し信号を出力するゼロクロス検出手段
と、発振器と、前記ゼロクロス検出手段から信号が出力
された時点がら、前記発振器の出力のカウントを開始す
るバイナリカウンタと、このバイナリカウンタのカウン
ト初期値を格納し、前記ゼロクロス検出手段から信号が
出力された時にこの格納された値を出力するタイマーバ
ッファと、前記バイナリカウンタのカウント終了で信号
を出力する出力部からなるものである。
Means for Solving the Problems In order to achieve the second object, the present invention includes a zero-cross detection means for detecting a zero-cross point of a commercial power supply and outputting a signal, an oscillator, and a signal output from the zero-cross detection means. a binary counter that starts counting the output of the oscillator from time to time; a timer buffer that stores the initial count value of the binary counter and outputs the stored value when a signal is output from the zero-cross detection means; It consists of an output section that outputs a signal when the binary counter finishes counting.

作  用 上記した手段では、位相制御を行うために商用電源のゼ
ロクロス点からバイナリカウンタのカウントを開始し、
カウント終了後に出力を行うようにできる。
Operation In the above-mentioned means, in order to perform phase control, the binary counter starts counting from the zero-crossing point of the commercial power supply,
It can be configured to output after the count ends.

実施例 以下、その実施例を図面を参照にして説明する。第1図
は、本発明の一実施例を示したブロック図である。本実
施例では掃除機の制御回路に応用した例を説明する。1
はゼロクロス検出手段で、抵抗15・抵抗16を介して
商用電源9のゼロクロス点を検出する。2は発振器で、
抵抗7及びコンデンサ8で決まる周波数のパルス発振を
行う。3はバイナリカウンタで、ゼロクロス検出手段1
から出力があった場合に、発振器2のパルス出力のカウ
ントを開始する。4はタイマーバッファで、ゼロクロス
検出手段1から出力があった場合に格納値をバイナリカ
ウンタ3にロードする。10はシステム制御部で、マイ
クロコンピュータ21の全体を制御する。12はROM
で、掃除機の制御プログラムを格納する。11はRAM
で、制御プログラムを実行する場合にデータを一時記憶
するのに使用される。14は操作手段で、掃除機の吸い
込み風量を設定を行い、入力部I3を介してその設定値
を入力する。17は双方向制御素子で、モータ19の制
御を行う。5は出力部で、バイナリカウンタ3のカウン
ト終了で出力される。出力部5はNPNトランジスタで
構成され、出力時は抵抗18を介して双方向制御素子1
7をONさせる。20は回路用の直流電源である。
Embodiments Hereinafter, embodiments will be described with reference to the drawings. FIG. 1 is a block diagram showing one embodiment of the present invention. In this embodiment, an example in which the present invention is applied to a control circuit for a vacuum cleaner will be described. 1
is a zero-cross detection means that detects the zero-cross point of the commercial power supply 9 via a resistor 15 and a resistor 16. 2 is an oscillator,
Pulse oscillation is performed at a frequency determined by the resistor 7 and capacitor 8. 3 is a binary counter, and zero cross detection means 1
When there is an output from the oscillator 2, counting of the pulse output of the oscillator 2 is started. 4 is a timer buffer, which loads a stored value into the binary counter 3 when there is an output from the zero-cross detection means 1; A system control unit 10 controls the entire microcomputer 21. 12 is ROM
Stores the vacuum cleaner control program. 11 is RAM
It is used to temporarily store data when executing a control program. Reference numeral 14 denotes an operating means for setting the suction air volume of the vacuum cleaner, and inputting the set value via the input section I3. A bidirectional control element 17 controls the motor 19. 5 is an output section, which is output when the binary counter 3 finishes counting. The output section 5 is composed of an NPN transistor, and at the time of output, it is connected to the bidirectional control element 1 via a resistor 18.
Turn on 7. 20 is a DC power supply for the circuit.

以下動作について説明する。操作手段14では、掃除機
の吸い込み風量の設定を“強′。
The operation will be explained below. The operating means 14 sets the suction air volume of the vacuum cleaner to "strong".

中”弱″の3段階に設定できる。この3段階の吸い込み
風量に対して、第2図に示すように、”強パではモータ
に印加される電圧を全位相としく同図(b))、”中°
゛では同じくゼロクロス点からtl後から電圧を印加し
く同図(C))、弱パでは同じくゼロクロス点からt2
後から電圧を印加(同1’J(d))するようにしてい
る。また、バイナリカウンタ3は例えば8ビツトで構成
されており、256のカウントが可能である。同様にタ
イマーバッファ4も8ビツトで構成されている。操作手
段14により、吸い込み風量を°゛中″設定された場合
、システム制御部10はROM12に格納されている制
御プログラムにより、吸い込み風量°゛中°′に対応す
るデータを内部データバス6を通してタイマーバッファ
4に設定する。この値は、商用電源9が60 Hzであ
れば、176になる。これは、第2図の(C)のtlに
対応し、(8,33m5sc/256)×(256−1
76>−2,6m5ecに相当する。すなわち、ゼロク
ロス点から2.6m5eC後にモータ19に電圧を印加
することである(2、6m5ec経過時点で位相制御を
かける)。ゼロクロス検出手段1が商用電源9のゼロク
ロス点を検出しパルスを出力すると(第2図(a))、
タイマーバッファ4は格納値をバイナリカウンタ3に出
力する。同時に、バイナリカウンタ3は出力部5をオフ
させてから、発振器2の出力パルスのカウントを開始す
る。発振器2の発振周波数は、抵抗7・コンデンサ8と
ともに、1/(60Hz×2×256)−30、7kH
zとする。バイナリカウンタ3は初期値として176が
セットしであるので、発振器2から80パルス入力する
とバイナリカウンタ3のカウント値は256となりカウ
ント終了となり、出力部5をオンさせる。すると、抵抗
18を介して双方向制御素子17はオン七なり、モータ
19に電圧が印加される。こうした一連の動作がゼロク
ロス検出手段1がゼロクロス点を検出する度に繰り返さ
れ、モータ19の位相制御が実現される。
It can be set to three levels: medium and weak. For these three stages of suction air volume, as shown in Figure 2, ``at high power, the voltage applied to the motor is in all phases (Fig.
In the same case, the voltage is applied after tl from the zero-crossing point (Figure (C)), and in the same case, the voltage is applied after t2 from the zero-crossing point in the weak-power case.
A voltage is applied later (1'J(d)). Further, the binary counter 3 is composed of, for example, 8 bits, and is capable of counting 256 bits. Similarly, the timer buffer 4 is also composed of 8 bits. When the suction air volume is set to 'medium' by the operation means 14, the system control unit 10 uses the control program stored in the ROM 12 to send data corresponding to the suction air volume 'medium' to the timer via the internal data bus 6. Set in buffer 4. If the commercial power supply 9 is 60 Hz, this value will be 176. This corresponds to tl in (C) of Fig. 2, and is (8,33m5sc/256) x (256 -1
This corresponds to 76>-2,6m5ec. That is, the voltage is applied to the motor 19 after 2.6 m5 eC from the zero cross point (phase control is applied after 2.6 m5 eC has elapsed). When the zero-cross detection means 1 detects the zero-cross point of the commercial power supply 9 and outputs a pulse (Fig. 2 (a)),
Timer buffer 4 outputs the stored value to binary counter 3. At the same time, the binary counter 3 turns off the output section 5 and then starts counting the output pulses of the oscillator 2. The oscillation frequency of the oscillator 2, together with the resistor 7 and capacitor 8, is 1/(60Hz x 2 x 256) - 30, 7kHz.
Let it be z. Since the binary counter 3 is set to 176 as an initial value, when 80 pulses are input from the oscillator 2, the count value of the binary counter 3 becomes 256, which is the end of counting, and the output section 5 is turned on. Then, the bidirectional control element 17 is turned on via the resistor 18, and voltage is applied to the motor 19. This series of operations is repeated every time the zero-cross detection means 1 detects a zero-cross point, and phase control of the motor 19 is realized.

なお、本実施例では掃除機の吸い込み用モータの制御に
使用した例について説明を行っているが、その他モータ
やヒータ等の位相制御に用いると同様の効果が得られる
のはいうまでもない。
In this embodiment, an example in which the present invention is used to control the suction motor of a vacuum cleaner is explained, but it goes without saying that the same effect can be obtained when the present invention is used to control the phase of other motors, heaters, etc.

発明の効果 以上の説明から明らかなように、本発明では掃除機の吸
い込み風量が変更された時のみ、位相制御の設定値をプ
ログラムにより操作し、それ以外ではプログラムに関係
なく位相制御が可能になり、プログラム設計が簡単にな
るマイクロコンピュータを提供できる。
Effects of the Invention As is clear from the above explanation, in the present invention, the phase control set value is manipulated by the program only when the suction air volume of the vacuum cleaner is changed, and otherwise the phase control is possible regardless of the program. This makes it possible to provide a microcomputer that makes program design easier.

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

第1図は、本発明の一実施例を示すブロック図、第2図
は位相制御と吸い込み風量の関係を示す図、第3図は、
従来のプログラムによる位相制御を実現したフローチャ
ートである。 1・・・ゼロクロス検出手段、2・・・発振器、3・・
・バイナリカウンタ、4・・・タイマーバッファ。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing the relationship between phase control and suction air volume, and FIG.
2 is a flowchart that realizes phase control using a conventional program. 1... Zero cross detection means, 2... Oscillator, 3...
・Binary counter, 4...Timer buffer.

Claims (1)

【特許請求の範囲】[Claims] 商用電源のゼロクロス点を検出し信号を出力するゼロク
ロス検出手段と、発振器と、前記ゼロクロス検出手段か
ら信号が出力された時点から、前記発振器の出力のカウ
ントを開始するバイナリカウンタと、このバイナリカウ
ンタのカウント初期、値を格納し、前記ゼロクロス検出
手段から信号が出力された時にこの格納された値を出力
するタイマーバッファと、前記バイナリカウンタのカウ
ント終了で信号を出力する出力部からなるマイクロコン
ピュータ。
a zero-crossing detection means for detecting a zero-crossing point of a commercial power supply and outputting a signal; an oscillator; a binary counter that starts counting the output of the oscillator from the time when a signal is output from the zero-crossing detection means; A microcomputer comprising: a timer buffer that stores a value at the initial stage of counting and outputs the stored value when a signal is output from the zero-cross detection means; and an output section that outputs a signal when the binary counter finishes counting.
JP1259210A 1989-10-03 1989-10-03 Microcomputer Pending JPH03124295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1259210A JPH03124295A (en) 1989-10-03 1989-10-03 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1259210A JPH03124295A (en) 1989-10-03 1989-10-03 Microcomputer

Publications (1)

Publication Number Publication Date
JPH03124295A true JPH03124295A (en) 1991-05-27

Family

ID=17330924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1259210A Pending JPH03124295A (en) 1989-10-03 1989-10-03 Microcomputer

Country Status (1)

Country Link
JP (1) JPH03124295A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54147413A (en) * 1978-05-10 1979-11-17 Koyo Seiko Co Motor speed controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54147413A (en) * 1978-05-10 1979-11-17 Koyo Seiko Co Motor speed controller

Similar Documents

Publication Publication Date Title
JP2001231287A (en) Dc brushless motor system
JPH03124295A (en) Microcomputer
JP2000116183A (en) Drive for switched reluctance motor
JPH0670594A (en) Fan motor controller for air conditioner
JPH07274584A (en) Driving apparatus for commutatorless dc motor
JP3305173B2 (en) Control device for brushless motor
JPH0591790A (en) Brushless motor
JPH08147064A (en) Intermittent operating circuit
JPS62289012A (en) Duty control pulse generating circuit
JPS61167395A (en) Power source switching driving system
JP2708779B2 (en) AC load power control device
JPH0356074A (en) Pulse width modulating invertor device
JPS61240868A (en) Controller of synchronous motor
JPS61293191A (en) Brushless motor driving device
JPH06197585A (en) Speed controller
JPH05284700A (en) Motor
JPH0124036B2 (en)
JPS62281784A (en) Control unit for copying machine
JPH10254559A (en) Phase control circuit
JPH0434582Y2 (en)
JPS63245298A (en) Inductive load drive circuit
JP2573941B2 (en) Control device for electrical equipment
JPH05122968A (en) Controller for motor
JPH0746914B2 (en) Brushless DC motor drive
JPS62131756A (en) Triac controller