KR19990060784A - Microcontroller with ROM Code Check - Google Patents

Microcontroller with ROM Code Check Download PDF

Info

Publication number
KR19990060784A
KR19990060784A KR1019970081028A KR19970081028A KR19990060784A KR 19990060784 A KR19990060784 A KR 19990060784A KR 1019970081028 A KR1019970081028 A KR 1019970081028A KR 19970081028 A KR19970081028 A KR 19970081028A KR 19990060784 A KR19990060784 A KR 19990060784A
Authority
KR
South Korea
Prior art keywords
rom code
microcontroller
rom
input
enable signal
Prior art date
Application number
KR1019970081028A
Other languages
Korean (ko)
Inventor
고영상
Original Assignee
윤종용
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 윤종용, 삼성전자 주식회사 filed Critical 윤종용
Priority to KR1019970081028A priority Critical patent/KR19990060784A/en
Publication of KR19990060784A publication Critical patent/KR19990060784A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design

Abstract

본 발명의 롬 코드 체크 기능을 구비한 마이크로 컨트롤러는 내부로부터 제공되는 인에이블 신호(Enable) 입력시 특정 롬 코드를 발생하는 롬 코드 발생부(10)와; 상기 롬 코드 발생부(10)로부터 출력되는 롬 코드 데이터 CD[7:0]와 정상적인 내부 출력 포트 데이터 PD[7:0]를 입력하고, 상기 인에이블 신호의 입력시 상기 롬 코드 데이터 CD[7;0]를 출력 포트로 선택적으로 출력하는 멀티플랙서(20)를 포함하여, 상기 인에이블 신호(Enable)의 입력시 상기 롬 코드 발생부910)로부터 해당되는 롬 코드 데이터 CD[7:0]가 상기 멀티플랙서(20)로 입력되고 이는 출력 포트로 출력된다.A microcontroller having a ROM code check function of the present invention includes: a ROM code generator 10 generating a specific ROM code when an enable signal provided from the inside is input; The ROM code data CD [7: 0] outputted from the ROM code generator 10 and the normal internal output port data PD [7: 0] are inputted, and the ROM code data CD [7] is input when the enable signal is input. ; 0] including a multiplexer 20 for selectively outputting to the output port, and corresponding ROM code data CD [7: 0] from the ROM code generator 910 upon input of the enable signal (Enable). Is input to the multiplexer 20, which is output to an output port.

Description

롬 코드 체크 기능을 구비한 마이크로 컨트롤러(MICRO CONTROLLER HAVING ROM CODE CHECK FUNCTION)MICRO CONTROLLER HAVING ROM CODE CHECK FUNCTION

본 발명은 마이크로 컨트롤러(Micro Controller)에 관한 것으로서, 구체적으로는 롬 코드(ROM Code)의 체크 기능을 구비한 마이크로 컨트롤러에 관한 것이다.The present invention relates to a microcontroller, and more particularly to a microcontroller having a check function of a ROM code.

현재, 마이크로 컨트롤러(MCU; Micro Controller Unit)는 내부의 롬(ROM) 영역에 사용자의 프로그램(Program)을 코딩(Coding)하여 그 프로그램의 동작에 의하여 다양한 기능을 발휘하게 할 수 있다. 하나의 마이크로 컨트롤러에 다양한 프로그램의 적용이 가능한 것은 마이크로 컨트롤러를 마스크 롬(Mask ROM) 타입으로 제작이 되기 때문이다. 롬은 읽기 전용 메모리(Read Only Memory)이기 때문에 한번 프로그램 후에는 수정이 불가능한 단점이 있지만 대량 생산에는 강한 장점이 있기 때문에 아직까지 대부분의 마이크로 컨트롤러 메이커는 마스크 롬 타입을 주로 생산하고 있다.Currently, a micro controller unit (MCU) may code a user's program in an internal ROM region to perform various functions by operating the program. Various programs can be applied to a single microcontroller because the microcontroller is manufactured as a mask ROM type. Since ROM is a read-only memory, it cannot be modified after a program. However, since a mass production has strong advantages, most microcontroller makers still produce mask ROM types.

한편, 현실적으로 마이크로 컨트롤러에 코딩된 프로그램은 타인에 의해 불법복제가 불가능하다. 그러나 프로그램 소오스가 불법 복제되어 마이크로 컨트롤러 제품에 적용되는 경우를 검출 할 수 있는 방법은 없다. 이러한 불법 복제를 방지하고 검출하기 위하여 현재로서는 적극적인 대처방안이나 기술적인 방법이 없는 것이 사실이다. 그러나 마이크로 컨트롤러 내부의 롬 코드의 확인은 미리 지정한 테스트 벡터(Test Vector)(ROM Dump)로 가능하다.On the other hand, in reality, a program coded in a microcontroller cannot be illegally copied by others. However, there is no way to detect when a program source is illegally copied and applied to a microcontroller product. It is true that there are currently no active countermeasures or technical methods to prevent and detect such illegal copying. However, the ROM code inside the microcontroller can be checked with a predefined Test Vector (ROM Dump).

마이크로 컨트롤러 내부에 프로그램을 코딩 할 때 DEN(depletion NMOS) 공정 단계를 거치는데, 이 경우 DEN 마스크 내부의 특정 부분에 매번 특징적인 표시(Marking)를 하여 프로그램 코드(Program Code)의 특징을 확인 할 수 있도록 하고 있다. 즉, 어느 고객의 어느 프로그램 코드인지를 식별 할 수 있다. 그러나 DEN공정 진행 후 웨이퍼(Wafer) 상에서는 메탈(Metal)등과 같이 육안으로 확인 할 수 없기 때문에 어느 고객의 몇 번째 프로그램 코드인지는 확인이 불가능하다.When coding a program inside the microcontroller, the process goes through a DEN (depletion NMOS) process.In this case, you can check the characteristics of the program code by marking a specific part inside the DEN mask every time. To make it work. That is, it can identify which program code of which customer. However, after the DEN process, it is impossible to check with the naked eye such as metal on the wafer, so it is impossible to check which customer's program code is.

따라서, 본 발명의 목적은 상술한 제반 문제점을 해결하기 위해 제안된 것으로서 불법 복제를 검출 할 수 있는 마이크로 컨트롤러를 제공하는데 있다.Accordingly, an object of the present invention is to provide a microcontroller that can detect illegal duplication as proposed to solve the above-mentioned problems.

도 1은 본 발명의 실시예에 따른 롬 코드 체크 로직의 상세 회로도; 그리고1 is a detailed circuit diagram of ROM code check logic in accordance with an embodiment of the present invention; And

도 2는 도 1에 도시된 롬 코드 발생부의 상세 회로도이다.FIG. 2 is a detailed circuit diagram of the ROM code generator illustrated in FIG. 1.

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

10 : 롬 코드 발생부 20 : 멀티플랙서10: ROM code generation unit 20: Multiplexer

상술한 바와 같은 본 발명의 목적을 달성하기 위한 본 발명의 특징에 의하면, 롬 코드 체크 기능을 구비한 마이크로 컨트롤러는: 내부로부터 제공되는 인에이블 신호의 입력시 특정 롬 코드를 발생하는 롬 코드 발생 수단과; 상기 롬 코드 발생부로부터 출력되는 롬 코드 데이터와, 정상적인 내부 출력 포트 데이터를 입력하고, 상기 인에이블 신호의 입력시 상기 롬 코드 데이터를 출력 포트로 선택적으로 출력하는 선택 출력 수단을 포함한다.According to a feature of the present invention for achieving the object of the present invention as described above, a microcontroller having a ROM code check function includes: a ROM code generating means for generating a specific ROM code upon input of an enable signal provided from the inside; and; And select output means for inputting ROM code data output from the ROM code generator and normal internal output port data, and selectively outputting the ROM code data to an output port when the enable signal is input.

이상과 같은 본 발명에 의하면, 상기 인에이블 신호의 입력시 상기 롬 코드 발생부로부터 해당되는 롬 코드 데이터가 출력되어 멀티플렉서를 통하여 출력 포트로 출력된다.According to the present invention as described above, when the enable signal is input, the corresponding ROM code data is output from the ROM code generator and output to an output port through a multiplexer.

(실시예)(Example)

이하 본 발명에 따른 실시예를 첨부된 도면을 참조하여 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명의 신규한 마이크로 컨트롤러는 더미(Dummy) N-TR을 사용하여 특정한 신호(Signal)가 인가되면 특정 코드 번호(Code Number)가 특정 포트로 출력되도록 한다. 이러한 본 발명의 바람직한 실시예를 첨부 도면 도 1에 및 도 2에 도시하였다.The novel microcontroller of the present invention uses a dummy N-TR to output a specific code number to a specific port when a specific signal is applied. Preferred embodiments of this invention are shown in the accompanying drawings, FIGS. 1 and 2.

도 1은 본 발명의 실시예에 따른 롬 코드 체크 로직의 상세 회로도이고, 그리고 도 2는 도 1에 도시된 롬 코드 발생부의 상세 회로도이다.1 is a detailed circuit diagram of a ROM code check logic according to an exemplary embodiment of the present invention, and FIG. 2 is a detailed circuit diagram of a ROM code generator shown in FIG. 1.

도 1에 도시된 바와 같이, 롬 코드 체크 로직은 크게 롬 코드 발생부(10)와, 멀티플랙서(20)로 구성된다. 상기 롬 코드 발생부(10)는 인에이블 신호(Enable)의 인가시 롬 코드 데이터 CD[7:0]를 출력한다. 상기 멀티플랙서(20)는 상기 인에이블 신호(Enable)의 입력에 따라 상기 롬 코드 데이터 CD[7:0]를 특정 출력 포트(미도시됨)로 출력한다. 그리고 상기 인에이블 신호(Enable)가 엑티브 되지 않는 경우는 정상적인 포트 데이터(Port Data) PD[7:0]가 상기 멀티플랙서(20)를 통하여 출력 포트로 출력된다.As shown in FIG. 1, the ROM code check logic is largely comprised of a ROM code generator 10 and a multiplexer 20. The ROM code generator 10 outputs the ROM code data CD [7: 0] when the enable signal (Enable) is applied. The multiplexer 20 outputs the ROM code data CD [7: 0] to a specific output port (not shown) according to the enable signal (Enable). When the enable signal is not activated, the normal port data PD [7: 0] is output to the output port through the multiplexer 20.

상기 인에이블 신호(Enable)는 내부 자체 테스트 신호로서 마이크로 컨트롤러의 특정 테스트 핀(Test Pin)을 이용하여 발생되도록 할 수 있다. 상기 롬 코드 발생부(10)는 도 2에 도시된바와 같이, DEN N-TR(11)과, WEAK N-TR(13) 그리고 상기 인에이블 신호(Enable)에 의해 턴온/턴오프 되는 스위칭용 트랜지스터(12)로 구성된다.The enable signal may be generated using a specific test pin of the microcontroller as an internal self test signal. The ROM code generator 10 is turned on / off by the DEN N-TR 11, the WEAK N-TR 13, and the enable signal (Enable), as shown in FIG. 2. It consists of a transistor 12.

이상과 같은 롬 코드 체크 로직은 마이크로 컨트롤러 제작 시 프로그램 코딩에 사용되는 DEN 마스크 단계를 이용하게 된다. 즉, 고객으로부터 제공된 프로그램 코드로 DEN 마스크 제작 시, DEN N-TR(11)에 자동으로 코딩되게 RBD(ROM based data)를 조정한다. 이와 같이 조정된 RBD를 이용하면 종래의 N 채널 오픈 드레인(N Channel Open Drain) 또는 푸시-풀 옵션(Push-Pull Option)의 선택처럼 고객 코드(Custom Code)가 FFh까지 코딩이 가능하다.The ROM code check logic as described above uses the DEN mask step used for program coding when the microcontroller is manufactured. That is, the RBD (ROM based data) is adjusted to be automatically coded in the DEN N-TR 11 when the DEN mask is manufactured by the program code provided by the customer. Using this adjusted RBD, custom codes can be coded up to FFh, as in the conventional N channel open drain or push-pull option selection.

마이크로 컨트롤러의 일반적 동작에서는 상기 인에이블 신호(Enable)가 엑티브(active) 되어 있지 않기 때문에 정상적으로 내부의 포트 데이터 PD[7:0]가 출력 포트로 출력된다. 이때, 상기 롬 코드 발생부(10)는 WEAK N-TR(13)으로 CD[7:0]는 항상 제로(Zero) 값을 유지한다. 그리고 롬 코드의 체크를 하기 위하여 인에이블 신호(Enable)가 엑티브 되면 DEN 코딩된 DEN N-TR(11)은 턴온되며 상기 출력 포트로 코드 값인 CD[7:0]이 출력된다. 출력된 상기 롬 코드 데이터 CD[7:0]를 확인하여 어느 고객의 코드인지를 알 수 있다.In the general operation of the microcontroller, since the enable signal (Enable) is not active, the internal port data PD [7: 0] is normally output to the output port. In this case, the ROM code generator 10 is a WEAK N-TR 13, and CD [7: 0] always maintains a zero value. When the enable signal (Enable) is activated to check the ROM code, the DEN coded DEN N-TR 11 is turned on and a code value CD [7: 0] is output to the output port. The ROM code data CD [7: 0] output can be checked to know which customer's code.

이상과 같은 본 발명에 의하면, 특정 고객에 대하여 특정한 롬 코드를 부여하고 이를 외부에서 확인 할 수 있다. 그러므로 마이크로 컨트롤러에 코딩되는 프로그램이 불법 복제되는 경우에 이를 검출 할 수 있게 된다.According to the present invention as described above, it is possible to give a specific ROM code to a specific customer and confirm it from the outside. Therefore, if a program coded in the microcontroller is illegally copied, it can be detected.

Claims (1)

마이크로 컨트롤러에 있어서:In a microcontroller: 내부로부터 제공되는 인에이블 신호(Enable)의 입력시 특정 롬 코드를 발생하는 롬 코드 발생 수단(10)과;A ROM code generating means 10 for generating a specific ROM code upon input of an enable signal provided from the inside; 상기 롬 코드 발생부(10)로부터 출력되는 롬 코드 데이터(CD)와, 정상적인 내부 출력 포트 데이터(PD)를 입력하고,Input ROM code data CD output from the ROM code generator 10 and normal internal output port data PD, 상기 인에이블 신호(Enable)의 입력시 상기 롬 코드 데이터(CD)를 출력 포트로 선택적으로 출력하는 선택 출력 수단(20)을 포함하는 것을 특징으로 하는 롬 코드 체크 기능을 구비한 마이크로 컨트롤러.And a selection output means (20) for selectively outputting the ROM code data (CD) to an output port upon input of the enable signal (Enable).
KR1019970081028A 1997-12-31 1997-12-31 Microcontroller with ROM Code Check KR19990060784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970081028A KR19990060784A (en) 1997-12-31 1997-12-31 Microcontroller with ROM Code Check

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970081028A KR19990060784A (en) 1997-12-31 1997-12-31 Microcontroller with ROM Code Check

Publications (1)

Publication Number Publication Date
KR19990060784A true KR19990060784A (en) 1999-07-26

Family

ID=66181448

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970081028A KR19990060784A (en) 1997-12-31 1997-12-31 Microcontroller with ROM Code Check

Country Status (1)

Country Link
KR (1) KR19990060784A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040019220A (en) * 2002-08-27 2004-03-05 이미지퀘스트(주) An apparatus and a method for protecting data of eeprom in a monitor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040019220A (en) * 2002-08-27 2004-03-05 이미지퀘스트(주) An apparatus and a method for protecting data of eeprom in a monitor

Similar Documents

Publication Publication Date Title
JPH07135517A (en) Suitable interface circuit between control bus and integrated circuit to two kinds of different protocol standards
TW359819B (en) Improved on-chip operation for memories
KR0178622B1 (en) Semiconductor memory device having security function
KR910017290A (en) ROM data protection method and device
KR19990060784A (en) Microcontroller with ROM Code Check
KR880009302A (en) Digital signal processing processor
KR970004947A (en) How to prevent malfunction of the remote control
JP2004070556A (en) Programmable logic device
US20060149942A1 (en) Microcontroller and assigned method for processing the programming of the micro-con- troller
KR960030399A (en) Semiconductor device and method of controlling clock signal of the semiconductor device
KR970029744A (en) Reference voltage generator
KR0152939B1 (en) On-screen display test apparatus
KR20000038712A (en) Method and micro controller having reproduction preventing function
KR950701748A (en) Method for Executing Software Program and Circuit Device for Implementing the Method
JPH04359320A (en) Electronic apparatus incorporating prom
SU1734096A1 (en) Microprogram running checker
KR970030575A (en) Trim control
KR960038623A (en) How to protect your MC program data
KR20000026480A (en) Test circuit for integrated circuit
KR970008204A (en) Maskrom
KR930014213A (en) How to exclude similar coins from coin selector
JPH03282650A (en) Microcomputer
KR970023447A (en) Nonvolatile memory device
JPH03229338A (en) Rom testing method
KR970049481A (en) Programmer's program method using cross point switch

Legal Events

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