KR950014084B1 - Data write device of memory - Google Patents

Data write device of memory Download PDF

Info

Publication number
KR950014084B1
KR950014084B1 KR1019930012438A KR930012438A KR950014084B1 KR 950014084 B1 KR950014084 B1 KR 950014084B1 KR 1019930012438 A KR1019930012438 A KR 1019930012438A KR 930012438 A KR930012438 A KR 930012438A KR 950014084 B1 KR950014084 B1 KR 950014084B1
Authority
KR
South Korea
Prior art keywords
signal
reset
data
state
output
Prior art date
Application number
KR1019930012438A
Other languages
Korean (ko)
Other versions
KR950004266A (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 KR1019930012438A priority Critical patent/KR950014084B1/en
Publication of KR950004266A publication Critical patent/KR950004266A/en
Application granted granted Critical
Publication of KR950014084B1 publication Critical patent/KR950014084B1/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/10Input/output [I/O] data interface arrangements, e.g. I/O data control circuits, I/O data buffers
    • G11C7/1051Data output circuits, e.g. read-out amplifiers, data output buffers, data output registers, data output level conversion circuits
    • 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

  • Information Transfer Systems (AREA)
  • Microcomputers (AREA)

Abstract

The device improves the system productivity and simplifies the environment device according to the processing bit number of CPU. The device includes the external memory means which saves the data and program, the 1st signal(-DWL) which varies the signal state by system diagnosis action, the 2nd signal(-SW_RST), the 3rd signal(MODE) which varies the signal state by reset switch action, the reset signal(-RESET) which resets the system, the interrupt signal generation means which outputs the interrupt signal(INTn), and the CPU which reads the corresponding data by selection of external memory means.

Description

메모리의 데이타 판독 장치Data reading device in memory

제 1 도는 이 발명의 실시예에 따른 메모리의 데이타 판독장치의 블럭도.1 is a block diagram of a data reading apparatus of a memory according to an embodiment of the present invention.

제 2 도는 이 발명의 실시예에 따른 메모리의 데이타 판독방법의 동작순서도.2 is an operation flowchart of a data reading method of a memory according to an embodiment of the present invention.

제 3 도는 이 발명의 실시예에 따른 데이타 판독방법의 상세 순서도.3 is a detailed flowchart of a data reading method according to an embodiment of the present invention.

제 4 도는 이 발명의 실시예에 따른 리셋 및 인터럽트 신호 발생부의 상세 회로도.4 is a detailed circuit diagram of a reset and interrupt signal generating unit according to an embodiment of the present invention.

제 5 도는 이 발명의 실시예에 따른 리셋 및 인터럽트 신호 발생부의 동작 타이밍도이다.5 is an operation timing diagram of a reset and interrupt signal generator according to an exemplary embodiment of the present invention.

이 발명은 외부의 메모리 장치에 저장되어 있는 데이타를 판독하기 위한 데이타 판독장치 및 그 방법에 관한 것으로서, 특히, 외부의 메모리 장치에 실행 비트수에 따라 데이타의 판독동작이 진행될 수 있도록 하기 위한 메모리의 데이타 판독장치에 관한 것이다.The present invention relates to a data reading device for reading data stored in an external memory device and a method thereof. In particular, the present invention relates to a memory for allowing a data reading operation to proceed in accordance with the number of execution bits to an external memory device. A data reading device.

일반적으로 어떤 시스템의 제어장치는 프로세서(Processor)의 발달과 제어이론의 향상으로 인하여 아날로그 제어방법에서 디지탈 제어방법으로 변환되고, 적용 범위도 넓어지고 있다.In general, the control device of a system is converted from an analog control method to a digital control method due to the development of a processor and an improvement of control theory, and the application range is also widened.

따라서 상기와 같이 디지탈 방법으로 시스템의 동작을 제어할 경우에 시스템의 자료처리가 신속 용이하고 간단한 통신을 통해 시스템의 동작상태에 따른 데이타 통신이 매우 편리하다.Therefore, when controlling the operation of the system by the digital method as described above, the data processing of the system is quick and easy and the data communication according to the operation state of the system through the simple communication is very convenient.

그리고 시스템의 동작에 해당하는 제어신호외에 자기 진단동작 등의 기타 다른 동작의 첨가로 다기능의 시스템 장치를 개발할 수 있으므로 제품의 신뢰성과 고급화를 추구할 수 있다.In addition to the control signals corresponding to the operation of the system, by adding other operations such as self-diagnostic operation, a multi-functional system device can be developed, so that the reliability and quality of the product can be pursued.

또, 기능의 변경이나 첨가가 용이하고, 이득값의 변경이 용이하므로 다른 시스템과의 연계동작이 가능하다.In addition, since the function can be easily changed or added, and the gain value can be easily changed, a linkage operation with other systems is possible.

상기와 같은 이유로 점차로 확대되는 디지탈 제어장치에 있어서, 종래에 마이크로 프로세서나 마이크로 컴퓨터를 이용하여 ROM(Read Only Memory)이나 RAM(Random Access Meory) 등의 메모리에 저장되어 있는 데이타를 판독하여 해당하는 제어동작을 실행할 경우에 이용되는 마이크로 컴퓨터나 프로세서의 처리비트(bit)수와 동일하게 메모리의 처리비트를 일치시켜야 한다.In the digital control apparatus that is gradually expanded for the above reasons, conventionally, a microprocessor or a microcomputer reads data stored in a memory such as ROM (Read Only Memory) or RAM (Random Access Meory) and controls correspondingly. The processing bits of the memory must match the number of processing bits of the microcomputer or processor used when performing the operation.

그러므로 즉, 32비트의 마이크로 프로세서를 이용할 경우에 설정된 동작을 수행하기 위한 데이타와 프로그램을 저장하기 위한 메모리장치도 마이크로 프로세서와 동일한 비트인 32비트로 데이타의 입출력동작을 실행해야 한다.Therefore, when using a 32-bit microprocessor, a memory device for storing data and a program for performing a set operation must also execute an input / output operation of data in 32 bits, which is the same bit as the microprocessor.

그러므로 마이크로 프로세서와 동일한 수의 입출력 비트를 갖고 있지 않은 ROM을 이용할 경우에 다수개의 ROM을 이용하여 마이크로 프로세서의 출력비트수와 동일한 비트수로 동작을 제어하기 위한 제어신호와 데이타를 입출력해야 한다.Therefore, when using a ROM that does not have the same number of input and output bits as the microprocessor, it is necessary to input and output control signals and data for controlling the operation using the same number of bits as the output bits of the microprocessor using a plurality of ROMs.

따라서 메모리에 저장되는 데이타의 용량에 무관하게 단지 처리비트수를 맞추기 위해 이용되는 메모리장치를 증가시켜야 하는 문제점이 발생한다.Therefore, a problem arises in that the memory device used to adjust the number of processing bits only needs to be increased regardless of the capacity of data stored in the memory.

그러므로 데이타의 용량에 무관하게 많은 제작원가의 상승을 초래하고, 많은 전송선로를 필요로 하므로 설계의 어려움을 초래한다.Therefore, regardless of the data capacity, it causes a lot of manufacturing cost increase and requires a lot of transmission lines, which causes design difficulties.

그러므로 이 발명의 목적은 상기한 종래의 문제점을 해결하기 위한 것으로서, 이용되는 제어수단의 처리비트수에 무관하게 사용되는 메모리장치의 처리 비트수에 따라 해당 데이타를 전송할 수 있도록 하여 제작 원가가의 절감과 설계의 편리성을 추구할 수 있도록 하기 위한 메모리의 데이타 판독장치 및 그 방법을 제공하기 위한 것이다.Therefore, an object of the present invention is to solve the above-mentioned problems, and it is possible to reduce the manufacturing cost by transmitting the data according to the processing bit number of the memory device used regardless of the processing bit number of the control means used. To provide a data reading device and a method of the memory to be able to pursue the convenience of design and design.

상기한 목적을 달성하기 위한 이 발명의 구성은, 시스템의 동작이 필요한 데이타와 프로그램이 전송 비트 단위로 저장되어 있는 외부 메모리수단과 ; 시스템의 진단동작에 따라 신호의 상태가 가변되는 제 1 신호와, 리셋스위치의 동작상태에 따라 신호의 상태가 가변되는 제 2 신호와, 이용되는 전원의 상태에 따라 신호의 상태가 가변되는 제 3 신호와, 소정의 주기를 갖는 클럭신호에 응답하여 시스템을 리셋시키기 위한 리셋신호와, 상기 외부 메모리수단에 저장되어 있는 데이타를 판독하기 위해 상기 리셋신호가 비액티브상태로 된 후 인가되는 클럭신호를 카운팅하여 소정시간후에 액티브상태로 되고, 소정시간 동안 액티브상태를 유지하는 인터럽트신호를 출력하는 리셋 및 인터럽트신호 발생수단과 ; 상기 리셋신호에 따라 시스템의 상태를 리셋 시키고, 상기 인터럽트신호의 상태에 따라 상기 외부 메모리수단을 선택하여 해당 데이타를 판독하는 중앙 처리장치로 이루어지고 있다.An aspect of the present invention for achieving the above object is an external memory means for storing data and programs required for operation of the system in units of transmission bits; A first signal in which the state of the signal varies according to the diagnostic operation of the system, a second signal in which the state of the signal varies according to the operation state of the reset switch, and a third in which the state of the signal varies according to the state of the power supply used. A signal, a reset signal for resetting the system in response to a clock signal having a predetermined period, and a clock signal applied after the reset signal becomes inactive to read data stored in the external memory means. Reset and interrupt signal generating means for counting and outputting an interrupt signal which becomes active after a predetermined time and maintains an active state for a predetermined time; The central processing unit resets the state of the system according to the reset signal, selects the external memory means according to the state of the interrupt signal, and reads out the data.

이하, 첨부된 도면을 참고로 하여 이 발명의 실시예를 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described embodiments of the present invention;

제 1 도는 이 발명의 실시예에 따른 메모리의 데이타 판독장치의 블럭도, 제 2 도는 이 발명의 실시예에 따른 메모리의 데이타 판독방법의 동작 순서도, 제 3 도는 이 발명의 실시예에 따른 데이타 판독방법의 상세 순서도, 제 4 도는 이 발명의 실시예에 따른 리셋 및 인터럽트 신호 발생부의 상세 회로도, 제 5 도는 이 발명의 실시예에 따른 리셋 및 인터럽트 신호 발생부의 동작 타이밍도이다.1 is a block diagram of a data reading apparatus of a memory according to an embodiment of the present invention, FIG. 2 is an operation flowchart of a data reading method of a memory according to an embodiment of the present invention, and FIG. 3 is a data reading according to an embodiment of the present invention. 4 is a detailed circuit diagram of a reset and interrupt signal generator according to an embodiment of the present invention, and FIG. 5 is an operation timing diagram of a reset and interrupt signal generator according to an embodiment of the present invention.

제 1 도를 참고로 하여 이 발명의 구성을 살펴보면, 내부 메모리(11)에 저장되어 있는 프로그램에 의해 필요한 데이타를 판독하는 중앙처리장치(CPU : Central Process Unit,1)와, 상기 중앙처리장치(1)와 연결되어 중앙처리장치(1)의 동작을 제어하기 위해 데이타와 프로그램이 저장되어 있고 상기 중앙처리장치(1)의 판독 동작에 따라 필요한 데이타를 출력하는 외부 롬(ROM,2)과, 상기 중앙처리장치(1)에 연결되며 상기 중앙처리장치(1)의 리셋신호와 인터럽트신호를 발생시키는 리셋 및 인터럽트 신호 발생부(3)와, 상기 중앙처리장치(1)와 외부 롬(2)에 연결되어 중앙처리장치(1)의 동작에 필요한 입력신호 변환장치와 외부 통신장치와 동작제어장치 등으로 구성되어 있는 주변장치부(4)로 이루어져 있다.Referring to the configuration of the present invention with reference to FIG. 1, a central processing unit (CPU) 1 for reading data required by a program stored in the internal memory 11 and the central processing unit ( An external ROM (ROM) 2 connected to 1) for storing data and programs for controlling the operation of the central processing unit 1 and outputting necessary data according to the reading operation of the central processing unit 1; A reset and interrupt signal generator (3) connected to the central processing unit (1) and generating a reset signal and an interrupt signal of the central processing unit (1), the central processing unit (1) and an external ROM (2); It is connected to the peripheral device portion 4 is composed of an input signal conversion device for the operation of the central processing unit (1), an external communication device and an operation control device.

상기 리셋 및 인터럽트 신호 발생부(3)는 제어신호(-DWL,-SW-RST,MODE)와 클럭신호(CK)가 입력 되는 입력부(31)와, 상기 입력부(31)에 연결되어 입력부(31)에서 인가되는 신호를 카운팅하는 카운터부(32)와, 상기 카운터부(32)와 연결되어 카운터부(32)에서 카운팅된 신호를 출력하는 출력부(32)로 이루어져 있다.The reset and interrupt signal generator 3 is an input unit 31 to which a control signal (-DWL, -SW - RST, MODE) and a clock signal CK are input, and is connected to the input unit 31 and is connected to the input unit 31. Counter unit 32 for counting the signal applied from the, and the output unit 32 is connected to the counter unit 32 and outputs the counted signal from the counter unit (32).

상기 입력부(31)는 진단신호(-DWL)에 제 1 입력단자가 연결되어 있고 리셋요구신호(-SW-RST)에 제 2 입력단자가 연결되어 있는 AND게이트(AND311)와, 전원상태 감시신호(MODE)에 제 1 입력단자가 연결되어 있고 클럭신호(CK)에 제 2 입력단자가 연결되어 있는 AND게이트(AND312)와, 상기 AND게이트(AND311)의 출력단자에 입력단자가 연결되어 있는 인버터(INV311)로 이루어져 있다.The input unit 31 includes an AND gate AND311 having a first input terminal connected to a diagnostic signal (-DWL) and a second input terminal connected to a reset request signal (-SW - RST), and a power state monitoring signal. Inverter having an AND gate (AND312) connected to a first input terminal (MODE) and a second input terminal connected to a clock signal CK, and an input terminal connected to an output terminal of the AND gate (AND311). It consists of (INV311).

상기 카운터부(32)는 상기 입력부(31)의 인버터(INV311)의 출력신호에 제1 및 제 2 입력단자(R01,R02)가 연결되어 있고 상기 입력부(31)의 AND게이트(AND312)의 출력단자에 제 1 클럭단자(CLKA)가 연결되어 있고 제 1 출력단자(QA)에 제 2 클럭단자(CLKB)가 연결되어 있는 제 1 카운터(321)와, 상기 입력부(31)의 상기 출력부(33)에서 인가되는 신호에 제1 및 제 2 입력단자(R01,R02)가 연결되어 있고 입력부(31)의 AND게이트(AND312)의 출력단자에 제 1 클럭단자(CLKA)가 연결되어 있고 제 1 출력단자(QA)에 제 2 클럭단자(CLKB)가 연결되어 있는 제 2 카운터(322)로 이루어져 있다.The counter 32 has first and second input terminals R01 and R02 connected to the output signal of the inverter INV311 of the input unit 31, and outputs of the AND gate AND312 of the input unit 31. A first counter 321 having a first clock terminal CLKA connected to a terminal and a second clock terminal CLKB connected to a first output terminal QA, and the output unit of the input unit 31; The first and second input terminals R01 and R02 are connected to the signal applied from 33, and the first clock terminal CLKA is connected to the output terminal of the AND gate AND312 of the input unit 31. The second counter 322 has a second clock terminal CLKB connected to the output terminal QA.

상기 출력부(33)는 상기 카운터부(32)의 제 1 카운터(321)의 제 4 출력단자(QD)에 입력단자가 연결되어 있는 AND게이트(AND331)와, 상기 카운터부(32)의 제 2 카운터(322)의 제 4 출력단자(QD)에 입력단자가 연결되어 있는 AND게이트(AND332)와, AND게이트(AND331)의 출력단자가 클럭단자(CLK)가 연결되어 있고 상기 입력부(31)의 AND게이트(AND311)의 출력단자에 클리어단자(CLR)가 연결되어 있고 전원(Vcc)에 입력단자(D)가 연결되어 있는 D플립플롭(DF331)와, AND게이트(AND332)의 출력단자가 클럭단자(CLK)가 연결되어 있고 상기 입력부(31)의 AND게이트(AND311)의 출력단자에 클리어단자(CLR)가 연결되어 있고 전원(Vcc)에 입력단자(D)가 연결되어 있는 D플립플럽(DF332)와, 상기 D플립플럽(DF331)의 출력단자(Q)에 입력단자가 연결되어 있는 인버터(INV331)와, D플립플럽(DF331)의 출력단자(Q)에 입력단자가 연결되어 있고 상기 카운터부(32)의 제 2 카운터(321)의 제1 및 제 2 입력단자(R01,R02)에 출력단자가 연결되어 있는 인버터(INV332)와, 인버터(INV331)의 출력단자에 제 1 입력단자가 연결되어 있고 D플립플럽(DF332)의 출력단자(Q)에 제 2 입력단자가 연결되어 있는 OR게이트(OR331)로 이루어져 있다.The output unit 33 includes an AND gate AND331 connected to an input terminal of a fourth output terminal QD of the first counter 321 of the counter unit 32, and an output of the counter unit 32. An AND gate AND332 having an input terminal connected to the fourth output terminal QD of the second counter 322, and a clock terminal CLK connected to the output terminal of the AND gate AND331 are connected to the input terminal 31. The output terminal of the AND gate AND332 and the D flip-flop DF331 having the clear terminal CLR connected to the output terminal of the AND gate AND311 and the input terminal D connected to the power supply Vcc. D flip-flop DF332 connected to (CLK), the clear terminal (CLR) is connected to the output terminal of the AND gate (AND311) of the input unit 31, the input terminal (D) is connected to the power supply (Vcc) ), An inverter INV331 having an input terminal connected to the output terminal Q of the D flip flop DF331, and an input terminal to the output terminal Q of the D flip flop DF331. The inverter INV332 connected to the first and second input terminals R01 and R02 of the second counter 321 of the counter unit 32 and the output terminal of the inverter INV331. It consists of an OR gate OR331 having one input terminal connected and a second input terminal connected to the output terminal Q of the D flip flop DF332.

상기와 같이 이루어져 있는 이 발명의 동작은 다음과 같다.The operation of the present invention made as described above is as follows.

32비트의 중앙처리장치(1)의 내부 램(Random Access Memory : RAM,11)에 내장되어 있는 프로그램에 따라 중앙처리장치(1)는 외부 장치에서 입력되는 데이타나 중앙처리장치(1)의 동작을 제어하기 위한 데이타를 판독한다.According to a program embedded in the internal RAM of the 32-bit central processing unit 1, the central processing unit 1 operates the data inputted from an external device or the central processing unit 1; Read data to control.

따라서, 상기 중앙처리장치(1)의 내부 메모리장치에 저장되어 있는 알고리즘에 따라 동작에 필요한 데이타의 판독동작을 설명한다.Therefore, the operation of reading data necessary for the operation according to the algorithm stored in the internal memory device of the central processing unit 1 will be described.

먼저, 동작이 시작되면(20), 정확한 동작을 수행할 수 있도록 시스템의 상태를 초기화한다(20). 그리고 초기화동작이 완료되면 중앙처리장치(2)는 외부에서 인가되는 제어신호(MC/-MP)의 값을 판단하여(30), 중앙처리장치(1)의 사용형태를 설정한다.First, when the operation is started (20), to initialize the state of the system to perform the correct operation (20). When the initialization operation is completed, the central processing unit 2 determines the value of the control signal MC / -MP applied from the outside (30), and sets the usage mode of the central processing unit (1).

이 발명의 실시예에서 이용하고 있는 중앙처리장치(1)는 상기 제어신호(MC/-MP)의 값이 고레벨인 "H"일 경우엔 마이크로 컴퓨터로 동작하고, 제어신호(MC/-MP)의 값이 저레벨인 "L"일 경우엔 마이크로 프로세서로 동작될 수 있도록 되어 있다.The central processing unit 1 used in the embodiment of the present invention operates as a microcomputer when the value of the control signal MC / -MP is "H" at a high level, and the control signal MC / -MP. If the value of "L" is a low level, the microprocessor can operate.

그러므로 제어신호(MC/-MP)의 값을 조정하여 사용자의 사용목적에 따라 중앙처리장치의 사용형태를 조정할 수 있다.Therefore, by adjusting the value of the control signal (MC /-MP) it is possible to adjust the use of the central processing unit according to the user's purpose of use.

그러므로 상기 제어단자(MC/-MP)의 값이 "H"일 경우에 중앙처리장치(1)는 마이크로 컴퓨터로 동작하고, 제어단자(MCBL/-MP)의 값이 "L"일 경우엔 중앙처리장치(1)는 마이크로 프로세서로 동작될 수 있는 상태가 된다.Therefore, when the value of the control terminal MC / -MP is " H ", the CPU 1 operates as a microcomputer, and when the value of the control terminal MCBL / -MP is " L " The processing device 1 is in a state capable of being operated by a microprocessor.

따라서 제어단자(MC/-MP)의 값이 "H"일 경우에 중앙처리장치(1)는 외부 롬(2)에 저장되어 있는 데이타와 프로그램에 따라 동작될 수 있도록 하고, 제어단자(MC/-MP)의 값이 "L"일 경우엔 마이크로 프로세서로 동작될 수 있도록 한다(80).Therefore, when the value of the control terminal MC / -MP is " H ", the CPU 1 can operate according to data and programs stored in the external ROM 2, and control terminal MC / -MP. If the value of -MP) is " L ", it can be operated by the microprocessor (80).

그러므로 중앙처리장치(1)가 마이크로 컴퓨터로 동작될 경우에 중앙처리장치(1)는 리셋 및 인터럽트 신호 발생부(3)에서 출력되는 인터럽트신호(-INT0~-INT2)중에서 인터럽트신호(-INT0,-INT1)의 값이 "0"인가를 판단한다(40).Therefore, when the central processing unit 1 is operated by a microcomputer, the central processing unit 1 is selected from among the interrupt signals (-INT0 to -INT2) output from the reset and interrupt signal generating unit 3. It is determined whether the value of INT1) is "0" (40).

중앙처리장치(1)는 상기 리셋 및 인터럽트 신호 발생부(3)에서 출력되는 인터럽트신호(-INT0~-INT2)의 상태에 따라 외부 롬(2)에 저장되어 있는 데이타를 판독할 것인지, 아니면 외부에 연결되어 있는 통신 장치를 통해 외부에서 입력되는 데이타를 판독할 것인지 판단한다.The central processing unit 1 reads the data stored in the external ROM 2 according to the state of the interrupt signals (-INT0 to -INT2) output from the reset and interrupt signal generator 3, or externally. It is determined whether to read data input from an external device through a communication device connected to the device.

그러므로 상기 리셋 및 인터럽트 신호 발생부(3)에서 출력되는 인터럽트신호(-INT0~-INT2)중에서 인터럽트신호(-INT0,-INT1)의 값이 저레벨인 "L"일 경우에 중앙처리장치(1)는 외부 롬(2)에 저장되어 있는 데이타를 판독한다.Therefore, the central processing unit 1 when the interrupt signal (-INT0, -INT1) is low level "L" among the interrupt signals (-INT0 to -INT2) output from the reset and interrupt signal generating section (3). Reads the data stored in the external ROM (2).

제 4 도를 참고로 하여 리셋 및 인터럽트 신호 발생부(3)의 동작상태를 설명한다.An operation state of the reset and interrupt signal generator 3 will be described with reference to FIG.

먼저, 도시되지 않은 방법으로 자기진단 동작결과에 따라 신호값이 가변되는 진단신호(-DWL)는 시스템의 동작상태가 정상상태일 경우에 고레벨인 "H"이지만, 자기진단동작을 통해 시스템이 정상적으로 동작하지 않고 오동작을 수행한다고 판단되면, 진단신호(-DWL)는 저레벨인 "L"로 가변된다.First, the diagnostic signal (-DWL) whose signal value is variable according to the self-diagnosis operation result in a method not shown is "H", which is a high level when the operation state of the system is normal, but the system is normally operated by the self-diagnosis operation. If it is determined that a malfunction is performed without operating, the diagnostic signal -DWL is changed to "L" which is a low level.

그리고 리셋요구신호(-SW_RST)는 시스템에 장착되어 있는 리셋스위치가 동작되면 저레벨인 "L"가 되고, 통상시에는 고레벨인 "H"가 된다.The reset request signal -SW_RST becomes low level "L" when the reset switch mounted in the system is operated, and normally high level "H".

그리고 전원상태 감시신호(MODE)는 전원 감시신호로 이용되는 전원의 상태가 정상상태일 경우에 고레벨인 "H"가 되고, 전원의 상태가 비정상일 경우엔 저레벨인 "L"가 된다.The power state monitoring signal MODE becomes a high level "H" when the state of the power source used as the power state monitoring signal is a normal state, and a low level "L" when the state of the power source is abnormal.

그러므로 시스템의 상태가 정상일 때인 진단신호(-DWL)와 전원상태 감시신호(MODE)가 제 5 도의 a와 b처럼 고레벨인 "H"가 되고, 제 5 도의 c처럼 리셋신호가 액티브상태에서 비액티브상태로 전환되어 제 5 도의 c처럼 리셋요구신호(-SW_RST)가 저레벨인 "L"상태에서 고레벨인 "H"상태로 전환되고, 제 5 도의 d처럼 클럭신호(CK)가 인가될 때의 동작은 다음과 같다.Therefore, the diagnostic signal (-DWL) and the power state monitoring signal MODE, which are normal when the system is in a normal state, become high level "H" as shown in a and b of FIG. 5, and the reset signal is inactive when the reset signal is active as shown in c of FIG. Operation when the reset request signal (-SW 신호 RST) is switched from the low level " L " state to the high level " H " state and the clock signal CK is applied as d of FIG. Is as follows.

먼저, 제 5 도의 c처럼 리셋요구신호(SW_RST)가 저레벨인 "L"상태일 경우에 입력부(31)의 AND게이트(AND311)의 출력단자인 리셋단자(-RESET)로 저레벨인 "L"를 출력한다.First, as shown in FIG. 5C, when the reset request signal SW_RST is in the low level "L" state, the low level "L" is set to the reset terminal (-RESET) which is the output terminal of the AND gate AND311 of the input unit 31. Output

그러므로 상기와 같은 리셋신호(-RESET)로 인하여 정상적인 시스템의 동작을 위해 시스템의 상태를 초기화한다.Therefore, due to the above reset signal (-RESET) to initialize the system state for the normal operation of the system.

이때 카운터부(32)는 제 1 카운터(321)의 리셋입력단자로(R01,R02)로 모두 고레벨인 "H"가 인가되어 출력단자(QA,QD)로 저레벨인 "L"신호가 출력되고, 상기 제 1 카운터(321)의 동작에 따라 제 2 카운터의 출력단자(QA,QD)의 상태로 저레벨인 "L"상태가 된다.At this time, the counter 32 is supplied with the high level "H" to the reset input terminals R01 and R02 of the first counter 321, and the low level "L" signal is output to the output terminals QA and QD. In response to the operation of the first counter 321, the state of the output terminals QA and QD of the second counter becomes a low level "L" state.

따라서 인터럽트(INTn)의 신호는 고레벨인 "H"상태를 유지한다.Therefore, the signal of the interrupt INTn maintains the high level "H" state.

그러나 리셋요구신호(SW_RST)의 상태가 고레벨인 "H"상태로 전환되면, 입력부(31)의 인버터(INV311)의 입력단자로 인가되어 카운터부(32)의 제 1 카운터(CT321)의 리셋입력단자(R01,R02)로 저레벨인 "L"신호가 인가되면, 상기 제 1 카운터(CT321)는 입력되는 클럭신호(CK)를 카운팅한다.However, when the state of the reset request signal SW_RST is changed to the high level "H" state, it is applied to the input terminal of the inverter INV311 of the input unit 31 to reset the input of the first counter CT321 of the counter unit 32. When the low level "L" signal is applied to the terminals R01 and R02, the first counter CT321 counts the input clock signal CK.

그러므로 제 1 카운터(CT321)의 동작으로 제 1 카운터(CT321)의 제 4 출력단자(QD)에 연결되어 있는 출력부(33)의 AND게이트(AND331)의 출력신호는 제 5도의 e에 도시된 것과 같은 신호가 출력된다.Therefore, the output signal of the AND gate AND331 of the output unit 33 connected to the fourth output terminal QD of the first counter CT321 by the operation of the first counter CT321 is shown in FIG. Signal is output.

따라서 상기 AND게이트(AND331)의 출력신호에 의해 제1D플립플럽(DF331)이 동작하여 제 5 도의 f와 같은 신호가 출력단자(Q)로 출력되어 인버터(INV331,INV332)의 입력단자로 인가된다.Accordingly, the first D flip-flop DF331 is operated by the output signal of the AND gate AND331, and the signal as shown in FIG. 5 is output to the output terminal Q and is applied to the input terminals of the inverters INV331 and INV332. .

그러므로 상기 인버터(INV332)의 출력신호가 제 5 도의 g와 같은 신호가 카운터부(32)의 제 2 카운터(CT322)의 리셋입력단자(R01,R02)로 저레벨인 "L"가 인가되면, 상기 제 2 카운터(CT322)는 동작을 시작한다.Therefore, when the output signal of the inverter INV332 is the same as g of FIG. 5 and the low level " L " is applied to the reset input terminals R01 and R02 of the second counter CT322 of the counter unit 32, The second counter CT322 starts operation.

따라서 제 2 카운터(CT332)의 동작으로 제 4 출력단자(QD)에서 출력되는 신호에 따라 AND게이트(AND332)의 출력단자로 제 5 도의 h와 같은 신호가 출력되어 제2D플립플럽(DF332)의 클럭단자(CK)로 인가되어 제 5 도의 i와 같은 신호가 출력된다.Accordingly, a signal such as h of FIG. 5 is output to the output terminal of the AND gate AND332 according to the signal output from the fourth output terminal QD by the operation of the second counter CT332, so that the second D flip flop DF332 It is applied to the clock terminal CK to output a signal as shown in FIG.

그러므로 제1D플립플럽(DF331)의 반전신호와 제2D플립플럽(DF332)의 출력신호가 OR게이트(OR331)의 입력단자로 인가되어 인터럽트단자(INRn)로 인가되는신호가 제 5 도의 j와 같이 리셋요구신호(-SW_RST)가 비액티브상태로 되어 리셋신호(-RESET)신호가 비액티브상태로 된 후 소정시간(t1) 동안 지연되어 소정시간(t2) 동안 액티브상태인 저레벨을 유지하는 신호가 된다.Therefore, the inverted signal of the 1D flip flop DF331 and the output signal of the 2D flip flop DF332 are applied to the input terminal of the OR gate OR331 so that the signal applied to the interrupt terminal INRn is as shown in FIG. 5. After the reset request signal (-SW_RST) becomes inactive, the reset signal (-RESET) becomes inactive and is delayed for a predetermined time (t1) to maintain a low level that is active for a predetermined time (t2). do.

이때 상기와 같이 리셋요구신호(-SW_RST)가 고레벨인 "H"상태로 전환된 후 소정시간(t1) 지연한 후 인터럽트신호(INTn)를 액티브상태인 "L"상태로 전환하는 이유는 다음과 같다.At this time, the reset request signal (-SW_RST) is switched to the high level "H" state, and then the predetermined time (t1) is delayed, and then the interrupt signal (INTn) is switched to the active "L" state. same.

시스템의 동작이 정상적으로 진행되기 위해서는 먼저 시스템의 초기화가 정상적으로 이루어진 후 동작을 수행해야 한다.In order for the system's operation to proceed normally, the system's initialization must be normally performed before the operation.

그러므로 리셋신호(-RESET)가 액티브상태일 경우에 입력되는 모든 신호는 무시되고 시스템의 리셋동작만을 실행한다.Therefore, when the reset signal (-RESET) is active, all input signals are ignored and only the reset operation of the system is executed.

따라서 시스템의 리셋동작이 완료된 후 곧바로 해당하는 데이타를 판독하기 위해 인터럽트신호(INTn)를 액티브시킬 경우에 리셋신호(-RESET)와 인터럽트신호(INTn)가 서로 매칭되어 인터럽트신호에 대한 데이타 판독결과가 잘못되는 경우가 발생한다.Therefore, when the interrupt signal INTn is activated to read the corresponding data immediately after the reset operation of the system is completed, the reset signal (-RESET) and the interrupt signal (INTn) match each other, and the data read result of the interrupt signal is displayed. Something wrong happens.

따라서 정확한 인터럽트신호(INTn)의 상태를 판단하기 위해 리셋신호(-RESET)로 시스템의 리셋동작이 완전히 완료되고, 리셋신호(-RESET)와 인터럽트신호(INTn)가 서로 매칭되지 않도록 소정시간(t1) 동안 지연하여 인터럽트신호(INTn)가 액티브될 수 있도록 한다.Therefore, in order to determine the state of the correct interrupt signal INTn, the reset operation of the system is completely completed by the reset signal (-RESET), and the predetermined time (t1) does not match the reset signal (-RESET) and the interrupt signal (INTn). Delay to make the interrupt signal INTn active.

즉, 인터럽트상태를 판단하기 위한 동작을 몇사이클 수행한 뒤 인터럽트신호 (INTn)를 액티브시켜 리셋신호(-RESET)와의 매칭으로 인한 문제를 방지할 수 있도록 한다.That is, after several cycles of the operation for determining the interrupt status, the interrupt signal INTn is activated to prevent problems due to matching with the reset signal (-RESET).

그리고 소정의 시간(t2) 동안 인터럽트신호(INTn)의 액티브상태를 유지하는 이유는 인터럽트신호(INTn)의 액티브상태를 정확하게 판단하기 위한 것이다.The reason for maintaining the active state of the interrupt signal INTn for a predetermined time t2 is to accurately determine the active state of the interrupt signal INTn.

왜냐하면 매우 짧은시간 동안 인터럽트신호(INTn)를 액티브시킬 경우에 시스템의 동작으로 발생하는 노이즈의 영향으로 중앙처리장치(1)가 정확한 액티브상태를 판단하지 못할 경우가 발생한다.This is because when the interrupt signal INTn is activated for a very short time, the CPU 1 cannot determine the correct active state due to the noise generated by the operation of the system.

그러므로 인터럽트신호(INTn)의 액티브상태를 충분히 인식할 수 있도록 소정시간(t2) 동안 액태브상태를 유지하여 노이즈의 영향으로 인해 인터럽트신호(INTn)를 인식하지 못하는 문제를 해결할 수 있도록 한다.Therefore, the active state is maintained for a predetermined time t2 to sufficiently recognize the active state of the interrupt signal INTn, thereby solving the problem of not recognizing the interrupt signal INTn due to the influence of noise.

그리고 외부 롬(2)에 저장되어 있는 데이타를 판독할 것인지, 아니면 외부의 입력장치에서 인가되는 데이타를 판독할 것인지를 판단하기 위해 이용되는 인터럽트신호는 모두 세개의 신호(-INT0~-INT2)를 이용한다.The interrupt signals used to determine whether to read data stored in the external ROM 2 or data applied from an external input device are all three signals (-INT0 to -INT2). I use it.

따라서 해당 데이타를 판독하고자 하는 장치에 따라 인터럽트신호(INT0~INT2)중에서 해당 인터럽트단자(-INT0~-INT2)를 선택하여 상기와 같은 동작을 출력되는 신호를 선택된 인터럽트단자(-INT0~-INT2)에만 출력한다.Therefore, select the interrupt terminal (-INT0 ~ -INT2) among the interrupt signals (INT0 ~ INT2) according to the device to read the data and select the interrupt terminal (-INT0 ~ -INT2) to output the above-mentioned signal. Only output

그러므로 외부 롬(2)에 저장되어 있는 데이타를 판독하고자 할 경우에 중앙처리장치(1)는 인터럽트단자(-INT0~~INT1)를 선택하여 선택된 단자(-INT0~-INT1) 중에서 어느 한 인터럽트단자에 저레벨인 "L"신호가 인가될 수 있도록 한다.Therefore, in order to read the data stored in the external ROM 2, the CPU 1 selects the interrupt terminal (-INT0 to INT1) and selects one of the selected interrupt terminals (-INT0 to -INT1). A low level "L" signal can be applied to the.

따라서 상기와 같은 리셋 및 인터럽트 신호 발생부(3)의 동작에 의해 인터럽트신호( -INT0~-INT1)중에서 어느 한 신호가 저레벨인 "L"의 값을 유지하고 있을 경우에 중앙처리장치(1)는 외부 롬(2)에 저장되어 있는 데이타를 입력하기 위한 롬 데이타 판독동작을 실행한다(60).Therefore, when any one of the interrupt signals (-INT0 to -INT1) maintains the low level "L" value by the operation of the reset and interrupt signal generator 3 as described above, the central processing unit 1 Executes a ROM data read operation for inputting data stored in the external ROM 2 (60).

그러나 인터럽트신호(-INT0~-INT1)가 저레벨인 "L"가 아닐 경우에 중앙처리장치(1)는 인터럽트신호(-INT2)의 값이 저레벨인 "L"인가를 판단한다(50).However, when the interrupt signals -INT0 to -INT1 are not low level "L", the CPU 1 determines whether the value of the interrupt signal -INT2 is "L" low level (50).

따라서, 인터럽트신호(-INT2)가 저레벨인 "L"일 경우에 중앙처리장치(1)는 외부에 장착되어 있는 통신 장치에서 인가되는 데이타에 따라 동작된다(70).Therefore, when the interrupt signal (-INT2) is " L " at low level, the central processing unit 1 is operated in accordance with data applied from an externally mounted communication device (70).

그러나 인터럽트신호(-INT2)도 저레벨인 "L"이 아닐 경우에 중앙처리장치(1)는 계속해서 인터럽트신호(-INT0~-INT2)의 상태를 판단한다.However, when the interrupt signal (-INT2) is also not at the low level "L", the CPU 1 continues to judge the state of the interrupt signals (-INT0 to -INT2).

이하, 인터럽트신호(-INT0,-INT1)중에서 어느 한 신호가 저레벨인 "L"일 경우에 외부 롬(2)에 저장되어 있는 데이타를 수신하는 방법을 설명한다.A method of receiving data stored in the external ROM 2 when any one of the interrupt signals -INT0 and -INT1 is "L" at a low level will be described.

상기와 같은 인터럽트신호(-INT0,-INT1)에 의해 외부 롬(2)의 데이타를 판독할 경우에 먼저, 중앙처리장치(1)는 외부 롬(2)에 데이타가 저장되어 있는 번지수를 판단하기 위하여 설정된 부트(boot)번호를 판단하여 외부 롬(2)의 데이타저장 시작번지를 판단한다(62).When reading the data of the external ROM 2 by the interrupt signals (-INT0, -INT1) as described above, the CPU 1 first determines the address number where the data is stored in the external ROM 2. In order to determine the boot number set in order to determine the data storage start address of the external ROM 2 (62).

이 발명의 실시예에서 부트번호가 "0"일 경우엔 외부 롬의 "1000"번지에서부터 해당하는 데이타가 저장되어 있는 것으로 판단하고, 부트번호가 "1"일 경우엔 외부 롬의 "400000"번지에서부터 데이타가 저장되고, 부트번호가 "2"일 경우엔 외부 롬의 "FF000"번지에서부터 데이타가 저장되어 있는 것으로 판단한다.In the embodiment of the present invention, when the boot number is "0", it is determined that the corresponding data is stored from the "1000" address of the external ROM, and when the boot number is "1", the "400000" address of the external ROM. If the data is stored from, and if the boot number is "2", it is determined that the data is stored from the "FF000" address of the external ROM.

그러므로 중앙처리장치(1)는 설정된 부트의 값을 판단하여 외부 롬(2)에 데이타가 저장되어 있는 시작번지부터 순차적으로 판독하여 저장되어 있는 데이타를 판독한다.Therefore, the central processing unit 1 determines the value of the set boot and sequentially reads from the start address where the data is stored in the external ROM 2 to read the stored data.

그리고 상기와 같이 부트번호를 판단하여 데이타가 저장되어 있는 시작번지를 판단하면, 중앙처리장치(1)는 시작번지부터 첫번째 영역에 저장되어 있는 데이타를 판독하여 데이타 전송비트를 판단한다(63).When the boot number is determined as described above, the CPU 1 determines the data transmission bit by reading the data stored in the first area from the start address (63).

이 발명은 하나의 8비트의 롬을 이용하여 32비트의 데이타처리가 가능할 수 있도록 하기위한 것으로서, 이 발명의 실시예에서의 데이타 전송비트는 8비트로 설정된다.The present invention is to enable 32-bit data processing by using one 8-bit ROM, and the data transmission bit in the embodiment of the present invention is set to 8 bits.

그리고 두번째 영역에 저장되어 있는 데이타를 판독하여 외부 롬(2)의 데이타 처리속도를 판단한다(64).The data stored in the second region is read to determine the data processing speed of the external ROM 2 (64).

상기와 같이 외부 롬(2)의 데이타 처리속도를 판단하는 이유는 중앙처리장치(1)와 외부 롬(2)간의 데이타 처리속도의 차이로 인해 전송데이타를 잘못 판단하여 전송정보를 잘못 판단하는 문제를 해결하기 위한 것이다.The reason for determining the data processing speed of the external ROM 2 as described above is a problem of incorrectly determining the transmission information by incorrectly determining the transmission data due to the difference in the data processing speed between the central processing unit 1 and the external ROM 2. To solve the problem.

그러므로 외부 롬(2)의 데이타 처리속도를 판단하여 외부 롬(2)에서 전송되는 모든 데이타는 판독한 후 중앙처리장치(1)의 데이타 처리속도에 따라 데이타를 처리할 수 있도록 한다.Therefore, the data processing speed of the external ROM 2 is determined so that all data transmitted from the external ROM 2 can be read and processed according to the data processing speed of the central processing unit 1.

그리고 세번째 영역에 저장되어 있는 데이타를 판독하여 외부 롬(2)에 저장되어 있는 데이타의 크기를 판단하여 중앙처리장치(1)의 동작에 필요한 실제 데이타가 저장되어 있는 블럭의 크기를 판단한다(65).Then, the data stored in the third area is read to determine the size of the data stored in the external ROM 2 to determine the size of the block in which the actual data necessary for the operation of the CPU 1 is stored (65). ).

그러므로 중앙처리장치(1)에서 외부 롬(2)에 저장되어 있는 데이타를 판독할 경우에 저장된 모든 데이타를 판독할 수 있도록 한다.Therefore, when the central processing unit 1 reads the data stored in the external ROM 2, all the stored data can be read.

그리고 중앙처리장치(1)는 실제 데이타가 저장되어 있는 블럭의 크기가 "0"인지를 판단한여(66) 외부 롬(2)에 동작에 필요한 실제 데이타가 저장되어 있는지를 확인한다.The CPU 1 determines whether the size of the block in which the actual data is stored is "0" (66) and checks whether the actual data necessary for the operation is stored in the external ROM 2.

그러므로 실제 데이타가 저장되어 있는 블럭의 크기가 "0"이 아닐 경우에 중앙처리장치(1)는 네번째 영역에 저장되어 있는 데이타를 판독하여 중앙처리장치(1)에 내장되어 있는 내부 램(11)의 번지 시작번지를 판단하여(67), 판단된 시작번지에서부터 판독된 데이타를 저장할 수 있도록 한다.Therefore, when the size of the block in which the actual data is stored is not "0", the central processing unit 1 reads the data stored in the fourth area and internal RAM 11 built in the central processing unit 1. By determining the start address of the address (67), it is possible to store the data read from the determined start address.

이 발명의 실시예에서 내부 램(11)의 시작번지는 "809800H"이나, 데이타 판독시 사용되는 내부 램(11)부분을 고려하여 프로그램의 시작번지는 "809810H"로 하였다.In the embodiment of the present invention, the start address of the internal RAM 11 is "809800H", but the start address of the program is set to "809810H" in consideration of the part of the internal RAM 11 used when reading data.

상기와 같이 외부 롬(2)에 저장되어 있는 판독동작에 필요한 데이타를 판독한 후, 중앙처리장치(2)는 실제 동작에 필요한 데이타나 프로그램을 판독하게 된다.After reading the data necessary for the read operation stored in the external ROM 2 as described above, the central processing unit 2 reads the data or program required for the actual operation.

따라서 중앙처리장치(1)는 다시한번, 외부 롬(2)에 저장되어 있는 실제 데이타의 크기가 "0"이 아닌지를 판단하여(68), 외부 롬(2)에 동작에 필요한 실제 데이타가 저장되어 있는지를 판단한다.Therefore, the central processing unit 1 again determines whether the size of the actual data stored in the external ROM 2 is not "0" (68), and stores the actual data necessary for operation in the external ROM 2. Determine if it is.

그러므로 실제 데이타의 크기가 '0"일 경우엔 중앙처리장치(1)의 실제 동작에 필요한 데이타가 외부 롬(2)에 아무것도 저장되어 있지 않거나, 저장되어 있는 모든 데이타를 판독한 것으로 판단하여 중앙처리장치(1)의 내부 램(11)의 처음 시작번지를 가서(612), 내부 램(11)에 저장되어 있는 데이타를 32비트로 처리될 수 있도록 신호를 처리한 후 해당동작을 실행한다(100).Therefore, if the actual data size is '0', the central processing unit judges that the data necessary for the actual operation of the central processing unit 1 is not stored in the external ROM 2 or that all stored data have been read. Go to the first start address of the internal RAM 11 of the device 1 (612), process the signal so that the data stored in the internal RAM 11 can be processed into 32 bits, and then execute the corresponding operation (100). .

그러나 데이타의 크기가 "0"이 아닐 경우에 중앙처리장치(1)는 순차적으로 어드레스 번지를 이동시켜 외부 롬(2)에 저장되어 있는 데이타를 판독하고(69), 한 번지의 데이타가 판독되면 처음 설정된 데이타의 크기에서 순차적으로 "1"씩 감소시킨다(610).However, when the size of data is not "0", the central processing unit 1 sequentially moves address addresses to read data stored in the external ROM 2 (69). In operation 610, the size of the initially set data is sequentially decreased by "1".

상기와 같은 데이타 판독동작을 실제 데이타의 크기가 "0"까지 감소될 때까지 계속 수행하여 외부 롬(2)에 저장되어 있는 데이타를 모두 판독한다.The above data read operation is continued until the size of the actual data is reduced to " 0 " to read all the data stored in the external ROM 2.

그러므로 상기와 같이 외부 롬(2)에 저장되어 있는 데이타를 판독하여 데이타 크기가 "0"이 되면, 중앙처리장치(1)는 외부 롬(2)의 세번째 영역에 저장되어 있는 데이타를 판독하여 실제 데이타의 크기가 판단한다(611).Therefore, when the data size is " 0 " by reading the data stored in the external ROM 2 as described above, the central processing unit 1 reads the data stored in the third area of the external ROM 2 and actually The size of the data is determined (611).

그러므로 실제 데이타의 크기가 "0"이 아닐 경우엔 상기와 같은 과정을 통해 판독된 데이타외에 다른 데이타가 계속해서 저장되어 있는 것으로 판단하여 상기한 동작과정을 통해 계속해서 저장되어 있는 데이타를 판독한다.Therefore, if the actual data size is not "0", it is determined that other data is continuously stored in addition to the data read through the above process, and the stored data is read through the above-described operation process.

그러나 데이타의 크기가 "0"일 경우에 중앙처리장치(1)는 더이상 외부 롬(2)에 저장되어 있는 데이타가 없는 것으로 판단하여 중앙처리장치(1)의 내부 램(11)의 처음 시작번지로 이동하여(612), 상기와 같은 데이타 판독동작에 따라 내부 램(11)에 저장되어 있는 데이타를 중앙처리장치(1)의 처리 비트수에 맞게 처리한후 프로그램을 실행하게 된다(100).However, when the size of data is "0", the CPU 1 determines that there is no data stored in the external ROM 2 and the first start address of the internal RAM 11 of the CPU 1 no longer exists. In operation 612, the program is executed after processing the data stored in the internal RAM 11 according to the number of processing bits of the central processing unit 1 according to the data read operation as described above.

그러므로 상기와 같이 외부 롬에 저장되어 있는 데이타를 외부 롬의 처리비트나 처리속도에 따라 중앙처리장치(1)가 판독하여 처리할 수 있도록 한다.Therefore, the central processing unit 1 can read and process data stored in the external ROM as described above according to the processing bit or processing speed of the external ROM.

그리고 상기한 실시예에서처럼 외부 롬(2)에서 판독된 데이타를 내부 램(11)에 저장할 경우에 설정된 내부 램(11)의 시작번지보다 소정의 번지수가 더 큰 번지부터 판독된 데이타를 저장하여 설정된 동작을 실행할 경우 발생하는 에러를 방지할 수 있다.As described in the above embodiment, when the data read from the external ROM 2 is stored in the internal RAM 11, the data read from the address having a predetermined address larger than the start address of the internal RAM 11 set is set. You can prevent errors that occur when you execute an action.

그러므로 상기와 같이 동작하는 이 발명의 효과는 중앙처리장치의 처리비트수에 맞게 외부 메모리에 저장되어 있는 데이타를 전송하지 않아도 되므로 데이타의 용량엔 무관하고, 단지 처리비트수를 맞추기 위해 다수개의 외부 메모리장치를 장착할 필요가 없으므로 많은 원가절감을 꾀할 수 있다.Therefore, the effects of the present invention operating as described above do not need to transfer the data stored in the external memory according to the number of processing bits of the central processing unit. There is no need to install the device, which can save a lot of cost.

그리고 데이타를 전송하기 위한 데이타 버스의 비트수를 사용되는 외부 메모리의 비트수에 따라 설정할 수 있으므로 주변장치가 매우 간단해지고, 시스템의 설계가 매우 용이해지므로 시스템의 신뢰성을 높일 수 있다.In addition, since the number of bits of the data bus for transmitting data can be set according to the number of bits of the external memory used, the peripheral device becomes very simple and the system design becomes very easy, thereby increasing the reliability of the system.

Claims (4)

시스템의 동작이 필요한 데이타와 프로그램이 전송 비트단위로 저장되어 있는 외부 메모리수단과 ; 시스템의 진단동작에 따라 신호의 상태가 가변되는 제 1 신호(-DWL)와, 리셋스위치의 동작상태에 따라 신호의 상태가 가변되는 제 2 신호(-SW_RST)와, 이용되는 전원의 상태에 따라 신호의 상태가 가변되는 제 3 신호(MODE)와, 소정의 주기를 갖는 클럭신호(CK)에 응답하여 시스템을 리셋시키기 위한 리셋신호(-RESET)와, 상기 외부 메모리수단에 저장되어 있는 데이타를 판독하기 위해 상기 리셋신호(-RESET)가 비액티브상태로 된 후 인가되는 클럭신호(CK)를 카운팅하여 소정시간(t1)후에 액티브상태로 되고, 소정시간(t2) 동안 액티브상태를 유지하는 인터럽트신호(INTn)를 출력하는 리셋 및 인터럽트 신호 발생수단과; 상기 리셋신호(-RESET)에 따라 시스템의 상태를 리셋시키고, 상기 인터럽트신호(INTn)의 상태에 따라 상기 외부 메모리수단을 선택하여 해당 데이타를 판독하는 중앙처리장치로 이루어지는 것을 특징으로 하는 메모리의 데이타 판독장치.External memory means for storing data and programs required for operation of the system in units of transmission bits; The first signal (-DWL) whose state is changed according to the diagnostic operation of the system, the second signal (-SW_RST) whose state is changed according to the operation state of the reset switch, and the state of the power supply used. A third signal MODE in which the state of the signal is variable, a reset signal (-RESET) for resetting the system in response to the clock signal CK having a predetermined period, and data stored in the external memory means. An interrupt for counting the clock signal CK applied after the reset signal (-RESET) becomes inactive for reading and becoming active after a predetermined time (t1), and maintaining an active state for a predetermined time (t2). Reset and interrupt signal generating means for outputting a signal INTn; And a central processing unit for resetting the state of the system according to the reset signal (-RESET), selecting the external memory means according to the state of the interrupt signal (INTn), and reading out the corresponding data. Reader. 제 1 항에 있어서, 상기 리셋 및 인터럽트 신호 발생수단은 상기 입력되는 제1 및 제 2 신호(-DWL,-SW_RST)를 논리곱하여 리셋신호(-RESET)를 출력하는 논리곱수단(AND311)과; 상기 논리곱수단(AND311)의 신호를 반전하는 반전수단(INV311)과; 상기 반전수단(INV311)의 출력신호가 리셋입력단자(R01, R02)로 입력되고, 제 3 신호(MODE)와 클럭신호(CK)가 논리곱된 신호가 제 1 클럭단자(CLKA)로 입력되는 제 1 카운터수단(CT321)과; 상기 제 1 카운터수단(CT321)의 출력신호(QD)가 클럭단자(CLK)로 입력되고 입력단자(D)에 전원(Vcc)이 연결되어 있는 제1D플립플럽(DF331)과; 상기 제1D플립플럽(DF331)의 출력신호(Q)를 반전시키기 위한 반전수단(INV331,INV332)과; 상기 반전수단(INV332)의 출력단자에 리셋입력단자(R01,R02)가 연결되어 있고 클럭단자(CK)에 제 1 클럭단자(CLKA)가 연결되어 있는 제 2 카운터(CT322)와; 상기 제 2 카운터(CT322)의 출력단자(QD)에 클럭단자(CK)가 연결되어 있고 입력단자(D)에 전원(Vcc)이 연결되어 있는 제2D플립플럽(DF332)과; 상기 반전수단(INV331)의 출력단자와 상기 제2D플립플럽(DF332)의 출력단자(Q)에 연결되어 인가되는 신호를 논리합하는 인터럽트신호(INTn)를 출력하는 논리합수단(OR331)으로 이루어져 있는 것을 특징으로 하는 메모리의 데이타 판독장치.2. The apparatus of claim 1, wherein the reset and interrupt signal generating means comprises: AND multiplication means (AND311) for outputting a reset signal (-RESET) by ANDing the input first and second signals (-DWL, -SW_RST); Inverting means (INV311) for inverting a signal of the AND product AND311; The output signal of the inverting means INV311 is input to the reset input terminals R01 and R02, and the signal obtained by logically multiplying the third signal MODE and the clock signal CK is input to the first clock terminal CLKA. First counter means CT321; A first D flip flop DF331 to which an output signal QD of the first counter means CT321 is input to a clock terminal CLK and a power supply Vcc is connected to the input terminal D; Inverting means (INV331, INV332) for inverting the output signal Q of the first D flip flop DF331; A second counter CT322 having reset input terminals R01 and R02 connected to an output terminal of the inverting means INV332 and a first clock terminal CLKA connected to a clock terminal CK; A second D flip flop DF332 having a clock terminal CK connected to the output terminal QD of the second counter CT322 and a power supply Vcc connected to the input terminal D; And a logic OR means OR331 for outputting an interrupt signal INTn, which is connected to an output terminal of the inverting means INV331 and an output terminal Q of the second D flip-flop DF332 and outputs an applied signal. A data reading device of a memory. 제 2 항에 있어서, 상기 인터럽트신호는 상기 제1D플립플럽(DF331)의 출력에 동기하여 액티브상태로 되고, 상기 제2D플립플럽(DF332)의 출력에 동기하여 비액티브상태로 되는 것을 특징으로 하는 메모리의 데이타 판독장치.3. The interrupt signal of claim 2, wherein the interrupt signal becomes active in synchronization with the output of the first flip flop DF331, and becomes inactive in synchronization with the output of the second flip flop DF332. Data reading device in memory. 제 1 항에 있어서, 상기 중앙처리장치의 데이타 처리단위는 상기 외부 메모리수단의 전송비트단위의 정수배인인 것을 특징으로 하는 메모리의 데이타 판독장치.The data reading apparatus of claim 1, wherein the data processing unit of the central processing unit is an integer multiple of the transmission bit unit of the external memory means.
KR1019930012438A 1993-07-02 1993-07-02 Data write device of memory KR950014084B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019930012438A KR950014084B1 (en) 1993-07-02 1993-07-02 Data write device of memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019930012438A KR950014084B1 (en) 1993-07-02 1993-07-02 Data write device of memory

Publications (2)

Publication Number Publication Date
KR950004266A KR950004266A (en) 1995-02-17
KR950014084B1 true KR950014084B1 (en) 1995-11-21

Family

ID=19358645

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019930012438A KR950014084B1 (en) 1993-07-02 1993-07-02 Data write device of memory

Country Status (1)

Country Link
KR (1) KR950014084B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101037152B1 (en) * 2004-04-23 2011-05-26 엘지전자 주식회사 Control method of washing machine

Also Published As

Publication number Publication date
KR950004266A (en) 1995-02-17

Similar Documents

Publication Publication Date Title
US4979102A (en) Microprocessor operable under direct connection to coprocessor
EP0432575B1 (en) Data processor having wait state control unit
EP0226950B1 (en) Memory access control circuit
US4630041A (en) Enhanced reliability interrupt control apparatus
JP2778222B2 (en) Semiconductor integrated circuit device
EP0645776A2 (en) Semiconductor memory device executing a memory test
JP2661222B2 (en) Pulse output device
US20070038795A1 (en) Asynchronous bus interface and processing method thereof
US5289517A (en) Digital pulse processing device
JP2504018B2 (en) Input circuit
EP0729088B1 (en) Single chip microcomputer having a plurality of timer counters
EP0408353A2 (en) Semiconductor integrated circuit
US4636945A (en) Microprocessor
JP3293125B2 (en) Initial setting and diagnosis method for on-chip multiprocessor system
KR950014084B1 (en) Data write device of memory
US4408276A (en) Read-out control system for a control storage device
WO1981001208A1 (en) Data processor having common monitoring and memory loading and checking means
US5748887A (en) Inter-processor asynchronous serial communication transmission/reception apparatus using each other's memories
EP0462622B1 (en) Microprocessor capable of ensuring flexible recovery time for I/O device
US5058050A (en) Timer unit and data processing apparatus including the same
EP0111251A1 (en) Data transmission system
US5897653A (en) Data tracing apparatus
JPH06236291A (en) Peripheral apparatuses at inside and at outside and microcomputer capable of being operated in emulation mode
US6393542B1 (en) Electronic circuit system and interface circuit that compares read and write clock operations
US4771402A (en) Address comparator

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
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: 19981109

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee