KR100275958B1 - Microcomputer unit - Google Patents

Microcomputer unit Download PDF

Info

Publication number
KR100275958B1
KR100275958B1 KR1019980045163A KR19980045163A KR100275958B1 KR 100275958 B1 KR100275958 B1 KR 100275958B1 KR 1019980045163 A KR1019980045163 A KR 1019980045163A KR 19980045163 A KR19980045163 A KR 19980045163A KR 100275958 B1 KR100275958 B1 KR 100275958B1
Authority
KR
South Korea
Prior art keywords
address
signal
enable signal
control signal
program memory
Prior art date
Application number
KR1019980045163A
Other languages
Korean (ko)
Other versions
KR20000027261A (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 KR1019980045163A priority Critical patent/KR100275958B1/en
Publication of KR20000027261A publication Critical patent/KR20000027261A/en
Application granted granted Critical
Publication of KR100275958B1 publication Critical patent/KR100275958B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

본 발명은 마이크로 컴퓨터 유닛에 관한 것으로, 사용자가 요구하는 환경설정이 효율적으로 이루어지도록 하고, 특정 영역의 프로그램을 변경하여 동작시키거나 갱신하여 프로그램할 수 있도록 하며, 테스트 시에 다양한 테스트 방법을 제공하여 테스트 효율을 높이는데 그 목적이 있다.The present invention relates to a microcomputer unit, to efficiently configure the user's requirements, to change or to operate or update the program in a specific area, and to provide a variety of test methods at the time of testing The purpose is to increase test efficiency.

메모리 제어부에는 클럭을 포함하는 제 1 제어신호와 선택된 어드레스가 입력되고, 데이타 메모리 인에이블 신호와 프로그램 메모리 인에이블 신호 및 리드/라이트 제어신호가 출력된다. 시스템 제어부에는 시스템 모드 제어신호와 어드레스/데이타 입력 및 프로그램 메모리 인에이블 신호가 입력되고, 외부롬 모드 인에이블 신호와 피롬 모드 제어신호 및 제 1 어드레스가 출력된다. 데이타 메모리에는 선택된 어드레스와 데이타 메모리 리드/라이트 제어신호, 데이타 메모리 뱅크 인에이블 신호, 데이타 메모리 인에이블 신호 및 리드/라이트 제어신호가 입력된다. 프로그램 메모리에는 프로그램 메모리 뱅크 인에이블 신호와 프로그램 메모리 인에이블 신호, 프로그램 메모리 리드/라이트 제어신호, 피롬 모드 제어신호, 제 1 어드레스가 입력된다. 의사 프로그램 메모리 제어부에는 제 2 어드레스와 어드레스 선택신호, 제 4 제어신호, 피피엠 모드 요구신호, 프로그램 메모리 뱅크 인에이블 신호, 데이타 메모리 뱅크 인에이블 신호, 데이타 메모리 리드/라이트 제어신호를 발생시킨다. 제 1 멀티플렉서에는 중앙처리장치에서 발생하는 CPU 어드레스와 제 2 어드레스가 입력되고, 어드레스 선택신호에 의해 제어되어 CPU 어드레스와 제 2 어드레스 가운데 하나의 어드레스를 선택된 어드레스로서 출력한다.A first control signal including a clock and a selected address are input to the memory controller, and a data memory enable signal, a program memory enable signal, and a read / write control signal are output. A system mode control signal, an address / data input and a program memory enable signal are input to the system controller, and an external ROM mode enable signal, a pyrom mode control signal, and a first address are output. The selected memory, the data memory read / write control signal, the data memory bank enable signal, the data memory enable signal, and the read / write control signal are input to the data memory. The program memory bank enable signal, the program memory enable signal, the program memory read / write control signal, the pirom mode control signal, and the first address are input to the program memory. The pseudo program memory controller generates a second address, an address selection signal, a fourth control signal, a PPM mode request signal, a program memory bank enable signal, a data memory bank enable signal, and a data memory read / write control signal. A CPU address and a second address generated in the central processing unit are input to the first multiplexer, and are controlled by an address selection signal to output one of the CPU address and the second address as the selected address.

Description

마이크로 컴퓨터 유닛Microcomputer unit

본 발명은 마이크로 컴퓨터 유닛에 관한 것으로, 특히 데이타 메모리와 프로그램 메모리가 연속된 어드레스의 메모리 영역에 형성된 마이크로 컴퓨터 유닛에 관한 것이다.The present invention relates to a microcomputer unit, and more particularly to a microcomputer unit in which a data memory and a program memory are formed in a memory region of a contiguous address.

마이크로 컴퓨터 유닛은 프로그램 메모리와 데이타 메모리의 두 가지 메모리를 갖는다. 프로그램 메모리에는 마이크로 컴퓨터 유닛의 제어 동작에 필요한 사용자 프로그램이 저장되며, 데이타 메모리는 사용자 프로그램의 수행에 따라 발생하는 데이타 등을 임시로 저장하기 위한 것이다. 프로그램 메모리는 전원이 공급되지 않는 동안에도 프로그램이 보존되도록 롬(ROM)을 사용하고, 데이타 메모리는 램(RAM, 특히 SRAM)을 사용한다.The microcomputer unit has two memories, a program memory and a data memory. The program memory stores a user program necessary for the control operation of the microcomputer unit, and the data memory is for temporarily storing data generated by the execution of the user program. The program memory uses ROM so that the program is preserved even when power is not supplied, and the data memory uses RAM (particularly SRAM).

이와같은 종래의 마이크로 컴퓨터 유닛의 블록도를 도 1에 나타내었다.A block diagram of such a conventional microcomputer unit is shown in FIG.

메모리 제어부(102)에는 클럭을 포함하는 제 1 제어신호(114)와 중앙처리장치에서 발생한 CPU 어드레스(112), 외부롬 모드 인에이블 신호(132)가 입력된다. 메모리 제어부(102)는 상술한 입력신호들로부터 데이타 메모리 인에이블 신호(120)와 프로그램 메모리 인에이블 신호(122) 및 리드/라이트 제어신호(124)를 발생시켜서 시스템 제어부(104)와 데이타 메모리(106), 프로그램 메모리(108)로 각각 출력한다.The first control signal 114 including the clock, the CPU address 112 generated by the CPU, and the external ROM mode enable signal 132 are input to the memory controller 102. The memory controller 102 generates a data memory enable signal 120, a program memory enable signal 122, and a read / write control signal 124 from the above-described input signals, thereby generating the system controller 104 and the data memory ( 106 and output to the program memory 108, respectively.

시스템 제어부(104)에는 시스템 모드 제어신호(116)와 어드레스/데이타 입력(118) 및 프로그램 메모리 인에이블 신호(122)가 입력된다. 시스템 제어부(104)는 상술한 입력신호들로부터 외부롬 모드 인에이블 신호(132)와 피롬 모드 제어신호(126) 및 제 1 어드레스(128)를 발생시켜서 프로그램 메모리(108)로 출력한다.The system controller 104 receives a system mode control signal 116, an address / data input 118, and a program memory enable signal 122. The system controller 104 generates an external ROM mode enable signal 132, a pyrom mode control signal 126, and a first address 128 from the above-described input signals and outputs them to the program memory 108.

시스템 모드 제어신호(116)에 의해 설정되는 시스템 동작모드는 싱글칩 모드(Single Chip Mode)와 테스트 모드(Test Mode), 피롬 모드(PROM Mode)가 있다. 싱글칩 모드에서는 사용자 롬(User ROM)으로부터 프로그램을 액세스한다. 피롬 모드에서는 포트로부터 어드레스/데이타 입력(118)을 입력받아 프로그램 메모리(108)에 전달한다.The system operation mode set by the system mode control signal 116 includes a single chip mode, a test mode, and a PROM mode. In single-chip mode, the program is accessed from the user ROM. In the pyrom mode, an address / data input 118 is received from a port and transferred to the program memory 108.

이때 전달되는 어드레스가 바로 시스템 제어부(118)의 출력 가운데 하나인 제 1 어드레스(128)이다. 제 1 어드레스(128)는 입출력 포트를 통하여 입력된 어드레스/데이타 입력(118)의 어드레스가 모두 전달되지만, 프로그래밍 방법에 따라 상술한 CPU 어드레스(112)를 상위 어드레스로 사용하기도 하며, 이는 피롬 모드를 제외한 나머지 동작모드에 해당된다.The address transmitted at this time is the first address 128 which is one of the outputs of the system controller 118. The first address 128 transfers all the addresses of the address / data input 118 input through the input / output port, but the CPU address 112 described above is used as the upper address according to a programming method, which is used in the pyrom mode. Except for the remaining operation modes.

데이타 메모리(106)에는 CPU 어드레스(112)와 데이타 메모리 인에이블 신호(120) 및 리드/라이트 제어신호(124)가 입력된다.The CPU address 112, the data memory enable signal 120, and the read / write control signal 124 are input to the data memory 106.

프로그램 메모리(108)에는 프로그램 메모리 인에이블 신호(122)와 피롬 모드 제어신호(126), 제 1 어드레스(128)가 입력된다.The program memory enable signal 122, the pirom mode control signal 126, and the first address 128 are input to the program memory 108.

프로그램 메모리(108)는 사용자 프로그램이 저장되는 영역이다. 프로그램 메모리 인에이블 신호(122)가 활성화되면 제 1 어드레스(128)를 디코딩하여 해당 워드(word)를 선택한다. 외부롬 모드 인에이블 신호(132)가 활성화되면 프로그램 메모리 인에이블 신호(122)는 비활성화되고 입출력 포트를 통해 외부롬에 저장되어 있는 프로그램이 액세스된다. 피롬 모드에서는 피롬 모드 제어신호(126)에 의해 프로그렘 메모리의 프로그래밍이 이루어진다.The program memory 108 is an area in which a user program is stored. When the program memory enable signal 122 is activated, the first address 128 is decoded to select a corresponding word. When the external ROM mode enable signal 132 is activated, the program memory enable signal 122 is deactivated and a program stored in the external ROM is accessed through the input / output port. In the pyrom mode, programming of the program memory is performed by the pyrom mode control signal 126.

상술한 종래의 마이크로 컴퓨터 유닛에서 프로그램 메모리를 마스크 롬이나 원-타임 프로그래머블 롬(One-time Programmable ROM)을 사용하는 경우에는 데이타의 소거가 불가능하다. 만약 플래쉬 메모리나 이이피롬(EEPROM)을 이용하는 경우에는 프로그램 데이타 변경을 위하여 소거 보드(Eraser Board)등의 장비가 추가로 요구된다.In the above-described conventional microcomputer unit, when the program memory uses a mask ROM or a one-time programmable ROM, data can not be erased. If flash memory or EEPROM is used, an additional device such as an eraser board is required to change program data.

뿐만 아니라 외부의 핀 수를 줄이기 위하여 명령어 핀과 기능 핀을 함께 사용하는 소자의 테스트 모드에서는 명령어 핀과 겸용으로 사용되는 기능 핀의 기능 테스트가 어렵고, 이를 위해서는 테스트 프로그램의 크기가 증가하고 테스트 시간이 증가하는 등의 문제가 있다.In addition, in the test mode of a device that uses both command pins and function pins to reduce the external pin count, it is difficult to test the function pins used in combination with the command pins, which increases the test program size and the test time. There is a problem such as increasing.

따라서 본 발명은 사용자가 요구하는 환경설정이 효율적으로 이루지도록하고, 특정 영역의 프로그램을 변경하여 동작시키거나 갱신하여 프로그래밍할 수 있도록 하며, 테스트 시에 다양한 테스트 방법을 제공하여 테스트 효율을 높이는데 그 목적이 있다.Therefore, the present invention allows the user to efficiently set the environment settings, to change the program in a specific area to operate or update and program, and to provide a variety of test methods during testing to increase the test efficiency There is a purpose.

이와같은 목적의 본 발명은 메모리 제어부와 시스템 제어부, 데이타 메모리, 프로그램 메모리, 의사 프로그램 메모리 제어부, 제 1 멀티플렉서를 포함하여 이루어진다.The present invention for this purpose comprises a memory controller, a system controller, a data memory, a program memory, a pseudo program memory controller, and a first multiplexer.

메모리 제어부에는 클럭을 포함하는 제 1 제어신호와 선택된 어드레스가 입력되고, 데이타 메모리 인에이블 신호와 프로그램 메모리 인에이블 신호 및 리드/라이트 제어신호가 출력된다.A first control signal including a clock and a selected address are input to the memory controller, and a data memory enable signal, a program memory enable signal, and a read / write control signal are output.

시스템 제어부에는 시스템 모드 제어신호와 어드레스/데이타 입력 및 프로그램 메모리 인에이블 신호가 입력되고, 외부롬 모드 인에이블 신호와 피롬 모드 제어신호 및 제 1 어드레스가 출력된다.A system mode control signal, an address / data input and a program memory enable signal are input to the system controller, and an external ROM mode enable signal, a pyrom mode control signal, and a first address are output.

데이타 메모리에는 선택된 어드레스와 데이타 메모리 리드/라이트 제어신호, 데이타 메모리 뱅크 인에이블 신호, 데이타 메모리 인에이블 신호 및 리드/라이트 제어신호가 입력된다.The selected memory, the data memory read / write control signal, the data memory bank enable signal, the data memory enable signal, and the read / write control signal are input to the data memory.

프로그램 메모리에는 프로그램 메모리 뱅크 인에이블 신호와 프로그램 메모리 인에이블 신호, 프로그램 메모리 리드/라이트 제어신호, 피롬 모드 제어신호, 제 1 어드레스가 입력된다.The program memory bank enable signal, the program memory enable signal, the program memory read / write control signal, the pirom mode control signal, and the first address are input to the program memory.

의사 프로그램 메모리 제어부(Pseudo Program Memory Controller)에는 제 2 어드레스와 어드레스 선택신호, 제 4 제어신호, 피피엠 모드 요구신호, 프로그램 메모리 뱅크 인에이블 신호, 데이타 메모리 뱅크 인에이블 신호, 데이타 메모리 리드/라이트 제어신호를 발생시킨다.The pseudo program memory controller includes a second address, an address selection signal, a fourth control signal, a PPM mode request signal, a program memory bank enable signal, a data memory bank enable signal, a data memory read / write control signal. Generates.

제 1 멀티플렉서에는 중앙처리장치에서 발생하는 CPU 어드레스와 제 2 어드레스가 입력되고, 어드레스 선택신호에 의해 제어되어 CPU 어드레스와 제 2 어드레스 가운데 하나의 어드레스를 선택된 어드레스로서 출력한다.A CPU address and a second address generated in the central processing unit are input to the first multiplexer, and are controlled by an address selection signal to output one of the CPU address and the second address as the selected address.

도 1은 종래의 마이크로 컴퓨터 유닛을 나타낸 블록도.1 is a block diagram showing a conventional microcomputer unit.

도 2는 본 발명에 따른 마이크로 컴퓨터 유닛을 나타낸 블록도.2 is a block diagram illustrating a microcomputer unit in accordance with the present invention.

도 3은 본 발명에 따른 마이크로 컴퓨터 유닛의 의사 프로그램 메모리 제어부를 나타낸 블록도.3 is a block diagram showing a pseudo program memory controller of the microcomputer unit according to the present invention;

도 4는 본 발명에 따른 마이크로 컴퓨터 유닛의 메모리 맵을 나타낸 도면.4 shows a memory map of a microcomputer unit according to the invention.

이와같이 이루어지는 본 발명의 바람직한 실시예를 도 2 내지 도 4를 참조하여 설명하면 다음과 같다.When explaining the preferred embodiment of the present invention made as described above with reference to Figures 2 to 4 as follows.

먼저 도 2는 본 발명에 따른 마이크로 컴퓨터 유닛을 나타낸 블록도이다.2 is a block diagram showing a microcomputer unit according to the present invention.

메모리 제어부(202)에는 클럭을 포함하는 제 1 제어신호(114)와 선택된 어드레스(238)가 입력된다. 또 메모리 제어부(202)에서는 데이타 메모리 인에이블 신호(120)와 프로그램 메모리 인에이블 신호(122) 및 리드/라이트 제어신호(124)가 출력된다.The first control signal 114 including the clock and the selected address 238 are input to the memory controller 202. In addition, the memory control unit 202 outputs a data memory enable signal 120, a program memory enable signal 122, and a read / write control signal 124.

시스템 제어부(204)에는 시스템 모드 제어신호(116)와 어드레스/데이타 입력(118) 및 프로그램 메모리 인에이블 신호(122)가 입력된다. 또 시스템 제어부(204)에서는 외부롬 모드 인에이블 신호(132)와 피롬 모드 제어신호(126) 및 제 1 어드레스(128)가 출력된다.The system controller 204 receives a system mode control signal 116, an address / data input 118, and a program memory enable signal 122. In addition, the system controller 204 outputs an external ROM mode enable signal 132, a pyrom mode control signal 126, and a first address 128.

데이타 메모리(206)에는 선택된 어드레스(238)와 데이타 메모리 리드/라이트 제어신호(228), 데이타 메모리 뱅크 인에이블 신호(226), 데이타 메모리 인에이블 신호(120) 및 리드/라이트 제어신호(124)가 입력된다.The data memory 206 includes a selected address 238 and a data memory read / write control signal 228, a data memory bank enable signal 226, a data memory enable signal 120 and a read / write control signal 124. Is input.

프로그램 메모리(208)에는 프로그램 메모리 뱅크 인에이블 신호(224)와 프로그램 메모리 인에이블 신호(122), 프로그램 메모리 리드/라이트 제어신호(222), 피롬 모드 제어신호(126), 제 1 어드레스(128)가 입력된다.The program memory 208 includes a program memory bank enable signal 224 and a program memory enable signal 122, a program memory read / write control signal 222, a pyrom mode control signal 126, and a first address 128. Is input.

프로그램 메모리(208)는 사용자 프로그램이 저장되는 영역이다. 프로그램 메모리 인에이블 신호(122)가 활성화되면 제 1 어드레스(128)를 디코딩하여 해당 워드(word)를 선택한다. 외부롬 모드 인에이블 신호(132)가 활성화되면 프로그램 메모리 인에이블 신호(122)는 비활성화되고 입출력 포트를 통해 외부롬에 저장되어 있는 프로그램이 액세스된다. 피롬 모드에서는 피롬 모드 제어신호(126)에 의해 프로그렘 메모리의 프로그래밍이 이루어진다.The program memory 208 is an area in which a user program is stored. When the program memory enable signal 122 is activated, the first address 128 is decoded to select a corresponding word. When the external ROM mode enable signal 132 is activated, the program memory enable signal 122 is deactivated and a program stored in the external ROM is accessed through the input / output port. In the pyrom mode, programming of the program memory is performed by the pyrom mode control signal 126.

의사 프로그램 메모리 제어부(210)에는 제 1 제어신호(114)와 피롬 모드 제어신호(126), 피피엠 모드 허가신호(232)가 입력된다. 또 의사 프로그램 메모리 제어부(210)에서는 제 2 어드레스(230)와 어드레스 선택신호(216), 제 4 제어신호(234), 피피엠 모드 요구신호(220), 프로그램 메모리 뱅크 인에이블 신호(224), 데이타 메모리 뱅크 인에이블 신호(226), 데이타 메모리 리드/라이트 제어신호(228)가 출력된다.The first program control signal 114, the PROM mode control signal 126, and the PPM mode enable signal 232 are input to the pseudo program memory controller 210. In addition, the pseudo program memory controller 210 includes a second address 230, an address selection signal 216, a fourth control signal 234, a PPM mode request signal 220, a program memory bank enable signal 224, and data. The memory bank enable signal 226 and the data memory read / write control signal 228 are output.

제 1 멀티플렉서(212)에는 중앙처리장치에서 발생하는 CPU 어드레스(112)와 제 2 어드레스(230)가 입력된다. 또 제 1 멀티플렉서(212)는 어드레스 선택신호(216)에 의해 제어되어 CPU 어드레스(112)와 제 2 어드레스(230) 가운데 하나를 선택된 어드레스(238)로서 출력한다.A CPU address 112 and a second address 230 generated from the CPU are input to the first multiplexer 212. The first multiplexer 212 is controlled by the address selection signal 216 to output one of the CPU address 112 and the second address 230 as the selected address 238.

어드레스 선택신호(216)는 의사 프로그램 메모리에서 프로그램 메모리로의 데이타 트랜스퍼 모드나 피롬 모드에서는 제 2 어드레스(230)를 선택하고, 그 밖의 경우에는 CPU 어드레스(112)를 선택한다.The address selection signal 216 selects the second address 230 in the data transfer mode or the pyrom mode from the pseudo program memory to the program memory, and otherwise selects the CPU address 112.

도 3은 본 발명에 따른 마이크로 컴퓨터 유닛의 의사 프로그램 메모리 제어부를 나타낸 블록도이다.3 is a block diagram showing a pseudo program memory control unit of the microcomputer unit according to the present invention.

PPM 제어 레지스터(302)에는 뱅크수 선택 비트(322)와 PPM 모드 인에이블 신호(328), 제 1 데이타 이동 인에이블 신호(330), 제 2 데이타 이동 인에이블 신호(332), 하위 어드레스 선택신호(334)가 입력된다. 제 1 데이타 이동 인에이블 신호(330)는 의사 프로그램 메모리(실제로는 데이타 메모리 206)에서 프로그램 메모리(208)로 데이타가 이동하도록 인에이블 시키는 신호이다.The PPM control register 302 includes a bank number selection bit 322, a PPM mode enable signal 328, a first data movement enable signal 330, a second data movement enable signal 332, and a lower address selection signal. 334 is input. The first data movement enable signal 330 is a signal that enables data to move from the pseudo program memory (actually the data memory 206) to the program memory 208.

PPM 어드레스 레지스터(304)(306)는 PPM 상위 어드레스 레지스터(304)와 PPM 하위 어드레스 레지스터(306)로 구성된다. 이 PPM 상위 어드레스 레지스터(304)에서는 데이타 메모리 상위 어드레스(324)와 프로그램 메모리 상위 어드레스(326)가 출력된다.PPM address registers 304 and 306 are composed of a PPM high address register 304 and a PPM low address register 306. In this PPM upper address register 304, a data memory upper address 324 and a program memory upper address 326 are output.

트라이스테이트 버퍼(316)는 로드 인에이블 신호(338)에 의해 제어되며, PPM 하위 어드레스 레지스터(306)로부터 PPM 하위 어드레스를 입력받아 전달한다.The tristate buffer 316 is controlled by the load enable signal 338, and receives the PPM lower address from the PPM lower address register 306 and transmits the PPM lower address.

카운터(312)에는 트라이스테이트 버퍼(316)의 출력이 입력된다. 이 카운터(312)는 클럭신호(CLK)에 의해 동기되어 카운트 동작이 이루어지며, PPM 정지신호(236)에 의해 클리어된다.The output of the tristate buffer 316 is input to the counter 312. The counter 312 is synchronized with the clock signal CLK to perform a count operation, and is cleared by the PPM stop signal 236.

비교기(314)는 모든 비트가 논리 1의 값을 갖는 기준신호(340)와 카운터(312)의 카운트 계수값(336)을 비교하여 PPM 정지신호(236)를 발생시킨다.The comparator 314 compares the count signal value 336 of the counter 312 with the reference signal 340, where all bits have a logic 1 value, to generate a PPM stop signal 236.

제 1 신호 발생부(308)에는 뱅크수 선택 비트(322)와 PPM 모드 인에이블 신호(328), 데이타 메모리 상위 어드레스(324)와 프로그램 메모리 상위 어드레스(326), 제 1 제어신호(114)와 제 3 제어신호(214)가 입력된다.The first signal generator 308 includes a bank number selection bit 322, a PPM mode enable signal 328, a data memory upper address 324, a program memory upper address 326, and a first control signal 114. The third control signal 214 is input.

이 제 1 신호 발생부(308)에서는 프로그램 메모리 뱅크 인에이블 신호(224)와 데이타 메모리 뱅크 인에이블 신호(226)가 출력된다.The first signal generator 308 outputs a program memory bank enable signal 224 and a data memory bank enable signal 226.

제 2 신호 발생부(310)에는 PPM 모드 인에이블 신호(328)와 제 1 데이타 이동 인에이블 신호(330), 제 2 데이타 이동 인에이블 신호(332), 클럭신호(CLK), 데이타 메모리 뱅크 인에이블 신호(226), 피롬 모드 제어신호(126), 제 1 제어신호(114)가 입력된다. 이 제 2 신호 발생부(310)에서는 프로그램 메모리 리드/라이트 제어신호(222)와 데이타 메모리 리드/라이트 제어신호(228), 어드레스 선택신호(216), 제 4 제어신호(234), 피피엠 모드 요구신호(220), 로드 인에이블 신호(338)가 출력된다.The second signal generator 310 includes a PPM mode enable signal 328, a first data movement enable signal 330, a second data movement enable signal 332, a clock signal CLK, and a data memory bank in. The enable signal 226, the pirom mode control signal 126, and the first control signal 114 are input. The second signal generator 310 requests a program memory read / write control signal 222, a data memory read / write control signal 228, an address selection signal 216, a fourth control signal 234, and a PPM mode request. The signal 220 and the load enable signal 338 are output.

이 제 2 신호 발생부(310)는 PPM 모드의 동작을 제어하는 블록으로, PPM 모드 인에이블 신호(328)가 활성화되면 중앙처리장치에 PPM 모드 요구신호(220)를 발생시키고, 중앙처리장치로부터 PPM 모드 허가신호(232)가 발생하면 PPM 모드의 동작이 이루어지도록 한다.The second signal generator 310 is a block for controlling the operation of the PPM mode. When the PPM mode enable signal 328 is activated, the second signal generator 310 generates a PPM mode request signal 220 to the central processing unit. When the PPM mode permission signal 232 occurs, the operation of the PPM mode is performed.

앤드 게이트(320)에는 하위 어드레스 선택신호(334)와 피롬 모드 제어신호(126)가 입력된다.The lower address selection signal 334 and the pirom mode control signal 126 are input to the AND gate 320.

제 2 멀티플렉서(318)는 앤드 게이트(320)의 출력에 의해 제어된다. 이 제 2 멀티플렉서(318)에는 어드레스/데이타 입력(118)의 어드레스 가운데 상위 어드레스와 카운터 계수값(336)이 입력되는데, 그 출력이 PPM 상위 어드레스 레지스터(304)의 출력과 함께 제 2 어드레스(230)를 형성한다.The second multiplexer 318 is controlled by the output of the AND gate 320. The second multiplexer 318 is inputted with an upper address among the addresses of the address / data input 118 and a counter count value 336, and its output is combined with the output of the PPM upper address register 304 and the second address 230. ).

상술한 바와같은 구성의 본 발명에 따른 PPM 모드는 모두 3가지의 동작모드를 갖는다. 첫번째 동작모드에서는, 프로그램 메모리를 액세스할 경우 데이타 메모리의 내용이 액세스된다. 두번째 동작모드에서는 프로그램 메모리의 데이타를 데이타 메모리에 로딩하거나, 프로그램 메모리에 데이타 메모리의 데이타를 기록한다. 세번째 동작모드에서는 프로그래밍 방법으로, 어드레스를 순차적으로 진행시키면서 프로그래밍 하는것과 특정한 어드레스에 프로그래밍하는 두가지 방법이 있는데, 데이타는 입출력 포트를 통하여 제공되는 것과 데이타 메모리로부터 제공되는 것이 있다.The PPM mode according to the present invention having the configuration as described above has all three operation modes. In the first operation mode, the contents of the data memory are accessed when the program memory is accessed. In the second operation mode, the data of the program memory is loaded into the data memory or the data of the data memory is written to the program memory. In the third mode of operation, there are two methods of programming: programming with addresses in sequential order and programming to specific addresses. Data is provided through the input / output port and data from the memory.

도 3에서 데이타 메모리 상위 어드레스(324)와 프로그램 메모리 상위 어드레스(326)의 비트수는 데이타 메모리(206)와 프로그램 메모리(208)의 메모리 맵(Memory Map)의 구조에 기인한다.In FIG. 3, the number of bits of the data memory upper address 324 and the program memory upper address 326 is due to the structure of the memory map of the data memory 206 and the program memory 208.

도 4는 데이타 메모리(206)와 프로그램 메모리(208)의 메모리 맵을 나타낸 도면이다. 도 4에 나타낸 것과같이 데이타 메모리 영역과 프로그램 메모리 영역이 연속된 어드레스 영역에 존재하고 8비트 데이타 버스와 16비트 어드레스 버스를 사용 할때, 데이타 메모리 상위 어드레스(324)와 프로그램 메모리 상위 어드레스(326)의 각각의 비트수는 다음과 같이 결정된다.4 shows a memory map of the data memory 206 and the program memory 208. As shown in Fig. 4, when the data memory area and the program memory area exist in consecutive address areas and use an 8-bit data bus and a 16-bit address bus, the data memory upper address 324 and the program memory upper address 326 are used. The number of bits of each of is determined as follows.

단위 뱅크(Unit Bank)가 256바이트이고 전체 메모리 영역이 64킬로바이트이면 전체 뱅크수는 256개이다. 이 가운데 데이타 메모리가 64개의 뱅크로 구성된다면 데이타 메모리 상위 어드레스(324)의 비트수 M1은 2M1=64이므로, M1=6비트이다. 프로그램 메모리는 나머지 192개의 뱅크로 구성되므로 프로그램 메모리 상위 어드레스(326)의 비트수 M2는 2M2≥192, 곧 M2=8비트이다.If the unit bank is 256 bytes and the total memory area is 64 kilobytes, the total number of banks is 256. If the data memory is composed of 64 banks, the number of bits M1 of the data memory upper address 324 is 2 M1 = 64, so that M1 = 6 bits. Since the program memory consists of the remaining 192 banks, the number of bits M2 of the program memory upper address 326 is 2 M2? 192, that is, M2 = 8 bits.

상술한 데이타 메모리 상위 어드레스(324)와 프로그램 메모리 상위 어드레스(326)는 각 메모리 영역의 첫번째 뱅크를 인에이블하는 신호이다. 도 3에서 뱅크수 선택 비트(322)는 소정 개수의 뱅크를 활성화시킨다. 이 때 활성화되는 뱅크의 수는, 뱅크수 선택 비트(322)의 값을 10진수로 변환하고, 거기에 1을 더한 값과 같다.The above data memory upper address 324 and program memory upper address 326 are signals that enable the first bank of each memory area. In Fig. 3, the bank number selection bit 322 activates a predetermined number of banks. The number of banks to be activated at this time is equal to the value of the bank number selection bit 322 converted to a decimal number and 1 added thereto.

따라서 본 발명은 사용자가 요구하는 환경설정이 효율적으로 이루지도록하고, 특정 영역의 프로그램을 변경하여 동작시키거나 갱신하여 프로그래밍할 수 있도록 하며, 테스트 시에 다양한 테스트 방법을 제공하여 테스트 효율을 높이는 효과를 제공한다.Therefore, the present invention allows the user to efficiently set the environment settings, to change the program of the specific area to operate or update and program, and to provide a variety of test methods at the time of testing to increase the test efficiency to provide.

Claims (2)

마이크로 컴퓨터 유닛에 있어서,In a microcomputer unit, 클럭을 포함하는 제 1 제어신호와 선택된 어드레스가 입력되고, 데이타 메모리 인에이블 신호와 프로그램 메모리 인에이블 신호 및 리드/라이트 제어신호가 출력되는 메모리 제어부와;A memory controller which receives a first control signal including a clock and a selected address, and outputs a data memory enable signal, a program memory enable signal, and a read / write control signal; 시스템 모드 제어신호와 어드레스/데이타 입력 및 프로그램 메모리 인에이블 신호가 입력되고, 외부롬 모드 인에이블 신호와 피롬 모드 제어신호 및 제 1 어드레스가 출력되는 시스템 제어부와;A system controller which receives a system mode control signal, an address / data input and a program memory enable signal, and outputs an external ROM mode enable signal, a pyrom mode control signal, and a first address; 상기 선택된 어드레스와 데이타 메모리 리드/라이트 제어신호, 데이타 메모리 뱅크 인에이블 신호, 상기 데이타 메모리 인에이블 신호 및 리드/라이트 제어신호가 입력되는 데이타 메모리와;A data memory to which the selected address and data memory read / write control signal, data memory bank enable signal, and the data memory enable signal and read / write control signal are input; 프로그램 메모리 뱅크 인에이블 신호와 상기 프로그램 메모리 인에이블 신호, 프로그램 메모리 리드/라이트 제어신호, 상기 피롬 모드 제어신호, 상기 제 1 어드레스가 입력되는 프로그램 메모리와;A program memory to which a program memory bank enable signal, the program memory enable signal, a program memory read / write control signal, the pyrom mode control signal, and the first address are input; 제 2 어드레스와 어드레스 선택신호, 제 4 제어신호, 피피엠 모드 요구신호, 상기 프로그램 메모리 뱅크 인에이블 신호, 상기 데이타 메모리 뱅크 인에이블 신호, 상기 데이타 메모리 리드/라이트 제어신호를 발생시키는 의사 프로그램 메모리 제어부와;A pseudo program memory controller for generating a second address, an address selection signal, a fourth control signal, a PPM mode request signal, the program memory bank enable signal, the data memory bank enable signal, and the data memory read / write control signal; ; 중앙처리장치에서 발생하는 CPU 어드레스와 상기 제 2 어드레스가 입력되고, 상기 어드레스 선택신호에 의해 제어되어 상기 CPU 어드레스와 상기 제 2 어드레스 가운데 하나의 어드레스를 상기 선택된 어드레스로서 출력하는 제 1 멀티플렉서를 포함하는 마이크로 컴퓨터 유닛.A first multiplexer for inputting a CPU address and the second address generated in the central processing unit and controlled by the address selection signal to output one of the CPU address and the second address as the selected address; Microcomputer unit. 청구항 1에 있어서, 상기 의사 프로그램 메모리 제어부는,The method of claim 1, wherein the pseudo program memory control unit, 뱅크수 선택 비트와 PPM 모드 인에이블 신호, 제 1 데이타 이동 인에이블 신호, 제 2 데이타 이동 인에이블 신호, 하위 어드레스 선택신호가 출력되도록 이루어지는 PPM 제어 레지스터와;A PPM control register configured to output a bank number selection bit, a PPM mode enable signal, a first data movement enable signal, a second data movement enable signal, and a lower address selection signal; 데이타 메모리 상위 어드레스와 프로그램 메모리 상위 어드레스가 출력되는 PPM 어드레스 레지스터(306)와;A PPM address register 306 for outputting a data memory upper address and a program memory upper address; 상기 로드 인에이블 신호에 의해 제어되고, 상기 PPM 어드레스 레지스터로부터 PPM 하위 어드레스를 입력받아 전달하는 트라이스테이트 버퍼와;A tri-state buffer controlled by the load enable signal and configured to receive and transfer a PPM lower address from the PPM address register; 상기 트라이스테이트 버퍼의 출력이 입력되고, 클럭신호에 의해 동기되어 카운트 동작이 이루어지는 카운터와;A counter to which the output of the tristate buffer is input and which is counted in synchronism with a clock signal; 모든 비트가 논리 1의 값을 갖는 기준신호와 상기 카운터의 카운트 계수값을 비교하여 일치할 때 상기 PPM 정지신호를 발생시키는 비교기와;A comparator for generating the PPM stop signal when all the bits match and compare the count signal value of the counter with a reference signal having a logic 1 value; 상기 프로그램 메모리 뱅크 인에이블 신호와 상기 데이타 메모리 뱅크 인에이블 신호를 발생시키는 제 1 신호 발생부와;A first signal generator configured to generate the program memory bank enable signal and the data memory bank enable signal; 상기 프로그램 메모리 리드/라이트 제어신호와 상기 데이타 메모리 리드/라이트 제어신호, 상기 어드레스 선택신호, 상기 제 4 제어신호, 상기 피피엠 모드 요구신호, 상기 로드 인에이블 신호를 발생시키는 제 2 신호 발생부와;A second signal generator for generating the program memory read / write control signal, the data memory read / write control signal, the address selection signal, the fourth control signal, the PPM mode request signal, and the load enable signal; 상기 어드레스/데이타 입력의 어드레스 가운데 상위 어드레스와 상기 카운터 계수값이 입력되며, 그 출력이 상기 PPM 상위 어드레스 레지스터의 출력과 함께 상기 제 2 어드레스를 형성하는 제 2 멀티플렉서를 포함하여 이루어지는 것이 특징인 마이크로 컴퓨터 유닛.A microcomputer, wherein an upper address among the addresses of the address / data input and the counter count value are input, and the output includes a second multiplexer which forms the second address together with the output of the PPM upper address register; unit.
KR1019980045163A 1998-10-27 1998-10-27 Microcomputer unit KR100275958B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980045163A KR100275958B1 (en) 1998-10-27 1998-10-27 Microcomputer unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980045163A KR100275958B1 (en) 1998-10-27 1998-10-27 Microcomputer unit

Publications (2)

Publication Number Publication Date
KR20000027261A KR20000027261A (en) 2000-05-15
KR100275958B1 true KR100275958B1 (en) 2000-12-15

Family

ID=19555593

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980045163A KR100275958B1 (en) 1998-10-27 1998-10-27 Microcomputer unit

Country Status (1)

Country Link
KR (1) KR100275958B1 (en)

Also Published As

Publication number Publication date
KR20000027261A (en) 2000-05-15

Similar Documents

Publication Publication Date Title
US6662285B1 (en) User configurable memory system having local and global memory blocks
JPS6331220A (en) Dynamic reconstruction array logic device
US5987581A (en) Configurable address line inverter for remapping memory
KR950013263B1 (en) Single chip microcompiter having protection function for content of imternal rom
US7161870B2 (en) Synchronous flash memory command sequence
KR100275958B1 (en) Microcomputer unit
US6292867B1 (en) Data processing system
US4807119A (en) Memory address mapping mechanism
KR100261154B1 (en) Dma controller
KR20030055150A (en) Microprocessor and processing method of microprocessor
EP0020972A1 (en) Program controlled microprocessing apparatus
JPH0799636B2 (en) Semiconductor memory device
JPH1153338A (en) Semiconductor integrated circuit and external bus mode selection method therefor
KR920003845B1 (en) Rom region expansion system for users of pc
KR920010468A (en) Single chip microcomputer and electronic devices embedded therein
KR20010052868A (en) Method and system for updating user memory in emulator systems
KR100212264B1 (en) Rom data test circuit
EP0497443B1 (en) Static ram based microcontroller
JP3251265B2 (en) Memory output control circuit
JP2568443B2 (en) Data sizing circuit
US5943492A (en) Apparatus and method for generating external interface signals in a microprocessor
JP2822913B2 (en) Semiconductor storage device
KR100261557B1 (en) Local system
KR100206898B1 (en) Multiset dram control unit
KR100269598B1 (en) Semiconductor memory

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: 20080630

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee