JPH0215146Y2 - - Google Patents
Info
- Publication number
- JPH0215146Y2 JPH0215146Y2 JP1982109567U JP10956782U JPH0215146Y2 JP H0215146 Y2 JPH0215146 Y2 JP H0215146Y2 JP 1982109567 U JP1982109567 U JP 1982109567U JP 10956782 U JP10956782 U JP 10956782U JP H0215146 Y2 JPH0215146 Y2 JP H0215146Y2
- Authority
- JP
- Japan
- Prior art keywords
- voltage
- microcomputer
- power
- circuit
- turned
- 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
Links
Landscapes
- Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
- Power Sources (AREA)
- Control By Computers (AREA)
- Electronic Switches (AREA)
Description
【考案の詳細な説明】
(イ) 考案の分野
本考案は、制御部にマイクロコンピユータが使
用される自動販売機等の機器に適用する負荷(モ
ータ等)の制御装置に関する。[Detailed Description of the Invention] (a) Field of the Invention The present invention relates to a control device for a load (such as a motor) applied to equipment such as a vending machine in which a microcomputer is used in the control section.
(ロ) 背景
マイクロコンピユータは電源の投入により電源
電圧(一般に5V)が安定して供給されてからも、
内部の発振が安定して初期状態にセツトされない
うちは正常な動作とならない。そのため従来より
マイクロコンピユータのリセツト端子に充電回路
を接続し電源投入にて急峻に立上がる電源電圧を
遅延させ、電圧がスレツシヨルドに達するまでリ
セツトするように構成されている。このとき充電
回路の時定数はマイクロコンピユータが規定電圧
を供給されてから安定状態へ移行するのに充分な
時間が確保されるように設定するものである。し
かしながら一般にマイクロコンピユータはリセツ
ト状態でI/Oポートに高レベル「H」・低レベ
ル「L」の何れを出力するのか不定であつたり、
または規定されているものの多くは「H」を出力
するようになつている。そのためマイクロコンピ
ユータのリセツトが解除されてもプログラムに沿
つて、入出力ポートが初期状態にセツトされるま
での極めて僅かな期間でI/Oポートより「H」
が出力されることになる。そしてマイクロコンピ
ユータにより直流モータやソレノイドが制御され
る機器にあつてはモータ等のドライバICはダー
リントントランジスタアレイで構成されるのが一
般的なため、マイクロコンピユータのリセツト解
除後の僅かな期間でI/Oポートより「H」が生
じるとドライバICは「L」となつて、これら駆
動装置が瞬間的に誤動作することになる。(b) Background Even after a microcomputer is supplied with a stable power supply voltage (generally 5V) when the power is turned on,
Normal operation will not occur until the internal oscillation is stabilized and set to the initial state. For this reason, a charging circuit has conventionally been connected to the reset terminal of a microcomputer to delay the sudden rise of the power supply voltage when the power is turned on, and to reset the microcomputer until the voltage reaches a threshold. At this time, the time constant of the charging circuit is set so that sufficient time is secured for the microcomputer to shift to a stable state after being supplied with the specified voltage. However, in general, it is uncertain whether a microcomputer outputs a high level "H" or a low level "L" to an I/O port in a reset state.
Or, most of the prescribed ones are designed to output "H". Therefore, even after the reset of the microcomputer is released, the I/O port will go "H" in a very short period of time until the I/O port is set to the initial state according to the program.
will be output. In devices where a DC motor or solenoid is controlled by a microcomputer, the driver IC for the motor, etc. is generally configured with a Darlington transistor array. When "H" is generated from the O port, the driver IC becomes "L", causing these drive devices to malfunction momentarily.
例えば自動販売機に於いては、マイクロコンピ
ユータは投入金額演算・商品の販売可否判定・釣
銭演算等を行い販売動作に応じてモータまたはソ
レノイドを制御するようになつている。したがつ
て上記のごとき誤動作が発生すると釣銭または物
品が払出されたり、或いはモータの停止位置が瞬
間の動作にて待機位置より外れると次にモータに
駆動信号を出力しても動作せず釣銭または物品が
払出されない事態を招いていた。 For example, in a vending machine, a microcomputer calculates the amount of money inserted, determines whether a product can be sold, calculates change, etc., and controls a motor or solenoid in accordance with the vending operation. Therefore, if a malfunction like the one described above occurs, the change or goods will be dispensed, or if the motor's stop position moves out of the standby position due to an instantaneous movement, the next time a drive signal is output to the motor, it will not operate and the change or item will be dispensed. This resulted in a situation where the goods were not delivered.
(ハ) 考案の目的
上記点より本考案は2つの電圧検出回路を有し
低い方の電圧検知出力でマイクロコンピユータの
リセツトを制御すると共に、高い方の電圧検知出
力にてモータ若しくはソレノイド等の駆動装置の
電源を制御することで、マイクロコンピユータが
初期状態にセツトされた後に駆動装置が動作可能
となるようにすることで電源ON時の誤動作を防
止せんとするものである。(c) Purpose of the invention Based on the above points, the present invention has two voltage detection circuits, and the lower voltage detection output controls the reset of the microcomputer, and the higher voltage detection output drives a motor or solenoid, etc. By controlling the power supply of the device, the drive device is enabled to operate after the microcomputer is set to its initial state, thereby preventing malfunctions when the power is turned on.
(ニ) 考案の実施例
第1図は本考案に依る回路を示し、電源端子7
より供給される直流電源はレギユレータ8により
24Vに安定化され、更に後段のレギユレータ9に
より5Vに安定化される。そしてレギユレータ8
の出力側は自己バイアスされたトランジスタ10
を通してモータ2及びソレノイド3に接続され、
レギユレータ9の出力側はマイクロコンピユータ
1の電源供給端子VDDに接続されている。また、
レギユレータ8の出力側には抵抗R1及びコンデ
ンサCとからなる積分回路4が接続されて、電圧
検出回路であるコンパレータ5の(+)入力端子
は積分回路4の点Aの電圧が抵抗R2,R3とによ
り分割されて印加され、コンパレータ6の(+)
入力端子は点Aの電圧が抵抗R4,R5とにより分
割されて印加される。このとき抵抗R2,R3,R4,
R5の値はD点電位VDがE点電位VEより大さくな
るように設定されている。そしてコンパレータ
5,6の(−)入力端子にはツエナーダイオード
10によるツエナー電圧が印加されている。更に
コンパレータ5の出力端はマイクロコンピユータ
1のリセツト端子Rに接続されており、コンパレ
ータ6の出力端はトランジスタ10のベースとコ
レクタで接続されるトランジスタ11のベースに
接続されている。一方マイクロコンピユータ1の
I/Oボートは夫々ダーリントントランジスタア
レイ12,13によるドライバICを通してモー
タ2及びソレノイド3に接続されている。(d) Embodiment of the invention Figure 1 shows a circuit according to the invention, in which the power supply terminal 7
The DC power supplied by the regulator 8 is
It is stabilized at 24V, and further stabilized at 5V by the regulator 9 at the subsequent stage. and regulator 8
The output side of is a self-biased transistor 10
connected to motor 2 and solenoid 3 through
The output side of the regulator 9 is connected to the power supply terminal VDD of the microcomputer 1. Also,
An integrating circuit 4 consisting of a resistor R 1 and a capacitor C is connected to the output side of the regulator 8, and the voltage at point A of the integrating circuit 4 is connected to the (+) input terminal of a comparator 5 which is a voltage detection circuit . , R 3 and is applied to the (+) of comparator 6.
The voltage at point A is divided by resistors R 4 and R 5 and applied to the input terminal. At this time, the resistances R 2 , R 3 , R 4 ,
The value of R 5 is set so that the potential at point D V D is greater than the potential at point E VE . A Zener voltage from a Zener diode 10 is applied to the (-) input terminals of the comparators 5 and 6. Further, the output terminal of the comparator 5 is connected to the reset terminal R of the microcomputer 1, and the output terminal of the comparator 6 is connected to the base of a transistor 11 whose collector is connected to the base of a transistor 10. On the other hand, the I/O boat of the microcomputer 1 is connected to the motor 2 and the solenoid 3 through driver ICs formed by Darlington transistor arrays 12 and 13, respectively.
上記構成に依る動作を第2図の波形図で説明す
る。先ず電源端子7に直流電源が供給されるとB
点電位VBは24Vに向けて急峻に立上がり、コン
パレータ5及び6は電源が供給され且つ、夫々の
(−)入力端子にはツエナー電圧VZが印加され
る。一方、C点電位VCも5Vに向けて急峻に立上
がりマイクロコンピユータ1にも電源が供給され
る。しかしながらA点電位VAはコンデンサC及
び抵抗R1との時定数により徐々に上昇する。そ
してD点電位VD及びE点電位VEも夫々VAR3/R2
+R3・VAR5/R4+R5に向けて徐々に上昇する
が、D点電位VDがツエナー電圧VZを上回るとコ
ンパレータ5より「H」出力が発生する。したが
つてリセツト状態にあるマイクロコンピユータ1
は、リセツト端子Rに「H」が入力するためにリ
セツト状態を解除する。しかる後、E点電位VE
がツエナー電圧VZを上回ると、コンパレータ6
より「H」出力が発生し、トランジスタ11はベ
ースにVCCが印加されてONするために、トラン
ジスタ10がONしてモータ2及びソレノイド3
には24Vの電源電圧VSが供給され、マイクロコン
ピユータ1のI/Oポートより「H」が出力され
るとモータ2及びソレノイド3は駆動することが
できる。しかしながら電源投入時にマイクロコン
ピユータ1のリセツト解除より若干遅れて駆動装
置には電源が供給されており、この時点ではマイ
クロコンピユータ1は正常動作して各入出力ポー
トI/Oの初期セツトは完了しているために瞬間
的な誤動作を発生しない。 The operation according to the above configuration will be explained with reference to the waveform diagram in FIG. 2. First, when DC power is supplied to power terminal 7, B
The point potential V B rises steeply toward 24 V, power is supplied to the comparators 5 and 6, and the Zener voltage V Z is applied to each (-) input terminal. On the other hand, the potential at point C also rises sharply toward 5V, and power is also supplied to the microcomputer 1. However, the A point potential V A gradually increases due to the time constant of the capacitor C and the resistor R 1 . The potential at point D and the potential at point E are also V A R 3 /R 2 respectively.
+R 3 ·V A R 5 /R 4 It gradually increases toward +R 5 , but when the D point potential V D exceeds the Zener voltage V Z , the comparator 5 generates an “H” output. Therefore, the microcomputer 1 in the reset state
Since "H" is input to the reset terminal R, the reset state is released. After that, the E point potential V E
exceeds the Zener voltage V Z , comparator 6
"H" output is generated, and V CC is applied to the base of transistor 11, which turns it on, so transistor 10 turns on, and motor 2 and solenoid 3
is supplied with a power supply voltage V S of 24V, and when "H" is output from the I/O port of the microcomputer 1, the motor 2 and solenoid 3 can be driven. However, when the power is turned on, power is supplied to the drive device with a slight delay after the reset of the microcomputer 1 is released, and at this point, the microcomputer 1 is operating normally and the initial setting of each input/output port I/O has been completed. Therefore, momentary malfunctions do not occur.
しかして電源端子7への直流電源の供給が停止
されるとVBは急速に下降し、且つコンデンサC
はダイオード14を通し、瞬時に放電するため
に、VAもVBに追随して急激に低下する。したが
つて先ずVEがVZよりコンパレータ6のヒステリ
シス分の電圧を引いた値以下となつてコンパレー
タ6は「L」を出力するために、トランジスタ1
1はOFFし且つトランジスタ10もOFFしてモ
ータ2及びソレノイド3への供給電源VSは停止
される。次にVDがVZよりコンパレータ5のヒス
テリシス分の電圧を引いた値以下となつてコンパ
レータ5が「L」を出力すると、マイクロコンピ
ユータ1はリセツト状態となる。したがつて電源
OFF時については、マイクロコンピユータ1に
リセツトがかかつて各I/Oポートの出力が不定
若しくは「H」出力を生ずる前に既に駆動装置へ
の給電が停止されており、電源OFFに伴う駆動
装置の誤動作も防止される。 However, when the supply of DC power to the power supply terminal 7 is stopped, V B rapidly decreases and the capacitor C
is instantaneously discharged through the diode 14, so that V A follows V B and drops rapidly. Therefore, first, V E becomes less than the value obtained by subtracting the voltage for the hysteresis of comparator 6 from V Z , and comparator 6 outputs "L", so transistor 1
1 is turned off, transistor 10 is also turned off, and power supply V S to motor 2 and solenoid 3 is stopped. Next, when V D becomes less than the value obtained by subtracting the hysteresis voltage of comparator 5 from V Z and comparator 5 outputs "L", microcomputer 1 enters the reset state. Therefore the power supply
When the power is OFF, the power supply to the drive device has already been stopped before the microcomputer 1 is reset and the output of each I/O port becomes unstable or "H" output. Malfunctions are also prevented.
(ホ) 効果
本考案に依ると、高低2つの電圧検出回路を具
備して電源投入にて徐々に積分回路の電圧が上昇
すると、先ず低い方の電圧検出力にてマイクロコ
ンピユータのリセツトを解除し、次に高い方の電
圧検知出力にて駆動装置の給電を制御するために
電源ON時におけるマイクロコンピユータのI/
Oポートの不定出力にて駆動装置が誤動作するこ
とが防止される。しかも電源OFF時については
高い方の電圧検知出力に基づき先ず駆動装置への
給電が停止されるために、電源OFF時における
駆動装置の誤動作も防止できる。(e) Effects According to the present invention, when the voltage detection circuit is equipped with two high and low voltage detection circuits and the voltage of the integrating circuit gradually increases when the power is turned on, the reset of the microcomputer is first canceled using the lower voltage detection power. , the I/O of the microcomputer when the power is turned on in order to control the power supply to the drive device using the next higher voltage detection output.
This prevents the drive device from malfunctioning due to an undefined output from the O port. Furthermore, when the power is turned off, the power supply to the drive device is first stopped based on the higher voltage detection output, so malfunction of the drive device when the power is turned off can be prevented.
第1図は本考案に依る制御装置の実施例を示
し、第2図は動作を示す電圧波形図である。
1……マイクロコンピユータ、2……モータ、
3……ソレノイド、4……積分回路、5……第1
電圧検出回路、6……第2電圧検出回路。
FIG. 1 shows an embodiment of the control device according to the present invention, and FIG. 2 is a voltage waveform diagram showing the operation. 1...Microcomputer, 2...Motor,
3...Solenoid, 4...Integrator circuit, 5...First
Voltage detection circuit, 6... second voltage detection circuit.
Claims (1)
このマイクロコンピユータにて制御される駆動装
置を接続した機器において、電源投入により徐々
に電圧が上昇する積分回路と、電源遮断により該
積分回路の電圧を急速に低下させる放電素子と、
前記積分回路の電圧が第1の所定レベル以下の範
囲にあると前記マイクロコンピユータをリセツト
状態に保持するとともに、この電圧が第1の所定
レベルを上回るとリセツト状態を解除する第1電
圧検出回路と、前記積分回路の電圧が前記第1の
所定レベルより高い第2の所定レベルを越える範
囲にあると前記駆動装置への給電を許容する第2
電圧検出回路とから成る制御装置。 In equipment that has a microcomputer and a drive device controlled by the microcomputer connected to the same power line, the voltage of the integrating circuit gradually increases when the power is turned on, and the voltage of the integrating circuit rapidly decreases when the power is turned off. a discharge element;
a first voltage detection circuit that holds the microcomputer in a reset state when the voltage of the integration circuit is within a range below a first predetermined level, and releases the reset state when the voltage exceeds the first predetermined level; , a second circuit that allows power to be supplied to the drive device when the voltage of the integrating circuit exceeds a second predetermined level that is higher than the first predetermined level;
A control device consisting of a voltage detection circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10956782U JPS5915130U (en) | 1982-07-19 | 1982-07-19 | Control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10956782U JPS5915130U (en) | 1982-07-19 | 1982-07-19 | Control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS5915130U JPS5915130U (en) | 1984-01-30 |
JPH0215146Y2 true JPH0215146Y2 (en) | 1990-04-24 |
Family
ID=30255175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10956782U Granted JPS5915130U (en) | 1982-07-19 | 1982-07-19 | Control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5915130U (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4224539A (en) * | 1978-09-05 | 1980-09-23 | Motorola, Inc. | FET Voltage level detecting circuit |
JPS5569826A (en) * | 1978-11-20 | 1980-05-26 | Ricoh Co Ltd | Sequential control method for power closing |
JPS5771027A (en) * | 1980-10-21 | 1982-05-01 | Fujitsu Ten Ltd | Resetting circuit of microprocessor |
-
1982
- 1982-07-19 JP JP10956782U patent/JPS5915130U/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS5915130U (en) | 1984-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0008509B1 (en) | Control circuits for solenoids | |
US4433390A (en) | Power processing reset system for a microprocessor responding to sudden deregulation of a voltage | |
US5548204A (en) | Linear/switching regulator circuit | |
JPH0215146Y2 (en) | ||
US20030020441A1 (en) | Power supply circuit with continued power generation after switch turn-off | |
US4319173A (en) | Dual polarity fast discharge integrator apparatus | |
JPS594367Y2 (en) | Malfunction prevention device when vending machine power goes down | |
JPH0737376Y2 (en) | Load power supply switching circuit | |
JPH0719917Y2 (en) | Automotive power supply IC | |
JPH061424B2 (en) | System reset circuit | |
JPS605380Y2 (en) | Reset circuit to arithmetic unit | |
JPS626654Y2 (en) | ||
JPS622544Y2 (en) | ||
JP2730112B2 (en) | Power reset circuit in DC two-wire sensor | |
JPH0421232Y2 (en) | ||
KR930002080Y1 (en) | Driving circuit of solenoid for cardreader | |
JP2581038B2 (en) | Timer circuit | |
JP2507401Y2 (en) | Reset device for overload protection circuit | |
JPH0642767B2 (en) | System reset circuit | |
JPH0323808Y2 (en) | ||
JPH0313794Y2 (en) | ||
JP2993104B2 (en) | Peak detection circuit | |
JPH0726735Y2 (en) | Power supply circuit | |
JPH054022Y2 (en) | ||
JPS5937868Y2 (en) | reset circuit |