JPWO2014208552A1 - Phase adjustment circuit, image forming apparatus, and phase adjustment method - Google Patents

Phase adjustment circuit, image forming apparatus, and phase adjustment method Download PDF

Info

Publication number
JPWO2014208552A1
JPWO2014208552A1 JP2015524060A JP2015524060A JPWO2014208552A1 JP WO2014208552 A1 JPWO2014208552 A1 JP WO2014208552A1 JP 2015524060 A JP2015524060 A JP 2015524060A JP 2015524060 A JP2015524060 A JP 2015524060A JP WO2014208552 A1 JPWO2014208552 A1 JP WO2014208552A1
Authority
JP
Japan
Prior art keywords
phase
unit
data
parallel data
generation unit
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
JP2015524060A
Other languages
Japanese (ja)
Other versions
JP6314982B2 (en
Inventor
渡邉 祐樹
祐樹 渡邉
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Publication of JPWO2014208552A1 publication Critical patent/JPWO2014208552A1/en
Application granted granted Critical
Publication of JP6314982B2 publication Critical patent/JP6314982B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M9/00Parallel/series conversion or vice versa
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00912Arrangements for controlling a still picture apparatus or components thereof not otherwise provided for
    • H04N1/00933Timing control or synchronising

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Ink Jet (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

より高精度に最適位相を設定する。位相調整部30は、任意に設定された位相のクロック信号を生成する位相シフトクロック生成部31と、位相シフトクロック生成部31により生成されたクロック信号に応じて、シリアルデータをパラレルデータに変換して出力する変換部32と、変換部32により変換されたパラレルデータの正誤を判定する判定部33と、それぞれ位相の異なる複数のクロック信号を位相シフトクロック生成部31に生成させるように位相の設定を変更し、複数のクロック信号の各々に応じて変換部32により変換されたパラレルデータの各々に対する判定結果に基づいて、変換部32によってシリアルデータが正しくパラレルデータに変換される位相の範囲を特定し、当該位相の範囲内の値である最適位相を位相シフトクロック生成部31に設定する位相制御部40と、を備える。Set the optimum phase with higher accuracy. The phase adjustment unit 30 generates a clock signal having an arbitrarily set phase, and converts serial data into parallel data in accordance with the clock signal generated by the phase shift clock generation unit 31. The phase setting is performed so that the phase shift clock generation unit 31 generates a plurality of clock signals having different phases, respectively, the conversion unit 32 that outputs the data, the determination unit 33 that determines whether the parallel data converted by the conversion unit 32 is correct or incorrect Based on the determination result for each of the parallel data converted by the conversion unit 32 according to each of the plurality of clock signals, the phase range in which the serial data is correctly converted into parallel data by the conversion unit 32 is specified. The optimum phase that is a value within the phase range is set in the phase shift clock generator 31. And a control unit 40, a.

Description

本発明は、位相調整回路、画像形成装置及び位相調整方法に関する。   The present invention relates to a phase adjustment circuit, an image forming apparatus, and a phase adjustment method.

データの伝送方式として、単一のデータストリームによる逐次伝送方式(シリアル伝送方式)と複数のデータストリームを並列させた並列伝送方式(パラレル伝送方式)が広く知られている。シリアル伝送方式は、パラレル伝送方式に比して、データ伝送のための配線が少なくて済む点や、データ伝送をより高速に行うことができる点で優れている。   As a data transmission method, a sequential transmission method (serial transmission method) using a single data stream and a parallel transmission method (parallel transmission method) in which a plurality of data streams are arranged in parallel are widely known. The serial transmission method is superior to the parallel transmission method in that less wiring is required for data transmission and in that data transmission can be performed at higher speed.

このシリアル伝送方式により伝送されたシリアルデータをパラレルデータに変換する変換処理では、変換処理におけるクロック信号の位相が重要となる。以下、詳細に説明する。
シリアルデータをパラレルデータに変換する変換部におけるシリアルデータの入力タイミングとパラレルデータの出力タイミングは、所定の周期で出力されるクロック信号により同期する。言い換えれば、変換部は、クロック信号のタイミングに基づいて、複数のパラレルデータが一続きになったシリアルデータを個々のパラレルデータに分割する処理を行うことで、シリアルデータをパラレルデータに変換する。ここで、クロック信号に基づく変換部による処理のタイミングが早すぎたり遅すぎたりする場合、パラレルデータへの変換が上手くいかず、データの誤りが生じることとなる。
クロック信号に応じた処理のタイミングの決定は、クロック信号の位相に依存する。より具体的には、クロック信号の位相は、変換部の動作に係るフリップフロップやラッチ等の動作におけるデータ変更禁止時間であるセットアップ時間やホールド時間の開始及び終了タイミングを決定する要素となる。セットアップ時間やホールド時間の開始及び終了タイミングが適切であることにより、処理が正しく行われる。ここで、正しくデータ処理を行ううえで許容されるクロック信号の到着期間に対して早すぎる又は遅すぎる到着タイミングとなる側にクロック信号の位相がずれている場合、セットアップ時間違反又はホールド時間違反が生じ、処理が正しく行われない。
In the conversion process for converting serial data transmitted by this serial transmission method into parallel data, the phase of the clock signal in the conversion process is important. Details will be described below.
The input timing of the serial data and the output timing of the parallel data in the conversion unit that converts the serial data into parallel data are synchronized with each other by a clock signal output at a predetermined cycle. In other words, the conversion unit converts serial data into parallel data by performing a process of dividing serial data including a series of parallel data into individual parallel data based on the timing of the clock signal. Here, if the timing of processing by the conversion unit based on the clock signal is too early or too late, the conversion to parallel data will not be successful, and an error in data will occur.
The determination of the processing timing according to the clock signal depends on the phase of the clock signal. More specifically, the phase of the clock signal is an element that determines the start and end timings of the setup time and the hold time, which are data change prohibition times in the operations of the flip-flops and latches related to the operation of the conversion unit. The processing is performed correctly when the start and end timings of the setup time and hold time are appropriate. Here, if the clock signal is out of phase with the arrival timing that is too early or too late with respect to the arrival period of the clock signal allowed for correct data processing, a setup time violation or hold time violation may occur. And processing is not performed correctly.

変換処理におけるクロック信号の最適な位相(以下、「最適位相」と記載)は、変換部及びクロック信号の発生源を含む回路の構成、当該回路の動作環境(温度等)、当該回路に対するシリアルデータの入力タイミング等、様々な要因により変化しうる。そこで、変換処理に際して、予め定められた複数の位相パターンの中から最適位相に最も近い位相パターンを用いる位相調整回路が知られている(例えば、特許文献1)。   The optimum phase of the clock signal in the conversion process (hereinafter referred to as “optimum phase”) is the configuration of the circuit including the conversion unit and the clock signal generation source, the operating environment (temperature, etc.) of the circuit, and the serial data for the circuit. The input timing may vary depending on various factors. Therefore, a phase adjustment circuit that uses a phase pattern closest to the optimum phase among a plurality of predetermined phase patterns for conversion processing is known (for example, Patent Document 1).

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

しかしながら、従来の位相調整回路は、複数の位相パターンの中から最適位相に最も近い位相パターンを用いるに過ぎないことから、位相調整の精度が低かった。このため、従来の位相調整回路では、最適位相のクロック信号による変換処理を実現することができず、セットアップ時間違反やホールド時間違反によるデータの誤りが生じることがあった。   However, since the conventional phase adjustment circuit only uses the phase pattern closest to the optimum phase among the plurality of phase patterns, the accuracy of the phase adjustment is low. For this reason, the conventional phase adjustment circuit cannot realize the conversion process using the clock signal having the optimum phase, and may cause a data error due to a setup time violation or a hold time violation.

本発明は、より高精度に最適位相を設定することができる位相調整回路、画像形成装置及び位相調整方法を提供することを目的とする。   It is an object of the present invention to provide a phase adjustment circuit, an image forming apparatus, and a phase adjustment method that can set an optimum phase with higher accuracy.

請求項1に記載の発明による位相調整回路は、任意に設定された位相のクロック信号を生成する生成部と、前記生成部により生成されたクロック信号に応じて、シリアルデータをパラレルデータに変換して出力する変換部と、前記変換部により変換された前記パラレルデータの正誤を判定する判定部と、前記判定部による判定結果に基づいて、前記生成部により生成されるクロック信号の位相を制御する制御部と、を備え、前記制御部は、それぞれ位相の異なる複数のクロック信号を生成部に生成させるように前記生成部における位相の設定を変更し、前記複数のクロック信号の各々に応じて前記変換部により変換されたパラレルデータの各々に対する前記判定部による正誤の判定結果に基づいて、前記変換部によって前記シリアルデータが正しくパラレルデータに変換される位相の範囲を特定し、当該位相の範囲内の値である最適位相を前記生成部に設定することを特徴とする。   The phase adjustment circuit according to the first aspect of the invention includes a generation unit that generates a clock signal having an arbitrarily set phase, and converts serial data into parallel data in accordance with the clock signal generated by the generation unit. The phase of the clock signal generated by the generation unit is controlled based on the determination result by the determination unit, the determination unit for determining whether the parallel data converted by the conversion unit is correct, A control unit, wherein the control unit changes the setting of the phase in the generation unit so that the generation unit generates a plurality of clock signals having different phases, and the control unit changes the phase according to each of the plurality of clock signals. Based on the determination result by the determination unit for each of the parallel data converted by the conversion unit, the serial data is converted by the conversion unit. Lay identifies the scope of the phase to be converted into parallel data, and sets the optimum phase is a value within the range of the phase to the generator.

請求項2に記載の発明は、請求項1に記載の位相調整回路であって、前記制御部は、位相を第1所定角度ずつずらすように前記生成部における位相の設定を変更することでそれぞれ位相の異なる複数のクロック信号を前記生成部に生成させることを特徴とする。   The invention according to claim 2 is the phase adjustment circuit according to claim 1, wherein the control unit changes the phase setting in the generation unit so as to shift the phase by a first predetermined angle. The generation unit generates a plurality of clock signals having different phases.

請求項3に記載の発明は、請求項2に記載の位相調整回路であって、前記制御部は、位相を前記第1所定角度ずらす前後で前記判定部による正誤の判定結果が異なった場合、位相を前記第1所定角度ずらす前の位相から位相を前記第1所定角度ずらした後の位相までの範囲内で、前記第1所定角度より小さい第2所定角度ずつずらすように前記生成部における位相の設定を変更することを特徴とする。   The invention according to claim 3 is the phase adjustment circuit according to claim 2, wherein the control unit has different correctness determination results by the determination unit before and after shifting the phase by the first predetermined angle. The phase in the generating unit is shifted by a second predetermined angle smaller than the first predetermined angle within a range from a phase before shifting the phase by the first predetermined angle to a phase after shifting the phase by the first predetermined angle. The setting is changed.

請求項4に記載の発明は、請求項1から3のいずれか一項に記載の位相調整回路であって、前記制御部は、前記複数のクロック信号の各々の位相と前記複数のクロック信号の各々に応じて前記変換部により変換されたパラレルデータの各々に対する前記判定部による正誤の判定結果とが対応付けられたデータを記憶する記憶部と、前記記憶部に記憶されたデータに基づいて、前記位相の範囲及び前記最適位相を特定する特定部と、前記特定部により前記最適位相が特定されるまで、それぞれ位相の異なる複数のクロック信号を生成部に生成させるように前記生成部における位相の設定を変更する指示信号を前記生成部に出力し、前記最適位相が特定された後に、前記最適位相を設定する指示信号を前記生成部に出力する指示部と、を備えることを特徴とする。   A fourth aspect of the present invention is the phase adjustment circuit according to any one of the first to third aspects, wherein the control unit is configured to control each phase of the plurality of clock signals and the plurality of clock signals. Based on the data stored in the storage unit, a storage unit that stores data in which the determination result of the determination unit by the determination unit is associated with each of the parallel data converted by the conversion unit according to each, A specifying unit for specifying the phase range and the optimum phase, and a phase of the generating unit so that the generating unit generates a plurality of clock signals having different phases until the specifying unit specifies the optimum phase. An instruction unit that outputs an instruction signal for changing the setting to the generation unit, and outputs an instruction signal for setting the optimum phase to the generation unit after the optimum phase is specified. The features.

請求項5に記載の発明は、請求項1から4のいずれか一項に記載の位相調整回路であって、前記制御部は、前記最適位相を前記生成部に設定するまで、前記パラレルデータの誤りの有無を検出するための付加データが付加されたテスト用のシリアルデータを前記変換部に変換させることを特徴とする。   A fifth aspect of the present invention is the phase adjustment circuit according to any one of the first to fourth aspects, wherein the control unit sets the parallel data until the optimum phase is set in the generation unit. Test serial data to which additional data for detecting the presence or absence of an error is added is converted by the conversion unit.

請求項6に記載の発明による画像形成装置は、記録ヘッドと、前記記録ヘッドを駆動するヘッド駆動部と、前記記録ヘッドの各々のノズルから吐出されるインクの吐出パターンに対応するシリアルデータを出力する出力部と、前記出力部から出力された前記シリアルデータをパラレルデータに変換して前記ヘッド駆動部に出力する請求項1から5のいずれか一項に記載の位相調整回路と、を備えることを特徴とする。   According to a sixth aspect of the present invention, there is provided an image forming apparatus for outputting a recording head, a head driving section for driving the recording head, and serial data corresponding to an ejection pattern of ink ejected from each nozzle of the recording head. And a phase adjustment circuit according to any one of claims 1 to 5, wherein the serial data output from the output unit is converted into parallel data and output to the head drive unit. It is characterized by.

請求項7に記載の発明は、請求項1から5のいずれか一項に記載の位相調整回路による位相調整方法であって、前記制御部が、それぞれ位相の異なる複数のクロック信号を生成部に生成させるように前記生成部における位相の設定を変更する工程と、前記制御部が、前記複数のクロック信号の各々に応じて前記変換部により変換されたパラレルデータの各々に対する前記判定部による正誤の判定結果に基づいて、前記変換部によって前記シリアルデータが正しくパラレルデータに変換される位相の範囲を特定する工程と、前記制御部が、前記位相の範囲の中央値に対応する最適位相を前記生成部に設定する工程と、を有することを特徴とする。   A seventh aspect of the present invention is the phase adjustment method by the phase adjustment circuit according to any one of the first to fifth aspects, wherein the control unit supplies a plurality of clock signals having different phases to the generation unit. A step of changing the setting of the phase in the generation unit so as to be generated, and the control unit determines whether the determination unit corrects each of the parallel data converted by the conversion unit according to each of the plurality of clock signals. Based on the determination result, the step of specifying a phase range in which the serial data is correctly converted into parallel data by the conversion unit, and the control unit generates the optimum phase corresponding to the median of the phase range And a step of setting in the section.

本発明によれば、より高精度に最適位相を設定することができる。   According to the present invention, the optimum phase can be set with higher accuracy.

本発明の一実施形態である画像形成装置の主要構成の一例を示す図である。1 is a diagram illustrating an example of a main configuration of an image forming apparatus according to an embodiment of the present invention. ヘッドユニットの構成の一例を示す図である。It is a figure which shows an example of a structure of a head unit. 位相調整部の構成の一例を示す図である。It is a figure which shows an example of a structure of a phase adjustment part. 位相シフトクロック生成部による位相の変更例を示す図である。It is a figure which shows the example of a change of the phase by a phase shift clock generation part. 初期状態の位相シフトクロック生成部により生成されたクロック信号に応じて変換されたパラレルデータの正誤の判定結果が誤(NG)であった場合の位相の範囲及び最適位相の特定に係る具体例を示す図である。Specific examples of specifying the phase range and the optimum phase when the correct / incorrect determination result of the parallel data converted according to the clock signal generated by the phase shift clock generation unit in the initial state is incorrect (NG) FIG. 初期状態の位相シフトクロック生成部により生成されたクロック信号に応じて変換されたパラレルデータの正誤の判定結果が正(OK)であった場合の位相の範囲及び最適位相の特定に係る具体例を示す図である。Specific examples of specifying the phase range and the optimum phase when the correct / incorrect determination result of the parallel data converted according to the clock signal generated by the phase shift clock generation unit in the initial state is correct (OK) FIG. 位相調整モードの一例を示すタイミングチャートである。It is a timing chart which shows an example of phase adjustment mode. 位相調整モードから位相固定モードに切り替わる場合の一例を示すタイミングチャートである。It is a timing chart which shows an example in the case of switching from a phase adjustment mode to a phase fixed mode. 位相の調整に係る処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the process which concerns on adjustment of a phase. 第1所定角度及び第2所定角度を用いた位相の範囲及び最適位相の特定に係る具体例を示す図である。It is a figure which shows the specific example which concerns on the specification of the range of a phase using the 1st predetermined angle and the 2nd predetermined angle, and an optimal phase. 第1所定角度及び第2所定角度を用いた位相の範囲及び最適位相の特定に係る別の例を示す図である。It is a figure which shows another example which concerns on the specification of the range of a phase using the 1st predetermined angle and the 2nd predetermined angle, and an optimal phase. デイジーチェーン接続された位相調整部、ヘッド駆動部及び記録ヘッドの一例を示す図である。FIG. 4 is a diagram illustrating an example of a phase adjustment unit, a head drive unit, and a recording head that are daisy chain connected.

以下に、本発明の実施形態について図面を用いて説明する。ただし、以下に述べる実施形態には、本発明を実施するために技術的に好ましい種々の限定が付されているが、発明の範囲を以下の実施形態及び図示例に限定するものではない。   Embodiments of the present invention will be described below with reference to the drawings. However, although various technically preferable limitations for implementing the present invention are given to the embodiments described below, the scope of the invention is not limited to the following embodiments and illustrated examples.

図1は、本発明の一実施形態である画像形成装置1の主要構成の一例を示す図である。
画像形成装置1は、例えば、取得部2、画像処理部3、画像形成部10、操作表示部4、中央制御部5等を備える。
FIG. 1 is a diagram illustrating an example of a main configuration of an image forming apparatus 1 according to an embodiment of the present invention.
The image forming apparatus 1 includes, for example, an acquisition unit 2, an image processing unit 3, an image forming unit 10, an operation display unit 4, a central control unit 5, and the like.

取得部2は、画像形成装置1により形成する画像の元となる画像データを取得する。
具体的には、取得部2は、例えば、ネットワークインターフェースカード(Network Interface Card:NIC)等の通信に係る構成を備え、通信を介して外部の機器から送信された画像データを取得する。
The acquisition unit 2 acquires image data that is a source of an image formed by the image forming apparatus 1.
Specifically, the acquisition unit 2 has a configuration related to communication such as a network interface card (NIC), for example, and acquires image data transmitted from an external device via communication.

画像処理部3は、取得部2により取得された画像データに画像処理を施す。
具体的には、画像処理部3は、例えば、FPGA(Field-Programmable Gate Array)等のプログラマブルロジックデバイス(programmable logic device:PLD)又はASIC(Application Specific Integrated Circuit)のような集積回路あるいはこれらの組み合わせによる回路からなり、当該回路に実装された機能に応じた画像処理を行う。画像処理部3により行われる画像処理として、例えば、RGB画像をCMYK画像に変換する等の色変換処理、カラー画像をモノクロ画像に変換する等の階調変換処理、予め設定されたスクリーン線数に基づいて画像を網点化するスクリーン処理等が挙げられる。
The image processing unit 3 performs image processing on the image data acquired by the acquisition unit 2.
Specifically, the image processing unit 3 is, for example, an integrated circuit such as a programmable logic device (PLD) such as a field-programmable gate array (FPGA) or an application specific integrated circuit (ASIC) or a combination thereof. The image processing according to the function mounted on the circuit is performed. Image processing performed by the image processing unit 3 includes, for example, color conversion processing such as converting an RGB image into a CMYK image, gradation conversion processing such as converting a color image into a monochrome image, and a predetermined number of screen lines. Examples thereof include screen processing for converting an image into halftone dots.

また、画像処理部3は、データ出力部3aを有する。データ出力部3aは、例えば、画像処理部3を構成する回路に実装された一機能として設けられる。
データ出力部3aは、複数の記録ヘッド21の各々のノズルから吐出されるインクの吐出パターンに対応するシリアルデータを出力する出力部として機能する。
具体的には、データ出力部3aは、例えば、画像処理部3により画像処理が施された画像データに対応する画像を搬送部11により搬送される記録媒体に形成するため、複数の記録ヘッド21の各々のノズルからインクを吐出させるタイミングや位置等を算出する。即ち、データ出力部3aは、当該画像データに対応する画像を記録媒体に形成する際に複数の記録ヘッド21の各々のノズルから吐出されるインクの吐出パターンを算出する。そして、データ出力部3aは、吐出パターンを含むシリアルデータを出力する。ここで、シリアルデータは、複数の記録ヘッド21の各々に対応して設けられた複数のヘッド駆動部23(図2参照)に対して個別に出力されることとなるパラレルデータに対応する部分データが含まれるデータとして生成される。言い換えれば、シリアルデータは、当該シリアルデータに基づいてパラレルデータを生成することができるように生成される。
The image processing unit 3 has a data output unit 3a. The data output unit 3a is provided as one function mounted on a circuit constituting the image processing unit 3, for example.
The data output unit 3 a functions as an output unit that outputs serial data corresponding to the ejection pattern of ink ejected from each nozzle of the plurality of recording heads 21.
Specifically, for example, the data output unit 3 a forms a plurality of recording heads 21 in order to form an image corresponding to the image data subjected to image processing by the image processing unit 3 on a recording medium conveyed by the conveyance unit 11. The timing and position at which ink is ejected from each nozzle are calculated. That is, the data output unit 3a calculates an ejection pattern of ink ejected from each nozzle of the plurality of recording heads 21 when an image corresponding to the image data is formed on the recording medium. The data output unit 3a outputs serial data including the ejection pattern. Here, the serial data is partial data corresponding to parallel data to be individually output to a plurality of head driving units 23 (see FIG. 2) provided corresponding to each of the plurality of recording heads 21. Is generated as data including In other words, the serial data is generated so that parallel data can be generated based on the serial data.

また、データ出力部3aは、誤り検出用の付加データをシリアルデータに付加して出力する。
付加データは、例えば、巡回冗長検査(Cyclic Redundancy Check:CRC)による誤り検出のためのデータであるが、一例であってこれに限られるものでない。誤り検出の具体的な方法は、適宜変更可能である。
なお、本実施形態における部分データ及び付加データは、例えば、10ビットのデータであるが、一例であってこれに限られるものでない。部分データや付加データの具体的構成は、適宜変更可能である。
Further, the data output unit 3a adds error detection additional data to serial data and outputs the serial data.
The additional data is, for example, data for error detection by a cyclic redundancy check (CRC), but is not limited to this example. The specific method of error detection can be changed as appropriate.
The partial data and additional data in the present embodiment are, for example, 10-bit data, but are only examples and are not limited thereto. Specific configurations of the partial data and the additional data can be changed as appropriate.

また、データ出力部3aは、テスト用のシリアルデータを出力する機能を有する。
テスト用のシリアルデータは、画像データに基づいて生成されたシリアルデータとフォーマットを同じくするダミーのデータであり、テスト用のシリアルデータに応じて記録ヘッド21のノズルが駆動されることはない。
なお、データ出力部3aは、テスト用のシリアルデータについても、チェックデータを生成、付加する。
The data output unit 3a has a function of outputting test serial data.
The test serial data is dummy data having the same format as the serial data generated based on the image data, and the nozzles of the recording head 21 are not driven according to the test serial data.
The data output unit 3a also generates and adds check data for the test serial data.

また、データ出力部3aは、シリアルデータをパラレルデータに変換する際に用いられる所定のクロック信号(SI_CLK)、シリアルデータの出力の有無を示すイネーブル信号(DATA_EN)及びパラレルデータの出力先の切り替えを示す切り替え信号(SW)を出力する。   The data output unit 3a also switches a predetermined clock signal (SI_CLK) used when converting serial data into parallel data, an enable signal (DATA_EN) indicating whether serial data is output, and a parallel data output destination. The switching signal (SW) shown is output.

データ出力部3aは、例えば、PLD又はASICのような集積回路あるいはこれらの組み合わせによる回路からなり、当該回路にデータ出力部3aとしての機能が実装されるが、一例であってこれに限られるものでなく、適宜変更可能である。   The data output unit 3a is composed of, for example, an integrated circuit such as PLD or ASIC or a combination thereof, and the function as the data output unit 3a is mounted on the circuit. Instead, it can be changed as appropriate.

画像形成部10は、画像処理部3により画像処理が施された画像データに基づいて、記録媒体に画像を形成する。
具体的には、画像形成部10は、例えば、複数の記録ヘッド21が設けられたヘッドユニット20、記録媒体を搬送する搬送部11、搬送部11により搬送される記録媒体に対向する位置でヘッドユニット20を支持するキャリッジ12等を備える。かかる画像形成部10は、ヘッドユニット20に設けられた複数の記録ヘッド21のノズルからインクを吐出することで、記録媒体に画像を形成するインクジェット記録方式により画像を形成する。
The image forming unit 10 forms an image on a recording medium based on the image data subjected to image processing by the image processing unit 3.
Specifically, the image forming unit 10 includes, for example, a head unit 20 provided with a plurality of recording heads 21, a transport unit 11 that transports a recording medium, and a head at a position facing the recording medium transported by the transport unit 11. A carriage 12 for supporting the unit 20 is provided. The image forming unit 10 forms an image by an ink jet recording method in which an image is formed on a recording medium by ejecting ink from nozzles of a plurality of recording heads 21 provided in the head unit 20.

操作表示部4は、画像形成装置1の動作に係る各種の入力及び表示出力を行う。
具体的には、操作表示部4は、例えば、図示は省略するが、タッチパネル方式の入力表示装置や、各種の選択操作や送り操作等を行うための上下左右移動キーや各種機能キー等を備え、ユーザの操作入力に対応した信号を中央制御部5に出力する。また、操作表示部4は、中央制御部5の制御下で、画像形成装置1の動作に係る各種の表示内容を入力表示装置にて表示する。
The operation display unit 4 performs various inputs and display outputs related to the operation of the image forming apparatus 1.
Specifically, the operation display unit 4 includes, for example, a touch panel type input display device, up / down / left / right movement keys for performing various selection operations, feeding operations, and the like, although not shown in the drawings. A signal corresponding to the user's operation input is output to the central control unit 5. The operation display unit 4 displays various display contents related to the operation of the image forming apparatus 1 on the input display device under the control of the central control unit 5.

中央制御部5は、例えば、図示は省略するが、CPU、RAM、ROM等を有し、ROM等の記憶装置から処理内容に応じた各種のソフトウェア・プログラムやデータ等を読み出して実行することで、画像形成装置1の動作に係る各種の処理を行う。   The central control unit 5 includes, for example, a CPU, a RAM, a ROM, and the like (not shown), and reads and executes various software programs, data, and the like corresponding to the processing contents from a storage device such as a ROM. Various processes related to the operation of the image forming apparatus 1 are performed.

次に、ヘッドユニット20について、図2を参照してより詳細に説明する。
ヘッドユニット20は、例えば、複数の記録ヘッド21の他に、さらに、位相調整部30、複数のヘッド駆動部23等を備える。
Next, the head unit 20 will be described in more detail with reference to FIG.
The head unit 20 includes, for example, a phase adjusting unit 30 and a plurality of head driving units 23 in addition to the plurality of recording heads 21.

位相調整部30は、データ出力部3aから出力されたシリアルデータをパラレルデータに変換してヘッド駆動部23に出力する位相調整回路である。
具体的には、位相調整部30は、データ出力部3aから出力されたシリアルデータを取得し、取得されたシリアルデータに含まれる部分データをパラレルデータに変換して複数のヘッド駆動部23の各々に出力する。ここで、パラレルデータをどのヘッド駆動部23に出力するのかを決定するための処理は、所定のルールに基づいて行われる。例えば、シリアルデータに含まれる部分データの並び順と、各部分データに対応するヘッド駆動部23の並び順とを対応させるようにしてもよいし、パラレルデータとヘッド駆動部23との対応関係を示すデータを部分データに含ませるようにしてもよい。本発明は、その他、パラレルデータとヘッド駆動部23との対応関係を特定可能なあらゆるルールを適宜採用することができる。
The phase adjustment unit 30 is a phase adjustment circuit that converts the serial data output from the data output unit 3 a into parallel data and outputs the parallel data to the head drive unit 23.
Specifically, the phase adjustment unit 30 acquires the serial data output from the data output unit 3a, converts partial data included in the acquired serial data into parallel data, and each of the plurality of head driving units 23. Output to. Here, the process for determining which head drive unit 23 to output the parallel data is performed based on a predetermined rule. For example, the arrangement order of the partial data included in the serial data may correspond to the arrangement order of the head driving unit 23 corresponding to each partial data, or the correspondence relationship between the parallel data and the head driving unit 23 may be changed. The data shown may be included in the partial data. In the present invention, any other rules that can specify the correspondence between the parallel data and the head driving unit 23 can be adopted as appropriate.

また、位相調整部30は、パラレルデータの正誤を判定する機能を有する。
具体的には、位相調整部30は、例えば、パラレルデータの誤り検出のためのチェックデータを生成する。本実施形態におけるチェックデータは、付加データとともに用いることでパラレルデータの正誤を判定するためのデータである。よって、チェックデータの具体的な態様は、付加データに係り採用されている誤り検出の方法と同一の方法に基づく。
位相調整部30は、シリアルデータに付加された付加データと、位相調整部30にて生成されたチェックデータとの比較結果に基づいて、パラレルデータにデータの誤りが含まれているか否か判定する。比較結果と判定結果との対応関係は、誤り検出の具体的な方法に応じる。
誤りが含まれていない場合、位相調整部30は、正しいパラレルデータへの変換が行われたものと判定する。誤りが含まれている場合、位相調整部30は、誤ったパラレルデータへの変換が行われたものと判定する。
また、位相調整部30は、シリアルデータをパラレルデータに変換する際のクロック信号の位相を調整する機能を有する。位相調整部30は、位相の調整に係り、パラレルデータにデータの誤りが含まれているか否かの判定結果を用いる。位相の調整により、位相調整部30は、正しいパラレルデータをより確実に生成することができるようになる。
位相の調整の詳細については、後述する。
The phase adjustment unit 30 has a function of determining whether the parallel data is correct.
Specifically, the phase adjustment unit 30 generates check data for error detection of parallel data, for example. The check data in the present embodiment is data for determining the correctness of parallel data by using it together with additional data. Therefore, the specific mode of the check data is based on the same method as the error detection method employed for the additional data.
The phase adjustment unit 30 determines whether or not the parallel data includes a data error based on the comparison result between the additional data added to the serial data and the check data generated by the phase adjustment unit 30. . The correspondence between the comparison result and the determination result depends on a specific method of error detection.
If no error is included, the phase adjustment unit 30 determines that conversion to correct parallel data has been performed. If an error is included, the phase adjustment unit 30 determines that conversion to erroneous parallel data has been performed.
The phase adjustment unit 30 has a function of adjusting the phase of the clock signal when converting serial data into parallel data. The phase adjustment unit 30 uses the determination result as to whether or not a data error is included in the parallel data in connection with the phase adjustment. By adjusting the phase, the phase adjusting unit 30 can generate correct parallel data more reliably.
Details of the phase adjustment will be described later.

また、データ出力部3aと位相調整部30との間で各種のデータを送受信するための配線が設けられている。
具体的には、例えば、データ出力部3aが位相調整部30に出力するデータに対応する配線として、所定のクロック信号(SI_CLK)、シリアルデータ(SI_DATA)、イネーブル信号(DATA_EN)及び切り替え信号(SW)の各々に対応する配線が設けられている。また、位相調整部30がデータ出力部3aに出力するデータに対応する配線として、位相の調整の完了を示す完了信号(DONE)に対応する配線が設けられている。
データ出力部3aと位相調整部30との間で各種のデータを送受信するための配線に係る具体的な技術として、例えば、LVDS(Low voltage differential signaling)が採用されるが、一例であってこれに限られるものでなく、適宜変更可能である。
In addition, wiring for transmitting and receiving various data between the data output unit 3a and the phase adjustment unit 30 is provided.
Specifically, for example, as the wiring corresponding to the data output from the data output unit 3a to the phase adjustment unit 30, a predetermined clock signal (SI_CLK), serial data (SI_DATA), enable signal (DATA_EN), and switching signal (SW Wiring corresponding to each of the above is provided. In addition, a wiring corresponding to a completion signal (DONE) indicating completion of phase adjustment is provided as a wiring corresponding to data output from the phase adjustment unit 30 to the data output unit 3a.
For example, LVDS (Low voltage differential signaling) is adopted as a specific technique related to wiring for transmitting and receiving various types of data between the data output unit 3a and the phase adjustment unit 30. It is not restricted to this, It can change suitably.

複数のヘッド駆動部23は、複数の記録ヘッド21の各々に対応して設けられ、位相調整部30から出力されたパラレルデータに応じて、複数の記録ヘッド21を個別に駆動する。
具体的には、ヘッド駆動部23は、例えば、ヘッドユニット20に設けられた基板に配設された回路及び配線からなり、パラレルデータに含まれる、圧電素子等の圧力発生手段の駆動データに応じて記録ヘッド21のノズルの各々に対応して設けられた圧力発生手段(例えば、圧電素子等)を駆動させるための駆動波形Wを生成し、圧力発生手段に出力する。圧力発生手段は、駆動波形Wに応じて動作し、インクをノズルから吐出する。
本実施形態では、ヘッド駆動部23が直接記録ヘッド21を駆動しているが、一例であってこれに限られるものでない。例えば、記録ヘッド21に設けられた複数のノズルを駆動するための回路が記録ヘッド21に設けられていてもよく、この場合に、ヘッド駆動部23は、当該回路に対応した構成となる。かかる場合、ヘッド駆動部23は、ノズルの各々に駆動信号を出力するタイミングを示す情報、ノズルの各々から吐出されるインクの量を示す情報、ラッチ信号等を含む記録ヘッド用信号を記録ヘッド21の各々に対して出力する。また、ヘッド駆動部23は、記録ヘッド用信号の出力とともに、記録ヘッド21のノズルの各々を駆動するための電圧を供給する機能を有していてもよい。
また、複数のヘッド駆動部23は、1つの回路基板にまとめて設けるようにしても良く、さらにこの回路基板に位相調整部30を設けるようにしても良い。
The plurality of head driving units 23 are provided corresponding to each of the plurality of recording heads 21, and individually drive the plurality of recording heads 21 in accordance with the parallel data output from the phase adjustment unit 30.
Specifically, the head driving unit 23 includes, for example, a circuit and wiring disposed on a substrate provided in the head unit 20, and corresponds to driving data of pressure generating means such as a piezoelectric element included in parallel data. Then, a drive waveform W for driving pressure generating means (for example, a piezoelectric element) provided corresponding to each nozzle of the recording head 21 is generated and output to the pressure generating means. The pressure generating means operates according to the drive waveform W and ejects ink from the nozzles.
In the present embodiment, the head driving unit 23 directly drives the recording head 21, but this is an example and the present invention is not limited to this. For example, a circuit for driving a plurality of nozzles provided in the recording head 21 may be provided in the recording head 21, and in this case, the head driving unit 23 has a configuration corresponding to the circuit. In such a case, the head driving unit 23 outputs the recording head signal including information indicating the timing for outputting the driving signal to each nozzle, information indicating the amount of ink ejected from each nozzle, a latch signal, and the like. Output for each of. The head driving unit 23 may have a function of supplying a voltage for driving each nozzle of the recording head 21 together with the output of the recording head signal.
Further, the plurality of head drive units 23 may be provided collectively on a single circuit board, and the phase adjustment unit 30 may be provided on this circuit board.

次に、位相調整部30について、図3を参照してより詳細に説明する。図3では便宜上、図示するヘッド駆動部23を一つとしている。
位相調整部30は、位相シフトクロック生成部31、変換部32、判定部33、位相制御部40等を備える。
Next, the phase adjustment unit 30 will be described in more detail with reference to FIG. In FIG. 3, for the sake of convenience, only one head driving unit 23 is illustrated.
The phase adjustment unit 30 includes a phase shift clock generation unit 31, a conversion unit 32, a determination unit 33, a phase control unit 40, and the like.

位相シフトクロック生成部31は、任意に設定された位相のクロック信号を生成する生成部として機能する。
具体的には、位相シフトクロック生成部31は、例えば、図4に示すように、データ出力部3aから出力された所定のクロック信号(SI_CLK)の位相を任意に変更する。図4では、クロック信号C1に対してΔθだけ位相を一方にずらすように位相を変更したクロック信号C2や、クロック信号C2に対してΔθだけ位相を一方にずらすように位相を変更したクロック信号C3を例示している。図4では、位相の変更の度合いをΔθで示しているが、位相シフトクロック生成部31は、Δθを任意に変更することができる。
また、位相シフトクロック生成部31は、当該位相シフトクロック生成部31にて生成されたクロック信号(CLK_θ)を変換部32に出力する。また、位相シフトクロック生成部31は、クロック信号(CLK_θ)とともに、当該クロック信号の出力の有無を示すイネーブル信号(CLK_EN)を変換部32に出力する。
位相シフトクロック生成部31は、例えば、PLL(phase locked loop)等の電子回路からなるが、一例であってこれに限られるものでなく、適宜変更可能である。
The phase shift clock generation unit 31 functions as a generation unit that generates a clock signal having an arbitrarily set phase.
Specifically, for example, as illustrated in FIG. 4, the phase shift clock generation unit 31 arbitrarily changes the phase of a predetermined clock signal (SI_CLK) output from the data output unit 3 a. In FIG. 4, the clock signal C2 whose phase is changed so as to shift the phase by Δθ with respect to the clock signal C1 or the clock signal C3 whose phase is changed so as to be shifted by Δθ with respect to the clock signal C2 is shifted. Is illustrated. In FIG. 4, the degree of phase change is indicated by Δθ, but the phase shift clock generation unit 31 can arbitrarily change Δθ.
In addition, the phase shift clock generation unit 31 outputs the clock signal (CLK_θ) generated by the phase shift clock generation unit 31 to the conversion unit 32. Further, the phase shift clock generation unit 31 outputs an enable signal (CLK_EN) indicating whether or not the clock signal is output together with the clock signal (CLK_θ) to the conversion unit 32.
The phase shift clock generation unit 31 includes an electronic circuit such as a PLL (phase locked loop), for example. However, the phase shift clock generation unit 31 is an example and is not limited thereto, and can be changed as appropriate.

位相シフトクロック生成部31による位相の変更の度合いは、例えば、予め定められている。
一例として、位相の変更の最小単位(位相ずらし間隔)が、20[psec]である場合、クロック信号の位相の変更の度合いは0.72[°]刻みとなる。
上記の一例は、本実施形態にて便宜上設定されているものであり、これに限られるものでなく、最適位相の設定に係り求められる精度に応じて、適宜変更可能である。
The degree of phase change by the phase shift clock generator 31 is determined in advance, for example.
As an example, when the minimum unit of phase change (phase shift interval) is 20 [psec], the degree of change of the phase of the clock signal is in increments of 0.72 [°].
The above example is set for convenience in the present embodiment, and is not limited to this, and can be changed as appropriate according to the accuracy required for setting the optimum phase.

また、位相シフトクロック生成部31の初期状態における位相の変更の度合いは、任意に設定、変更可能である。本実施形態では、初期状態の位相シフトクロック生成部31は、位相を変更せず、所定のクロック信号(SI_CLK)の位相がそのまま維持されたクロック信号を生成するものとする。   Further, the degree of phase change in the initial state of the phase shift clock generation unit 31 can be arbitrarily set and changed. In the present embodiment, the phase shift clock generation unit 31 in the initial state generates a clock signal in which the phase of a predetermined clock signal (SI_CLK) is maintained as it is without changing the phase.

変換部32は、位相シフトクロック生成部31により生成されたクロック信号に応じて、シリアルデータをパラレルデータに変換して出力する。
具体的には、変換部32は、位相シフトクロック生成部31により生成されたクロック信号(CLK_θ)により定められる処理のタイミングに応じて、データ出力部3aから出力されたシリアルデータ(SI_DATA)をパラレルデータに分割する処理を行うことで、シリアルデータをパラレルデータに変換する。
また、変換部32は、パラレルデータを出力する。また、変換部32は、パラレルデータとともに、パラレルデータの出力の有無を示すイネーブル信号(P_VALID)を出力する。
The conversion unit 32 converts serial data into parallel data according to the clock signal generated by the phase shift clock generation unit 31 and outputs the parallel data.
Specifically, the conversion unit 32 parallelizes the serial data (SI_DATA) output from the data output unit 3a in accordance with the processing timing determined by the clock signal (CLK_θ) generated by the phase shift clock generation unit 31. Serial data is converted into parallel data by performing a process of dividing the data.
The conversion unit 32 outputs parallel data. Further, the conversion unit 32 outputs an enable signal (P_VALID) indicating whether or not parallel data is output together with the parallel data.

クロック信号(CLK_θ)に適切な位相が設定されていることにより、当該クロック信号に応じた変換部32による処理のタイミングが適正である場合、シリアルデータをパラレルデータに変換する処理が正しく行われ、正しいパラレルデータが得られる。一方、当該クロック信号に適切な位相が設定されていない場合、当該クロック信号に応じた変換部32による処理のタイミングが不適正となり、パラレルデータへの変換が上手くいかず、データの誤りが生じることとなる。   When an appropriate phase is set for the clock signal (CLK_θ), when the timing of processing by the conversion unit 32 according to the clock signal is appropriate, processing for converting serial data into parallel data is correctly performed, Correct parallel data can be obtained. On the other hand, if an appropriate phase is not set for the clock signal, the timing of processing by the conversion unit 32 corresponding to the clock signal is inappropriate, conversion to parallel data is not successful, and data error occurs. It becomes.

判定部33は、変換部32により変換されたパラレルデータの正誤を判定する。
具体的には、判定部33は、例えば、変換部32により変換されて出力されたパラレルデータ(P_DATA)のチェックデータを生成する。判定部33は、チェックデータと、シリアルデータに付加された付加データとを比較し、比較結果に基づいて、パラレルデータの正誤を判定する。
The determination unit 33 determines whether the parallel data converted by the conversion unit 32 is correct.
Specifically, the determination unit 33 generates, for example, check data for parallel data (P_DATA) converted and output by the conversion unit 32. The determination unit 33 compares the check data with the additional data added to the serial data, and determines whether the parallel data is correct based on the comparison result.

また、判定部33は、パラレルデータの正誤の判定結果に応じた出力を行う。
具体的には、判定部33は、例えば、正しいパラレルデータへの変換が行われたことを示す出力(OK)又はパラレルデータへの変換にてデータの誤りが生じたことを示す出力(NG)のいずれかを位相制御部40に出力する。また、本実施形態では、判定部33は、位相シフトクロック生成部31により生成されたクロック信号(CLK_θ)の位相を示す情報と、当該位相にて変換されたパラレルデータの正誤の判定結果を示す情報(OK又はNG)とを対応付けて、位相制御部40に出力する。
「OK」又は「NG」の判定結果は、二値(1又は0)にて表すことができるので、パラレルデータの正誤の判定結果は、最低1ビットで表すことができるが、一例であってこれに限られるものでなく、適宜変更可能である。
The determination unit 33 performs output according to the determination result of the parallel data.
Specifically, for example, the determination unit 33 outputs (OK) indicating that conversion to correct parallel data has been performed or output (NG) indicating that an error in data has occurred in conversion to parallel data. Is output to the phase control unit 40. Further, in the present embodiment, the determination unit 33 indicates information indicating the phase of the clock signal (CLK_θ) generated by the phase shift clock generation unit 31 and the correct / incorrect determination result of the parallel data converted at the phase. The information (OK or NG) is associated and output to the phase control unit 40.
Since the determination result of “OK” or “NG” can be expressed by binary (1 or 0), the determination result of parallel data correctness / incorrectness can be expressed by at least 1 bit. It is not restricted to this, It can change suitably.

位相制御部40は、判定部33による判定結果に基づいて、変換部32によってシリアルデータが正しくパラレルデータに変換されるように位相シフトクロック生成部31により生成されるクロック信号の位相を制御する制御部として機能する。
位相制御部40は、例えば、記憶部41、特定部42、指示部43等を備える。
The phase control unit 40 controls the phase of the clock signal generated by the phase shift clock generation unit 31 so that the serial data is correctly converted into parallel data by the conversion unit 32 based on the determination result by the determination unit 33. It functions as a part.
The phase control unit 40 includes, for example, a storage unit 41, a specifying unit 42, an instruction unit 43, and the like.

記憶部41は、複数のクロック信号の各々の位相と複数のクロック信号の各々に応じて変換部32により変換されたパラレルデータの各々に対する判定部33による正誤の判定結果とが対応付けられたデータを記憶する。
具体的には、記憶部41は、例えば、フラッシュメモリー等により構成された記憶装置を有し、判定部33から出力された判定結果、即ち、クロック信号(CLK_θ)の位相を示す情報と当該位相にて変換されたパラレルデータの正誤の判定結果を示す情報(OK又はNG)とが対応付けられたデータを記憶する。
The storage unit 41 is a data in which each phase of a plurality of clock signals is associated with a correct / incorrect determination result by the determination unit 33 for each of parallel data converted by the conversion unit 32 according to each of the plurality of clock signals. Remember.
Specifically, the storage unit 41 includes, for example, a storage device configured by a flash memory or the like. The determination result output from the determination unit 33, that is, information indicating the phase of the clock signal (CLK_θ) and the phase The data associated with the information (OK or NG) indicating the correctness / incorrectness determination result of the parallel data converted in (1) is stored.

特定部42は、記憶部41に記憶されたデータに基づいて、位相の範囲及び最適位相を特定する。
具体的には、特定部42は、例えば、記憶部41に記憶されたデータを読み出して、「OK」の判定結果と対応付けられた位相の範囲を特定する。そして、特定部42は、特定された位相の範囲内の値を最適位相として算出する。
より具体的には、特定部42は、例えば、特定された位相の範囲の中央値に対応する位相を最適位相とする。
The specifying unit 42 specifies the phase range and the optimum phase based on the data stored in the storage unit 41.
Specifically, for example, the specifying unit 42 reads data stored in the storage unit 41 and specifies the phase range associated with the determination result “OK”. Then, the specifying unit 42 calculates a value within the specified phase range as the optimum phase.
More specifically, the specifying unit 42 sets, for example, the phase corresponding to the median value of the specified phase range as the optimum phase.

位相の範囲及び最適位相の具体例について、図5を参照して説明する。
図5に示す例では、72〜144[°]の位相の範囲内で「OK」の判定結果が得られており、それ以外の範囲で「NG」の判定結果が得られている。この場合、特定部42は、72〜144[°]の位相の範囲を「OK」の判定結果と対応付けられた位相の範囲として特定する。また、特定部42は、72〜144[°]の位相の範囲の中央値に対応する108[°]の位相を最適位相とする。
Specific examples of the phase range and the optimum phase will be described with reference to FIG.
In the example shown in FIG. 5, a determination result of “OK” is obtained within the phase range of 72 to 144 [°], and a determination result of “NG” is obtained in the other range. In this case, the specifying unit 42 specifies the phase range of 72 to 144 [°] as the phase range associated with the determination result “OK”. Further, the specifying unit 42 sets the phase of 108 [°] corresponding to the median of the phase range of 72 to 144 [°] as the optimum phase.

指示部43は、特定部42により最適位相が特定されるまで、それぞれ位相の異なる複数のクロック信号を生成部(位相シフトクロック生成部31)に生成させるように生成部における位相の設定を変更する指示信号を生成部に出力する。   The instruction unit 43 changes the phase setting in the generation unit so that the generation unit (phase shift clock generation unit 31) generates a plurality of clock signals having different phases until the optimum phase is specified by the specification unit 42. An instruction signal is output to the generation unit.

例えば、図5に示す例の場合、位相シフトクロック生成部31の初期状態で生成された0[°]の位相では「NG」の判定結果となることから、指示部43は、特定部42による最適位相の特定に必要な「OK」の判定結果が得られる位相の範囲が特定されるまで位相を逐次シフトさせる。具体的には、指示部43は、予め定められた位相の変更の度合い(例えば、0.72[°])だけ位相を一方(例えば、正の方向(図5等の右側))にシフトさせるための指示信号(図3の「シフト指示」により示される信号)を逐次出力する。   For example, in the case of the example shown in FIG. 5, a determination result of “NG” is obtained at the phase of 0 [°] generated in the initial state of the phase shift clock generation unit 31. The phase is sequentially shifted until the range of phases in which the determination result “OK” necessary for specifying the optimum phase is obtained is specified. Specifically, the instruction unit 43 shifts the phase to one side (for example, the positive direction (right side in FIG. 5 and the like)) by a predetermined degree of phase change (for example, 0.72 [°]). Instruction signals (signals indicated by “shift instruction” in FIG. 3) are sequentially output.

位相シフトクロック生成部31は、指示部43からの指示信号に応じたクロック信号(CLK_θ)の位相の設定を行う。また、位相シフトクロック生成部31は、設定が完了したことを示す信号(図3の「シフト完了」により示される信号)を位相制御部40に出力する。
その後、位相シフトクロック生成部31は、新たに設定された位相のクロック信号(CLK_θ)を出力する。変換部32は、新たに設定された位相のクロック信号(CLK_θ)に応じて、シリアルデータをパラレルデータに変換する。判定部33は、新たに設定された位相のクロック信号(CLK_θ)に応じて変換されたパラレルデータの正誤を判定する。位相制御部40の記憶部41は、新たに設定されたクロック信号の位相と、当該クロック信号に応じて変換部32により変換されたパラレルデータの正誤の判定結果とを対応付けて記憶する。
新たな位相の設定に伴う各部の動作は、指示部43から位相の設定を変更する指示信号が出力されるたびに行われる。
このように、位相制御部40は、位相を第1所定角度(例えば、0.72[°])ずつずらすように生成部(位相シフトクロック生成部31)における位相の設定を変更することでそれぞれ位相の異なる複数のクロック信号を生成部に生成させる。
The phase shift clock generation unit 31 sets the phase of the clock signal (CLK_θ) according to the instruction signal from the instruction unit 43. Further, the phase shift clock generation unit 31 outputs a signal indicating that the setting has been completed (a signal indicated by “shift completion” in FIG. 3) to the phase control unit 40.
Thereafter, the phase shift clock generation unit 31 outputs a clock signal (CLK_θ) having a newly set phase. The conversion unit 32 converts serial data into parallel data in accordance with a clock signal (CLK_θ) having a newly set phase. The determination unit 33 determines whether the parallel data converted in accordance with the newly set phase clock signal (CLK_θ) is correct. The storage unit 41 of the phase control unit 40 stores the newly set phase of the clock signal and the correct / incorrect determination result of the parallel data converted by the conversion unit 32 in accordance with the clock signal.
The operation of each unit accompanying the setting of a new phase is performed each time an instruction signal for changing the phase setting is output from the instruction unit 43.
Thus, the phase control unit 40 changes the phase setting in the generation unit (phase shift clock generation unit 31) so as to shift the phase by a first predetermined angle (for example, 0.72 [°]), respectively. A generation unit generates a plurality of clock signals having different phases.

図5に示す例の場合、初期状態である0[°]から72[°]の位相が設定されるまで、「NG」の判定結果が連続して得られる。72[°]の位相が設定されると、「OK」の判定結果が得られる。その後、144[°]の位相まで、「OK」の判定結果が連続して得られる。その後、144[°]を超えると、再び「NG」の判定結果が得られる。クロック信号の位相が144[°]を超え、再び「NG」の判定結果が得られたことで、「OK」の判定結果が得られる位相の下限(例えば、72[°])と上限(例えば、144[°])が特定されたことになる。よって、特定部42は、当該位相の下限と上限で示される位相の範囲(72〜144[°])を特定し、その範囲内の値(例えば、中央値である108[°])を最適位相とする。
なお、図5等で示されている位相の変更の間隔はあくまで説明のための模式的なものであり、実際の位相の変更の間隔は、指示信号に応じた位相の変更の度合いに応じる。
In the case of the example illustrated in FIG. 5, the determination result of “NG” is continuously obtained until the phase of 0 [°], which is the initial state, is set to 72 [°]. When the phase of 72 [°] is set, a determination result of “OK” is obtained. Thereafter, the determination result of “OK” is continuously obtained up to the phase of 144 [°]. Thereafter, when it exceeds 144 [°], the determination result of “NG” is obtained again. When the phase of the clock signal exceeds 144 [°] and the determination result of “NG” is obtained again, the lower limit (for example, 72 [°]) and upper limit (for example, 72 [°]) of the determination result of “OK” are obtained. 144 [°]) is specified. Therefore, the specifying unit 42 specifies the phase range (72 to 144 [°]) indicated by the lower limit and the upper limit of the phase, and optimizes a value within the range (for example, the median value 108 [°]). Phase.
It should be noted that the phase change intervals shown in FIG. 5 and the like are schematic for explanation only, and the actual phase change intervals depend on the degree of phase change according to the instruction signal.

指示部43は、特定部42により最適位相が特定された後に、最適位相を設定する指示信号を位相シフトクロック生成部31に出力する。
具体的には、指示部43は、最適位相が特定されるまで行っていた位相を逐次シフトさせるための指示信号の出力を終了し、最適位相を設定するための指示信号を位相シフトクロック生成部31に出力する。図5に示す例の場合、指示部43は、位相を108[°]に設定するための指示信号を出力する。
このように、位相制御部40は、それぞれ位相の異なる複数のクロック信号を生成部(位相シフトクロック生成部31)に生成させるように生成部における位相の設定を変更し、複数のクロック信号の各々に応じて変換部32により変換されたパラレルデータの各々に対する判定部33による正誤の判定結果に基づいて、変換部32によってシリアルデータが正しくパラレルデータに変換される位相の範囲を特定し、当該位相の範囲内の値である最適位相を生成部に設定する。
The instruction unit 43 outputs an instruction signal for setting the optimum phase to the phase shift clock generation unit 31 after the optimum phase is specified by the specifying unit 42.
Specifically, the instruction unit 43 ends the output of the instruction signal for sequentially shifting the phase that has been performed until the optimum phase is specified, and outputs the instruction signal for setting the optimum phase to the phase shift clock generation unit To 31. In the case of the example illustrated in FIG. 5, the instruction unit 43 outputs an instruction signal for setting the phase to 108 [°].
Thus, the phase control unit 40 changes the phase setting in the generation unit so that the generation unit (phase shift clock generation unit 31) generates a plurality of clock signals having different phases, and each of the plurality of clock signals. Based on the correct / incorrect determination result by the determination unit 33 for each of the parallel data converted by the conversion unit 32, the phase range in which the serial data is correctly converted into parallel data by the conversion unit 32 is specified, and the phase An optimum phase that is a value within the range is set in the generation unit.

なお、上記では、初期状態の位相シフトクロック生成部31により生成されたクロック信号(CLK_θ)に応じて変換されたパラレルデータの正誤の判定結果が「NG」である場合の最適位相の特定までの指示信号の出力パターンについて、図5を参照して説明したが、最適位相の特定までの指示信号の出力パターンは、これに限られない。別のパターンについて、図6を参照して説明する。   In the above, until the determination of the optimum phase when the correct / incorrect determination result of the parallel data converted according to the clock signal (CLK_θ) generated by the phase shift clock generation unit 31 in the initial state is “NG”. Although the output pattern of the instruction signal has been described with reference to FIG. 5, the output pattern of the instruction signal until the optimum phase is specified is not limited to this. Another pattern will be described with reference to FIG.

図6に示す例の場合、初期状態である0[°]の位相で「OK」の判定結果が得られる。この場合、指示部43は、「NG」の判定結果が得られるまで、予め定められた位相の変更の度合い(例えば、0.72[°])だけ位相を一方(例えば、正の方向)にシフトさせるための指示信号を逐次出力する。
図6に示す例では、36[°]の位相まで、「OK」の判定結果が連続して得られる。36[°]を超える位相が設定されると、「NG」の判定結果が得られる。これにより、一方について「OK」の判定結果が得られる位相の範囲(例えば、上限)が特定されたことになるので、指示部43は、位相を一方(例えば、正の方向)にシフトさせるための指示信号の出力を終了する。
In the case of the example shown in FIG. 6, a determination result of “OK” is obtained with a phase of 0 ° that is the initial state. In this case, the instruction unit 43 sets the phase to one side (for example, in the positive direction) by a predetermined degree of phase change (for example, 0.72 [°]) until the determination result of “NG” is obtained. An instruction signal for shifting is sequentially output.
In the example shown in FIG. 6, the determination result of “OK” is continuously obtained up to a phase of 36 °. When a phase exceeding 36 [°] is set, a determination result of “NG” is obtained. As a result, the phase range (for example, the upper limit) from which the determination result of “OK” is obtained for one side is specified, and thus the instruction unit 43 shifts the phase to one side (for example, the positive direction). The output of the instruction signal is terminated.

次に、指示部43は、他方(例えば、負の方向(図6等の左側)について「OK」の判定結果が得られる位相の範囲(例えば、下限)を特定するための処理に移行する。
具体的には、指示部43は、例えば、位相シフトクロック生成部31の初期状態の位相から一回だけ位相を他方にシフトさせた位相(例えば、−0.72[°])を設定するための指示信号を出力する。当該指示信号に応じ、位相シフトクロック生成部31に設定されている位相は、−0.72[°]の位相となる。仮に、当該位相で「NG」の判定結果が得られた場合、他方(例えば、負の方向(図6等の左側)について「OK」の判定結果が得られる位相の範囲(例えば、下限)が特定されたこととなるので、指示部43は、位相をシフトさせるための指示信号の出力を終了する。一方、当該位相で「OK」の判定結果が得られた場合、指示部43は、「NG」の判定結果が得られるまで、位相を他方(例えば、負の方向)にシフトさせるための指示信号を逐次出力する。
Next, the instruction unit 43 proceeds to a process for specifying a phase range (for example, a lower limit) in which a determination result of “OK” is obtained for the other (for example, the negative direction (left side in FIG. 6 and the like)).
Specifically, the instruction unit 43 sets, for example, a phase (for example, −0.72 [°]) obtained by shifting the phase to the other one time from the initial phase of the phase shift clock generation unit 31. The instruction signal is output. In response to the instruction signal, the phase set in the phase shift clock generation unit 31 is −0.72 [°]. If a determination result of “NG” is obtained for the phase, the phase range (for example, the lower limit) where the determination result of “OK” is obtained in the other direction (for example, the negative direction (left side in FIG. 6 and the like)) is obtained. Since the instruction unit 43 ends the output of the instruction signal for shifting the phase, if the determination result of “OK” is obtained in the phase, the instruction unit 43 Until the determination result “NG” is obtained, an instruction signal for shifting the phase in the other direction (for example, in the negative direction) is sequentially output.

図6に示す例の場合、−36[°]の位相まで、「OK」の判定結果が連続して得られる。その後、−36[°]を下回ると、「NG」の判定結果が得られる。よって、−36[°]を下回るまで、位相を他方(例えば、負の方向)にシフトさせるための指示信号の出力が継続され、−36[°]の位相が、他方について「OK」の判定結果が得られる位相の範囲であると特定される。この場合、最適位相(例えば、中央値)は0[°]となる。
このように、指示部43は、最初に得られたパラレルデータの正誤の判定結果に応じて、より少ない指示信号の出力回数で最適位相が特定されるように、指示信号の出力パターンを変更する。
In the case of the example illustrated in FIG. 6, the determination result of “OK” is continuously obtained up to the phase of −36 [°]. Thereafter, when the value is below −36 [°], a determination result of “NG” is obtained. Therefore, the output of the instruction signal for shifting the phase to the other side (for example, in the negative direction) is continued until it falls below −36 [°], and the phase of −36 [°] is determined to be “OK” for the other. The range of phases from which the result is obtained is specified. In this case, the optimum phase (for example, the median value) is 0 [°].
In this way, the instruction unit 43 changes the output pattern of the instruction signal so that the optimum phase is specified with a smaller number of instruction signal outputs, according to the determination result of the parallel data obtained first. .

変換部32、判定部33及び位相制御部40は、例えば、PLD又はASICのような集積回路あるいはこれらの組み合わせによる回路からなり、当該回路にこれらの各部に対応する機能が実装されるが、一例であってこれに限られるものでなく、適宜変更可能である。   The conversion unit 32, the determination unit 33, and the phase control unit 40 include, for example, an integrated circuit such as PLD or ASIC or a combination thereof, and functions corresponding to these units are mounted on the circuit. However, the present invention is not limited to this, and can be changed as appropriate.

次に、最適位相の設定前後の位相調整部30の動作について説明する。
位相調整部30は、位相シフトクロック生成部31に最適位相が設定されるまで、位相調整モードで動作する。位相調整モードにおいては、データ出力部3aが、テスト用のシリアルデータを出力する。この場合、位相調整部30は、テスト用のシリアルデータを用いて、シリアルデータのパラレルデータへの変換、パラレルデータの正誤の判定、判定結果に基づいた最適位相の特定及び最適位相の設定に係る各種の処理を行う。また、位相調整モードにおいて、パラレルデータは、ヘッド駆動部23に出力されない。
また、位相調整部30は、位相シフトクロック生成部31に最適位相が設定されると、位相固定モードで動作する。位相固定モードにおいて、位相シフトクロック生成部31の位相は最適位相で固定される。また、位相固定モードにおいては、データ出力部3aが、画像データに基づいて生成された吐出パターンを含むシリアルデータを出力する。この場合、位相調整部30は、当該シリアルデータをパラレルデータに変換し、ヘッド駆動部23に出力する。複数の記録ヘッド21の各々は、パラレルデータに応じて動作する。
位相調整部30は、位相調整モードと位相固定モードとの切り替えのための機能を有する。具体的には、例えば、位相制御部40は、信号(DONE)の出力の有無により位相調整モードと位相固定モードとを切り替える。データ出力部3aは、当該信号に応じて、出力するシリアルデータを切り替える。
Next, the operation of the phase adjustment unit 30 before and after setting the optimum phase will be described.
The phase adjustment unit 30 operates in the phase adjustment mode until the optimum phase is set in the phase shift clock generation unit 31. In the phase adjustment mode, the data output unit 3a outputs test serial data. In this case, the phase adjustment unit 30 uses the test serial data to convert the serial data to parallel data, determine whether the parallel data is correct, specify the optimum phase based on the determination result, and set the optimum phase. Perform various processes. In the phase adjustment mode, the parallel data is not output to the head drive unit 23.
Further, the phase adjustment unit 30 operates in the phase fixed mode when the optimum phase is set in the phase shift clock generation unit 31. In the phase fixing mode, the phase of the phase shift clock generator 31 is fixed at the optimum phase. In the phase fixing mode, the data output unit 3a outputs serial data including an ejection pattern generated based on the image data. In this case, the phase adjustment unit 30 converts the serial data into parallel data and outputs the parallel data to the head driving unit 23. Each of the plurality of recording heads 21 operates according to parallel data.
The phase adjustment unit 30 has a function for switching between the phase adjustment mode and the phase fixed mode. Specifically, for example, the phase control unit 40 switches between the phase adjustment mode and the phase fixing mode depending on whether or not a signal (DONE) is output. The data output unit 3a switches the serial data to be output according to the signal.

より具体的には、例えば、図7Aに示すように、DONE信号が出力されていない状態である場合、データ出力部3aが、テスト用のシリアルデータを出力する。テスト用のシリアルデータには、パラレルデータに変換されるテスト用の部分データTD1、TD2、…、TDn(例えば、n=512)と、付加データ(CRC)とが含まれている。位相調整部30は、テスト用のシリアルデータを用いて、シリアルデータのパラレルデータへの変換、パラレルデータの正誤の判定、判定結果に基づいた最適位相の特定及び最適位相の設定に係る各種の処理を行う。
位相シフトクロック生成部31に最適位相が設定されると、図7Bに示すように、DONE信号が出力される。この場合、データ出力部3aは、出力するシリアルデータを、画像データに基づいて生成された、各記録ヘッド21の吐出パターンに対応する部分データHD1、HD2、…を含むシリアルデータとする。テスト用のシリアルデータから吐出パターンを含むシリアルデータへの切り替えの際には、一時的にシリアルデータの出力が行われなくなる。このとき、シリアルデータの出力の有無を示すイネーブル信号(DATA_EN)の出力の有無も、シリアルデータの出力の有無と連動する。
このように、位相制御部40は、最適位相を位相シフトクロック生成部31に設定するまで、パラレルデータの誤りの有無を検出するための付加データが付加されたテスト用のシリアルデータを変換部32に変換させる。
More specifically, for example, as shown in FIG. 7A, when the DONE signal is not output, the data output unit 3a outputs test serial data. The test serial data includes test partial data TD1, TD2,... TDn (for example, n = 512) converted to parallel data and additional data (CRC). The phase adjustment unit 30 uses the test serial data to convert various serial data into parallel data, determine whether the parallel data is correct, determine the optimal phase based on the determination result, and set the optimal phase. I do.
When the optimum phase is set in the phase shift clock generator 31, a DONE signal is output as shown in FIG. 7B. In this case, the data output unit 3a sets the serial data to be output as serial data including partial data HD1, HD2,... Corresponding to the ejection pattern of each recording head 21 generated based on the image data. When switching from the test serial data to the serial data including the ejection pattern, the serial data is temporarily not output. At this time, whether or not an enable signal (DATA_EN) indicating whether or not serial data is output is also linked to whether or not serial data is output.
As described above, the phase control unit 40 converts the test serial data to which the additional data for detecting the presence or absence of the parallel data error is added until the optimum phase is set in the phase shift clock generation unit 31. To convert to

また、位相シフトクロック生成部31に最適位相が設定されることに伴い、位相制御部40から判定部33に初期化のための信号(Mode)が出力される。
また、位相シフトクロック生成部31に最適位相が設定されることに伴い、データ出力部3aから、パラレルデータの出力先の切り替えを示す切り替え信号(SW)が出力される。切り替え信号(SW)が出力されている場合、変換部32は、ヘッド駆動部23にパラレルデータを出力する。図3では、ヘッド駆動部23に出力されるパラレルデータを「DONE_P_DATA」で示している。また、変換部32は、ヘッド駆動部23に対して、パラレルデータとともに、ラッチ信号(DATA_LAT)を出力する。
In addition, as the optimum phase is set in the phase shift clock generation unit 31, a signal (Mode) for initialization is output from the phase control unit 40 to the determination unit 33.
As the optimum phase is set in the phase shift clock generation unit 31, a switching signal (SW) indicating switching of the output destination of parallel data is output from the data output unit 3a. When the switching signal (SW) is output, the conversion unit 32 outputs parallel data to the head driving unit 23. In FIG. 3, the parallel data output to the head driving unit 23 is indicated by “DONE_P_DATA”. Further, the conversion unit 32 outputs a latch signal (DATA_LAT) to the head drive unit 23 together with the parallel data.

また、位相調整モードの開始前に、位相調整部30に設けられた図示しないCPU又はレジスタから初期化信号(CTL_st)が位相制御部40に出力される。また、当該初期化信号は、位相シフトクロック生成部31にも出力される。初期化信号により、位相制御部40の記憶部41に記憶された過去の判定結果に係る記憶内容が削除される。また、初期化信号により、位相シフトクロック生成部31は、初期状態となって、位相の設定が初期状態のもの(例えば、0[°])となる。
なお、本実施形態では、位相制御部40が初期化信号(CTL_st)を位相シフトクロック生成部31に出力しているが、一例であってこれに限られるものでなく、適宜変更可能である。例えば、位相調整部30に設けられた図示しないCPU又はレジスタから直接、初期化信号(CTL_st)を位相シフトクロック生成部31に出力してもよい。
Further, an initialization signal (CTL_st) is output to the phase control unit 40 from a CPU or register (not shown) provided in the phase adjustment unit 30 before the phase adjustment mode is started. The initialization signal is also output to the phase shift clock generation unit 31. The stored content related to the past determination result stored in the storage unit 41 of the phase control unit 40 is deleted by the initialization signal. Further, the phase shift clock generation unit 31 is in an initial state by the initialization signal, and the phase setting is in the initial state (for example, 0 [°]).
In the present embodiment, the phase control unit 40 outputs the initialization signal (CTL_st) to the phase shift clock generation unit 31. However, this is an example, and the present invention is not limited to this, and can be changed as appropriate. For example, the initialization signal (CTL_st) may be output to the phase shift clock generation unit 31 directly from a CPU or register (not shown) provided in the phase adjustment unit 30.

次に、位相の調整に係る処理の流れの一例を、図8のフローチャートを参照して説明する。
データ出力部3aからシリアルデータの出力が開始されるまで、位相調整部30は、位相調整モードで待機する(ステップS1、ステップS2:NO)。その後、データ出力部3aからテスト用のシリアルデータが出力されて、シリアルデータの出力の有無を示すイネーブル信号(DATA_EN)がハイ(HIGH:「H」)になると(ステップS2:YES)、変換部32が、シリアルデータをパラレルデータに変換し(ステップS3)、判定部33が、パラレルデータの正誤の判定を行い(ステップS4)、判定結果を位相制御部40に出力する。判定結果の出力に伴い、判定部33は、当該判定結果が得られたクロック信号の位相を示す情報を位相制御部40に出力する。
Next, an example of the flow of processing related to phase adjustment will be described with reference to the flowchart of FIG.
Until the output of serial data from the data output unit 3a is started, the phase adjustment unit 30 stands by in the phase adjustment mode (step S1, step S2: NO). Thereafter, when test serial data is output from the data output unit 3a and the enable signal (DATA_EN) indicating whether serial data is output becomes high (HIGH: “H”) (step S2: YES), the conversion unit 32 converts the serial data into parallel data (step S3), the determination unit 33 determines whether the parallel data is correct (step S4), and outputs the determination result to the phase control unit 40. Along with the output of the determination result, the determination unit 33 outputs information indicating the phase of the clock signal from which the determination result is obtained to the phase control unit 40.

位相制御部40の記憶部41は、判定結果を記憶する(ステップS5)。ステップS5にて、記憶部41は、クロック信号の位相と、当該位相のクロック信号に応じて変換部32により変換されたパラレルデータに対する判定部33による正誤の判定結果とが対応付けられたデータを記憶する。
特定部42は、記憶部41に記憶された判定結果に基づいて位相の範囲を特定する。ここで、位相の範囲の特定に十分な判定結果が記憶部41に記憶されておらず、位相の範囲の特定が不可能である場合(ステップS6:NO)、指示部43は、位相をシフトさせるための指示信号を出力する(ステップS7)。ステップS7の後、ステップS3の処理に移行する。
ステップS7にて、位相の範囲の特定が完了し(ステップS6:YES)、位相の範囲内の値(例えば、中央値)である最適位相の特定が完了した場合、位相シフトクロック生成部31に最適位相の設定が行われ(ステップS8)、位相調整部30は、位相固定モードに移行する(ステップS9)。
The storage unit 41 of the phase control unit 40 stores the determination result (step S5). In step S <b> 5, the storage unit 41 stores data in which the phase of the clock signal is associated with the correct / incorrect determination result by the determination unit 33 for the parallel data converted by the conversion unit 32 according to the clock signal of the phase. Remember.
The specifying unit 42 specifies the phase range based on the determination result stored in the storage unit 41. If the determination result sufficient for specifying the phase range is not stored in the storage unit 41 and the phase range cannot be specified (step S6: NO), the instruction unit 43 shifts the phase. An instruction signal for outputting the signal is output (step S7). After step S7, the process proceeds to step S3.
In step S7, the identification of the phase range is completed (step S6: YES), and the identification of the optimum phase that is a value within the phase range (for example, the median value) is completed, the phase shift clock generator 31 The optimum phase is set (step S8), and the phase adjusting unit 30 shifts to the phase fixing mode (step S9).

以上、本実施形態の画像形成装置1によれば、変換部32によってシリアルデータが正しくパラレルデータに変換される位相の範囲を特定し、当該位相の範囲内の値である最適位相を位相シフトクロック生成部31に設定するので、より高精度に最適位相を設定することができることから、より適したセットアップ時間及びホールド時間でシリアルデータをパラレルデータに変換することができることとなり、シリアルデータをパラレルデータに変換する変換の精度をより高めることができる。   As described above, according to the image forming apparatus 1 of the present embodiment, the phase range in which serial data is correctly converted into parallel data by the conversion unit 32 is specified, and the optimum phase that is a value within the phase range is determined as the phase shift clock. Since it is set in the generation unit 31, the optimum phase can be set with higher accuracy, so that serial data can be converted into parallel data with a more appropriate setup time and hold time, and serial data is converted into parallel data. The accuracy of conversion to be converted can be further increased.

また、位相を第1所定角度(例えば、0.72[°])ずつずらすように位相シフトクロック生成部31における位相の設定を変更することでそれぞれ位相の異なる複数のクロック信号を位相シフトクロック生成部31に生成させるので、位相をずらすシフト指示の繰り返しという簡易な方法によりそれぞれ位相の異なる複数のクロック信号を位相シフトクロック生成部31に生成させることができることから、簡易な方法でより高精度に最適位相を設定するための処理を実施することができる。   Further, the phase shift clock generator 31 changes the phase setting so that the phase is shifted by a first predetermined angle (for example, 0.72 [°]), thereby generating a plurality of clock signals having different phases. Since it is generated by the unit 31, a plurality of clock signals having different phases can be generated by the phase shift clock generation unit 31 by a simple method of repeating a shift instruction for shifting the phase. A process for setting the optimum phase can be performed.

また、記憶部41が、複数のクロック信号の各々の位相と複数のクロック信号の各々に応じて変換部32により変換されたパラレルデータの各々に対する判定部33による正誤の判定結果とが対応付けられたデータを記憶し、特定部42が、記憶部41に記憶されたデータに基づいて、位相の範囲及び最適位相を特定し、指示部43が、特定部42により最適位相が特定されるまで、それぞれ位相の異なる複数のクロック信号を位相シフトクロック生成部31に生成させるように位相シフトクロック生成部31における位相の設定を変更する指示信号を位相シフトクロック生成部31に出力し、最適位相が特定された後に、最適位相を設定する指示信号を位相シフトクロック生成部31に出力するので、複数のクロック信号の各々に応じて変換されたパラレルデータの正誤の判定結果に基づいて位相の範囲及び最適位相を特定し、特定された最適位相を位相シフトクロック生成部31に設定することができることから、より高精度に最適位相を設定することができる。   Further, the storage unit 41 associates each phase of the plurality of clock signals with the correct / wrong determination result by the determination unit 33 for each of the parallel data converted by the conversion unit 32 according to each of the plurality of clock signals. Until the specifying unit 42 specifies the phase range and the optimum phase based on the data stored in the storage unit 41, and the instruction unit 43 specifies the optimum phase by the specifying unit 42. An instruction signal for changing the phase setting in the phase shift clock generation unit 31 is output to the phase shift clock generation unit 31 so that the phase shift clock generation unit 31 generates a plurality of clock signals having different phases, and the optimum phase is specified. After that, the instruction signal for setting the optimum phase is output to the phase shift clock generation unit 31, so that it changes according to each of the plurality of clock signals. The phase range and the optimum phase can be identified based on the correctness / incorrectness determination result of the parallel data, and the identified optimum phase can be set in the phase shift clock generation unit 31, so that the optimum phase can be set with higher accuracy. can do.

また、最適位相を位相シフトクロック生成部31に設定するまで、パラレルデータの誤りの有無を検出するための付加データが付加されたテスト用のシリアルデータをパラレルデータに変換部32に変換させるので、実際に使用されるパラレルデータを得る際には既に最適位相が設定されている状態とすることができ、パラレルデータを用いる機器(例えば、記録ヘッド21)に無駄な動作をさせることなく最適位相を設定することができる。
また、データの発信源であるデータ出力部3aと複数のデータ転送対象となる複数のヘッド駆動部23との間の伝送経路のうち、データ出力部3aから分岐点となる位相調整部30までの伝送経路において、複数のヘッド駆動部23の全てに対するデータを含むシリアルデータをシリアル伝送方式により伝送し、位相調整部30にてシリアルデータを複数のヘッド駆動部23の各々に対するデータであるパラレルデータに変換する変換処理を行い、位相調整部30から複数のヘッド駆動部23の各々まで変換後のパラレルデータを伝送することで、シリアル伝送方式の利点を活用することができる。
Further, until the optimum phase is set in the phase shift clock generation unit 31, the test serial data to which additional data for detecting the presence or absence of errors in parallel data is added is converted into parallel data by the conversion unit 32. When obtaining the parallel data to be actually used, the optimum phase can be already set, and the optimum phase can be set without causing a wasteful operation on the device using the parallel data (for example, the recording head 21). Can be set.
Of the transmission paths between the data output unit 3a that is a data transmission source and the plurality of head drive units 23 that are a plurality of data transfer targets, from the data output unit 3a to the phase adjustment unit 30 that is a branch point. In the transmission path, serial data including data for all of the plurality of head driving units 23 is transmitted by a serial transmission method, and the serial data is converted into parallel data which is data for each of the plurality of head driving units 23 by the phase adjustment unit 30. By performing conversion processing for conversion and transmitting the converted parallel data from the phase adjustment unit 30 to each of the plurality of head driving units 23, the advantage of the serial transmission method can be utilized.

なお、本発明の実施の形態は、今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment of the present invention should be considered that the embodiment disclosed this time is illustrative and not restrictive in all respects. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

例えば、上記の実施形態における最適位相は、位相の範囲内の値のうち、中央値に対応する位相であるが、一例であってこれに限られるものでない。最適位相は、位相の範囲内の値であって、シリアルデータをパラレルデータに変換する変換の精度を確保することができる位相であればよい。
具体的には、最適位相は、例えば、特定された位相の範囲内の値のうち、位相調整回路の動作に係り生じうる各種の変動要素を考慮したうえでより確実にシリアルデータをパラレルデータに変換することができるとされた位相の範囲内の値であってもよい。各種の変動要素として、例えば、温度に応じて変化しうる位相調整回路の動作の特性(温度特性)や、位相調整回路の動作に係る各種の信号のジッター、位相調整回路の動作に係り印加される電圧のゆらぎ等が挙げられる。
具体例として、位相制御部40は、特定された位相の範囲を100[%]とした場合に、当該位相の範囲の中央値から±45[%]の範囲内のいずれかの値に対応する位相を最適位相として設定するようにしてもよい。この場合、各種の変動要素を考慮して、シリアルデータをパラレルデータに変換する処理に係るセットアップ時間やホールド時間をより確実に満たすために最適位相として積極的に採用しないほうがよいとされた位相の範囲を、特定された位相の範囲の上限又は下限に近い両端の5[%]に対応する範囲とし、最適位相として設定される値の範囲から除外している。
For example, the optimum phase in the above-described embodiment is a phase corresponding to the median value among the values within the phase range, but is not limited to this example. The optimum phase is a value within the range of the phase and may be any phase that can ensure the accuracy of conversion for converting serial data into parallel data.
Specifically, for example, the optimum phase can be converted from serial data to parallel data more reliably in consideration of various fluctuation factors that may occur in relation to the operation of the phase adjustment circuit among the values within the specified phase range. It may be a value within the range of the phase that can be converted. As various variable factors, for example, the characteristics (temperature characteristics) of the operation of the phase adjustment circuit that can change according to the temperature, the jitter of various signals related to the operation of the phase adjustment circuit, and the operation of the phase adjustment circuit are applied. Voltage fluctuations.
As a specific example, when the specified phase range is set to 100 [%], the phase control unit 40 corresponds to any value within a range of ± 45 [%] from the median value of the phase range. The phase may be set as the optimum phase. In this case, in consideration of various fluctuation factors, it is better not to actively adopt the optimum phase as the optimum phase in order to more reliably satisfy the setup time and hold time related to the process of converting serial data into parallel data. The range is a range corresponding to 5% at both ends close to the upper limit or lower limit of the specified phase range, and is excluded from the range of values set as the optimum phase.

また、上記では、位相の変更の最小単位に対応するクロック信号の位相の変更の度合い(0.72[°])を第1所定角度としているが、一例であってこれに限られるものでなく、第1所定角度は、任意に設定可能である。より大きい位相の変更の度合い(例えば、7.2[°]等)を第1所定角度としてもよい。   In the above description, the first predetermined angle is the degree of phase change (0.72 [°]) of the clock signal corresponding to the minimum unit of phase change. However, this is an example, and the present invention is not limited to this. The first predetermined angle can be arbitrarily set. A greater degree of phase change (for example, 7.2 [°] or the like) may be set as the first predetermined angle.

また、位相制御部40は、位相を第1所定角度ずらす前後で判定部33による正誤の判定結果が異なった場合、位相を第1所定角度ずらす前の位相から位相を第1所定角度ずらした後の位相までの範囲内で、第1所定角度より小さい第2所定角度ずつずらすように位相シフトクロック生成部31における位相の設定を変更するようにしてもよい。   In addition, the phase control unit 40 shifts the phase by the first predetermined angle from the phase before shifting the phase by the first predetermined angle when the determination result of the determination unit 33 is different before and after shifting the phase by the first predetermined angle. The phase setting in the phase shift clock generator 31 may be changed so as to be shifted by a second predetermined angle smaller than the first predetermined angle within the range up to the first phase.

具体的には、例えば、図9、図10に示すように、位相の変更の最小単位より大きい位相の変更の度合い(例えば、7.2[°])となるよう設定された第1所定角度を用いてもよい。この場合、指示部43は、まず、上記の実施形態と同様のシフト指示により、位相を一方にシフトさせるための指示信号を逐次出力する。これにより、位相は、位相の変更の最小単位より大きい位相の変更の度合い(例えば、7.2[°])ずつずれることとなる。
ここで、図9に示すように、7.2[°]と14.4[°]の間で判定結果が「NG」から「OK」に切り替わり、72[°]と79.2[°]との間で判定結果が「OK」から「NG」に切り替わる場合、指示部43は、それぞれ、判定結果が切り替わる前の位相から判定結果が切り替わった後の位相まで、第1所定角度より小さい第2所定角度(例えば、0.72[°])ずつずらすように位相シフトクロック生成部31における位相の設定を変更する。図9の場合、7.92[°]まで「NG」の判定結果が得られ、8.64[°]から「OK」の判定結果が得られている。また、77.76[°]まで「OK」の判定結果が得られ、78.48[°]から再び「NG」の判定結果が得られている。この場合、位相の範囲は、8.64〜77.76[°]と特定され、最適位相は、43.2[°]となる。
Specifically, for example, as shown in FIGS. 9 and 10, the first predetermined angle set to have a phase change degree (for example, 7.2 [°]) larger than the minimum unit of phase change. May be used. In this case, the instruction unit 43 first sequentially outputs an instruction signal for shifting the phase to one side by the same shift instruction as in the above embodiment. Accordingly, the phase is shifted by a degree of phase change (for example, 7.2 [°]) larger than the minimum unit of phase change.
Here, as shown in FIG. 9, the determination result switches from “NG” to “OK” between 7.2 [°] and 14.4 [°], and 72 [°] and 79.2 [°]. When the determination result is switched from “OK” to “NG” between the determination unit 43 and the instruction unit 43, each of the instruction units 43 is smaller than the first predetermined angle from the phase before the determination result is switched to the phase after the determination result is switched. 2 The phase setting in the phase shift clock generator 31 is changed so as to be shifted by a predetermined angle (for example, 0.72 [°]). In the case of FIG. 9, the determination result of “NG” is obtained up to 7.92 [°], and the determination result of “OK” is obtained from 8.64 [°]. Further, a determination result of “OK” is obtained up to 77.76 [°], and a determination result of “NG” is obtained again from 78.48 [°]. In this case, the phase range is specified as 8.64 to 77.76 [°], and the optimum phase is 43.2 [°].

また、図10に示すように、初期状態の位相シフトクロック生成部31により生成されたクロック信号に応じて変換されたパラレルデータの正誤の判定結果が「OK」である場合においても、第1所定角度と、第1所定角度より小さい第2所定角度とを用いることができる。
具体的には、初期状態の位相シフトクロック生成部31により生成されたクロック信号の位相に対して一方(例えば、正の方向)に位相をずらす場合について「OK」の判定結果が得られる位相の範囲(例えば、上限)が特定されるまで、まず、位相の変更の最小単位より大きい位相の変更の度合い(例えば、7.2[°])となるよう設定された第1所定角度を用いて、図6を参照した説明と同様のシフト指示により、位相を一方にシフトさせるための指示信号を逐次出力する。そして、判定結果が「OK」から「NG」に切り替わる前後の位相が特定された後に、判定結果が切り替わる前の位相から判定結果が切り替わった後の位相まで、第1所定角度より小さい第2所定角度(例えば、0.72[°])ずつずらすように位相シフトクロック生成部31における位相の設定を変更する。
初期状態の位相シフトクロック生成部31により生成されたクロック信号の位相に対して他方(例えば、負の方向)に位相をずらす場合についても、同様に、第1所定角度と、第1所定角度より小さい第2所定角度とを用いることができる。
なお、図9及び図10に示す例では、第2所定角度を用いた位相の変更を、第1所定角度を用いて得られたパラレルデータの正誤の判定結果が異なった範囲内におけるより小さな位相の側から開始しているが、一例であってこれに限られるものでなく、適宜変更可能である。
As shown in FIG. 10, even when the correct / incorrect determination result of the parallel data converted according to the clock signal generated by the phase shift clock generation unit 31 in the initial state is “OK”, the first predetermined An angle and a second predetermined angle smaller than the first predetermined angle can be used.
Specifically, for the phase shifted to one side (for example, in the positive direction) with respect to the phase of the clock signal generated by the phase shift clock generation unit 31 in the initial state, the determination result of “OK” is obtained. Until a range (for example, upper limit) is specified, first, using a first predetermined angle set to be a degree of phase change (for example, 7.2 [°]) larger than the minimum unit of phase change. In response to a shift instruction similar to that described with reference to FIG. 6, an instruction signal for shifting the phase to one side is sequentially output. Then, after the phase before and after the determination result is switched from “OK” to “NG” is specified, the second predetermined smaller than the first predetermined angle from the phase before the determination result is switched to the phase after the determination result is switched. The phase setting in the phase shift clock generation unit 31 is changed so as to be shifted by an angle (for example, 0.72 [°]).
Similarly, when the phase is shifted in the other direction (for example, in the negative direction) with respect to the phase of the clock signal generated by the phase shift clock generation unit 31 in the initial state, the first predetermined angle and the first predetermined angle are similarly used. A small second predetermined angle can be used.
In the example shown in FIGS. 9 and 10, the phase change using the second predetermined angle is performed with a smaller phase within a range in which the determination result of the parallel data obtained using the first predetermined angle is different. However, the present invention is not limited to this example, and can be changed as appropriate.

位相を第1所定角度ずらす前後で判定部33による正誤の判定結果が異なった場合、位相を第1所定角度ずらす前の位相から位相を第1所定角度ずらした後の位相まで、第1所定角度より小さい第2所定角度ずつずらすように位相シフトクロック生成部31における位相の設定を変更することで、最適位相が設定されるまでの位相の設定の変更回数及び位相の設定の変更に伴い実施されるシリアルデータのパラレルデータへの変換、パラレルデータの正誤の判定、判定結果の記憶等の各種の処理の実施回数を減らすことができ、最適位相の設定に係る処理負荷をより低減することができる。   If the determination result by the determination unit 33 is different before and after the phase is shifted by the first predetermined angle, the first predetermined angle from the phase before the phase is shifted by the first predetermined angle to the phase after the phase is shifted by the first predetermined angle. By changing the phase setting in the phase shift clock generation unit 31 so as to shift by a smaller second predetermined angle, it is implemented in accordance with the number of phase setting changes and the phase setting change until the optimum phase is set. The number of executions of various processes such as conversion of serial data to parallel data, determination of correctness of parallel data, and storage of determination results can be reduced, and the processing load related to the setting of the optimum phase can be further reduced. .

また、上記の実施形態では、最適位相の設定までテスト用のシリアルデータが用いられているが、これに限られるものでない。例えば、最適位相が設定されるまで、実際に使用されるシリアルデータを用いるようにしてもよい。この場合、例えば、パラレルデータの出力先の切り替えを示す切り替え信号(SW)により、最適位相が設定されるまでの間、パラレルデータの出力対象(例えば、ヘッド駆動部23)にパラレルデータが送信されることを防止する等の対応を行うことにより、誤りを含むパラレルデータが出力対象に送信されてしまうことを防止することができる。   In the above embodiment, the test serial data is used until the optimum phase is set. However, the present invention is not limited to this. For example, serial data that is actually used may be used until the optimum phase is set. In this case, for example, the parallel data is transmitted to the parallel data output target (for example, the head drive unit 23) until the optimum phase is set by the switching signal (SW) indicating the switching of the parallel data output destination. By taking measures such as preventing this, it is possible to prevent parallel data including an error from being transmitted to an output target.

また、最適位相の設定後に、最適位相の再設定を行うようにしてもよい。
例えば、上記の実施形態において、位相固定モードに移行した後も、判定部33によるパラレルデータの正誤の判定を継続し、「NG」の判定結果が得られた場合に、パラレルデータの出力対象(例えば、ヘッド駆動部23)に対するパラレルデータの出力を停止させて、最適位相の設定を再度行うようにしてもよい。そして、最適位相の再設定が完了した後に、パラレルデータの出力対象に対するパラレルデータの出力を再開するようにしてもよい。この場合、何らかの手段(例えば、バッファ等)によりパラレルデータの出力の停止中のシリアルデータを保持するか、又は、シリアルデータの出力を行う構成(例えば、データ出力部3a)に、パラレルデータの出力の停止中のシリアルデータを再度出力させる。また、本実施形態のように、画像形成装置1のヘッド駆動部23に対するパラレルデータの出力により画像形成が行われる場合、パラレルデータの出力の停止と再開と、画像形成に伴い動作する各部(例えば、搬送部11等)の動作とを連動させる。
Further, the optimum phase may be reset after the optimum phase is set.
For example, in the above-described embodiment, when the determination of the parallel data is continued by the determination unit 33 even after shifting to the phase fixing mode, and the determination result of “NG” is obtained, the parallel data output target ( For example, the output of parallel data to the head drive unit 23) may be stopped and the optimum phase may be set again. Then, after the resetting of the optimum phase is completed, the parallel data output to the parallel data output target may be resumed. In this case, the parallel data is output to a configuration (for example, the data output unit 3a) that holds the serial data that has been stopped to output parallel data by some means (for example, a buffer) or outputs serial data. The serial data that is stopped is output again. In addition, as in the present embodiment, when image formation is performed by outputting parallel data to the head driving unit 23 of the image forming apparatus 1, the parallel data output is stopped and restarted, and each unit that operates in association with image formation (for example, And the operation of the transport unit 11 and the like).

また、データ出力部3aと位相調整部30との間にメモリーを設けてもよい。例えば、FIFO(First In, First Out)メモリーをデータ出力部3aと位相調整部30との間に設けることで、データ出力部3aによるシリアルデータの出力と位相調整部30の変換部32によるシリアルデータのパラレルデータへの変換とが非同期であっても動作することができるようになる。即ち、データ出力部3aと位相調整部30の動作周波数を個別に任意の動作周波数とすることができる。また、当該メモリーは、上記のバッファとしても機能することができる。   Further, a memory may be provided between the data output unit 3a and the phase adjustment unit 30. For example, by providing a FIFO (First In, First Out) memory between the data output unit 3 a and the phase adjustment unit 30, serial data output by the data output unit 3 a and serial data by the conversion unit 32 of the phase adjustment unit 30 are provided. It becomes possible to operate even if the conversion to parallel data is asynchronous. That is, the operating frequencies of the data output unit 3a and the phase adjusting unit 30 can be set to arbitrary operating frequencies individually. The memory can also function as the buffer.

また、上記の実施形態では、シリアルデータの出力の有無を示すイネーブル信号(DATA_EN)やクロック信号の出力の有無を示すイネーブル信号(CLK_EN)等のイネーブル信号が、イネーブル信号により出力の有無が示されるデータと別個の配線を用いて送信されているが、一例であってこれに限られるものでない。例えば、イネーブル信号により出力の有無が示されるデータの先頭に付加されたイネーブル信号に応じて、当該データの受信対象に当該データの出力の有無が検知されるようにしてもよい。この場合、イネーブル信号のための配線を省略することができる。   In the above-described embodiment, the enable signal such as an enable signal (DATA_EN) indicating whether serial data is output or an enable signal (CLK_EN) indicating whether a clock signal is output is indicated by the enable signal. The data is transmitted using a separate wiring, but this is an example and the present invention is not limited to this. For example, the presence / absence of output of the data may be detected in the reception target of the data in accordance with the enable signal added to the head of the data indicated by the enable signal. In this case, the wiring for the enable signal can be omitted.

また、上記の実施形態では、位相制御部40が位相シフトクロック生成部31に対して最適位相を直接設定しているが、一例であってこれに限られるものでない。例えば、位相制御部40は、データ出力部3a等、シリアルデータを出力する構成に対して最適位相を示す情報を送信するようにしてもよい。この場合、シリアルデータに、当該シリアルデータをパラレルデータに変換する際に用いるクロック信号の周波数及び当該クロック信号の最適位相を示す情報が付加される。そして、位相シフトクロック生成部31には、シリアルデータに付加されたクロック信号の周波数及び当該クロック信号の最適位相が設定される。   In the above embodiment, the phase control unit 40 directly sets the optimum phase for the phase shift clock generation unit 31. However, the phase control unit 40 is an example, and the present invention is not limited to this. For example, the phase control unit 40 may transmit information indicating the optimum phase to a configuration that outputs serial data, such as the data output unit 3a. In this case, information indicating the frequency of the clock signal used when converting the serial data into parallel data and the optimum phase of the clock signal are added to the serial data. The phase shift clock generation unit 31 is set with the frequency of the clock signal added to the serial data and the optimum phase of the clock signal.

また、上記の実施形態では、判定部33が、シリアルデータの付加データを用いてパラレルデータの正誤を判定しているが、一例であってこれに限られるものでない。例えば、判定部33は、パラレルデータのヘッダーやフッター等が予め定められたデータの並びであるか否かに基づいてパラレルデータの正誤を判定するようにしてもよい。この場合、付加データは不要である。その他、パラレルデータの誤りを検出可能な方法であれば、現在存する他の方法又は将来開発されうる他の方法も採用可能である。   In the above embodiment, the determination unit 33 determines the correctness of the parallel data using the additional data of the serial data, but this is an example and the present invention is not limited to this. For example, the determination unit 33 may determine whether the parallel data is correct or not based on whether or not the parallel data header or footer has a predetermined data arrangement. In this case, additional data is unnecessary. In addition, other methods that currently exist or other methods that can be developed in the future can be adopted as long as they can detect errors in parallel data.

また、上記の実施形態では、記録ヘッド21とヘッド駆動部23をそれぞれ複数設けた場合について例示しているが、一例であってこれに限られるものでない。例えば、記録ヘッド21とヘッド駆動部23をそれぞれ1つずつ設けてもよい。
また、上記の実施形態では、データ出力部3a、位相調整部30及びヘッド駆動部23の各構成が1:1:n(n≧2)で、かつ、複数のヘッド駆動部23が、位相調整部30に対して並列に接続される場合について例示しているが、一例であってこれに限られるものでない。
例えば、複数のヘッド駆動部23が、位相調整部30に対して直列に接続されていてもよい。直列接続の場合には、位相調整部30で変換されたパラレルデータは、位相調整部30に直接接続された最前段のヘッド駆動部23には直接送信されるが、以降の後段のヘッド駆動部23には前段のヘッド駆動部23を順次経由して送信されることになる。
このような直列接続の場合であっても、位相調整部30により最適位相のクロック信号で変換されたパラレルデータが送信されるので、複数のヘッド駆動部23に対して、データの誤りが生じないスキューの小さなパラレルデータを送信することができる。
また、上記の実施形態では、データ出力部3a、位相調整部30及びヘッド駆動部23の各構成が1:1:n(n≧2)である場合について例示しているが、一例であってこれに限られるものでない。
例えば、データ出力部3a、位相調整部30及びヘッド駆動部23の各構成が1:n:n(n≧2)であってもよい。この場合、ヘッド駆動部23と対応する位相調整部30とを1つの回路基板にまとめて設けるようにしても良い。また、複数の位相調整部30は、データ出力部3aに対して並列に接続されていてもよいし、図11の例に示すように、直列に接続(デイジーチェーン接続)されていてもよい。直列に接続することで並列に接続する場合に比べてデータ出力部3aと複数の位相調整部30との配線の数を減らすことができる。なお、図11では図示を省略しているが、デイジーチェーン接続されたデータ出力部3aと位相調整部30との間には、図2に図示するのと同様の配線が設けられている。
例えば、位相調整部30を設けずに、複数のヘッド駆動部23を直列接続して各ヘッド駆動部でシリアルパラレル変換を行う場合には、データ出力部3aから送信されたシリアルデータが複数のヘッド駆動部23を順次経由して伝達されるために、伝送路の伝搬特性によって、直列接続の後段のヘッド駆動部23になるほど遅延が発生し、パラレルデータへの変換処理におけるクロック信号の最適な位相がずれて変換処理の精度に悪影響を及ぼすことになる。これに対して、直列接続された複数の位相調整部30を複数のヘッド駆動部23の各々に対応して設けることにより、各ヘッド駆動部23に対応して設けられた位相調整部30でそれぞれ最適位相を高精度に設定してパラレル変換することができ、遅延による変換処理の精度低下を防止できる。
In the above embodiment, the case where a plurality of recording heads 21 and a plurality of head driving units 23 are provided is illustrated, but this is an example and the present invention is not limited thereto. For example, one recording head 21 and one head driving unit 23 may be provided.
In the above-described embodiment, each configuration of the data output unit 3a, the phase adjustment unit 30, and the head drive unit 23 is 1: 1: n (n ≧ 2), and the plurality of head drive units 23 have the phase adjustment. Although the case where it connects in parallel with respect to the part 30 is illustrated, it is an example and it is not restricted to this.
For example, a plurality of head driving units 23 may be connected to the phase adjusting unit 30 in series. In the case of serial connection, the parallel data converted by the phase adjustment unit 30 is directly transmitted to the foremost head drive unit 23 connected directly to the phase adjustment unit 30, but the subsequent subsequent stage head drive unit 23 is sequentially transmitted through the head drive unit 23 in the preceding stage.
Even in such a series connection, parallel data converted by the clock signal having the optimum phase is transmitted by the phase adjustment unit 30, so that no data error occurs in the plurality of head drive units 23. Parallel data with small skew can be transmitted.
Further, in the above embodiment, the case where each configuration of the data output unit 3a, the phase adjustment unit 30, and the head drive unit 23 is 1: 1: n (n ≧ 2) is illustrated as an example. It is not limited to this.
For example, each configuration of the data output unit 3a, the phase adjustment unit 30, and the head drive unit 23 may be 1: n: n (n ≧ 2). In this case, the head driving unit 23 and the corresponding phase adjustment unit 30 may be provided together on one circuit board. In addition, the plurality of phase adjustment units 30 may be connected in parallel to the data output unit 3a, or may be connected in series (daisy chain connection) as shown in the example of FIG. By connecting in series, the number of wirings between the data output unit 3a and the plurality of phase adjustment units 30 can be reduced as compared with the case of connecting in parallel. Although not shown in FIG. 11, a wiring similar to that shown in FIG. 2 is provided between the data output unit 3a and the phase adjustment unit 30 connected in a daisy chain.
For example, when the plurality of head driving units 23 are connected in series and serial / parallel conversion is performed by each head driving unit without providing the phase adjusting unit 30, the serial data transmitted from the data output unit 3a is stored in the plurality of heads. Since the signal is transmitted via the drive unit 23 sequentially, a delay occurs as the head drive unit 23 in the subsequent stage of the serial connection is caused by the propagation characteristics of the transmission path, and the optimum phase of the clock signal in the conversion processing to parallel data Shifts and adversely affects the accuracy of the conversion process. On the other hand, by providing a plurality of phase adjusting units 30 connected in series corresponding to each of the plurality of head driving units 23, the phase adjusting units 30 provided corresponding to the respective head driving units 23 respectively. The optimal phase can be set with high accuracy and parallel conversion can be performed, and deterioration in accuracy of conversion processing due to delay can be prevented.

また、パラレルデータの出力対象は、ヘッド駆動部23に限られるものでなく、シリアルデータをパラレルデータに変換する処理を伴うあらゆる機器に適用可能である。   Further, the output target of parallel data is not limited to the head drive unit 23, and can be applied to any device that involves processing for converting serial data into parallel data.

また、シリアルデータから変換されたパラレルデータから、さらにシリアルデータを生成するようにしてもよい。この場合、例えば、いったん変換されたパラレルデータに所定の処理(例えば、データの編集)を施して、所定の処理が施されたパラレルデータをシリアルデータの伝送経路を用いて伝送するために再度シリアルデータに変換する、等の運用が考えられる。
また、上記の取得部2の具体的構成は、一例であってこれに限られるものでない。取得部2は、例えば、ハードディスクやフラッシュメモリーカード等の記憶装置を接続可能な各種のインターフェースを備えていてもよい。
その他、本発明の実施形態の具体的構成は、本発明の特徴を逸脱しない範囲内において、適宜変更可能である。
Further, serial data may be further generated from parallel data converted from serial data. In this case, for example, the converted parallel data is subjected to predetermined processing (for example, data editing), and the parallel data subjected to the predetermined processing is serialized again for transmission using the serial data transmission path. Operation such as conversion to data can be considered.
In addition, the specific configuration of the acquisition unit 2 described above is an example and is not limited thereto. The acquisition unit 2 may include various interfaces to which a storage device such as a hard disk or a flash memory card can be connected.
In addition, the specific configuration of the embodiment of the present invention can be changed as appropriate without departing from the characteristics of the present invention.

産業上の利用の可能性Industrial applicability

この発明は、位相調整回路、画像形成装置及び位相調整方法に利用することが出来る。   The present invention can be used for a phase adjustment circuit, an image forming apparatus, and a phase adjustment method.

1 画像形成装置
2 取得部
3 画像処理部
3a データ出力部
4 操作表示部
5 中央制御部
10 画像形成部
11 搬送部
12 キャリッジ
20 ヘッドユニット
21 記録ヘッド
23 ヘッド駆動部
30 位相調整部
31 位相シフトクロック生成部(生成部)
32 変換部
33 判定部
40 位相制御部(制御部)
41 記憶部
42 特定部
43 指示部
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 2 Acquisition part 3 Image processing part 3a Data output part 4 Operation display part 5 Central control part 10 Image formation part 11 Carrying part 12 Carriage 20 Head unit 21 Recording head 23 Head drive part 30 Phase adjustment part 31 Phase shift clock Generator (Generator)
32 conversion unit 33 determination unit 40 phase control unit (control unit)
41 Storage unit 42 Identification unit 43 Instruction unit

Claims (7)

任意に設定された位相のクロック信号を生成する生成部と、
前記生成部により生成されたクロック信号に応じて、シリアルデータをパラレルデータに変換して出力する変換部と、
前記変換部により変換された前記パラレルデータの正誤を判定する判定部と、
前記判定部による判定結果に基づいて、前記生成部により生成されるクロック信号の位相を制御する制御部と、を備え、
前記制御部は、それぞれ位相の異なる複数のクロック信号を生成部に生成させるように前記生成部における位相の設定を変更し、前記複数のクロック信号の各々に応じて前記変換部により変換されたパラレルデータの各々に対する前記判定部による正誤の判定結果に基づいて、前記変換部によって前記シリアルデータが正しくパラレルデータに変換される位相の範囲を特定し、当該位相の範囲内の値である最適位相を前記生成部に設定することを特徴とする位相調整回路。
A generator for generating a clock signal having an arbitrarily set phase;
In accordance with the clock signal generated by the generation unit, a conversion unit that converts serial data into parallel data and outputs the parallel data,
A determination unit that determines whether the parallel data converted by the conversion unit is correct or not;
A control unit that controls a phase of a clock signal generated by the generation unit based on a determination result by the determination unit;
The control unit changes the setting of the phase in the generation unit so that the generation unit generates a plurality of clock signals having different phases, and the parallel converted by the conversion unit according to each of the plurality of clock signals Based on the correct / incorrect determination result by the determination unit for each piece of data, the conversion unit specifies a phase range in which the serial data is correctly converted into parallel data, and an optimum phase that is a value within the phase range is determined. A phase adjustment circuit set in the generation unit.
前記制御部は、位相を第1所定角度ずつずらすように前記生成部における位相の設定を変更することでそれぞれ位相の異なる複数のクロック信号を前記生成部に生成させることを特徴とする請求項1に記載の位相調整回路。   The control unit causes the generation unit to generate a plurality of clock signals having different phases by changing the phase setting in the generation unit so as to shift the phase by a first predetermined angle. The phase adjustment circuit described in 1. 前記制御部は、位相を前記第1所定角度ずらす前後で前記判定部による正誤の判定結果が異なった場合、位相を前記第1所定角度ずらす前の位相から位相を前記第1所定角度ずらした後の位相までの範囲内で、前記第1所定角度より小さい第2所定角度ずつずらすように前記生成部における位相の設定を変更することを特徴とする請求項2に記載の位相調整回路。   The control unit shifts the phase by the first predetermined angle from the phase before shifting the phase by the first predetermined angle when the determination result by the determination unit is different before and after shifting the phase by the first predetermined angle. 3. The phase adjustment circuit according to claim 2, wherein the setting of the phase in the generation unit is changed so as to be shifted by a second predetermined angle smaller than the first predetermined angle within a range up to a phase of. 前記制御部は、
前記複数のクロック信号の各々の位相と前記複数のクロック信号の各々に応じて前記変換部により変換されたパラレルデータの各々に対する前記判定部による正誤の判定結果とが対応付けられたデータを記憶する記憶部と、
前記記憶部に記憶されたデータに基づいて、前記位相の範囲及び前記最適位相を特定する特定部と、
前記特定部により前記最適位相が特定されるまで、それぞれ位相の異なる複数のクロック信号を生成部に生成させるように前記生成部における位相の設定を変更する指示信号を前記生成部に出力し、前記最適位相が特定された後に、前記最適位相を設定する指示信号を前記生成部に出力する指示部と、
を備えることを特徴とする請求項1から3のいずれか一項に記載の位相調整回路。
The controller is
Stores data in which the phase of each of the plurality of clock signals is associated with the correct / incorrect determination result by the determination unit for each of the parallel data converted by the conversion unit according to each of the plurality of clock signals. A storage unit;
Based on the data stored in the storage unit, a specifying unit that specifies the range of the phase and the optimum phase;
Until the optimum phase is identified by the identifying unit, an instruction signal for changing the setting of the phase in the generating unit is output to the generating unit so that the generating unit generates a plurality of clock signals having different phases, An instruction unit that outputs an instruction signal for setting the optimum phase to the generation unit after the optimum phase is specified;
The phase adjustment circuit according to claim 1, further comprising:
前記制御部は、前記最適位相を前記生成部に設定するまで、前記パラレルデータの誤りの有無を検出するための付加データが付加されたテスト用のシリアルデータを前記変換部に変換させることを特徴とする請求項1から4のいずれか一項に記載の位相調整回路。   The control unit causes the conversion unit to convert test serial data to which additional data for detecting whether there is an error in the parallel data is set until the optimum phase is set in the generation unit. The phase adjustment circuit according to any one of claims 1 to 4. 記録ヘッドと、
前記記録ヘッドを駆動するヘッド駆動部と、
前記記録ヘッドの各々のノズルから吐出されるインクの吐出パターンに対応するシリアルデータを出力する出力部と、
前記出力部から出力された前記シリアルデータをパラレルデータに変換して前記ヘッド駆動部に出力する請求項1から5のいずれか一項に記載の位相調整回路と、
を備えることを特徴とする画像形成装置。
A recording head;
A head drive unit for driving the recording head;
An output unit that outputs serial data corresponding to an ejection pattern of ink ejected from each nozzle of the recording head;
The phase adjustment circuit according to any one of claims 1 to 5, wherein the serial data output from the output unit is converted into parallel data and output to the head driving unit.
An image forming apparatus comprising:
請求項1から5のいずれか一項に記載の位相調整回路による位相調整方法であって、
前記制御部が、それぞれ位相の異なる複数のクロック信号を生成部に生成させるように前記生成部における位相の設定を変更する工程と、
前記制御部が、前記複数のクロック信号の各々に応じて前記変換部により変換されたパラレルデータの各々に対する前記判定部による正誤の判定結果に基づいて、前記変換部によって前記シリアルデータが正しくパラレルデータに変換される位相の範囲を特定する工程と、
前記制御部が、前記位相の範囲内の値である最適位相を前記生成部に設定する工程と、
を有することを特徴とする位相調整方法。
A phase adjustment method using the phase adjustment circuit according to any one of claims 1 to 5,
Changing the setting of the phase in the generation unit so that the control unit causes the generation unit to generate a plurality of clock signals having different phases, and
The control unit correctly converts the serial data to parallel data by the conversion unit based on a determination result of the determination unit by each of the parallel data converted by the conversion unit according to each of the plurality of clock signals. Identifying a range of phases to be converted to
The control unit sets an optimal phase that is a value within the phase range in the generation unit;
A phase adjustment method comprising:
JP2015524060A 2013-06-25 2014-06-24 Image forming apparatus and phase adjustment method Active JP6314982B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2013132189 2013-06-25
JP2013132189 2013-06-25
PCT/JP2014/066704 WO2014208552A1 (en) 2013-06-25 2014-06-24 Phase adjustment circuit, image forming device, and phase adjustment method

Publications (2)

Publication Number Publication Date
JPWO2014208552A1 true JPWO2014208552A1 (en) 2017-02-23
JP6314982B2 JP6314982B2 (en) 2018-04-25

Family

ID=52141884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015524060A Active JP6314982B2 (en) 2013-06-25 2014-06-24 Image forming apparatus and phase adjustment method

Country Status (2)

Country Link
JP (1) JP6314982B2 (en)
WO (1) WO2014208552A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020189467A (en) * 2019-05-23 2020-11-26 東芝テック株式会社 Liquid discharge head, liquid discharge device and liquid discharge method

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6356972B2 (en) * 2014-01-27 2018-07-11 キヤノン株式会社 RECORDING DEVICE, IMAGING DEVICE, AND RECORDING DEVICE CONTROL METHOD
JP6487770B2 (en) * 2015-05-18 2019-03-20 キヤノン株式会社 Data communication system, recording apparatus, data transmission apparatus, and data communication system control method
JP6751583B2 (en) * 2016-03-31 2020-09-09 キヤノン株式会社 Recording device and its control method
US10834285B2 (en) * 2017-04-10 2020-11-10 Canon Kabushiki Kaisha Printing apparatus adjusting phase differences of received signals
JPWO2022224295A1 (en) * 2021-04-19 2022-10-27

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10233698A (en) * 1997-02-19 1998-09-02 Hitachi Denshi Ltd Serial/parallel data conversion circuit
JP2007184847A (en) * 2006-01-10 2007-07-19 Nec Electronics Corp Clock and data recovery circuit and serdes circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10233698A (en) * 1997-02-19 1998-09-02 Hitachi Denshi Ltd Serial/parallel data conversion circuit
JP2007184847A (en) * 2006-01-10 2007-07-19 Nec Electronics Corp Clock and data recovery circuit and serdes circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020189467A (en) * 2019-05-23 2020-11-26 東芝テック株式会社 Liquid discharge head, liquid discharge device and liquid discharge method

Also Published As

Publication number Publication date
JP6314982B2 (en) 2018-04-25
WO2014208552A1 (en) 2014-12-31

Similar Documents

Publication Publication Date Title
JP6314982B2 (en) Image forming apparatus and phase adjustment method
US7567104B2 (en) Data sampling clock edge placement training for high speed GPU-memory interface
JP5174493B2 (en) Semiconductor integrated circuit device and eye opening margin evaluation method
US7822115B2 (en) Systems for generating a pulse width modulated signal
US20050001655A1 (en) Phase correction circuit
JP5365132B2 (en) Serial signal receiver, serial transmission system, serial transmission method, serial signal transmitter
JP2018051896A (en) Recording element substrate, recording head, and recording device
US8311173B2 (en) Frame pulse signal latch circuit and phase adjustment method
US20080168200A1 (en) Method of compensating for propagation delay of tri-state bidirectional bus in a semiconductor device
JP5665364B2 (en) Recording element substrate
US20180139404A1 (en) Image capturing apparatus
US11310075B2 (en) Asymmetric duplex transmission device and switching system thereof
US10033525B2 (en) Transmission device and signal processing method
KR102419352B1 (en) Display device, data driver and the method for correcting skew
US20070069927A1 (en) Method of transmitting a serial bit-stream and electronic transmitter for transmitting a serial bit-stream
JP2744094B2 (en) Digital system
JP2013175832A (en) Image processing apparatus, signal transfer circuit and semiconductor integrated circuit
US10834285B2 (en) Printing apparatus adjusting phase differences of received signals
US7656203B2 (en) Receiving circuit and method thereof
US20160301435A1 (en) Method for duty cycle distortion detection through decision feedback equalizer taps
JP2017177767A (en) Recording head, recording device using the recording head and method for controlling the same
KR102436557B1 (en) Data Interface Device and Method for Driving the Same
JP2017177767A5 (en)
JP2019006029A (en) Recording element substrate, recording head, and recording apparatus
JP5948959B2 (en) Transmission apparatus, transmission method, image forming apparatus, and transmission apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170725

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170921

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: 20180227

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180312

R150 Certificate of patent or registration of utility model

Ref document number: 6314982

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150