KR19980016446A - Power failure detection method - Google Patents

Power failure detection method Download PDF

Info

Publication number
KR19980016446A
KR19980016446A KR1019960036037A KR19960036037A KR19980016446A KR 19980016446 A KR19980016446 A KR 19980016446A KR 1019960036037 A KR1019960036037 A KR 1019960036037A KR 19960036037 A KR19960036037 A KR 19960036037A KR 19980016446 A KR19980016446 A KR 19980016446A
Authority
KR
South Korea
Prior art keywords
power failure
port
power
predetermined
microcomputer
Prior art date
Application number
KR1019960036037A
Other languages
Korean (ko)
Inventor
임중환
Original Assignee
배순훈
대우전자주식회사
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 배순훈, 대우전자주식회사 filed Critical 배순훈
Priority to KR1019960036037A priority Critical patent/KR19980016446A/en
Publication of KR19980016446A publication Critical patent/KR19980016446A/en

Links

Abstract

본 발명은 정전검출 방법에 관한 것으로, 전원제공부로부터의 소정전압이 제2다이오드(D2)를 거쳐 마이컴의 A포트를 통해 A/D변환용 전압으로 제공되고, 전원제공부로부터 소정전압이 제3다이오드(D3)를 통해 마이컴의 A/D 포트인 B포트로 제공되어 A/D 변환되는데, 이때 A/D 변환된 소정전압이 4.5V 이하이면, 제1콘덴서(C1)에 충전된 소정전원에 의하여 정전보상된 다음, 정전모드가 수행되고, 일반포트를 통해 소정시간(2초) 이상 하이레벨신호가 입력되면 정전보귀모드가 수행되므로써, 정전검출을 위한 리셋IC 없이 마이컴 내의 A/D포트를 이용하여 정전을 검출할 수 있으므로, 제조원가를 절감시킬 수 있을 뿐만 아니라 구조를 간소화할 수 있도록 한 것이다.The present invention relates to a method for detecting a power failure, wherein a predetermined voltage from a power supply unit is provided as an A / D conversion voltage through the A port of the microcomputer via the second diode D2, and a predetermined voltage is supplied from the power supply unit. The A / D conversion is provided to the B port, which is the A / D port of the microcomputer, through the three diodes D3. In this case, when the A / D converted predetermined voltage is 4.5 V or less, the predetermined power charged in the first capacitor C1. After the power failure is compensated for, the power failure mode is executed, and when the high level signal is input through the general port for more than a predetermined time (2 seconds), the power failure mode is performed, and thus the A / D port in the microcomputer without the reset IC for power failure detection Since the power failure can be detected by using, the manufacturing cost can be reduced as well as the structure can be simplified.

Description

정전검출 방법Power failure detection method

본 발명은 정전검출 방법에 관한 것으로, 특히 입력되는 외부전원의 정전을 검출하여 정전보상 및 정전복귀를 할 수 있는 데에 적합한 정전검출 방법에 관한 것이다.The present invention relates to a power failure detection method, and more particularly, to a power failure detection method suitable for detecting a power failure of an input external power supply and performing power failure compensation and power failure recovery.

도 3은 종래의 전형적인 정전검출 장치의 개략적인 블럭구성도로서, 전원제공부(310), 제1다이오드(D1), 제2다이오드(D2), 제1콘덴서(C1), 리셋부(320) 및 마이컴(330)으로 구성된다.FIG. 3 is a schematic block diagram of a typical electrostatic detection device, and includes a power supply unit 310, a first diode D1, a second diode D2, a first capacitor C1, and a reset unit 320. And a microcomputer 330.

도 3을 참조하면 알 수 있듯이, 외부로부터 제공되는 외부전원이 전원제공부(9310)를 통해 소정전압(예를 들면, 5.8V)으로 강압되어 제1다이오드(D1)를 통해 마이컴(330)의 C포트로 제공되고, 이때 소정용량(0.1F)을 갖는 제1콘덴서(C1)에 소정전원이 충전되는데, 제1콘덴서(C1)에 충전된 소정전원은 정전시에 마이컴(330)이 정전보상을 위해 필요한 전원이다,Referring to FIG. 3, the external power provided from the outside is stepped down to a predetermined voltage (for example, 5.8 V) through the power supply unit 9310, and thus the microcomputer 330 of the microcomputer 330 is provided through the first diode D1. Provided to the C port, the predetermined power is charged to the first capacitor (C1) having a predetermined capacity (0.1F), the predetermined power charged in the first capacitor (C1) is compensated by the microcomputer 330 at the time of power failure Is the power required for

한편, 전원제공부(310)로부터 소정전원(5.8V)이 제2다이오드(D2)를 통해 리셋IC(Integerated Circiut, 320)로 제공되는데, 정전시에 리셋IC(320)로 제공되는 소정전압(5.8V)이 기준전압(예를 들면, 4.5V) 이하로 전압강하되면 리셋IC(320)로부터 정전신호가 마이컴(330)의 D포트로 제공되고, 제1콘덴서(C1)에 충전되어 있는 소정전원을 이용한 마이컴(330)의 제어신호에 의거하여 정전보상(예를 들면, 현재 진행중인 프로그램의 각 어드레스 저장 등)이 수행된다.On the other hand, a predetermined power (5.8V) is provided from the power supply unit 310 to the reset IC (Integerated Circiut, 320) through the second diode (D2), the predetermined voltage provided to the reset IC (320) in case of power failure 5.8V) drops below a reference voltage (e.g., 4.5V), a blackout signal is provided from the reset IC 320 to the D port of the microcomputer 330, and is charged in the first capacitor C1. Power failure compensation (for example, storing each address of a program currently in progress) is performed based on the control signal of the microcomputer 330 using the power source.

다음에, 외부전원이 전원제공부(310)로 다시 제공되어 제2다이오드(D2)를 통해 리셋IC(320)로 기준전압(4.5V) 이상이 제공되면, 리셋IC(320)로부터 리셋신호가 마이컴(330)의 D포트로 제공되어, 전원제공부(310)로부터 제1다이오드(D1)를 통해 제공되는 소정전원(5.8V)을 이용한 마이컴(330)의 제어신호에 의거하여 정전복귀가 수행된다.Next, when the external power is supplied back to the power supply unit 310 to provide the reset IC 320 with the reference voltage (4.5V) or more through the second diode D2, the reset signal is output from the reset IC 320. It is provided to the D port of the microcomputer 330, the power failure recovery is performed based on the control signal of the microcomputer 330 using a predetermined power (5.8V) provided from the power supply unit 310 through the first diode (D1). do.

그러나, 종래기술에 따른 전원검출 장치는 리셋IC(320)를 이용하여 전원제공부(310)로부터 제공되는 소정전압과 기준전압을 비교하므로써, 정전을 검출하기 때문에, 제조비용이 상승되고 구조적으로 복잡한 문제점이 있다.However, since the power detecting apparatus according to the prior art detects a power failure by comparing the predetermined voltage provided from the power supply unit 310 with the reference voltage using the reset IC 320, the manufacturing cost is increased and structural complexity is increased. There is a problem.

따라서, 본 발명은 상기와 바와 같은 종래기술의 문제점을 감안하여 안출한 것으로, 마이컴 내의 A/D(Analog To Digital)포트를 이용하여 정전을 검출할 수 있는 정전검출 방법을 제공하는 데에 그 목적이 있다.Accordingly, the present invention has been made in view of the problems of the prior art as described above, and an object thereof is to provide a method for detecting a power failure by using an A / D (Analog To Digital) port in a microcomputer. There is this.

상기 목적을 달성하기 이하여 본 발명은, 외부로부터 제공되는 전원의 정전을 검출하는 방법에 있어서, 전원제공수단으로부터 제공되는 소정전압을 지연수단을 통해 소정시간 동안 지연시키고, 상기 소정전압을 A/D포트를 통해 내부에 구비된 A/D변환수단에서 A/D변환한 다음, 정전에 상응하는 소정전압과 비교하는 제1단계와, 상기 제1단계에서의 비교결과, 상기 A/D변환된 소정전압이 상기 정전에 상응하는 소정전압 이하이면 상기 A/D 포트를 일반포트로 전환한 다음 정전보상하고 정전모드를 수행하는 제2단계와, 상기 제2단계에서의 정전모드 수행 중에 상기 일반포트를 통해 소정시간 이상 하이레벨신호가 입력되면 정전복귀모드를 수행하는 제3단계로 이루어진 것을 특징으로 하는 정전검출 방법을 제공한다.In order to achieve the above object, the present invention provides a method for detecting a power failure of an externally provided power source, wherein the predetermined voltage provided from the power supply unit is delayed for a predetermined time by a delay unit, and the predetermined voltage is A /. A first step of performing A / D conversion in the A / D conversion means provided through the D port and then comparing it with a predetermined voltage corresponding to a power failure; and as a result of the comparison in the first step, the A / D conversion A second step of switching the A / D port to a general port and compensating for power failure and performing a power failure mode when a predetermined voltage is less than a predetermined voltage corresponding to the power failure; and performing the power failure mode in the second step When the high level signal is input for more than a predetermined time through the third step of performing the power failure recovery mode provides a method for detecting a power failure.

도 1은 본 발명에 따른 정전검출 방법을 수행하기 위한 하드웨어의 개략적인 블럭구성도.1 is a schematic block diagram of hardware for performing a power failure detection method according to the present invention.

도 2는 본 발명의 바람직한 실시예에 따라 정전을 검출하는 동작과정을 설명하기 위한 도면.2 is a view for explaining the operation of detecting a power failure in accordance with a preferred embodiment of the present invention.

도 3은 종래의 전형적인 정전검출 장치의 개략적인 블럭구성도.Figure 3 is a schematic block diagram of a conventional typical electrostatic detection device.

* 도면의 주요부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

110, 310:전원제공부130, 330:마이컴110, 310: power supply unit 130, 330: microcomputer

320:리셋IC320: reset IC

본 발명의 상기 및 기타 목적과 여러 가지 장점은 이 기술분야의 숙련자에 의해 첨부되는 도면을 참조하여 하기에 기술되는 본 발명의 바람직한 실시예를 통해 더욱 확실하게 될 것이다.The above and other objects and various advantages of the present invention will become more apparent through the preferred embodiments of the present invention described below with reference to the accompanying drawings by those skilled in the art.

이하 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 대하여 상세하게 설명하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명에 따른 정전검출 방법을 수행하기 위한 하드웨어의 개략적인 블럭구성도로서, 전원제공부(110), 제1다이오드(D1), 제1콘덴서(C1), 마이컴(130), 제2다이오드(D2), 제2콘덴서(C2) 및 제3다이오드(D3)로 구성된다.1 is a schematic block diagram of hardware for performing an electrostatic detection method according to the present invention, the power supply unit 110, the first diode (D1), the first capacitor (C1), the microcomputer 130, the first It consists of a 2 diode D2, a 2nd capacitor C2, and a 3rd diode D3.

도 1에 있어서, 전원제공부(110)는 외부로부터 제공되는 외부전원을 전압강하시켜 소정전압(5.8V)을 출력하고, 마이컴(130)은 제1다이오드(D1)를 통해 제공되는 전원제공부(110)로부터의 소정전원에 의거하여 구동되며, 제2다이오드(D2)를 통해 A포트로 제공되는 A/D변환용 소정전압을 이용하여 제3다이오드(D3)를 통해 B포트로제공되는 소정전원을 A/D변환하며, A/D변환된 전압이 정전에 상응하는 소정전압(예를 들면, 4.5V) 이하이면 정전이라고 판단하여 B포트를 일반포트로 전환하는 동시에, 제1콘덴서(C1)에 충전된 전원을 이용하여 정전보상을 수행하는 한편, 일반포트를 통해 소정시간(예를 들면 2초) 동안 하이레벨신호가 입력되면, 제1다이오드(D1)를 통해 제공되는 소정전원에 의거하여 정전복귀를 수행한다.In FIG. 1, the power supply unit 110 drops the external power provided from the outside to output a predetermined voltage (5.8V), and the microcomputer 130 provides the power supply provided through the first diode D1. Driven based on a predetermined power source from 110, and provided to port B through third diode D3 using a predetermined voltage for A / D conversion provided to port A through second diode D2. A / D conversion of the power supply, and if the A / D converted voltage is equal to or less than a predetermined voltage (for example, 4.5V) corresponding to the power failure, it is determined that the power failure is performed. When the high level signal is input for a predetermined time (for example, 2 seconds) through the general port while performing the power failure compensation using the power charged in the), the power is charged based on the predetermined power provided through the first diode D1. To perform a power failure reset.

상기한 바와 같은 구성부재로 이루어진 본 발명에 따른 정전검출 장치 및 방법의 동작과정에 대하여 도 1 내지 도 2을 참조하여 보다 상세하게 설명하기로 한다.An operation process of the electrostatic detection apparatus and method according to the present invention, which is constituted as described above, will be described in more detail with reference to FIGS. 1 to 2.

먼저, 외부로부터 제공되는 외부전원이 전원제공부(110)를 통해 소정전압(에를 들면, 5.8V)으로 강압되어 제1다이오드(D1)를 통해 마이컴(130)으로 제공되고(단계 210), 이때 소정용량(0.1F)을 갖는 제1콘덴서(C1)에 소정전원이 충전되는데, 제1콘덴서(C1)에 충전된 소정전원은 정전시에 마이컴(130)이 정전보상을 위해 필요한 전원이다.First, the external power provided from the outside is stepped down to a predetermined voltage (for example, 5.8V) through the power supply unit 110 and provided to the microcomputer 130 through the first diode D1 (step 210). The predetermined power is charged in the first capacitor C1 having a predetermined capacity (0.1F), and the predetermined power charged in the first capacitor C1 is a power required for the microcomputer 130 to compensate for the power failure.

한편, 전원제공부(110)로부터 제2다이오드(D2)를 통해 마이컴(130)의 A포트로 제공되는 전원이 제2콘덴서(C2)에 의해 지연된 다음, 마이컴(130)으로 제공되는데, 이때 지연되는 소정전원은 A/D변환용 전압이다.On the other hand, the power supplied from the power supply unit 110 to the A port of the microcomputer 130 through the second diode (D2) is delayed by the second capacitor (C2), and then provided to the microcomputer 130, wherein the delay The predetermined power supply is the voltage for A / D conversion.

다음에, 전원제공부(110)로부터의 소정전원(5.8V)이 제3다이오드(D3)를 통해 마이컴(130)의 B포트로 입력되어 A/D변환된 다음(단계 220), 설정된 소정전압(예를 들면 4.5V)과 비교된다(단계 230).Next, a predetermined power source (5.8V) from the power supply unit 110 is input to the B port of the microcomputer 130 through the third diode D3 and A / D converted (step 220). (E.g., 4.5V) (step 230).

상기 단계(230)에서의 비교결과, 마이컴(130)의 B포트로 입력되어 A/D 변환된 전원이 설정된 소정전압(4.5V) 이하이면, 마이컴(130)은 정전으로 판단하고, 이때 B포트를 일반포트로 전환하는 동시에(단계 240), 제1콘덴서(C1)에 충전된 소정전원을 이용하여 마이컴(130)은 정전보상을 수행한 다음(단계 250), 정전모드를 수행한다(단계 260).As a result of the comparison in step 230, when the power input to the B port of the microcomputer 130 and the A / D converted power is less than or equal to the predetermined predetermined voltage (4.5V), the microcomputer 130 determines that the power failure is performed, and at this time, the B port At the same time (step 240), using the predetermined power charged in the first capacitor (C1), the microcomputer 130 performs the power failure compensation (step 250), and then performs the power failure mode (step 260). ).

다음에, 상기 단계(260)에서의 정전모드 수행중에 일반포트로부터 제공되는 전압이 소정시간(예를 들면, 2초)이상 하이레벨신호가 입력되는가를 체크하여(단계 270), 일반포트를 통해 소정시간(2초) 이상 하이레벨신호가 입력되면 마이컴(130)은 정전복귀모드를 수행한다(단계 280).Next, while performing the power failure mode in step 260, it is checked whether the high-level signal is input for more than a predetermined time (for example, 2 seconds) by the voltage provided from the general port (step 270). If the high level signal is input for more than a predetermined time (2 seconds), the microcomputer 130 performs the power failure recovery mode (step 280).

상술한 바와 같이, 전원제공부(110)로부터 소정전압이 제2다이오드(D2)를 거쳐 마이컴(130)의 A포트를 통해 A/D변환용 전압으로 제공되고, 전원제공부(110)로부터의 소정전압이 제3다이오드(D3)를 통해 마이컴(130)의 A/D포트인 B포트로 제공되어 A/D변환되는데, 이때 A/D변환된 소정전압이 4.5V 이하이면, 제1콘덴서(C1)에 충전된 소정전원에 의거하여 정전보상된 다음, 정전모드가 수행되고, 일반포트를 통해 소정시간(2초) 이상 하이레벨신호가 입력되면 정전복귀모드가 수행된다.As described above, a predetermined voltage from the power supply unit 110 is provided as an A / D conversion voltage through the A port of the microcomputer 130 via the second diode D2, and from the power supply unit 110. A predetermined voltage is provided to the B port, which is the A / D port of the microcomputer 130 through the third diode D3, and performs A / D conversion. When the A / D converted predetermined voltage is 4.5 V or less, the first capacitor ( After the power failure is compensated based on the predetermined power charged in C1), the power failure mode is performed, and when the high level signal is input through the general port for more than a predetermined time (2 seconds), the power failure recovery mode is performed.

따라서, 본 발명을 이용하면, 정전검출을 위한 리셋IC 없이 마이컴(130) 내의 A/D 포트를 이용하여 정전을 검출할 수 있으므로, 제조원가를 절감시킬 수 있을 뿐만 아니라 구조를 간소화할 수 있는 효과가 있다.Therefore, according to the present invention, since the power failure can be detected using the A / D port in the microcomputer 130 without the reset IC for detecting the power failure, the manufacturing cost can be reduced and the structure can be simplified. have.

Claims (2)

외부로부터 제공되는 전원의 정전을 검출하는 방법에 있어서,In the method for detecting a power failure of a power supply provided from the outside, 전원제공수단으로부터 제공되는 소정전압을 지연수단을 통해 소정시간 동안 지연시키고, 상기 소정전압을 A/D포트를 통해 내부에 구비된 A/D변환수단에서 A/D변환된 다음, 정전에 상응하는 소정전압과 비교하는 제1단계;The predetermined voltage provided from the power supply means is delayed for a predetermined time through the delay means, and the predetermined voltage is A / D converted by the A / D conversion means provided therein through the A / D port, and then corresponds to a power failure. A first step of comparing with a predetermined voltage; 상기 제1단계에서의 비교결과, 상기 A/D변환된 소정전압이 상기 정전에 상응하는 소정전압 이하이면 상기 A/D포트를 일반포트로 전환한 다음 정전보상하고 정전모드를 수행하는 제2단계;As a result of the comparison in the first step, if the A / D converted predetermined voltage is less than or equal to the predetermined voltage corresponding to the power failure, the second step of switching the A / D port to a general port, then performing power failure compensation and performing a power failure mode ; 상기 제2단계에서의 정전모드 수행 중에 상기 일반포트를 통해 소정시간 이상 하이레벨신호가 입력되면 정전복귀모드를 수행하는 제3단계로 이루어진 것을 특징으로 하는 정전검출 방법.And performing a power failure return mode when a high level signal is inputted through the general port for a predetermined time or more during the power failure mode in the second step. 제1항에 있어서,The method of claim 1, 상기 지연수단은, 콘덴서인 것을 특징으로 하는 정전검출 방법.The delay means is an electrostatic detection method, characterized in that the capacitor.
KR1019960036037A 1996-08-28 1996-08-28 Power failure detection method KR19980016446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960036037A KR19980016446A (en) 1996-08-28 1996-08-28 Power failure detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960036037A KR19980016446A (en) 1996-08-28 1996-08-28 Power failure detection method

Publications (1)

Publication Number Publication Date
KR19980016446A true KR19980016446A (en) 1998-06-05

Family

ID=66321828

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960036037A KR19980016446A (en) 1996-08-28 1996-08-28 Power failure detection method

Country Status (1)

Country Link
KR (1) KR19980016446A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6333422B1 (en) 2000-08-21 2001-12-25 Korea Institute Of Science And Technology Thermosensitive cyclotriphosphazene-platinum complex conjugate, its preparation method and anticancer agent containing the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6333422B1 (en) 2000-08-21 2001-12-25 Korea Institute Of Science And Technology Thermosensitive cyclotriphosphazene-platinum complex conjugate, its preparation method and anticancer agent containing the same

Similar Documents

Publication Publication Date Title
US3996481A (en) FET load gate compensator
EP0319223B1 (en) An output circuit system of static random access memory circuit
US6522178B2 (en) Controlling high side devices without using level shift switches
US4394702A (en) Power failure detection and control circuit
US5663909A (en) Method of erasing a flash memory device
US4952863A (en) Voltage regulator with power boost system
US6756833B2 (en) Delayed signal generation circuit
GB2316817A (en) Power supply unit for improving power factor
KR19980016446A (en) Power failure detection method
JPH11175172A (en) Method and device for reducing bias current of reference voltage circuit
KR100309459B1 (en) Substrate voltage generator of semiconductor device
US7501716B2 (en) Power supply apparatus
US20010048338A1 (en) Boosting method and apparatus
US6421773B1 (en) Sequence control circuit
GB2065942A (en) Data Retention System
US7276941B2 (en) Power up circuit of semiconductor memory device and compensating method thereof
US6898262B1 (en) Programmable controller
US6124739A (en) Monolithically integrated signal processing circuit
JPH05297992A (en) Input circuit for programmable controller
KR0120009B1 (en) Power failure protection apparatus of a sewing machine
US6633469B2 (en) Power semiconductor circuit
US6320404B1 (en) Defective power source detection method and apparatus of power source supply system
JP2869248B2 (en) A / D converter
JPH05165543A (en) Semiconductor integrated circuit equipped with clock compensating circuit
KR102583549B1 (en) Circuit for detecting negative voltage of semiconducetor memory device for safely detecting level in negative voltage against to change in power voltage

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination