[go: up one dir, main page]

JP2020096281A - Imaging device, data processing device, and data processing method - Google Patents

Imaging device, data processing device, and data processing method Download PDF

Info

Publication number
JP2020096281A
JP2020096281A JP2018232834A JP2018232834A JP2020096281A JP 2020096281 A JP2020096281 A JP 2020096281A JP 2018232834 A JP2018232834 A JP 2018232834A JP 2018232834 A JP2018232834 A JP 2018232834A JP 2020096281 A JP2020096281 A JP 2020096281A
Authority
JP
Japan
Prior art keywords
data
synchronization
code
signal
error correction
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2018232834A
Other languages
Japanese (ja)
Inventor
知教 飯田
Tomonori Iida
知教 飯田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2018232834A priority Critical patent/JP2020096281A/en
Publication of JP2020096281A publication Critical patent/JP2020096281A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

【課題】シリアル送信されるデータに制御コードと同一のデータ列が発生することを低減もしくは防止する。
【解決手段】撮像装置は、イメージセンサと、イメージセンサから読み出した画像信号を表すデータに誤り訂正符号化して第一のデータを生成する符号化部と、第一のデータまたは第一のデータに所定の処理を加えた第二のデータにおいて、同期信号を表す同期コードと同じパターンのデータ部分を、誤り訂正符号化による訂正が可能な範囲で異なるパターンに変換して第三のデータを生成する変換部と、同期信号のタイミングに基づいて第三のデータに同期コードを付加する付加部と、付加部により同期コードが付加されたデータをシリアル送信する送信部と、を備える。
【選択図】 図1
PROBLEM TO BE SOLVED: To reduce or prevent generation of the same data string as a control code in serially transmitted data.
An image pickup device includes an image sensor, an encoding unit that error-correction-encodes data representing an image signal read from the image sensor to generate first data, and converts the data into the first data or the first data. In the second data that has been subjected to the predetermined processing, the data portion having the same pattern as the synchronization code representing the synchronization signal is converted into a different pattern within a range that can be corrected by the error correction coding to generate the third data. A conversion unit, an addition unit that adds a synchronization code to the third data based on the timing of the synchronization signal, and a transmission unit that serially transmits the data to which the synchronization code has been added by the addition unit.
[Selection diagram]

Description

本発明は、データをシリアル送信するための技術に関するものである。 The present invention relates to a technique for serially transmitting data.

近年のイメージセンサの高画質化、高フレームレート化に伴って、イメージセンサからの画素データの高速な読み出しが求められている。このような高速の画素データの読み出しに対応できるセンサとして、アナログデータをA/D変換したデジタルデータをパラレルシリアル変換によりシリアル化して高速に転送する方法が知られている。このような画素データの転送において、画素データの水平、垂直同期のタイミングを取るためにシリアルデータ中に同期コードと呼ばれる複数の符号列を埋め込んで転送することが行われている。 With the recent improvement in image quality and frame rate of image sensors, high-speed reading of pixel data from the image sensor is required. As a sensor that can cope with such high-speed reading of pixel data, a method is known in which digital data obtained by A/D converting analog data is serialized by parallel-serial conversion and transferred at high speed. In the transfer of such pixel data, a plurality of code strings called sync codes are embedded in the serial data and transferred in order to obtain the horizontal and vertical synchronization timing of the pixel data.

また、このような高速の画素データの転送においては、転送データにクロック信号を埋め込み、受信した転送データからクロック信号を抽出するクロックデータリカバリ方式と呼ばれる転送方法が用いられる。クロックデータリカバリ方式においてAC結合によりデータを転送する場合は、クロックを正常に抽出するために、転送データ中の0と1の数がなるべく均一になるようなエンコードを施す必要がある。例えば、特許文献1では、エンコードの1つの手段としてデータにスクランブルを適用し、同期コードとデータを転送する方法が開示されている。 Further, in such high-speed pixel data transfer, a transfer method called a clock data recovery method is used in which a clock signal is embedded in the transfer data and the clock signal is extracted from the received transfer data. When data is transferred by AC coupling in the clock data recovery method, it is necessary to perform encoding so that the numbers of 0s and 1s in the transfer data are as uniform as possible in order to properly extract the clock. For example, Patent Document 1 discloses a method of applying scrambling to data and transferring a synchronization code and data as one means of encoding.

特開昭63−226145号公報JP-A-63-226145

しかしながら、特許文献1に開示された従来技術では、スクランブルされたデータ中に同期コードと同一のデータ列がある場合、データ列の受信側において同期コードの誤検出が発生してしまう。このような課題は、画像データのシリアル送信に限られるものではなく、何らかの制御信号を表す制御コードが付加されたデータを送信する場合にも生じ得るものである。 However, in the conventional technique disclosed in Patent Document 1, if the scrambled data contains the same data string as the sync code, the sync code is erroneously detected on the receiving side of the data string. Such a problem is not limited to serial transmission of image data, and may occur when transmitting data to which a control code representing some control signal is added.

本発明は、送信されるデータに制御コードと同一のデータ列が発生することを低減もしくは防止することを目的とする。 An object of the present invention is to reduce or prevent the occurrence of the same data string as a control code in transmitted data.

本発明の一態様によるデータ処理装置は、以下の構成を備える。すなわち、
処理対象のデータに誤り訂正符号化して第一のデータを生成する符号化手段と、
前記第一のデータと制御信号を表す制御コードとを用いて、前記制御コードが付加された送信対象のデータを生成する生成手段と、
前記送信対象のデータを送信する送信手段と、を備え、
前記生成手段は、
送信対象のデータを生成する過程の、前記制御コードの付加対象のデータについて、前記制御コードと同じパターンのデータ部分を検出する検出手段と、
前記誤り訂正符号化による訂正が可能な範囲で、前記付加対象のデータの前記データ部分を前記制御コードと異なるパターンに変換する変換手段と、を備える。
A data processing device according to an aspect of the present invention has the following configuration. That is,
Coding means for performing error correction coding on the data to be processed to generate first data,
Using the first data and a control code representing a control signal, a generation means for generating data to be transmitted to which the control code is added,
A transmitting unit that transmits the data to be transmitted,
The generating means is
For the data to be added with the control code in the process of generating the data to be transmitted, detection means for detecting a data portion having the same pattern as the control code,
Conversion means for converting the data portion of the data to be added into a pattern different from the control code within a range that can be corrected by the error correction coding.

本発明によれば、送信されるデータに制御コードと同一のデータ列が発生することが低減もしくは防止されるので、より確実に制御コードを検出することが可能になる。 According to the present invention, the occurrence of the same data string as the control code in the transmitted data is reduced or prevented, so that the control code can be detected more reliably.

第1実施形態における撮像装置の構成例を示すブロック図。FIG. 3 is a block diagram showing a configuration example of an image pickup apparatus in the first embodiment. 第1実施形態における送信データ処理回路の構成例を示すブロック図。FIG. 3 is a block diagram showing a configuration example of a transmission data processing circuit in the first embodiment. 第1実施形態における受信データ処理回路の構成例を示すブロック図。FIG. 3 is a block diagram showing a configuration example of a reception data processing circuit according to the first embodiment. 第1実施形態における各データの関係を示す図。The figure which shows the relationship of each data in 1st Embodiment. 第1実施形態における送信データのフォーマットを示す図。The figure which shows the format of the transmission data in 1st Embodiment. 第2実施形態における撮像装置の構成例を示すブロック図。The block diagram which shows the structural example of the imaging device in 2nd Embodiment. 第2実施形態における送信データ処理回路の構成例を示すブロック図。The block diagram which shows the structural example of the transmission data processing circuit in 2nd Embodiment. 第2実施形態における受信データ処理回路の構成例を示すブロック図。The block diagram which shows the structural example of the received data processing circuit in 2nd Embodiment. 第2実施形態における各データの関係を示す図。The figure which shows the relationship of each data in 2nd Embodiment.

以下、添付の図面を参照して、本発明の実施形態を説明する。以下では、シリアル送信の対象のデータがイメージセンサから得られた画素データであり、制御信号として同期信号(水平同期信号、垂直同期信号)が付加される例を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the following, an example will be described in which the data to be serially transmitted is pixel data obtained from the image sensor and a synchronization signal (horizontal synchronization signal, vertical synchronization signal) is added as a control signal.

<第1実施形態>
図1は、第1実施形態における撮像装置の構成例を説明するブロック図である。図1において、発振器101は、動作の基準となるクロック信号(以下、基準クロック)を出力する。発振器101から出力される基準クロックに基づいて、後述する各部が動作する。同期信号発生器(SSG:Synchronizing Signal Generator)110は、基準クロックに同期して水平同期信号HD及び垂直同期信号VDを生成し、出力する。なお、発振器101とSSG110は、センサ部120と画像処理部130のいずれに含まれてもよいし、それらのいずれにも含まれない形態でもよい。また、センサ部120と画像処理部130は、それぞれ別個の基板に形成されており、センサ部120と画像処理部130の間ではデータのシリアル送信が行われる。但し、センサ部120と画像処理部130が同一共体内に存在する必要はなく、別々の筐体に配置されてもよい。或いは、センサ部120と画像処理部130が、同一の基板上に配置されていてもよい。
<First Embodiment>
FIG. 1 is a block diagram illustrating a configuration example of the image pickup apparatus according to the first embodiment. In FIG. 1, an oscillator 101 outputs a clock signal (hereinafter referred to as a reference clock) that serves as a reference for operation. Each unit described later operates based on the reference clock output from the oscillator 101. A synchronizing signal generator (SSG: Synchronizing Signal Generator) 110 generates and outputs a horizontal synchronizing signal HD and a vertical synchronizing signal VD in synchronization with a reference clock. The oscillator 101 and the SSG 110 may be included in either the sensor unit 120 or the image processing unit 130, or may be included in neither of them. The sensor unit 120 and the image processing unit 130 are formed on separate substrates, and data is serially transmitted between the sensor unit 120 and the image processing unit 130. However, the sensor unit 120 and the image processing unit 130 do not need to be present in the same communal body, and may be arranged in separate housings. Alternatively, the sensor unit 120 and the image processing unit 130 may be arranged on the same substrate.

センサ部120は、撮像素子(例えばCCDイメージセンサまたはCMOSイメージセンサ)を備え、画像信号を生成する。タイミング信号発生器(TG)102は、SSG110から供給される水平同期信号(HD)、垂直同期信号(VD)に基づいて、センサ部120内の各部を駆動するための駆動パルス信号を発生する。画素部103は、撮像素子と、この撮像素子で得られた画素信号をTG102から供給される駆動パルス信号(駆動信号)に従って順次出力する転送路と、画素信号を増幅するアンプと、画素信号をデジタル信号(画素データ)に変換するA/D変換器を有する。送信データ処理回路104は、画素部103からの画素データとTG102からのタイミング信号により、所定のプロトコルに従った送信データ(パラレルデータ)を生成して出力する。より具体的には、送信データ処理回路104は、画素データに対してスクランブル処理、水平同期信号HDに対応した同期コードの付加等を行う。 The sensor unit 120 includes an image sensor (for example, a CCD image sensor or a CMOS image sensor) and generates an image signal. The timing signal generator (TG) 102 generates a drive pulse signal for driving each unit in the sensor unit 120 based on the horizontal synchronization signal (HD) and the vertical synchronization signal (VD) supplied from the SSG 110. The pixel unit 103 includes an image sensor, a transfer path that sequentially outputs pixel signals obtained by the image sensor according to a drive pulse signal (drive signal) supplied from the TG 102, an amplifier that amplifies the pixel signal, and a pixel signal. It has an A/D converter for converting into a digital signal (pixel data). The transmission data processing circuit 104 generates and outputs transmission data (parallel data) according to a predetermined protocol based on the pixel data from the pixel unit 103 and the timing signal from the TG 102. More specifically, the transmission data processing circuit 104 performs scrambling processing on pixel data, addition of a synchronization code corresponding to the horizontal synchronization signal HD, and the like.

送信データ処理回路104の構成例を図2に示す。カウンタ201は、発振器101が出力する基準クロックをカウントしてステートマシン回路(FSM:Finite State Machine)202の処理サイクルを規定するカウント値を出力する。FSM202は、カウンタ201からのカウント値と、TG102からのタイミング信号(同期信号HD/DV)に従い、出力セレクタ206の出力が所定のプロトコルに従ったデータとなるよう切り替える指示信号を出力する。以下に説明するように、出力セレクタ206は、固定パターン生成部203が出力する固定パターン(図5の501)と、同期コード生成部204が出力する同期コード(図5の502)が、スクランブル処理された画素データに付加された画像データを出力する。 A configuration example of the transmission data processing circuit 104 is shown in FIG. The counter 201 counts the reference clock output from the oscillator 101 and outputs a count value that defines a processing cycle of a state machine circuit (FSM: Finite State Machine) 202. The FSM 202 outputs an instruction signal for switching the output of the output selector 206 to data according to a predetermined protocol according to the count value from the counter 201 and the timing signal (synchronization signal HD/DV) from the TG 102. As described below, the output selector 206 scrambles the fixed pattern (501 in FIG. 5) output by the fixed pattern generation unit 203 and the synchronization code (502 in FIG. 5) output by the synchronization code generation unit 204. The image data added to the selected pixel data is output.

固定パターン生成部203は、予め定められた特定の制御コードが繰り返し含まれている固定パターンを生成する。この特定の制御コードは、後述する画像処理部130におけるデータ処理に使用される。FSM202は、この固定パターンのデータが垂直同期信号VDに同期したデータの先頭において所定時間出力されるように出力セレクタ206を制御する。 The fixed pattern generation unit 203 generates a fixed pattern in which a predetermined specific control code is repeatedly included. This specific control code is used for data processing in the image processing unit 130 described later. The FSM 202 controls the output selector 206 so that the data of this fixed pattern is output for a predetermined time at the head of the data synchronized with the vertical synchronization signal VD.

同期コード生成部204は、水平同期信号HDに対応した同期コードを生成する。同期コードとは予め決められたワード長のデータ(シンボル)であり、特定のパターンを有する。例えば同期コードが4シンボルで構成されるとすると、{同期コード1、同期コード2、同期コード3、同期コード4}={ALL0のシンボル、ALL0のシンボル、ALL1のシンボル、ALL1のシンボル}といったデータの並びである。受信側(例えば、画像処理部130)はこれらのデータ列をパターンマッチングにより同期コードとして検出し、水平同期のタイミングを取る。FSM202は、同期コードが固定パターンの直後、または水平同期信号HDに同期したデータの先頭に出力されるよう出力セレクタ206を制御する。 The sync code generator 204 generates a sync code corresponding to the horizontal sync signal HD. The synchronization code is data (symbol) having a predetermined word length and has a specific pattern. For example, if the sync code is composed of 4 symbols, data such as {sync code 1, sync code 2, sync code 3, sync code 4}={ALL0 symbol, ALL0 symbol, ALL1 symbol, ALL1 symbol} It is a line of. The receiving side (for example, the image processing unit 130) detects these data strings as a synchronization code by pattern matching and takes horizontal synchronization timing. The FSM 202 controls the output selector 206 so that the sync code is output immediately after the fixed pattern or at the beginning of the data synchronized with the horizontal sync signal HD.

画素部103から出力された画素データは、まず、誤り訂正符号化部207に供給される。誤り訂正符号化部207は、画素データに誤り訂正符号化の処理を施す。誤り訂正符号化の符号化方式としては、例えばリード・ソロモン符号を適用する。リード・ソロモン符号を用いた場合、誤り訂正符号化部207は、一定数の画素データ毎にパリティデータを付加したパリティ付きの画素データ(以下、第一のデータ)を出力する。スクランブル回路205は、誤り訂正符号化部207が出力する第一のデータに対してスクランブル処理を施し、スクランブルデータ(以下、第二のデータ)を生成する。スクランブル処理の一例としては、線形帰還シフトレジスタによって生成した疑似乱数と第一のデータとの排他的論理和を取ることがあげられる。なお、スクランブル回路205によるスクランブル処理は、第一のデータにクロック情報を埋め込むための符号化処理を施して第二のデータを生成する処理部の一例であり、これに限られるものではない。例えば、スクランブル処理に代えてまたはそれに加えて、8b/10bのような、第一のデータの1シンボル当たりのビット数を変更するような符号化処理により、クロック情報の埋め込みが行われてもよい。 The pixel data output from the pixel unit 103 is first supplied to the error correction coding unit 207. The error correction coding unit 207 performs error correction coding processing on the pixel data. As a coding method for error correction coding, for example, Reed-Solomon code is applied. When the Reed-Solomon code is used, the error correction coding unit 207 outputs pixel data with parity (hereinafter, first data) to which parity data is added for each fixed number of pixel data. The scramble circuit 205 scrambles the first data output from the error correction coding unit 207 to generate scramble data (hereinafter, second data). An example of the scrambling process is to take the exclusive OR of the pseudo random number generated by the linear feedback shift register and the first data. The scramble processing by the scramble circuit 205 is an example of a processing unit that performs the encoding processing for embedding the clock information in the first data to generate the second data, and is not limited to this. For example, instead of or in addition to the scramble process, the clock information may be embedded by a coding process such as 8b/10b that changes the number of bits per symbol of the first data. ..

同期コード検出回路209は、スクランブル回路205が出力する第二のデータから、上述の同期コードを示す特定のパターンと同じデータ列をパターンマッチングにより検出する。同期コード検出回路209は、第二のデータにおいて、同期信号を表す同期コードと同じパターンのデータ部分を検出する構成の一例である。そのようなデータ列(データ部分)が検出されると、同期コード検出回路209は第一の同期コード検出信号を出力する。データ変換部208は、第一の同期コード検出信号を基に、同期コードを示す特定のパターンと同じデータ列を有するデータ部分を、特定パターンとは異なるデータ列のデータ部分に変換し、第三のデータを生成する(図5の503)。なお、データ変換部208では、誤り訂正符号化部207が行った誤り訂正符号化による訂正が可能な範囲で、同期コード検出回路209が検出したデータ部分を、同期コードとは異なるパターンに変換して第三のデータを生成する構成の一例である。 The sync code detection circuit 209 detects, from the second data output from the scramble circuit 205, the same data string as the above-described specific pattern indicating the sync code by pattern matching. The sync code detection circuit 209 is an example of a configuration for detecting a data portion having the same pattern as the sync code representing the sync signal in the second data. When such a data string (data portion) is detected, the sync code detection circuit 209 outputs a first sync code detection signal. The data conversion unit 208 converts the data portion having the same data sequence as the specific pattern indicating the synchronization code into the data portion of the data sequence different from the specific pattern based on the first synchronization code detection signal. Data is generated (503 in FIG. 5). In the data conversion unit 208, the data portion detected by the synchronization code detection circuit 209 is converted into a pattern different from the synchronization code within a range in which the error correction encoding performed by the error correction encoding unit 207 can be corrected. 3 is an example of a configuration for generating third data.

以上説明した送信データ処理回路104の出力データの構成例を図5に示す。図5に示すように送信データ処理回路104の出力データは、固定パターン生成部203が出力する固定パターン501、同期コード生成部204が出力する同期コード502、データ変換部208が出力する第三のデータ503とで構成される。以上のように、出力セレクタ206は、FSM202の制御下で、垂直同期信号VDに同期して固定パターン501を付加し、水平同期信号HDに同期して同期コード502を付加して、第三のデータ503を出力する。 FIG. 5 shows a configuration example of the output data of the transmission data processing circuit 104 described above. As shown in FIG. 5, the output data of the transmission data processing circuit 104 includes the fixed pattern 501 output by the fixed pattern generation unit 203, the synchronization code 502 output by the synchronization code generation unit 204, and the third data output by the data conversion unit 208. And data 503. As described above, the output selector 206, under the control of the FSM 202, adds the fixed pattern 501 in synchronization with the vertical synchronization signal VD, adds the synchronization code 502 in synchronization with the horizontal synchronization signal HD, and outputs the third pattern. The data 503 is output.

なお、データ変換部208は、誤り訂正符号化部207で用いる誤り訂正符号化の処理方法に応じてデータの変換方法を変更してもよい。例えば、誤り訂正符号化部207で用いる符号化方式がリード・ソロモン符号で、1シンボルが8ビットの場合、8ビット(1シンボル)単位で訂正することができる。そのため、データ変換部208は、マッチングが取れたデータの内、リード・ソロモン符号の1シンボルに対応する8ビットまでのデータを変換し、同期コードのパターンと一致しないようにすることができる。もちろん、リード・ソロモン符号で複数のシンボルを訂正できるだけのパリティを付与している場合は、複数のシンボルのデータを変換し、同期コードのパターンと一致しないようにしてもよい。 The data conversion unit 208 may change the data conversion method according to the error correction coding processing method used by the error correction coding unit 207. For example, when the Reed-Solomon code is the encoding method used by the error correction encoding unit 207 and one symbol is 8 bits, the correction can be performed in units of 8 bits (1 symbol). Therefore, the data conversion unit 208 can convert up to 8 bits of data corresponding to one symbol of the Reed-Solomon code among the matched data so that the data does not match the pattern of the synchronization code. Of course, if the Reed-Solomon code is provided with parity enough to correct a plurality of symbols, the data of a plurality of symbols may be converted so that they do not match the pattern of the synchronization code.

図1に戻り、センサ部120のパラレルシリアル変換器106は、送信データ処理回路104から出力されるパラレルデータをシリアルデータに変換する。変換されたシリアルデータは、送信ドライバ107を通して基板やケーブルを経由して、画像処理部130の受信ドライバ111へ供給される。こうして、パラレルシリアル変換器106と送信ドライバ107とにより、出力セレクタ206から出力されたデータ(同期信号のタイミングに基づいて同期コードが付加された第三のデータ)がシリアル送信される。PLL105は基準クロックからパラレルシリアル変換器106のシリアルデータへの変換レートに合わせたシリアルクロックをパラレルシリアル変換器106へ供給する。ここでは送信データ処理回路104からの出力データを1つの送信ドライバを介して出力する例を示しているが、実現したいデータレートに応じて複数のドライバにデータを分配して送信するようにしてもよい。 Returning to FIG. 1, the parallel-serial converter 106 of the sensor unit 120 converts the parallel data output from the transmission data processing circuit 104 into serial data. The converted serial data is supplied to the reception driver 111 of the image processing unit 130 via the transmission driver 107, the board and the cable. In this way, the parallel-serial converter 106 and the transmission driver 107 serially transmit the data output from the output selector 206 (the third data to which the synchronization code is added based on the timing of the synchronization signal). The PLL 105 supplies to the parallel-serial converter 106 a serial clock that matches the conversion rate from the reference clock to the serial data of the parallel-serial converter 106. Here, an example is shown in which the output data from the transmission data processing circuit 104 is output via one transmission driver, but the data may be distributed and transmitted to a plurality of drivers according to the data rate desired to be realized. Good.

画像処理部130において、受信ドライバ111は、送信ドライバ107からシリアル送信されたシリアルデータを受信し、シリアルパラレル変換器112へ供給する。シリアルパラレル変換器112は、受信ドライバ111からのシリアルデータを入力して内部のシフトレジスタに蓄え、蓄えられたシリアルデータを例えば8ビットのパラレルデータとして出力する。さらに、シリアルパラレル変換器112は、クロックデータリカバリ(CDR)の機能を有しており、受信ドライバ111が受信したシリアルデータからクロックを再生する。シリアルパラレル変換器112は、CDR機能によりシリアルデータから復元されたクロックを、それを必要とする各部へ出力する。 In the image processing unit 130, the reception driver 111 receives the serial data serially transmitted from the transmission driver 107 and supplies the serial data to the serial/parallel converter 112. The serial-parallel converter 112 inputs the serial data from the reception driver 111, stores it in an internal shift register, and outputs the stored serial data as 8-bit parallel data, for example. Further, the serial-parallel converter 112 has a clock data recovery (CDR) function, and reproduces a clock from the serial data received by the reception driver 111. The serial-parallel converter 112 outputs the clock restored from the serial data by the CDR function to each unit that needs it.

ワードアライン回路113はシリアルパラレル変換器112から出力されたパラレルデータから予め決められたワード長のデータを取り出す回路である。例えばシリアルパラレル変換器112からのパラレルデータが8ビットであり、画素データが1画素あたり12ビットのワード長であったとすると、8ビット入力から各画素の12ビットの境目を探し出し、12ビットのワードを取り出して出力する。このようなワード同期を取る(ワードアライン)動作は前述した固定パターンを受信した際に行われる。固定パターンは予め定められた特定の制御コードであり、ワードアライン回路113は、その特定の制御コードのパターンをパターンマッチングにより探すことでワード同期を取る。 The word align circuit 113 is a circuit for extracting data of a predetermined word length from the parallel data output from the serial/parallel converter 112. For example, assuming that the parallel data from the serial-parallel converter 112 is 8 bits and the pixel data has a word length of 12 bits per pixel, the 12-bit boundary of each pixel is searched for from the 8-bit input, and the 12-bit word is searched. To output and output. Such word synchronization (word align) operation is performed when the above-mentioned fixed pattern is received. The fixed pattern is a predetermined specific control code, and the word align circuit 113 establishes word synchronization by searching for the pattern of the specific control code by pattern matching.

同期コード検出回路115はワードアライン回路113からのデータ信号を受け、同期コードを検出して第二の同期コード検出信号として出力する。受信データ処理回路116は、ワードアライン回路113からのデータ信号に対して第二の同期コード検出信号から画素データに対応する第三のデータと同期コードを分離し、画素データを復元する。復元された画素データは、メモリに格納されたり、所定の画像処理が施されたりする。 The sync code detection circuit 115 receives the data signal from the word align circuit 113, detects the sync code, and outputs it as a second sync code detection signal. The reception data processing circuit 116 separates the third data corresponding to the pixel data and the synchronization code from the second synchronization code detection signal for the data signal from the word align circuit 113, and restores the pixel data. The restored pixel data is stored in the memory or subjected to predetermined image processing.

受信データ処理回路116の構成例を図3に示す。有効データ取得部300は、ワードアライン回路113からのデータ信号に対して第二の同期コード検出信号から画素データに対応する第三のデータを特定し、第三のデータをデスクランブル回路301へ出力する。上述の同期コード検出回路115と有効データ取得部300は、受信ドライバ111により受信されたシリアルデータに基づいて得られたデータから同期コードを検出し、同期コードと第三のデータを分離する構成の一例である。デスクランブル回路301は、第三のデータに対してデスクランブル処理を施し、デスクランブルデータ(以下、第四のデータ)を生成する。デスクランブル処理としては、例えば線形帰還シフトレジスタによって生成した疑似乱数と第三のデータとの排他的論理和を取ることがあげられる。誤り訂正復号化部302は、デスクランブル回路301が出力した第四のデータに誤り訂正復号化の処理を施し、訂正したデータを、受信データ処理回路116の出力データとして出力する。デスクランブル回路301と誤り訂正復号化部302は、第三のデータに符号化処理(デスクランブル処理)に対応する復号処理を施して得られたデータを誤り訂正復号化することにより第一のデータを取得する構成の一例である。受信データ処理回路116により取得された第一のデータは、画像データとして不図示のメモリに格納されたり、所定の画像処理が施されたりする。 FIG. 3 shows a configuration example of the reception data processing circuit 116. The valid data acquisition unit 300 specifies the third data corresponding to the pixel data from the second sync code detection signal for the data signal from the word align circuit 113, and outputs the third data to the descramble circuit 301. To do. The synchronization code detection circuit 115 and the valid data acquisition unit 300 described above are configured to detect the synchronization code from the data obtained based on the serial data received by the reception driver 111 and separate the synchronization code and the third data. This is an example. The descramble circuit 301 performs descramble processing on the third data to generate descramble data (hereinafter, fourth data). As the descrambling process, for example, the exclusive OR of the pseudo random number generated by the linear feedback shift register and the third data can be used. The error correction decoding unit 302 performs error correction decoding processing on the fourth data output by the descramble circuit 301, and outputs the corrected data as output data of the reception data processing circuit 116. The descramble circuit 301 and the error correction decoding unit 302 perform the error correction decoding on the data obtained by performing the decoding process corresponding to the encoding process (descramble process) on the third data to thereby perform the first data correction. Is an example of a configuration for acquiring. The first data acquired by the reception data processing circuit 116 is stored as image data in a memory (not shown) or subjected to predetermined image processing.

以上説明した画素データ、第一のデータ、第二のデータ、第三のデータ、第四のデータ、誤り訂正復号化部302の出力データの関係の一例を図4に示す。画素データ400は画素部103から出力された画素データを表す。第一のデータは、誤り訂正符号化部207によって、画素部103から出力された画素データ400にパリティ401が付与されたデータである。第二のデータは、画素データ400にパリティ401が付与された構成の第一のデータに対してスクランブル回路205がスクランブル処理を施したデータである。第三のデータは、同期コード検出回路209とデータ変換部208により、第二のデータ中の同期コードと同じパターンを持つデータ部分402が、異なるパターンのデータ部分403に変換されたデータである。 FIG. 4 shows an example of the relationship among the pixel data, the first data, the second data, the third data, the fourth data, and the output data of the error correction decoding unit 302 described above. The pixel data 400 represents the pixel data output from the pixel unit 103. The first data is data in which the error correction coding unit 207 adds the parity 401 to the pixel data 400 output from the pixel unit 103. The second data is data in which the scramble circuit 205 has performed scramble processing on the first data having the configuration in which the parity 401 is added to the pixel data 400. The third data is data obtained by converting the data portion 402 having the same pattern as the synchronization code in the second data into the data portion 403 having a different pattern by the synchronization code detection circuit 209 and the data conversion unit 208.

例えば、前述のように同期コードのデータ列が{ALL0のシンボル、ALL0のシンボル、ALL1のシンボル、ALL1のシンボル}である場合を考える。この場合、{ALL0のシンボル、ALL0のシンボル、ALL1のシンボル、"ALL1のシンボル XOR 1"のようにデータ部分402を変換することでデータ部分403を得る。また、この例では1つのシンボルを変換しているが、前述したように、変換するデータ長は誤り訂正符号化部207で使用する符号化方式によって変えてもよい。 For example, consider the case where the data string of the synchronization code is {ALL0 symbol, ALL0 symbol, ALL1 symbol, ALL1 symbol} as described above. In this case, the data portion 403 is obtained by converting the data portion 402 such as {ALL0 symbol, ALL0 symbol, ALL1 symbol, "ALL1 symbol XOR 1". Further, although one symbol is converted in this example, as described above, the data length to be converted may be changed depending on the coding method used in the error correction coding unit 207.

第四のデータは、デスクランブル回路301が第三のデータに対してデスクランブル処理をしたデータである。データ部分403はデータ変換部208で変換されているため、元の画素データ400に含まれるデータとは異なるデータ404にデスクランブルされる。この第四のデータを誤り訂正復号化部302で誤り訂正復号化することで、データ404が訂正され、元の画素データ400が得られる。 The fourth data is data that the descramble circuit 301 descrambles with respect to the third data. Since the data portion 403 has been converted by the data conversion unit 208, it is descrambled into data 404 different from the data included in the original pixel data 400. The error correction decoding unit 302 performs error correction decoding on the fourth data, whereby the data 404 is corrected and the original pixel data 400 is obtained.

以上のように、第1実施形態によれば、誤り訂正符号化後にスクランブルした画素データにおいて同期コードと一致するデータ部分が別のデータ列に変更される。このため、送信されるデータの中に同期コードと同じパターンが発生することが無くなり、本来検出すべき同期コードを確実に検出することが可能である。また、データ部分の変更は、誤り訂正符号化における訂正能力の範囲でなされるので、受信側で誤り訂正復号化を行うことで、データ部分が変更される前の正しいデータを得ることが可能である。 As described above, according to the first embodiment, in the pixel data scrambled after the error correction coding, the data portion that matches the synchronization code is changed to another data string. Therefore, the same pattern as the sync code does not occur in the transmitted data, and the sync code that should be originally detected can be surely detected. Further, since the data portion is changed within the range of the correction capability in the error correction coding, it is possible to obtain correct data before the data portion is changed by performing error correction decoding on the receiving side. is there.

<第2実施形態>
第1実施形態では、第三のデータの全体について同期コードの検出を行っている。第2実施形態では、同期信号の発生から所定期間を除いた残りの期間の第三のデータについてデータ部分の抽出と変換を行う。第2実施形態では、同期コード(水平同期信号)を検出した後の、同期信号が発生し得ない所定期間では同期コードと同一のデータ部分の検出と変換を行わないようにして、センサ部120と画像処理部130の処理負荷を低減する。以下、第2実施形態について詳述する。
<Second Embodiment>
In the first embodiment, the synchronization code is detected for the entire third data. In the second embodiment, the data portion is extracted and converted with respect to the third data in the remaining period excluding the predetermined period from the generation of the synchronization signal. In the second embodiment, after the sync code (horizontal sync signal) is detected, the same data portion as the sync code is not detected and converted during a predetermined period in which the sync signal cannot be generated, and the sensor unit 120 is not used. The processing load on the image processing unit 130 is reduced. Hereinafter, the second embodiment will be described in detail.

図6は、第2実施形態による撮像装置の構成例を示すブロック図である。第1実施形態による撮像装置の構成と同様の機能を有する構成には、図1で示した構成と同じ参照番号を付してある。 FIG. 6 is a block diagram showing a configuration example of the image pickup apparatus according to the second embodiment. The components having the same functions as those of the image pickup device according to the first embodiment are designated by the same reference numerals as those shown in FIG.

図6において、送信データ処理回路104aは、画素部103からの画素信号とTG102からのタイミング信号により、所定のプロトコルに従った送信データを生成してパラレルデータとして出力する。具体的には、画素データに対して水平同期信号HDに対応した同期コードの付加等を行う。第1実施形態の送信データ処理回路104では、画素データの全体にわたって同期コードの検出と置換を行ったが、第2実施形態の送信データ処理回路104aでは、水平同期信号の検出からの所定期間では同期コードの検出を行わないようにする。 In FIG. 6, the transmission data processing circuit 104a generates transmission data according to a predetermined protocol based on the pixel signal from the pixel unit 103 and the timing signal from the TG 102, and outputs it as parallel data. Specifically, a sync code corresponding to the horizontal sync signal HD is added to the pixel data. In the transmission data processing circuit 104 of the first embodiment, the sync code is detected and replaced over the entire pixel data. However, in the transmission data processing circuit 104a of the second embodiment, the synchronization code is detected within a predetermined period from the detection of the horizontal sync signal. Disables sync code detection.

送信データ処理回路104aの構成例を図7に示す。第1実施形態(図2)と同様の機能を有する構成には、図2で示した構成と同じ参照番号を付している。 A configuration example of the transmission data processing circuit 104a is shown in FIG. The components having the same functions as those in the first embodiment (FIG. 2) are designated by the same reference numerals as those shown in FIG.

第一カウント部701は、水平同期信号HDを検出するとリセットされ、例えばSSG110が出力するクロック信号のカウントアップを開始する。その後、第一カウント部701は、所定値と比較を行い、カウント値の方が大きい場合にアサートする検知信号を誤り訂正符号化部207へ出力する。ここで、検知信号はアサートした場合にHighを示し、検知信号がデアサートした場合、すなわち所定値よりもカウント値の方が小さい場合はLowを示す信号である。所定値は、予めセンサ部120内にある設定レジスタに保持されている。所定の値は、水平同期信号HDが発生しない期間に検知信号がデアサートし、水平同期信号HDが発生する期間では検知信号がアサートするように設定されている。 The first counting unit 701 is reset when it detects the horizontal synchronization signal HD, and starts counting up the clock signal output from the SSG 110, for example. After that, the first counting unit 701 compares with a predetermined value, and outputs a detection signal to be asserted when the count value is larger to the error correction coding unit 207. Here, the detection signal is a signal indicating High when asserted, and is Low when the detection signal is deasserted, that is, when the count value is smaller than a predetermined value. The predetermined value is held in the setting register in the sensor unit 120 in advance. The predetermined value is set so that the detection signal is deasserted during the period when the horizontal synchronization signal HD is not generated, and the detection signal is asserted during the period when the horizontal synchronization signal HD is generated.

誤り訂正符号化部207aは、第一カウント部701が出力する検知信号がLowの場合は、誤り訂正符号化を行わず、入力された画素データをそのまま第一のデータとして出力する。一方、誤り訂正符号化部207aは、第一カウント部701が出力する検知信号がHighの場合に誤り訂正符号化を行い、入力された画素データに誤り訂正符号化の処理を行った上で第一のデータとして出力する。結果、誤り訂正符号化部207aは、水平同期信号の発生から基準クロックをカウントして判定される所定期間を除いた残りの期間のデータにおいて、誤り訂正符号化を実行することになる。なお、誤り訂正処理自体は、第1の実施形態(誤り訂正符号化部207)と同様である。さらに、誤り訂正符号化部207aは、誤り訂正符号化を行ったデータに対してHigh、誤り訂正符号化を行っていないデータに対してLowを示すイネーブル信号を、同期コード検出回路209aに出力する。 When the detection signal output from the first counting unit 701 is Low, the error correction encoding unit 207a does not perform error correction encoding and outputs the input pixel data as it is as the first data. On the other hand, the error correction coding unit 207a performs error correction coding when the detection signal output from the first counting unit 701 is High, performs error correction coding processing on the input pixel data, and then performs the error correction coding process. Output as one data. As a result, the error correction coding unit 207a executes the error correction coding on the data of the remaining period excluding the predetermined period determined by counting the reference clock from the generation of the horizontal synchronization signal. The error correction process itself is the same as in the first embodiment (error correction coding unit 207). Further, the error correction coding unit 207a outputs, to the synchronization code detection circuit 209a, an enable signal indicating High for the data that has been subjected to the error correction coding and Low for the data that has not been subjected to the error correction coding. ..

なお、第2実施形態ではこのイネーブル信号を直接、同期コード検出回路209aへ接続するものとするが、この方法に限らない。例えば、イネーブル信号はスクランブル回路205を経由して、同期コード検出回路209aへ提供されるようにしてもよい。また、例えば、別途カウンタ部を持ち、同期コード検出回路209aの動作するタイミングを指示する構成にしてもよい。この場合は、誤り訂正符号化部207aからイネーブル信号は出力しない。 In the second embodiment, the enable signal is directly connected to the sync code detection circuit 209a, but the method is not limited to this. For example, the enable signal may be provided to the sync code detection circuit 209a via the scramble circuit 205. In addition, for example, a configuration may be adopted in which a separate counter unit is provided to instruct the operation timing of the synchronization code detection circuit 209a. In this case, the error correction coding unit 207a does not output the enable signal.

同期コード検出回路209aは、誤り訂正符号化部207aの出力するイネーブル信号がLowの場合は、第二のデータの中から同期コードと同じパターンを検出する動作を停止する。誤り訂正符号化部207aの出力するイネーブル信号がHighの場合は、第二のデータの中から同期コードと同じパターンを検出する動作を行う。パターンの検出処理自体は第1実施形態(同期コード検出回路209)と同様である。結果、同期コード検出回路209aとデータ変換部208は、水平同期信号の発生から、基準クロックをカウントして判定される所定期間を除いた残りの期間のデータにおいてデータ部分の抽出と変換を実行することになる。 The sync code detection circuit 209a stops the operation of detecting the same pattern as the sync code in the second data when the enable signal output from the error correction coding unit 207a is Low. When the enable signal output from the error correction coding unit 207a is High, the operation of detecting the same pattern as the synchronization code in the second data is performed. The pattern detection process itself is the same as in the first embodiment (synchronization code detection circuit 209). As a result, the synchronization code detection circuit 209a and the data conversion unit 208 execute the extraction and conversion of the data portion in the data of the remaining period excluding the predetermined period determined by counting the reference clock from the generation of the horizontal synchronization signal. It will be.

図6に戻り、画像処理部130において、第二カウント部601は、同期コード検出回路115が出力する第二の同期コード検出信号と第二カウント部601の出力する信号との論理積である第三の同期コード検出信号を持ってカウント値をリセットする。そして、第二カウント部601は、シリアルパラレル変換器112のCDR機能が復元したクロック信号のカウントアップを開始する。ここで、第二カウント部601の出力信号の初期値はHighであるとする。その後、第二カウント部601は、カウント値と所定値との比較を行い、カウント値が所定値よりも大きい場合にHigh、小さい場合にLowを出力する。所定値は、画像処理部130内にある設定レジスタに保持されているものとする。また、第二カウント部601が用いる所定値は、送信データ処理回路104aの第一カウント部701が用いる所定値と対応付いたものである。具体的には、誤り訂正符号化部207aで誤り訂正符号化の処理をした第一のデータに対応した第三のデータをワードアライン回路113が出力したタイミングで第二カウント部601の出力がHighとなるように、所定値が設定されている。 Returning to FIG. 6, in the image processing unit 130, the second count unit 601 is the logical product of the second sync code detection signal output by the sync code detection circuit 115 and the signal output by the second count unit 601. The count value is reset with the third sync code detection signal. Then, the second counting unit 601 starts counting up the clock signal restored by the CDR function of the serial/parallel converter 112. Here, it is assumed that the initial value of the output signal of the second counting unit 601 is High. After that, the second counting unit 601 compares the count value with a predetermined value, and outputs High when the count value is larger than the predetermined value, and outputs Low when the count value is smaller than the predetermined value. The predetermined value is held in the setting register in the image processing unit 130. Further, the predetermined value used by the second counting unit 601 is associated with the predetermined value used by the first counting unit 701 of the transmission data processing circuit 104a. Specifically, the output of the second counting unit 601 is High at the timing when the word align circuit 113 outputs the third data corresponding to the first data that has been subjected to the error correction coding processing by the error correction coding unit 207a. The predetermined value is set so that

受信データ処理回路116aは、ワードアライン回路113からのデータ信号に対して第三の同期コード検出信号から第三のデータの先頭を特定し、画素データを復元する。復元された画素データは、メモリに格納されたり、所定の画像処理が施されたりする。第三の同期コード検出信号は、第二カウント部601の出力信号がHighである間に同期コード検出回路115が同期コードを検出したことを示す第二の同期コード検出信号を出力したことを示す。 The reception data processing circuit 116a specifies the beginning of the third data from the third synchronization code detection signal for the data signal from the word align circuit 113, and restores the pixel data. The restored pixel data is stored in the memory or subjected to predetermined image processing. The third sync code detection signal indicates that the sync code detection circuit 115 has output the second sync code detection signal indicating that the sync code has been detected while the output signal of the second count unit 601 is High. ..

受信データ処理回路116aの構成例を図8に示す。図8において、第1実施形態と同の様の機能を有する構成には、図3に示される構成と同じ参照番号を付している。第三カウント部801は、第三の同期コード検出信号に応じてカウント値をリセットし、シリアルパラレル変換器112のCDR機能が復元したクロック信号のカウントアップを開始する。その後、第三カウント部801は、カウント値と所定値とを比較し、カウント値が所定値より大きい場合にHigh、小さい場合にLowを出力する。第三カウント部801が用いる所定値は、画像処理部130内の設定レジスタに保持されているものとする。また、この所定値は第一カウント部701の所定値と対応付いたものである。具体的には、誤り訂正符号化部207aで誤り訂正符号化の処理をした第一のデータに対応した第四のデータをデスクランブル回路301が出力したタイミングでカウント値がHighとなるように、所定値が設定されている。 A configuration example of the reception data processing circuit 116a is shown in FIG. In FIG. 8, configurations having the same functions as those of the first embodiment are designated by the same reference numerals as the configurations shown in FIG. The third count unit 801 resets the count value according to the third synchronization code detection signal, and starts counting up the clock signal restored by the CDR function of the serial/parallel converter 112. After that, the third counting unit 801 compares the count value with the predetermined value, and outputs High when the count value is larger than the predetermined value, and outputs Low when the count value is smaller than the predetermined value. The predetermined value used by the third counting unit 801 is held in the setting register in the image processing unit 130. The predetermined value is associated with the predetermined value of the first counting section 701. Specifically, the count value becomes High at the timing when the descramble circuit 301 outputs the fourth data corresponding to the first data that has been subjected to the error correction coding processing by the error correction coding unit 207a. A predetermined value is set.

有効データ取得部300は、ワードアライン回路113からのデータ信号に対して第三の同期コード検出信号から第三のデータを特定、分離し、第三のデータをデスクランブル回路301へ出力する。第三の同期コード検出信号が用いられるため、有効データ取得部300は、受信されたシリアルデータのうちの、同期信号からの所定期間を除く残りの期間のデータに対応するデータから同期コードの検出を行うことになる。また、シリアル送信されたデータからシリアルパラレル変換器112のCDR機能が復元したクロックのカウント値に基づいて、同期コードに基づいて検出された同期信号からの上記所定期間の経過が判定される。誤り訂正復号化部302aは、第三カウント部801が出力する信号がLowの場合は、誤り訂正復号化を行わず、入力された第四のデータをそのまま出力する。第三カウント部801が出力する信号がHighの場合は、誤り訂正復号化部302aは誤り訂正復号化を行い、入力された第四のデータに誤り訂正復号化の処理を行った上で出力する。 The valid data acquisition unit 300 specifies and separates the third data from the third sync code detection signal for the data signal from the word align circuit 113, and outputs the third data to the descramble circuit 301. Since the third synchronization code detection signal is used, the valid data acquisition unit 300 detects the synchronization code from the data corresponding to the data in the remaining period of the received serial data excluding the predetermined period from the synchronization signal. Will be done. Further, based on the count value of the clock restored by the CDR function of the serial/parallel converter 112 from the serially transmitted data, it is determined whether or not the predetermined period has elapsed from the sync signal detected based on the sync code. When the signal output from the third counting unit 801 is Low, the error correction decoding unit 302a does not perform error correction decoding and outputs the input fourth data as it is. When the signal output from the third counting unit 801 is High, the error correction decoding unit 302a performs error correction decoding, performs error correction decoding processing on the input fourth data, and then outputs the processed fourth data. ..

以上説明した画素データ、第一のデータ、第二のデータ、第三のデータ、第四のデータ、および誤り訂正復号化部302aの出力データの関係を図9に示す。図4と同じ参照番号が付されたデータ構成は第1実施形態と同様である。 FIG. 9 shows the relationship among the pixel data, the first data, the second data, the third data, the fourth data, and the output data of the error correction decoding unit 302a described above. The data structure with the same reference numerals as in FIG. 4 is the same as that in the first embodiment.

期間910は、誤り訂正符号化部207aが誤り訂正符号化を行わない期間、すなわち、第一カウント部701がLowを出力している期間である。期間911は、誤り訂正符号化部207aが誤り訂正符号化を行う期間、すなわち、第一カウント部701がHighを出力している期間である。期間911の画素データについて誤り訂正のためのパリティ401が付加される。 A period 910 is a period in which the error correction coding unit 207a does not perform error correction coding, that is, a period in which the first counting unit 701 outputs Low. A period 911 is a period in which the error correction coding unit 207a performs error correction coding, that is, a period in which the first counting unit 701 outputs High. Parity 401 for error correction is added to the pixel data in the period 911.

期間912は、同期コード検出回路209aが同期コードと同じパターンを検出する動作を停止している期間、すなわち、誤り訂正符号化部207aが出力するイネーブル信号がLowとなっている期間である。期間913は、同期コード検出回路209aが同期コードと同じパターンを検出する動作を行う期間、すなわち、誤り訂正符号化部207aが出力するイネーブル信号がHighとなっている期間である。期間913の第二のデータについて同期コードと同じパターンのデータの抽出が実行される。図9の例では、同期コードと同じパターンを持つデータ部分402が検出され、異なるパターンのデータ部分403に置き換えられて第三のデータが形成された様子が示されている。 A period 912 is a period in which the sync code detection circuit 209a stops the operation of detecting the same pattern as the sync code, that is, a period in which the enable signal output from the error correction coding unit 207a is Low. The period 913 is a period in which the sync code detection circuit 209a performs an operation of detecting the same pattern as the sync code, that is, a period in which the enable signal output from the error correction coding unit 207a is High. Extraction of data having the same pattern as the synchronization code is executed for the second data of the period 913. The example of FIG. 9 shows that the data portion 402 having the same pattern as the synchronization code is detected and replaced with the data portion 403 having a different pattern to form the third data.

期間914は、誤り訂正復号化部302aが誤り訂正復号化を行わない期間、すなわち、第三カウント部801がLowを出力している期間である。期間915は、誤り訂正復号化部302aが誤り訂正復号化を行う期間、すなわち、第三カウント部801がHighを出力している期間である。期間915において誤り訂正復号化が実行され、データ部分403がデスクランブルされたデータ404が訂正され、元の画素データ400が出力データとして得られることになる。 A period 914 is a period in which the error correction decoding unit 302a does not perform error correction decoding, that is, a period in which the third counting unit 801 outputs Low. A period 915 is a period in which the error correction decoding unit 302a performs error correction decoding, that is, a period in which the third counting unit 801 outputs High. In the period 915, error correction decoding is executed, the data 403 in which the data portion 403 is descrambled is corrected, and the original pixel data 400 is obtained as output data.

以上、第2実施形態によれば、誤り訂正符号化およびスクランブル処理を施す期間と同期コードの検出期間を限定することでセンサ部120、画像処理部130の処理の負荷を低減するとともに、本来検出すべき同期コードを確実に検出することが可能である。なお、上記実施形態では、水平同期信号の発生からの所定期間について誤り訂正符号化/復号化を実行しないようにしたが、第1実施形態と同様に画素データの全体について誤り訂正符号化/復号化が実行されてもよい。 As described above, according to the second embodiment, the processing load of the sensor unit 120 and the image processing unit 130 is reduced and the original detection is performed by limiting the period for performing the error correction coding and the scrambling process and the period for detecting the synchronization code. It is possible to reliably detect the synchronization code to be used. In the above embodiment, the error correction coding/decoding is not executed for a predetermined period from the generation of the horizontal sync signal, but the error correction coding/decoding is performed for the entire pixel data as in the first embodiment. May be performed.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。すなわち、上記実施形態では、画像信号と同期信号(垂直同期信号、水平同期信号)とからシリアルデータを生成しシリアル送受信する撮像装置の例を示したがこれに限られるものではない。例えば、送信対象のデータは画像データに限られるものではなく、送信形態もシリアル送信に限られない。すなわち、何らかの制御信号を表す制御コードが付加されたデータを送信/受信するデータ処理装置の構成にも本発明を適用できることは明らかである。また、そのようなデータ処理装置では、スクランブル回路205およびデスクランブル回路301によるスクランブル処理は必須ではなく、省略されてもよい。 Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes can be made within the scope of the gist thereof. That is, in the above-described embodiment, the example of the image pickup apparatus that generates serial data from the image signal and the synchronizing signal (vertical synchronizing signal, horizontal synchronizing signal) and serially transmits/receives is not limited to this. For example, the data to be transmitted is not limited to image data, and the transmission form is not limited to serial transmission. That is, it is obvious that the present invention can be applied to the configuration of the data processing device that transmits/receives the data to which the control code representing some control signal is added. Further, in such a data processing device, the scramble processing by the scramble circuit 205 and the descramble circuit 301 is not essential and may be omitted.

従って、上記によれば、データ処理装置は、処理対象のデータに誤り訂正符号化して第一のデータを生成し、第一のデータと制御信号を表す制御コードとを用いて、制御コードが付加された送信対象のデータを生成し、送信する。ここで、データ処理装置は、送信対象のデータを生成する過程の、制御コードの付加対象のデータについて、当該制御コードと同じパターンのデータ部分を検出する。付加対象のデータからそのようなデータ部分が検出されると、データ処理装置は、誤り訂正符号化による訂正が可能な範囲で、そのデータ部分を制御コードとは異なるパターンに変換して第三のデータを生成する。また、こうして送信されたデータの受信側では、受信された送信対象のデータから制御コードを分離して得られたデータから、誤り訂正復号処理を含む処理を施して、元の処理対象のデータを取得する。 Therefore, according to the above, the data processing device generates the first data by performing error correction coding on the data to be processed, and adds the control code using the first data and the control code representing the control signal. The generated transmission target data is generated and transmitted. Here, the data processing device detects a data portion having the same pattern as the control code in the data to be added with the control code in the process of generating the data to be transmitted. When such a data portion is detected from the data to be added, the data processing device converts the data portion into a pattern different from the control code within a range that can be corrected by error correction coding, and Generate data. In addition, on the receiving side of the data transmitted in this way, the data obtained by separating the control code from the received transmission target data is subjected to processing including error correction decoding processing, and the original processing target data is processed. get.

(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program. It can also be realized by the processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

101:発振器、102:タイミング信号発生器(TG)、103:画素部、104:送信データ処理回路、105:PLL、106:パラレルシリアル変換器、107:送信ドライバ、110:同期信号発生器(SSG)、111:受信ドライバ、112:シリアルパラレル変換器、113:ワードアライン回路、115:同期コード検出回路、116:受信データ処理回路、120:センサ部、130:画像処理部 101: oscillator, 102: timing signal generator (TG), 103: pixel portion, 104: transmission data processing circuit, 105: PLL, 106: parallel-serial converter, 107: transmission driver, 110: synchronization signal generator (SSG) ), 111: reception driver, 112: serial-parallel converter, 113: word align circuit, 115: synchronization code detection circuit, 116: reception data processing circuit, 120: sensor unit, 130: image processing unit

Claims (26)

処理対象のデータに誤り訂正符号化して第一のデータを生成する符号化手段と、
前記第一のデータと制御信号を表す制御コードとを用いて、前記制御コードが付加された送信対象のデータを生成する生成手段と、
前記送信対象のデータを送信する送信手段と、を備え、
前記生成手段は、
送信対象のデータを生成する過程の、前記制御コードの付加対象のデータについて、前記制御コードと同じパターンのデータ部分を検出する検出手段と、
前記誤り訂正符号化による訂正が可能な範囲で、前記付加対象のデータの前記データ部分を前記制御コードと異なるパターンに変換する変換手段と、を備えることを特徴とするデータ処理装置。
Coding means for performing error correction coding on the data to be processed to generate first data,
Using the first data and a control code representing a control signal, a generation means for generating data to be transmitted to which the control code is added,
A transmitting unit that transmits the data to be transmitted,
The generating means is
For the data to be added with the control code in the process of generating the data to be transmitted, detection means for detecting a data portion having the same pattern as the control code,
A data processing device, comprising: a conversion unit that converts the data portion of the data to be added into a pattern different from the control code within a range that can be corrected by the error correction coding.
前記送信手段により送信されたデータを受信する受信手段と、
前記受信手段により受信されたデータから前記制御コードを分離する分離手段と、
前記制御コードを分離して得られたデータから、誤り訂正復号化を含む処理により前記処理対象のデータを取得する処理手段と、をさらに備えることを特徴とする請求項1に記載のデータ処理装置。
Receiving means for receiving the data transmitted by the transmitting means,
Separating means for separating the control code from the data received by the receiving means,
The data processing apparatus according to claim 1, further comprising: a processing unit that acquires the data to be processed from the data obtained by separating the control code by a process including error correction decoding. ..
イメージセンサから読み出した画像信号を表すデータに誤り訂正符号化して第一のデータを生成する符号化手段と、
前記第一のデータにクロック情報を埋め込むための符号化処理を施して第二のデータを生成する処理手段と、
前記第二のデータにおいて、同期信号を表す同期コードと同じパターンのデータ部分を検出する検出手段と、
前記誤り訂正符号化による訂正が可能な範囲で、前記データ部分を前記同期コードと異なるパターンに変換して第三のデータを生成する変換手段と、
前記同期信号のタイミングに基づいて前記第三のデータに前記同期コードを付加して、シリアル送信する送信手段と、を備えることを特徴とする撮像装置。
Coding means for generating first data by performing error correction coding on data representing an image signal read from the image sensor,
Processing means for performing encoding processing for embedding clock information in the first data to generate second data;
In the second data, detection means for detecting a data portion having the same pattern as a sync code representing a sync signal,
Conversion means for converting the data portion into a pattern different from the synchronization code and generating third data within a range that can be corrected by the error correction coding;
An image pickup apparatus comprising: a transmission unit that adds the synchronization code to the third data based on the timing of the synchronization signal and serially transmits the synchronization code.
前記同期コードは、画像信号の読み出しのための垂直同期信号と水平同期信号を表すことを特徴とする請求項3に記載の撮像装置。 The image pickup apparatus according to claim 3, wherein the sync code represents a vertical sync signal and a horizontal sync signal for reading an image signal. 前記処理手段は、前記第一のデータをスクランブル処理することを含む、ことを特徴とする請求項3または4に記載の撮像装置。 The image pickup apparatus according to claim 3, wherein the processing unit includes scrambling the first data. 前記処理手段は、前記第一のデータの1シンボル当たりのビット数を変更することを含む、ことを特徴とする請求項3乃至5のいずれか1項に記載の撮像装置。 The imaging device according to claim 3, wherein the processing unit includes changing the number of bits per symbol of the first data. 前記送信手段により送信されたデータを受信する受信手段と、
前記受信手段により受信されたデータから前記同期コードを検出し、前記同期コードと前記第三のデータを分離する分離手段と、
前記第三のデータに前記符号化処理に対応する復号処理を施して得られたデータを誤り訂正復号化して前記画像信号を表すデータを取得する復号化手段と、をさらに備えることを特徴とする請求項3乃至6のいずれか1項に記載の撮像装置。
Receiving means for receiving the data transmitted by the transmitting means,
Separation means for detecting the synchronization code from the data received by the reception means, and separating the synchronization code and the third data,
The third data is further subjected to a decoding process corresponding to the encoding process, and the data obtained by performing error correction decoding to obtain data representing the image signal is further included. The image pickup apparatus according to claim 3.
前記変換手段は、前記同期信号の発生から所定期間を除いた残りの期間のデータにおいて前記データ部分の抽出と変換を実行し、
前記分離手段は、前記受信手段により受信されたデータのうち前記残りの期間のデータに対応するデータから前記同期コードの検出を行うことを特徴とする請求項7に記載の撮像装置。
The conversion means performs extraction and conversion of the data portion in the data of the remaining period excluding a predetermined period from the generation of the synchronization signal,
The image pickup apparatus according to claim 7, wherein the separation unit detects the synchronization code from data corresponding to the data in the remaining period of the data received by the reception unit.
前記分離手段は、前記同期コードに基づいて検出された同期信号から前記所定期間を除いた期間のデータについて前記同期コードの検出と分離を行うことを特徴とする請求項8に記載の撮像装置。 9. The image pickup apparatus according to claim 8, wherein the separating unit detects and separates the sync code for data in a period except the predetermined period from the sync signal detected based on the sync code. 前記符号化手段は、前記同期信号の発生から前記残りの期間のデータについて前記誤り訂正符号化を実行し、
前記復号化手段は、前記第三のデータのうち前記残りの期間のデータに対応するデータについて前記誤り訂正復号化を実行することを特徴とする請求項8または9に記載の撮像装置。
The encoding means performs the error correction encoding on the data in the remaining period from the generation of the synchronization signal,
10. The image pickup apparatus according to claim 8, wherein the decoding unit performs the error correction decoding on the data corresponding to the data in the remaining period of the third data.
前記復号化手段は、前記第三のデータのうち、前記同期コードに基づいて検出された同期信号から前記所定期間を除いた期間のデータについて前記誤り訂正復号化を実行することを特徴とする請求項10に記載の撮像装置。 The decoding means executes the error correction decoding on data of a period of the third data that is obtained by removing the predetermined period from a synchronization signal detected based on the synchronization code. Item 10. The imaging device according to item 10. 前記送信手段によりシリアル送信されたデータから再生したクロックのカウント値に基づいて、前記同期コードに基づいて検出された同期信号からの前記所定期間が判定されることを特徴とする請求項9又は11に記載の撮像装置。 12. The predetermined period from the synchronization signal detected based on the synchronization code is determined based on a count value of a clock reproduced from the data serially transmitted by the transmission unit. The imaging device according to. 基準クロックを発生する発振器と、
前記基準クロックに同期して水平同期信号と垂直同期信号を発生する発生手段と、をさらに備え、
前記水平同期信号と前記垂直同期信号に同期して、前記イメージセンサからの画像信号の読み出しが行われ、
前記送信手段は、前記水平同期信号に同期して前記同期コードを前記第三のデータに付加することを特徴とする請求項3乃至12のいずれか1項に記載の撮像装置。
An oscillator that generates a reference clock,
Generating means for generating a horizontal synchronizing signal and a vertical synchronizing signal in synchronization with the reference clock,
In synchronization with the horizontal synchronization signal and the vertical synchronization signal, the image signal is read from the image sensor,
13. The image pickup apparatus according to claim 3, wherein the transmission unit adds the synchronization code to the third data in synchronization with the horizontal synchronization signal.
処理対象のデータに誤り訂正符号化して第一のデータを生成する符号化工程と、
前記第一のデータと制御信号を表す制御コードとを用いて、前記制御コードが付加された送信対象のデータを生成する生成工程と、
前記送信対象のデータを送信する送信工程と、を備え、
前記生成工程は、
送信対象のデータを生成する過程の、前記制御コードの付加対象のデータについて、前記制御コードと同じパターンのデータ部分を検出する検出工程と、
前記誤り訂正符号化による訂正が可能な範囲で、前記付加対象のデータの前記データ部分を前記制御コードと異なるパターンに変換する変換工程と、を備えることを特徴とするデータ処理方法。
An encoding step of performing error correction encoding on the data to be processed to generate first data,
Using the first data and a control code representing a control signal, a generation step of generating transmission target data to which the control code is added,
A transmitting step of transmitting the data to be transmitted,
The generation step is
In the process of generating data to be transmitted, for the data to be added with the control code, a detection step of detecting a data portion having the same pattern as the control code,
And a conversion step of converting the data portion of the data to be added into a pattern different from the control code within a range that can be corrected by the error correction encoding.
前記送信工程により送信されたデータを受信する受信工程と、
前記受信工程により受信されたデータから前記制御コードを分離する分離工程と、
前記制御コードを分離して得られたデータから、誤り訂正復号化を含む処理により前記処理対象のデータを取得する処理工程と、をさらに備えることを特徴とする請求項14に記載のデータ処理方法。
A receiving step of receiving the data transmitted by the transmitting step,
A separating step of separating the control code from the data received by the receiving step;
The data processing method according to claim 14, further comprising a processing step of acquiring the processing target data from the data obtained by separating the control code by a process including error correction decoding. ..
イメージセンサを備えた撮像装置におけるデータの処理方法であって、
イメージセンサから読み出した画像信号を表すデータに誤り訂正符号化して第一のデータを生成する符号化工程と、
前記第一のデータにクロック情報を埋め込むための符号化処理を施して第二のデータを生成する処理工程と、
前記第二のデータにおいて、同期信号を表す同期コードと同じパターンのデータ部分を検出する検出工程と、
前記誤り訂正符号化による訂正が可能な範囲で、前記データ部分を前記同期コードと異なるパターンに変換して第三のデータを生成する変換工程と、
前記同期信号のタイミングに基づいて前記第三のデータに前記同期コードを付加して、シリアル送信する送信工程と、を備えることを特徴とするデータ処理方法。
A method of processing data in an image pickup device equipped with an image sensor, comprising:
An encoding step of generating error correction encoding data representing an image signal read from the image sensor to generate first data,
A processing step of performing encoding processing for embedding clock information in the first data to generate second data;
In the second data, a detection step of detecting a data portion having the same pattern as a sync code representing a sync signal,
A conversion step of converting the data portion into a pattern different from the synchronization code and generating third data within a range that can be corrected by the error correction encoding;
A step of adding the synchronization code to the third data on the basis of the timing of the synchronization signal and performing serial transmission, the data processing method.
前記同期コードは、画像信号の読み出しのための垂直同期信号と水平同期信号を表すことを特徴とする請求項16に記載のデータ処理方法。 17. The data processing method according to claim 16, wherein the synchronization code represents a vertical synchronization signal and a horizontal synchronization signal for reading an image signal. 前記処理工程は、前記第一のデータをスクランブル処理することを含む、ことを特徴とする請求項16または17に記載のデータ処理方法。 18. The data processing method according to claim 16 or 17, wherein the processing step includes scrambling the first data. 前記処理工程は、前記第一のデータの1シンボル当たりのビット数を変更することを含む、ことを特徴とする請求項16乃至18のいずれか1項に記載のデータ処理方法。 19. The data processing method according to claim 16, wherein the processing step includes changing the number of bits per symbol of the first data. 前記送信工程により送信されたデータを受信する受信工程と、
前記受信工程により受信されたデータから前記同期コードを検出し、前記同期コードと前記第三のデータを分離する分離工程と、
前記第三のデータに前記符号化処理に対応する復号処理を施して得られたデータを誤り訂正復号化して前記画像信号を表すデータを取得する復号化工程と、をさらに備えることを特徴とする請求項16乃至19のいずれか1項に記載のデータ処理方法。
A receiving step of receiving the data transmitted by the transmitting step,
A separation step of detecting the synchronization code from the data received by the reception step, and separating the synchronization code and the third data;
And a decoding step of performing error correction decoding on the data obtained by subjecting the third data to a decoding process corresponding to the encoding process to obtain data representing the image signal. The data processing method according to any one of claims 16 to 19.
前記変換工程は、前記同期信号の発生から所定期間を除いた残りの期間のデータにおいて前記データ部分の抽出と変換を実行し、
前記分離工程は、前記受信工程により受信されたデータのうち前記残りの期間のデータに対応するデータから前記同期コードの検出を行うことを特徴とする請求項20に記載のデータ処理方法。
The conversion step performs extraction and conversion of the data portion in the data of the remaining period excluding a predetermined period from the generation of the synchronization signal,
21. The data processing method according to claim 20, wherein the separating step detects the synchronization code from data corresponding to the data in the remaining period among the data received in the receiving step.
前記分離工程は、前記同期コードに基づいて検出された同期信号から前記所定期間を除いた期間のデータについて前記同期コードの検出と分離を行うことを特徴とする請求項21に記載のデータ処理方法。 22. The data processing method according to claim 21, wherein in the separating step, the synchronization code is detected and separated from data in a period excluding the predetermined period from a synchronization signal detected based on the synchronization code. .. 前記符号化工程は、前記同期信号の発生から前記残りの期間のデータについて前記誤り訂正符号化を実行し、
前記復号化工程は、前記第三のデータのうち前記残りの期間のデータに対応するデータについて前記誤り訂正復号化を実行することを特徴とする請求項21または22に記載のデータ処理方法。
The encoding step performs the error correction encoding on the data in the remaining period from the generation of the synchronization signal,
23. The data processing method according to claim 21, wherein in the decoding step, the error correction decoding is performed on data corresponding to data in the remaining period of the third data.
前記復号化工程は、前記第三のデータのうち、前記同期コードに基づいて検出された同期信号から前記所定期間を除いた期間のデータについて前記誤り訂正復号化を実行することを特徴とする請求項23に記載のデータ処理方法。 In the decoding step, the error correction decoding is performed on the data of the third data in a period excluding the predetermined period from the synchronization signal detected based on the synchronization code. Item 23. The data processing method according to Item 23. 前記送信工程によりシリアル送信されたデータから再生したクロックのカウント値に基づいて、前記同期コードに基づいて検出された同期信号からの前記所定期間が判定されることを特徴とする請求項22又は24に記載のデータ処理方法。 25. The predetermined period from the sync signal detected based on the sync code is determined based on a count value of a clock reproduced from the data serially transmitted in the transmitting step. The data processing method described in. 基準クロックに同期して発生した水平同期信号と垂直同期信号に同期して、前記イメージセンサからの画像信号の読み出しが行われ、
前記送信工程は、前記水平同期信号に同期して前記同期コードを前記第三のデータに付加することを特徴とする請求項16乃至25のいずれか1項に記載のデータ処理方法。
An image signal is read from the image sensor in synchronization with a horizontal synchronization signal and a vertical synchronization signal generated in synchronization with a reference clock,
The data processing method according to any one of claims 16 to 25, wherein the transmitting step adds the synchronization code to the third data in synchronization with the horizontal synchronization signal.
JP2018232834A 2018-12-12 2018-12-12 Imaging device, data processing device, and data processing method Pending JP2020096281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018232834A JP2020096281A (en) 2018-12-12 2018-12-12 Imaging device, data processing device, and data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018232834A JP2020096281A (en) 2018-12-12 2018-12-12 Imaging device, data processing device, and data processing method

Publications (1)

Publication Number Publication Date
JP2020096281A true JP2020096281A (en) 2020-06-18

Family

ID=71084191

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018232834A Pending JP2020096281A (en) 2018-12-12 2018-12-12 Imaging device, data processing device, and data processing method

Country Status (1)

Country Link
JP (1) JP2020096281A (en)

Similar Documents

Publication Publication Date Title
JP4858294B2 (en) Imaging device, imaging circuit, and image processing circuit
EP2421262B1 (en) Video signal receiption device and video signal transmission system
JP2013078377A5 (en)
US9036081B2 (en) Video signal transmission device, video signal reception device, and video signal transmission system
EP3920498B1 (en) Transmission device, transmission method, reception device, reception method, and transmission/reception device
JP5936030B2 (en) Information processing apparatus, information processing method, and program
JP2017011470A (en) Serial communication device and serial communication method
US10284838B2 (en) Method and apparatus for transmitting images captured by first and second image sensors
JP2015080702A (en) Endoscope device
JP2020096281A (en) Imaging device, data processing device, and data processing method
JP7692361B2 (en) Transmitting device, receiving device, and transmission system
US20180139404A1 (en) Image capturing apparatus
US20110285869A1 (en) Serial data sending and receiving apparatus and digital camera
JP2020088671A (en) Imaging device and signal processing method in the device
JP7611823B2 (en) Transmitting device and communication system
US20170063521A1 (en) Serial communication apparatus, communication system, and method for communication
JP6985846B2 (en) Signal processing device and signal processing method
JP2019149609A (en) Imaging apparatus and signal processing method in the same
JP2573766B2 (en) Video signal transceiver
JP6243210B2 (en) Serial data transmission device, serial data reception device, serial data transmission method, and serial data transmission program
JP2007274533A (en) Serial transmission transmitter, scramble processing method, receiver and system
JP4213000B2 (en) Data transfer method and transmitter
JP2024065771A (en) Receiver
JPH10285051A (en) Data transmission method
JP2022037647A (en) High-speed serial transmission circuit

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20210103

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210113