KR19990018193A - Serial Interface Unit for OTP - Google Patents

Serial Interface Unit for OTP Download PDF

Info

Publication number
KR19990018193A
KR19990018193A KR1019970041311A KR19970041311A KR19990018193A KR 19990018193 A KR19990018193 A KR 19990018193A KR 1019970041311 A KR1019970041311 A KR 1019970041311A KR 19970041311 A KR19970041311 A KR 19970041311A KR 19990018193 A KR19990018193 A KR 19990018193A
Authority
KR
South Korea
Prior art keywords
otp
data
address
signal
program
Prior art date
Application number
KR1019970041311A
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 KR1019970041311A priority Critical patent/KR19990018193A/en
Publication of KR19990018193A publication Critical patent/KR19990018193A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4286Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Systems (AREA)

Abstract

본 발명은 직렬 인터페이스 장치(serial interface apparatus)에 관한 것으로서, 구체적으로는 OTP(One-Time-Programmable EPROM)의 프로그램(program)을 위한 OTP용 직렬 인터페이스 장치에 관한 것으로, 클럭단자(100)로 입력되는 클럭신호(OSIC)가 일정한 전압레벨을 유지하는 구간에서 어드레스/데이터단자(110)로 입력되는 신호(OSID)의 전압레벨이 제1전압레벨에서 제2전압레벨로 변환되는 것으로 프로그램(또는 독출동작)이 시작되며, 제2전압레벨에서 제1전압레벨로 변환되는 것으로 프로그램(또는 독출동작)이 종료된다. 직력 인터페이스 장치(10)는 프로그램 동작시 직렬로 입력된 데이터를 병렬로 변환하여 OTP(20)로 제공하며, 독출동작시 OTP(20)로부터 병렬 데이터를 제공받아 직렬데이터로 변환하여 외부로 출력한다. 이때, 입력되는 클럭신호(OSIC)의 소정 정수배 크럭을 더미클럭(dummy clock)으로하고, 상기 더미클럭 입력시에 상기 어드레스/데이터단자(110)를 입력포트로 설정하며, 상기 더미클럭의 구간에서 프로그램과 독출동작의 제어를 위한 복수의 제어신호를 발생한다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial interface apparatus, and more particularly, to an OTP serial interface apparatus for programming a One-Time-Programmable EPROM (OTP), and is input to a clock terminal 100. The voltage level of the signal OSID input to the address / data terminal 110 is converted from the first voltage level to the second voltage level while the clock signal OSIC maintains a constant voltage level. Operation), and the program (or read operation) is terminated by converting from the second voltage level to the first voltage level. The serial interface device 10 converts serially input data in parallel during a program operation and provides the same to the OTP 20. During read operation, the serial interface device 10 receives parallel data from the OTP 20 and converts the serial data into serial data and outputs the serial data to the outside. . In this case, a predetermined integer multiple of the input clock signal OSIC is a dummy clock, and when the dummy clock is input, the address / data terminal 110 is set as an input port, and in the interval of the dummy clock. A plurality of control signals for controlling the program and the read operation are generated.

Description

오티피용 직렬 인터페이스 장치Serial Interface Unit for OTP

본 발명은 직렬 인터페이스 장치(serial interface apparatus)에 관한 것으로서, 구체적으로는 OTP(One-Time-Programmable EPROM)의 프로그램(program)을 위한 OTP용 직렬 인터페이스 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial interface apparatus, and more particularly to a serial interface apparatus for OTP for programming of a One-Time-Programmable EPROM (OTP).

현재, 마이크로 컨트롤러(micro controller)는 내부에 RAM(random access memory), ROM(read only memory)을 구비하고 있는 경우가 있다. 특히, ROM의 경우 OTP를 내장하고 있기도 하다. OTP란 한 번의 프로그램이 가능한 메모리오 마이크로 컨트롤러의 응용 프로그램을 저장하는 용도로 사용될 수 있다.Currently, a microcontroller may be provided with a random access memory (RAM) and a read only memory (ROM). In particular, ROM has built-in OTP. OTP can be used to store one programmable memory or microcontroller application program.

한편, OTP를 내장한 마이크로 컨트롤러의 경우 내장된 OTP를 프로그램하기 위해서는 통상 마이크로 컨트롤러에 구비된 병렬포트(parallel port)를 사용하였다. 이러한 종래의 OTP 프로그램 방법은 마이크로 컨트롤러의 병렬포트를 사용해야 하므로 상기 병렬포트를 구성하는 복수의 핀을 사용해야 했다. 그리고 마이크로 컨트롤러에 구비된 직렬포트(serial port)의 경우는 OTP 프로그램을 위한 인터페이스가 구비되지 않아 이를 이용한 프로그램이 불가능하였다.On the other hand, in the case of a microcontroller with a built-in OTP in order to program the built-in OTP was usually used a parallel port (parallel port) provided in the microcontroller. Since the conventional OTP program method requires the use of a parallel port of a microcontroller, a plurality of pins constituting the parallel port have to be used. In the case of a serial port provided in the microcontroller, an interface for the OTP program was not provided, and thus a program using the same was not possible.

따라서, 본 발명의 목적은 상술한 제반 문제점을 해결하기 위해 제안된 것으로서 OTP를 프로그램하기 위한 OTP용 시리얼 인터페이스 장치를 제공하는데 있다.Accordingly, an object of the present invention is to provide a serial interface device for OTP for programming OTP as proposed to solve the above-mentioned problems.

본 발명의 다른 목적은 시리얼 방식으로 OTP를 프로그램 할 수 있는 마이크로 컨트롤러를 제공하는 데 있다.Another object of the present invention is to provide a microcontroller capable of programming OTP in a serial manner.

도1은 본 발명의 직렬 인터페이스 장치와 OTP의 연결관계를 개략적으로 보여주는 블록도,1 is a block diagram schematically showing a connection relationship between an OTP and a serial interface device of the present invention;

도2는 본 발명의 바람직한 실시예에 따른 직렬 인터페이스 장치의 회로도,2 is a circuit diagram of a serial interface device according to a preferred embodiment of the present invention;

도3은 본 발명의 바람직한 실시예에 따른 직렬 인터페이스 장치와 OTP간의 데이터 전송 프로토콜의 포맷을 보여주는 도면,3 is a view showing a format of a data transmission protocol between a serial interface device and an OTP according to a preferred embodiment of the present invention;

도4는 도2에 도시된 직력 인터페이스 장치의 프로그램 동작에 따른 주요부분의 파형도,4 is a waveform diagram of a main part according to a program operation of the serial interface device shown in FIG. 2;

도5는 도2에 도시된 직렬 인터페이스 장치의 독출 동작에 따른 주요 부분의 파형도,5 is a waveform diagram of a main part according to a read operation of the serial interface device shown in FIG. 2;

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

10 : 직렬 인터페이스 장치 20 : OTP10: serial interface device 20: OTP

100 : 클럭단자 110 : 데이터/어드레스단자100: clock terminal 110: data / address terminal

120 : 상태신호 발생부 130 : 카운터부120: status signal generator 130: counter

140 : 제어신호발생부 150 : 어드레스/데이터버퍼140: control signal generator 150: address / data buffer

상술한 바와 같은 본 발명의 목적을 달성하기 위한 본 발명의 일 특징에 의하면, OTP용 직렬 인터페이스 장치는: 소정의 주기를 갖는 클럭신호와, 어드레스/데이터신호를 입력받아 OTP의 프로그램/독출동작의 시작상태와 종료상태를 알리기 위한 상태신호를 출력하는 상태신호 발생부와; 상기 클럭신호와 상기 상태신호를 제공받고, 상기 클럭신호의 카운팅 결과에 따른 신호들을 출력하는 카운터부와; 상기 상태신호 및 상기 카운터부의 출력을 제공받아 OTP의 프로그램/독출동작을 제어하기 위한 소정의 제어신호들을 출력하는 제어신호발생부; 및 상기 카운터부와 상기 제어신호발생부로부터 제공되는 동기신호 및 제어신호를 제공받고, 상기 어드레스/데이터신호를 제공받아 상기 OTP의 어드레스를 지정하기 위한 어드레스 신호를 출력하고, 직렬-병렬 데이터 변환을 수행하여 출력하는 어드레스/데이터 버퍼를 포함한다.According to one aspect of the present invention for achieving the object of the present invention as described above, the OTP serial interface device: receives a clock signal and a address / data signal having a predetermined period of the program / read operation of the OTP A state signal generator for outputting a state signal for informing a start state and an end state; A counter unit receiving the clock signal and the state signal and outputting signals according to a counting result of the clock signal; A control signal generator which receives the status signal and the output of the counter and outputs predetermined control signals for controlling the program / read operation of the OTP; And receiving a synchronization signal and a control signal provided from the counter unit and the control signal generator, receiving the address / data signal, outputting an address signal for addressing the OTP, and performing serial-to-parallel data conversion. Address / data buffer to be executed and output.

이 실시예에 있어서, 상기 카운터부는 상기 클럭신호의 클럭 수를 카운트하는 클럭카운터와; 상기 클럭카운터의 출력을 입력받고, 어드레스정보와 데이터정보를 구분하기 위한 프레임카운터를 포함한다.In this embodiment, the counter unit comprises: a clock counter for counting the number of clocks of the clock signal; It receives the output of the clock counter, and includes a frame counter for distinguishing the address information and data information.

이 실시예에 있어서, 상기 제어신호발생부는 OTP의 프로그램과 독출동작에 따른 제어신호를 출력하는 기입/독출 제어신호 발생부와; OTP 모드제어신호를 출력하는 모드제어신호 발생부를 포함한다.In this embodiment, the control signal generator comprises: a write / read control signal generator for outputting a control signal according to a program and a read operation of the OTP; And a mode control signal generator for outputting an OTP mode control signal.

이 실시예에 있어서, 상기 어드레스/데이터버퍼는 상기 카운터로부터 동기신호를 제공받고, 이에 동기하여 상기 어드레스/데이터신호로 입력되는 어드레스 데이터를 입력받아 저장하며, 상기 카운터부와 제어신호발생부로부터 제공되는 제어신호에 의거하여 어드레스 데이터를 증가하여 OTP로 출력하는 어드레스버퍼와; 프로그램시 상기 카운터로부터 동기신호에 동기하여 상기 어드레스/데이터신호로 입력되는 직렬 데이터를 입력받아 저장하며, 상기 카운터부와 제어신호발생부로부터 제공되는 제어신호에 의거하여 OTP로 저장된 직렬 데이터를 병렬 데이터 변환하여 출력하고, 독출동작시 상기 카운터부로부터 동기신호에 동기하여 OTP로부터 병렬 데이터를 입력받아 저장하며, 상기 카운터부와 제어신호발생부로부터 제공되는 제어신호에 의거하여 저장된 병렬 데이터를 직렬 데이터 변환하여 출력하는 데이터 버퍼를 포함한다.In this embodiment, the address / data buffer receives a synchronization signal from the counter, and receives and stores address data input as the address / data signal in synchronization with the counter, and provides the same from the counter unit and the control signal generator. An address buffer which increases address data based on the control signal to be output to the OTP; In programming, the serial data inputted as the address / data signal is received from the counter in synchronization with the synchronous signal and stored therein, and the parallel data stored in the OTP based on the control signal provided from the counter unit and the control signal generator is parallel data. Converts and outputs, and receives and stores parallel data from the OTP in synchronization with a synchronous signal from the counter during a read operation, and converts the parallel data stored on the basis of control signals provided from the counter and the control signal generator. Data buffer to be output.

본 발명의 다른 특징에 의하면, 마이크로 컨트롤러는 : 프로그램 가능한 OTP와; 상기 OTP의 프로그램 동작 및 독출 동작에 따른 클럭신호를 입력받는 클럭단자와; 상기 OTP의 프로그램 동작 및 독출 동작에 따른 어드레스 신호 및 데이터 신호를 입력받는 어드레스/데이터단자와; 상기 클럭단자와 상기 어드렛,/데이터단자로 입력되는 각 신호에 의거하여 상기 OTP의 프로그램 및 독출 동작을 수행하는 OTP용 직렬인터페이스 장치를 포함한다.According to another feature of the invention, a microcontroller comprises: a programmable OTP; A clock terminal configured to receive a clock signal according to a program operation and a read operation of the OTP; An address / data terminal for receiving an address signal and a data signal according to the program operation and the read operation of the OTP; And a serial interface device for an OTP that performs the program and read operation of the OTP based on each signal input to the clock terminal, the address, and / or data terminal.

이 실시예에 있어서, 상기 직렬 인터페이스 장치는 소정의 주기를 갖는 클럭신호와, 어드레스/데이터신호를 입력받아 OTP의 프로그램/독출동작의 시작상태와 종료상태를 알리기 위한 상태신호를 출력하는 상태신호 발생부와; 상기 클럭신호와 상기 상태신호를 제공받고, 상기 클럭신호의 카운팅 결과에 따른 신호들을 출력하는 카운터부와; 상기 상태신호 및 상기 카운터부의 출력을 제공받아 OTP의 프로그램/독출동작을 제어하기 위한 소정의 제어신호들을 출력하는 제어신호발생부; 및 상기 카운터부와 상기 제어신호발생부로부터 제공되는 동기신호 및 제어신호를 제공받고, 상기 어드레스/데이터신호를 제공받아 상기 OTP의 어드레스를 지정하기 위한 어드레스 신호를 출력하고, 직렬-병렬 데이터 변환을 수행하여 출력하는 어드레스/데이터 버퍼를 포함한다.In this embodiment, the serial interface device generates a state signal for receiving a clock signal having a predetermined period and an address / data signal and outputting a state signal for notifying the start state and end state of the program / read operation of the OTP. Wealth; A counter unit receiving the clock signal and the state signal and outputting signals according to a counting result of the clock signal; A control signal generator which receives the status signal and the output of the counter and outputs predetermined control signals for controlling the program / read operation of the OTP; And receiving a synchronization signal and a control signal provided from the counter unit and the control signal generator, receiving the address / data signal, outputting an address signal for addressing the OTP, and performing serial-to-parallel data conversion. Address / data buffer to be executed and output.

이 실시예에 있어서, 상기 카운터부는 상기 클럭신호의 클럭 수를 카운트하는 클럭카운터와; 상기 클럭카운터의 출력을 입력받고, 어드레스정보와 데이터정보를 구분하기 위한 프레임카운터를 포함한다.In this embodiment, the counter unit comprises: a clock counter for counting the number of clocks of the clock signal; It receives the output of the clock counter, and includes a frame counter for distinguishing the address information and data information.

이 실시예에 있어서, 상기 제어신호발생부는 OTP의 프로그램과 독출동작에 따른 제어신호를 출력하는 기입/독출 제어신호 발생부와; OTP 모드제어신호를 출력하는 모드제어신호 발생부를 포함한다.In this embodiment, the control signal generator comprises: a write / read control signal generator for outputting a control signal according to a program and a read operation of the OTP; And a mode control signal generator for outputting an OTP mode control signal.

이 실시예에 있어서, 상기 어드레스/데이터버퍼는 상기 카운터부로부터 동기 신호를 제공받고, 이에 동기하여 상기 어드레스/데이터신호로 입력되는 어드레스 데이터를 입력받아 저장하며, 상기 카운터부와 제어신호발생부로부터 제공되는 제어신호에 의거하여 어드레스 데이터를 증가하여 OTP로 출력하는 어드레스버퍼와; 프로그램시 상기 카운터부로부터 동기신호에 동기하여 상기 어드레스/데이터신호로 입력되는 직렬 데이터를 입력받아 저장하며, 상기 카운터부와 제어신호발생부로부터 제공되는 제어신호에 의거하여 OTP로 저장된 직렬 데이터를 병렬 데이터 변환하여 출력하고, 독출동작시 상기 카운터부로부터 동기신호에 동기하여 OTP로부터 병렬 데이터를 입력받아 저장하며, 상기 카운터부와 제어신호발생부로부터 제공되는 제어신호에 의거하여 저장된 병렬 데이터를 직렬 데이터 변환하여 출력하는 데이터 버퍼를 포함한다.In this embodiment, the address / data buffer receives a synchronization signal from the counter unit, and receives and stores address data input as the address / data signal in synchronization with the counter unit and the control signal generator. An address buffer which increases address data based on the control signal provided and outputs the address data to the OTP; During programming, serial data inputted as the address / data signal is received and stored in synchronization with the synchronization signal from the counter unit, and the serial data stored in the OTP is paralleled based on a control signal provided from the counter unit and the control signal generator. Converts and outputs the data, receives parallel data from the OTP in synchronization with the synchronization signal from the counter during read operation, and stores the parallel data stored based on the control signal provided from the counter and the control signal generator. Contains a data buffer for conversion and output.

본 발명의 또 다른 특징에 의하면, 프로그램 가능한 OTP와, 상기 OTP의 프로그램 및 독출동작에 따른 클럭신호를 입력받는 클럭단자와, 상기 OTP의 프로그램 및 독출동작에 따른 어드레스신호 및 데이터신호를 입력받는 어드레스/데이터단자와, 상기 클럭단자와 상기 어드레스/데이터단자로 입력되는 각 신호에 의거하여 상기 OTP의 프로그램 및 독출 동작을 수행하는 OTP용 직렬 인터페이스 장치를 포함하는 마이크로 컨트롤러의 OTP 프로그램 및 독출 제어 방법은 : 상기 클럭단자로 입력되는 클럭신호가 일정 전압레벨을 유지하는 구간에서 상기 어드레스/데이터단자로 입력되는 신호가 서로 다른 전압레벨 갖는 제1전압레벨에서 제2전압레벨로 변환되면 상기 OTP의 프로그램 또는 독출동작 중 어느 한 동작이 시작되고; 상기 클럭신호가 일정 전압레벨을 유지하는 구간에서 상기 어드레스/데이터단자로 입력되는 신호가 제2전압레벨에서 제1전압레벨로 변환되면 상기 OTP의 프로그램 또는 독출동작 중 어느 한 동작이 종료되며; 상기 클럭신호에 더미클럭을 정의하고, 상기 더미클럭에 동기하여 상기 OTP의 프로그램 또는 독출동작 중 어느 한 동작을 수행하는 것을 특징으로 한다.According to still another aspect of the present invention, a programmable OTP, a clock terminal for receiving a clock signal according to a program and a read operation of the OTP, an address for receiving an address signal and a data signal according to a program and a read operation of the OTP OTP program and read control method of the microcontroller including a serial interface device for performing the OTP program and the read operation based on the / data terminal, the signal input to the clock terminal and the address / data terminal When the clock signal inputted to the clock terminal maintains a constant voltage level, when the signal inputted to the address / data terminal is converted from a first voltage level having a different voltage level to a second voltage level, the program of the OTP or Any one of the read operations is started; When the signal input to the address / data terminal is converted from the second voltage level to the first voltage level in the period in which the clock signal maintains a constant voltage level, any one of the program or read operation of the OTP is terminated; A dummy clock is defined in the clock signal, and a program or a read operation of the OTP is performed in synchronization with the dummy clock.

이 실시예에 있어서, 독출동작시, 상기 더미클럭이 입력되는 구간에서 상기 어드레스/데이터단자를 입력포트로 설정한다.In this embodiment, during the read operation, the address / data terminal is set as an input port in the section where the dummy clock is input.

이 실시예에 있어서, 프로그램 동작시, 프로그램의 종료시 최종 프로그램데이터에 후속하여 복수개의 더미 데이터를 전송하여 최종 프로그램 데이터의 프로그램 시간을 확보한다.In this embodiment, in the program operation, a plurality of dummy data is transmitted following the last program data at the end of the program to secure the program time of the final program data.

이상과 같은 본 발명에 의하면, 클럭단자로 입력되는 클럭신호가 소정의 전압레벨을 유지하는 구간에서 어드레스/데이터단자로 입력되는 신호의 전압레벨이 제1전압레벨에서 제2전압레벨로 변환되는 것으로 프로그램(또는 독출동작)이 시작되며, 제2전압레벨에서 제1전압레벨로 변환되는 것으로 프로그램(또는 독출동작)이 종료된다. 직렬 인터페이스 장치는 프로그램 동작시 직렬로 입력된 데이터를 병렬로 변환하여 OTP로 제공하며, 독출동작시 OTP로부터 병렬 데이터를 제공받아 직렬데이터로 변환하여 외부로 출력한다. 이때, 입력되는 클럭신호의 소정 정수배 클럭을 더미클럭으로하고, 상기 더미클럭 입력시에 상기 어드레스/데이터단자를 입력포트로 설정하며, 상기 더미클럭의 구간에서 프로그램과 독출동작의 제어를 위한 복수의 제어신호를 발생한다.According to the present invention as described above, the voltage level of the signal input to the address / data terminal is converted from the first voltage level to the second voltage level in a period in which the clock signal input to the clock terminal maintains a predetermined voltage level. The program (or read operation) is started, and the program (or read operation) is terminated by converting from the second voltage level to the first voltage level. The serial interface device converts the serially input data into parallel during the program operation and provides it to the OTP. During the read operation, the serial interface device receives parallel data from the OTP and converts the serial data into serial data for output. In this case, a predetermined integer multiple of the clock signal to be input is a dummy clock, the address / data terminal is set as an input port when the dummy clock is input, and a plurality of clocks for controlling a program and a read operation in the dummy clock section. Generate a control signal.

(실시예)(Example)

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

도1은 본 발명의 직렬 인터페이스 장치와 OTP의 연결관계를 개략적으로 보여주는 블록도이고, 도2는 본 발명의 바람직한 실시예에 따른 직렬 인터페이스 장치의 회로도이다.1 is a block diagram schematically illustrating a connection relationship between an OTP and a serial interface device of the present invention, and FIG. 2 is a circuit diagram of a serial interface device according to a preferred embodiment of the present invention.

도1에 도시된 바와 같이, 본 발명의 신규한 OTP용 직렬 인터페이스 장치(10)는 OTP(20)가 내장된 마이크로 컨트롤러에 내장된다. 상기 직렬 인터페이스 장치(10)를 위해 상기 마이크로컨트롤러에 구비된 클럭단자(100)를 통해 클럭신호(OSIC; OTP Serial Interface Clock)를 제공받고, 어드레스/데이터단자(110)를 통해 어드레스/데이터신호(OSID; OTP Serial Interface Data)를 제공받는다. 그리고 상기 직렬 인터페이스 장치(10)는 입력된 각 신호에 응답하여 OTP(20)에 소정의 제어신호, 어드레스신호를 제공하며, 데이터의 기입(write; program) 및 독출(read)동작을 수행하게 된다.As shown in Fig. 1, the novel serial interface device 10 for OTP of the present invention is embedded in a microcontroller in which the OTP 20 is incorporated. The serial interface device 10 receives a clock signal (OSIC; OTP Serial Interface Clock) through the clock terminal 100 provided in the microcontroller, and through the address / data terminal 110, the address / data signal ( OSID; OTP Serial Interface Data) is provided. In addition, the serial interface device 10 provides a predetermined control signal and an address signal to the OTP 20 in response to each input signal, and performs a data write and read operation. .

구체적으로, OTP(20)를 프로그램하기 위한 소정의 프로그램장치(미도시됨)는 상기 클럭단자(100)와 상기 어드레스/데이터단자(110)에 연결된다. 이때, 각 단자를 통하여 상기 직렬 인터페이스 장치(10)로 OSIC신호와 OSID신호를 제공하게 된다. 이어 상기 직렬 인터페이스 장치(10)는 입력된 각 신호에 의거하여 상기 OTP(20)로 각종 제어신호들과 어드레스/데이터 신호들을 제공하여 상기 OTP(20)가 프로그램 되게 한다. 프로그램이 완료되면, 상기 프로그램장치는 상기 OTP(20)가 정상적으로 프로그램 되었는가를 판단하기 위해 상기 OTP(20)로부터 프로그램된 데이터를 독출하게 된다. 상기 직렬 인터페이스 장치(10)는 독출되는 데이터를 상기 어드레스/데이터단자(110)를 통하여 상기 프로그램장치로 제공한다.Specifically, a predetermined program device (not shown) for programming the OTP 20 is connected to the clock terminal 100 and the address / data terminal 110. At this time, an OSIC signal and an OSID signal are provided to the serial interface device 10 through each terminal. Subsequently, the serial interface device 10 provides various control signals and address / data signals to the OTP 20 based on each input signal so that the OTP 20 is programmed. When the program is completed, the program device reads the programmed data from the OTP 20 to determine whether the OTP 20 is normally programmed. The serial interface device 10 provides the read data to the program device through the address / data terminal 110.

이상과 같은 동작을 수행할 때 상기 직렬 인터페이스 장치(10)는 상기 어드레스/데이터단자(110)로 입력되는 직렬 데이터를 병렬 데이터로 변환하여 상기 OTP(20)로 제공하게 되며, 상기 (20)로부터 독출된 병렬 데이터는 직렬 데이터로 변환하여 상기 어드레스/데이터단자(110)로 출력하게 된다.When performing the above operation, the serial interface device 10 converts the serial data inputted to the address / data terminal 110 into parallel data and provides the parallel data to the OTP 20, from (20). The read parallel data is converted into serial data and output to the address / data terminal 110.

좀더 구체적으로, 첨부도면 도2 내지 도5를 참조하여 본 발명의 바람직한 실시예에 따른 직렬 인터페이스 장치를 상세히 설명한다.More specifically, with reference to the accompanying drawings Figures 2 to 5 will be described in detail a serial interface device according to a preferred embodiment of the present invention.

도2에 도시된바와 같이, 본 발명의 실시예에 따른 직렬 인터레이스 장치는 크게 상태신호 발생부(120)와, 카운터부(130)와, 제어신호발생부(140)와, 어드레스/데이터 버퍼(150)를 포함하고 있다.As shown in FIG. 2, the serial interlacing apparatus according to the embodiment of the present invention has a large state signal generator 120, a counter 130, a control signal generator 140, and an address / data buffer ( 150).

이상과 같은 구성을 갖는 직렬 인터페이스 장치는 도3에 도시된바와 같은 포맷이 데이터 전송 프로토콜에 따라 동작된다.In the serial interface device having the above configuration, the format as shown in Fig. 3 operates according to the data transmission protocol.

도3은 본 발명의 바람직한 실시예에 따른 직렬 인터페이스 장치와 OTP간의 데이터 전송 프로토콜의 포맷을 보여주는 도면이다.3 is a diagram illustrating a format of a data transmission protocol between a serial interface device and an OTP according to a preferred embodiment of the present invention.

도3에 도시된바와 같이, 본 발명의 바람직한 실시예에 따른 직렬 인터페이스 장치와 OTP간의 데이터 전송 프로토콜의 포맷은 전송되는 한 프레임(frame)(30)에는 어드레스정보(31)와, 데이터정보(35)를 포함한다.As shown in FIG. 3, the format of the data transmission protocol between the serial interface apparatus and the OTP according to the preferred embodiment of the present invention is address information 31 and data information 35 in a frame 30 transmitted. ).

상기 어드레스정보(31)는 Address1, Address2, Address3의 3byte(A23~A0)로 구성된다. 상기 Address1(32)의 A23~A21 3bit는 모드 설정 비트이다. 그리고 A20~A17 4bit는 어드레스 확장시 사용을 위한 비트이며, A16는 기입/독출을 설정하기 위한 비트이다. 상기 모드 설정은 예컨대, 독출모드(read mode), 프로그램모드(program mode), 더미로우독출 프로그램 모드(dummy row read program mode)등이 있다. 그리고 상기 Address2,3(A15~A8, A7~A0)(33)은 어드레스를 위한 영역이다.The address information 31 is composed of three bytes (A23 to A0) of Address1, Address2, and Address3. 3 bits A23 to A21 of the Address1 32 are mode setting bits. 4 bits A20 to A17 are bits for address expansion, and A16 bits are bits for setting write / read. The mode setting includes, for example, a read mode, a program mode, a dummy row read program mode, and the like. Address 2 and 3 (A15 to A8 and A7 to A0) 33 are areas for addresses.

상기 데이터정보(35)는 N개의 데이터(Data1~DataN)(36)와, OTP의 프로그램 종료를 위한 1byte의 더미데이터(dummy data)(37)를 포함한다. 상기 더미데이터(37)는 이 실시예에서는 FFh로 설정한다. 이 더미데이터(37)를 이용하여 N번째 데이터가 OTP에 프로그램 되는 시간을 확보하게 된다.The data information 35 includes N data (Data1 to DataN) 36 and 1 byte of dummy data 37 for terminating the program of the OTP. The dummy data 37 is set to FFh in this embodiment. The dummy data 37 is used to secure the time for the Nth data to be programmed in the OTP.

이상과 같은 프로토콜을 이용한 직렬 인터페이스 장치의 각 부분의 동작은 다음과 같다.Operation of each part of the serial interface device using the above protocol is as follows.

먼저, 상기 상태신호발생부(120)는 클럭단자(100)와 어드레스/데이터단자(110)로부터 각기 해당 신호(OSIC, OSID)를 입력받아 OTP로 프로그램/독출동작의 시작상태(begin condition)와 종료상태(end condition)를 알리기 위한 EMODE 신호를 출력한다.First, the state signal generator 120 receives a corresponding signal (OSIC, OSID) from the clock terminal 100 and the address / data terminal 110, respectively, and starts the program / read operation with an OTP. Outputs an EMODE signal to indicate an end condition.

상기 카운터부(130)는 상기 OSIC의 클럭 수를 카운트하는 4bit 카운터로 구성된 클럭카운터(clock counter)(132)와, 어드레스정보(31)와 데이터정보(35)를 구분하기 위한 2bit 카운터로 구성된 프레임카운터(frame counter)(134)를 포함한다.The counter 130 includes a clock counter 132 consisting of a 4 bit counter for counting the number of clocks of the OSIC, and a frame composed of a 2 bit counter for distinguishing the address information 31 and the data information 35. A frame counter 134.

상기 카운터부(130)는 카운팅 결과를 상기 제어신호발생부(140)와 상기 어드레스/데이터버퍼(150)로 제공한다.The counter unit 130 provides a counting result to the control signal generator 140 and the address / data buffer 150.

상기 제어신호발생부(140)는 기입/독출 제어신호 발생부(142)와, 모드제어신호 발생부(144)를 포함하고, OTP의 프로그램과 독출동작에 따른 제어신호(PGM#, OE#)와 OTP 모드제어신호(OTPROW, OTPCOL, GANG)를 출력한다.The control signal generator 140 includes a write / read control signal generator 142 and a mode control signal generator 144, and control signals PGM # and OE # according to the program and read operation of the OTP. And OTP mode control signals (OTPROW, OTPCOL, GANG).

상기 어드레스/데이터버퍼(150)는 어드레스버퍼(152)와, 데이터버퍼(154)를 포함한다. 상기 어드레스버퍼(152)는 상기 카운터부(130)에서 제공되는 클럭신호와 카운터부(130)및 제어신호발생부(140)에서 제공되는 제어신호에 응답하여 어드레스/데이터단자(110)를 통해 입력되는 직렬의 어드레스 데이터를 병렬의 어드레스 데이터로 변환하여 OTP로 출력한다. 그리고 상기 데이터버퍼(154)는 상기 어드레스/데이터단자(110)를 통해 입력된 직렬 데이터를 병렬 데이터로 변환하여 OTP로 제공하며, 역으로 OTP로부터 제공되는 병렬데이터는 직렬데이터로 변환하여 상기 어드레스/데이터단자(110)를 통해 출력한다.The address / data buffer 150 includes an address buffer 152 and a data buffer 154. The address buffer 152 is input through the address / data terminal 110 in response to a clock signal provided from the counter 130 and a control signal provided from the counter 130 and the control signal generator 140. The serial address data is converted into parallel address data and output to OTP. The data buffer 154 converts the serial data input through the address / data terminal 110 into parallel data and provides the data to the OTP. Conversely, the parallel data provided from the OTP is converted into serial data and converted into the serial data. Output through the data terminal 110.

프로그램이나 독출동작시에 한 바이트를 전송하기 위해서는 9번의 OSIC 클럭이 소요된다. 이때 9번째 클럭은 더미클럭(dummy clock)으로 OTP의 프로그램이나 독출동작에 관련된 제반 신호를 이 9번째 클럭에 동기하여 발생하게 된다. 즉, 본 발명의 실시예에 따른 직렬 인터페이스 장치에서는 데이터를 한 바이트 전송한후 9번째 클럭에서는 상기 어드레스/데이터단자(110)가 입력포트(input port)가 되게 한다. 예를 들어, 독출모드에서 독출동작의 종료시에는 9번째 클럭의 하이레벨 구간을 정상 클럭의 하이레벨 구간보다 길게 하고 이렇게 하이레벨 구간이 길어진 상태에서 OSID의 논리레벨을 변환하므로 독출동작을 종료하게 한다.It takes nine OSIC clocks to transfer one byte during program or read operation. At this time, the ninth clock is a dummy clock and generates various signals related to the program or read operation of the OTP in synchronization with the ninth clock. That is, in the serial interface device according to the embodiment of the present invention, the address / data terminal 110 becomes an input port at the ninth clock after data is transmitted one byte. For example, at the end of the read operation in the read mode, the high level section of the ninth clock is made longer than the high level section of the normal clock and the read level operation is terminated because the logical level of the OSID is converted in the state where the high level section is extended. .

다시, 첨부도면 도4 및 도5를 참조하여 프로그램 동작 및 독출 동작에 대하여 상세히 설명한다.Again, the program operation and the read operation will be described in detail with reference to FIGS. 4 and 5.

도4는 도2에 도시된 직렬 인터페이스 장치의 프로그램 동작에 따른 주요 부분의 파형도이고, 도5는 도2에 도시된 직렬 인터페이스 장치의 독출 동작에 따른 주요 부분의 파형도이다.4 is a waveform diagram of a main part according to a program operation of the serial interface device shown in FIG. 2, and FIG. 5 is a waveform diagram of a main part according to a read operation of the serial interface device shown in FIG.

먼저, 프로그램동작을 설명하면 다음과 같다.First, the program operation is as follows.

도4a를 참조하여, 프로그램 시작(begin of program)시에는 참조부호 410에서와 같이 상기 상태신호발생부(120)는 상기 OSIC신호가 논리 '1'의 전압레벨인 하이레벨(high level)구간에서 상기 OSID신호가 논리 '0'의 전압 레벨인 로우레벨(low level)에서 하이레벨로 변환(transition)되면 상기 EMODE 신호의 출력을 로우레벨에서 하이레벨로 변환한다. 따라서 OTP의 프로그램 시작 상태가 된다.Referring to FIG. 4A, at the beginning of program, as shown by reference numeral 410, the state signal generator 120 may generate a high level section in which the OSIC signal is at a voltage level of logic '1'. When the OSID signal is transitioned from a low level, which is a voltage level of logic '0', to a high level, the output of the EMODE signal is converted from a low level to a high level. Therefore, the program starts to OTP.

그리고 도4b를 참조하여, 프로그램 종료(end of program)시에는 참조부호 420에서와 같이 상기 더미데이터(37)가 입력되는 구간에서 9번째의 OSIC신호가 하이레벨인 구간에서 OSID가 하이레벨에서 로우레벨로 변환되면 상태신호발생부(120)는 EMODE 신호의 출력을 하이레벨에서 로우레벨로 변환한다. 따라서 OTP의 프로그램이 종료된다.Referring to FIG. 4B, at the end of program, as shown by reference numeral 420, in the section in which the ninth OSIC signal is high level in the section in which the dummy data 37 is input, the OSID is low in the high level. When the signal is converted to the level, the state signal generator 120 converts the output of the EMODE signal from the high level to the low level. Therefore, the program of OTP is terminated.

다시 도4a 및 도4b를 참조하여, 먼저 직렬 인터페이스 장치는 3byte의 어드레스정보와 데이터를 OCIC 클럭에 동기하여 순차적으로 전송받는다. 이때, 전송된 어드레스정보는 어드레스버퍼(152)에 저장된다. 상기 어드레스버퍼(152)에 저장된 어드레스는 프로그램이 시작되는 어드레스이다. 이 시작 어드레스는 프로그램 제어신호 PGM#이 하이레벨인 구간과 더미클러의 상승에지(rising edge)에서 자동 증가된다. 그리고 프로그램이 시작된 후 각각의 더미클럭의 하강에지(falling edge)에서 프로그램이 시작되고 이어 8번째 OSIC 클럭의 하강에지에서 프로그램이 종료된다. 그러므로 OSID로 입력되는 N개의 데이터(DO~DN)가 OTP에 프로그램 된다. 단, N번째 데이터를 프로그램 할 때는 더미 데이터 FF를 N+1번째에 부가하여 N번째 데이터가 OTP에 프로그램 될 시간을 확보한다.4A and 4B, the serial interface device first receives 3 bytes of address information and data sequentially in synchronization with the OCIC clock. At this time, the transmitted address information is stored in the address buffer 152. The address stored in the address buffer 152 is the address where the program starts. This start address is automatically increased in the section where the program control signal PGM # is high level and in the rising edge of the dummy clock. After the program starts, the program starts at the falling edge of each dummy clock, and then the program ends at the falling edge of the eighth OSIC clock. Therefore, N pieces of data (DO to DN) inputted as OSIDs are programmed in the OTP. However, when programming the Nth data, dummy data FF is added to the N + 1th to secure the time for the Nth data to be programmed in the OTP.

이어 독출동작을 설명하면 다음과 같다.Next, the read operation will be described.

도5a 및 도5b를 참조하여, 직렬 인터페이스 장치는 3byte의 어드레스정보를 OSIC 클럭에 동기하여 입력받고 이는 어드레스버퍼(152)에 저장된다. 그리고 3번째 입력되는 더미클럭에서부터 각 더미클럭에 동기하여 OTP 독출을 위한 제어신호 OE#가 OTP로 출력된다. 각 더미클럭동안에 OTP로부터 해당 데이터를 독출하게 되며, 이는 데이터버퍼(154)에 저장된다. 저장된 데이터는 직렬 데이터로 변환되어 어드레스/데이터단자(110)를 통해 외부로 출력된다. 그리고 상기 어드레스버퍼(152)에 저장된 시작 어드레스는 더미클럭에 후속 하는 8번째 클럭의 상승에지에서 증가된다. 이와 같은 동작에 따라 OTP의 데이터 독출동작이 수행된다.5A and 5B, the serial interface device receives 3 bytes of address information in synchronization with the OSIC clock, and is stored in the address buffer 152. The control signal OE # for OTP reading is output to the OTP in synchronization with each dummy clock from the third input dummy clock. During each dummy clock, the corresponding data is read from the OTP, which is stored in the data buffer 154. The stored data is converted into serial data and output to the outside through the address / data terminal 110. The start address stored in the address buffer 152 is increased at the rising edge of the eighth clock following the dummy clock. According to such an operation, a data reading operation of the OTP is performed.

이상과 같은 본명에 의하면, OTP를 내장한 마이크로 컨트롤러에 OTP용 직렬 인터페이스 장치가 내장되므로 외부의 프로그램장치는 종래의 복잡한 병렬방식을 탈피하여 간단한 직렬 방식을 사용하게 되므로 OTP의 프로그램 및 독출 동작이 용이해 진다. 특히, 직렬 인터페이스방식을 사용함으로 마이크로 컨트롤러에 구비되는 외부 단자를 감소 할 수 있는 효과가 있다.According to the present invention as described above, since the OTP serial interface device is built in the OTP-embedded microcontroller, the external program device uses a simple serial method to overcome the conventional complicated parallel method, so that the OTP program and read operation are easy. It becomes In particular, by using the serial interface method has an effect that can reduce the external terminal provided in the microcontroller.

Claims (12)

소정의 주기를 갖는 클럭신호(OSIC)와, 어드레스/데이터신호(OSID)를 입력받아 OTP의 프로그램/독출동작의 시작상태와 종료상태를 알리기 위한 상태신호(EMODE)를 출력하는 상태신호 발생부(120)와; 상기 클럭신호(OSIC)와 상기 상태신호(EMODE)를 제공받고, 상기 클럭신호(OSIC)의 카운팅 결과에 따른 신호들을 출력하는 카운터부(130)와;A status signal generator for receiving a clock signal OSIC having a predetermined period and an address / data signal OSID and outputting a status signal EMODE for notifying the start and end states of the program / read operation of the OTP; 120); A counter unit (130) receiving the clock signal (OSIC) and the state signal (EMODE) and outputting signals according to a counting result of the clock signal (OSIC); 상기 상태신호(EMODE) 및 상기 카운터부(130)의 출력을 제공받아 OTP의 프로그램/독출동작을 제어하기 위한 소정의 제어신호들을 출력하는 제어신호발생부(140); 및 상기 카운터부(130)와 상기 제어신호발생부(140)로부터 제공되는 동기신호 및 제어신호를 제공받고, 상기 어드레스/데이터신호(OSID)를 제공받아 상기 OTP의 어드레스를 지정하기 위한 어드레스 신호를 출력하고, 직렬-병렬 데이터 변환을 수행하여 출력하는 어드레스/데이터 버퍼(150)를 포함하는 OTP용 직렬 인터페이스 장치.A control signal generator 140 receiving the output of the status signal EMODE and the counter 130 and outputting predetermined control signals for controlling the program / read operation of the OTP; And receiving an synchronization signal and a control signal provided from the counter unit 130 and the control signal generator 140, and receiving the address / data signal OSID to receive an address signal for specifying the address of the OTP. And an address / data buffer (150) for outputting by performing serial-to-parallel data conversion. 제1항에 있어서, 상기 카운터(130)는 상기 클럭신호(OSIC)의 클럭 수를 카운트하는 클럭카운터(132)와; 상기 클럭카운터(132)의 출력을 입력받고, 어드레스정보(31)와 데이터정보(35)를 구분하기 위한 프레임카운터(134)를 포함하는 OTP용 직렬 인터페이스 장치.2. The apparatus of claim 1, wherein the counter comprises: a clock counter (132) for counting the number of clocks of the clock signal (OSIC); And a frame counter (134) for receiving the output of the clock counter (132) and distinguishing address information (31) and data information (35). 제1항에 있어서, 상기 제어신호발생부(140)는 OTP의 프로그램과 독출동작에 따른 제어신호(PGM#, OE#)를 출력하는 기입/독출 제어신호 발생부(142)와; OTP 모드제어신호(OTPROW, OTPCOL, GANG)를 출력하는 모드제어신호 발생부(144)를 포함하는 OTP용 직렬 인터페이스 장치.2. The apparatus of claim 1, wherein the control signal generator 140 includes: a write / read control signal generator 142 for outputting control signals PGM # and OE # according to program and read operation of the OTP; A serial interface device for an OTP comprising a mode control signal generator 144 for outputting an OTP mode control signal (OTPROW, OTPCOL, GANG). 제1항에 있어서, 상기 어드레스/데이터버퍼(150)는 상기 카운터부(130)로부터 동기신호를 제공받고, 이에 동기하여 상기 어드레스/데이터신호(OSID)로 입력되는 어드레스 데이터를 입력받아 저장하며, 상기 카운터부(130)와 제어신호발생부(140)로부터 제공되는 제어신호에 의거하여 어드레스 데이터를 증가하여 OTP로 출력하는 어드레스버퍼(152)와; 프로그램시 상기 카운터부(130)로부터 동기신호에 동기하여 상기 어드레스/데이터신호(OSID)로 입력되는 직렬 데이터를 입력받아 저장하며, 상기 카운터부(130)와 제어신호발생부(140)로부터 제공되는 제어신호에 의거하여 OTP로 저장된 직렬 데이터를 병렬 데이터 변환하여 출력하고, 독출동작시 상기 카운터부(130)로 부터 동기신호에 동기하여 OTP로부터 병렬 데이터를 입력받아 저장하며, 상기 카운터부(130)와 제어신호발생부(140)로부터 제공되는 제어신호에 의거하여 저장된 병렬 데이터를 직렬 데이터 변환하여 출력하는 데이터버퍼(154)를 포함하는 OTP용 직렬 인터페이스 장치.The method of claim 1, wherein the address / data buffer 150 receives a synchronization signal from the counter unit 130, receives and stores address data input as the address / data signal OSID in synchronization with the counter signal 130, An address buffer 152 that increases address data based on the control signals provided from the counter 130 and the control signal generator 140 and outputs the OTP to the OTP; During programming, the serial data inputted as the address / data signal (OSID) is received from the counter unit 130 in synchronization with a synchronous signal and stored therein, and are provided from the counter unit 130 and the control signal generator 140. Based on the control signal, the serial data stored in the OTP is converted into parallel data and outputted, and during the read operation, the parallel data is received and stored from the OTP in synchronization with the synchronization signal from the counter unit 130, and the counter unit 130 And a data buffer (154) for converting and outputting serial data stored in parallel based on a control signal provided from the control signal generator (140). 마이크로 컨트롤러에 있어서; 프로그램 가능한 OTP(20)와; 상기 OTP(20)의 프로그램 동작 및 독출 동작에 따른 클럭신호를 입력받는 클럭단자(100)와; 상기 OTP(20)의 프로그램 동작 및 독출 동작에 따른 어드레스 신호 및 데이터 신호를 입력받는 어드레스/데이터단자(110)와; 상기 클럭단자(100)와 상기 어드레스/데이터단자(110)로 입력되는 각 신호에 의거하여 상기 OTP의 프로그램 및 독출 동작을 수행하는 OTP용 직렬인터페이스 장치(10)를 포함하는 것을 특징으로 하는 마이크로 컨트롤러.In a microcontroller; A programmable OTP 20; A clock terminal 100 receiving a clock signal according to a program operation and a read operation of the OTP 20; An address / data terminal 110 for receiving an address signal and a data signal according to a program operation and a read operation of the OTP 20; And a serial interface device (10) for OTP performing the program and read operation of the OTP based on the signals input to the clock terminal (100) and the address / data terminal (110). . 제5항에 있어서, 상기 직렬 인터페이스 장치(10)는, 소정의 주기를 갖는 클럭신호(OSIC)와, 어드레스/데이터신호9OSID)를 입력받아 OTP의 프로그램/독출동작의 시작상태와 종료상태를 알리기 위한 상태신호(EMODE)를 출력하는 상태신호 발생부(120)와; 상기 클럭신호(OSIC)와 상기 상태신호(EMODE)를 제공받고, 상기 클럭신호(OSIC)의 카운팅 결과에 따른 신호들을 출력하는 카운터부(130)와; 상기 상태신호(EMODE)및 상기 카운터부(130)의 출력을 제공받아 OTP의 프로그램/독출동작을 제어하기 위한 소정의 제어신호들을 출력하는 제어신호발생부(140); 및 상기 카운터부(130)와 상기 제어신호발생부(140)로부터 제공되는 동기신호 및 제어신호를 제공받고, 상기 어드레스/데이터신호(OSID)를 제공받아 상기 OTP의 어드레스를 지정하기 위한 어드레스 신호를 출력하고, 직렬-병렬 데이터 변환을 수행하여 출력하는 어드레스/데이터 버퍼(150)를 포함하는 OTP용 직렬 인터페이스 장치.The apparatus of claim 5, wherein the serial interface device 10 receives a clock signal OSIC having a predetermined period and an address / data signal 9 OSID to inform the start state and end state of the program / read operation of the OTP. A status signal generator 120 for outputting a status signal EMODE for the controller; A counter unit (130) receiving the clock signal (OSIC) and the state signal (EMODE) and outputting signals according to a counting result of the clock signal (OSIC); A control signal generator 140 receiving the output of the status signal EMODE and the counter 130 and outputting predetermined control signals for controlling the program / read operation of the OTP; And receiving an synchronization signal and a control signal provided from the counter unit 130 and the control signal generator 140, and receiving the address / data signal OSID to receive an address signal for specifying the address of the OTP. And an address / data buffer (150) for outputting by performing serial-to-parallel data conversion. 제6항에 있어서, 상기 카운터부(130)는 상기 클럭신호(OSIC)의 클럭 수를 카운트하는 클럭카운터(132)와; 상기 클럭카운터(132)의 출력을 입력받고, 어드레스정보(31)와 데이터정보(35)를 구분하기 위한 프레임카운터(134)를 포함하는 OTP용 직렬 인터페이스 장치.The apparatus of claim 6, wherein the counter unit comprises: a clock counter (132) for counting the number of clocks of the clock signal (OSIC); And a frame counter (134) for receiving the output of the clock counter (132) and distinguishing address information (31) and data information (35). 제6항에 있어서, 상기 제어신호발생부(140)는 OTP의 프로그램과 독출동작에 따른 제어신호(PGM#, OE#)를 출력하는 기입/독출 제어신호 발생부(142)와; OTP 모드제어신호(OTPROW, OTPCOL, GANG)를 출력하는 모드제어신호 발생부(144)를 포함하는 OTP용 직렬 인터페이스 장치.The method of claim 6, wherein the control signal generator 140 includes: a write / read control signal generator 142 for outputting control signals PGM # and OE # according to the program and read operation of the OTP; A serial interface device for an OTP comprising a mode control signal generator 144 for outputting an OTP mode control signal (OTPROW, OTPCOL, GANG). 제6항에 있어서, 상기 어드레스/데이터버퍼(150)는 상기 카운터부(130)로부터 동기신호를 제공받고, 이에 동기하여 상기 어드레스/데이터신호(OSID)로 입력되는 어드레스 데이터를 입력받아 저장하며, 상기 카운터부(130)와 제어신호발생부(140)로부터 제공되는 제어신호에 의거하여 어드레스 데이터를 증가하여 OTP로 출력하는 어드레스버퍼(152)와;According to claim 6, The address / data buffer 150 receives the synchronization signal from the counter unit 130, and in synchronization with this receives the address data input to the address / data signal (OSID), and stores it, An address buffer 152 that increases address data based on the control signals provided from the counter 130 and the control signal generator 140 and outputs the OTP to the OTP; 프로그램시 상기 카운터부(130)로부터 동기신호에 동기하여 상기 어드레스/데이터신호(OSID)로 입력되는 직렬 데이터를 입력받아 저장하며, 상기 카운터부(130)와 제어신호발생부(140)로부터 제공되는 제어신호에 의거하여 OTP로 저장된 직렬 데이터를 병렬 데이터 변환하여 출력하고, 독출동작시 상기 카운터부(130)로 부터 동기신호에 동기하여 OTP로부터 병렬 데이터를 입력받아 저장하며, 상기 카운터부(130)와 제어신호발생부(140)로부터 제공되는 제어신호에 의거하여 저장된 병렬 데이터를 직렬 데이터 변환하여 출력하는 데이터버퍼(154)를 포함하는 OTP용 직렬 인터페이스 장치.During programming, the serial data inputted as the address / data signal (OSID) is received from the counter unit 130 in synchronization with a synchronous signal and stored therein, and are provided from the counter unit 130 and the control signal generator 140. Based on the control signal, the serial data stored in the OTP is converted into parallel data and outputted, and during the read operation, the parallel data is received and stored from the OTP in synchronization with the synchronization signal from the counter unit 130, and the counter unit 130 And a data buffer (154) for converting and outputting serial data stored in parallel based on a control signal provided from the control signal generator (140). 프로그램 가능한 OTP(20)와, 상기 OTP(20)의 프로그램 및 독출동작에 따른 클럭신호를 입력받는 클럭단자(100)와, 상기 OTP(200의 프로그램 및 독출동작에 따른 어드레스신호 및 데이터신호를 입력받는 어드레스/데이터단자(110)와, 상기 클럭단자(100)와 상기 어드레스/데이터단자(110)로 입력되는 각 신호에 의거하여 상기 OTP의 프로그램 및 독출 동작을 수행하는 OTP용 직렬 인터페이스 장치(10)를 포함하는 마이크로 컨트롤러의 OTP 프로그램 및 독출 제어 방법은 : 상기 클럭단자(100)로 입력되는 클럭신호(OSIC)가 일정 전압레벨을 유지하는 구간에서 상기 어드레스/데이터단자(110)로 입력되는 신호(OSID)가 서로 다른 전압레벨 갖는 제1전압레벨에서 제2전압레벨로 변환되면 상기 OTP(20)의 프로그램 또는 독출동작 중 어느 한 동작이 시작되고; 상기 클럭신호(OSIC)가 일정 전압레벨을 유지하는 구간에서 상기 어드레스/데이터단자(110)로 입력되는 신호(OSID)가 제2전압레벨에서 제1전압레벨로 변환되면 상기 OTP(20)의 프로그램 또는 독출동작 중 어느 한 동작이 종료되며; 상기 클럭신호(OSIC)에 더미클럭을 정의하고, 상기 더미클럭에 동기하여 상기 OTP(20)의 프로그램 또는 독출동작 중 어느 한 동작을 수행하는 것을 특징으로 하는 마이크로 컨트롤러의 OTP 프로그램 및 독출 제어방법.A programmable OTP 20, a clock terminal 100 for receiving a clock signal according to a program and a read operation of the OTP 20, and an address signal and a data signal according to the program and read operation of the OTP 200 are input. OTP serial interface device 10 for performing program and read operation of the OTP based on the received address / data terminal 110 and the signals input to the clock terminal 100 and the address / data terminal 110. The OTP program and read control method of the microcontroller, including: a signal input to the address / data terminal 110 in a section in which a clock signal OSIC input to the clock terminal 100 maintains a constant voltage level When the OSID is converted from the first voltage level having the different voltage level to the second voltage level, any one of the program or read operation of the OTP 20 is started; When the signal OSID input to the address / data terminal 110 is converted from the second voltage level to the first voltage level in the period of maintaining the voltage level, any one of the program or read operation of the OTP 20 is performed. Define a dummy clock in the clock signal OSIC, and perform any one of a program or a read operation of the OTP 20 in synchronization with the dummy clock. Control method. 제10항에 있어서, 독출동작시, 상기 더미클럭이 입력되는 구간에서 상기 어드레스/데이터단자(110)를 입력포트로 설정하는 것을 특징으로 하는 마이크로 컨트롤러의 OTP 프로그램 및 독출 제어방법.The OTP program and read control method of claim 10, wherein the address / data terminal 110 is set as an input port in a section in which the dummy clock is input during a read operation. 제10항에 있어서, 프로그램 동작시, 프로그램의 종료시 최종 프로그램데이터에 후속하여 복수개의 더미 데이터를 전송하여 최종 프로그램 데이터의 프로그램 시간을 확보하는 것을 특징으로 하는 마이크로 컨트롤러의 OTP의 프로그램 및 독출 제어방법.The program and read control method of the microcontroller according to claim 10, wherein in the program operation, at the end of the program, a plurality of dummy data are transmitted following the final program data to secure the program time of the final program data.
KR1019970041311A 1997-08-26 1997-08-26 Serial Interface Unit for OTP KR19990018193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970041311A KR19990018193A (en) 1997-08-26 1997-08-26 Serial Interface Unit for OTP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970041311A KR19990018193A (en) 1997-08-26 1997-08-26 Serial Interface Unit for OTP

Publications (1)

Publication Number Publication Date
KR19990018193A true KR19990018193A (en) 1999-03-15

Family

ID=66046739

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970041311A KR19990018193A (en) 1997-08-26 1997-08-26 Serial Interface Unit for OTP

Country Status (1)

Country Link
KR (1) KR19990018193A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100324317B1 (en) * 1999-04-01 2002-02-16 김영환 Serial program control circuit
CN113255277A (en) * 2021-05-21 2021-08-13 珠海市一微半导体有限公司 OTP controller, integrated circuit and control method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100324317B1 (en) * 1999-04-01 2002-02-16 김영환 Serial program control circuit
CN113255277A (en) * 2021-05-21 2021-08-13 珠海市一微半导体有限公司 OTP controller, integrated circuit and control method thereof

Similar Documents

Publication Publication Date Title
EP0301383B1 (en) Pseudo random pattern generating device
WO2006020357A1 (en) Fuse data storage system using core memory
JP2006127653A (en) Memory element
KR20010053365A (en) Improved inter-device serial bus protocol
JP4387371B2 (en) Memory device, its use, and data word synchronization method
KR19990018193A (en) Serial Interface Unit for OTP
US7454644B2 (en) Integrated circuit with low current consumption having a one wire communication interface
US5148434A (en) Digital data generator
JP3832548B2 (en) Read-only memory device
US7266128B1 (en) Time-slot interchange switches having efficient block programming and on-chip bypass capabilities and methods of operating same
US7206919B2 (en) Rapid partial configuration of reconfigurable devices
US20010008490A1 (en) Semiconductor integrated circuit
JPH11509658A (en) Extended chip select reset device and method
US4569040A (en) Electronic switching system having a time division multiplex switch controller address by central control unit
US20070239901A1 (en) Multiple mode communication interface for expansion device and PLC host and method for operating the same
KR100505600B1 (en) Programmable microcontroller including a serial interface circuit and data writing/reading method thereof
KR100465430B1 (en) Apparatus for control memory initialization in time switch
KR100318324B1 (en) EPROM address generator
US6115801A (en) Device and method for increasing the internal address of a memory device using multifunctional terminals
JP3119275B2 (en) Data transmission circuit
KR0131551B1 (en) Circuit to change a down data
US6341096B1 (en) Semiconductor memory device
KR100415086B1 (en) Embedded flash micro control unit and method for control the same
KR0169789B1 (en) Method and circuit for transmitting data of blocks
CN115482863A (en) Memory storage device and operation method thereof

Legal Events

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