KR20080096160A - Device and method for transferring data - Google Patents

Device and method for transferring data Download PDF

Info

Publication number
KR20080096160A
KR20080096160A KR1020070041259A KR20070041259A KR20080096160A KR 20080096160 A KR20080096160 A KR 20080096160A KR 1020070041259 A KR1020070041259 A KR 1020070041259A KR 20070041259 A KR20070041259 A KR 20070041259A KR 20080096160 A KR20080096160 A KR 20080096160A
Authority
KR
South Korea
Prior art keywords
data
signal
state
parallel data
parallel
Prior art date
Application number
KR1020070041259A
Other languages
Korean (ko)
Other versions
KR100874671B1 (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 KR1020070041259A priority Critical patent/KR100874671B1/en
Publication of KR20080096160A publication Critical patent/KR20080096160A/en
Application granted granted Critical
Publication of KR100874671B1 publication Critical patent/KR100874671B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith
    • H04N25/71Charge-coupled device [CCD] sensors; Charge-transfer registers specially adapted for CCD sensors
    • H04N25/745Circuitry for generating timing or clock signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith
    • H04N25/71Charge-coupled device [CCD] sensors; Charge-transfer registers specially adapted for CCD sensors
    • H04N25/711Time delay and integration [TDI] registers; TDI shift registers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith
    • H04N25/76Addressed sensors, e.g. MOS or CMOS sensors
    • H04N25/77Pixel circuitry, e.g. memories, A/D converters, pixel amplifiers, shared circuits or shared components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices

Abstract

A device and a method for transmitting data are provided to expand bandwidth twice wider during data transmission by converting m bit parallel data into an n bit serial data stream and transmitting the n bit serial data stream by using a low voltage differential signal. A sensor unit(202) includes an image sensor(210) and the first interface unit(220). A processor(204) includes the second interface unit(230) and an image signal processor(240). An image sensor generates a signal(pixel data) into which a light signal is converted and outputs the pixel data to the first interface unit. An image sensor generates the pixel data and synchronizing signals synchronized with the corresponding pixel data, and outputs them to the first interface unit. Synchronizing signals are a clock signal(PCLK), a vertical synchronizing signal(VSYNC) and a valid data enable signal(HREF). The clock signal is a synchronizing signal for obtaining the pixel data output from the image sensor, the vertical synchronizing signal is a synchronizing signal for identifying data according to each frame, and the valid data enable signal is a synchronizing signal for identifying data output during a valid interval, each line.

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, the present invention for solving the above problems provides an interface, an apparatus, and a 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. It is for.

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

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

또한, 본 발명은 저압차등신호를 이용하여 픽셀 데이터를 전송함으로써 데이터 또는 클럭 신호를 전송하는 신호선의 전자파 간섭(EMI)을 개선할 수 있는 데이터 전송을 위한 인터페이스, 장치 및 그 방법을 제공하기 위한 것이다.In addition, the present invention is to provide an interface, an apparatus, and a method for data transmission that can improve the electromagnetic interference (EMI) of the signal line for transmitting 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 an interface for data transmission that can reduce costs by reducing the number of cables, PCB traces and connectors. To provide a device, and a method thereof.

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

이외의 본 발명의 목적들은 하기의 실시예에 대한 설명을 통해 쉽게 이해될 수 있을 것이다.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 m (arbitrary natural number) of parallel data and synchronized synchronization signals; And receiving the parallel data and the synchronization signals 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 configured to generate a clock signal synchronized to a serial data stream, wherein the data output unit and the first interface unit, which are either a sensor or a processor, are provided on the same chip. Can be.

상기 제1 인터페이스부는, 상기 동기 코드를 상기 병렬 데이터에 삽입하여 출력하며, 상기 동기 코드가 삽입된 병렬 데이터에 동기화된 제1 클럭 신호를 생성하여 출력하는 인코더부; 및 상기 동기 코드가 삽입된 병렬 데이터를 상기 n비트씩 시프트(shift)시켜 n비트 단위의 상기 직렬 데이터 스트림으로 변환하여 출력하며, 상기 제1 클럭 신호를 분주한 제2 클럭 신호를 생성하여 출력하는 직렬 데이터 변환부를 포함할 수 있다.The first interface unit includes: an encoder unit for inserting and outputting the sync code into the parallel data, and generating and outputting a first clock signal synchronized to 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.

상기 인코더부는 상기 동기 코드가 삽입된 병렬 데이터를 출력하기 위한 복수의 데이터 버스 및 상기 제1 클럭 신호를 출력하기 위한 제1 클럭 신호선을 통해 상기 직렬 데이터 변환부와 연결될 수 있다.The encoder unit may be connected to the serial data converter through a plurality of data buses for outputting parallel data into which the sync code is inserted and a first clock signal line for outputting the first clock signal.

상기 인코더부의 입력 클럭이 출력 클럭보다 빠른 경우, 상기 인코더부는 선입력된 픽셀 데이터에 동기 코드를 삽입하여 제1 데이터 버스 및 제2 데이터 버스 중 어느 하나를 통해 상기 직렬 데이터 변환부로 출력하며, 후입력된 픽셀 데이터는 동기 코드를 삽입하여 상기 제1 데이터 버스 및 상기 제2 데이터 버스 중 다른 하나를 통해 상기 직렬 데이터 변환부로 출력할 수 있다.When the input clock of the encoder is faster than the output clock, the encoder inserts a synchronization code into pre-input pixel data and outputs the serial data converter through one of a first data bus and a second data bus to the serial data converter. The pixel data may be inserted into a synchronization code and output to the serial data converter through another one of the first data bus and the second data bus.

상기 인코더부는 상기 동기 코드가 삽입된 픽셀 데이터를 버퍼에 일시적으로 저장한 후 미리 정해진 비트양만큼 기록되는 경우, m비트 단위로 제1 데이터 버스 및 제2 데이터 버스를 통해 각각 직렬 데이터 변환부로 출력할 수 있다.When the encoder unit temporarily stores the pixel data into which the sync code is inserted and then writes a predetermined bit amount, the encoder unit may output the serial data converter through the first data bus and the second data bus in units of m bits, respectively. Can be.

상기 데이터 출력부가 피사체에 상응하는 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 any one of a falling edge or a rising edge, and the second state is one of a falling edge or a rising edge. It may be another one.

상기 인코더부는 상기 수직 동기 신호(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 pressure 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.

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

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

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

본 발명의 다른 실시예에 따르면, 입력되는 n(임의의 자연수)비트의 직렬 데이터 스트림 및 동기화된 클럭 신호를 입력받아 m(임의의 자연수)비트의 병렬 데이터로 변환하고, 미리 설정된 동기 코드를 검출하여 상응하는 동기 신호를 생성하며, 상기 동기 코드가 제거된 병렬 데이터를 출력하는 제2 인터페이스부; 및 상기 제2 인터페이스부를 통해 상기 병렬 데이터 및 상기 동기 신호를 입력받아 미리 정해진 데이터 포맷으로 변환하는 프로세서를 포함하되, 상기 프로세서와 상기 제2 인터페이스부는 동일한 칩에 구비되는 것을 특징으로 하는 데이터 수신 장치가 제공될 수 있다.According to another embodiment of the present invention, an n (random natural number) bit serial data stream and a synchronized clock signal are input and converted into m (random natural number) bit parallel data, and a preset sync code is detected. 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 configured to shift the serial data stream by n bits to convert the serial data stream into m-bit parallel data, and to generate and output a clock signal synchronized with the parallel data; And a decoder configured to receive the parallel data and the clock signal, detect a sync code set in the parallel data using the clock signal, generate a corresponding sync code, and generate and output parallel data from which the sync code has been removed. It may include.

상기 병렬 데이터 변환부는 상기 병렬 데이터의 출력을 위한 복수의 데이터 버스 및 상기 클럭 신호의 출력을 위한 클럭 신호선을 통해 상기 디코더부와 연결될 수 있다.The parallel data converter may be connected to the decoder through a plurality of data buses for outputting the parallel data and a clock signal line for outputting the clock signal.

상기 병렬 데이터 변환부의 입력 클럭이 출력 클럭보다 빠른 경우, 상기 병렬 데이터 변환부는 선입력된 직렬 데이터 스트림을 병렬 데이터로 변환하여 제1 데이터 버스 및 제2 데이터 버스 중 어느 하나를 이용하여 상기 디코더부로 출력하고, 후입력된 직렬 데이터 스트림을 병렬 데이터로 변환한 후 제1 데이터 버스 및 제2 데이터 버스 중 다른 하나를 이용하여 상기 디코더부로 출력할 수 있다.When the input clock of the parallel data converter is faster than the output clock, the parallel data converter converts the pre-input serial data stream into parallel data and outputs the same to the decoder by using one of the first data bus and the second data bus. The converted serial data stream may be converted into parallel data and then output to the decoder using another one of the first data bus and the second data bus.

상기 병렬 데이터 변환부는 상기 병렬 데이터를 버퍼에 일시적으로 저장한 후 미리 정해진 비트량을 만족하는 경우, 상기 버퍼에 저장된 병렬 데이터를 m비트 단위씩 제1 데이터 버스 및 제2 데이터 버스를 통해 병렬 전송 방식으로 각각 디코더부로 출력할 수 있다.When the parallel data converter temporarily stores the parallel data in a buffer and satisfies a predetermined bit amount, the parallel data converter performs parallel transmission on the first data bus and the second data bus by m bits in parallel data stored in the buffer. Each can be output to the decoder.

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

본 발명의 또 다른 실시예에 따르면, m(임의의 자연수) 비트의 병렬 데이터를 n(임의의 자연수)비트의 직렬 데이터 스트림으로 변환하는 데이터 전송 장치; 및 상기 직렬 데이터 스트림을 입력받아 상기 병렬 데이터로 변환하는 데이터 수신 장치를 포함하되, 상기 데이터 전송 장치는, 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 numbers) 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 synchronization codes set according to the synchronization signals into parallel data, converting the serial data stream to the n-bit serial data, and outputting the serial data stream. And a first interface unit configured to generate and output a clock signal synchronized with a data stream, wherein the data receiving device receives the input n-bit serial data stream and the synchronized clock signal and converts the m-bit parallel data into parallel data. A second interface unit 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, there is provided a data transmission method capable of transmitting and receiving parallel data as serial data during data transmission between each chip.

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

상기 동기 신호들에 상응하여 설정한 동기 코드들을 상기 병렬 데이터에 삽입하여 출력하는 단계는, 동기 코드가 삽입된 병렬 데이터를 버퍼에 일시적으로 저 장하는 단계; 상기 버퍼에 미리 정해진 크기의 영역만큼 동기 코드가 삽입된 병렬 데이터들이 저장되었는지 여부를 판단하는 단계; 및 정해진 크기의 영역만큼 저장된 경우, 상기 저장된 동기 코드가 삽입된 병렬 데이터들을 상기 m비트 단위씩 제1 데이터 버스 및 제2 데이터 버스를 통해 상기 직렬 데이터 변환부로 출력하는 단계를 포함할 수 있다.Inserting and outputting sync codes set corresponding to the sync signals into the parallel data includes: temporarily storing parallel data having a sync code inserted into the buffer; Determining whether parallel data in which a sync code is inserted is stored in the buffer by an area having a predetermined size; And storing the parallel data into which the stored sync code is inserted to the serial data converter through the first data bus and the second data bus in units of m bits when the data is stored in an area having a predetermined size.

상기 데이터 출력부가 피사체에 상응하는 m비트의 픽셀 데이터 및 상응하는 동기 신호들을 출력하는 이미지 센서인 경우, 상기 동기 신호들은 상기 병렬 데이터의 획득을 위한 클럭 신호(PCLK), 각각의 프레임의 식별을 위한 수직 동기 신호(VSYNC) 및 각 프레임내의 라인의 식별을 위한 유효 데이터 인에이블 신호(HREF)일 수 있다.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. It may be a vertical synchronization signal VSYNC and a valid data enable signal HREF for identification of a line in each frame.

상기 동기 코드들이 삽입된 병렬 데이터를 출력하는 단계는, 상기 수직 동기 신호(VSYNC)가 제1 상태이면, 프레임의 시작에 상응하여 설정한 SOF(start of frame sync code)를 상기 병렬 데이터에 삽입하는 단계; 상기 수직 동기 신호가 제2 상태이면, 프레임의 종료에 상응하여 설정한 EOF(end of frame sync code)를 상기 병렬 데이터에 삽입하는 단계; 상기 유효 데이터 인에이블 신호(HREF)가 제3 상태이면, 라인의 시작에 상응하여 설정한 SOL(start of line sync code)를 상기 병렬 데이터에 삽입하는 단계; 및 상기 유효 데이터 인에이블 신호(HREF)가 제4 상태이면, 라인의 종료에 상응하여 설정한 EOL(end of line sync code)를 상기 병렬 데이터에 삽입하는 단계를 포함하되, 상기 제1 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 다른 하나이며, 상기 제3 상태는 상기 제1 상태 및 상기 제2 상태 중 어느 하나이며, 상기 제4 상태는 상기 제1 상태 및 상기 제2 상태 중 다른 하나일 수 있다.The outputting of the parallel data into which the sync codes are inserted may include inserting a start of frame sync code (SOF) set corresponding to the start of the frame into the parallel data when the vertical sync signal VSYNC is in the first state. step; If the vertical synchronization signal is in the second state, inserting an end of frame sync code (EOF) set corresponding to the end of the frame into the parallel data; If the valid data enable signal (HREF) is in a third state, inserting a start of line sync code (SOL) corresponding to the start of a line into the parallel data; And inserting an end of line sync code (EOL) set to the parallel data when the valid data enable signal HREF is in a fourth state, wherein the first state is polled. Either an edge or a rising edge, the second state is the other of a falling edge or a rising edge, and the third state is the first state and the rising edge. Any one of the second states, and the fourth state may be another one of the first state and the second state.

상기 직렬 데이터 스트림으로 변환하여 출력하는 단계는, 제3 데이터 신호선을 통해 상기 직렬 데이터 스트림의 홀수 위치의 비트값들을 출력하는 단계; 및 제4 데이터 신호선을 통해 상기 직렬 데이터 스트림의 짝수 위치의 비트값들을 출력하는 단계를 포함할 수 있다.Converting and outputting the serial data stream may include outputting bit values at odd positions of the serial data stream through a third data signal line; And outputting bit values of even positions of the serial data stream through a fourth data signal line.

제3 데이터 신호선을 통해 상기 직렬 데이터 스트림의 상위

Figure 112007031996560-PAT00006
비트의 비트값들을 출력하는 단계; 및 제4 데이터 신호선을 통해 상기 직렬 데이터 스트림의 하위
Figure 112007031996560-PAT00007
비트의 비트값들을 출력하는 단계를 포함할 수 있다.An upper portion of the serial data stream via a third data signal line
Figure 112007031996560-PAT00006
Outputting bit values of the bit; And a lower portion of the serial data stream via a fourth data signal line.
Figure 112007031996560-PAT00007
Outputting bit values of the bit.

본 발명의 다른 실시예에 따르면, m(임의의 자연수) 비트의 병렬 데이터를 획득하여 정해진 데이터 포맷으로 변환하는 프로세서와 동일한 칩에 구비된 제2 인터페이스부가 데이터를 수신하는 방법에 있어서, 입력받은 n(임의의 자연수) 비트의 직렬 데이터 스트림 및 동기화된 제1 클럭 신호로 변환하여 출력하는 단계; 상기 직렬 데이터 스트림을 상기 n비트씩 시프트시켜 상기 병렬 데이터를 생성하여 출력하며, 상기 병렬 데이터에 동기화된 제2 클럭 신호를 생성하여 출력하는 단계; 및 상기 제2 클럭 신호를 이용하여 상기 병렬 데이터에서 설정된 동기 코드들을 검 출하여 상응하는 동기 신호들을 생성하여 출력하며, 상기 동기 코드가 제거된 병렬 데이터를 출력하는 단계를 포함하는 데이터 수신 방법이 제공될 수 있다.According to another embodiment of the present invention, a method of receiving data in a second interface unit included in the same chip as a processor that acquires m (arbitrary natural number) of parallel data and converts it into a predetermined data format, the received n Converting and outputting a (random natural number) bit of the serial data stream and the synchronized first clock signal; Shifting the serial data stream by the n bits to generate and output the parallel data, and generating and outputting a second clock signal synchronized with the parallel data; And detecting sync codes set in the parallel data using the second clock signal to generate and output corresponding sync signals, and outputting parallel data from which the sync codes have been removed. Can be.

상기 n비트씩 시프트시켜 상기 병렬 데이터를 생성하여 출력하는 단계는, 상기 병렬 데이터를 버퍼에 일시적으로 저장하는 단계; 상기 버퍼의 미리 정해진 크기의 영역만큼 병렬 데이터들이 저장되었는지 여부를 판단하는 단계; 및 만일 소정의 영역에 저장되었다면, 상기 저장된 병렬 데이터들을 m비트 단위씩 제1 데이터 버스 및 제2 데이터 버스를 통해 디코더부로 출력하는 단계를 포함할 수 있다.The generating and outputting the parallel data by shifting the bits by n bits may include: temporarily storing the parallel data in a buffer; Determining whether parallel data are stored by an area of a predetermined size of the buffer; And if the data is stored in a predetermined area, outputting the stored parallel data to the decoder through the first data bus and the second data bus in units of m bits.

상기 병렬 데이터에서 설정된 동기 코드들을 검출하여 상응하는 동기 신호들을 생성하여 출력하는 단계는, 상기 병렬 데이터가 상기 SOF이면, 제1 상태로 변경된 수직 동기 신호(VSYNC) 및 제3 상태로 변경된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하는 단계; 상기 병렬 데이터가 상기 EOF이면, 제2 상태로 변경된 수직 동기 신호 및 제4 상태로 변경된 유효 데이터 인에이블 신호를 생성하여 출력하는 단계; 상기 병렬 데이터가 상기 SOL이면, 상기 제3 상태로 변경된 유효 데이터 인에이블 신호를 생성하여 출력하는 단계; 및 상기 병렬 데이터가 상기 EOL이면, 상기 제4 상태로 변경된 유효 데이터 인에이블 신호를 생성하여 출력하는 단계를 포함하되, 상기 제1 상태는 폴링 에지(falling edge) 및 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지 및 라이징 에지 중 다른 하나이며, 상기 제3 상태는 상기 제1 상태 및 상기 제2 상태 중 어느 하나이며, 상기 제4 상태는 상기 제1 상태 및 상기 제2 상태 중 다른 하나일 수 있다.Detecting the sync codes set in the parallel data and generating and outputting corresponding sync signals includes: when the parallel data is the SOF, the vertical sync signal VSYNC changed to a first state and valid data changed to a third state. Generating and outputting an enable signal HREF; Generating and outputting a vertical synchronization signal changed to a second state and a valid data enable signal changed to a fourth state if the parallel data is the EOF; Generating and outputting a valid data enable signal changed to the third state if the parallel data is the SOL; And generating and outputting a valid data enable signal changed to the fourth state if the parallel data is the EOL, wherein the first state includes any of a falling edge and a rising edge. The second state is one of a falling edge and a rising edge, the third state is any one of the first state and the second state, and the fourth state is the first state and the second state. It may be another one of the states.

상기 n비트씩 시프트시켜 상기 병렬 데이터를 생성하여 출력하는 단계는, 제 3 데이터 신호선 및 제4 데이터 신호선을 통해 n비트의 비트값을 각각 입력받는 단계; 및 상기 입력된 비트값을 미리 정해진 순서대로 각각 n비트씩 시프트시키고 머지하여 상기 병렬 데이터를 생성하여 출력하는 단계를 포함할 수 있다. The generating and outputting the parallel data by shifting the bits by n bits may include receiving n-bit bit values through a third data signal line and a fourth data signal line, respectively; And generating and outputting the parallel data by shifting and inputting each of the input bit values 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 an n-bit serial data and converts it into m-bit pixel data for processing. Can be done.

도 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 (ie, 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 the synchronization signals corresponding to the m-bit pixel data from the image sensor 210, converts them into an n-bit serial data stream, and generates a clock signal synchronized to the serial data stream. Perform the function of printing. 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.

다시 도 3을 참조하면, 인코더부(310)는 직렬 데이터 변환부(320)와 m비트의 데이터를 병렬로 전송할 수 있는 복수의 데이터 버스(예를 들어, 제1 데이터 버스(341), 제2 데이터 버스(342)) 및 클럭 신호를 전송하기 위한 제1 클럭 신호선(343)으로 연결된다.Referring back to FIG. 3, the encoder 310 may include a plurality of data buses (eg, a first data bus 341 and a second) capable of transmitting the serial data converter 320 and m-bit data in parallel. Data bus 342 and a first clock signal line 343 for transmitting a clock signal.

예를 들어, 인코더부(310)는 동기 코드를 삽입한 픽셀 데이터를 버퍼에 일시적으로 저장한 후 m비트 단위로 제1 데이터 버스(341) 및 제2 데이터 버스(342)를 통해 직렬 데이터 변환부(320)로 출력할 수 있다.For example, the encoder 310 temporarily stores pixel data into which a synchronization code is inserted, in a buffer, and then serial data converter through the first data bus 341 and the second data bus 342 in m-bit units. And output to 320.

또 다른 예를 들어, 인코더부(310)와 이미지 센서(210)의 클럭의 속도가 상이한 경우(즉, 이미지 센서(210)의 클럭의 속도가 인코더부(310)의 클럭 속도보다 빠른 경우), 이미지 센서(210)로부터 입력되는 픽셀 데이터는 인코더부(310)를 통해 출력되는 동기 코드를 삽입한 픽셀 데이터보다 빠르게 입력되게 된다. 즉, 이미지 센서(210)의 클럭의 속도가 인코더부(310)의 클럭의 속도보다 약 2배 정도 빠르다고 가정하자. 이와 같은 경우, 인코더부(310)가 이미지 센서(210)로부터 입력받는 픽셀 데이터와 인코더부(310)가 출력하는 동기 코드를 삽입한 픽셀 데이터간에는 2배 정도의 속도 차이가 발생하게 된다. 결과적으로, 인코더부(310)는 동기 코드를 삽입한 픽셀 데이터를 출력하는 것에 비해 이미지 센서(210)로부터 2배 정도 픽셀 데이터를 빠르게 입력받게 된다. 이와 같은 경우, 인코더부(310)는 이미지 센서(210)로부터 입력되는 픽셀 데이터와 인코더부(310)를 통해 출력되는 동기 코드 를 삽입한 픽셀 데이터간의 차이를 줄이기 위해, 복수의 데이터 버스(즉, 제1 데이터 버스(341), 제2 데이터 버스(342))를 이용하여 동기 코드를 삽입한 픽셀 데이터를 직렬 데이터 변환부(320)로 출력한다. 이를 통해, 인코더부(310)는 이미지 센서(210)로부터 입력되는 픽셀 데이터와 출력되는 동기 코드를 삽입한 픽셀 데이터간의 입출력 차이를 줄일 수 있게 된다.For another example, when the clock speeds of the encoder unit 310 and the image sensor 210 are different (that is, when the clock speed of the image sensor 210 is faster than the clock speed of the encoder unit 310), The pixel data input from the image sensor 210 is input faster than the pixel data into which the sync code output through the encoder 310 is inserted. That is, suppose that the clock speed of the image sensor 210 is about twice faster than the clock speed of the encoder 310. In this case, a speed difference of about twice occurs between the pixel data input from the image sensor 210 by the encoder 310 and the pixel data into which the sync code output from the encoder 310 is inserted. As a result, the encoder 310 receives the pixel data about twice as fast from the image sensor 210 as compared with outputting the pixel data into which the sync code is inserted. In this case, the encoder unit 310 may reduce the difference between the pixel data input from the image sensor 210 and the pixel data into which the sync code outputted through the encoder unit 310 is inserted. The pixel data into which the synchronization code is inserted is output to the serial data converter 320 using the first data bus 341 and the second data bus 342. Through this, the encoder 310 may reduce the input / output difference between the pixel data input from the image sensor 210 and the pixel data into which the synchronization code is output.

직렬 데이터 변환부(320)는 인코더부(310)로부터 입력되는 제1 클럭 신호를 이용하여 동기 코드를 삽입한 픽셀 데이터를 획득한 후 n(임의의 자연수)비트 단위의 직렬 데이터 스트림으로 변환하여 해당 직렬 데이터 스트림에 동기화된 클럭 신호(이하, 이해와 설명의 편의를 도모하기 위해 "제2 클럭 신호"라 칭하기로 함)와 함께 차등신호 출력부(330)로 출력하는 기능을 수행한다.The serial data converter 320 acquires pixel data into which a sync code is inserted using the first clock signal input from the encoder 310, and converts the serial data stream 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비트의 직렬 데이터 스트림 중 짝수 위치의 비트값은 제5 데이터 신호선(351)을 통해 출력하고, 홀수 위치의 비트값은 제6 데이터 신호선(352)을 통해 출력하도록 할 수 있다. 그리고, 직렬 데이터 변환부(320)는 인코더부(310)를 통해 입력된 제1 클럭 신호를 2분주한 제2 클럭 신호를 생성하여 제2 클럭 신호선(353)을 통해 차등신호 출력부(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 outputs even-numbered bit values of the n-bit serial data stream through the fifth data signal line 351, and odd-numbered bit values of the n-bit serial data stream through the sixth data signal line 352. You can output it. In addition, the serial data converter 320 may generate a second clock signal obtained by dividing the first clock signal input through the encoder 310 into the second clock signal line 353 to generate the second clock signal 330. Can be printed as

만일 직렬 데이터 변환부(320)가 m비트의 동기 코드가 삽입된 픽셀 데이터를 2비트씩 시프트시켜 2비트의 직렬 데이터 스트림을 생성한다고 가정하자. 그러면, 직렬 데이터 변환부(320)는 제1 비트값은 제5 데이터 신호선(351)을 통해 출력하며, 제2 비트값은 제2 데이터 신호선(352)을 통해 차등신호 출력부(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 outputs the first bit value through the fifth data signal line 351 and the second bit value through the second data signal line 352 to the differential signal output unit 330. can do.

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

Figure 112007031996560-PAT00008
비트씩 시프트시켜 상위
Figure 112007031996560-PAT00009
비트값들은 제5 데이터 신호선(351)을 통해 차등신호 출력부(330)로 출력하고, 하위
Figure 112007031996560-PAT00010
비트값들은 제6 데이터 신호선(352)을 통해 차등신호 출력부(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 112007031996560-PAT00008
Shift bit by bit
Figure 112007031996560-PAT00009
The bit values are output to the differential signal output unit 330 through the fifth data signal line 351, and
Figure 112007031996560-PAT00010
The bit values may be output to the differential signal output unit 330 through the sixth data signal line 352. 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)는 제5 데이터 신호선(351), 제6 데이터 신호선(352) 및 제2 클럭 신호선(353)을 통해 직렬 데이터 변환부(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 fifth data signal line 351, a sixth data signal line 352, and a second clock signal line 353. . The differential signal output unit 330 converts the LVCMOS / LVTTL level serial data stream and the second clock signal input through the serial data converter 320 into low voltage differential signaling (LVDS). Performs a function of outputting to the processor unit 204. 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.

본 명세서에서는 차등신호 출력부(330)에 의해 출력되는 저압차등신호가 75mV인 것을 가정하여 이를 중점으로 설명하였으나 구현 방법에 따라 150mV, 300mV 등으로 구현될 수도 있음은 당연하다.In the present specification, the low-pressure differential signal output by the differential signal output unit 330 is assumed to be 75mV, which has been described with emphasis on this.

즉, 차등신호 출력부(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.

도 10은 본 발명의 일 실시예에 따른 제2 인터페이스부의 내부 기능 블록을 예시한 도면이다. 이하에서 설명되는 제2 인터페이스부(330)는 프로세서부(204)의 일 구성 요소로써, 센서부(202)를 통해 입력되는 직렬 데이터 스트림을 입력받아 병렬 데이터로 변환하여 출력하는 기능을 수행한다. 10 is a diagram illustrating an internal functional block of a second interface unit according to an embodiment of the present invention. The second interface unit 330 described below 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.

도 10에 도시된 바와 같이, 제2 인터페이스부(230)는 차등신호 입력부(1010), 병렬 데이터 변환부(1020) 및 디코더부(1030)를 포함하여 구성된다.As illustrated in FIG. 10, 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)로 출력하는 기능을 수행한다. 여기서, 저압차등신호는 전술한 바와 같이, 75mV일 수도 있으며, 구현 방법에 따라 150mV, 300mV 등으로 구현될 수도 있음은 당연하다.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. . Here, as described above, the low pressure differential signal may be 75mV, or may be implemented in 150mV, 300mV, etc. depending on the implementation method.

차등신호 입력부(1010)는 직렬 데이터 스트림을 출력하기 위한 복수의 데이 터 신호선(제7 데이터 신호선(1041), 제8 데이터 신호선(1042))과 제2 클럭 신호를 출력하기 위한 제3 클럭 신호선(1043)을 통해 병렬 데이터 변환부(1020)와 연결된다.The differential signal input unit 1010 includes a plurality of data signal lines (seventh data signal line 1041 and an eighth data signal line 1042) for outputting a serial data stream and a third clock signal line for outputting a second clock signal ( 1043 is connected to the parallel data converter 1020.

예를 들어, 차등신호 입력부(1010)는 직렬 데이터 스트림의 홀수 위치의 비트값들을 제7 데이터 신호선(1041)을 통해 병렬 데이터 변환부(1020)로 출력하며, 직렬 데이터 스트림의 짝수 위치의 비트값들은 제8 데이터 신호선(1042)을 통해 병렬 데이터 변환부(1020)로 출력할 수 있다. 그리고, 차등신호 입력부(1010)는 제2 클럭 신호를 제3 클럭 신호선을 통해 병렬 데이터 변환부(1020)로 출력할 수 있다.For example, the differential signal input unit 1010 outputs bit values at odd positions of the serial data stream to the parallel data converter 1020 through the seventh data signal line 1041 and bit values at even positions of the serial data stream. They may be output to the parallel data converter 1020 through the eighth data signal line 1042. The differential signal input unit 1010 may output the second clock signal to the parallel data converter 1020 through the third clock signal line.

또 다른 예를 들어, 차등신호 입력부(1010)가 센서부(202)로부터 미리 정해진 k(n보다 크고 m보다 작은 자연수)비트에 상응하는 직렬 데이터 스트림을 각각 제1 데이터 신호선 및 제2 데이터 신호선을 통해 입력받는다고 가정하자. 이와 같은 경우 차등신호 입력부(1010)는 센서부(202)로부터 저압차등신호로 입력되는 k비트의 직렬 데이터 스트림을 입력받아 제7 데이터 신호선(1041)을 통해 병렬 데이터 변환부(1020)로 출력한다. 그리고, 차등신호 입력부(1010)는 k비트의 다른 직렬 데이터 스트림은 제8 데이터 신호선(1042)을 통해 병렬 데이터 변환부(1020)로 출력할 수 있다.As another example, the differential signal input unit 1010 receives a serial data stream corresponding to a predetermined k (natural number greater than n and less than m) bits from the sensor unit 202, respectively, using the first data signal line and the second data signal line. Suppose we receive input via In this case, the differential signal input unit 1010 receives a k-bit serial data stream input as a low pressure differential signal from the sensor unit 202 and outputs it to the parallel data converter 1020 through the seventh data signal line 1041. . The differential signal input unit 1010 may output another k-bit serial data stream to the parallel data converter 1020 through the eighth data signal line 1042.

예를 들어, 차등신호 입력부(1010)가 센서부(202)로부터

Figure 112007031996560-PAT00011
비트에 상응하는 직렬 데이터 스트림을 제1 데이터 신호선 및 제2 데이터 신호선을 통해 각각 입력 받는 다고 가정하자. 차등신호 입력부(1010)는 상위
Figure 112007031996560-PAT00012
비트의 직렬 데이터 스트림은 제7 데이터 신호선(1041)을 통해 병렬 데이터 변환부(1020)로 출력하며, 하위
Figure 112007031996560-PAT00013
비트의 직렬 데이터 스트림은 제8 데이터 신호선(1042)을 통해 병렬 데이터 변환부(1020)로 출력할 수 있다.For example, the differential signal input unit 1010 may be moved from the sensor unit 202.
Figure 112007031996560-PAT00011
Assume that a serial data stream corresponding to a bit is input through a first data signal line and a second data signal line, respectively. Differential signal input unit 1010 is higher
Figure 112007031996560-PAT00012
The serial data stream of bits is output to the parallel data converter 1020 through the seventh data signal line 1041, and
Figure 112007031996560-PAT00013
The serial data stream of bits may be output to the parallel data converter 1020 through the eighth data signal line 1042.

병렬 데이터 변환부(1020)는 데이터 출력을 위한 복수의 데이터 버스(예를 들어, 제3 데이터 버스(1051), 제4 데이터 버스(1052)) 및 클럭 신호의 출력을 위한 제4 클럭 신호선(1053)을 통해 디코더부(1030)와 연결된다.The parallel data converter 1020 may include a plurality of data buses (eg, a third data bus 1051 and a fourth data bus 1052) for outputting data and a fourth clock signal line 1053 for outputting a clock signal. It is connected to the decoder unit 1030 through.

병렬 데이터 변환부(1020)는 차등신호 입력부(1010)로부터 제3 클럭 신호선(1043)을 통해 제2 클럭 신호를 입력받으며, 제5 데이터 신호선(1041) 및 제6 데이터 신호선(1042)을 통해 각각 직렬 데이터 스트림을 입력받는다. 그리고, 병렬 데이터 변환부(1020)는 제2 클럭 신호를 이용하여 제5 데이터 신호선(1041) 및 제6 데이터 신호선(1042)를 통해 각각 입력되는 직렬 데이터 스트림을 획득하여 미리 정해진 방법에 따라 병합(merge)하여 m비트의 병렬 데이터를 생성한다. 그리고, 병렬 데이터 변환부(1020)는 정해진 방법에 따라 제3 데이터 버스(1051) 및 제4 데이터 버스(1052)를 통해 m비트의 병렬 데이터를 디코더부(1030)로 출력한다. 그리고, 병렬 데이터 변환부(1020)는 생성된 병렬 데이터에 동기화된 클럭 신호(예를 들어, 제3 클럭 신호)를 생성하여 제4 클럭 신호선(1053)을 통해 디코더부(1030)로 출력한다.The parallel data converter 1020 receives the second clock signal from the differential signal input unit 1010 through the third clock signal line 1043, and through the fifth data signal line 1041 and the sixth data signal line 1042, respectively. Receive a serial data stream. The parallel data converter 1020 acquires serial data streams respectively input through the fifth data signal line 1041 and the sixth data signal line 1042 using the second clock signal, and merges them according to a predetermined method. merge) to generate m-bit parallel data. The parallel data converter 1020 outputs m-bit parallel data to the decoder unit 1030 through the third data bus 1051 and the fourth data bus 1052 according to a predetermined method. The parallel data converter 1020 generates a clock signal (for example, a third clock signal) synchronized to the generated parallel data and outputs the clock signal to the decoder 1030 through the fourth clock signal line 1053.

예를 들어, 병렬 데이터 변환부(1020)는 생성된 m비트의 병렬 데이터를 버퍼(미도시)에 일시적으로 저장할 수 있다. 그리고, 버퍼에 데이터가 모두 기록되는 경우, 병렬 데이터 변환부(1020)는 제3 데이터 버스(1051) 및 제4 데이터 버스(1052)를 통해 디코더부(1030)로 출력할 수 있다. For example, the parallel data converter 1020 may temporarily store the generated m-bit parallel data in a buffer (not shown). When all data is written to the buffer, the parallel data converter 1020 may output the data to the decoder 1030 through the third data bus 1051 and the fourth data bus 1052.

또 다른 예를 들어, 병렬 데이터 변환부(1020)와 디코더부(1030)의 각각의 클럭의 속도는 상이할 수 있다. 즉, 디코더부(1030)가 데이터를 출력하는 속도가 데이터를 입력받는 속도보다 빠른 경우 데이터를 입력받는 속도와 데이터를 출력하는 속도간에 차이가 발생하게 된다. 따라서, 디코더부(1030)는 복수의 데이터 버스(즉, 제3 데이터 버스(1051), 제4 데이터 버스(1052))를 통해 데이터를 입력받아 처리한 후 픽셀 데이터를 생성하여 이미지 시그널 프로세서(240)로 전송할 수 있다. For another example, the speeds of the clocks of the parallel data converter 1020 and the decoder 1030 may be different. That is, when the speed at which the decoder 1030 outputs data is faster than the speed at which data is input, a difference occurs between the speed at which data is input and the speed at which data is output. Accordingly, the decoder 1030 receives and processes data through a plurality of data buses (that is, the third data bus 1051 and the fourth data bus 1052), and then generates pixel data to generate image data processor 240. ) Can be sent.

디코더부(1030)는 병렬 데이터 변환부(1020)로부터 입력된 제3 클럭 신호를 이용하여 각각의 데이터 버스(즉, 제3 데이터 버스(1051), 제4 데이터 버스(1052))를 통해 각각 입력되는 병렬 데이터를 획득하여 해당 획득된 병렬 데이터에 미리 설정된 동기 코드들을 검출한 후 해당 동기 코드에 상응하는 동기 신호들(예를 들어, 수직 동기 신호(VSYNC), 유효 데이터 인에이블 신호(HREF))을 생성하여 이미지 시그널 프로세서(240)로 출력한다. 그리고, 디코더부(1030)는 제3 클럭 신호에 상응하여 획득된 병렬 데이터가 미리 설정된 동기 코드와 일치되지 않은 경우, 해당 병렬 데이터를 픽셀 데이터로써 이미지 시그널 프로세서(240)로 출력한다.The decoder unit 1030 inputs each of the data buses (ie, the third data bus 1051 and the fourth data bus 1052) by using the third clock signal input from the parallel data converter 1020. After the parallel data is acquired, the synchronization codes preset to the obtained parallel data are detected, and the synchronization signals corresponding to the synchronization code (for example, the vertical synchronization signal VSYNC and the valid data enable signal HREF) are obtained. To generate and output to the image signal processor (240). If the parallel data acquired corresponding to the third clock signal does not match the preset synchronization code, the decoder 1030 outputs the parallel data as pixel data to the image signal processor 240.

예를 들어, 디코더부(1030)는 제3 클럭 신호에 상응하여 획득된 병렬 데이터 가 SOF이면, 제1 상태로 상태 천이된 수직 동기 신호(VSYNC)를 생성하여 이미지 시그널 프로세서(240)로 출력한다. 그리고, 디코더부(1030)는 제2 상태로 상태 천이된 유효 데이터 인에이블 신호(HREF)를 생성하여 이미지 시그널 프로세서(240)로 출력할 수 있다. 여기서, 제1 상태 및 제2 상태는 전술한 바와 같이, 폴링 에지(falling edge) 또는 라이징 에지(rising edge) 중 어느 하나 일 수 있다. 그리고, 디코더부(1030)는 획득된 병렬 데이터는 해당 동기 신호들의 상태 천이를 지시하기 위한 동기 코드이므로 픽셀 데이터로써 출력하지 않는다.For example, if the parallel data acquired in response to the third clock signal is SOF, the decoder 1030 generates a vertical synchronization signal VSYNC which is in state transition to the first state, and outputs the generated vertical synchronization signal VSYNC to the image signal processor 240. . The decoder 1030 may generate the valid data enable signal HREF transitioned to the second state and output the valid data enable signal HREF to the image signal processor 240. Here, the first state and the second state may be either a falling edge or a rising edge as described above. The decoder 1030 does not output the obtained parallel data as pixel data since the obtained parallel data is a synchronization code for indicating a state transition of corresponding synchronization signals.

또한, 획득된 병렬 데이터가 SOL이면, 디코더부(1030)는 각 프레임의 각 라인의 시작(즉, 유효 구간의 시작)을 지시하기 위해 제2 상태로 상태 천이된 유효 데이터 인에이블 신호(HREF)를 생성하여 이미지 시그널 프로세서(240)로 출력한다. 그리고, 획득된 병렬 데이터가 EOL이면, 해당 유효 구간의 종료를 지시하기 위해 제1 상태로 상태 천이한 유효 데이터 인에이블 신호(HREF)를 생성하여 이미지 시그널 프로세서(240)로 출력한다. In addition, if the obtained parallel data is SOL, the decoder unit 1030, the valid data enable signal (HREF) transitioned to the second state to indicate the start of each line of each frame (that is, the start of the valid period) Generates and outputs the image signal to the processor 240. If the obtained parallel data is EOL, the valid data enable signal HREF which is in a state transition to the first state is generated and output to the image signal processor 240 to indicate the end of the valid period.

또한, 획득된 병렬 데이터가 EOF이면, 디코더부(1030)는 해당 프레임의 종료를 알리기 위해 제2 상태로 상태 천이한 수직 동기 신호(VSYNC)를 생성하여 이미지 시그널 프로세서(240)로 출력한다. In addition, if the acquired parallel data is EOF, the decoder 1030 generates a vertical synchronization signal VSYNC which has transitioned to a second state to notify the end of the frame, and outputs the generated vertical synchronization signal VSYNC to the image signal processor 240.

그리고, 디코더부(1030)는 이와 같이, 획득된 병렬 데이터가 미리 설정한 동기 코드와 일치하는 경우, 해당 획득된 병렬 데이터는 동기 신호들을 생성하기 위한 동기 코드이므로, 픽셀 데이터로써 이미지 시그널 프로세서(240)로 출력하지 않는다.When the obtained parallel data matches the preset synchronization code, the decoder unit 1030 may obtain the image signal processor 240 as pixel data since the obtained parallel data is a synchronization code for generating synchronization signals. Do not print

반면에, 획득된 병렬 데이터가 SOF, SOL, EOL, EOF 중 어느 하나가 아닌 경우(즉, 획득된 병렬 데이터가 미리 설정한 동기 코드와 일치하지 않는 경우), 디코더부(1030)는 해당 획득된 병렬 데이터를 픽셀 데이터로써 이미지 시그널 프로세서(240)로 출력한다.On the other hand, if the obtained parallel data is not one of SOF, SOL, EOL, and EOF (that is, the obtained parallel data does not match the preset sync code), the decoder unit 1030 obtains the corresponding acquired data. Parallel data is output to the image signal processor 240 as pixel data.

이로 인해, 이미지 시그널 프로세서(240)는 센서부(202)로부터 직렬 데이터 스트림의 형식으로 입력되는 픽셀 데이터를 입력받아 정해진 영상 데이터 포맷으로 변환할 수 있다.Accordingly, the image signal processor 240 may receive pixel data input from the sensor unit 202 in the form of a 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 in 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 (eg, a clock signal PCLK, a vertical synchronization signal VSYNC), and valid data synchronized with the corresponding pixel data. The 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.

전술한 바와 같이, 인코더부(310)는 이미지 센서(210)로부터 입력되는 픽셀 데이터에 미리 설정한 동기 코드를 삽입한 픽셀 데이터를 m비트 단위로 제1 데이터 버스(341) 및 제2 데이터 버스(342)를 통해 직렬 데이터 변환부(320)로 출력할 수 있다. As described above, the encoder unit 310 uses the first data bus 341 and the second data bus (in the m-bit unit) to insert pixel data in which a preset synchronization code is inserted into the pixel data input from the image sensor 210. The output may be output to the serial data converter 320 through 342.

예를 들어, 수직 동기 신호(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 an SOL. When the valid data enable signal HREF is changed to the first state, the encoder unit 220 is inserted. ) 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 clock. A third clock signal divided by two signals 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 112007031996560-PAT00014
비트씩 시프트시켜 상위
Figure 112007031996560-PAT00015
비트의 비트값들은 제1 데이터 신호선을 통해 출력하며, 하위
Figure 112007031996560-PAT00016
비트의 비트값들은 제2 데이터 신호선을 통해 출력하도록 할 수도 있다.As another example, the serial data converter 320 may convert m-bit pixel data.
Figure 112007031996560-PAT00014
Shift bit by bit
Figure 112007031996560-PAT00015
Bit values of the bit are output through the first data signal line,
Figure 112007031996560-PAT00016
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 operation 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 m-bit parallel data to generate a decoder. Output to the unit 1030.

여기서, 병렬 데이터 변환부(1020)는 전술한 바와 같이, 복수의 데이터 버스(즉, 제3 데이터 버스(1051) 및 제4 데이터 버스(1052))를 통해 m비트의 병렬 데이터를 디코더부(1030)로 출력할 수 있다.As described above, the parallel data converter 1020 receives the m-bit parallel data through a plurality of data buses (that is, the third data bus 1051 and the fourth data bus 1052). Can be printed as

예를 들어, 직렬 데이터 스트림이 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.

만일 미리 정해진 동기 코드들 중 어느 하나와 일치하는 경우, 단계 1425에서 디코더부(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 1425 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 interface, an apparatus, and a method for data transmission, the m-bit parallel data is converted into an n-bit serial data stream and then transmitted using a low differential pressure signal to transmit data using a bandwidth. ) Can be expanded 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 (32)

m(임의의 자연수) 비트의 병렬 데이터 및 동기화된 동기 신호들을 출력하는 데이터 출력부; 및a data output unit for outputting parallel data of m (any natural number) bits and synchronized synchronization signals; And 상기 데이터 출력부로부터 상기 병렬 데이터 및 상기 동기 신호들을 입력받고, 상기 동기 신호에 상응하여 설정한 동기 코드들을 병렬 데이터에 삽입하여 n(임의의 자연수)비트의 직렬 데이터 스트림으로 변환하며, 상기 변환된 직렬 데이터 스트림에 동기화된 클럭 신호를 생성하는 제1 인터페이스부를 포함하되,The parallel data and the synchronization signals are input from the data output unit, and the synchronization codes set corresponding to the synchronization signals are inserted into the parallel data, and converted into a serial data stream of n (arbitrary natural numbers) bits. A first interface portion for generating 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 inserting and outputting the sync code into the parallel data, and generating and outputting a 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 conversion unit. 제 2항에 있어서,The method of claim 2, 상기 인코더부는 상기 동기 코드가 삽입된 병렬 데이터를 출력하기 위한 복수의 데이터 버스 및 상기 제1 클럭 신호를 출력하기 위한 제1 클럭 신호선을 통해 상기 직렬 데이터 변환부와 연결되는 것을 특징으로 하는 데이터 전송 장치.And the encoder unit is connected to the serial data converter through a plurality of data buses for outputting parallel data into which the synchronization code is inserted and a first clock signal line for outputting the first clock signal. . 제 3항에 있어서,The method of claim 3, wherein 상기 인코더부의 입력 클럭이 출력 클럭보다 빠른 경우, 상기 인코더부는 선입력된 픽셀 데이터에 동기 코드를 삽입하여 제1 데이터 버스 및 제2 데이터 버스 중 어느 하나를 통해 상기 직렬 데이터 변환부로 출력하며, 후입력된 픽셀 데이터는 동기 코드를 삽입하여 상기 제1 데이터 버스 및 상기 제2 데이터 버스 중 다른 하나를 통해 상기 직렬 데이터 변환부로 출력하는 것을 특징으로 하는 데이터 전송 장치.When the input clock of the encoder is faster than the output clock, the encoder inserts a synchronization code into pre-input pixel data and outputs the serial data converter through one of a first data bus and a second data bus to the serial data converter. And outputting the converted pixel data to the serial data converter through another one of the first data bus and the second data bus by inserting a sync code. 제 4항에 있어서,The method of claim 4, wherein 상기 인코더부는 상기 동기 코드가 삽입된 픽셀 데이터를 버퍼에 일시적으로 저장한 후 미리 정해진 비트양만큼 기록되는 경우, m비트 단위로 제1 데이터 버스 및 제2 데이터 버스를 통해 각각 직렬 데이터 변환부로 출력하는 것을 특징으로 하는 데이터 전송 장치.When the encoder unit temporarily stores the pixel data into which the sync code is inserted in the buffer and then writes a predetermined bit amount, the encoder unit outputs the serial data converter through the first data bus and the second data bus in units of m bits, respectively. A data transmission device, characterized in that. 제 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. 제 6항에 있어서,The method of claim 6, 상기 인코더부는 상기 수직 동기 신호(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 pressure 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. 제 8항에 있어서,The method of claim 8, 상기 직렬 데이터 변환부는 상기 직렬 데이터 스트림의 홀수 위치의 비트값 은 제3 데이터 신호선을 통해 출력하며, 상기 짝수 위치의 비트값은 제4 데이터 신호선을 통해 상기 차등신호 출력부로 출력하는 것을 특징으로 하는 데이터 전송 장치.The serial data converter outputs bit values at odd positions of the serial data stream through a third data signal line, and outputs bit values at even positions to the differential signal output unit through a fourth data signal line. Transmission device. 제 8항에 있어서,The method of claim 8, 상기 직렬 데이터 변환부는 상기 동기 코드가 삽입된 픽셀 데이터를
Figure 112007031996560-PAT00017
비트씩 시프트시켜 상위
Figure 112007031996560-PAT00018
비트의 직렬 데이터 스트림은 제3 데이터 신호선을 통해 출력하며, 하위
Figure 112007031996560-PAT00019
비트의 직렬 데이터 스트림은 제4 데이터 신호선을 통해 상기 차등신호 출력부로 출력하는 것을 특징으로 하는 데이터 전송 장치.
The serial data converter may convert pixel data into which the sync code is inserted.
Figure 112007031996560-PAT00017
Shift bit by bit
Figure 112007031996560-PAT00018
The serial data stream of bits is output via the third data signal line,
Figure 112007031996560-PAT00019
And a serial data stream of bits is output to the differential signal output section through a fourth 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, detects a preset synchronous code, and generates a corresponding synchronous 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. 상기 프로세서와 상기 제2 인터페이스부는 동일한 칩에 구비되는 것을 특징으로 하는 데이터 수신 장치.And the processor and the second interface unit are provided on the same chip. 제 11항에 있어서,The method of claim 11, 상기 제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 to the m bits of parallel data, and generating and outputting a clock signal synchronized with the parallel data; And 상기 병렬 데이터 및 상기 클럭 신호를 입력받고, 상기 클럭 신호를 이용하여 상기 병렬 데이터에서 설정된 동기 코드를 검출하여 상응하는 동기 코드를 생성하며, 상기 동기 코드를 제거한 병렬 데이터를 생성하여 출력하는 디코더부를 포함하는 것을 특징으로 하는 데이터 수신 장치.The decoder receives the parallel data and the clock signal, detects a sync code set in the parallel data using the clock signal, generates a corresponding sync code, and generates and outputs parallel data from which the sync code has been removed. Data receiving apparatus, characterized in that. 제 12항에 있어서,The method of claim 12, 상기 병렬 데이터 변환부는 상기 병렬 데이터의 출력을 위한 복수의 데이터 버스 및 상기 클럭 신호의 출력을 위한 클럭 신호선을 통해 상기 디코더부와 연결되는 것을 특징으로 하는 데이터 수신 장치.And the parallel data converter is connected to the decoder through a plurality of data buses for outputting the parallel data and a clock signal line for outputting the clock signal. 제 13항에 있어서,The method of claim 13, 상기 병렬 데이터 변환부의 입력 클럭이 출력 클럭보다 빠른 경우, 상기 병렬 데이터 변환부는 선입력된 직렬 데이터 스트림을 병렬 데이터로 변환하여 제1 데이터 버스 및 제2 데이터 버스 중 어느 하나를 이용하여 상기 디코더부로 출력하고, 후입력된 직렬 데이터 스트림을 병렬 데이터로 변환한 후 제1 데이터 버스 및 제2 데이터 버스 중 다른 하나를 이용하여 상기 디코더부로 출력하는 것을 특징으로 하는 데이터 수신 장치.When the input clock of the parallel data converter is faster than the output clock, the parallel data converter converts the pre-input serial data stream into parallel data and outputs the same to the decoder by using one of the first data bus and the second data bus. And converting a post-input serial data stream into parallel data and outputting the serial data stream to the decoder by using another one of a first data bus and a second data bus. 제 13항에 있어서,The method of claim 13, 상기 병렬 데이터 변환부는 상기 병렬 데이터를 버퍼에 일시적으로 저장한 후 미리 정해진 비트량을 만족하는 경우, 상기 버퍼에 저장된 병렬 데이터를 m비트 단위씩 제1 데이터 버스 및 제2 데이터 버스를 통해 병렬 전송 방식으로 각각 디코더부로 출력하는 것을 특징으로 하는 데이터 수신 장치.When the parallel data converter temporarily stores the parallel data in a buffer and satisfies a predetermined bit amount, the parallel data converter performs parallel transmission on the first data bus and the second data bus by m bits in parallel data stored in the buffer. And data output to the decoders, respectively. 제 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 a vertical synchronizing signal VSYNC changed to a second state when the converted parallel data is EOF. To generate 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. 제 16항에 있어서,The method of claim 16, 상기 디코더부는 상기 변환된 병렬 데이터가 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. 제 12항에 있어서,The method of claim 12, 상기 저압차등신호를 입력받아 상기 직렬 데이터 스트림으로 변환하여 출력하는 차등신호 입력부를 더 포함하되, 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. 제 18항에 있어서,The method of claim 18, 상기 직렬 데이터 변환부는 제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. 제 18항에 있어서,The method of claim 18, 상기 직렬 데이터 변환부는 제1 데이터 신호선을 통해 상기 직렬 데이터 스트림의 상위
Figure 112007031996560-PAT00020
비트의 비트값들을 입력받고, 제2 데이터 신호선을 통해 상기 직렬 데이터 스트림의 하위
Figure 112007031996560-PAT00021
비트의 비트값들을 입력받아 상기 병렬 데이터로 변환하는 것을 특징으로 하는 데이터 수신 장치.
The serial data converter is higher than the serial data stream through a first data signal line.
Figure 112007031996560-PAT00020
Receive bit values of a bit, and subordinate the serial data stream through a second data signal line
Figure 112007031996560-PAT00021
And receiving bit values of a bit into the parallel data.
m(임의의 자연수) 비트의 병렬 데이터를 n(임의의 자연수)비트의 직렬 데이터 스트림으로 변환하는 데이터 전송 장치; 및a data transmission device for converting parallel data of m (any natural number) bits into a serial data stream of n (any natural number) 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 synchronization codes set corresponding to the synchronization signals into the parallel data, converting the serial data stream into the n-bit serial data, and outputting the serial data; A first interface unit generating and outputting a clock signal synchronized with the stream; 상기 데이터 수신 장치는, The data receiving device, 입력되는 상기 n 비트의 직렬 데이터 스트림 및 동기화된 클럭 신호를 입력받아 상기 m 비트의 병렬 데이터로 변환하고, 미리 설정된 동기 코드를 검출하여 상응하는 동기 신호를 생성하며, 상기 동기 코드가 제거된 병렬 데이터를 출력하는 제2 인터페이스부; 및Receives the n-bit serial data stream and the synchronized clock signal and converts them into the m-bit parallel data, detects a preset sync code to generate a corresponding sync signal, and removes the sync code. A second interface unit for outputting a; 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. 제 21항에 있어서,The method of claim 21, 상기 센서 또는 상기 프로세서 중 어느 하나인 상기 데이터 출력부와 상기 제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 인터페이스부가 데이터를 전송하는 방법에 있어서,In the method for transmitting data in the first interface unit provided on the same chip as the data output unit which is either a sensor or a processor, 인코더부가 상기 데이터 출력부로부터 m(임의의 자연수)비트의 병렬 데이터 및 동기화된 동기 신호들을 입력받는 단계;Receiving, by the encoder, m (arbitrary natural numbers) of parallel data and synchronized synchronization signals from the data output unit; 상기 인코더부가 상기 동기 신호들에 상응하여 설정한 동기 코드들을 상기 병렬 데이터에 삽입하여 출력하며, 상기 동기 코드들이 삽입된 병렬 데이터에 동기화된 제1 클럭 신호를 생성하여 출력하는 단계; 및Inserting and outputting, by the encoder, synchronization codes set corresponding to the synchronization signals into the parallel data, and generating and outputting a first clock signal synchronized with the parallel data into which the synchronization codes are inserted; And 직렬 데이터 변환부가 상기 동기 코드가 삽입된 병렬 데이터를 n(임의의 자연수)비트씩 시프트(shift)시켜 직렬 데이터 스트림으로 변환하여 출력하며, 상기 직렬 데이터 스트림에 동기화된 제2 클럭 신호를 생성하여 출력하는 단계를 포함하는 데이터 전송 방법The serial data converter shifts the parallel data into which the synchronization code is inserted and converts the data into a serial data stream by n bits (random natural numbers), and generates and outputs a second clock signal synchronized with the serial data stream. Data transmission method comprising the step of 제 23항에 있어서,The method of claim 23, wherein 상기 동기 신호들에 상응하여 설정한 동기 코드들을 상기 병렬 데이터에 삽입하여 출력하는 단계는, Inserting and outputting the synchronization codes set corresponding to the synchronization signals into the parallel data, 동기 코드가 삽입된 병렬 데이터를 버퍼에 일시적으로 저장하는 단계;Temporarily storing parallel data having a synchronization code inserted in the buffer; 상기 버퍼에 미리 정해진 크기의 영역만큼 동기 코드가 삽입된 병렬 데이터들이 저장되었는지 여부를 판단하는 단계; 및Determining whether parallel data in which a sync code is inserted is stored in the buffer by an area having a predetermined size; And 정해진 크기의 영역만큼 저장된 경우, 상기 저장된 동기 코드가 삽입된 병렬 데이터들을 상기 m비트 단위씩 제1 데이터 버스 및 제2 데이터 버스를 통해 상기 직렬 데이터 변환부로 출력하는 단계를 포함하는 것을 특징으로 하는 데이터 전송 방법.Outputting the parallel data into which the stored synchronization code is inserted to the serial data converter through the first data bus and the second data bus in units of m bits when the data is stored in a predetermined sized area. Transmission method. 제 24항에 있어서,The method of claim 24, 상기 데이터 출력부가 피사체에 상응하는 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 sync signals are a clock signal PCLK for acquiring the parallel data, a vertical sync signal VSYNC for identification of each frame, and a valid data enable signal HREF for identification of a line in each frame. The data transmission method. 제 25항에 있어서,The method of claim 25, 상기 동기 코드들이 삽입된 병렬 데이터를 출력하는 단계는,Outputting parallel data into which the sync codes are inserted may include: 상기 수직 동기 신호(VSYNC)가 제1 상태이면, 프레임의 시작에 상응하여 설정한 SOF(start of frame sync code)를 상기 병렬 데이터에 삽입하는 단계;Inserting a start of frame sync code (SOF) set to the parallel data when the vertical synchronization signal VSYNC is in a first state; 상기 수직 동기 신호가 제2 상태이면, 프레임의 종료에 상응하여 설정한 EOF(end of frame sync code)를 상기 병렬 데이터에 삽입하는 단계;If the vertical synchronization signal is in the second state, inserting an end of frame sync code (EOF) set corresponding to the end of the frame into the parallel data; 상기 유효 데이터 인에이블 신호(HREF)가 제3 상태이면, 라인의 시작에 상응하여 설정한 SOL(start of line sync code)를 상기 병렬 데이터에 삽입하는 단계; 및If the valid data enable signal (HREF) is in a third state, inserting a start of line sync code (SOL) corresponding to the start of a line into the parallel data; And 상기 유효 데이터 인에이블 신호(HREF)가 제4 상태이면, 라인의 종료에 상응하여 설정한 EOL(end of line sync code)를 상기 병렬 데이터에 삽입하는 단계를 포함하되,If the valid data enable signal HREF is in a fourth state, inserting an end of line sync code (EOL) set to correspond to the end of a line into the parallel 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. 제 24항에 있어서,The method of claim 24, 상기 직렬 데이터 스트림으로 변환하여 출력하는 단계는,Converting and outputting the serial data stream, 제3 데이터 신호선을 통해 상기 직렬 데이터 스트림의 홀수 위치의 비트값들을 출력하는 단계; 및Outputting bit values of odd positions of the serial data stream via a third data signal line; And 제4 데이터 신호선을 통해 상기 직렬 데이터 스트림의 짝수 위치의 비트값들을 출력하는 단계를 포함하는 것을 특징으로 하는 데이터 전송 방법.Outputting bit values of even positions of the serial data stream via a fourth data signal line. 제 24항에 있어서,The method of claim 24, 제3 데이터 신호선을 통해 상기 직렬 데이터 스트림의 상위
Figure 112007031996560-PAT00022
비트의 비트값들을 출력하는 단계; 및
An upper portion of the serial data stream via a third data signal line
Figure 112007031996560-PAT00022
Outputting bit values of the bit; And
제4 데이터 신호선을 통해 상기 직렬 데이터 스트림의 하위
Figure 112007031996560-PAT00023
비트의 비트값들을 출력하는 단계를 포함하는 것을 특징으로 하는 데이터 전송 방법.
A lower portion of the serial data stream via a fourth data signal line
Figure 112007031996560-PAT00023
Outputting the bit values of the bit.
m(임의의 자연수) 비트의 병렬 데이터를 획득하여 정해진 데이터 포맷으로 변환하는 프로세서와 동일한 칩에 구비된 제2 인터페이스부가 데이터를 수신하는 방법에 있어서,A method for receiving data by a second interface unit included in the same chip as a processor that acquires parallel data of m (arbitrary natural numbers) and converts it into a predetermined data format, 입력받은 n(임의의 자연수) 비트의 직렬 데이터 스트림 및 동기화된 제1 클럭 신호로 변환하여 출력하는 단계;Converting and outputting an input n (random natural number) bit serial data stream and a synchronized first clock signal; 상기 직렬 데이터 스트림을 상기 n비트씩 시프트시켜 상기 병렬 데이터를 생성하여 출력하며, 상기 병렬 데이터에 동기화된 제2 클럭 신호를 생성하여 출력하는 단계; 및Shifting the serial data stream by the n bits to generate and output the parallel data, and generating and outputting a second clock signal synchronized with the parallel data; And 상기 제2 클럭 신호를 이용하여 상기 병렬 데이터에서 설정된 동기 코드들을 검출하여 상응하는 동기 신호들을 생성하여 출력하며, 상기 동기 코드가 제거된 병렬 데이터를 출력하는 단계를 포함하는 데이터 수신 방법.Detecting the sync codes set in the parallel data by using the second clock signal to generate and output corresponding sync signals, and outputting parallel data from which the sync codes have been removed. 제 29항에 있어서,The method of claim 29, 상기 n비트씩 시프트시켜 상기 병렬 데이터를 생성하여 출력하는 단계는,The step of shifting by n bits to generate and output the parallel data, 상기 병렬 데이터를 버퍼에 일시적으로 저장하는 단계;Temporarily storing the parallel data in a buffer; 상기 버퍼의 미리 정해진 크기의 영역만큼 병렬 데이터들이 저장되었는지 여부를 판단하는 단계; 및Determining whether parallel data are stored by an area of a predetermined size of the buffer; And 만일 소정의 영역에 저장되었다면, 상기 저장된 병렬 데이터들을 m비트 단위씩 제1 데이터 버스 및 제2 데이터 버스를 통해 디코더부로 출력하는 단계를 포함하는 것을 특징으로 하는 데이터 수신 방법.If the data is stored in a predetermined area, outputting the stored parallel data to the decoder through the first data bus and the second data bus in units of m bits. 제 29항에 있어서,The method of claim 29, 상기 병렬 데이터에서 설정된 동기 코드들을 검출하여 상응하는 동기 신호들을 생성하여 출력하는 단계는,Detecting the sync codes set in the parallel data to generate and output corresponding sync signals, 상기 병렬 데이터가 상기 SOF이면, 제1 상태로 변경된 수직 동기 신호(VSYNC) 및 제3 상태로 변경된 유효 데이터 인에이블 신호(HREF)를 생성하여 출력하는 단계;Generating and outputting a vertical synchronization signal VSYNC changed to a first state and a valid data enable signal HREF changed to a third state if the parallel data is the SOF; 상기 병렬 데이터가 상기 EOF이면, 제2 상태로 변경된 수직 동기 신호 및 제4 상태로 변경된 유효 데이터 인에이블 신호를 생성하여 출력하는 단계;Generating and outputting a vertical synchronization signal changed to a second state and a valid data enable signal changed to a fourth state if the parallel data is the EOF; 상기 병렬 데이터가 상기 SOL이면, 상기 제3 상태로 변경된 유효 데이터 인에이블 신호를 생성하여 출력하는 단계; 및Generating and outputting a valid data enable signal changed to the third state if the parallel data is the SOL; And 상기 병렬 데이터가 상기 EOL이면, 상기 제4 상태로 변경된 유효 데이터 인에이블 신호를 생성하여 출력하는 단계를 포함하되,If the parallel data is the EOL, generating and outputting a valid data enable signal changed to the fourth state; 상기 제1 상태는 폴링 에지(falling edge) 및 라이징 에지(rising edge) 중 어느 하나이며, 상기 제2 상태는 폴링 에지 및 라이징 에지 중 다른 하나이며,The first state is any one of a falling edge and a rising edge, and the second state is the other of a falling edge and a rising edge, 상기 제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. 제 29항에 있어서,The method of claim 29, 상기 n비트씩 시프트시켜 상기 병렬 데이터를 생성하여 출력하는 단계는,The step of shifting by n bits to generate and output the parallel data, 제3 데이터 신호선 및 제4 데이터 신호선을 통해 n비트의 비트값을 각각 입력받는 단계; 및Receiving n-bit bit values through the third data signal line and the fourth data signal line, respectively; And 상기 입력된 비트값을 미리 정해진 순서대로 각각 n비트씩 시프트시키고 머지하여 상기 병렬 데이터를 생성하여 출력하는 단계를 포함하는 것을 특징으로 하는 데이터 수신 방법.And shifting and inputting the input bit value by n bits in a predetermined order, respectively, to generate and output the parallel data.
KR1020070041259A 2007-04-27 2007-04-27 Apparatus and method for data transmission KR100874671B1 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
KR20080096160A true KR20080096160A (en) 2008-10-30
KR100874671B1 KR100874671B1 (en) 2008-12-18

Family

ID=40155580

Family Applications (1)

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

Country Status (1)

Country Link
KR (1) KR100874671B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011126206A2 (en) * 2010-04-09 2011-10-13 하이브모션 주식회사 Image processing device for controlling output speed of image frame

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326808B (en) * 2012-03-21 2017-04-12 浙江大华技术股份有限公司 Method, device and system for data transmission
KR101469446B1 (en) * 2014-03-04 2014-12-08 ㈜베이다스 Synchronization composite system and method for the plural image
KR102170879B1 (en) 2014-04-18 2020-10-29 삼성전자주식회사 Image sensor and image processing system having the same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100694670B1 (en) * 2006-03-24 2007-03-14 엠텍비젼 주식회사 Portable device and serial interface method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011126206A2 (en) * 2010-04-09 2011-10-13 하이브모션 주식회사 Image processing device for controlling output speed of image frame
WO2011126206A3 (en) * 2010-04-09 2011-12-01 하이브모션 주식회사 Image processing device for controlling output speed of image frame

Also Published As

Publication number Publication date
KR100874671B1 (en) 2008-12-18

Similar Documents

Publication Publication Date Title
US8023002B2 (en) Imager, imaging circuit, and image processing circuit
US8970750B2 (en) Image outputting apparatus, image outputting method, image processing apparatus, image processing method, program, data structure and imaging apparatus
US10375270B2 (en) Signal processing apparatus, image processing apparatus, and signal processing method
EP2094002A2 (en) Electronic communication system and endoscope system
JP6822400B2 (en) Transmitters, receivers, and communication systems, as well as signal transmission methods, signal reception methods, and communication methods.
EP3148177A1 (en) Image generation method based on dual camera module and dual camera module
JP2000333081A (en) Cmos sensor unit with serial data transmission function, image pickup unit using the same and picture data transmission/reception system
JPWO2017098871A1 (en) Communication system and communication method
KR100874671B1 (en) Apparatus and method for data transmission
US20130216235A1 (en) Transmission system and electronic equipment
WO2021013113A1 (en) Image capture display terminal
US8587678B2 (en) Head-separated camera device with switchable clocking
TW201711479A (en) Multimedia signal transmission device and transmission method thereof
JP3874357B2 (en) Data transmitting apparatus, data receiving apparatus, data transmitting / receiving apparatus, and data transmitting / receiving method
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
JP2014124245A (en) Endoscope
KR100934611B1 (en) Apparatus and method for data transmission
KR101316179B1 (en) Duel camera
Birla FPGA based reconfigurable platform for complex image processing
EP3920498B1 (en) Transmission device, transmission method, reception device, reception method, and transmission/reception device
CN107197190B (en) Method and device for generating video clock
US20070029461A1 (en) Image sensor device and a method for outputting digital signals
CN107666582B (en) Video signal conversion method, system, device and video processing device
JP2009177331A (en) Image signal transfer system, method, and imaging device with the transfer system
CN111479078B (en) Image sensor chip, electronic device and method for operating image sensor chip

Legal Events

Date Code Title Description
A201 Request for examination
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: 5

FPAY Annual fee payment

Payment date: 20131127

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20151127

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20171128

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20181126

Year of fee payment: 11