KR100247050B1 - System malfunction protecting method using a memory - Google Patents

System malfunction protecting method using a memory Download PDF

Info

Publication number
KR100247050B1
KR100247050B1 KR1019970038423A KR19970038423A KR100247050B1 KR 100247050 B1 KR100247050 B1 KR 100247050B1 KR 1019970038423 A KR1019970038423 A KR 1019970038423A KR 19970038423 A KR19970038423 A KR 19970038423A KR 100247050 B1 KR100247050 B1 KR 100247050B1
Authority
KR
South Korea
Prior art keywords
memory
malfunction
mpu
ram area
rom
Prior art date
Application number
KR1019970038423A
Other languages
Korean (ko)
Other versions
KR19990016007A (en
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 KR1019970038423A priority Critical patent/KR100247050B1/en
Publication of KR19990016007A publication Critical patent/KR19990016007A/en
Application granted granted Critical
Publication of KR100247050B1 publication Critical patent/KR100247050B1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/20Memory cell initialisation circuits, e.g. when powering up or down, memory clear, latent image memory

Landscapes

  • Debugging And Monitoring (AREA)
  • Retry When Errors Occur (AREA)

Abstract

주기적으로 메모리의 변화를 감지하여 이상이 발생할 시 시스템을 초기화하여 오동작을 방지하도록 한다.It detects the memory change periodically and initializes the system to prevent malfunctions.

MPU를 사용하는 시스템의 프로세스 동작이 정상적인 루프를 벗어나는 경우 노이즈나 전기적 충격에 의해 각종 정보를 저장하는 레지스터에 변화된 데이터가 존재할 시 오동작이 발생하는 경우가 흔히 있는 문제를 해결하기 위해 인터럽트가 발생되는 일정주기마다 프로그램을 수행하기 위해 상기 메모리의 램영역에 초기화시 기록된 데이터를 롬에 저장된 초기 데이터값과 비교하여 상기 램영역에 기록된 데이터의 변경이 있을시 초기화하여 오동작을 방지하도록 한다.When the process operation of the system using the MPU is out of the normal loop, an interrupt is generated to solve the problem that a malfunction often occurs when there is changed data in a register that stores various information due to noise or electric shock. In order to execute a program for each cycle, the data written in the RAM area of the memory is compared with the initial data value stored in the ROM, and initialized when there is a change in the data recorded in the RAM area to prevent a malfunction.

Description

메모리의 변화를 이용한 시스템의 오동작 방지방법How to prevent system malfunction by using memory change

본 발명은 MPU를 사용하는 시스템의 오동작 방법에 관한 것으로, 특히 주기적으로 메모리의 변화를 감지하여 이상이 발생할 시 시스템을 초기화하여 오동작을 방지하는 시스템의 오동작 방지방법에 관한 것이다.The present invention relates to a malfunctioning method of a system using an MPU, and more particularly, to a malfunction prevention method of a system that detects a memory change periodically and initializes the system when an abnormality occurs to prevent the malfunction.

통상적으로 MPU를 사용하는 시스템의 안전성을 확보하기 위하여 워치독회로(WATCH DOG CIRCUIT)를 사용하여 시스템의 이상유무를 감지한 다음 시스템에 이상이 발생한 경우 시스템을 초기화하도록 하고 있다. 그러나 이러한 방식의 경우 프로세스 동작이 정상적인 루프를 벗어나는 경우 노이즈나 전기적 충격에 의해 각종 정보를 저장하는 레지스터에 변화된 데이터가 존재할 시 에러가 발생하는 경우가 흔히 있다.In general, to secure the safety of the system using the MPU, the watchdog circuit (WATCH DOG CIRCUIT) is used to detect the abnormality of the system, and when the system is abnormal, the system is initialized. However, in this case, when the process operation is out of the normal loop, an error occurs when there is changed data in a register that stores various information due to noise or electric shock.

본 발명의 목적은 MPU를 사용하는 시스템의 노이즈나 전기적 충격에 의하여 메모리에 비정상적인 데이터가 존재할 시 시스템을 초기화하여 에러동작을 방지하는 오동작 방지방법을 제공함에 있다.Disclosure of Invention An object of the present invention is to provide a malfunction prevention method for preventing an error operation by initializing a system when abnormal data exists in a memory due to noise or electric shock of a system using an MPU.

상기 목적을 달성하기 위한 본 발명은, NMI(NON MASKABLE INTERRRUPT)에 의하여 일정한 주기로 메모리를 점검하여 메모리에 등록된 데이터의 변화가 발생될 시 시스템을 초기화함을 특징으로 한다.The present invention for achieving the above object is characterized by initializing the system when a change in the data registered in the memory occurs by checking the memory at regular intervals by NMI (NON MASKABLE INTERRRUPT).

도 1은 본 발명의 실시예에 따른 MPU를 사용하는 시스템의 블록구성도1 is a block diagram of a system using an MPU according to an embodiment of the present invention

도 2는 본 발명의 실시예에 따른 메모리 변화에 따라 시스템을 초기화하기 위한 제어 흐름도2 is a control flowchart for initializing a system according to a memory change according to an exemplary embodiment of the present invention.

도 3은 본 발명의 실시예에 따른 시스템에서 실제 사용되는 프로그램의 실예를 나타낸 도면3 is a diagram showing an example of a program actually used in a system according to an embodiment of the present invention.

도 1은 본 발명의 실시예에 따른 MPU를 사용하는 시스템의 블럭구성도이다.1 is a block diagram of a system using an MPU according to an embodiment of the present invention.

주기신호발생부 10는 일정주기로 NMI(NON MASKABLE INTERRUPT)를 발생한다. MPU 12는 롬과 램을 구비하고 있으며, 상기 NMI인터럽트신호가 발생될 때 마다 램에 등록되어 있는 데이터값과 롬에 등록되어 있는 초기화값을 비교하여 동일하지 않을시 초기화를 실시하도록 제어한다. 응용회로 14는 상기 롬의 프로그램에 의해 로딩되어 해당 기능이나 동작을 수행하도록 한다.The periodic signal generator 10 generates NMI (NON MASKABLE INTERRUPT) at regular intervals. The MPU 12 includes a ROM and a RAM. When the NMI interrupt signal is generated, the MPU 12 compares the data value registered in the RAM with the initialization value registered in the ROM, and controls to perform initialization when it is not the same. The application circuit 14 is loaded by the program of the ROM to perform a corresponding function or operation.

도 2는 본 발명의 실시예에 따른 메모리 변화에 따라 시스템을 초기화하기 위한 제어 흐름도이다.2 is a control flowchart for initializing a system according to a memory change according to an exemplary embodiment of the present invention.

상술한 도 1 내지 도 2를 참조하여 본 발명의 바람직한 실시예의 동작을 상세히 설명한다.1 to 2, the operation of the preferred embodiment of the present invention will be described in detail.

주기신호발생부 10는 일정주기로 NMI(NON MASKABLE INTERRUPT)를 발생한다. 이때 101단계에서 MPU 12는 주기신호 발생부 10으로부터 NMI가 발생되었가 검사하여 NMI가 발생되었으면 102단계로 진행한다. 상기 102단계에서 MPU 12는 도 3에 도시된 램영역의 레지스터에 저장되어 있는 값과 롬에 저장되어 있는 초기화값을 비교한다. 그런후 103단계에서 MPU 12는 상기 레지스터에 저장되어 있는 값과 롬의 초기화값이 일치하는지 검사하여 일치하지 않으면 104단계에서 롬에 저장 되어 있는 초기화값을 도 3과같은 램영역에 업데이트(UP DATE)하여 초기화 시킨다. 그러나 레지스터에 저장되어 있는값과 롬에 저장되어 있는 초기화값이 일치하는 경우에는 105단계로 진행하여 인터럽트 처리를 완료하고 리턴한다. 도 3에서는 시스템에서 실제 사용되는 프로그램의 실예를 나타낸 것으로, 시스템에 최초 전원이 공급되면 MPU 10에서는 롬에 저장되어 있는 프로그램을 로딩하기 위해 롬에 있는 초기값을 램에 옮겨놓는 초기화를 시작한다. 이때 MPU 12는 코드(CODE)영역에 의해 초기화를 시작하여 첫 번째 체크포인트(CHECK POINT1) 영역을 지정하고, 첫 번째 체크포인트(FIRST CHECK POINT)값 예를들어 $55를 옮겨 저장한다. 그리고 두 번째 체크포인트(CHECK POINT2) 영역을 지정하고, 두 번째 체크포인트(SECOND CHECK POINT)값 예를들어 $AA를 옮겨 저장한다. 세 번째 체크포인트(CHECK POINT3) 영역을 지정하고, 세 번째 체크포인트(THIRD CHECK POINT)값 예를들어 $81을 옮겨 저장한다. 이렇게 n번째 체크포인트 영역을 지정하고, n번째 체크포인트값을 저장하여 초기화를 수행한다. 이와같이 프로그램을 수행하기 위한 초기화값을 램에 옮겨 놓은후 주기신호 발생부 10으로부터 NMI가 발생될 때마다 램에 옮겨진 값과 롬에 저장되어 있는 초기화값을 비교하여 램에 옮겨진 값이 노이즈나 정전기등에 의해 변경되었을 시 초기화를 다시 수행한다.The periodic signal generator 10 generates NMI (NON MASKABLE INTERRUPT) at regular intervals. In this case, in step 101, the MPU 12 checks whether the NMI is generated from the periodic signal generator 10 and proceeds to step 102 if the NMI is generated. In step 102, the MPU 12 compares the value stored in the register of the RAM area shown in FIG. 3 with the initialization value stored in the ROM. Then, in step 103, the MPU 12 checks whether the value stored in the register and the initialization value of the ROM match. If it does not match, the MPU 12 updates the initialization value stored in the ROM in the RAM area as shown in FIG. 3 (UP DATE). To initialize it. However, if the value stored in the register matches the initialization value stored in the ROM, the flow proceeds to step 105 to complete the interrupt processing and return. 3 shows an example of a program actually used in the system. When power is first supplied to the system, the MPU 10 starts initializing the initial value in the ROM into RAM in order to load a program stored in the ROM. At this time, the MPU 12 starts the initialization by the code area, specifies the first checkpoint area, and transfers the first checkpoint value, for example, $ 55. Then, the second checkpoint (CHECK POINT2) area is specified, and the second checkpoint (SECOND CHECK POINT) value, for example, $ AA is moved and stored. Specify the third CHECK POINT3 area, move the third CHECK POINT value, for example, $ 81 and save it. In this way, the nth checkpoint area is specified and the nth checkpoint value is saved to perform initialization. In this way, after the initialization value for program execution is transferred to the RAM, whenever the NMI is generated from the periodic signal generator 10, the value transferred to the RAM is compared with the initialization value stored in the ROM. If it is changed by the program, it initializes again.

상술한 바와 같이 본 발명은, MPU를 사용하는 시스템에서 프로그램을 수행하기 위해 초기화시 메모리의 램영역에 옮겨진 값이 노이즈나 정전기등으로 인하여 변경된 데이터가 있을시 이를 NMI에 의해 주기적으로 체크하여 초기화시시키므로, 시스템의 오동작을 사전에 예방할 수 있는 효과가 있다.As described above, the present invention, when performing the program in the system using the MPU, when the value transferred to the RAM area of the memory is changed due to noise or static electricity, if there is data that is periodically checked by the NMI during initialization Therefore, there is an effect that can prevent the malfunction of the system in advance.

Claims (2)

메모리에 대한 램영역의 변화를 감시하여 시스템의 오동작을 방지하는 방법에 있어서,In the method of preventing the malfunction of the system by monitoring the change of the RAM area with respect to the memory, 인터럽트가 발생되는 일정주기마다 프로그램을 수행하기 위해 상기 메모리의 램영역에 초기화시 기록된 데이터를 롬에 저장된 초기 데이터값과 비교하여 상기 램영역에 기록된 데이터의 변경이 있을시 초기화하여 오동작을 방지함을 특징으로 하는 시스템의 오동작 방지방법.In order to execute the program every predetermined period when an interrupt is generated, the data written in the RAM area of the memory is compared with the initial data value stored in the ROM, and initialized when there is a change in the data recorded in the RAM area to prevent a malfunction. How to prevent malfunction of the system, characterized in that. 제1항에 있어서,The method of claim 1, 상기 인터럽트는 NON MASKABLE INTERRUPT임을 특징으로 하는 시스템의 오동작 방지방법.The interrupt is a method of preventing malfunction of the system, characterized in that the NON MASKABLE INTERRUPT.
KR1019970038423A 1997-08-12 1997-08-12 System malfunction protecting method using a memory KR100247050B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970038423A KR100247050B1 (en) 1997-08-12 1997-08-12 System malfunction protecting method using a memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970038423A KR100247050B1 (en) 1997-08-12 1997-08-12 System malfunction protecting method using a memory

Publications (2)

Publication Number Publication Date
KR19990016007A KR19990016007A (en) 1999-03-05
KR100247050B1 true KR100247050B1 (en) 2000-03-15

Family

ID=19517303

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970038423A KR100247050B1 (en) 1997-08-12 1997-08-12 System malfunction protecting method using a memory

Country Status (1)

Country Link
KR (1) KR100247050B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7965557B2 (en) 2007-04-16 2011-06-21 Samsung Electronics Co., Ltd. Flash memory device and set-up data initialization method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7965557B2 (en) 2007-04-16 2011-06-21 Samsung Electronics Co., Ltd. Flash memory device and set-up data initialization method
US8395943B2 (en) 2007-04-16 2013-03-12 Samsung Electronics Co., Ltd. Flash memory device and set-up data initialization method

Also Published As

Publication number Publication date
KR19990016007A (en) 1999-03-05

Similar Documents

Publication Publication Date Title
US4775957A (en) Microcomputer with abnormality sensing function
US8954801B2 (en) Microcomputer and method of operation thereof
CN100570578C (en) The method of fault detect and product in the industrial control unit (ICU) during security control
GB2129587A (en) A method of and apparatus for fail-safe operation of a vehicle computer
US20180107615A1 (en) Control apparatus
KR100247050B1 (en) System malfunction protecting method using a memory
JPH06324914A (en) Runaway detecting method for computer
JP2008518313A (en) Data processing system with variable clock rate
US20080140890A1 (en) Electronic Circuit Arrangement For Detecting a Failing Clock
CN108073489B (en) Method for ensuring operation of calculator
US7246206B2 (en) Method and device for storing a computer program in a program memory of a control unit
JPH03136153A (en) Microcontroller
KR910010317A (en) A reset control system and method for performing a resume processing while checking the operation mode of the CPU
JP3182373B2 (en) Microcomputer device
JPS61175830A (en) Malfunction preventing system of computer for automobile
JP3281113B2 (en) Abnormality detection circuit of microcomputer system
JPS6014345A (en) Protecting system of program runaway
JPH01310422A (en) Resetting circuit for microcomputer
JPS61175828A (en) Malfunction preventing system of computer for automobile
JP3183982B2 (en) Digital controller
JPH08123704A (en) Controller
JPS6118045A (en) Detecting system of program runaway
JPH06103467B2 (en) Preventing malfunction of automobile computer
KR970008509B1 (en) Resetting apparatus for micom
JPH0375882B2 (en)

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20061129

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee