KR910003376B1 - Power supply in case of interruption of electric power - Google Patents
Power supply in case of interruption of electric power Download PDFInfo
- Publication number
- KR910003376B1 KR910003376B1 KR1019870003313A KR870003313A KR910003376B1 KR 910003376 B1 KR910003376 B1 KR 910003376B1 KR 1019870003313 A KR1019870003313 A KR 1019870003313A KR 870003313 A KR870003313 A KR 870003313A KR 910003376 B1 KR910003376 B1 KR 910003376B1
- Authority
- KR
- South Korea
- Prior art keywords
- power failure
- interrupt
- processor
- main processor
- subprocessor
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
제 1 도는 종래의 회로도.1 is a conventional circuit diagram.
제 2 도는 본 발명의 회로도.2 is a circuit diagram of the present invention.
제 3 도는 본 발명에서 사용하는 프로세서 1의 프로그램 플로우챠트.3 is a program flowchart of
제 4 도는 본 발명에서 사용하는 프로세서 2의 프로그램 플로우챠트.4 is a program flowchart of processor 2 for use in the present invention.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
5 : 정전 감지부 6 : 프로세서 15: power failure detection unit 6:
7 : 프로세서 2 10 : 인터럽트 발생부7: processor 2 10: interrupt generator
11 : 프린터 12 : 디스플레이11: printer 12: display
13 : 시계 R1-R8: 저항13: clock R 1 -R 8 : resistance
C2: 콘덴서 CP : 비교기C 2 : Capacitor CP: Comparator
Q1: 트랜지스터Q 1 : Transistor
본 발명은 두개의 이상의 프로세서(PROCESSOR)를 갖는 전자식 금전 등록기의 사용중에 정전이 될 경우 시스템의 정확한 데이타 처리를 행하여 프로세서 및 주변기기의 이상 동작을 방지해 주기 위한 전자식 금전 등록기기의 정전 처리 방법에 관한 것이다.The present invention relates to a method for processing an outage of an electronic cash register for preventing an abnormal operation of a processor and a peripheral device by performing accurate data processing of a system when an outage occurs during use of an electronic cash register having two or more processors. will be.
종래의 전자식 금전 등록기에 대한 정전 처리 방식은 제 1 도와 같이 하나의 정전 감지부(5)를 이용하여 두개의 프로세서 즉 메인 프로세서 1(6)과 서브 프로세서 2(7)를 동시에 인터럽트(INTERRUPT)시켜 주어 두개의 프로세서에서 각각 수행중이던 프로그램을 중단시키고 인터럽트 루틴을 수행하도록 되어 있기 때문에 메인 프로세서 1(6)의 명령을 받아 프린터, 디스블레이, 세계등의 주변기기를 제어하는 서브 프로세서 2(7)가 동작중에 정전이 되었을 경우에는 난수 프린터, 이상 디스플레이, 시계의 주정확성등의 시스템 에러가 발생되는 것이었다.Conventional power failure processing method for the electronic cash register by using a single power
본 발명의 목적은 두개의 프로세서를 사용하는 금전 등록기에 있어서, 정전시 인터럽트를 행하는 우선 순위를 부여하여 순차적으로 인터럽트되게 하므로써 정전시 발생되는 주변기기의 이상 동작을 방지할 수 있도록 한 것으로 정전 감지부의 정전 감지 신호를 이용하여 모든 주변기기 및 프로세서를 제어하는 메인 프로세서의 최우선 순위 인터럽트를 요구하여 서브 프로세서에 대한 명령 및 주변기기 구동 명령 송출을 중단시키는 한편 서브 프로세서에 별도의 정전 인식 신호를 송출하여 서브 프로세서가 인터럽트 루틴을 수행하게 하여 시스템 및 주변기기 에러를 방지하는 것이다.An object of the present invention is to provide a priority for interruption in the event of a power failure in a cash register using two processors, so as to prevent abnormal operation of peripheral devices generated during power failure by interrupting sequentially. By requesting the highest priority interrupt of the main processor that controls all peripherals and processors using the sense signal, it interrupts the sending of instructions to the subprocessor and the peripheral drive command, and sends a separate power failure recognition signal to the subprocessor so that the subprocessor interrupts. It allows you to perform routines to prevent system and peripheral errors.
이를 제 2 도에 의하여 상세히 설명하는 다음과 같다.This will be described in detail with reference to FIG. 2.
제 2 도는 본 발명의 회로도로서 정전 상태를 감지하여 메인 프로세서 1(6)의 인터럽트 단자(INT 0)에 정전 감지 신호를 인가시키는 정전 감지부(5)는 저항(R1)(R2)으로 분배되는 전압(Vcc)이 비교기(CP)의 반전 입력단자(-)에 인가되게 구성하고 비반전 입력단자(+)에는 저항(R3)(R4)이 콘덴서(C1)와 연결되어 전원(B+)이 인가되게 구성한 후 비교기(CP)의 출력단자가 메인 프로세서 1(6)의 인터럽트 단자(INT 0)에 연결되게 구성한다.2 is a circuit diagram of the present invention, the power
상기 정전 감지부(5)의 정전 감지 신호를 받는 메인 프로세서 1(6)에서는 서브 프로세서 2(7)에 대한 명령 및 주변기기의 구동 명령 송출을 중단시키는 한편 출력단자(PB)로 별도의 정전 인식 신호를 출력시키고 상기 메인 프로세서 1(6)의 정전 인식 신호는 저항(R6-R8)과 콘덴서(C2)가 연결된 트랜지스터(Q1)로 구성된 인터럽트 발생부(10)에 인가되어 서브 프로세서 2(7)의 인터럽트 신호를 인가시키게 구성한다.The main processor 1 (6) receiving the power failure detection signal of the power
그리고 서브 프로세서 2(7)는 메인 프로세서 1(6)의 명령을 받아 프린터(1), 디스플레이(12), 시계(13)의 구동을 제어하는 한편 인터럽트 발생부(10)에서 인터럽트 신호에 의하여 정전을 인식할 수 있게 구성된다.Sub-processor 2 (7) receives the command of main processor 1 (6) to control the driving of the
이와 같이 구성된 본 발명에서 정전 감지부(5)는 정전 상태를 감지하여 메인 프로세서 1(6)에 정전 감지 신호를 인가시키는 것으로 비교기(CP)의 반전 입력단자(-)에는 전원(Vcc)이 저항(R1)(R2)을 통하여 인가되게 하고 비반전 입력단자(+)에는 콘덴서(C1)와 저항(R3)(R4)에 의한 기준 전압이 인가되게 하여 정상적인 전원(Vcc)이 인가될 경우에는 비교기(CP)의 반전 입력단자(-) 전위가 비반전 인력단자(+)의 기준 전압보다 높아 로우레벨이 출력되게 되고 정전시에는 비반전 입력단자(+)의 기준 전압이 높아 하이레벨이 출력되게 된다.In the present invention configured as described above, the power
이때 저항(R5)은 풀업(PULL UP) 저항이다.In this case, the resistor R 5 is a pull up resistor.
따라서 정전 감지부(5)에서는 정전이 되었을 경우 하이레벨의 정전 감지 신호를 메인 프로세서 1(6)의 인터럽트 단자(INT 0)에 인가시켜 주어 메인 프로세서 1(6)의 최우선 순위 인터럽트를 요구하게 되므로 메인 프로세서 1(6)에서는 제 3 도의 프로그램을 수행한다.Therefore, when the power failure is detected, the power
즉 메인 프로세서 1(6)에서는 제 3 도의 프로그램과 같이 초기 '변수 초기화'를 시키는 한편 '각 회로 초기화'를 시킨 후 '통상의 기능수행'으로 금전 등록기의 일반적인 기능을 수행하다가 정전시 정전 감지부(5)로부터 정전 감지 신호가 발생하게 되면 '점프 인터럽트 처리 루틴'으로 들어가 '처리중 데이타 대피'를 실행하므로써 이제까지 처리중인 데이타를 안전하게 저장하는 한편 '프로세서 2로 프린터, 디스플레이, 시계 구동 명령 송출 중단'을 행하고 이와 동시에 '프로세서 1의 PB에 "H" 레벨 신호 송출'을 행한 후 '정지 모우드'를 수행하게 되는 것이다.In other words, the main processor 1 (6) performs initial functions such as 'initialization of variables' and 'initialization of circuits' as shown in the program of FIG. 3, and then performs general functions of the cash register by performing 'normal functions'. If a power failure detection signal is generated from (5), enter the jump interrupt processing routine and execute data evacuation during processing to safely store the data being processed and stop sending the printer, display, and clock operation commands to the processor 2. At the same time, "H" level signal is sent to PB of
이와 같이 메인 프로세서 1(6)에서는 일반적인 금전 등록기의 기능을 수행하는 도중에 정전 감지부(5)로부터 정전 감지 신호가 인터럽트 단자(INT 0)에 인가되게 되면 최우선 인터럽트 처리 루틴으로 들어가 그동안 수행중이던 프로그램 및 서브 프로세서 2(7)가 주변장치인 프린터(11), 디스플레이 2(7)가 주변장치인 프린터(11), 디스플레이(12), 시계(13) 구동을 할 수 있는 명령 송출을 중단시키는 한편 출력단자(PB)로 정전 인식 신호를 출력시킨 후 정지 모우드를 수행하게 된다.As described above, in the main processor 1 (6), when the power failure detection signal is applied to the interrupt terminal INT 0 while performing the function of the general cash register, the main processor 1 (6) enters the highest priority interrupt processing routine, and Subprocessor 2 (7) stops sending commands that can drive the
그리고 메인 프로세서 1(6)의 출력단자(PB)에서 출력된 하이레벨의 정전 인식 신호는 인터럽트 발생부(10)의 트랜지스터(Q1)의 베이스에 인가되어 트랜지스터(Q1)의 콜렉터 측을 로우레벨로 떨어 뜨리게 되고 상기 트랜지스터(Q1)의 콜렉트 출력은 인터럽트 신호로 서브 프로세서 2(7)의 인터럽트 단자(INT 0)에 인가되게 된다.In addition, the high level power failure recognition signal output from the output terminal PB of the main processor 1 (6) is applied to the base of the transistor Q 1 of the
즉 정전이 되었을 경우는 서브 프로세서 2(7)의 인터럽트 단자(INT 0)에 하이레벨이 인가되게 되나 정전이 되었을 경우는 인터럽트 발생부(10)에서 로우레벨을 인가시키게 된다.That is, when a power failure occurs, a high level is applied to the interrupt terminal INT 0 of the subprocessor 2 (7), but when a power failure occurs, the
이같이 인터럽트 단자(INT 0)에 인터럽트 신호가 인가되면 서브 프로세서 2(7)는 제 4 도의 프로그램과 같이 초기 '변수 초기화'와 '각 회로 초기화'를 시킨 후 '프린터, 디스플레이, 시계 등 통상의 기능 수행'을 하다가 인터럽트 발생부(10)의 인터럽트 신호에 의하여 '점프 인터럽트 루틴'으로 들어가 '처리중 데이타 대피'를 시킨 후 '정지 모우드'를 수행하게 된다.When the interrupt signal is applied to the interrupt terminal (INT 0), the subprocessor 2 (7) performs initial 'variable initialization' and 'initialization of each circuit' as shown in the program of FIG. 'Enter the jump interrupt routine' by the interrupt signal of the
이때 서브 프로세서 2(7)는 정전시 메인 프로세서 1(6)에서 주변기기 세어 명령이 중단되고 인터럽트 발생부(10)를 통하여 인터럽트를 요구하였기 때문에 주변기기인 프린터(11), 디스플레이(12), 시계(13) 등의 구동을 끝낸 상태이므로 정전이 되더라도 이상 동작을 하지 않게 된다.At this time, the subprocessor 2 (7) stopped the counting of peripheral devices in the main processor 1 (6) during power outage and requested an interrupt through the
즉 서브 프로세서 2(7)는 제 4 도의 프로그램과 같이 정전시 메인 프로세서(1)에서는 주변기기의 제어 명령 송출을 중단하고 인터럽트 신호를 송출하였으므로 곧바로 인터럽트 처리루틴으로 들어가 프로그램을 수행할 수 있기 때문에 종래와 같이 두개의 프로세서에 인터럽트를 동시에 요구하여 각각 처리할 때 발생되는 주변기기 및 프로세서의 이상 동작을 방지할 수 있다.That is, since the subprocessor 2 (7) interrupts the control instruction of the peripheral device and transmits the interrupt signal at the time of power failure like the program of FIG. 4, the subprocessor 2 (7) can immediately enter the interrupt processing routine to execute the program. Likewise, interrupts can be requested from two processors at the same time, thereby preventing abnormal operation of the peripheral device and the processor that occur when each is processed.
이상에서와 같이 본 발명은 비교기를 이용하여 정전을 감지하고 감지된 정전 감지 신호를 이용하여 모든 주변기기 및 서브 프로세서를 제어하는 메인 프로세서의 최우선 순위 인터럽트를 요구하여 수행중인 프로그램 즉 서브 프로세서에 대한 명령과 프린터, 디스플레이, 시계 등의 주변장치 구동 명령 송출을 중단하고 서브 프로세서가 정전을 인식할 수 있도록 별도의 신호를 송출하여 서브 프로세서의 인터럽트를 요구하여 인터럽트 루틴을 수행하게 하므로써 주변기기의 동작을 완료한 상태에서 서브 프로세서가 정전을 인식할 수 있도록 하여 시스템 및 주변기기의 에러를 방지할 수 있는 효과가 있는 것이다.As described above, the present invention uses a comparator to detect a power failure and uses a sensed power failure detection signal to request the highest priority interrupt of a main processor that controls all peripheral devices and subprocessors. Completed the operation of peripheral devices by stopping the sending of peripheral device drive command such as printer, display, clock, etc. and sending out a separate signal so that the subprocessor can recognize the power failure. In this way, the subprocessor can recognize the power failure, thereby preventing the errors of the system and the peripherals.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019870003313A KR910003376B1 (en) | 1987-04-04 | 1987-04-04 | Power supply in case of interruption of electric power |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019870003313A KR910003376B1 (en) | 1987-04-04 | 1987-04-04 | Power supply in case of interruption of electric power |
Publications (2)
Publication Number | Publication Date |
---|---|
KR880013098A KR880013098A (en) | 1988-11-30 |
KR910003376B1 true KR910003376B1 (en) | 1991-05-28 |
Family
ID=19260589
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019870003313A KR910003376B1 (en) | 1987-04-04 | 1987-04-04 | Power supply in case of interruption of electric power |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR910003376B1 (en) |
-
1987
- 1987-04-04 KR KR1019870003313A patent/KR910003376B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR880013098A (en) | 1988-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4072852A (en) | Digital computer monitoring and restart circuit | |
GB2290891B (en) | Multiprocessor system | |
US5138709A (en) | Spurious interrupt monitor | |
KR910003376B1 (en) | Power supply in case of interruption of electric power | |
JP2563965B2 (en) | Elevator control equipment | |
JPH11259340A (en) | Reactivation control circuit for computer | |
JPS6425166A (en) | Image forming device | |
JPS5727322A (en) | Input and output controlling system of computer | |
KR0167937B1 (en) | Starting signal discriminating system of data network | |
KR100289098B1 (en) | Device for integrally processing interrupt signal | |
JPS6318188B2 (en) | ||
JPH01245322A (en) | Power failure control circuit for microprocessor | |
JPS59105121A (en) | Electronic apparatus | |
JPS61110242A (en) | Method for detecting interrupt signal of microcomputer | |
EP0114896A4 (en) | Function diagnosis system. | |
JPH06250864A (en) | Method for preventing generation of error output from programmable controller | |
JPS5983201A (en) | Processing system of momentary break | |
JPS6295646A (en) | Microprogram controller with run monitoring function | |
JPH01304364A (en) | Sensor for instantaneous power failure | |
JPH1020968A (en) | Selective hardware resetting circuit | |
JPS6295647A (en) | Microprogram controller with run monitoring device | |
JPH0356501B2 (en) | ||
JPS5987557A (en) | Resetting circuit of microprocessor | |
JPH0961470A (en) | Method and apparatus for processing power interruption | |
JPS5911936B2 (en) | data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
G160 | Decision to publish patent application | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 19990430 Year of fee payment: 9 |
|
LAPS | Lapse due to unpaid annual fee |