JPS6378213A - Cpu resetting system - Google Patents

Cpu resetting system

Info

Publication number
JPS6378213A
JPS6378213A JP61222962A JP22296286A JPS6378213A JP S6378213 A JPS6378213 A JP S6378213A JP 61222962 A JP61222962 A JP 61222962A JP 22296286 A JP22296286 A JP 22296286A JP S6378213 A JPS6378213 A JP S6378213A
Authority
JP
Japan
Prior art keywords
circuit
reset
output
level
signal
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
Application number
JP61222962A
Other languages
Japanese (ja)
Other versions
JPH0439693B2 (en
Inventor
Masashi Toyoda
真史 豊田
Hiroshi Fujita
浩 藤田
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP61222962A priority Critical patent/JPS6378213A/en
Publication of JPS6378213A publication Critical patent/JPS6378213A/en
Publication of JPH0439693B2 publication Critical patent/JPH0439693B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To scale down a device and to reduce its cost by providing a trapezoidal wave generator circuit, a DC power source circuit and two AND circuits so as to constitute a resetting control circuit. CONSTITUTION:The trapezoidal wave generator circuit 4 generates a trapezoidal wave if an AC signal dropping a commercial power source exceeds a prescribed voltage. The DC power source circuit 5 generates a DC voltage signal if a power source voltage is impressed to a CPU1. A resistance R1 and a capacitor C2 delay the output signal of the circuit 5. When the output signal CH1 of the delay circuit is at a level H and the output trapezoidal wave ANin of the circuit 4 is at a level H, the output of a NAND gate NAND1 comes to a level L. Accordingly, the output of a NAND gate NAND2 becomes a level H, and the reset CPU1 is released. When the CPU1 starts executing, an output CPUOUT is made at a level H. Then the output of an inverter I comes to a level L, which leads the output of the NAND2 at a level H. Consequently, the resetting release state is maintained.

Description

【発明の詳細な説明】 (a)産業上の利用分野 この発明はCPUの電源オン・オフなどに伴い、cpu
のリセット制御を行うCPUリセットシステムに関する
DETAILED DESCRIPTION OF THE INVENTION (a) Industrial Application Field This invention is applicable to
The present invention relates to a CPU reset system that performs reset control.

山)発明の概要 この発明に係るCPUリセットシステムは、リセット解
除後所定のプログラムを実行するCPUに対し、リセッ
ト信号の発生および解除を行うリセット制御回路を備え
るものであり、電源のオン・オフ直後などの電源が不安
定な状態においてCPUをリセットすることによりCP
Uが誤動作しないように制御する。
The CPU reset system according to the present invention includes a reset control circuit that generates and releases a reset signal for a CPU that executes a predetermined program after the reset is released, and immediately after the power is turned on and off. By resetting the CPU in situations where the power supply is unstable, such as
Control to prevent U from malfunctioning.

この発明は特に、CPUの動作可能な状態でのみリセッ
ト状態を解除し、cpuの誤動作を確実に防止するもの
である。
In particular, the present invention is intended to release the reset state only when the CPU is in an operable state, thereby reliably preventing malfunction of the CPU.

(C)従来の技術 マイクロプロセッサなどからなるC I) Uを用いた
システムにおいて、電源の立ち上がり時にcPUに対し
てリセット信号を発生し、電源電圧が安定した後リセッ
トを解除するリセット制御回路が備えられている。この
ようなリセット制御回路は、従来、電源電圧の変動やC
PUが安定して動作する電圧の領域などをチェックする
回路が設けられていて、全体の回路は非常に複雑であっ
た。勿論、電源の立ち上がり時にCPUに対して一定時
間だけリセット信号を発生するだけの回路であれば、簡
単なCL時定数回路によってリセット制御回路を構成す
ることができるが、外来雑音や電源スィッチのチャタリ
ングなどに対しても安定したリセット動作を行う必要が
あった。
(C) Conventional technology A system using a CI (I) U consisting of a microprocessor, etc. is equipped with a reset control circuit that generates a reset signal to the cPU when the power is turned on, and releases the reset after the power supply voltage has stabilized. It is being Conventionally, such a reset control circuit has been designed to handle power supply voltage fluctuations and C
A circuit was provided to check the voltage range in which the PU operated stably, and the entire circuit was extremely complex. Of course, if the circuit only generates a reset signal to the CPU for a certain period of time when the power is turned on, the reset control circuit can be configured with a simple CL time constant circuit, but it will not be affected by external noise or chattering of the power switch. It was also necessary to perform a stable reset operation for such situations.

(d)発明が解決しようとする問題点 ところが、このような従来のリセット制御回路は多数の
電子部品を用いて回路が構成されているため、回路基板
の占有率が比較的高く、小型の電子機器に用いることが
困難であった。また、装置全体のコストダウンを阻む原
因の一つでもあった。この発明は、このような従来の問
題点を解除して、少ない電子部品によって回路を構成し
、装置の小型化およびコストダウンを可能としたCPU
リセットシステムを提供することを目的としている。
(d) Problems to be Solved by the Invention However, since such conventional reset control circuits are configured using a large number of electronic components, the circuit board occupies a relatively high proportion, and small electronic components are used. It was difficult to use it in equipment. It was also one of the causes that hindered cost reduction of the entire device. This invention solves these conventional problems and provides a CPU that configures the circuit with fewer electronic components, making it possible to downsize the device and reduce costs.
The purpose is to provide a reset system.

(e)問題点を解決するための手段 この発明は、リセット解除後所定のプログラムを実行す
るCPUに対し、電源の立ち上がり時にリセット信号を
発生する手段を含み、電源が安定した後、リセットを解
除するリセット制<1td回路を備えるCPUリセット
システムにおいて、前記リセット制御回路に、商用電源
または商用電源を降圧した交流信号を全波整流し、一定
電圧にクランプして台形波を発生する台形波発生回路と
、商用電源から直流電圧信号を発生する直流電源回路と
、この直流電源回路の出力信号と前記台形波発生回路の
出力信号との論理積を求め、結果が論理1の時前記CP
 tJのリセットを解除する論理積回路と、を設けると
ともに、前記CPUにリセント解除後すセント解除状態
を維持するりセント解除信号を発生する手段を設けたこ
とを特徴とする。
(e) Means for Solving Problems This invention includes means for generating a reset signal when the power is turned on, to the CPU that executes a predetermined program after the reset is canceled, and after the power is stabilized, the reset is canceled. In a CPU reset system comprising a reset control<1td circuit, the reset control circuit includes a trapezoidal wave generation circuit that full-wave rectifies a commercial power supply or an AC signal obtained by stepping down the commercial power supply, clamps it to a constant voltage, and generates a trapezoidal wave. , a DC power supply circuit that generates a DC voltage signal from a commercial power supply, the output signal of this DC power supply circuit, and the output signal of the trapezoidal wave generation circuit, and when the result is logic 1, the CP
The present invention is characterized in that it is provided with an AND circuit for canceling the reset of tJ, and also provided with means for maintaining the cent cancellation state after the CPU is canceled or generating a cent cancellation signal.

(f)作用 以上の構成であれば、台形波発生回路は商用電源または
商用電源を降圧した交流信号が所定の電圧を越える時、
台形波を発生する。直流電源回路はCPUに電源電圧が
印加されているとき、直流電圧信号を発生する。さらに
、論理積回路は直流電源から直流電圧が発生していて、
かつ台形波が発生している条件で論理1を発生する。こ
の論理積回路が論理lの信号を発生することによりcp
Uのリセットを解除する。これにより、CPUは動作を
開始し、リセット解除状態を維持するリセット解除信号
を発生する。このことにより、電源がオフされるまでの
間、CPUはあらかじめ定められたプログラムによって
処理を行う。
(f) With the above-described configuration, the trapezoidal wave generating circuit generates a signal when the commercial power supply or the AC signal obtained by stepping down the commercial power supply exceeds a predetermined voltage.
Generates a trapezoidal wave. The DC power supply circuit generates a DC voltage signal when a power supply voltage is applied to the CPU. Furthermore, the AND circuit generates DC voltage from the DC power supply,
And a logic 1 is generated under the condition that a trapezoidal wave is generated. This AND circuit generates a logic I signal, so that cp
Cancel the reset of U. As a result, the CPU starts operating and generates a reset release signal that maintains the reset release state. As a result, the CPU performs processing according to a predetermined program until the power is turned off.

[g)実施例 第1図はこの発明の実施例であるCPしリセットシステ
ムの回路図、第2図はその各部の波形を表す図である。
[g) Embodiment FIG. 1 is a circuit diagram of a CP reset system according to an embodiment of the present invention, and FIG. 2 is a diagram showing waveforms of each part thereof.

第1図において符号4は台形波発生回路を表す。台形波
発生回路4は商用電源<AClooV)を降圧する電源
トランスTと、このトランスTの出力を全波整流するダ
イオードD1〜D4からなるダイオードブリッジDBと
、この全波整流された波形を一定電圧にクランプする抵
抗も4.ツェナーダイオードZDおよび台形波が発生さ
れていない時この回路の出力電位を“L”レベルにプル
ダウンする抵抗セ5から構成されている。
In FIG. 1, reference numeral 4 represents a trapezoidal wave generating circuit. The trapezoidal wave generation circuit 4 includes a power transformer T that steps down the commercial power source <AClooV), a diode bridge DB that includes diodes D1 to D4 that full-wave rectifies the output of the transformer T, and a diode bridge DB that converts the full-wave rectified waveform into a constant voltage. The resistance to be clamped to 4. It consists of a Zener diode ZD and a resistor SE5 that pulls down the output potential of this circuit to the "L" level when a trapezoidal wave is not generated.

第2図に示した波形F Wは前記全波整流回路の出力波
形を表し、波形ANinは台形波発生回路の出力回路を
表し、後述するcpuに供給されている。
The waveform FW shown in FIG. 2 represents the output waveform of the full-wave rectifier circuit, and the waveform ANin represents the output circuit of the trapezoidal wave generating circuit, which is supplied to the CPU described later.

第1図において符号5は直流電源回路を表し、前記全波
整流回路の出力電圧を安定化するレギュレーク回路3と
平滑用コンデンサCIから構成されている。第2図に示
した波形Vccはこの直流電源回路の出力電圧の波形を
表している。図に示すように、タイミングt。で電源が
オンされた後、平滑用コンデンサなどの遅延要素によっ
て一定時間遅れてtlのタイミングで電源電圧が安定化
する。この電源電圧は後述するcpu tを含むシステ
ム2の全体の電源として用いられろ。
In FIG. 1, reference numeral 5 represents a DC power supply circuit, which is comprised of a regulator circuit 3 for stabilizing the output voltage of the full-wave rectifier circuit and a smoothing capacitor CI. The waveform Vcc shown in FIG. 2 represents the waveform of the output voltage of this DC power supply circuit. As shown in the figure, timing t. After the power is turned on at , the power supply voltage is stabilized at the timing tl after a certain period of time delay due to delay elements such as smoothing capacitors. This power supply voltage will be used as a power supply for the entire system 2 including the CPU, which will be described later.

第1図において抵抗i1とコンテンツC2はC令時定数
回路を構成し、直流電源回路5の出力信号を遅延する。
In FIG. 1, the resistor i1 and the content C2 constitute a C order time constant circuit, which delays the output signal of the DC power supply circuit 5.

なおダイオードDはコンデンサCよび後述するNAND
ゲートの入力端子をプルダウンするために設けられてい
る。
Note that diode D is connected to capacitor C and NAND as described later.
Provided to pull down the input terminal of the gate.

第2図に示した波形CHIはこの遅延回路の出力信号を
表し、直流電源Vccの立ち上がりtlよりさらに遅れ
てt2のタイミングで″H″レベルとなる。
The waveform CHI shown in FIG. 2 represents the output signal of this delay circuit, and reaches the "H" level at timing t2, which is further delayed from the rising edge tl of the DC power supply Vcc.

N A N DゲートNAND 1は遅延回路の出力信
号CHIと前記台形波発生回路から出力されたANin
との論理積をとるゲートである。NAND2はNAND
Iから出力された信号とインバータIの出力信号との論
理積を求めるゲートであり、このゲートの出力信号はC
PUIのRE S E ’r倍信号して与えられる。第
2図に示すように遅延回路の出力信号CHIが“■1”
レベルでかつ台形波ANinが“l(”レベルのとき、
NAND 1の出力が“L″レベルなる(t2)。した
がってNAND2の出力は“H”レベルとなって、CP
U1はリセット解除状態となる。
The NAND gate NAND 1 receives the output signal CHI of the delay circuit and the ANin output from the trapezoidal wave generating circuit.
This is a gate that performs a logical product with. NAND2 is NAND
This gate calculates the AND of the signal output from I and the output signal of inverter I, and the output signal of this gate is C
The signal is given as the RESE 'r times the PUI. As shown in Figure 2, the output signal CHI of the delay circuit is "■1"
level and when the trapezoidal wave ANin is at “l(” level,
The output of NAND 1 becomes "L" level (t2). Therefore, the output of NAND2 becomes "H" level, and CP
U1 enters the reset release state.

CPUIはリセット解除状態となれば、予め定められた
プログラムに従って実行を開始する。CPUIが実行を
開始すれば、まず、CPU0UTを″H″レベルとする
。CPU0UTがH”レベルとなれば、第1図に示すよ
うにインバータIの出力はL”レベルとなって、NAN
D2の出力は“H″レベルなる。したがってゲー)NA
NDIの出力信号に係わらずリセット解除状態が維持さ
れる。なお、抵抗R3はインバータIの入力のプルダウ
ン用抵抗を表している。
When the CPUI enters the reset release state, it starts executing according to a predetermined program. When the CPUI starts execution, first, the CPU0UT is set to the "H" level. When CPU0UT becomes H" level, the output of inverter I becomes L" level as shown in Figure 1, and the NAN
The output of D2 becomes "H" level. Therefore, game) NA
The reset release state is maintained regardless of the output signal of NDI. Note that the resistor R3 represents a pull-down resistor for the input of the inverter I.

電源スィッチがオフされた場合や停電となった場合、第
2図に示すようにタイミングt4から台形波ANinが
発生されな(なり、一定時間後のt、でCPU0UTが
″L″レベルとなり、これに伴いRE S E Tが′
L″レベルとなる。その後、電源電圧Vccが立ち下が
る(t6)。
When the power switch is turned off or there is a power outage, the trapezoidal wave ANin is not generated from timing t4 as shown in Figure 2, and after a certain period of time at t, CPU0UT goes to the "L" level, and this Accordingly, RE S E T'
It becomes L'' level. Thereafter, the power supply voltage Vcc falls (t6).

第3図はCPUIの処理手順を表すフローチャートであ
る。前述のように動作を開始すると、信号CPU0UT
を“■]″レベルとする(nl)。
FIG. 3 is a flowchart showing the processing procedure of the CPUI. When the operation starts as described above, the signal CPU0UT
is set to "■]" level (nl).

具体的には出力ポートの対応するビットをセットする。Specifically, set the corresponding bit of the output port.

その後、所定の処理を行う(n3)。After that, predetermined processing is performed (n3).

このような処理を行う間に台形波AN i nをモニタ
をしている。すなわち、信号A N i nが“L”レ
ベルであれば、一定時間経過後にふただび信号ANin
の状態を判別する(n2−n4−n5)。信号ANin
が一定時間“L”レベルのままであれば、CPU0UT
を“L”レベルとする(n6)。このことにより、CP
Uは自らリセット状態として、動作を停止する。
While performing such processing, the trapezoidal wave AN i in is monitored. In other words, if the signal ANin is at the "L" level, the signal ANin is turned off again after a certain period of time has elapsed.
(n2-n4-n5). Signal ANin
If remains at “L” level for a certain period of time, CPU0UT
is set to "L" level (n6). By this, C.P.
U resets itself and stops operating.

(h1発明の効果 以上のようにこの発明によれば、電源電圧が安定したと
きCPUをリセット解除する回路を少ない回路で構成す
ることができるため基板面積の縮小およびコストダウン
が可能となる。
(h1 Effects of the Invention As described above, according to the present invention, the circuit for canceling the reset of the CPU when the power supply voltage becomes stable can be configured with a small number of circuits, thereby making it possible to reduce the board area and cost.

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

第1図はこの発明の実施例であるCPUリセットシステ
ムの回路図、第2図はその各部の波形を表す図、第3図
は前記CPUリセットシステムのCPUの処理手順を表
すフローチャートである。 1−CPU。 4一台形波発生回路、 5−直流電源回路、 NANDl−論理積回路。
FIG. 1 is a circuit diagram of a CPU reset system according to an embodiment of the present invention, FIG. 2 is a diagram showing waveforms of each part thereof, and FIG. 3 is a flowchart showing a processing procedure of the CPU of the CPU reset system. 1-CPU. 4 - Trapezoidal wave generation circuit, 5 - DC power supply circuit, NANDl - AND circuit.

Claims (1)

【特許請求の範囲】[Claims] (1)リセット解除後所定のプログラムを実行するCP
Uに対し、電源の立ち上がり時にリセット信号を発生す
る手段を含み、電源が安定した後、リセットを解除する
リセット制御回路を備えるCPUリセットシステムにお
いて、 前記リセット制御回路に、商用電源または商用電源を降
圧した交流信号を全波整流し、一定電圧にクランプして
台形波を発生する台形波発生回路と、商用電源から直流
電圧信号を発生する直流電源回路と、この直流電源回路
の出力信号と前記台形波発生回路の出力信号との論理積
を求め、結果が論理1の時前記CPUのリセットを解除
する論理積回路と、を設けるとともに、前記CPUにリ
セット解除後リセット解除状態を維持するリセット解除
信号を発生する手段を設けたことを特徴とするCPUリ
セットシステム。
(1) CP that executes a predetermined program after reset release
In a CPU reset system, the reset control circuit includes means for generating a reset signal when the power is turned on, and releases the reset after the power is stabilized, wherein the reset control circuit is provided with a commercial power source or a step-down source of the commercial power source. a trapezoidal wave generation circuit that full-wave rectifies the generated AC signal and clamps it to a constant voltage to generate a trapezoidal wave, a DC power supply circuit that generates a DC voltage signal from a commercial power supply, and an output signal of this DC power supply circuit and the trapezoidal wave. an AND circuit that calculates an AND with the output signal of the wave generation circuit and releases the reset of the CPU when the result is logical 1; and a reset release signal that maintains the reset release state of the CPU after the reset is released. A CPU reset system characterized by providing a means for generating.
JP61222962A 1986-09-20 1986-09-20 Cpu resetting system Granted JPS6378213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61222962A JPS6378213A (en) 1986-09-20 1986-09-20 Cpu resetting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61222962A JPS6378213A (en) 1986-09-20 1986-09-20 Cpu resetting system

Publications (2)

Publication Number Publication Date
JPS6378213A true JPS6378213A (en) 1988-04-08
JPH0439693B2 JPH0439693B2 (en) 1992-06-30

Family

ID=16790610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61222962A Granted JPS6378213A (en) 1986-09-20 1986-09-20 Cpu resetting system

Country Status (1)

Country Link
JP (1) JPS6378213A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005505872A (en) * 2001-10-11 2005-02-24 エノーシャン ゲゼルシャフト ミット ベシュレンクテル ハフツング Wireless sensor system
US9614553B2 (en) 2000-05-24 2017-04-04 Enocean Gmbh Energy self-sufficient radiofrequency transmitter

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5876931U (en) * 1981-11-13 1983-05-24 三洋電機株式会社 Non-volatile memory power supply control circuit
JPS58204724A (en) * 1982-05-24 1983-11-29 三菱電機株式会社 Instantaneous power interruption detecting circuit
JPS59146349A (en) * 1983-02-09 1984-08-22 Kubota Ltd Automatic reset system of microcomputer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5876931U (en) * 1981-11-13 1983-05-24 三洋電機株式会社 Non-volatile memory power supply control circuit
JPS58204724A (en) * 1982-05-24 1983-11-29 三菱電機株式会社 Instantaneous power interruption detecting circuit
JPS59146349A (en) * 1983-02-09 1984-08-22 Kubota Ltd Automatic reset system of microcomputer

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9614553B2 (en) 2000-05-24 2017-04-04 Enocean Gmbh Energy self-sufficient radiofrequency transmitter
US9887711B2 (en) 2000-05-24 2018-02-06 Enocean Gmbh Energy self-sufficient radiofrequency transmitter
JP2005505872A (en) * 2001-10-11 2005-02-24 エノーシャン ゲゼルシャフト ミット ベシュレンクテル ハフツング Wireless sensor system
JP4824277B2 (en) * 2001-10-11 2011-11-30 エノーシャン ゲゼルシャフト ミット ベシュレンクテル ハフツング Wireless sensor system

Also Published As

Publication number Publication date
JPH0439693B2 (en) 1992-06-30

Similar Documents

Publication Publication Date Title
US9660534B2 (en) Control circuit for multiphase switching converter to reduce overshoot and associated control method
US20040003027A1 (en) Debug interface for an event timer apparatus
WO2020034775A1 (en) Power-up time sequence control circuit and electronic device
JPS6019220A (en) Microcomputer
JPH06100947B2 (en) Power control circuit
US5321734A (en) Frequency multiplier
JPS6378213A (en) Cpu resetting system
JPH07325638A (en) Circuit for detection of level of power-supply voltage and method for discrimination of power supply
JP3230502B2 (en) Voltage detection circuit
JP2857442B2 (en) Power supply low voltage detector
JPH0537254Y2 (en)
KR0148528B1 (en) Microcontroller
JPH11220871A (en) Power supply device
JPS63250743A (en) Test mode setting system
JPS6246318A (en) Logical integrated circuit equipped with oscillating circuit
JPS6035822A (en) Malfunction preventing circuit of control circuit
JPS6120077B2 (en)
JPS6386007A (en) Power-down/reset signal generating circuit for microcomputer
JPS55146553A (en) Controlling circuit of program of microcomputer
JP2830216B2 (en) Standby circuit
JPH01223521A (en) Large scale integrated circuit
JPH047616A (en) Electronic equipment
JPS605378Y2 (en) reset device
JP2580673B2 (en) Power control device
KR930011423A (en) Microprocessor reset circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees