JP2015012400A - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP2015012400A
JP2015012400A JP2013135602A JP2013135602A JP2015012400A JP 2015012400 A JP2015012400 A JP 2015012400A JP 2013135602 A JP2013135602 A JP 2013135602A JP 2013135602 A JP2013135602 A JP 2013135602A JP 2015012400 A JP2015012400 A JP 2015012400A
Authority
JP
Japan
Prior art keywords
synchronization signal
pulse
image data
internal
line
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.)
Granted
Application number
JP2013135602A
Other languages
Japanese (ja)
Other versions
JP6049554B2 (en
Inventor
隆行 眞下
Takayuki Mashita
隆行 眞下
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions 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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2013135602A priority Critical patent/JP6049554B2/en
Publication of JP2015012400A publication Critical patent/JP2015012400A/en
Application granted granted Critical
Publication of JP6049554B2 publication Critical patent/JP6049554B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To reduce influence of an error in a synchronization signal caused by noise or the like on image quality on the reception side, when the synchronization signal is transmitted together with image data by serial communication.SOLUTION: An internal synchronization signal generation part 12 generates an internal synchronization signal having the same pulse period as a prescribed pulse period of an external synchronization signal. A data reception processing part 13 extracts image data and the external synchronization signal from a received transmission signal, and sequentially writes the image data into a line memory for each line on the basis of the internal synchronization signal. A line data reading part 14 sequentially reads out the image data from the line memory for each line on the basis of the internal synchronization signal. When an error detection part 17 detects that a pulse period of the internal synchronization signal and that of the external synchronization signal are not the same, the error detection part 17 causes image data written in a line memory in the pulse period of the internal synchronization signal to be discarded.

Description

本発明は、画像処理装置に関するものである。   The present invention relates to an image processing apparatus.

例えばLVDS(Low Voltage Differential Signaling)のように、高速シリアル通信で画像データを伝送する技術がある。   For example, there is a technique for transmitting image data by high-speed serial communication such as LVDS (Low Voltage Differential Signaling).

そのような高速シリアル通信で画像データを受信する場合、受信側では、例えば、1ラインの画素データを、外部クロックで1画素のデータずつラインメモリーに書き込んでいき、受信側の内部で同期信号を生成し、その同期信号に合わせて、2つのラインメモリーのうち、画像データを書き込むラインメモリーを切り替えている(例えば特許文献1参照)。   When receiving image data by such high-speed serial communication, on the receiving side, for example, one line of pixel data is written to the line memory one pixel at a time using an external clock, and a synchronization signal is generated inside the receiving side. The line memory in which the image data is written is switched among the two line memories in accordance with the generated synchronization signal (see, for example, Patent Document 1).

特開2012−56161号公報JP 2012-56161 A

例えばLVDSなどの高速シリアル通信技術では、シリアル通信ケーブルで画像データとともに同期信号を伝送することが可能である。同期信号は、同期パルスで同期タイミングを指定する信号である。   For example, in a high-speed serial communication technology such as LVDS, it is possible to transmit a synchronization signal together with image data using a serial communication cable. The synchronization signal is a signal that designates synchronization timing with a synchronization pulse.

画像データとともに同期信号を伝送する場合、伝送中に、静電ノイズなどのノイズがシリアル通信ケーブルに発生すると、受信側で、ノイズによる誤ったパルスが同期信号において検出され、誤った同期タイミングが検出されたり、ノイズにより同期パルスが消失し同期タイミングが正しく検出されなかったりすることがある。   When transmitting a synchronization signal together with image data, if noise such as electrostatic noise occurs in the serial communication cable during transmission, an erroneous pulse due to noise is detected in the synchronization signal on the receiving side, and an incorrect synchronization timing is detected. The sync pulse may be lost due to noise and the sync timing may not be detected correctly.

このように同期信号が正しく検出されない場合、1ラインの画像データの開始と終了が正しく設定されず、ラインメモリーに、1ラインずつ、正確に画像データが書き込まれなくなってしまう。   If the synchronization signal is not correctly detected in this way, the start and end of the image data for one line is not set correctly, and the image data cannot be written accurately to the line memory line by line.

例えば、ノイズによる誤った同期タイミングが検出された場合、画像のライン数が増加してしまい、ノイズが発生したラインの画像が乱れるだけではなく、そのラインより後続のラインでも画像が乱れてしまう。   For example, when an erroneous synchronization timing due to noise is detected, the number of lines of the image increases, and not only the image of the line in which the noise is generated is disturbed, but also the image is disturbed in the subsequent lines.

また、例えば、ノイズにより同期パルスが消失した場合、画像のライン数が減少してしまい、ノイズが発生したラインの画像が乱れるだけではなく、そのラインより後続のラインでも画像が乱れてしまう。   Further, for example, when the synchronization pulse disappears due to noise, the number of lines of the image is reduced, and not only the image of the line where the noise is generated is disturbed, but also the image is disturbed in the subsequent lines.

なお、そのようなノイズは、シリアル通信ケーブルにシールドを設置することで低減できるが、コストが増加してしまい、好ましくない。   Such noise can be reduced by installing a shield on the serial communication cable, but this increases the cost and is not preferable.

また、受信側で、受信したシリアルデータをパラレルデータに変換した後で、そのパラレルデータに対してデジタルフィルターを適用して、そのようなノイズを除去することが考えられるが、高速シリアル通信ではノイズの時間幅が同期信号の時間幅と同程度以上であるため、デジタルフィルターで選択的にノイズを除去することは困難である。   In addition, after converting the received serial data to parallel data on the receiving side, a digital filter may be applied to the parallel data to remove such noise. Therefore, it is difficult to selectively remove noise with a digital filter.

本発明は、上記の問題に鑑みてなされたものであり、シリアル通信で画像データとともに同期信号を伝送する場合において、受信側で、その同期信号に従って、1ラインずつ、画像データをラインメモリーに書き込んでいく際の、ノイズ等による同期信号のエラーの、画質への影響を低減する画像処理装置を得ることを目的とする。   The present invention has been made in view of the above problems, and when transmitting a synchronization signal together with image data by serial communication, the receiving side writes the image data into the line memory line by line according to the synchronization signal. An object of the present invention is to obtain an image processing apparatus that reduces the influence on the image quality of the error of the synchronization signal due to noise or the like.

本発明に係る画像処理装置は、画像データおよび外部同期信号を含む伝送信号をシリアル通信で受信する受信回路と、前記外部同期信号の規定パルス周期と同一のパルス周期の内部同期信号を生成する内部同期信号生成部と、受信された前記伝送信号から前記画像データおよび前記外部同期信号を抽出し、前記内部同期信号に基づき1ラインごとに、前記画像データを書き込むラインメモリーを順番に切り替えていき、前記画像データを前記ラインメモリーに書き込むデータ受信処理部と、前記内部同期信号に基づき1ラインごとに、前記画像データを読み出すラインメモリーを順番に切り替えていき、前記画像データを前記ラインメモリーから読み出すラインデータ読出部と、前記外部同期信号のパルス周期を検出するパルス周期検出部と、前記外部同期信号のパルス周期と前記内部同期信号のパルス周期とが同一ではないことを検出した場合、前記内部同期信号のそのパルス周期において前記ラインメモリーに書き込まれた前記画像データを破棄させるエラー検出部とを備える。   An image processing apparatus according to the present invention includes a receiving circuit that receives a transmission signal including image data and an external synchronization signal through serial communication, and an internal synchronization signal that generates an internal synchronization signal having the same pulse period as a specified pulse period of the external synchronization signal. Synchronizing signal generating unit, extracting the image data and the external synchronizing signal from the received transmission signal, sequentially switching the line memory for writing the image data for each line based on the internal synchronizing signal, A data reception processing unit that writes the image data to the line memory and a line memory that reads the image data for each line based on the internal synchronization signal are sequentially switched, and a line that reads the image data from the line memory. A data reading unit; and a pulse period detecting unit for detecting a pulse period of the external synchronization signal; When detecting that the pulse period of the external synchronization signal and the pulse period of the internal synchronization signal are not the same, error detection for discarding the image data written in the line memory in the pulse period of the internal synchronization signal A part.

本発明によれば、シリアル通信で画像データとともに同期信号を伝送する場合において、画像データとともに伝送されてくる同期信号に従って、1ラインずつ、画像データをラインメモリーに書き込んでいく際の、ノイズ等による同期信号のエラーの、画質への影響が低減される。   According to the present invention, when a synchronization signal is transmitted together with image data by serial communication, noise or the like is caused when writing the image data to the line memory line by line according to the synchronization signal transmitted together with the image data. The influence of the error of the synchronization signal on the image quality is reduced.

図1は、本発明の実施の形態に係る画像処理装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention. 図2は、伝送信号の一例を示す図である。FIG. 2 is a diagram illustrating an example of a transmission signal. 図3は、図1におけるエラー検出部17の動作について説明するフローチャートである。FIG. 3 is a flowchart for explaining the operation of the error detection unit 17 in FIG. 図4は、エラーが検出されない場合の各信号、各カウンターC1,C2,C3のカウント値、および、ラインメモリーLM1,LM2に対する画像データの書き込みおよび読み出しについて説明するタイミングチャートである。FIG. 4 is a timing chart illustrating each signal when no error is detected, count values of the counters C1, C2, and C3, and writing and reading of image data to and from the line memories LM1 and LM2. 図5は、外部同期信号にノイズパルスが重畳しエラーが検出される場合の各信号、各カウンターC1,C2,C3のカウント値、および、ラインメモリーLM1,LM2に対する画像データの書き込みおよび読み出しについて説明するタイミングチャートである。FIG. 5 illustrates each signal when the noise pulse is superimposed on the external synchronization signal and an error is detected, the count values of the counters C1, C2, and C3, and the writing and reading of the image data to and from the line memories LM1 and LM2. It is a timing chart to do. 図6は、ノイズパルスによって外部同期信号の同期パルスが消失しエラーが検出される場合の各信号、各カウンターC1,C2,C3のカウント値、および、ラインメモリーLM1,LM2に対する画像データの書き込みおよび読み出しについて説明するタイミングチャートである。FIG. 6 shows each signal when the synchronization pulse of the external synchronization signal disappears due to a noise pulse and an error is detected, the count values of the counters C1, C2, and C3, and the writing of image data to the line memories LM1 and LM2. It is a timing chart explaining reading. 図7は、内部同期信号と外部同期信号との位相ズレに起因してエラーが検出される場合の各信号、各カウンターC1,C2,C3のカウント値、および、ラインメモリーLM1,LM2に対する画像データの書き込みおよび読み出しについて説明するタイミングチャートである。FIG. 7 shows each signal when an error is detected due to a phase shift between the internal synchronization signal and the external synchronization signal, count values of the counters C1, C2, and C3, and image data for the line memories LM1 and LM2. 6 is a timing chart for explaining writing and reading of data.

以下、図に基づいて本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施の形態に係る画像処理装置の構成を示すブロック図である。図1に示す画像処理装置は、例えば、1ラインずつ、原稿画像を光学的に読み取り、その原稿画像の画像データを生成し出力する画像読取装置である。   FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus shown in FIG. 1 is an image reading apparatus that optically reads a document image line by line, generates image data of the document image, and outputs it.

図1に示す画像処理装置は、CCD(Charge Coupled Device)1、アナログフロントエンド(AFE)2、送信回路3、シリアル伝送路4、およびデータ処理装置5を備える。   The image processing apparatus shown in FIG. 1 includes a CCD (Charge Coupled Device) 1, an analog front end (AFE) 2, a transmission circuit 3, a serial transmission path 4, and a data processing apparatus 5.

CCD1は、例えば原稿画像などを光学的に読み取り、その画像に対応するアナログ信号を出力する撮像素子である。   The CCD 1 is an image sensor that optically reads, for example, a document image and outputs an analog signal corresponding to the image.

AFE2は、CCD1から出力されるアナログ信号に対してサンプリング、A/D(Analog to Digital)変換などを行い、そのアナログ電気信号に対応するデジタル信号を出力する回路である。   The AFE 2 is a circuit that performs sampling, A / D (Analog to Digital) conversion, and the like on an analog signal output from the CCD 1 and outputs a digital signal corresponding to the analog electric signal.

送信回路3は、デジタル信号から得られる伝送信号を、例えばLVDSなどの所定の高速シリアル通信方式でツイストペアケーブルなどのシリアル伝送路4へ送出する回路である。送信回路3は、シリアライザーを含む。   The transmission circuit 3 is a circuit that sends a transmission signal obtained from a digital signal to a serial transmission line 4 such as a twisted pair cable by a predetermined high-speed serial communication method such as LVDS. The transmission circuit 3 includes a serializer.

送信回路3は、画像データおよび外部同期信号を含む伝送信号をシリアル通信で送信する。外部同期信号は、同期パルスで、画像データを1ラインごとに区切るための信号である。この伝送信号は、クロックに同期して、複数のタイムスロットに時分割されており、外部同期信号は、その複数のタイムスロットのうちの1つで伝送される。外部同期信号は、ローレベルの同期パルスを有する。   The transmission circuit 3 transmits a transmission signal including image data and an external synchronization signal by serial communication. The external synchronization signal is a signal for dividing the image data for each line by a synchronization pulse. The transmission signal is time-divided into a plurality of time slots in synchronization with the clock, and the external synchronization signal is transmitted in one of the plurality of time slots. The external synchronization signal has a low level synchronization pulse.

図2は、伝送信号の一例を示す図である。例えば図2に示すように、伝送信号は、7つのタイムスロットに分割され、そのうちの1つが、外部同期信号の伝送に使用される。1つのタイムスロットは、クロックの周期長CLの時間長を有する。   FIG. 2 is a diagram illustrating an example of a transmission signal. For example, as shown in FIG. 2, the transmission signal is divided into seven time slots, one of which is used for transmission of the external synchronization signal. One time slot has a time length of a clock cycle length CL.

データ処理装置5は、シリアル伝送路4で送信回路3に接続されており、送信回路3から送信されてくる伝送信号を受信し、伝送信号から得られる画像データを1ラインずつ出力する。   The data processing device 5 is connected to the transmission circuit 3 through the serial transmission path 4, receives the transmission signal transmitted from the transmission circuit 3, and outputs image data obtained from the transmission signal line by line.

データ処理装置5は、受信回路11、内部同期信号生成部12、データ受信処理部13、ラインデータ読出部14、クロック生成部15、パルス周期検出部16、エラー検出部17、ラインメモリーLM1,LM2、およびカウンターC1,C2,C3を有する。   The data processing device 5 includes a reception circuit 11, an internal synchronization signal generation unit 12, a data reception processing unit 13, a line data reading unit 14, a clock generation unit 15, a pulse period detection unit 16, an error detection unit 17, and line memories LM1 and LM2. , And counters C1, C2, C3.

受信回路11は、画像データおよび外部同期信号を含む伝送信号をシリアル通信で受信する。この実施の形態では、受信回路11は、デシリアライザーを含む。   The receiving circuit 11 receives a transmission signal including image data and an external synchronization signal by serial communication. In this embodiment, the receiving circuit 11 includes a deserializer.

なお、送信回路3により、伝送信号に含まれる外部同期信号には、所定の規定パルス周期で同期パルスが存在するが、シリアル伝送路4において、同期パルスとは別のタイミングでノイズパルスが外部同期信号に重畳したり、ノイズパルスによって同期パルスが外部同期信号から消失したりすることがある。   Note that the external synchronization signal included in the transmission signal by the transmission circuit 3 has a synchronization pulse at a predetermined specified pulse period. However, in the serial transmission path 4, the noise pulse is externally synchronized at a timing different from the synchronization pulse. The sync pulse may be superposed on the signal, or the sync pulse may disappear from the external sync signal due to the noise pulse.

内部同期信号生成部12は、外部同期信号の規定パルス周期(つまり、送信回路3側での外部同期信号の周期)と同一のパルス周期の内部同期信号を生成する。   The internal synchronization signal generator 12 generates an internal synchronization signal having the same pulse period as the specified pulse period of the external synchronization signal (that is, the period of the external synchronization signal on the transmission circuit 3 side).

データ受信処理部13は、受信された伝送信号から画像データおよび外部同期信号を抽出し、外部同期信号の規定パルス周期と同一のパルス周期を有する内部同期信号に基づき1ラインごとに、画像データを書き込むラインメモリーを順番に切り替えていき(ここでは、ラインメモリーLM1,LM2を交互に切り替えて)、画像データをラインメモリーLM1,LM2に書き込む。   The data reception processing unit 13 extracts the image data and the external synchronization signal from the received transmission signal, and extracts the image data for each line based on the internal synchronization signal having the same pulse period as the specified pulse period of the external synchronization signal. The line memory to be written is sequentially switched (here, the line memories LM1 and LM2 are alternately switched), and the image data is written to the line memories LM1 and LM2.

ラインデータ読出部14は、外部同期信号の規定パルス周期と同一のパルス周期を有する内部同期信号に基づき1ラインごとに、画像データを読み出すラインメモリーLM1,LM2を順番に切り替えていき、画像データをラインメモリーLM1,LM2から読み出す。つまり、ラインデータ読出部14は、内部同期信号に基づき1ラインずつ、データ受信処理部13による書き込みが行われていないラインメモリーLM1,LM2から画像データを読み出し、図示せぬ後段の画像処理部へ出力する。   The line data reading unit 14 sequentially switches the line memories LM1 and LM2 for reading out image data for each line based on an internal synchronization signal having the same pulse period as the prescribed pulse period of the external synchronization signal. Read from the line memories LM1, LM2. That is, the line data reading unit 14 reads the image data from the line memories LM1 and LM2 that are not written by the data reception processing unit 13 line by line based on the internal synchronization signal, and sends the image data to a subsequent image processing unit (not shown). Output.

クロック生成部15は、受信された伝送信号からクロックを生成する。つまり、クロック生成部15は、上述の周期長CLを有するクロックを生成する。   The clock generation unit 15 generates a clock from the received transmission signal. That is, the clock generation unit 15 generates a clock having the above-described cycle length CL.

パルス周期検出部16は、外部同期信号のパルス周期(ここでは、パルスの立ち上がりエッジから次のパルスの立ち上がりエッジまでの時間)を検出する。   The pulse period detector 16 detects the pulse period of the external synchronization signal (here, the time from the rising edge of the pulse to the rising edge of the next pulse).

エラー検出部17は、外部同期信号のパルス周期と内部同期信号のパルス周期とが同一ではないことを検出した場合、内部同期信号のそのパルス周期においてラインメモリー(ラインメモリーLM1またはラインメモリーLM2)に書き込まれた画像データを破棄させる。   When the error detection unit 17 detects that the pulse period of the external synchronization signal and the pulse period of the internal synchronization signal are not the same, the error detection unit 17 stores the line synchronization (line memory LM1 or line memory LM2) in the pulse period of the internal synchronization signal. Discard the written image data.

この実施の形態では、エラー検出部17は、外部同期信号のパルス周期と内部同期信号のパルス周期とが同一ではないことを検出した場合、データ受信処理部13によるラインメモリーLM1,LM2の切り替えを禁止し、後続の画像データをラインメモリー(ラインメモリーLM1またはラインメモリーLM2)に上書きさせることで、内部同期信号のそのパルス周期においてそのラインメモリーに書き込まれた画像データを破棄させる。   In this embodiment, when the error detection unit 17 detects that the pulse period of the external synchronization signal and the pulse period of the internal synchronization signal are not the same, the data reception processing unit 13 switches the line memories LM1 and LM2. By prohibiting and overwriting the subsequent image data in the line memory (line memory LM1 or line memory LM2), the image data written in the line memory in the pulse cycle of the internal synchronization signal is discarded.

また、エラー検出部17は、内部同期信号の所定数の周期(この実施の形態では3周期)において連続して、内部同期信号の同期パルスのタイミングと外部同期信号のパルスのタイミングとが同一ではないことを検出した場合、内部同期信号の同期パルスのタイミングを外部同期信号のパルスのタイミングに同期させる。   In addition, the error detection unit 17 continues in a predetermined number of cycles (three cycles in this embodiment) of the internal synchronization signal, and the timing of the synchronization pulse of the internal synchronization signal and the timing of the pulse of the external synchronization signal are not the same. When it is detected that there is no signal, the timing of the synchronization pulse of the internal synchronization signal is synchronized with the timing of the pulse of the external synchronization signal.

また、ラインメモリーLM1,LM2は、少なくとも1ライン分の画像データを記憶するための記憶領域を有するメモリーである。   The line memories LM1 and LM2 are memories having a storage area for storing image data for at least one line.

カウンターC1は、クロック生成部15によるクロックで所定のカウント値(上述の規定パルス周期に対応する値)までカウントアップしていきリセットする。   The counter C1 counts up to a predetermined count value (a value corresponding to the above-described prescribed pulse period) with the clock generated by the clock generation unit 15 and resets the counter.

カウンターC2は、クロック生成部15によるクロックでカウントアップしていき外部同期信号のパルスでリセットする。なお、外部同期信号のパルスは、同期パルスまたはノイズパルスである。   The counter C2 is incremented by the clock generated by the clock generator 15 and reset by the pulse of the external synchronization signal. Note that the pulse of the external synchronization signal is a synchronization pulse or a noise pulse.

この実施の形態では、内部同期信号生成部12は、カウンターC1のカウント値が所定のカウント値であるときに内部同期信号の同期パルスを生成する。そして、エラー検出部17は、カウンターC1のカウント値とカウンターC2のカウント値とが同一ではない場合、外部同期信号のパルス周期と内部同期信号のパルス周期とが同一ではないと判定し、内部同期信号のそのパルス周期においてラインメモリー(ラインメモリーLM1またはラインメモリーLM2)に書き込まれた画像データを破棄させる。   In this embodiment, the internal synchronization signal generator 12 generates a synchronization pulse of the internal synchronization signal when the count value of the counter C1 is a predetermined count value. Then, when the count value of the counter C1 and the count value of the counter C2 are not the same, the error detection unit 17 determines that the pulse period of the external synchronization signal and the pulse period of the internal synchronization signal are not the same, and the internal synchronization The image data written in the line memory (line memory LM1 or line memory LM2) in the pulse cycle of the signal is discarded.

また、この実施の形態では、エラー検出部17は、内部同期信号の所定数の周期において連続して、内部同期信号の同期パルスのタイミングと外部同期信号のパルスのタイミングとが同一ではないことを検出した場合、第2カウンターのカウント値を第1カウンターにコピーして、内部同期信号の同期パルスのタイミングを外部同期信号のパルスのタイミングに同期させる。   Further, in this embodiment, the error detection unit 17 determines that the timing of the synchronization pulse of the internal synchronization signal and the timing of the pulse of the external synchronization signal are not the same in a predetermined number of cycles of the internal synchronization signal. When detected, the count value of the second counter is copied to the first counter, and the timing of the synchronization pulse of the internal synchronization signal is synchronized with the timing of the pulse of the external synchronization signal.

カウンターC3は、エラー検出部17が、内部同期信号の同期パルスのタイミングと外部同期信号のパルスのタイミングとが同一ではないことを連続して検出した回数をカウントする。   The counter C3 counts the number of times that the error detection unit 17 has continuously detected that the timing of the synchronization pulse of the internal synchronization signal and the timing of the pulse of the external synchronization signal are not the same.

なお、データ処理装置5は、例えば、ASIC(Application Specific Integrated Circuit)で実現される。   The data processing device 5 is realized by, for example, an ASIC (Application Specific Integrated Circuit).

次に、上記画像処理装置の動作について説明する。   Next, the operation of the image processing apparatus will be described.

この画像処理装置では、受信回路11が、伝送信号を受信し、データ受信処理部13が、伝送信号から得られる画像データをラインメモリーLM1,LM2に交互に書き込み、ラインデータ読出部14が、ラインメモリーLM1,LM2から1ラインずつ交互に画像データを読み出し出力する。   In this image processing apparatus, a receiving circuit 11 receives a transmission signal, a data reception processing unit 13 alternately writes image data obtained from the transmission signal in the line memories LM1 and LM2, and a line data reading unit 14 Image data is alternately read out from the memories LM1 and LM2 line by line.

他方、内部同期信号生成部12が、内部同期信号を生成するとともに、パルス周期検出部16が、伝送信号から得られる外部同期信号のパルス周期を検出し、エラー検出部17が、内部同期信号のパルス周期および外部同期信号のパルス周期に基づいて、伝送信号のエラーを以下のようにして検出し、ラインメモリーLM1,LM2の切り替えを禁止して、エラーの発生したラインの画像データを破棄させる。   On the other hand, the internal synchronization signal generation unit 12 generates the internal synchronization signal, the pulse cycle detection unit 16 detects the pulse cycle of the external synchronization signal obtained from the transmission signal, and the error detection unit 17 detects the internal synchronization signal. Based on the pulse period and the pulse period of the external synchronization signal, an error in the transmission signal is detected as follows, switching of the line memories LM1 and LM2 is prohibited, and the image data of the line in which the error has occurred is discarded.

なお、ラインメモリーLM1,LM2からの画像データの読み出しは、内部同期信号に従って実行されるため、ラインメモリーLM1,LM2から読み出される画像データにおいては、外部同期信号におけるエラーに起因したラインの増減は発生しない。   Note that reading of image data from the line memories LM1 and LM2 is executed in accordance with the internal synchronization signal, so in the image data read from the line memories LM1 and LM2, increase / decrease of lines due to an error in the external synchronization signal occurs. do not do.

図3は、図1におけるエラー検出部17の動作について説明するフローチャートである。   FIG. 3 is a flowchart for explaining the operation of the error detection unit 17 in FIG.

エラー検出部17は、クロック生成部15によるクロックごとに、現時点のカウンターC1のカウント値と現時点のカウンターC2のカウント値のいずれかがゼロであるか否かを判定する(ステップS1)。   The error detection unit 17 determines whether either the current count value of the counter C1 or the current count value of the counter C2 is zero for each clock generated by the clock generation unit 15 (step S1).

そして、カウンターC1,C2のいずれかの値がゼロである場合、エラー検出部17は、両者が等しいか否かを判定する(ステップS2)。   If any of the counters C1 and C2 is zero, the error detection unit 17 determines whether or not both are equal (step S2).

なお、外部同期信号にエラーがない場合、内部同期信号のパルス周期と外部同期信号のパルス周期は同一となり、内部同期信号のパルス周期と外部同期信号のパルス周期は同一であれば、カウンターC1のカウント値とカウンターC2のカウント値が等しくなる。   If there is no error in the external synchronization signal, the pulse period of the internal synchronization signal and the pulse period of the external synchronization signal are the same, and if the pulse period of the internal synchronization signal and the pulse period of the external synchronization signal are the same, the counter C1 The count value is equal to the count value of the counter C2.

このため、エラー検出部17は、エラー検出信号をローレベルに設定する(ステップS3)。また、エラー検出部17は、カウンターC3をリセットする(つまり、そのカウンター値をゼロにセットする)(ステップS4)。   For this reason, the error detection unit 17 sets the error detection signal to a low level (step S3). Further, the error detection unit 17 resets the counter C3 (that is, sets the counter value to zero) (step S4).

この実施の形態では、エラー検出部17は、ラインメモリーLM1,LM2の切り替えを許可する場合はローレベルを設定しラインメモリーLM1,LM2の切り替えを禁止する場合はハイレベルを設定するエラー検出信号を、データ受信処理部13およびラインデータ読出部14に供給し、データ受信処理部13およびラインデータ読出部14は、内部同期信号がローレベルであるときに、そのエラー検出信号のレベルに基づいて、書き込みおよび読み出しの対象となるラインメモリーLM1,LM2を切り替えるか否かを判定する。   In this embodiment, the error detection unit 17 sets an error detection signal that sets a low level when switching between the line memories LM1 and LM2 is permitted and sets a high level when switching between the line memories LM1 and LM2 is prohibited. The data reception processing unit 13 and the line data reading unit 14 supply the data reception processing unit 13 and the line data reading unit 14 when the internal synchronization signal is at a low level based on the level of the error detection signal. It is determined whether or not the line memories LM1 and LM2 to be written and read are switched.

このように、継続して外部同期信号にエラーが発生していない場合、エラー検出部17は、データ受信処理部13およびラインデータ読出部14でのラインメモリーLM1,LM2の切り替えを継続して許可する。   As described above, when an error does not occur in the external synchronization signal continuously, the error detection unit 17 continuously permits the switching of the line memories LM1 and LM2 in the data reception processing unit 13 and the line data reading unit 14. To do.

図4は、エラーが検出されない場合の各信号、各カウンターC1,C2,C3のカウント値、および、ラインメモリーLM1,LM2に対する画像データの書き込みおよび読み出しについて説明するタイミングチャートである。   FIG. 4 is a timing chart illustrating each signal when no error is detected, count values of the counters C1, C2, and C3, and writing and reading of image data to and from the line memories LM1 and LM2.

図4において、「受信データ」は、データ受信処理部13により得られる各ラインの画像データであり、「ライトイネーブル信号」は、ラインメモリーLM1,LM2に供給されるものである。   In FIG. 4, “reception data” is image data of each line obtained by the data reception processing unit 13, and “write enable signal” is supplied to the line memories LM1 and LM2.

図4に示す例では、外部同期信号のパルス周期が、クロックの周期長CLの10倍に設定されており、カウンターC1のカウント値が9であるときに、内部同期信号に同期パルスが生成される。   In the example shown in FIG. 4, when the pulse period of the external synchronization signal is set to 10 times the cycle length CL of the clock and the count value of the counter C1 is 9, a synchronization pulse is generated in the internal synchronization signal. The

外部同期信号にエラーが発生していない場合、内部同期信号の同期パルスのタイミング以外において、外部同期信号にパルスが発生していないため、外部同期信号のパルス周期が内部同期信号のパルス周期と同一となっており、エラー検出信号は、継続してローレベルとなり、ラインメモリーLM1,LM2の切り替えが継続して許可される。したがって、1ラインずつ、交互に、ラインメモリーLM1,LM2への画像データの書き込みが実行されるとともに、1ラインずつ、交互に、ラインメモリーLM1,LM2からの画像データの読み出しが実行される。   When no error occurs in the external sync signal, no pulse is generated in the external sync signal except for the timing of the sync pulse of the internal sync signal, so the pulse cycle of the external sync signal is the same as the pulse cycle of the internal sync signal Thus, the error detection signal continues to be at a low level, and switching of the line memories LM1 and LM2 is continuously permitted. Therefore, image data is written to the line memories LM1 and LM2 alternately line by line, and image data is read from the line memories LM1 and LM2 alternately line by line.

一方、ステップS2において、エラー検出部17は、現時点のカウンターC1のカウント値と現時点のカウンターC2のカウント値が等しくないと判定した場合、エラー検出部17は、エラー検出信号をハイレベルに設定する(ステップS6)。これにより、データ受信処理部13およびラインデータ読出部14でのラインメモリーLM1,LM2の切り替えが禁止される。このとき、カウンターC1の値がゼロであれば(ステップS6)、カウンターC3のカウント値を1だけ増加させる(ステップS7)。   On the other hand, when the error detection unit 17 determines in step S2 that the current count value of the counter C1 is not equal to the current count value of the counter C2, the error detection unit 17 sets the error detection signal to a high level. (Step S6). Thereby, switching of the line memories LM1 and LM2 in the data reception processing unit 13 and the line data reading unit 14 is prohibited. At this time, if the value of the counter C1 is zero (step S6), the count value of the counter C3 is increased by 1 (step S7).

そして、エラー検出部17は、カウンターC3のカウント値が所定値(ここでは3)以上か否かを判定する(ステップS8)。   Then, the error detection unit 17 determines whether or not the count value of the counter C3 is equal to or greater than a predetermined value (3 in this case) (step S8).

カウンターC3のカウント値は、カウンターC1,C2のカウント値が等しくないと連続して判定された回数を示している。通常、静電ノイズなどのノイズによるエラーは長時間連続して発生しにくいため、3ライン以上、カウンターC1,C2のカウント値が等しくないと連続して判定されることはほとんどない。   The count value of the counter C3 indicates the number of times that the count values of the counters C1 and C2 are continuously determined to be not equal. Normally, errors due to noise such as electrostatic noise are unlikely to occur continuously for a long time, and therefore, it is rarely determined that the count values of the counters C1 and C2 are not equal for three lines or more.

そのため、ノイズに起因してステップS2において現時点のカウンターC1のカウント値と現時点のカウンターC2のカウント値が等しくないと判定された場合には、カウンターC3のカウント値は2以下となり、エラー検出部17は、ステップS9において、カウンターC3のカウント値が3以上ではないと判定する。つまり、カウンターC3のカウント値が3以上となる前に、カウンターC1,C2のカウント値が等しくなり、ステップS3でカウンターC3がリセットされる。   Therefore, when it is determined in step S2 that the current count value of the counter C1 is not equal to the current count value of the counter C2 due to noise, the count value of the counter C3 is 2 or less, and the error detection unit 17 In step S9, it is determined that the count value of the counter C3 is not 3 or more. That is, before the count value of the counter C3 becomes 3 or more, the count values of the counters C1 and C2 become equal, and the counter C3 is reset in step S3.

図5は、外部同期信号にノイズパルスが重畳しエラーが検出される場合の各信号、各カウンターC1,C2,C3のカウント値、および、ラインメモリーLM1,LM2に対する画像データの書き込みおよび読み出しについて説明するタイミングチャートである。   FIG. 5 illustrates each signal when the noise pulse is superimposed on the external synchronization signal and an error is detected, the count values of the counters C1, C2, and C3, and the writing and reading of the image data to and from the line memories LM1 and LM2. It is a timing chart to do.

図5に示すように、外部同期信号にノイズパルスが重畳した場合、タイミングT1で、カウンターC1,C2のカウント値が異なるため、エラー検出信号は、ハイレベルへ変更され、ラインメモリーLM1,LM2の切り替えが禁止される。したがって、ラインメモリーLM1に対して、データ書き込み継続して実行され、順次、データが上書きされていく。   As shown in FIG. 5, when a noise pulse is superimposed on the external synchronization signal, the count values of the counters C1 and C2 are different at the timing T1, so that the error detection signal is changed to a high level, and the line memories LM1 and LM2 Switching is prohibited. Therefore, data writing is continuously executed to the line memory LM1, and data is sequentially overwritten.

その後、エラーがなくなると(タイミングT2)、エラー検出信号は、ローレベルへ変更され、次の周期で(タイミングT3で)、ラインメモリーLM1,LM2の切り替えが許可される。   Thereafter, when the error disappears (timing T2), the error detection signal is changed to the low level, and switching of the line memories LM1 and LM2 is permitted in the next cycle (at timing T3).

このようにすることで、エラーがなくなって最初の周期(タイミングT2〜T3の周期)において書き込まれた1ライン分の画像データ(つまりエラーのない画像データ)が、ラインメモリーLM1,LM2の切り替えが再開されたときに読み出される。   By doing so, the image data for one line (that is, the image data having no error) written in the first period (period T2 to T3) after the error disappears is switched between the line memories LM1 and LM2. Read when resumed.

図6は、ノイズパルスによって外部同期信号の同期パルスが消失しエラーが検出される場合の各信号、各カウンターC1,C2,C3のカウント値、および、ラインメモリーLM1,LM2に対する画像データの書き込みおよび読み出しについて説明するタイミングチャートである。   FIG. 6 shows each signal when the synchronization pulse of the external synchronization signal disappears due to a noise pulse and an error is detected, the count values of the counters C1, C2, and C3, and the writing of image data to the line memories LM1 and LM2. It is a timing chart explaining reading.

図6に示すように、外部同期信号において第1ラインと第2ラインとの間の同期パルスが消失した場合、内部同期信号の同期パルスのタイミングT4で、カウンターC1,C2のカウント値が異なるため、エラー検出信号は、ハイレベルへ変更され、ラインメモリーLM1,LM2の切り替えが禁止される。したがって、ラインメモリーLM2に対して、データ書き込み継続して実行され、順次、データが上書きされていく。   As shown in FIG. 6, when the synchronization pulse between the first line and the second line disappears in the external synchronization signal, the count values of the counters C1 and C2 are different at the timing T4 of the synchronization pulse of the internal synchronization signal. The error detection signal is changed to high level, and switching of the line memories LM1 and LM2 is prohibited. Therefore, data writing is continuously executed to the line memory LM2, and data is sequentially overwritten.

その後、エラーがなくなると(タイミングT5)、エラー検出信号は、ローレベルへ変更され、次の周期で(タイミングT6で)、ラインメモリーLM1,LM2の切り替えが許可される。   Thereafter, when the error disappears (timing T5), the error detection signal is changed to the low level, and switching of the line memories LM1 and LM2 is permitted in the next cycle (at timing T6).

このようにすることで、エラーがなくなって最初の周期(タイミングT5〜T6の周期)において書き込まれた1ライン分の画像データ(つまりエラーのない画像データ)が、ラインメモリーLM1,LM2の切り替えが再開されたときに読み出される。   By doing so, the image data for one line (that is, image data without error) written in the first period (period T5 to T6) after the error disappears is switched between the line memories LM1 and LM2. Read when resumed.

図3に戻り、他方、上述のカウンターC3のカウント値が3以上になるのは、外部同期信号と内部同期信号との位相ズレのせいであるとみなし、ステップS8においてエラー検出部17は、カウンターC3のカウント値が3以上であると判定した場合、カウンターC2のカウント値を、カウンターC1にセットする(ステップS9)。ただし、このときの内部同期信号の同期パルスはマスクする。これにより、カウンターC1のカウント値が、カウンターC2のカウント値に同期するため、(ノイズによるエラーがなければ)次回のステップS1の判定タイミングで、カウンターC1,C2のカウント値が等しいと判定される(ステップS2)。   Returning to FIG. 3, on the other hand, it is considered that the count value of the above-mentioned counter C3 being 3 or more is due to a phase shift between the external synchronization signal and the internal synchronization signal, and in step S8, the error detection unit 17 When it is determined that the count value of C3 is 3 or more, the count value of the counter C2 is set in the counter C1 (step S9). However, the synchronization pulse of the internal synchronization signal at this time is masked. Thus, since the count value of the counter C1 is synchronized with the count value of the counter C2, it is determined that the count values of the counters C1 and C2 are equal at the determination timing of the next step S1 (if there is no error due to noise). (Step S2).

このようにして、外部同期信号と内部同期信号との位相にズレが生じても、自動的に両者の同期が確保される。また、内部同期信号の位相が、外部同期信号の位相に合わせられるため、ラインメモリーLM1,LM2の切り替えは、実質的に、エラーのない外部同期信号に同期して行われることになる。   In this way, even if a phase difference occurs between the external synchronization signal and the internal synchronization signal, synchronization between the two is automatically ensured. Further, since the phase of the internal synchronization signal is matched to the phase of the external synchronization signal, the line memories LM1 and LM2 are switched substantially in synchronization with the external synchronization signal without error.

図7は、内部同期信号と外部同期信号との位相ズレに起因してエラーが検出される場合の各信号、各カウンターC1,C2,C3のカウント値、および、ラインメモリーLM1,LM2に対する画像データの書き込みおよび読み出しについて説明するタイミングチャートである。   FIG. 7 shows each signal when an error is detected due to a phase shift between the internal synchronization signal and the external synchronization signal, count values of the counters C1, C2, and C3, and image data for the line memories LM1 and LM2. 6 is a timing chart for explaining writing and reading of data.

図7に示すように、タイミングT7でエラーが検出された後、3周期継続してエラーが検出されると、カウンターC3のカウント値は3となり、カウンターC3のカウント値が3であるときの内部同期信号の同期パルスのタイミングT8で、カウンターC2のカウント値が、カウンターC1へセットされる(ただし、この同期パルス自体はマスクされ生成されない)。これにより、内部同期信号の次の同期パルス(タイミングT9)においてエラー検出信号がローレベルに設定され、次の周期で(タイミングT10で)、ラインメモリーLM1,LM2の切り替えが再開される。   As shown in FIG. 7, after an error is detected at timing T7, if the error is detected continuously for three cycles, the count value of the counter C3 becomes 3, and the internal value when the count value of the counter C3 is 3 is shown. At the timing T8 of the synchronization pulse of the synchronization signal, the count value of the counter C2 is set to the counter C1 (however, this synchronization pulse itself is masked and not generated). As a result, the error detection signal is set to the low level at the next synchronization pulse (timing T9) of the internal synchronization signal, and switching of the line memories LM1 and LM2 is resumed at the next cycle (at timing T10).

このようにすることで、同期が確保されて最初の周期(タイミングT9〜T10の周期)において書き込まれた1ライン分の画像データ(つまり同期の取れた画像データ)が、ラインメモリーLM1,LM2の切り替えが再開されたときに読み出される。   By doing so, the image data for one line (that is, the synchronized image data) written in the first period (period T9 to T10) while ensuring synchronization is stored in the line memories LM1 and LM2. Read when switching is resumed.

なお、この場合、図7に示すように、カウンターC2のカウント値が、カウンターC1へセットされてから次の同期パルスまで(つまり、タイミングT8〜T9の期間)、ライトイネーブル信号がローレベルとされ、ラインメモリーLM1,LM2への書き込みが発生しないようにしている。   In this case, as shown in FIG. 7, the write enable signal is set to the low level from the time when the count value of the counter C2 is set to the counter C1 until the next synchronization pulse (that is, during the period from timing T8 to T9). The writing to the line memories LM1 and LM2 is prevented from occurring.

以上のように、上記実施の形態によれば、受信回路11は、画像データおよび外部同期信号を含む伝送信号をシリアル通信で受信し、内部同期信号生成部12は、外部同期信号の規定パルス周期と同一のパルス周期の内部同期信号を生成し、データ受信処理部13は、受信された伝送信号から画像データおよび外部同期信号を抽出し、内部同期信号に基づき1ラインごとに、画像データを書き込むラインメモリーLM1,LM2を順番に切り替えていき、画像データをラインメモリーLM1,LM2に書き込む。そして、パルス周期検出部16は、外部同期信号のパルス周期を検出し、エラー検出部17は、外部同期信号のパルス周期と内部同期信号のパルス周期とが同一ではないことを検出した場合、内部同期信号のそのパルス周期においてラインメモリー(ラインメモリーLM1またはラインメモリーLM2)に書き込まれた画像データを破棄させる。   As described above, according to the above-described embodiment, the reception circuit 11 receives a transmission signal including image data and an external synchronization signal by serial communication, and the internal synchronization signal generation unit 12 has a specified pulse period of the external synchronization signal. The data reception processing unit 13 extracts the image data and the external synchronization signal from the received transmission signal, and writes the image data for each line based on the internal synchronization signal. The line memories LM1 and LM2 are switched in order, and the image data is written into the line memories LM1 and LM2. When the pulse period detection unit 16 detects the pulse period of the external synchronization signal and the error detection unit 17 detects that the pulse period of the external synchronization signal and the pulse period of the internal synchronization signal are not the same, The image data written in the line memory (line memory LM1 or line memory LM2) in the pulse period of the synchronization signal is discarded.

これにより、シリアル通信で画像データとともに同期信号を伝送する場合において、画像データとともに伝送されてくる同期信号に従って、1ラインずつ、画像データをラインメモリーLM1,LM2に書き込んでいく際の、ノイズ等による同期信号のエラーの、画質への影響が低減される。   As a result, when the synchronization signal is transmitted together with the image data by serial communication, due to noise or the like when the image data is written to the line memories LM1 and LM2 line by line according to the synchronization signal transmitted together with the image data. The influence of the error of the synchronization signal on the image quality is reduced.

なお、上述の実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。   The above-described embodiments are preferred examples of the present invention, but the present invention is not limited to these, and various modifications and changes can be made without departing from the scope of the present invention. is there.

本発明は、例えば、画像読取装置に適用可能である。   The present invention is applicable to, for example, an image reading apparatus.

11 受信回路
12 内部同期信号生成部
13 データ受信処理部
14 ラインデータ読出部
15 クロック生成部
16 パルス周期検出部
17 エラー検出部
C1 カウンター(第1カウンターの一例)
C2 カウンター(第2カウンターの一例)
LM1,LM2 ラインメモリー
DESCRIPTION OF SYMBOLS 11 Reception circuit 12 Internal synchronous signal generation part 13 Data reception process part 14 Line data reading part 15 Clock generation part 16 Pulse period detection part 17 Error detection part C1 counter (an example of 1st counter)
C2 counter (example of second counter)
LM1, LM2 line memory

Claims (6)

画像データおよび外部同期信号を含む伝送信号をシリアル通信で受信する受信回路と、
前記外部同期信号の規定パルス周期と同一のパルス周期の内部同期信号を生成する内部同期信号生成部と、
受信された前記伝送信号から前記画像データおよび前記外部同期信号を抽出し、前記内部同期信号に基づき1ラインごとに、前記画像データを書き込むラインメモリーを順番に切り替えていき、前記画像データを前記ラインメモリーに書き込むデータ受信処理部と、
前記内部同期信号に基づき1ラインごとに、前記画像データを読み出すラインメモリーを順番に切り替えていき、前記画像データを前記ラインメモリーから読み出すラインデータ読出部と、
前記外部同期信号のパルス周期を検出するパルス周期検出部と、
前記外部同期信号のパルス周期と前記内部同期信号のパルス周期とが同一ではないことを検出した場合、前記内部同期信号のそのパルス周期において前記ラインメモリーに書き込まれた前記画像データを破棄させるエラー検出部と、
を備えることを特徴とする画像処理装置。
A receiving circuit for receiving transmission signals including image data and an external synchronization signal by serial communication;
An internal synchronization signal generating unit that generates an internal synchronization signal having the same pulse period as the specified pulse period of the external synchronization signal;
The image data and the external synchronization signal are extracted from the received transmission signal, a line memory in which the image data is written is sequentially switched for each line based on the internal synchronization signal, and the image data is converted to the line A data reception processing unit for writing to the memory;
A line data reading unit for sequentially switching a line memory for reading out the image data for each line based on the internal synchronization signal, and reading out the image data from the line memory;
A pulse period detector for detecting a pulse period of the external synchronization signal;
When detecting that the pulse period of the external synchronization signal and the pulse period of the internal synchronization signal are not the same, error detection for discarding the image data written in the line memory in the pulse period of the internal synchronization signal And
An image processing apparatus comprising:
前記伝送信号からクロックを生成するクロック生成部と、
前記クロックで所定のカウント値までカウントアップしていきリセットする第1カウンターと、
前記クロックでカウントアップしていき前記外部同期信号のパルスでリセットする第2カウンターとをさらに備え、
前記内部同期信号生成部は、前記第1カウンターのカウント値が前記所定のカウント値であるときに前記内部同期信号の同期パルスを生成し、
前記エラー検出部は、前記第1カウンターのカウント値と前記第2カウンターのカウント値とが同一ではない場合、前記外部同期信号のパルス周期と前記内部同期信号のパルス周期とが同一ではないと判定し、前記内部同期信号のそのパルス周期において前記ラインメモリーに書き込まれた前記画像データを破棄させること、
を特徴とする請求項1記載の画像処理装置。
A clock generator for generating a clock from the transmission signal;
A first counter that counts up to a predetermined count value with the clock and resets;
A second counter that counts up with the clock and resets with a pulse of the external synchronization signal;
The internal synchronization signal generation unit generates a synchronization pulse of the internal synchronization signal when the count value of the first counter is the predetermined count value,
The error detection unit determines that the pulse period of the external synchronization signal and the pulse period of the internal synchronization signal are not the same when the count value of the first counter and the count value of the second counter are not the same. And discarding the image data written in the line memory in the pulse period of the internal synchronization signal,
The image processing apparatus according to claim 1.
前記エラー検出部は、前記外部同期信号のパルス周期と前記内部同期信号のパルス周期とが同一ではないことを検出された場合、前記データ受信処理部による前記ラインメモリーの切り替えを禁止し、後続の前記画像データを前記ラインメモリーに上書きさせることで、前記内部同期信号のそのパルス周期において前記ラインメモリーに書き込まれた前記画像データを破棄させることを特徴とする請求項1記載の画像処理装置。   When the error detection unit detects that the pulse period of the external synchronization signal and the pulse period of the internal synchronization signal are not the same, the error detection unit prohibits switching of the line memory by the data reception processing unit, The image processing apparatus according to claim 1, wherein the image data written in the line memory is discarded in the pulse cycle of the internal synchronization signal by overwriting the image data in the line memory. 前記エラー検出部は、前記内部同期信号の所定数の周期において連続して、前記内部同期信号の同期パルスのタイミングと前記外部同期信号のパルスのタイミングとが同一ではないことを検出した場合、前記内部同期信号の同期パルスのタイミングを前記外部同期信号のパルスのタイミングに同期させることを特徴とする請求項1記載の画像処理装置。   When the error detection unit detects that the timing of the synchronization pulse of the internal synchronization signal is not the same as the timing of the pulse of the external synchronization signal continuously in a predetermined number of cycles of the internal synchronization signal, 2. The image processing apparatus according to claim 1, wherein the timing of the synchronization pulse of the internal synchronization signal is synchronized with the timing of the pulse of the external synchronization signal. 前記伝送信号からクロックを生成するクロック生成部と、
前記クロックで所定のカウント値までカウントアップしていきリセットする第1カウンターと、
前記クロックでカウントアップしていき前記外部同期信号のパルスでリセットする第2カウンターとをさらに備え、
前記内部同期信号生成部は、前記第1カウンターのカウント値が前記所定のカウント値であるときに前記内部同期信号の同期パルスを生成し、
前記エラー検出部は、前記第1カウンターのカウント値と前記第2カウンターのカウント値とが同一ではない場合、前記外部同期信号のパルス周期と前記内部同期信号のパルス周期とが同一ではないと判定し、前記内部同期信号のそのパルス周期において前記ラインメモリーに書き込まれた前記画像データを破棄させ、
さらに、前記エラー検出部は、前記内部同期信号の所定数の周期において連続して、前記内部同期信号の同期パルスのタイミングと前記外部同期信号のパルスのタイミングとが同一ではないことを検出した場合、前記第2カウンターのカウント値を前記第1カウンターにコピーして、内部同期信号の同期パルスのタイミングを前記外部同期信号のパルスのタイミングに同期させること、
を特徴とする請求項4記載の画像処理装置。
A clock generator for generating a clock from the transmission signal;
A first counter that counts up to a predetermined count value with the clock and resets;
A second counter that counts up with the clock and resets with a pulse of the external synchronization signal;
The internal synchronization signal generation unit generates a synchronization pulse of the internal synchronization signal when the count value of the first counter is the predetermined count value,
The error detection unit determines that the pulse period of the external synchronization signal and the pulse period of the internal synchronization signal are not the same when the count value of the first counter and the count value of the second counter are not the same. The image data written in the line memory in the pulse period of the internal synchronization signal is discarded,
Further, when the error detection unit detects that the timing of the synchronization pulse of the internal synchronization signal and the timing of the pulse of the external synchronization signal are not the same continuously in a predetermined number of cycles of the internal synchronization signal Copying the count value of the second counter to the first counter to synchronize the timing of the synchronization pulse of the internal synchronization signal with the timing of the pulse of the external synchronization signal;
The image processing apparatus according to claim 4.
前記伝送信号は、クロックに同期して、複数のタイムスロットに時分割されており、
前記外部同期信号は、前記複数のタイムスロットのうちの1つで伝送されること、
を特徴とする請求項1から請求項5のうちのいずれか1項記載の画像処理装置。
The transmission signal is time-divided into a plurality of time slots in synchronization with the clock,
The external synchronization signal is transmitted in one of the plurality of time slots;
The image processing apparatus according to claim 1, wherein:
JP2013135602A 2013-06-27 2013-06-27 Image processing device Active JP6049554B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013135602A JP6049554B2 (en) 2013-06-27 2013-06-27 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013135602A JP6049554B2 (en) 2013-06-27 2013-06-27 Image processing device

Publications (2)

Publication Number Publication Date
JP2015012400A true JP2015012400A (en) 2015-01-19
JP6049554B2 JP6049554B2 (en) 2016-12-21

Family

ID=52305211

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013135602A Active JP6049554B2 (en) 2013-06-27 2013-06-27 Image processing device

Country Status (1)

Country Link
JP (1) JP6049554B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190199506A1 (en) * 2017-12-25 2019-06-27 Kyocera Document Solutions Image processing apparatus
WO2020059137A1 (en) * 2018-09-21 2020-03-26 三菱電機株式会社 Communication device, communication system, communication method, and communication program
US11381333B2 (en) 2018-09-21 2022-07-05 Mitsubishi Electric Corporation Communication apparatus, communication system, communication method, and computer readable medium
US11429141B2 (en) 2019-03-22 2022-08-30 Ricoh Company, Ltd. Data processing device, image reading apparatus, image forming apparatus, and data processing method
US11757608B2 (en) 2018-09-21 2023-09-12 Mitsubishi Electric Corporation Communication apparatus, communication system, communication method, and computer readable medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0758979A (en) * 1993-08-19 1995-03-03 Hitachi Ltd Synchronization detection circuit
JPH0832832A (en) * 1994-07-13 1996-02-02 Fujitsu Ltd Synchronization signal compensation circuit
US5917550A (en) * 1995-10-06 1999-06-29 Samsung Electronics, Co., Ltd. Clock signal generator for composite video signal
JP2003111060A (en) * 2001-10-01 2003-04-11 Sony Corp Video signal processor and method, and program
JP2004341101A (en) * 2003-05-14 2004-12-02 Nec Corp Display panel drive unit
JP2010130042A (en) * 2008-11-25 2010-06-10 Ricoh Co Ltd Image processing apparatus, method and program, and recording medium
JP2012010178A (en) * 2010-06-25 2012-01-12 Panasonic Electric Works Sunx Co Ltd Noise filter
JP2012056161A (en) * 2010-09-08 2012-03-22 Kyocera Mita Corp Image processor and image forming apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0758979A (en) * 1993-08-19 1995-03-03 Hitachi Ltd Synchronization detection circuit
JPH0832832A (en) * 1994-07-13 1996-02-02 Fujitsu Ltd Synchronization signal compensation circuit
US5917550A (en) * 1995-10-06 1999-06-29 Samsung Electronics, Co., Ltd. Clock signal generator for composite video signal
JP2003111060A (en) * 2001-10-01 2003-04-11 Sony Corp Video signal processor and method, and program
JP2004341101A (en) * 2003-05-14 2004-12-02 Nec Corp Display panel drive unit
JP2010130042A (en) * 2008-11-25 2010-06-10 Ricoh Co Ltd Image processing apparatus, method and program, and recording medium
JP2012010178A (en) * 2010-06-25 2012-01-12 Panasonic Electric Works Sunx Co Ltd Noise filter
JP2012056161A (en) * 2010-09-08 2012-03-22 Kyocera Mita Corp Image processor and image forming apparatus

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190199506A1 (en) * 2017-12-25 2019-06-27 Kyocera Document Solutions Image processing apparatus
CN109963127A (en) * 2017-12-25 2019-07-02 京瓷办公信息系统株式会社 Image processing apparatus
JP2019114988A (en) * 2017-12-25 2019-07-11 京セラドキュメントソリューションズ株式会社 Image processing apparatus
US10601572B2 (en) 2017-12-25 2020-03-24 Kyocera Document Solutions, Inc. Image processing apparatus with an improved image distortion control
WO2020059137A1 (en) * 2018-09-21 2020-03-26 三菱電機株式会社 Communication device, communication system, communication method, and communication program
US11381333B2 (en) 2018-09-21 2022-07-05 Mitsubishi Electric Corporation Communication apparatus, communication system, communication method, and computer readable medium
US11689347B2 (en) 2018-09-21 2023-06-27 Mitsubishi Electric Corporation Communication apparatus, communication system, communication method, and computer readable medium
US11757608B2 (en) 2018-09-21 2023-09-12 Mitsubishi Electric Corporation Communication apparatus, communication system, communication method, and computer readable medium
US11429141B2 (en) 2019-03-22 2022-08-30 Ricoh Company, Ltd. Data processing device, image reading apparatus, image forming apparatus, and data processing method

Also Published As

Publication number Publication date
JP6049554B2 (en) 2016-12-21

Similar Documents

Publication Publication Date Title
JP6049554B2 (en) Image processing device
JP5896602B2 (en) Communication circuit and sampling adjustment method
CN109254941B (en) FPGA-based serial signal clock synchronization method, serial-to-parallel conversion method and device
KR101733660B1 (en) 10gbaset method and apparatus for data aided timing recovery in 10gbaset system
JP6034703B2 (en) Conversion circuit, image processing apparatus, and conversion method
KR101076109B1 (en) Skew correction method of received data using pattern insertion and apparatus thereof
US9654114B2 (en) Transmission circuit, integrated circuit, and parallel-to-serial conversion method
US10057524B2 (en) Image capturing apparatus
JP6836722B2 (en) Image processing device
US10044535B2 (en) Serial communication apparatus, communication system, and method for communication
JP5423071B2 (en) Data transfer device and imaging device
US9661192B2 (en) Video signal transmission apparatus
JP6738028B2 (en) Receiver circuit and semiconductor integrated circuit
US5274452A (en) Horizontal synchronizing signal separator
KR102225619B1 (en) High-speed serial data receiving apparatus
JP5551978B2 (en) Noise filter
JP6414702B2 (en) Image processing device
JP2005217968A (en) Asynchronous communication system
JP4987957B2 (en) Head-separated imaging apparatus, control unit thereof, and signal processing method
JP2010213204A (en) Data transmitting/receiving method
KR100677195B1 (en) Horizontal synchronous signal detection apparatus for digital television
JP5862383B2 (en) Multi-channel frame synchronizer
JP2009239954A (en) Cycle shift detection device between serial data
JP2013026795A (en) Data communication device and control method therefor
JP2014204319A (en) Receiver, transmitter, cable, transmission method and reception method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150420

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160420

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160616

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20161027

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161122

R150 Certificate of patent or registration of utility model

Ref document number: 6049554

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150