KR20080096130A - Device and method for transferring data - Google Patents

Device and method for transferring data Download PDF

Info

Publication number
KR20080096130A
KR20080096130A KR1020070041167A KR20070041167A KR20080096130A KR 20080096130 A KR20080096130 A KR 20080096130A KR 1020070041167 A KR1020070041167 A KR 1020070041167A KR 20070041167 A KR20070041167 A KR 20070041167A KR 20080096130 A KR20080096130 A KR 20080096130A
Authority
KR
South Korea
Prior art keywords
data
state
signal
parallel data
serial data
Prior art date
Application number
KR1020070041167A
Other languages
Korean (ko)
Other versions
KR100934611B1 (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 KR1020070041167A priority Critical patent/KR100934611B1/en
Publication of KR20080096130A publication Critical patent/KR20080096130A/en
Application granted granted Critical
Publication of KR100934611B1 publication Critical patent/KR100934611B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/10Distribution of clock signals, e.g. skew
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/173Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
    • G06F15/17306Intercommunication techniques
    • G06F15/17325Synchronisation; Hardware support therefor

Abstract

A device for transmitting data and a method thereof are provided to expand bandwidth about two times, thereby transmitting high resolution pixel data in high speed. A data output unit outputs data output stage outputting synchronizing signals synchronized with m bit parallel data. The first interface unit(220) receives outputted data and signal from the data output unit. The first interface unit converts the received data and signal to n bit serial data stream by adding synchronizing codes, and outputs clock signal synchronized with the n bit serial data stream. The data output unit and the first interface unit are installed in the same chip.

Description

데이터 전송을 위한 장치 및 그 방법{Device and method for transferring data}Device and method for transferring data

도 1은 일반적인 이미지 센서와 부가 프로세서간의 이미지 데이터 전송을 위한 패러럴 인터페이스 구조를 예시한 도면.1 illustrates a parallel interface structure for transmitting image data between a general image sensor and an additional processor.

도 2는 본 발명의 일 실시예에 따른 직렬 전송 방식으로 데이터를 전송할 수 있는 시스템의 블록 구성도.2 is a block diagram of a system capable of transmitting data in a serial transmission method according to an embodiment of the present invention.

도 3은 본 발명의 일 실시예에 따른 제1 인터페이스부의 내부 기능 구성 요소에 따른 블록도.3 is a block diagram of internal functional components of a first interface unit according to an embodiment of the present invention;

도 4는 본 발명의 일 실시예에 따른 이미지 센서가 출력하는 픽셀 데이터 및 동기 신호들에 대한 예시도.4 is an exemplary diagram of pixel data and synchronization signals output by an image sensor according to an exemplary embodiment of the present invention.

도 5는 본 발명의 일 실시예에 따른 인코더부가 출력하는 데이터 및 클럭 신호의 예시도.5 is an exemplary diagram of data and clock signals output by an encoder unit according to an embodiment of the present invention.

도 6은 본 발명의 일 실시예에 따른 동기 코드가 삽입된 픽셀 데이터의 예시도.6 is an exemplary diagram of pixel data in which a sync code is inserted according to an embodiment of the present invention.

도 7은 본 발명의 일 실시예에 따른 직렬 데이터 변환부가 출력하는 데이터 및 클럭 신호의 예시도.7 is an exemplary diagram of data and clock signals outputted from a serial data converter according to an exemplary embodiment of the present invention.

도 8은 본 발명의 일 실시예에 따른 LVDS 회로를 예시한 도면.8 illustrates an LVDS circuit according to an embodiment of the present invention.

도 9는 본 발명의 일 실시예에 따른 LVDS의 파형을 예시한 도면.9 illustrates a waveform of an LVDS in accordance with an embodiment of the present invention.

도 10은 본 발명의 일 실시예에 따른 제2 인터페이스부의 내부 기능 블록을 예시한 도면.10 illustrates an internal functional block of a second interface unit according to an embodiment of the present invention.

도 11은 본 발명의 일 실시예에 따른 고속 직렬 데이터 전송을 위한 인터페이스를 통해 데이터를 전송한 경우와 종래의 병렬 데이터 전송을 위한 인터페이스를 통해 데이터를 전송한 경우를 비교한 그래프.FIG. 11 is a graph comparing a case where data is transmitted through an interface for high speed serial data transmission and a case where data is transmitted through an interface for conventional parallel data transmission according to an embodiment of the present invention. FIG.

도 12는 본 발명의 일 실시예에 따른 제1 인터페이스부가 m비트의 병렬 데이터를 n비트의 직렬 데이터 스트림으로 변환하여 출력하는 방법을 나타낸 순서도.12 is a flowchart illustrating a method of converting m-bit parallel data into an n-bit serial data stream and outputting the m-bit parallel data according to an embodiment of the present invention.

도 13은 본 발명의 일 실시예에 따른 제2 인터페이스부가 직렬 데이터 스트림을 병렬 데이터 스트림으로 변환하여 출력하는 방법을 나타낸 순서도.FIG. 13 is a flowchart illustrating a method of converting a serial data stream into a parallel data stream and outputting the serial data stream according to an embodiment of the present invention. FIG.

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

220 : 제1 인터페이스부220: first interface unit

310 : 인코더부310: encoder section

320 : 직렬 데이터 변환부320: serial data converter

330 : 차등신호 출력부330: differential signal output unit

230 : 제2 인터페이스부230: second interface unit

1010 : 차등신호 입력부1010: differential signal input unit

1020 : 병렬 데이터 변환부1020: parallel data converter

1030 : 디코더부1030: decoder unit

본 발명은 데이터 전송에 관한 것으로, 특히 이미지 센서와 이미지 시그널 프로세서간의 데이터를 빠른 속도로 전송할 수 있는 방법 및 그 시스템에 관한 것이다.The present invention relates to data transmission, and more particularly, to a method and a system capable of transferring data between an image sensor and an image signal processor at a high speed.

최근, 소형 및 박형의 촬상 소자가 휴대 전화기나 PDA(Personal Digital Assistant) 등의 소형 및 박형의 휴대용 단말기에 탑재됨으로써, 휴대용 단말기가 촬상 장치로서 기능할 수 있다. 즉, 촬상 소자는 휴대 전화기나 PDA 뿐 아니라 MP3 플레이어 등의 휴대용 단말기에도 구비되어 다양한 장치에서 외부 영상을 전자적인 데이터로 보유할 수 있도록 구현되어 있다. 따라서, 통신 기능을 구비한 휴대용 단말기인 경우 원격지로 음성 정보뿐만 아니라 촬상한 화상 정보도 전송할 수 있게 되었다. In recent years, small and thin image pickup devices are mounted in small and thin portable terminals such as mobile phones and PDAs (Personal Digital Assistants), whereby the portable terminals can function as image pickup devices. That is, the imaging device is provided not only in a mobile phone or a PDA but also in a portable terminal such as an MP3 player so that various devices can hold external images as electronic data. Therefore, in the case of a portable terminal having a communication function, not only the voice information but also the captured image information can be transmitted to a remote place.

이러한 촬상 장치에는 일반적으로 CCD(Charge Coupled Device)형 이미지 센서나 CMOS(Complementary Metal-Oxide Semiconductor)형 이미지 센서 등의 고체 촬상 소자가 사용된다. 그리고, 촬상 소자에서 생성된 픽셀 데이터는 m비트의 픽셀 데이터를 전송할 수 있는 데이터 버스를 통해 병렬 전송 방식으로 전송된다.In general, a solid-state imaging device such as a charge coupled device (CCD) image sensor or a complementary metal-oxide semiconductor (CMOS) image sensor is used for such an imaging device. The pixel data generated by the imaging device is transmitted in a parallel transmission method through a data bus capable of transmitting m-bit pixel data.

도 1을 참조하여 일반적인 촬상 소자와 이미지 시그널 프로세서간의 데이터 전송 방식에 대해 간략히 설명하기로 한다.Referring to FIG. 1, a brief description will be given of a data transmission method between a general image pickup device and an image signal processor.

이미지 센서(110)는 베이어 패턴(Bayer pattern)을 가지는 센서로서, 단위 픽셀별로 렌즈를 통해 입력된 빛의 양에 상응하는 전기 신호(raw data)를 출력(이하, 편의상 "픽셀 데이터"라 칭하기로 함)한다.The image sensor 110 is a sensor having a Bayer pattern. The image sensor 110 outputs raw data corresponding to the amount of light input through the lens for each unit pixel (hereinafter, referred to as "pixel data" for convenience). To).

이미지 시그널 프로세서(120)는 이미지 센서(110)로부터 입력된 픽셀 데이터를 YUV값으로 변환하고, 변환된 YUV 값을 베이스밴드 프로세서(미도시)로 출력한다. YUV 방식은 사람의 눈이 색상보다는 밝기에 민감하다는 사실에 착안한 방식으로, 색을 밝기(Luminance)인 Y성분과 색상(Chrominance)인 U와 V 성분으로 구분한다. Y성분은 오차에 민감하므로 색상 성분인 U와 V보다 많은 비트를 코딩한다. 전형적인 Y:U:V의 비율은 4:2:2 이다. The image signal processor 120 converts pixel data input from the image sensor 110 into a YUV value, and outputs the converted YUV value to a baseband processor (not shown). The YUV method focuses on the fact that the human eye is more sensitive to brightness than color. The YUV method distinguishes colors into Y components of luminance and U and V components of chrominance. Since the Y component is sensitive to error, we code more bits than the color components U and V. A typical Y: U: V ratio is 4: 2: 2.

이미지 센서(110)는 m비트의 데이터를 동시에 전송할 수 있는 데이터 버스를 통해 m비트의 픽셀 데이터를 출력하며, 이미지 시그널 프로세서(120)가 해당 픽셀 데이터를 획득할 수 있도록 해당 픽셀 데이터에 동기화된 클럭 신호(PCLK), 수직 동기 신호(VSYNC), 유효 데이터 인에이블 신호(HREF)를 각각의 신호선을 통해 이미지 시그널 프로세서(120)로 출력한다.The image sensor 110 outputs m-bit pixel data through a data bus capable of simultaneously transmitting m-bit data, and a clock synchronized to the pixel data so that the image signal processor 120 may acquire the pixel data. The signal PCLK, the vertical synchronization signal VSYNC, and the valid data enable signal HREF are output to the image signal processor 120 through respective signal lines.

예를 들어, 전송할 픽셀 데이터의 사이즈(size)가 aㅧb 픽셀(a개의 라인과 각 라인당 b개의 픽셀들을 포함함)이면, 하나의 수직 동기 신호(VSYNC)에 대해 유효 구간(예를 들어, 하이(High) 상태 또는 로우(Low) 상태로 미리 특정될 수 있음)에 상응하여 a개의 유효 데이터 인에이블 신호(HREF)가 출력되며, 하나의 유효 데이터 인에이블 신호(HREF)의 유효 구간(예를 들어, 하이 상태 또는 로우 상태로 미 리 특정될 수 있음) 동안 b개의 픽셀 데이터가 출력될 수 있다.For example, if the size of the pixel data to be transmitted is an a ㅧ b pixel (including a line and b pixels per line), a valid period (for example, one vertical sync signal VSYNC) may be used. A valid data enable signal HREF is output corresponding to a high state or a low state in advance, and a valid period of one valid data enable signal HREF is output. For example, b pixel data may be output during the high state or the low state).

이미지 센서(110)와 이미지 시그널 프로세서(120)는 CMOS 또는 TTL 레벨의 싱글 엔디드 시그널(single ended signal) 방법을 사용하여 데이터를 전송하므로 클럭 신호를 100Mhz이상으로 높일 수 없는 문제점을 가지고 있다. 또한, 픽셀 데이터를 전송하기 위해 많은 신호선이 연결되어야 하며, 비교적 높은 입출력(I/O) 전압(예를 들어, 1.8V ~ 3.3V)에서 신호가 스윙(swing)하고, 대용량의 픽셀 데이터를 고속으로 전송하기 위해서는 클럭 신호(PCLK)의 주파수가 높아져야 하므로, 이에 따라 급속하게 전력 소모가 증가되는 문제점을 가지고 있다. 이외에도, 많은 시그널 노이즈 발생과 같은 문제점을 가지고 있다.Since the image sensor 110 and the image signal processor 120 transmit data using a single ended signal method of a CMOS or TTL level, the image signal 110 and the image signal processor 120 may not increase the clock signal to 100 MHz or higher. In addition, many signal lines must be connected to transmit pixel data, and signals swing at relatively high input / output (I / O) voltages (for example, 1.8 V to 3.3 V), and high-capacity pixel data can be quickly Since the frequency of the clock signal PCLK must be increased in order to transmit the data, the power consumption is rapidly increased. In addition, there are many problems such as signal noise generation.

따라서, 상술한 문제점을 해결하기 위한 본 발명은 m비트의 병렬 데이터를 n비트의 직렬 데이터 스트림으로 변환한 후 저압차등신호를 이용하여 전송할 수 있는 데이터 전송을 위한 장치 및 그 방법을 제공하기 위한 것이다.Accordingly, an object of the present invention is to provide an apparatus and method for data transmission that can be transmitted using a low pressure differential signal after converting m-bit parallel data into an n-bit serial data stream. .

또한, 본 발명은 휴대용 단말기에서 고화소의 픽셀 데이터를 전송함에 있어 밴드폭(bandwidth)을 약 2배 확장할 수 있는 데이터 전송을 위한 장치 및 그 방법을 제공하기 위한 것이다.Another object of the present invention is to provide an apparatus and method for data transmission that can extend a bandwidth approximately twice in transmitting pixel data of a high pixel in a portable terminal.

또한, 본 발명은 저압차등신호를 이용하여 픽셀 데이터를 전송함으로써 데이터 전송에 필요한 신호선을 줄일 수 있으며, 전력 소모를 줄일 수 있는 데이터 전송을 위한 장치 및 그 방법을 제공하기 위한 것이다.In addition, the present invention is to provide a device and method for data transmission that can reduce the signal line required for data transmission, by transmitting the pixel data using a low pressure differential signal, and can reduce the power consumption.

또한, 본 발명은 저압차등신호를 이용하여 픽셀 데이터를 전송함으로써 데이터 또는 클럭 신호를 전송하는 신호선의 전자파 간섭(EMI)을 개선할 수 있는 데이터 전송을 위한 장치 및 그 방법을 제공하기 위한 것이다.In addition, the present invention is to provide an apparatus and method for data transmission that can improve the electromagnetic interference (EMI) of the signal line for transmitting the data or clock signal by transmitting the pixel data using the low pressure differential signal.

또한, 본 발명은 데이터 전송을 위해 필요한 내부 신호선의 수를 감소시킴으로써, PCB 설계가 용의하며 케이블, PCB 트레이스(trace)수 및 커넥터의 크기를 줄임으로써 비용을 절감할 수 있는 데이터 전송을 위한 장치 및 그 방법을 제공하기 위한 것이다.In addition, the present invention reduces the number of internal signal lines required for data transmission, thereby facilitating PCB design and reducing costs by reducing the size of cables, PCB traces and connectors. And a method thereof.

또한, 본 발명은 데이터 전송을 위해 필요한 신호선의 수를 감소시킴으로써, I/O핀을 줄여 부품을 소형화할 수 있는 데이터 전송을 위한 장치 및 그 방법을 제공하기 위한 것이다.In addition, the present invention is to provide an apparatus and method for data transmission that can reduce the number of signal lines required for data transmission, thereby reducing the size of the I / O pins.

이외의 본 발명의 목적들은 하기의 실시예에 대한 설명을 통해 쉽게 이해될 수 있을 것이다.Other objects of the present invention will be easily understood through the description of the following examples.

상술한 목적을 달성하기 위하여, 본 발명의 일 측면에 따르면, 각각의 칩간에 데이터 전송시 병렬 데이터를 직렬 데이터로 전송하고 수신할 수 있는 장치가 제공된다.In order to achieve the above object, according to an aspect of the present invention, there is provided an apparatus capable of transmitting and receiving parallel data as serial data during data transmission between each chip.

본 발명의 일 실시예에 따르면, m(임의의 자연수) 비트의 병렬 데이터와 동기화된 동기 신호들을 출력하는 데이터 출력부; 및 상기 데이터 출력부로부터 상기 병렬 데이터 및 상기 동기 신호를 입력받고, 상기 동기 신호들에 상응하여 설정한 동기 코드들을 병렬 데이터에 삽입하여 n(임의의 자연수) 비트의 직렬 데이터 스트림으로 변환하여 출력하며, 상기 직렬 데이터 스트림에 동기화된 클럭 신호를 생성하여 출력하는 제1 인터페이스부를 포함하되, 센서 또는 프로세서 중 어느 하나인 상기 데이터 출력부와 상기 제1 인터페이스부는 동일한 칩에 구비되는 것을 특징으로 하는 데이터 전송 장치가 제공될 수 있다.According to an embodiment of the present invention, a data output unit for outputting synchronization signals synchronized with parallel data of m (any natural number) bits; And receiving the parallel data and the synchronization signal from the data output unit, inserting the synchronization codes set corresponding to the synchronization signals into the parallel data, converting them into a serial data stream of n (any natural number) bits, and outputting the same. And a first interface unit generating and outputting a clock signal synchronized to the serial data stream, wherein the data output unit and the first interface unit, which are one of a sensor and a processor, are provided on the same chip. An apparatus may be provided.

상기 제1 인터페이스부는, 상기 동기 코드를 상기 병렬 데이터 삽입하여 출력하며, 상기 동기 코드가 삽입된 병렬 데이터에 동기화된 제1 클럭 신호를 생성하여 출력하는 인코더부; 및 상기 동기 코드가 삽입된 병렬 데이터를 상기 n비트씩 시프트(shift)시켜 n비트 단위의 상기 직렬 데이터 스트림으로 변환하여 출력하며, 상기 제1 클럭 신호를 분주한 제2 클럭 신호를 생성하여 출력하는 직렬 데이터 변환부를 포함할 수 있다.The first interface unit includes: an encoder unit for inserting and outputting the sync code and generating and outputting a first clock signal synchronized with the parallel data into which the sync code is inserted; And converting the parallel data into which the sync code is inserted, by n bits, converting the parallel data into the serial data stream in units of n bits, and generating and outputting a second clock signal obtained by dividing the first clock signal. It may include a serial data converter.

상기 데이터 출력부가 피사체에 상응하는 m비트의 픽셀 데이터 및 상응하는 동기 신호들을 출력하는 이미지 센서인 경우, 상기 동기 신호들은 상기 병렬 데이터의 획득을 위한 클럭 신호(PCLK), 각각의 프레임의 식별을 위한 수직 동기 신호(VSYNC) 및 각 프레임내의 라인의 식별을 위한 유효 데이터 인에이블 신호(HREF)이고, 상기 인코더부는 상기 수직 동기 신호(VSYNC)가 제1 상태로 변경되면, 프레임의 시작을 지시하는 SOF(start of frame sync code)를 상기 병렬 데이터에 삽입하며, 상기 수직 동기 신호(VSYNC)가 제2 상태로 변경되면, 프레임의 종료를 지시하는 EOF(end of frame sync code)를 상기 병렬 데이터에 삽입하되, 상기 제1 상태 는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 다른 하나일 수 있다.When the data output unit is an image sensor that outputs m-bit pixel data corresponding to a subject and corresponding synchronization signals, the synchronization signals are a clock signal PCLK for acquiring the parallel data and for identification of each frame. A vertical synchronization signal VSYNC and a valid data enable signal HREF for identifying a line in each frame, and the encoder unit SOF indicating the start of a frame when the vertical synchronization signal VSYNC changes to a first state. (start of frame sync code) is inserted into the parallel data, and when the vertical sync signal VSYNC is changed to the second state, an end of frame sync code (EOF) indicating the end of the frame is inserted into the parallel data. The first state is either a falling edge or a rising edge, and the second state is a falling edge or a rising edge. The other one can be.

상기 인코더부는 상기 수직 동기 신호(VSYNC)가 상기 제1 상태로 변경된 후 상기 유효 데이터 인에이블 신호(HREF)가 제3 상태로 변경되면, 라인의 시작을 지시하는 SOL(start of line sync code)를 상기 병렬 데이터에 삽입하며, 상기 유효 데이터 인에이블 신호가 제4 상태로 변경되면, 상기 라인의 종료를 지시하는 EOL(end of line sync code)를 상기 병렬 데이터 삽입하되, 상기 제3 상태는 상기 제1 상태 및 상기 제2 상태 중 어느 하나이고, 상기 제4 상태는 상기 제1 상태 및 상기 제2 상태 중 다른 하나일 수 있다.When the valid data enable signal HREF is changed to the third state after the vertical synchronization signal VSYNC is changed to the first state, the encoder unit generates a start of line sync code (SOL) indicating the start of a line. Inserting the parallel data and inserting an end of line sync code (EOL) indicating the end of the line when the valid data enable signal is changed to a fourth state, wherein the third state is the third state; One of the first state and the second state, and the fourth state may be the other of the first state and the second state.

상기 직렬 데이터 스트림과 상기 제2 클럭 신호를 저압차등신호로 변환하여 출력하는 차등신호 출력부를 더 포함하되, 상기 직렬 데이터 변환부는 상기 직렬 데이터 스트림의 출력을 위한 복수개의 데이터 신호선과 상기 클럭 신호를 출력하기 위한 클럭 신호선을 통해 상기 차등신호 출력부와 연결될 수 있다.And a differential signal output unit converting the serial data stream and the second clock signal into a low voltage differential signal and outputting the differential data signal, wherein the serial data converter outputs a plurality of data signal lines and the clock signal for outputting the serial data stream. The differential signal output unit may be connected to a clock signal line.

상기 직렬 데이터 변환부는 상기 직렬 데이터 스트림의 홀수 위치의 비트값은 제1 데이터 신호선을 통해 출력하며, 상기 짝수 위치의 비트값은 제2 데이터 신호선을 통해 상기 차등신호 출력부로 출력할 수 있다.The serial data converter may output bit values at odd positions of the serial data stream through a first data signal line, and output bit values at even positions to the differential signal output unit through a second data signal line.

상기 직렬 데이터 변환부는 상기 동기 코드가 삽입된 픽셀 데이터를

Figure 112007031925416-PAT00001
비트 씩 시프트시켜 상위
Figure 112007031925416-PAT00002
비트의 직렬 데이터 스트림은 제1 데이터 신호선을 통해 출력하며, 하위
Figure 112007031925416-PAT00003
비트의 직렬 데이터 스트림은 제2 데이터 신호선을 통해 상기 차등신호 출력부로 출력할 수 있다.The serial data converter may convert pixel data into which the sync code is inserted.
Figure 112007031925416-PAT00001
Shift bit by bit
Figure 112007031925416-PAT00002
The serial data stream of bits is output through the first data signal line,
Figure 112007031925416-PAT00003
A serial data stream of bits may be output to the differential signal output section via a second data signal line.

본 발명의 다른 실시예에 따르면, 입력되는 n(임의의 자연수)비트의 직렬 데이터 스트림 및 동기화된 클럭 신호를 입력받아 m(임의의 자연수)비트의 병렬 데이터로 변환하여 미리 설정된 동기 코드를 검출하여 상응하는 동기 신호를 생성하며, 상기 동기 코드가 제거된 병렬 데이터를 출력하는 제2 인터페이스부; 및 상기 제2 인터페이스부를 통해 상기 병렬 데이터 및 상기 동기 신호를 입력받아 미리 정해진 데이터 포맷으로 변환하는 프로세서를 포함하되, 상기 프로세서와 상기 제2 인터페이스부는 동일한 칩에 구비되는 것을 특징으로 하는 데이터 수신 장치가 제공될 수 있다.According to another embodiment of the present invention, a serial data stream of n (random natural number) bits and a synchronized clock signal are input and converted into m (random natural number) bits of parallel data to detect a preset sync code. A second interface unit generating a corresponding synchronization signal and outputting parallel data from which the synchronization code has been removed; And a processor configured to receive the parallel data and the synchronization signal through the second interface unit and convert the parallel data and the synchronization signal into a predetermined data format, wherein the processor and the second interface unit are provided on the same chip. Can be provided.

상기 제2 인터페이스부는, 상기 직렬 데이터 스트림을 상기 n비트씩 시프트시켜 상기 m비트의 병렬 데이터로 변환하는 병렬 데이터 변환부; 및 상기 병렬 데이터에서 상기 동기 코드를 검출하여 상응하는 상기 동기 신호를 생성하고, 상기 동기 코드가 제거된 병렬 데이터를 출력하는 디코더부를 포함할 수 있다.The second interface unit may include: a parallel data converter converting the serial data stream by the n bits and converting the m data into parallel data of m bits; And a decoder configured to detect the sync code from the parallel data to generate a corresponding sync signal, and output parallel data from which the sync code has been removed.

상기 디코더부는 상기 변환된 병렬 데이터가 SOF이면, 제1 상태로 변경된 수직 동기 신호(VSYNC)를 생성하여 출력하며, 상기 변환된 병렬 데이터가 EOF이면, 제2 상태로 변경된 수직 동기 신호(VSYNC)를 생성하여 출력하되, 상기 제1 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 다른 하나일 수 있다.The decoder generates and outputs a vertical synchronizing signal VSYNC changed to a first state when the converted parallel data is SOF, and outputs a vertical synchronizing signal VSYNC changed to a second state when the converted parallel data is EOF. Generate and output, wherein the first state is any one of a falling edge or a rising edge, and the second state is the other of a falling edge or a rising edge. Can be.

상기 디코더부는 상기 변환된 병렬 데이터가 SOL이면, 상기 제3 상태로 변환된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하며, 상기 변환된 병렬 데이터가 EOL이면 상기 제4 상태로 변환된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하되, 상기 제3 상태는 상기 제1 상태 및 상기 제2 상태 중 어느 하나이며, 상기 제4 상태는 상기 제1 상태 및 상기 제2 상태 중 다른 하나일 수 있다.The decoder generates and outputs a valid data enable signal HREF converted to the third state when the converted parallel data is SOL, and valid data converted to the fourth state when the converted parallel data is EOL. Generate and output an enable signal HREF, wherein the third state is any one of the first state and the second state, and the fourth state may be another one of the first state and the second state. have.

상기 저압차등신호를 입력받아 상기 직렬 데이터 스트림으로 변환하여 출력하는 차등신호 입력부를 더 포함하되, 상기 직렬 데이터 변환부는 상기 직렬 데이터 스트림의 입력을 위한 복수개의 데이터 신호선과 상기 클럭 신호의 입력을 위한 하나의 클럭 신호선을 통해 상기 차등신호 입력부와 연결될 수 있다.And a differential signal input unit configured to receive the low differential pressure signal and convert the low voltage differential signal into the serial data stream and output the converted differential data signal, wherein the serial data converter includes a plurality of data signal lines for inputting the serial data stream and one for inputting the clock signal. It may be connected to the differential signal input unit through a clock signal line.

상기 직렬 데이터 변환부는 제1 데이터 신호선을 통해 상기 직렬 데이터 스트림의 홀수 위치의 비트값을 입력받고, 제2 데이터 신호선을 통해 상기 직렬 데이터 스트림의 짝수 위치의 비트값을 입력받아 상기 병렬 데이터로 변환할 수 있다.The serial data converter receives a bit value of an odd position of the serial data stream through a first data signal line, and receives a bit value of an even position of the serial data stream through a second data signal line to convert the bit data into the parallel data. Can be.

상기 직렬 데이터 변환부는 제1 데이터 신호선을 통해 상기 직렬 데이터 스트림의 상위

Figure 112007031925416-PAT00004
비트의 비트값들을 입력받고, 제2 데이터 신호선을 통해 상기 직렬 데이터 스트림의 하위
Figure 112007031925416-PAT00005
비트의 비트값들을 입력받아 상기 병렬 데이터로 변환할 수 있다.The serial data converter is higher than the serial data stream through a first data signal line.
Figure 112007031925416-PAT00004
Receive bit values of a bit, and subordinate the serial data stream through a second data signal line
Figure 112007031925416-PAT00005
The bit values of the bits may be input and converted into the parallel data.

본 발명의 또 다른 실시예에 따르면, m(임의의 자연수) 비트의 병렬 데이터를 n(상기 m보다 작은 임의의 자연수)비트의 직렬 데이터 스트림으로 변환하는 데이터 전송 장치; 및 상기 직렬 데이터 스트림을 입력받아 상기 병렬 데이터로 변환하는 데이터 수신 장치를 포함하되, 상기 데이터 전송 장치는, m(임의의 자연수) 비트의 병렬 데이터와 동기화된 동기 신호들을 출력하는 데이터 출력부; 및 상기 데이터 출력부로부터 상기 병렬 데이터 및 상기 동기 신호를 입력받고, 상기 동기 신호들에 상응하여 설정한 동기 코드들을 병렬 데이터에 삽입한 후 n(임의의 자연수)비트의 직렬 데이터 스트림으로 변환하여 출력하며, 상기 직렬 데이터 스트림에 동기화된 클럭 신호를 생성하여 출력하는 제1 인터페이스부를 포함하며, 상기 데이터 수신 장치는, 입력되는 n(임의의 자연수)비트의 직렬 데이터 스트림 및 동기화된 클럭 신호를 입력받아 m(임의의 자연수)비트의 병렬 데이터로 변환한 후 미리 설정된 동기 코드를 검출하여 상응하는 동기 신호를 생성하며, 상기 동기 코드가 제거된 병렬 데이터를 출력하는 제2 인터페이스부; 및 상기 제2 인터페이스부를 통해 상기 병렬 데이터 및 상기 동기 신호를 입력받아 미리 정해진 데이터 포맷으로 변환하는 프로세서를 포함하는 것을 특징으로 하는 디지털 처리 장치가 제공될 수 있다.According to still another embodiment of the present invention, there is provided a data transmission apparatus for converting m (any natural number) bits of parallel data into a serial data stream of n (any natural number less than m) bits; And a data receiving device receiving the serial data stream and converting the serial data stream into parallel data, wherein the data transmission device comprises: a data output unit configured to output synchronization signals synchronized with parallel data of m (any natural number) bits; And receiving the parallel data and the synchronization signal from the data output unit, inserting the synchronization codes set corresponding to the synchronization signals into the parallel data, and converting them into a serial data stream of n (any natural number) bits. And a first interface unit generating and outputting a clock signal synchronized with the serial data stream, wherein the data receiving device receives an inputted n (random natural number) bit serial data stream and a synchronized clock signal. a second interface unit converting m (random natural numbers) bits into parallel data and detecting a preset sync code to generate a corresponding sync signal, and outputting parallel data from which the sync code has been removed; And a processor configured to receive the parallel data and the synchronization signal through the second interface unit and convert the parallel data and the synchronization signal into a predetermined data format.

상기 센서 또는 프로세서 중 어느 하나인 상기 데이터 출력부와 상기 제1 인터페이스부는 동일한 칩에 구비되며, 상기 제2 인터페이스부와 상기 프로세서는 동일한 칩에 구비될 수 있다.The data output unit and the first interface unit, which are either the sensor or the processor, may be provided on the same chip, and the second interface unit and the processor may be provided on the same chip.

본 발명의 다른 측면에 따르면, 칩들간에 데이터 전송시 병렬 데이터를 직렬 데이터로 변환하여 전송 또는 수신할 수 있는 방법이 제공된다. According to another aspect of the present invention, a method for converting parallel data into serial data and transmitting or receiving data when transferring data between chips is provided.

본 발명의 일 실시예에 따르면, 센서 또는 프로세서 중 어느 하나와 제1 인터페이스부를 포함하는 데이터 전송 장치가 데이터를 전송하는 방법에 있어서, 상기 센서 또는 상기 프로세서 중 어느 하나가 m(임의의 자연수)비트의 병렬 데이터 및 동기화된 동기 신호들을 출력하는 단계; 상기 제1 인터페이스부가 상기 병렬 데이터 및 상기 동기 신호들을 입력받아 상기 동기 신호들에 상응하여 설정한 동기 코드들을 상기 병렬 데이터에 삽입하는 단계; 및 상기 제1 인터페이스부가 상기 동기 코드가 삽입된 병렬 데이터를 n(임의의 자연수)비트씩 시프트시켜 직렬 데이터 스트림으로 변환하여 출력하며, 상기 직렬 데이터 스트림에 동기화된 클럭 신호를 생성하여 출력하는 단계를 포함하는 데이터 전송 방법이 제공될 수 있다.According to an embodiment of the present invention, in a method for transmitting data by a data transmission device including any one of a sensor or a processor and a first interface unit, any one of the sensor or the processor may be m (any natural number) bits. Outputting the parallel data and the synchronized synchronization signals of the plurality; Receiving, by the first interface unit, the parallel data and the synchronization signals and inserting synchronization codes set in correspondence with the synchronization signals into the parallel data; And converting the parallel data into which the sync code is inserted, by n (random natural numbers) bits, converting the serial data into a serial data stream, and generating and outputting a clock signal synchronized to the serial data stream. A data transmission method may be provided.

상기 동기 신호들에 상응하여 설정된 동기 코드들을 상기 병렬 데이터를 삽입하는 단계는, 수직 동기 신호가 제1 상태이면, 프레임의 시작에 상응하여 미리 설정된 제1 동기 코드를 상응하는 픽셀 데이터의 앞에 삽입하는 단계; 상기 수직 동기 신호가 제2 상태이면, 상기 프레임의 끝에 상응하여 미리 설정된 제2 동기 코드를 상응하는 픽셀 데이터의 뒤에 삽입하는 단계; 유효 데이터 인에이블 신호가 제3 상태이면, 라인의 시작에 상응하여 미리 설정된 제3 동기 코드를 상응하는 픽셀 데이터의 앞에 삽입하는 단계; 및 상기 유효 데이터 인에이블 신호가 제4 상태이면, 라인의 끝에 상응하여 미리 설정된 제4 동기 코드를 상응하는 픽셀 데이터의 뒤에 삽입하는 단계를 포함하되, 상기 제1 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 다른 하나이며, 상기 제3 상태는 상기 제1 상태 및 상기 제2 상태 중 어느 하나이며, 상기 제4 상태는 상기 제1 상태 및 상기 제2 상태 중 다른 하나일 수 있다.The step of inserting the parallel data into the sync codes set corresponding to the sync signals may include inserting a first sync code preset in front of the corresponding pixel data when the vertical sync signal is in the first state. step; If the vertical synchronization signal is in the second state, inserting a second preset synchronization code corresponding to the end of the frame after the corresponding pixel data; If the valid data enable signal is in a third state, inserting a third sync code, which is preset corresponding to the beginning of the line, before the corresponding pixel data; And if the valid data enable signal is in the fourth state, inserting a fourth sync code preset corresponding to the end of the line after the corresponding pixel data, wherein the first state is a falling edge or Any one of a rising edge, the second state is another of a falling edge or a rising edge, and the third state is any one of the first state and the second state. In one embodiment, the fourth state may be another one of the first state and the second state.

상기 직렬 데이터 스트림으로 변환하여 출력하는 단계는, 상기 동기 코드가 삽입된 픽셀 데이터를

Figure 112007031925416-PAT00006
비트씩 시프트시켜 상위
Figure 112007031925416-PAT00007
비트의 직렬 데이터 스트림을 제1 채널을 통해 출력하는 단계; 및 하위
Figure 112007031925416-PAT00008
비트의 직렬 데이터 스트림을 제2 채널을 통해 출력하는 단계를 포함할 수 있다.The converting into the serial data stream and outputting the pixel data includes the pixel data into which the sync code is inserted.
Figure 112007031925416-PAT00006
Shift bit by bit
Figure 112007031925416-PAT00007
Outputting a serial data stream of bits over a first channel; And sub
Figure 112007031925416-PAT00008
Outputting a serial data stream of bits over a second channel.

본 발명의 다른 실시예에 따르면, 제2 인터페이스부와 프로세서를 포함하는 데이터 수신 장치가 데이터를 수신하는 방법에 있어서, 상기 제2 인터페이스부가 직렬 데이터 스트림을 입력받아 n(임의의 자연수)비트만큼 쉬프트시켜 m(임의의 자연수)비트 단위의 병렬 데이터를 생성하는 단계; 상기 제2 인터페이스부가 상기 병렬 데이터에서 미리 설정된 동기 코드를 검출하여 동기 코드가 제거된 병렬 데이터 와 상기 검출된 동기 코드에 상응하여 상기 동기 코드가 제거된 병렬 데이터에 동기화된 동기 신호들을 생성하여 출력하는 단계; 및 상기 프로세서가 상기 병렬 데이터 및 상기 동기 신호를 입력받아 상기 병렬 데이터를 미리 정해진 데이터 포맷으로 변환하여 출력하는 단계를 포함하는 데이터 수신 방법이 제공될 수 있다.According to another embodiment of the present invention, in a method of receiving data by a data receiving apparatus including a second interface unit and a processor, the second interface unit receives a serial data stream and shifts by n (any natural number) bits. Generating parallel data in units of m (any natural number) bits; The second interface unit detects a preset sync code from the parallel data to generate and output sync signals synchronized with the parallel data from which the sync code has been removed and the parallel data from which the sync code has been removed corresponding to the detected sync code. step; And receiving, by the processor, the parallel data and the synchronization signal, converting the parallel data into a predetermined data format, and outputting the same.

상기 동기 코드가 제거된 병렬 데이터에 동기화된 동기 신호들을 생성하여 출력하는 단계는, 상기 병렬 데이터가 SOF이면, 제1 상태로 갱신된 수직 동기 신호(VSYNC) 및 제3 상태로 갱신된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하는 단계; 상기 병렬 데이터가 EOF이면, 상기 제2 상태로 갱신된 수직 동기 신호(VSYNC) 및 상기 제4 상태로 갱신된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하는 단계; 상기 병렬 데이터가 SOL이면, 상기 제3 상태로 갱신된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하는 단계; 및 상기 병렬 데이터가 EOL이면, 상기 제4 상태로 갱신된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하는 단계를 포함하되, 상기 제1 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 다른 하나이며, 상기 제3 상태는 상기 제1 상태 및 상기 제2 상태 중 어느 하나이고, 상기 제4 상태는 상기 제1 상태 및 상기 제2 상태 중 다른 하나일 수 있다.The generating and outputting synchronization signals synchronized to the parallel data from which the synchronization code has been removed may include generating the vertical synchronization signal VSYNC updated to the first state and valid data updated to the third state if the parallel data is SOF. Generating and outputting an enable signal HREF; Generating and outputting a vertical synchronization signal (VSYNC) updated to the second state and a valid data enable signal (HREF) updated to the fourth state if the parallel data is EOF; Generating and outputting a valid data enable signal (HREF) updated to the third state if the parallel data is SOL; And generating and outputting a valid data enable signal HREF updated to the fourth state if the parallel data is EOL, wherein the first state includes a falling edge or a rising edge. Is any one of a falling edge or a rising edge, and the third state is any one of the first state and the second state. The fourth state may be another one of the first state and the second state.

직렬 데이터 스트림을 입력받아 상기 n비트만큼 쉬프트시켜 m(임의의 자연수)비트 단위의 병렬 데이터를 생성하는 단계는, 제1 채널 및 제2 채널을 통해 n비트의 비트값을 각각 입력받는 단계; 및 상기 입력된 비트값을 미리 정해진 순서대 로 각각 n비트씩 쉬프트시키고 머지하여 상기 병렬 데이터를 생성하여 출력하는 단계를 포함할 수 있다.Receiving a serial data stream and shifting by n bits to generate parallel data in units of m (arbitrary natural numbers), the step of receiving n-bit bit values through a first channel and a second channel, respectively; And generating and outputting the parallel data by shifting and merging the input bit value by n bits in a predetermined order.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. As the invention allows for various changes and numerous embodiments, particular embodiments will be illustrated in the drawings and described in detail in the written description. However, this is not intended to limit the present invention to specific embodiments, it should be understood to include all modifications, equivalents, and substitutes included in the spirit and scope of the present invention.

이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다. 또한, 본 발명을 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.Hereinafter, with reference to the accompanying drawings, it will be described in detail a preferred embodiment of the present invention. Hereinafter, the same reference numerals are used for the same components in the drawings, and duplicate descriptions of the same components are omitted. In addition, in describing the present invention, when it is determined that the detailed description of the related known technology may unnecessarily obscure the gist of the present invention, the detailed description thereof will be omitted.

도 2는 본 발명의 일 실시예에 따른 직렬 전송 방식으로 데이터를 전송하기 위한 시스템의 블록 구성도이다. 이하에서 센서부(202)는 이미지 센서(210)와 제1 인터페이스(220)를 포함하여 구성되며, 센서부(202)는 후단에 연결되는 프로세서(예를 들어, 이미지 시그널 프로세서(220))에 m(자연수)비트의 픽셀 데이터를 n(자연수)비트의 직렬 데이터 스트림으로 변환하여 출력하는 것을 가정하여 설명하기로 한다. 즉, 본 명세서에서 센서부(202)는 픽셀 데이터를 n비트의 직렬 데이터 스트 림으로 변환하며, 프로세서부(204)는 n비트의 직렬 데이터를 입력받아 m비트의 픽셀 데이터로 변환하여 처리하는 기능을 수행할 수 있다.2 is a block diagram of a system for transmitting data in a serial transmission method according to an embodiment of the present invention. Hereinafter, the sensor unit 202 includes an image sensor 210 and a first interface 220, and the sensor unit 202 may be connected to a processor (eg, an image signal processor 220) connected to a rear end thereof. It will be described on the assumption that m (natural number) bit pixel data is converted into n (natural number) bit serial data stream and output. That is, in the present specification, the sensor unit 202 converts pixel data into an n-bit serial data stream, and the processor unit 204 receives n-bit serial data and converts it into m-bit pixel data for processing. Can be performed.

도 2를 참조하면, 직렬 데이터 전송 방식으로 데이터를 전송하기 위한 시스템(200)은 센서부(202)와 프로세서부(204)를 포함하여 구성된다. Referring to FIG. 2, the system 200 for transmitting data in a serial data transmission method includes a sensor unit 202 and a processor unit 204.

그리고, 센서부(202)는 이미지 센서(210)와 제1 인터페이스부(220)를 포함하여 구성되며, 프로세서부(204)는 제2 인터페이스부(230)와 이미지 시그널 프로세서(240)를 포함하여 구성된다. The sensor unit 202 includes an image sensor 210 and a first interface unit 220, and the processor unit 204 includes a second interface unit 230 and an image signal processor 240. It is composed.

이미지 센서(210)는 피사체에 상응하는 광 신호를 변환한 신호(이하, 이해와 설명의 편의를 위해 "픽셀 데이터"라 칭하기로 함)를 생성하여 제1 인터페이스부(220)로 출력하는 기능을 수행한다.The image sensor 210 generates a signal obtained by converting an optical signal corresponding to a subject (hereinafter, referred to as "pixel data" for convenience of understanding and explanation) and outputs the signal to the first interface unit 220. To perform.

예를 들어, 이미지 센서(210)는 CCD 또는 CMOS 센서와 같이 복수의 단위 픽셀이 행(row) 또는 열(column)을 따라 배치된 픽셀 어레이를 포함하며 각 단위 픽셀은 피사체의 광 신호를 전기적인 신호로 변환하여 출력하는 광전 변환 소자(예를 들어, 포토 다이오드)를 포함할 수 있다.For example, the image sensor 210 includes a pixel array in which a plurality of unit pixels are arranged along a row or a column, such as a CCD or CMOS sensor, and each unit pixel electrically converts an optical signal of a subject. It may include a photoelectric conversion element (for example, a photodiode) to convert the signal into a signal.

이미지 센서(210)는 픽셀 데이터 및 해당 픽셀 데이터에 동기화된 동기 신호들(예를 들어, 클럭 신호(PCLK), 수직 동기 신호(VSYNC), 유효 데이터 인에이블 신호(HREF))을 생성하여 제1 인터페이스부(220)로 출력한다.The image sensor 210 generates pixel data and synchronization signals synchronized with the pixel data (for example, a clock signal PCLK, a vertical synchronization signal VSYNC, and a valid data enable signal HREF). Output to the interface unit 220.

여기서, 클럭 신호(PCLK)는 이미지 센서(210)에서 출력되는 픽셀 데이터의 획득을 위한 동기 신호이며, 수직 동기 신호(VSYNC)는 각각의 프레임(frame)에 따른 데이터를 식별하기 위한 동기 신호이고, 유효 데이터 인에이블 신호(HREF)는 각 각의 유효 구간(즉, 각각의 라인(line)) 동안 출력되는 데이터를 식별하기 위한 동기 신호이다.Here, the clock signal PCLK is a synchronization signal for acquiring pixel data output from the image sensor 210, and the vertical synchronization signal VSYNC is a synchronization signal for identifying data according to each frame. The valid data enable signal HREF is a synchronization signal for identifying data output during each valid period (that is, each line).

이하, 본 명세서에서는 수직 동기 신호(VSYNC)가 제1 상태(폴링 에지(falling edge)이고, 유효 데이터 인에이블 신호(HREF)가 제2 상태(rising edge)인 경우, 해당 에지에서 픽셀 데이터의 획득을 개시하도록 하는 것을 중점으로 설명하나 구현 방법에 따라서는 수직 동기 신호가 제2 상태이며, 유효 데이터 인에이블 신호(HREF)가 제1 상태인 경우, 해당 에지에서 픽셀 데이터의 획득을 개시하도록 할 수도 있음은 당연하다. Hereinafter, in the present specification, when the vertical synchronization signal VSYNC is in the first state (falling edge) and the valid data enable signal HREF is in the second state (rising edge), the pixel data is acquired at the corresponding edge. Although the description will be focused on the following, depending on the implementation method, when the vertical synchronization signal is in the second state and the valid data enable signal HREF is in the first state, acquisition of pixel data may be started at the corresponding edge. Of course it is.

또한, 유효 데이터 인에이블 신호(HREF)는 복수의 유효 구간(예를 들어, 420a, 420b, …, 420n)을 가지며 수직 동기 신호(VSYNC)가 로우 상태인 동안 해당 유효 구간내에서 x축 정보 카운터(미도시)가 갱신되며, 해당 갱신된 카운트에 의해 x축 좌표를 생성할 수 있다. In addition, the valid data enable signal HREF has a plurality of valid periods (for example, 420a, 420b, ..., 420n) and the x-axis information counter within the valid period while the vertical synchronization signal VSYNC is low. (Not shown) is updated, and x-axis coordinates can be generated by the updated count.

그리고, y축 좌표는 유효 데이터 인에이블 신호(HREF) 내의 유효 구간이 시작되는 시점마다 y축 정보 카운터(미도시)가 갱신되어 갱신된 카운트에 의해 생성될 수 있다.The y-axis coordinates may be generated by the updated count of the y-axis information counter (not shown) at each starting point of the valid section in the valid data enable signal HREF.

즉, 이미지 센서(210)는 m비트의 픽셀 데이터와 해당 동기 신호들(예를 들어, 클럭 신호(PCLK), 수직 동기 신호(VSYNC), 유효 데이터 인에이블 신호(HREF))을 생성하여 제1 인터페이스부(220)로 출력한다.That is, the image sensor 210 generates m-bit pixel data and corresponding synchronization signals (for example, a clock signal PCLK, a vertical synchronization signal VSYNC, and a valid data enable signal HREF). Output to the interface unit 220.

제1 인터페이스부(220)는 이미지 센서(210)로부터 m비트의 픽셀 데이터와 상응하는 동기 신호들을 입력받아 n비트의 직렬 데이터 스트림으로 변환하고, 해당 직렬 데이터 스트림에 동기화된 클럭 신호를 생성하여 출력하는 기능을 수행한다. 이하, 제1 인터페이스부(220)의 내부 기능에 대한 설명은 하기에서 도 3을 참조하여 상세히 설명하기로 한다.The first interface unit 220 receives synchronous signals corresponding to m-bit pixel data from the image sensor 210, converts them into n-bit serial data streams, and generates and outputs a clock signal synchronized to the serial data stream. It performs the function. Hereinafter, the internal function of the first interface unit 220 will be described in detail with reference to FIG. 3.

전술한 바와 같이, 센서부(202)는 피사체에 상응하는 m비트의 픽셀 데이터를 생성한 후 n비트의 직렬 데이터 스트림으로 변환하고, 해당 직렬 데이터 스트림에 동기화된 클럭 신호와 함께 프로세서부(204)로 출력하는 기능을 수행한다.As described above, the sensor unit 202 generates m-bit pixel data corresponding to a subject, converts it into an n-bit serial data stream, and processes the processor unit 204 together with a clock signal synchronized to the serial data stream. Perform the function to output to.

프로세서부(204)는 센서부(202)를 통해 입력되는 클럭 신호에 상응하여 n비트의 직렬 데이터 스트림을 획득하여 m비트의 픽셀 데이터로 변환한 후 미리 정해진 이미지 데이터 포맷으로 변환하는 기능을 수행한다.The processor unit 204 acquires an n-bit serial data stream corresponding to a clock signal input through the sensor unit 202, converts the n-bit serial data stream into m-bit pixel data, and then converts it into a predetermined image data format. .

프로세서부(204)에서 n비트의 직렬 데이터 스트림을 입력받아 m비트의 병렬 데이터(즉, 픽셀 데이터)로 변환하는 제2 인터페이스부(230)의 기능에 대해서는 하기에서 도 10을 참조하여 상세히 설명하기로 한다.The function of the second interface unit 230 that receives the n-bit serial data stream from the processor unit 204 and converts the m-bit parallel data (ie, pixel data) will be described in detail with reference to FIG. 10 below. Shall be.

이미지 시그널 프로세서(240)는 제2 인터페이스부(230)를 통해 출력된 m비트의 픽셀 데이터를 입력받아 미리 정해진 영상 데이터 포맷으로 변환하는 기능을 수행한다.The image signal processor 240 receives the m-bit pixel data output through the second interface unit 230 and converts the pixel data into a predetermined image data format.

상술한 바와 같이, 본 발명에 따른 센서부(202)는 m비트의 픽셀 데이터를 생성하여 n비트의 직렬 데이터 스트림으로 변환하여 후단에 연결된 프로세서부(204)로 출력함으로써, 고속으로 데이터를 전송할 수 있는 이점이 있다.As described above, the sensor unit 202 according to the present invention generates m-bit pixel data, converts it into an n-bit serial data stream, and outputs the data to the processor unit 204 connected to the rear stage, thereby transmitting data at high speed. There is an advantage to that.

본 명세서에서는 센서부(202)가 m비트의 병렬 데이터를 n비트의 직렬 데이터 스트림으로 변환하여 출력하는 것을 중점으로 설명하였으나, 병렬 전송 방식으로 데이터를 출력하는 임의의 장치(예를 들어, 베이스밴드 프로세서 등)에서도 동일하게 적용될 수 있음은 당연하다. In the present specification, the sensor unit 202 converts m-bit parallel data into an n-bit serial data stream and outputs the data. However, any device that outputs data in a parallel transmission method (for example, baseband). Naturally, the same may be applied to the processor.

또한, 본 명세서에서 프로세서부(204)가 n비트의 직렬 데이터 스트림을 입력받아 m비트의 픽셀 데이터로 변환하는 것으로 가정하여 설명하였으나, 프로세서부(204)가 m비트의 병렬 데이터를 n비트의 직렬 데이터 스트림으로 변환하여 후단의 다른 프로세서(예를 들어, 베이스밴드 프로세서)로 출력할 수도 있음은 당연하다. In addition, in the present specification, the processor unit 204 receives n-bit serial data stream and converts it to m-bit pixel data. However, the processor unit 204 converts m-bit parallel data to n-bit serial data. Naturally, it can be converted to a data stream and output to another later processor (eg, a baseband processor).

이와 같이, 센서부(202)가 m비트의 픽셀 데이터를 n비트의 직렬 데이터 스트림으로 변환하여 출력함으로써, 데이터 전송시 프레임 레이트(frame rate)를 높일 수 있는 이점이 있다.As described above, the sensor unit 202 converts m-bit pixel data into an n-bit serial data stream and outputs the same, thereby increasing the frame rate during data transmission.

도 3은 본 발명의 일 실시예에 따른 제1 인터페이스부의 내부 기능 구성 요소에 따른 블록도이며, 도 4는 본 발명의 일 실시예에 따른 이미지 센서가 출력하는 픽셀 데이터 및 동기 신호들에 대한 예시도이고, 도 5은 본 발명의 일 실시예에 따른 인코더부가 출력하는 데이터 및 클럭 신호의 예시도이며, 도 6은 본 발명의 일 실시예에 따른 동기 코드가 삽입된 픽셀 데이터의 예시도이고, 도 7은 본 발명의 일 실시예에 따른 직렬 데이터 변환부가 출력하는 데이터 및 클럭 신호의 예시도이며, 도 8은 본 발명의 일 실시예에 따른 LVDS 회로를 예시한 도면이고, 도 9는 본 발명의 일 실시예에 따른 LVDS의 파형을 예시한 도면이다. 이하에서, 피사체에 상응하는 픽셀 데이터를 출력하는 센서부(202)는 m비트의 픽셀 데이터를 n비트의 직렬 데이터 스트림으로 변환하여 출력하는 것을 중점으로 설명하기로 한다. 이하에서 설명되는 제1 인터페이스부(220)는 센서부(202)에 포함되는 것을 가정하여 설명하기로 한다. 따라서, 센서부(202)의 이미지 센서(210)와 제1 인터페이스부(220)는 하나의 칩에 포함되며, 하나의 칩내에서 구성 요소들간의 데이터 전송은 병렬 전송 방식으로 전송될 수 있다. 그리고, 칩들간의 데이터 전송은 직렬 데이터 전송 방식으로 데이터를 전송하도록 할 수 있다(즉, 센서부(202)내에서 이미지 센서(210)와 제1 인터페이스부(220)간의 데이터 전송은 병렬 전송 방식으로 데이터를 전송할 수 있으며, 센서부(202)와 프로세서부(204)간의 데이터 전송은 직렬 데이터 방식으로 전송되도록 할 수 있다).3 is a block diagram of an internal functional component of a first interface unit according to an embodiment of the present invention, and FIG. 4 is an example of pixel data and synchronization signals output by an image sensor according to an embodiment of the present invention. 5 is a diagram illustrating data and a clock signal output by an encoder according to an embodiment of the present invention, and FIG. 6 is a diagram illustrating pixel data in which a sync code is inserted according to an embodiment of the present invention. 7 is a diagram illustrating a data and clock signal output by the serial data converter according to an embodiment of the present invention, FIG. 8 is a diagram illustrating an LVDS circuit according to an embodiment of the present invention, and FIG. 9 is a diagram of the present invention. A diagram illustrating a waveform of an LVDS according to an embodiment of the present invention. Hereinafter, the sensor unit 202 for outputting pixel data corresponding to a subject will be described with a focus on converting m-bit pixel data into an n-bit serial data stream and outputting the same. The first interface unit 220 described below is assumed to be included in the sensor unit 202 will be described. Accordingly, the image sensor 210 and the first interface unit 220 of the sensor unit 202 are included in one chip, and data transmission between components in one chip may be transmitted in a parallel transmission method. In addition, the data transmission between the chips may be to transmit data in a serial data transmission method (that is, the data transmission between the image sensor 210 and the first interface unit 220 in the sensor unit 202 is a parallel transmission method). Data may be transmitted, and data transmission between the sensor unit 202 and the processor unit 204 may be transmitted in a serial data manner).

이하, 센서부(202)내에 포함되어 이미지 센서(210)에서 출력된 픽셀 데이터를 직렬 데이터 스트림으로 변환하여 출력하는 제1 인터페이스부(220)에 대해 상세히 설명하기로 한다.Hereinafter, the first interface unit 220 included in the sensor unit 202 and converting pixel data output from the image sensor 210 into a serial data stream and outputting the same will be described in detail.

도 3을 참조하면, m비트 단위의 픽셀 데이터를 n비트 단위의 직렬 데이터 스트림으로 변환할 수 있는 제1 인터페이스부(220)는 인코더부(310), 직렬 데이터 변환부(320) 및 차등신호 출력부(330)를 포함하여 구성된다.Referring to FIG. 3, the first interface unit 220 capable of converting pixel data in units of m bits into a serial data stream in units of n bits includes an encoder unit 310, a serial data converter 320, and a differential signal output. It is configured to include a portion 330.

인코더부(310)는 픽셀 데이터와 해당 픽셀 데이터에 동기화된 하나 이상의 동기 신호들(예를 들어, 제1 클럭 신호(PCLK), 수직 동기 신호(VSYNC), 유효 데이터 인에이블 신호(HREF) 등)을 이미지 센서(210)로부터 입력받아 해당 동기 신호들에 따라 미리 정해진 동기 코드를 픽셀 데이터의 앞 또는 뒤에 삽입하여 직렬 데이터 변환부(320)로 출력하는 기능을 수행한다. 또한, 인코더부(310)는 동기 코드가 삽입된 픽셀 데이터에 동기화된 클럭 신호(이하, 이해와 설명의 편의를 위해 "제1 클럭 신호"라 칭하기로 함)를 직렬 데이터 변환부(320)로 출력할 수 있다.The encoder 310 may include pixel data and one or more synchronization signals synchronized with the pixel data (for example, the first clock signal PCLK, the vertical synchronization signal VSYNC, and the valid data enable signal HREF). Is input from the image sensor 210 to insert a predetermined sync code in front of or behind the pixel data according to the corresponding sync signals, and output the same to the serial data converter 320. Also, the encoder unit 310 converts a clock signal (hereinafter, referred to as a “first clock signal” for convenience of understanding and explanation) to the serial data converter 320 in synchronization with pixel data into which a sync code is inserted. You can print

우선, 도 4를 참조하여 인코더부(310)가 픽셀 데이터를 획득하는 방법 및 각각의 동기 코드를 삽입하는 방법에 대해 간략하게 설명하기로 한다.First, a method of obtaining pixel data and a method of inserting respective sync codes by the encoder unit 310 will be briefly described with reference to FIG. 4.

도 4를 참조하면, 인코더부(310)는 수직 동기 신호(VSYNC)가 로우(Low) 상태이며, 유효 데이터 인에이블 신호(HREF)가 하이 상태인 경우, 클럭 신호(PCLK)에 상응하여 픽셀 데이터를 획득할 수 있다. 그리고, 유효 데이터 인에이블 신호(HREF)가 각각 하이 상태인 경우를 본 명세서에서는 유효 구간이라 칭하기로 한다. 유효 데이터 인에이블 신호(HREF)의 각각의 유효 구간에서 획득되는 픽셀 데이터는 동일한 라인에 포함되는 픽셀 데이터들임을 나타낸다. 즉, 도 4의 420a인 상태에서 획득되는 픽셀 데이터들은 동일한 y축 좌표를 갖는다. 전술한 바와 같이, y축 좌표는 유효 데이터 인에이블 신호(HREF)가 제2 상태가 되는 시점마다 갱신된다고 하였으므로, 430a, 430b,…, 430n에서 y축 좌표는 각각 갱신되는 것을 알 수 있다.Referring to FIG. 4, when the vertical synchronization signal VSYNC is in a low state and the valid data enable signal HREF is in a high state, the encoder unit 310 corresponds to the pixel signal in response to the clock signal PCLK. Can be obtained. In the present specification, the valid data enable signals HREF are respectively in a high state. The pixel data acquired in each valid section of the valid data enable signal HREF indicates that the pixel data is included in the same line. That is, pixel data obtained in the state of 420a of FIG. 4 have the same y-axis coordinate. As described above, since the y-axis coordinate is updated every time the valid data enable signal HREF becomes the second state, the 430a, 430b,... At 430n, the y-axis coordinates are updated.

따라서, 수직 동기 신호(VSYNC)가 로우(Low) 상태이며, 유효 데이터 인에이블 신호(HREF)의 최초의 유효 구간에서 처음으로 획득되는 픽셀 데이터는 해당 프레임내의 최초의 데이터임을 알 수 있다. 이로 인해, 인코더부(310)는 해당 시점에 획득된 픽셀 데이터의 앞에 해당 프레임의 시작을 알리는 동기 코드(프레임 시작 동기 코드(SOF: start of frame sync code)-이하, 이해와 설명의 편의를 위해 "SOF"라 칭하기로 함)를 삽입한다.Accordingly, it can be seen that the vertical synchronization signal VSYNC is in a low state, and the pixel data obtained for the first time in the first valid period of the valid data enable signal HREF is the first data in the corresponding frame. For this reason, the encoder unit 310 is a sync code (SOF: start of frame sync code) for notifying the start of the frame in front of the pixel data obtained at the corresponding time point, for convenience of understanding and explanation. ), Referred to as "SOF".

그리고, 유효 데이터 인에이블 신호(HREF)가 제2 상태로 변경되는 경우, 인코더부(310)는 최초 획득되는 픽셀 데이터의 앞에 라인의 시작을 알리는 동기 코드(라인 시작 동기 코드(SOL: start of line sync code)- 이하, 이해와 설명의 편의를 위해 "SOL"이라 칭하기로 함)를 삽입한다. 즉, 인코더부(HREF)는 유효 데이터 인에이블 신호(HREF)가 제2 상태로 변경된 직후 SOL을 삽입할 수 있다.In addition, when the valid data enable signal HREF is changed to the second state, the encoder unit 310 may indicate a synchronization code (line start synchronization code (SOL) start of line before the first pixel data obtained). sync code)-hereafter referred to as "SOL" for ease of understanding and explanation. That is, the encoder unit HREF may insert the SOL immediately after the valid data enable signal HREF is changed to the second state.

여기서, 인코더부(310)는 수직 동기 신호(VSYNC)가 제1 상태로 변경된 직후에는 SOF를 삽입하므로, 이 경우 유효 데이터 인에이블 신호(HREF)가 제2 상태로 변경되더라도 SOL을 삽입하지는 않는다. 즉, SOF만으로 수직 동기 신호(VSYNC)가 제1 상태로 변경된 것과 유효 데이터 인에이블 신호(HREF)가 제2 상태로 변경된 것을 인식할 수 있다.In this case, the encoder 310 inserts the SOF immediately after the vertical synchronization signal VSYNC is changed to the first state. In this case, the encoder unit 310 does not insert the SOL even when the valid data enable signal HREF is changed to the second state. That is, the SOF alone may recognize that the vertical synchronization signal VSYNC is changed to the first state and the valid data enable signal HREF is changed to the second state.

또한, 인코더부(310)는 유효 데이터 인에이블 신호(HREF)의 유효 구간내에서 마지막으로 획득되는 픽셀 데이터 이후에 라인의 끝을 알리는 동기 코드(라인 종료 동기 코드(EOL: end of line sync code)- 이하, 이해와 설명의 편의를 위해 "EOL"이라 칭하기로 함)를 삽입한다. In addition, the encoder unit 310 may include a sync code (end of line sync code (EOL)) indicating the end of a line after pixel data last obtained in a valid period of the valid data enable signal HREF. -For convenience of understanding and explanation, hereinafter referred to as "EOL").

이와 마찬가지로, 인코더부(310)는 수직 동기 신호(VSYNC)가 로우 상태인 경우, 유효 데이터 인에이블 신호(HREF)의 마지막 유효 주기내에서의 마지막 획득된 픽셀 데이터 이후에는 프레임의 끝을 알리는 동기 코드(프레임 종료 동기 코드(EOF: end of frame sync code)-이하, 이해와 설명의 편의를 도모하기 위해 "EOF"라 칭하기로 함)를 삽입한다.Similarly, when the vertical sync signal VSYNC is in the low state, the encoder unit 310 indicates a sync code indicating the end of the frame after the last acquired pixel data in the last valid period of the valid data enable signal HREF. (End of frame sync code (EOF)-hereinafter referred to as "EOF" for ease of understanding and explanation) is inserted.

여기서, 인코더부(310)는 EOF가 삽입되는 경우(즉, 수직 동기 신호(VSYNC)가 로우 상태인 경우, 유효 데이터 인에이블 신호(HREF)의 마지막 유효 주기내에서 마지막 획득된 픽셀 데이터 이후에는) EOL을 삽입하지 않고, EOF만을 삽입한다. 즉, EOF는 수직 동기 신호(VSYNC)가 제2 상태로 변경되는 것을 알리는 동시에 유효 데이터 인에이블 신호(HREF)가 제1 상태로 변경되는 것을 지시할 수 있다.Here, the encoder unit 310 is inserted when the EOF is inserted (i.e., when the vertical synchronization signal VSYNC is low, after the last acquired pixel data within the last valid period of the valid data enable signal HREF). Insert only EOF without inserting EOL. That is, the EOF may indicate that the vertical synchronization signal VSYNC is changed to the second state and may indicate that the valid data enable signal HREF is changed to the first state.

즉, 인코더부(310)는 이미지 센서(210)로부터 m비트의 픽셀 데이터와 해당 픽셀 데이터에 동기화된 동기 신호들을 입력받으며, 각 동기 신호들에 상응하여 미리 설정된 각각의 동기 코드들을 삽입한 픽셀 데이터와 해당 동기 코드가 삽입된 픽셀 데이터에 동기화된 제1 클럭 신호를 생성하여 직렬 데이터 변환부(320)로 출력할 수 있다.That is, the encoder 310 receives the m-bit pixel data and the synchronization signals synchronized with the pixel data from the image sensor 210, and inserts the respective synchronization codes preset in correspondence with the respective synchronization signals. And a first clock signal synchronized with the pixel data into which the corresponding sync code is inserted, may be output to the serial data converter 320.

도 5에 인코더부(310)가 직렬 데이터 변환부(320)로 출력하는 동기 코드가 삽입된 픽셀 데이터와 제1 클럭 신호가 예시되어 있다. 또한, 도 6에 인코더부(310)가 이미지 센서(210)로부터 입력되는 동기 신호들에 상응하는 각각의 동기 코드를 삽입한 픽셀 데이터가 예시되어 있다. 도 6을 참조하면, 해당 프레임의 시작을 알리는 SOF가 최선에 삽입되어 있으며, 프레임의 끝을 알리는 EOF가 최후에 삽입되어 있는 것을 알 수 있다. 또한, 각각의 라인의 시작 부분에는 라인의 시작을 알리는 SOL이 삽입되어 있으며, 각 라인의 끝에는 라인의 끝을 알리는 EOL이 삽입된 것을 알 수 있다.In FIG. 5, pixel data and a first clock signal including a synchronization code output from the encoder 310 to the serial data converter 320 are illustrated. 6 illustrates pixel data in which the encoder 310 inserts respective sync codes corresponding to sync signals input from the image sensor 210. Referring to FIG. 6, it can be seen that the SOF indicating the start of the frame is inserted at the best and the EOF indicating the end of the frame is inserted last. In addition, it can be seen that a SOL is inserted at the beginning of each line to indicate the beginning of the line, and an EOL is inserted at the end of each line to indicate the end of the line.

이와 같이, 픽셀 데이터에 각 프레임 또는 라인의 특성(즉, 시작, 끝)을 알리는 동기 코드들을 삽입함으로써, 인코더부(310)는 각 프레임 및 라인의 특성을 지시하는 별도의 동기 신호들을(예를 들어, 수직 동기 신호(VSYNC), 유효 데이터 인에이블 신호(HREF)) 출력하지 않아도 되는 이점이 있다.As such, by inserting sync codes indicating the characteristics (ie, start and end) of each frame or line in the pixel data, the encoder unit 310 generates separate sync signals indicating the characteristics of each frame and line (eg, For example, there is an advantage that the vertical synchronization signal VSYNC and the valid data enable signal HREF do not need to be output.

직렬 데이터 변환부(320)는 인코더부(310)로부터 입력되는 제1 클럭 신호를 이용하여 동기 코드가 삽입된 픽셀 데이터를 획득한 후 n(임의의 자연수)비트 단위의 직렬 데이터 스트림으로 변환하여 해당 직렬 데이터 스트림에 동기화된 클럭 신호(이하, 이해와 설명의 편의를 도모하기 위해 "제2 클럭 신호"라 칭하기로 함)와 함께 차등신호 출력부(330)로 출력하는 기능을 수행한다.The serial data converter 320 obtains the pixel data into which the sync code is inserted using the first clock signal input from the encoder 310, and then converts the data into a serial data stream in units of n (any natural number) bits. Outputs to the differential signal output unit 330 together with the clock signal synchronized to the serial data stream (hereinafter referred to as "second clock signal" for convenience of understanding and explanation).

여기서, 직렬 데이터 변환부(320)는 n비트의 직렬 데이터 스트림을 복수의 데이터 신호선을 통해 출력하므로, 해당 데이터 신호선의 수에 상응하여 제1 클럭 신호를 분주한 제2 클럭 신호를 생성하여 차등신호 출력부(330)로 출력할 수 있다.Here, since the serial data converter 320 outputs an n-bit serial data stream through a plurality of data signal lines, the serial data converter 320 generates a second clock signal in which the first clock signal is divided in accordance with the number of the corresponding data signal lines to generate a differential signal. The output unit 330 may output the same.

예를 들어, 직렬 데이터 변환부(320)는 인코더부(310)를 통해 입력된 동기 코드가 삽입된 픽셀 데이터를 n비트씩 시프트(shift)시켜 n비트의 직렬 데이터 스트림을 생성할 수 있다. 그리고, 직렬 데이터 변환부(320)는 n비트의 직렬 데이터 스트림 중 짝수 위치의 비트값은 제1 데이터 신호선을 통해 출력하고, 홀수 위치의 비트값은 제2 데이터 신호선을 통해 출력하도록 할 수 있다. 그리고, 직렬 데이터 변환부(320)는 인코더부(310)를 통해 입력된 제1 클럭 신호를 2분주한 제2 클럭 신호를 생성하여 클럭 신호선을 통해 차등신호 출력부(330)로 출력할 수 있다.For example, the serial data converter 320 may generate the n-bit serial data stream by shifting the pixel data inserted with the sync code input through the encoder 310 by n bits. The serial data converter 320 may output even-numbered bit values of the n-bit serial data stream through the first data signal line and output odd-numbered bit values through the second data signal line. The serial data converter 320 may generate a second clock signal obtained by dividing the first clock signal input through the encoder 310 into two signals and output the second clock signal to the differential signal output unit 330 through the clock signal line. .

만일 직렬 데이터 변환부(320)가 m비트의 동기 코드가 삽입된 픽셀 데이터를 2비트씩 시프트시켜 2비트의 직렬 데이터 스트림을 생성한다고 가정하자. 그러면, 직렬 데이터 변환부(320)는 제1 비트값은 제1 데이터 신호선을 통해 출력하며, 제2 비트값은 제2 데이터 신호선을 통해 차등신호 출력부(330)로 출력할 수 있다. It is assumed that the serial data converter 320 generates a 2-bit serial data stream by shifting pixel data into which an m-bit sync code is inserted by 2 bits. Then, the serial data converter 320 may output the first bit value through the first data signal line and the second bit value through the second data signal line to the differential signal output unit 330.

또 다른 예를 들어, 직렬 데이터 변환부(320)는 m비트 단위의 동기 코드가 삽입된 픽셀 데이터를

Figure 112007031925416-PAT00009
비트씩 시프트시켜 상위
Figure 112007031925416-PAT00010
비트값들은 제1 데이터 신호선을 통해 차등신호 출력부(330)로 출력하고, 하위
Figure 112007031925416-PAT00011
비트값들은 제2 데이터 신호선을 통해 차등신호 출력부(330)로 출력할 수 있다. 이와 같은 경우, 직렬 데이터 스트림과 제2 클럭 신호는 더블 데이터 레이트(double data rate)의 관계를 갖음은 당연하다.As another example, the serial data converter 320 may convert pixel data into which a sync code of m-bit units is inserted.
Figure 112007031925416-PAT00009
Shift bit by bit
Figure 112007031925416-PAT00010
The bit values are output to the differential signal output unit 330 through the first data signal line,
Figure 112007031925416-PAT00011
The bit values may be output to the differential signal output unit 330 through the second data signal line. In such a case, it is natural that the serial data stream and the second clock signal have a double data rate relationship.

도 7에 직렬 데이터 변환부(320)가 차등신호 출력부(330)로 출력하는 직렬 데이터 스트림과 제2 클럭 신호가 예시되어 있다.7 illustrates a serial data stream and a second clock signal output from the serial data converter 320 to the differential signal output unit 330.

다시 도 3을 참조하여, 차등신호 출력부(330)는 제1 데이터 신호선, 제2 데이터 신호선 및 클럭 신호선을 통해 직렬 데이터 변환부(320)와 연결된다. 그리고, 차등신호 출력부(330)는 직렬 데이터 변환부(320)를 통해 입력되는 LVCMOS/LVTTL 레벨의 직렬 데이터 스트림 및 제2 클럭 신호를 저압차등신호(LVDS: low voltage differential signaling)로 변환하여 프로세서부(204)로 출력하는 기능을 수행한다. 여기서, 여기서, LVCMOS 또는/및 LVTTL 신호로 데이터를 입출력하는 방법은 당업자에게는 자명한 사항이므로 이에 대한 별도의 설명은 생략하기로 한다.Referring to FIG. 3 again, the differential signal output unit 330 is connected to the serial data converter 320 through a first data signal line, a second data signal line, and a clock signal line. The differential signal output unit 330 converts the LVCMOS / LVTTL level serial data stream and the second clock signal inputted through the serial data converter 320 into low voltage differential signaling (LVDS). The output to the unit 204 is performed. Here, the method of inputting and outputting data through the LVCMOS or / and LVTTL signal is obvious to those skilled in the art, so a separate description thereof will be omitted.

이해와 설명의 편의를 도모하기 위해 도 8을 참조하여, 저압차등신호(LVDS - 이하, "LVDS"라 칭하기로 함)에 대해 간략하게 설명하면, LVDS는 고속 데이터 전송을 위한 인터페이스 표준으로, 저압차등신호를 사용함으로써 데이터 전송시 빠른 비트율, 낮은 전력 소모, 그리고, 우수한 노이즈 성능 등의 장점을 갖는다. For convenience of understanding and explanation, referring to FIG. 8, a low pressure differential signal (LVDS-hereinafter referred to as "LVDS") will be briefly described. LVDS is an interface standard for high-speed data transmission. The use of the differential signal has advantages such as fast bit rate, low power consumption, and excellent noise performance in data transmission.

도 8에 예시된 LVDS회로를 참조하면, 드라이버(810)에서 입력되는 데이터가 하이(high)이면, 1.5mA가 드라이브된다. 그리고, 리시버(820)측의 100Ω 종단 저항에 의해 150mV의 전압 신호가 나타난다. 또한, 드라이버(810)에서 입력되는 데이터가 로우(low)이면, -1.5mA가 드라이브되고 리시버(920)측의 입력단에는 -150mV의 신호가 생성된다. 여기서, 드라이버(810)는 차등신호 출력부(330)이며, 리시버(820)는 하기에서 설명되는 차등신호 입력부(1010)이다.Referring to the LVDS circuit illustrated in FIG. 8, when data input from the driver 810 is high, 1.5 mA is driven. A voltage signal of 150 mV is generated by the 100 kΩ termination resistor on the receiver 820 side. If the data input from the driver 810 is low, -1.5 mA is driven, and a signal of -150 mV is generated at an input terminal of the receiver 920 side. Here, the driver 810 is a differential signal output unit 330, the receiver 820 is a differential signal input unit 1010 described below.

도 9에 LVDS에 따른 파형(waveform)이 예시되어 있다. 도 9를 참조하면, 드라이버(910)로 하이(high)에 상응하는 데이터가 입력되면, 제1 신호선으로 75mV, 제2 신호선으로 -75mV의 저압차등신호가 생성되어 출력되며 리시버(820)측의 100Ω 종단 저항에 의해 리시버(920)에 150mV의 신호가 생성되어 입력됨을 알 수 있다. A waveform according to LVDS is illustrated in FIG. 9. Referring to FIG. 9, when data corresponding to high is input to the driver 910, a low pressure differential signal of 75 mV as the first signal line and -75 mV as the second signal line is generated and output. It can be seen that a signal of 150mV is generated and input to the receiver 920 by the 100Ω termination resistor.

따라서, 본 명세서에서 저압차등신호는 제1 신호선으로 75mV, 제2 신호선으로 -75mV의 신호인 것을 가정하여 설명하나 구현 방법에 따라 75mV이외의 150mV, 350mV 등으로 구현될 수 있음은 당연하다.Therefore, in the present specification, the low voltage differential signal will be described assuming that the signal of 75 mV as the first signal line and -75 mV as the second signal line.

즉, 차등신호 출력부(330)는 이와 같은, LVDS로 구성되며, 직렬 데이터 변환부(320)를 통해 입력되는 직렬 데이터 스트림을 저압차등신호로 변환하여 출력하는 기능을 한다. 이를 통해, 고속으로 데이터를 전송할 수 있으며, 커먼 노이즈(common noise)를 줄일 수도 있다. 또한, 종래의 LVCMOS/LVTTL에 비해 적은 수의 신호선을 사용함으로써 RF 방사에 대한 전자파 간섭(EMI: electric magnetic interface)도 줄일 수 있는 이점이 있다. That is, the differential signal output unit 330 is configured as such LVDS, and converts the serial data stream input through the serial data converter 320 into a low pressure differential signal. Through this, data can be transmitted at high speed and common noise can be reduced. In addition, the use of fewer signal lines compared to the conventional LVCMOS / LVTTL has the advantage of reducing the electromagnetic interference (EMI) to the RF radiation.

즉, 전술한 차등신호 출력부(330)는 데이터를 각각 75mV의 저압차등신호로 변환하여 출력하며, 하기에서 설명되는 차등신호 입력부(1010)는 각각 75mV의 저압차등신호를 입력받아 데이터로 변환할 수 있다. That is, the aforementioned differential signal output unit 330 converts the data into low voltage differential signals of 75 mV, respectively, and outputs the differential signal input unit 1010 to be described below. Can be.

도 1010은 본 발명의 일 실시예에 따른 제2 인터페이스부의 내부 기능 블록을 예시한 도면이다. 이하, 제2 인터페이스부(330)는 프로세서부(204)의 일 구성 요소로써, 센서부(202)를 통해 입력되는 직렬 데이터 스트림을 입력받아 병렬 데이터로 변환하여 출력하는 기능을 수행한다. 1010 is a diagram illustrating an internal functional block of a second interface unit according to an embodiment of the present invention. Hereinafter, the second interface unit 330 is a component of the processor unit 204 and performs a function of receiving a serial data stream input through the sensor unit 202 and converting the serial data stream into parallel data.

도 1010에 도시된 바와 같이, 제2 인터페이스부(230)는 차등신호 입력부(1010), 병렬 데이터 변환부(1020) 및 디코더부(1030)를 포함하여 구성된다.As illustrated in FIG. 1010, the second interface unit 230 includes a differential signal input unit 1010, a parallel data converter 1020, and a decoder 1030.

차등신호 입력부(1010)는 센서부(202)로부터 저압차등신호로 입력되는 직렬 데이터 스트림과 제2 클럭 신호를 LVCMOS/LVTTL 신호 레벨로 변환하여 병렬 데이터 변환부(1020)로 출력하는 기능을 수행한다.The differential signal input unit 1010 converts the serial data stream and the second clock signal input from the sensor unit 202 as the low voltage differential signal into the LVCMOS / LVTTL signal level and outputs the parallel data converter 1020. .

병렬 데이터 변환부(1020)는 차등신호 입력부(1010)로부터 입력되는 제2 클럭 신호를 이용하여 직렬 데이터 스트림을 획득한 후 해당 직렬 데이터 스트림을 정해진 비트만큼(예를 들어, n비트) 시프트시켜 m비트의 병렬 데이터를 생성하고, 해당 병렬 데이터에 상응하여 동기화된 클럭 신호(이하, 이해와 설명의 편의를 도모하기 위해 "제3 클럭 신호"라 칭하기로 함)를 생성하여 디코더부(1030)로 출력할 수 있다.The parallel data converter 1020 acquires a serial data stream using a second clock signal input from the differential signal input unit 1010, and then shifts the serial data stream by a predetermined bit (for example, n bits) by m. Generates parallel data of bits, generates a synchronized clock signal (hereinafter referred to as a "third clock signal" for convenience of understanding and explanation) corresponding to the parallel data to the decoder unit 1030. You can print

예를 들어, 병렬 데이터 변환부(1020)는 차등신호 입력부(1010)로부터 n비트 단위의 직렬 데이터 스트림이 입력된다고 가정하자. 병렬 데이터 변환부(1020)는 m비트의 병렬 데이터를 생성하기 위해, n비트의 직렬 데이터 스트림을 입력받아 n비트 시프트시킨 후 새로 입력되는 직렬 데이터 스트림을 머지(merge)하여 (nㅧ2)비트의 직렬 데이터 스트림을 생성할 수 있다. 병렬 데이터 변환부(1020)는 m비트를 만족할때까지 해당 동작을 반복 수행함으로써, m비트의 병렬 데이터를 생성할 수 있다.For example, assume that the parallel data converter 1020 receives an n-bit serial data stream from the differential signal input unit 1010. In order to generate m-bit parallel data, the parallel data converter 1020 receives an n-bit serial data stream and shifts it n bits, and then merges the newly input serial data stream (n ㅧ 2) bits. Create a serial data stream. The parallel data converter 1020 may generate m bits of parallel data by repeatedly performing the operation until m bits are satisfied.

또 다른 예를 들어, 제3 데이터 신호선을 통해 입력되는 비트값은 직렬 데이터 스트림의 상위

Figure 112007031925416-PAT00012
비트의 비트값들이며, 제4 데이터 신호선을 통해 입력되는 비트값은 직렬 데이터 스트림의 하위
Figure 112007031925416-PAT00013
비트의 비트값들인 경우, 병렬 데이터 변환부(1020)는 제3 데이터 신호선을 통해 입력된 상위
Figure 112007031925416-PAT00014
비트의 비트값들을
Figure 112007031925416-PAT00015
비트 시프트시킨 후 제4 데이터 신호선을 통해 입력된 하위
Figure 112007031925416-PAT00016
비트의 비트값들을 머지(merge)하여 m비트의 병렬 데이터를 생성할 수 있다.For another example, the bit value input through the third data signal line is higher than the serial data stream.
Figure 112007031925416-PAT00012
Bit values of bits, and the bit values inputted through the fourth data signal line are lower values of the serial data stream.
Figure 112007031925416-PAT00013
In the case of bit values of bits, the parallel data converter 1020 receives a higher order input through the third data signal line.
Figure 112007031925416-PAT00014
Bit values of bits
Figure 112007031925416-PAT00015
Lower bit input through the fourth data signal line after bit shifting
Figure 112007031925416-PAT00016
By merging bit values of bits, parallel data of m bits may be generated.

디코더부(1030)는 병렬 데이터 변환부(1020)로부터 입력된 제3 클럭 신호를 이용하여 m비트의 병렬 데이터를 획득하고, 획득된 병렬 데이터에서 미리 설정된 동기 코드들을 검출한 후, 해당 동기 코드에 상응하여 동기 신호들(예를 들어, 수직 동기 신호(VSYNC), 유효 데이터 인에이블 신호(HREF))을 생성하여 이미지 시그 널 프로세서(240)로 출력할 수 있다. The decoder 1030 obtains m-bit parallel data using the third clock signal input from the parallel data converter 1020, detects preset sync codes from the obtained parallel data, and then applies the corresponding sync code to the corresponding sync code. Correspondingly, the synchronization signals (eg, the vertical synchronization signal VSYNC) and the valid data enable signal HREF may be generated and output to the image signal processor 240.

또한, 디코더부(1030)는 획득된 병렬 데이터에서 검출된 동기 코드들은 제거된 m비트의 픽셀 데이터와 해당 픽셀 데이터에 동기화된 클럭 신호(PCLK)를 이미지 시그널 프로세서(240)로 출력할 수 있다.In addition, the decoder 1030 may output the m-bit pixel data from which the synchronization codes detected in the obtained parallel data and the clock signal PCLK synchronized to the pixel data are output to the image signal processor 240.

예를 들어, 디코더부(1030)는 제3 클럭 신호에 상응하여 획득된 병렬 데이터가 SOF이면, 수직 동기 신호(VSYNC)를 제1 상태로 변경하여 이미지 시그널 프로세서(240)로 출력할 수 있다. 디코더부(1030)는 유효 데이터 인에이블 신호(HREF)를 제2 상태로 변경하여 이미지 시그널 프로세서(240)로 출력할 수 있다. 그러나, 검출된 동기 신호는 해당 수직 동기 신호(VSYNC) 또는 유효 데이터 인에이블 신호(HREF)의 상태 변화를 지시하기 위한 동기 코드이므로, 디코더부(1030)는 해당 동기 코드는 출력하지 않는다.For example, if the parallel data acquired in response to the third clock signal is SOF, the decoder 1030 may change the vertical synchronization signal VSYNC to a first state and output the same to the image signal processor 240. The decoder 1030 may change the valid data enable signal HREF to the second state and output the valid data enable signal HREF to the image signal processor 240. However, since the detected synchronization signal is a synchronization code for indicating a state change of the corresponding vertical synchronization signal VSYNC or the valid data enable signal HREF, the decoder 1030 does not output the corresponding synchronization code.

또한, 만일 획득된 병렬 데이터가 SOL이면, 디코더부(1030)는 유효 데이터 인에이블 신호(HREF)의 유효 구간의 시작을 알리기 위해 유효 데이터 인에이블 신호(HREF)를 제2 상태로 변경하여 출력할 수 있다. 그리고, 획득된 병렬 데이터가 EOL이면, 유효 데이터 인에이블 신호(HREF)의 각 유효 구간의 종료를 알리기 위해 디코더부(1030)는 유효 데이터 인에이블 신호(HREF)를 제1 상태로 변경하여 출력할 수 있다. In addition, if the obtained parallel data is SOL, the decoder unit 1030 may change the valid data enable signal HREF to a second state to output the start of the valid period of the valid data enable signal HREF and output the same. Can be. If the obtained parallel data is EOL, the decoder 1030 may change the valid data enable signal HREF to a first state and output the signal to indicate the end of each valid section of the valid data enable signal HREF. Can be.

그리고, 디코더부(1030)는 획득된 병렬 데이터가 EOF이면, 해당 프레임의 종료를 알리기 위해 수직 동기 신호(VSYNC)를 제2 상태로 변경하여 이미지 시그널 프로세서(240)로 출력할 수 있다.If the obtained parallel data is EOF, the decoder 1030 may change the vertical synchronization signal VSYNC to a second state and output the same to the image signal processor 240 to signal the end of the corresponding frame.

또한, 디코더부(1030)는 획득된 병렬 데이터가 SOF, SOL, EOF, EOL 중 어느 하나가 아닌 경우에는 픽셀 데이터로써 이미지 시그널 프로세서(240)로 출력한다.In addition, if the obtained parallel data is not one of SOF, SOL, EOF, and EOL, the decoder unit 1030 outputs the pixel data to the image signal processor 240 as pixel data.

이로 인해, 이미지 시그널 프로세서(240)는 센서부(202)로부터 직렬 데이터 스트림으로 입력되는 픽셀 데이터를 입력받아 정해진 영상 데이터 포맷으로 변환할 수 있다.Accordingly, the image signal processor 240 may receive the pixel data input from the sensor unit 202 into the serial data stream and convert the pixel data into a predetermined image data format.

도 11은 본 발명의 일 실시예에 따른 고속 직렬 데이터 전송을 위한 인터페이스를 통해 데이터를 전송한 경우와 종래의 병렬 데이터 전송을 위한 인터페이스를 통해 데이터를 전송한 경우를 비교한 그래프이다.11 is a graph comparing a case where data is transmitted through an interface for high speed serial data transmission and a case where data is transmitted through an interface for conventional parallel data transmission according to an embodiment of the present invention.

도 11을 참조하면, 종래의 병렬 데이터 전송을 위한 인터페이스를 통한 데이터 전송 방법과 본 발명의 일 실시예에 따른 직렬 데이터 전송을 위한 인터페이스를 통한 데이터를 전송한 경우를 비교한 그래프이다. 도 11의 x축은 프레임 레이트(frame rate)를 나타내며, y축은 픽셀 클럭 주파수(pixel clock frequency)를 나타낸다. 그리고, 각각의 그래프는 1MP(mega pixel), 1.2MP, 2MP, 3MP, 4MP, 5MP, 6MP, 8MP에 따른 픽셀 데이터의 전송에 따른 밴드의 폭(bandwidth)을 나타낸다. 도 11의 그래프에서 라인별 블랭킹 타임(line blanking time)은 5.5us, 프레임별 블랭킹 타임(frame blanking time)은 500us로 계산되었다. Referring to FIG. 11, a graph comparing a conventional method of transmitting data through an interface for parallel data transmission and a case of transmitting data through an interface for serial data transmission according to an embodiment of the present invention. The x-axis of FIG. 11 represents a frame rate, and the y-axis represents a pixel clock frequency. Each graph represents a bandwidth of a band according to transmission of pixel data according to 1MP (mega pixel), 1.2MP, 2MP, 3MP, 4MP, 5MP, 6MP, and 8MP. In the graph of FIG. 11, the blanking time per line was 5.5 us, and the blanking time per frame was 500 us.

도 11의 1110은 각 픽셀별로 YUV422(16비트/pixel) 포맷을 고속 직렬 데이터 전송을 위한 인터페이스(예를 들어, 제1 인터페이스부(220)와 제2 인터페이스부(230)를 통해 전송한 경우)로 전송할 수 있는 밴드 폭이며, 도 11의 1120은 각 픽셀별로 YUV422(16비트/pixel) 포맷을 종래의 병렬 데이터 전송을 위한 인터페이 스로 전송할 수 있는 밴드폭(bandwidth)을 나타낸 것이다. 도 11의 1110과 1120을 비교하면 2채널의 고속 직렬 데이터를 전송할 수 있는 본 발명에 따른 인터페이스가 종래의 인터페이스보다 2배 이상의 전송 밴드폭(bandwidth)을 갖는 것을 알 수 있다.1110 of FIG. 11 illustrates an interface for high-speed serial data transmission of YUV422 (16 bit / pixel) format for each pixel (for example, when the first interface 220 and the second interface 230 are transmitted). In FIG. 11, 1120 shows a bandwidth for transmitting a YUV422 (16 bit / pixel) format to an interface for conventional parallel data transmission. Comparing 1110 and 1120 of FIG. 11, it can be seen that an interface according to the present invention capable of transmitting high-speed serial data of two channels has a transmission bandwidth more than twice that of a conventional interface.

본 명세서에서는 센서부(202)가 m비트의 픽셀 데이터를 n비트의 직렬 데이터 스트림으로 변환하여 출력하는 것을 중점으로 설명하였으나, m비트의 병렬 데이터를 전송하는 임의의 장치 또는 프로세서에서도 동일하게 적용될 수 있음은 당연하다.In the present specification, the sensor unit 202 converts m-bit pixel data into an n-bit serial data stream and outputs the same. However, the same may be applied to any device or processor that transmits m-bit parallel data. Of course it is.

도 12는 본 발명의 일 실시예에 따른 센서부가 m비트의 픽셀 데이터를 직렬 전송 방식을 이용하여 출력하는 방법을 나타낸 순서도이다. 이하에서, 센서부(202)는 단일 칩으로 피사체를 촬상하여 상응하는 픽셀 데이터를 생성하는 이미지 센서(210)와 해당 픽셀 데이터를 n비트의 직렬 데이터 스트림으로 변환하는 제1 인터페이스부(220)를 포함하여 구성되는 것을 가정하여 설명하기로 한다. 또한, 센서부(202) 내부의 구성 요소들은 동일 칩내에 위치하고 있으므로, 데이터를 병렬 전송 방식으로 전송할 수 있으며, 다른 칩의 구성 요소(예를 들어, 프로세서부(204)로 전송하는 경우에는 직렬 데이터 스트림으로 변환하여 전송하는 것을 가정하기로 한다.12 is a flowchart illustrating a method of outputting m-bit pixel data by a serial transmission method according to an embodiment of the present invention. Hereinafter, the sensor unit 202 uses an image sensor 210 for photographing a subject with a single chip to generate corresponding pixel data, and a first interface unit 220 for converting the pixel data into an n-bit serial data stream. It will be described on the assumption that it is configured to include. In addition, since the components inside the sensor unit 202 are located in the same chip, data may be transmitted in a parallel transmission method, and serial data may be transmitted when a component of another chip (for example, the processor unit 204 is transmitted). Assume that the stream is converted and transmitted.

단계 1205에서 이미지 센서(210)는 피사체에 상응하는 m비트의 픽셀 데이터를 생성하여 해당 픽셀 데이터에 동기화된 동기 신호들(예를 들어, 클럭 신 호(PCLK), 수직 동기 신호(VSYNC), 유효 데이터 인에이블 신호(HREF))을 생성하여 제1 인터페이스부(220)로 출력한다. 여기서, 이미지 센서(210)와 제1 인터페이스부(220)는 하나의 칩내에 포함된 구성 요소이므로 병렬 데이터 전송 방식을 이용하여 데이터를 전송할 수 있다.In operation 1205, the image sensor 210 generates m-bit pixel data corresponding to a subject and synchronizes synchronization signals (for example, a clock signal PCLK, a vertical synchronization signal VSYNC), and is effective. The data enable signal HREF is generated and output to the first interface unit 220. Here, since the image sensor 210 and the first interface unit 220 are components included in one chip, data may be transmitted using a parallel data transmission method.

단계 1210에서 인코더부(310)는 이미지 센서(210)로부터 입력된 동기 신호들에 상응하여 설정된 동기 코드들을 삽입하며, 해당 동기 신호들을 이용하여 m비트의 픽셀 데이터를 획득한 후, 해당 삽입된 동기 코드 및 획득된 픽셀 데이터에 동기화된 클럭 신호(즉, 제2 클럭 신호)를 생성하여 직렬 데이터 변환부(320)로 출력한다. In operation 1210, the encoder 310 inserts sync codes set corresponding to sync signals input from the image sensor 210, obtains m-bit pixel data using the sync signals, and then inserts the sync data. A clock signal (ie, a second clock signal) synchronized with the code and the acquired pixel data is generated and output to the serial data converter 320.

예를 들어, 수직 동기 신호(VSYNC)가 제1 상태로 변경되는 경우, 인코더부(220)는 SOF를 삽입하고, 수직 동기 신호(VSYNC)가 로우 상태에서 하이 상태로 변경되는 경우(즉, 제2 상태가 되는 경우) 인코더부(310)는 EOF를 삽입한다.For example, when the vertical synchronization signal VSYNC is changed to the first state, the encoder unit 220 inserts the SOF, and when the vertical synchronization signal VSYNC is changed from the low state to the high state (that is, the first state). In the case of two states), the encoder unit 310 inserts an EOF.

또한, 유효 데이터 인에이블 신호(HREF)가 제2 상태로 변경되는 경우, 인코더부(220)는 SOL을 삽입하며, 유효 데이터 인에이블 신호(HREF)가 제1 상태로 변경되는 경우 인코더부(220)는 EOL을 삽입할 수 있다.In addition, when the valid data enable signal HREF is changed to the second state, the encoder unit 220 inserts the SOL, and when the valid data enable signal HREF is changed to the first state, the encoder unit 220. ) Can insert an EOL.

그리고, 인코더부(310)는 수직 동기 신호(VSYNC)가 로우 상태이며, 유효 데이터 인에이블 신호(HREF)가 유효 구간이면, 클럭 신호(PCLK)에 상응하여 m비트의 픽셀 데이터를 각각 획득할 수 있다.If the vertical synchronization signal VSYNC is in the low state and the valid data enable signal HREF is in the valid period, the encoder unit 310 may acquire m-bit pixel data corresponding to the clock signal PCLK. have.

단계 1215에서 직렬 데이터 변환부(320)는 입력된 제2 클럭 신호를 이용하여 삽입된 동기 코드와 획득된 픽셀 데이터를 n비트씩 시프트시켜 n비트의 직렬 데이 터 스트림을 생성하고, 입력된 제2 클럭 신호를 2분주한 제3 클럭 신호를 생성한다. 그리고, 직렬 데이터 변환부(320)는 복수개의 데이터 신호선을 통해 n비트의 직렬 데이터 스트림을 차등신호 출력부(330)로 출력하고, 클럭 신호선을 통해 제3 클럭 신호를 차등신호 출력부(330)로 출력한다.In operation 1215, the serial data converter 320 shifts the inserted sync code and the obtained pixel data by n bits using the input second clock signal to generate n-bit serial data streams, and inputs the input second. A third clock signal divided by two is generated. The serial data converter 320 outputs the n-bit serial data stream to the differential signal output unit 330 through the plurality of data signal lines, and outputs the third clock signal through the clock signal line to the differential signal output unit 330. Will output

예를 들어, 직렬 데이터 변환부(320)는 생성된 n비트의 직렬 데이터 스트림의 홀수 위치의 비트값은 제1 데이터 신호선을 통해 출력하며, 짝수 위치의 비트값은 제2 데이터 신호선을 통해 출력할 수 있다For example, the serial data converter 320 may output bit values at odd positions of the generated n-bit serial data stream through the first data signal line, and output bit values at even positions through the second data signal line. Can

또 다른 예를 들어, 직렬 데이터 변환부(320)는 m비트의 픽셀 데이터를

Figure 112007031925416-PAT00017
비트씩 쉬프트시켜 상위
Figure 112007031925416-PAT00018
비트의 비트값들은 제1 데이터 신호선을 통해 출력하며, 하위
Figure 112007031925416-PAT00019
비트의 비트값들은 제2 데이터 신호선을 통해 출력하도록 할 수도 있다.As another example, the serial data converter 320 may convert m-bit pixel data.
Figure 112007031925416-PAT00017
Shift by bits
Figure 112007031925416-PAT00018
Bit values of the bit are output through the first data signal line,
Figure 112007031925416-PAT00019
Bit values of the bit may be output through the second data signal line.

단계 1220에서 차등신호 출력부(330)는 직렬 데이터 변환부(320)를 통해 입력된 n비트의 직렬 데이터 스트림과 제3 클럭 신호를 저압차등신호로 변환하여 프로세서부(204)로 출력한다.In operation 1220, the differential signal output unit 330 converts the n-bit serial data stream and the third clock signal inputted through the serial data converter 320 into a low voltage differential signal and outputs the low voltage differential signal to the processor unit 204.

도 13은 본 발명의 일 실시예에 따른 프로세서부가 직렬 데이터 스트림을 병렬 데이터로 변환하여 출력하는 방법을 나타낸 순서도이다. 이하에서, 프로세서 부(204)는 직렬 데이터 스트림을 입력받아 병렬 데이터로 변환하는 제2 인터페이스부(230)와 해당 병렬 데이터를 미리 정해진 이미지 포맷으로 변환하는 이미지 시그널 프로세서(240)를 포함하는 것을 가정하여 설명하기로 한다. 즉, 제2 인터페이스부(230)와 이미지 시그널 프로세서(240)는 동일한 칩내에 포함되는 구성 요소이므로, 데이터를 병렬 전송 방식으로 전송할 수 있으며, 다른 칩의 구성 요소(예를 들어, 센서부(202))로부터 데이터를 전송받거나 다른 칩의 구성 요소(예를 들어, 베이스밴드 프로세서(미도시))로 데이터를 전송하는 경우에는 직렬 데이터 스트림으로 변환하여 전송하는 것을 가정하여 설명하기로 한다. 본 명세서에서는 프로세서부(204)가 센서부(202)로부터 직렬 데이터 스트림을 전송받는 것을 중점적으로 설명하기로 한다.FIG. 13 is a flowchart illustrating a method in which a processor converts a serial data stream into parallel data and outputs the parallel data according to an embodiment of the present invention. Hereinafter, it is assumed that the processor unit 204 includes a second interface unit 230 that receives a serial data stream and converts the serial data stream into parallel data and an image signal processor 240 that converts the parallel data into a predetermined image format. This will be described. That is, since the second interface unit 230 and the image signal processor 240 are components included in the same chip, the second interface unit 230 and the image signal processor 240 may transmit data in a parallel transmission method, and components of another chip (for example, the sensor unit 202). In the case of receiving data from)) or transmitting data to another chip component (for example, a baseband processor (not shown)), it is assumed that the data is converted into a serial data stream and transmitted. In the present specification, the processor 204 will be described with emphasis on receiving a serial data stream from the sensor unit 202.

단계 1305에서 차등신호 입력부(1010)는 제1 인터페이스부(220)를 통해 입력된 저압차등신호를 LVCMOS/LVTTL 신호에 따른 직렬 데이터 스트림으로 변환하여 병렬 데이터 변환부(1020)로 출력한다.In operation 1305, the differential signal input unit 1010 converts the low voltage differential signal input through the first interface unit 220 into a serial data stream according to the LVCMOS / LVTTL signal and outputs the serial data stream to the parallel data converter 1020.

단계 1310에서 병렬 데이터 변환부(1020)는 n비트의 직렬 데이터 스트림을 입력받아 n비트 쉬프트시켜 m비트의 병렬 데이터를 생성하고, 해당 m비트의 병렬 데이터에 동기화된 제4 클럭 신호를 생성하여 디코더부(1030)로 출력한다.In step 1310, the parallel data converter 1020 receives n-bit serial data streams and shifts n bits to generate m-bit parallel data, and generates a fourth clock signal synchronized with the corresponding m-bit parallel data decoder. Output to the unit 1030.

예를 들어, 직렬 데이터 스트림이 2비트의 비트스트림이고, 생성하고자 하는 병렬 데이터가 m비트라고 가정하자. 병렬 데이터 변환부(1020)는 차등신호 입력부(1010)를 통해 입력되는 직렬 데이터 스트림을 2비트씩 4회 쉬프트시켜 m비트의 병렬 데이터를 생성할 수 있다.For example, suppose a serial data stream is a 2-bit bitstream and the parallel data to be generated is m bits. The parallel data converter 1020 may generate m-bit parallel data by shifting the serial data stream input through the differential signal input unit 1010 four times by two bits.

단계 1315에서 디코더부(1030)는 병렬 데이터 변환부(1020)를 통해 입력되는 제4 클럭 신호를 이용하여 병렬 데이터를 획득한다.In operation 1315, the decoder 1030 obtains parallel data using a fourth clock signal input through the parallel data converter 1020.

그리고, 단계 1320에서 디코더부(1030)는 획득된 병렬 데이터가 미리 정해진 동기 코드들 중 어느 하나와 일치하는지를 판단한다.In operation 1320, the decoder 1030 determines whether the obtained parallel data matches any one of predetermined synchronization codes.

만일 미리 정해진 동기 코드들 중 어느 하나와 일치하는 경우, 단계 1325에서 디코더부(1030)는 해당 동기 코드에 상응하는 동기 신호를 생성하여 이미지 시그널 프로세서(240)로 출력한다. 이때, 동기 코드와 일치된 병렬 데이터는 동기 신호의 생성을 위한 것임으로 이미지 시그널 프로세서(240)로 출력하지 않는다.If it matches one of the predetermined sync codes, the decoder 1030 generates a sync signal corresponding to the sync code in step 1325 and outputs the sync signal to the image signal processor 240. At this time, the parallel data matched with the sync code is for generating the sync signal and is not output to the image signal processor 240.

그러나 만일 미리 정해진 동기 코드들 중 어느 하나와 일치되지 않는다면, 단계 1320에서 디코더부(1030)는 획득된 병렬 데이터를 m비트의 픽셀 데이터로써 이미지 시그널 프로세서(240)로 출력한다. 물론, 디코더부(1030)는 이미지 시그널 프로세서(240)가 해당 픽셀 데이터를 획득할 수 있도록 해당 픽셀 데이터에 동기화된 클럭 신호(PCLK)를 생성하여 출력할 수 있다.However, if one of the predetermined sync codes does not match, the decoder 1030 outputs the obtained parallel data to the image signal processor 240 as m-bit pixel data in step 1320. Of course, the decoder 1030 may generate and output the clock signal PCLK synchronized with the pixel data so that the image signal processor 240 may obtain the pixel data.

이로 인해, 이미지 시그널 프로세서(240)는 제2 인터페이스부(230)를 통해 이미지 센서(210)에서 출력된 픽셀 데이터를 입력받아 처리할 수 있는 이점이 있다.As a result, the image signal processor 240 may receive and process pixel data output from the image sensor 210 through the second interface unit 230.

상술한 바와 같이, 데이터 전송을 위한 장치 및 그 방법을 제공함으로써, m비트의 병렬 데이터를 n비트의 직렬 데이터 스트림으로 변환한 후 저압차등신호를 이용하여 전송하여 데이터 전송시 밴드폭(bandwidth)을 약 2배정도 확장할 수 있는 효과가 있다.As described above, by providing an apparatus and method for data transmission, by converting the m-bit parallel data into an n-bit serial data stream and then using a low differential pressure signal to transmit the bandwidth (bandwidth) during data transmission It is effective to expand about 2 times.

또한, 본 발명은 저압차등신호를 이용하여 픽셀 데이터를 전송함으로써 데이터 전송에 필요한 신호선을 줄일 수 있으며, 전략 소모를 줄일 수 있는 효과도 있다.In addition, the present invention can reduce the signal line required for data transmission by transmitting the pixel data using the low pressure differential signal, it is also possible to reduce the strategy consumption.

또한, 본 발명은 저압차등신호를 이용하여 픽셀 데이터를 전송함으로써 데이터 또는 클럭 신호를 전송하는 신호선의 전자파 간섭(EMI)을 개선할 수 있는 효과도 있다.In addition, the present invention also has the effect of improving the electromagnetic interference (EMI) of the signal line transmitting the data or clock signal by transmitting the pixel data using the low pressure differential signal.

또한, 본 발명은 데이터 전송을 위해 필요한 내부 신호선을 줄임으로써 PCB 설계가 용의하며 케이블, PCB 트레이스(trace)수 및 커넥터의 크기를 줄임으로써 비용을 절감할 수 있는 효과도 있다.In addition, the present invention facilitates PCB design by reducing internal signal lines required for data transmission, and also reduces costs by reducing the size of cables, PCB traces and connectors.

또한, 본 발명은 데이터 전송을 위해 필요한 신호선을 줄임으로써 I/O핀을 줄여 부품을 소형화할 수 있는 효과도 있다.In addition, the present invention also has the effect of miniaturizing components by reducing the I / O pin by reducing the signal line required for data transmission.

상기에서는 본 발명의 바람직한 실시예를 참조하여 설명하였지만, 해당 기술 분야에서 통상의 지식을 가진 자라면 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although the above has been described with reference to a preferred embodiment of the present invention, those skilled in the art to which the present invention pertains without departing from the spirit and scope of the present invention as set forth in the claims below It will be appreciated that modifications and variations can be made.

Claims (22)

m(임의의 자연수) 비트의 병렬 데이터와 동기화된 동기 신호들을 출력하는 데이터 출력부; 및a data output unit for outputting synchronization signals synchronized with parallel data of m (any natural number) bits; And 상기 데이터 출력부로부터 상기 병렬 데이터 및 상기 동기 신호를 입력받고, 상기 동기 신호들에 상응하여 설정한 동기 코드들을 병렬 데이터에 삽입하여 n(임의의 자연수) 비트의 직렬 데이터 스트림으로 변환하여 출력하며, 상기 직렬 데이터 스트림에 동기화된 클럭 신호를 생성하여 출력하는 제1 인터페이스부를 포함하되,Receiving the parallel data and the synchronization signal from the data output unit, inserting the synchronization codes set corresponding to the synchronization signals into the parallel data, converting them into a serial data stream of n (any natural number) bits, and outputting the same; A first interface unit configured to generate and output a clock signal synchronized to the serial data stream, 센서 또는 프로세서 중 어느 하나인 상기 데이터 출력부와 상기 제1 인터페이스부는 동일한 칩에 구비되는 것을 특징으로 하는 데이터 전송 장치.The data output unit and the first interface unit which is any one of a sensor or a processor is provided on the same chip. 제 1항에 있어서,The method of claim 1, 상기 제1 인터페이스부는, The first interface unit, 상기 동기 코드를 상기 병렬 데이터 삽입하여 출력하며, 상기 동기 코드가 삽입된 병렬 데이터에 동기화된 제1 클럭 신호를 생성하여 출력하는 인코더부; 및An encoder unit for inserting and outputting the sync code to generate the first clock signal synchronized with the parallel data into which the sync code is inserted; And 상기 동기 코드가 삽입된 병렬 데이터를 상기 n비트씩 시프트(shift)시켜 n비트 단위의 상기 직렬 데이터 스트림으로 변환하여 출력하며, 상기 제1 클럭 신호를 분주한 제2 클럭 신호를 생성하여 출력하는 직렬 데이터 변환부를 포함하는 것 을 특징으로 하는 데이터 전송 장치.A serial to shift and output the parallel data into which the synchronization code is inserted, by n bits, to the serial data stream in units of n bits, and to generate and output a second clock signal divided by the first clock signal; And a data converter. 제 2항에 있어서,The method of claim 2, 상기 데이터 출력부가 피사체에 상응하는 m비트의 픽셀 데이터 및 상응하는 동기 신호들을 출력하는 이미지 센서인 경우,When the data output unit is an image sensor that outputs m-bit pixel data corresponding to a subject and corresponding synchronization signals, 상기 동기 신호들은 상기 병렬 데이터의 획득을 위한 클럭 신호(PCLK), 각각의 프레임의 식별을 위한 수직 동기 신호(VSYNC) 및 각 프레임내의 라인의 식별을 위한 유효 데이터 인에이블 신호(HREF)이고,The synchronization signals are a clock signal PCLK for acquiring the parallel data, a vertical synchronization signal VSYNC for identification of each frame, and a valid data enable signal HREF for identification of a line in each frame. 상기 인코더부는 상기 수직 동기 신호(VSYNC)가 제1 상태로 변경되면, 프레임의 시작을 지시하는 SOF(start of frame sync code)를 상기 병렬 데이터에 삽입하며, 상기 수직 동기 신호(VSYNC)가 제2 상태로 변경되면, 프레임의 종료를 지시하는 EOF(end of frame sync code)를 상기 병렬 데이터에 삽입하되,When the vertical sync signal VSYNC is changed to a first state, the encoder inserts a start of frame sync code (SOF) indicating the start of a frame into the parallel data, and the vertical sync signal VSYNC is a second one. When the state is changed, an end of frame sync code (EOF) is inserted into the parallel data indicating the end of the frame. 상기 제1 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 다른 하나인 것을 특징으로 하는 데이터 전송 장치.The first state is any one of a falling edge or a rising edge, and the second state is another one of a falling edge or a rising edge. Transmission device. 제 3항에 있어서,The method of claim 3, wherein 상기 인코더부는 상기 수직 동기 신호(VSYNC)가 상기 제1 상태로 변경된 후 상기 유효 데이터 인에이블 신호(HREF)가 제3 상태로 변경되면, 라인의 시작을 지시하는 SOL(start of line sync code)를 상기 병렬 데이터에 삽입하며,When the valid data enable signal HREF is changed to the third state after the vertical synchronization signal VSYNC is changed to the first state, the encoder unit generates a start of line sync code (SOL) indicating the start of a line. Inserting into the parallel data, 상기 유효 데이터 인에이블 신호가 제4 상태로 변경되면, 상기 라인의 종료를 지시하는 EOL(end of line sync code)를 상기 병렬 데이터 삽입하되,When the valid data enable signal is changed to the fourth state, an end of line sync code (EOL) indicating end of the line is inserted into the parallel data, 상기 제3 상태는 상기 제1 상태 및 상기 제2 상태 중 어느 하나이고, 상기 제4 상태는 상기 제1 상태 및 상기 제2 상태 중 다른 하나인 것을 특징으로 하는 데이터 전송 장치.And the third state is any one of the first state and the second state, and the fourth state is another one of the first state and the second state. 제 2항에 있어서,The method of claim 2, 상기 직렬 데이터 스트림과 상기 제2 클럭 신호를 저압차등신호로 변환하여 출력하는 차등신호 출력부를 더 포함하되,And a differential signal output unit configured to convert the serial data stream and the second clock signal into a low voltage differential signal and output the converted signal. 상기 직렬 데이터 변환부는 상기 직렬 데이터 스트림의 출력을 위한 복수개의 데이터 신호선과 상기 클럭 신호를 출력하기 위한 클럭 신호선을 통해 상기 차등신호 출력부와 연결되는 것을 특징으로 하는 데이터 전송 장치.And the serial data converter is connected to the differential signal output unit through a plurality of data signal lines for outputting the serial data stream and a clock signal line for outputting the clock signal. 제 5항에 있어서,The method of claim 5, 상기 직렬 데이터 변환부는 상기 직렬 데이터 스트림의 홀수 위치의 비트값은 제1 데이터 신호선을 통해 출력하며, 상기 짝수 위치의 비트값은 제2 데이터 신 호선을 통해 상기 차등신호 출력부로 출력하는 것을 특징으로 하는 데이터 전송 장치.The serial data converter outputs bit values at odd positions of the serial data stream through a first data signal line, and outputs bit values at even positions to the differential signal output unit through a second data signal line. Data transmission device. 제 5항에 있어서,The method of claim 5, 상기 직렬 데이터 변환부는 상기 동기 코드가 삽입된 픽셀 데이터를
Figure 112007031925416-PAT00020
비트씩 시프트시켜 상위
Figure 112007031925416-PAT00021
비트의 직렬 데이터 스트림은 제1 데이터 신호선을 통해 출력하며, 하위
Figure 112007031925416-PAT00022
비트의 직렬 데이터 스트림은 제2 데이터 신호선을 통해 상기 차등신호 출력부로 출력하는 것을 특징으로 하는 데이터 전송 장치.
The serial data converter may convert pixel data into which the sync code is inserted.
Figure 112007031925416-PAT00020
Shift bit by bit
Figure 112007031925416-PAT00021
The serial data stream of bits is output through the first data signal line,
Figure 112007031925416-PAT00022
And a serial data stream of bits is output to said differential signal output section through a second data signal line.
입력되는 n(임의의 자연수)비트의 직렬 데이터 스트림 및 동기화된 클럭 신호를 입력받아 m(임의의 자연수)비트의 병렬 데이터로 변환하여 미리 설정된 동기 코드를 검출하여 상응하는 동기 신호를 생성하며, 상기 동기 코드가 제거된 병렬 데이터를 출력하는 제2 인터페이스부; 및Receives an n (random natural number) bit serial data stream and a synchronized clock signal and converts it into m (random natural number) bit parallel data to detect a preset sync code to generate a corresponding sync signal. A second interface unit for outputting parallel data from which a synchronization code has been removed; And 상기 제2 인터페이스부를 통해 상기 병렬 데이터 및 상기 동기 신호를 입력받아 미리 정해진 데이터 포맷으로 변환하는 프로세서를 포함하되,And a processor configured to receive the parallel data and the synchronization signal through the second interface unit and convert the parallel data and the synchronization signal into a predetermined data format. 상기 프로세서와 상기 제2 인터페이스부는 동일한 칩에 구비되는 것을 특징으로 하는 데이터 수신 장치.And the processor and the second interface unit are provided on the same chip. 제 8항에 있어서,The method of claim 8, 상기 제2 인터페이스부는,The second interface unit, 상기 직렬 데이터 스트림을 상기 n비트씩 시프트시켜 상기 m비트의 병렬 데이터로 변환하는 병렬 데이터 변환부; 및A parallel data converter for shifting the serial data stream by the n bits and converting the serial data stream into the m bits of parallel data; And 상기 병렬 데이터에서 상기 동기 코드를 검출하여 상응하는 상기 동기 신호를 생성하고, 상기 동기 코드가 제거된 병렬 데이터를 출력하는 디코더부를 포함하는 것을 특징으로 하는 데이터 수신 장치.And a decoder unit for detecting the sync code from the parallel data to generate a corresponding sync signal, and outputting parallel data from which the sync code has been removed. 제 12항에 있어서,The method of claim 12, 상기 디코더부는 상기 변환된 병렬 데이터가 SOF이면, 제1 상태로 변경된 수직 동기 신호(VSYNC)를 생성하여 출력하며, 상기 변환된 병렬 데이터가 EOF이면, 제2 상태로 변경된 수직 동기 신호(VSYNC)를 생성하여 출력하되,The decoder generates and outputs a vertical synchronizing signal VSYNC changed to a first state when the converted parallel data is SOF, and outputs a vertical synchronizing signal VSYNC changed to a second state when the converted parallel data is EOF. Create and print, 상기 제1 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 다른 하나인 것을 특징으로 하는 데이터 수신 장치.The first state is any one of a falling edge or a rising edge, and the second state is another one of a falling edge or a rising edge. Receiving device. 제 10항에 있어서,The method of claim 10, 상기 디코더부는 상기 변환된 병렬 데이터가 SOL이면, 상기 제3 상태로 변환된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하며, 상기 변환된 병렬 데이터가 EOL이면 상기 제4 상태로 변환된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하되,The decoder generates and outputs a valid data enable signal HREF converted to the third state when the converted parallel data is SOL, and valid data converted to the fourth state when the converted parallel data is EOL. Generate and output the enable signal (HREF), 상기 제3 상태는 상기 제1 상태 및 상기 제2 상태 중 어느 하나이며, 상기 제4 상태는 상기 제1 상태 및 상기 제2 상태 중 다른 하나인 것을 특징으로 하는 데이터 수신 장치.The third state is any one of the first state and the second state, and the fourth state is another one of the first state and the second state. 제 9항에 있어서,The method of claim 9, 상기 저압차등신호를 입력받아 상기 직렬 데이터 스트림으로 변환하여 출력하는 차등신호 입력부를 더 포함하되,And a differential signal input unit configured to receive the low differential pressure signal and convert the low pressure differential signal into the serial data stream. 상기 직렬 데이터 변환부는 상기 직렬 데이터 스트림의 입력을 위한 복수개의 데이터 신호선과 상기 클럭 신호의 입력을 위한 하나의 클럭 신호선을 통해 상기 차등신호 입력부와 연결되는 것을 특징으로 하는 데이터 수신 장치.And the serial data converter is connected to the differential signal input unit through a plurality of data signal lines for inputting the serial data stream and one clock signal line for inputting the clock signal. 제 12항에 있어서,The method of claim 12, 상기 직렬 데이터 변환부는 제1 데이터 신호선을 통해 상기 직렬 데이터 스트림의 홀수 위치의 비트값을 입력받고, 제2 데이터 신호선을 통해 상기 직렬 데이터 스트림의 짝수 위치의 비트값을 입력받아 상기 병렬 데이터로 변환하는 것을 특징으로 하는 데이터 수신 장치.The serial data converting unit receives a bit value of an odd position of the serial data stream through a first data signal line, receives a bit value of an even position of the serial data stream through a second data signal line, and converts the bit value into the parallel data. Data receiving apparatus, characterized in that. 제 12항에 있어서,The method of claim 12, 상기 직렬 데이터 변환부는 제1 데이터 신호선을 통해 상기 직렬 데이터 스트림의 상위
Figure 112007031925416-PAT00023
비트의 비트값들을 입력받고, 제2 데이터 신호선을 통해 상기 직렬 데이터 스트림의 하위
Figure 112007031925416-PAT00024
비트의 비트값들을 입력받아 상기 병렬 데이터로 변환하는 것을 특징으로 하는 데이터 수신 장치.
The serial data converter is higher than the serial data stream through a first data signal line.
Figure 112007031925416-PAT00023
Receive bit values of a bit, and subordinate the serial data stream through a second data signal line
Figure 112007031925416-PAT00024
And receiving bit values of a bit into the parallel data.
m(임의의 자연수) 비트의 병렬 데이터를 n(상기 m보다 작은 임의의 자연수)비트의 직렬 데이터 스트림으로 변환하는 데이터 전송 장치; 및a data transmission device for converting parallel data of m (any natural number) bits into a serial data stream of n (any natural number less than m) bits; And 상기 직렬 데이터 스트림을 입력받아 상기 병렬 데이터로 변환하는 데이터 수신 장치를 포함하되,And a data receiving device receiving the serial data stream and converting the serial data stream into parallel data. 상기 데이터 전송 장치는, The data transmission device, m(임의의 자연수) 비트의 병렬 데이터와 동기화된 동기 신호들을 출력하는 데이터 출력부; 및 a data output unit for outputting synchronization signals synchronized with parallel data of m (any natural number) bits; And 상기 데이터 출력부로부터 상기 병렬 데이터 및 상기 동기 신호를 입력받고, 상기 동기 신호들에 상응하여 설정한 동기 코드들을 병렬 데이터에 삽입한 후 n(임의의 자연수)비트의 직렬 데이터 스트림으로 변환하여 출력하며, 상기 직렬 데이터 스트림에 동기화된 클럭 신호를 생성하여 출력하는 제1 인터페이스부를 포함하며,Receiving the parallel data and the synchronization signal from the data output unit, inserting the synchronization codes set corresponding to the synchronization signals into the parallel data, and converting them into a serial data stream of n (arbitrary natural numbers) bits and outputting the same; And a first interface unit generating and outputting a clock signal synchronized to the serial data stream. 상기 데이터 수신 장치는, The data receiving device, 입력되는 n(임의의 자연수)비트의 직렬 데이터 스트림 및 동기화된 클럭 신호를 입력받아 m(임의의 자연수)비트의 병렬 데이터로 변환한 후 미리 설정된 동기 코드를 검출하여 상응하는 동기 신호를 생성하며, 상기 동기 코드가 제거된 병렬 데이터를 출력하는 제2 인터페이스부; 및Receives the input serial data stream of n (arbitrary natural number) and the synchronized clock signal, converts it into parallel data of m (arbitrary natural number) bit, detects a preset sync code, and generates a corresponding sync signal. A second interface unit for outputting parallel data from which the synchronization code has been removed; And 상기 제2 인터페이스부를 통해 상기 병렬 데이터 및 상기 동기 신호를 입력받아 미리 정해진 데이터 포맷으로 변환하는 프로세서를 포함하는 것을 특징으로 하는 디지털 처리 장치.And a processor configured to receive the parallel data and the synchronization signal through the second interface unit and convert the parallel data and the synchronization signal into a predetermined data format. 제 15항에 있어서,The method of claim 15, 상기 센서 또는 프로세서 중 어느 하나인 상기 데이터 출력부와 상기 제1 인터페이스부는 동일한 칩에 구비되며,The data output unit and the first interface unit, which are either the sensor or the processor, are provided on the same chip. 상기 제2 인터페이스부와 상기 프로세서는 동일한 칩에 구비되는 것을 특징으로 하는 디지털 처리 장치.And the second interface unit and the processor are provided on the same chip. 센서 또는 프로세서 중 어느 하나와 제1 인터페이스부를 포함하는 데이터 전송 장치가 데이터를 전송하는 방법에 있어서,A method of transmitting data by a data transmission device including any one of a sensor or a processor and a first interface unit, 상기 센서 또는 상기 프로세서 중 어느 하나가 m(임의의 자연수)비트의 병렬 데이터 및 동기화된 동기 신호들을 출력하는 단계;Outputting m (any natural number) bits of parallel data and synchronized synchronization signals by either the sensor or the processor; 상기 제1 인터페이스부가 상기 병렬 데이터 및 상기 동기 신호들을 입력받아 상기 동기 신호들에 상응하여 설정한 동기 코드들을 상기 병렬 데이터에 삽입하는 단계; 및Receiving, by the first interface unit, the parallel data and the synchronization signals and inserting synchronization codes set in correspondence with the synchronization signals into the parallel data; And 상기 제1 인터페이스부가 상기 동기 코드가 삽입된 병렬 데이터를 n(임의의 자연수)비트씩 시프트시켜 직렬 데이터 스트림으로 변환하여 출력하며, 상기 직렬 데이터 스트림에 동기화된 클럭 신호를 생성하여 출력하는 단계를 포함하는 데이터 전송 방법.And converting the parallel data into which the sync code is inserted, by n (random natural number) bits, converting the serial data into a serial data stream, and generating and outputting a clock signal synchronized with the serial data stream. Data transmission method. 제 17항에 있어서,The method of claim 17, 상기 동기 신호들에 상응하여 설정된 동기 코드들을 상기 병렬 데이터를 삽입하는 단계는,Inserting the parallel data into sync codes set corresponding to the sync signals, 수직 동기 신호가 제1 상태이면, 프레임의 시작에 상응하여 미리 설정된 제1 동기 코드를 상응하는 픽셀 데이터의 앞에 삽입하는 단계;If the vertical synchronization signal is in the first state, inserting a first synchronization code preset in accordance with the start of the frame before the corresponding pixel data; 상기 수직 동기 신호가 제2 상태이면, 상기 프레임의 끝에 상응하여 미리 설정된 제2 동기 코드를 상응하는 픽셀 데이터의 뒤에 삽입하는 단계;If the vertical synchronization signal is in the second state, inserting a second preset synchronization code corresponding to the end of the frame after the corresponding pixel data; 유효 데이터 인에이블 신호가 제3 상태이면, 라인의 시작에 상응하여 미리 설정된 제3 동기 코드를 상응하는 픽셀 데이터의 앞에 삽입하는 단계; 및If the valid data enable signal is in a third state, inserting a third sync code, which is preset corresponding to the beginning of the line, before the corresponding pixel data; And 상기 유효 데이터 인에이블 신호가 제4 상태이면, 라인의 끝에 상응하여 미리 설정된 제4 동기 코드를 상응하는 픽셀 데이터의 뒤에 삽입하는 단계를 포함하되,If the valid data enable signal is in the fourth state, inserting a fourth sync code preset corresponding to the end of the line after the corresponding pixel data; 상기 제1 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 다른 하나이며,The first state is either a falling edge or a rising edge, and the second state is the other of a falling edge or a rising edge, 상기 제3 상태는 상기 제1 상태 및 상기 제2 상태 중 어느 하나이며, 상기 제4 상태는 상기 제1 상태 및 상기 제2 상태 중 다른 하나인 것을 특징으로 하는 데이터 전송 방법.And wherein the third state is one of the first state and the second state, and the fourth state is the other of the first state and the second state. 제 17항에 있어서,The method of claim 17, 상기 직렬 데이터 스트림으로 변환하여 출력하는 단계는,Converting and outputting the serial data stream, 상기 동기 코드가 삽입된 픽셀 데이터를
Figure 112007031925416-PAT00025
비트씩 시프트시켜 상위
Figure 112007031925416-PAT00026
비트의 직렬 데이터 스트림을 제1 채널을 통해 출력하는 단계; 및
The pixel data into which the sync code is inserted
Figure 112007031925416-PAT00025
Shift bit by bit
Figure 112007031925416-PAT00026
Outputting a serial data stream of bits over a first channel; And
하위
Figure 112007031925416-PAT00027
비트의 직렬 데이터 스트림을 제2 채널을 통해 출력하는 단계를 포함하는 것을 특징으로 하는 데이터 전송 방법.
down
Figure 112007031925416-PAT00027
Outputting a serial data stream of bits over a second channel.
제2 인터페이스부와 프로세서를 포함하는 데이터 수신 장치가 데이터를 수신하는 방법에 있어서, In the data receiving apparatus including a second interface unit and a processor for receiving data, 상기 제2 인터페이스부가 직렬 데이터 스트림을 입력받아 n(임의의 자연수)비트만큼 쉬프트시켜 m(임의의 자연수)비트 단위의 병렬 데이터를 생성하는 단계;Receiving, by the second interface unit, a serial data stream and shifting by n (any natural number) bits to generate parallel data in units of m (any natural number) bits; 상기 제2 인터페이스부가 상기 병렬 데이터에서 미리 설정된 동기 코드를 검출하여 동기 코드가 제거된 병렬 데이터와 상기 검출된 동기 코드에 상응하여 상기 동기 코드가 제거된 병렬 데이터에 동기화된 동기 신호들을 생성하여 출력하는 단계; 및The second interface unit detects a preset sync code in the parallel data to generate and output sync signals synchronized to parallel data from which the sync code has been removed and to parallel data from which the sync code has been removed corresponding to the detected sync code. step; And 상기 프로세서가 상기 병렬 데이터 및 상기 동기 신호를 입력받아 상기 병렬 데이터를 미리 정해진 데이터 포맷으로 변환하여 출력하는 단계를 포함하는 데이터 수신 방법.And receiving, by the processor, the parallel data and the synchronization signal, converting the parallel data into a predetermined data format, and outputting the parallel data. 제 20항에 있어서,The method of claim 20, 상기 동기 코드가 제거된 병렬 데이터에 동기화된 동기 신호들을 생성하여 출력하는 단계는, Generating and outputting synchronization signals synchronized to parallel data from which the synchronization code has been removed may include: 상기 병렬 데이터가 SOF이면, 제1 상태로 갱신된 수직 동기 신호(VSYNC) 및 제3 상태로 갱신된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하는 단계; Generating and outputting a vertical synchronization signal (VSYNC) updated to a first state and a valid data enable signal (HREF) updated to a third state if the parallel data is SOF; 상기 병렬 데이터가 EOF이면, 상기 제2 상태로 갱신된 수직 동기 신호(VSYNC) 및 상기 제4 상태로 갱신된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하는 단계;Generating and outputting a vertical synchronization signal (VSYNC) updated to the second state and a valid data enable signal (HREF) updated to the fourth state if the parallel data is EOF; 상기 병렬 데이터가 SOL이면, 상기 제3 상태로 갱신된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하는 단계; 및Generating and outputting a valid data enable signal (HREF) updated to the third state if the parallel data is SOL; And 상기 병렬 데이터가 EOL이면, 상기 제4 상태로 갱신된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하는 단계를 포함하되,If the parallel data is EOL, generating and outputting a valid data enable signal HREF updated to the fourth state, 상기 제1 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 다른 하나이며, 상기 제3 상태는 상기 제1 상태 및 상기 제2 상태 중 어느 하나이고, 상기 제4 상태는 상기 제1 상태 및 상기 제2 상태 중 다른 하나인 것을 특징으로 하는 데이터 수신 방법.The first state is either a falling edge or a rising edge, and the second state is the other of a falling edge or a rising edge, and the third state. Is any one of the first state and the second state, and the fourth state is another one of the first state and the second state. 제 21항에 있어서,The method of claim 21, 직렬 데이터 스트림을 입력받아 상기 n비트만큼 쉬프트시켜 m(임의의 자연수)비트 단위의 병렬 데이터를 생성하는 단계는,Receiving a serial data stream and shifting by n bits to generate parallel data in units of m (any natural number), 제1 채널 및 제2 채널을 통해 n비트의 비트값을 각각 입력받는 단계; 및Receiving n-bit bit values through the first channel and the second channel, respectively; And 상기 입력된 비트값을 미리 정해진 순서대로 각각 n비트씩 쉬프트시키고 머지하여 상기 병렬 데이터를 생성하여 출력하는 단계를 포함하는 것을 특징으로 하는 데이터 수신 방법.And shifting and inputting the input bit values by n bits in a predetermined order, respectively, to generate and output the parallel data.
KR1020070041167A 2007-04-27 2007-04-27 Apparatus and method for data transmission KR100934611B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070041167A KR100934611B1 (en) 2007-04-27 2007-04-27 Apparatus and method for data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070041167A KR100934611B1 (en) 2007-04-27 2007-04-27 Apparatus and method for data transmission

Publications (2)

Publication Number Publication Date
KR20080096130A true KR20080096130A (en) 2008-10-30
KR100934611B1 KR100934611B1 (en) 2009-12-31

Family

ID=40155552

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070041167A KR100934611B1 (en) 2007-04-27 2007-04-27 Apparatus and method for data transmission

Country Status (1)

Country Link
KR (1) KR100934611B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124532A (en) * 2016-02-25 2017-09-01 实耐宝公司 Four-wheel position finder and its electronic system, Central Processing Board and camera board
KR102228018B1 (en) * 2020-11-30 2021-03-16 주식회사 퓨쳐디자인시스템 Frame synchronization signal insertion device and method of tomography system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990032990U (en) * 1997-12-29 1999-07-26 윤종용 Computer system with interface device using LVDS
JP3874357B2 (en) * 2004-07-05 2007-01-31 シャープ株式会社 Data transmitting apparatus, data receiving apparatus, data transmitting / receiving apparatus, and data transmitting / receiving method
KR100669997B1 (en) * 2005-02-11 2007-01-19 삼성전자주식회사 Web Camera
KR100736048B1 (en) * 2005-08-19 2007-07-06 삼성전자주식회사 Apparatus for transmission to digital image data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124532A (en) * 2016-02-25 2017-09-01 实耐宝公司 Four-wheel position finder and its electronic system, Central Processing Board and camera board
KR102228018B1 (en) * 2020-11-30 2021-03-16 주식회사 퓨쳐디자인시스템 Frame synchronization signal insertion device and method of tomography system

Also Published As

Publication number Publication date
KR100934611B1 (en) 2009-12-31

Similar Documents

Publication Publication Date Title
US8023002B2 (en) Imager, imaging circuit, and image processing circuit
EP2094002A2 (en) Electronic communication system and endoscope system
US10375270B2 (en) Signal processing apparatus, image processing apparatus, and signal processing method
KR100676289B1 (en) Data transmission apparatus, data reception apparatus, data transmission and reception apparatus and data transmission and reception method
EP3148177A1 (en) Image generation method based on dual camera module and dual camera module
US20130216235A1 (en) Transmission system and electronic equipment
WO2021013113A1 (en) Image capture display terminal
TW201711479A (en) Multimedia signal transmission device and transmission method thereof
WO2019093072A1 (en) Transmission device and method with region of interest mode selection
KR100874671B1 (en) Apparatus and method for data transmission
US8587678B2 (en) Head-separated camera device with switchable clocking
US20170012798A1 (en) Transmission apparatus, transmission method, reception apparatus, and reception method
WO2017067203A1 (en) Shared protocol layer multi-channel display interface signal generating system
JP2009065399A (en) Digital data transmitter, digital data receiver, digital data transmitting-receiving system, method for transmitting digital data, method for receiving digital data, method for transmitting-receiving digital data, and electronic information device
US9591198B2 (en) Endoscope for outputting signal
KR100934611B1 (en) Apparatus and method for data transmission
KR101316179B1 (en) Duel camera
WO2006095313A1 (en) Method for remotely controlling a display apparatus based thereon and a portable device comprising such an apparatus
EP3920498B1 (en) Transmission device, transmission method, reception device, reception method, and transmission/reception device
CN107197190B (en) Method and device for generating video clock
US7268334B2 (en) Image sensor device and a method for outputting digital signals
CN107666582B (en) Video signal conversion method, system, device and video processing device
CN213213650U (en) Video access card and LED display controller
JPWO2019031003A1 (en) Transmission device and communication system
CN217721164U (en) Transmission system and imaging colorimeter

Legal Events

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

Payment date: 20121011

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20131127

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20151127

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20171128

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20181126

Year of fee payment: 10