JP3622628B2 - Timing generating apparatus and method - Google Patents

Timing generating apparatus and method Download PDF

Info

Publication number
JP3622628B2
JP3622628B2 JP2000095106A JP2000095106A JP3622628B2 JP 3622628 B2 JP3622628 B2 JP 3622628B2 JP 2000095106 A JP2000095106 A JP 2000095106A JP 2000095106 A JP2000095106 A JP 2000095106A JP 3622628 B2 JP3622628 B2 JP 3622628B2
Authority
JP
Japan
Prior art keywords
value
timing
period
encoder
magnification
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.)
Expired - Fee Related
Application number
JP2000095106A
Other languages
Japanese (ja)
Other versions
JP2001277633A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2000095106A priority Critical patent/JP3622628B2/en
Publication of JP2001277633A publication Critical patent/JP2001277633A/en
Application granted granted Critical
Publication of JP3622628B2 publication Critical patent/JP3622628B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)
  • Facsimile Heads (AREA)
  • Fax Reproducing Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、インクジェットプリンタにおけるインク吐出タイミング等のタイミングを発生させる装置及び方法の技術分野に属するものである。
【0002】
【従来の技術】
従来のインクジェットプリンタにおいては、ヘッドが印字を行うために移動した際に、制御手段からインクの吐出タイミングを示すパルス信号を出力し、所定の解像度での印字を行っている。
【0003】
具体的には、光学的なエンコーダによってヘッドの位置を測定し、ヘッドが所定の位置に来た時にインク吐出が行われるように前記インクの吐出タイミングを示す信号を発生させる。
【0004】
しかし、エンコーダの周期を細かくするには限界があるため、実際の印字タイミングは、エンコーダの周期よりも細かくする必要がある。
【0005】
そこで、従来は、エンコーダの信号を読み取り、それに対して逓倍回路で周波数を上げて、エンコーダの周期よりも細かいタイミング信号を生成し、印字を行っていた。
【0006】
例えば、90dpi相当のエンコーダを用いた場合でも、1440dpiまで一旦周期を細かくして前記タイミング信号の生成を行っていた。
【0007】
【発明が解決しようとする課題】
しかしながら、従来の方式では、例えば周期をエンコーダの周期の4分の1まで細かくする場合には、まず、エンコーダの周期を測定し、次にその周期を4で割る処理を行っていたため次のような問題があった。
【0008】
つまり、前記周期をエンコーダの周期の4分の1、あるいは2分の1等にする場合には、ビットシフトによって容易に演算を行うことができるが、例えば5分の1に細かくしたい場合には、ビットシフトを用いることができないため、実際に前記エンコーダの周期を5で除算しなければならない。
【0009】
しかし、このような除算回路は、非常に多くの回路素子を必要とする複雑な回路となってしまうという問題があった。
【0010】
また、前記エンコーダの周期を測定しつつ、前記ヘッドが次の位置に移動するまでの短期間に前記除算処理を行う必要があるため、処理速度の点から実現は困難であった。
【0011】
そこで、本発明は、このような問題点を解決し、タイミングの発生の基準となる信号の周波数に対して、2倍だけでなく、その他の倍率の周波数を有するクロック信号を、除算演算を行うことなく容易に生成することができるタイミング発生装置及び方法を提供することを課題としている。
【0012】
【課題を解決するための手段】
請求項1記載のタイミング発生装置は、前記課題を解決するために、印字ヘッドの移動に基づいて機能するエンコーダから出力されるパルス信号に同期しながら、所定間隔の出力パルスを出力するタイミング発生装置であって、前記エンコーダから出力されたパルス信号の周期を基準クロックに基づいて測定する測定手段と、所定の倍率値を格納する倍率レジスタと、初期値を格納する一時レジスタと、前記倍率レジスタに格納された倍率値を、前記基準クロックに基づいて前記一時レジスタに格納された初期値に順次加算する加算手段と、前記加算手段による加算結果と前記測定手段により測定された周期の値とを比較し、前記加算結果が前記周期の値を超えたときに、前記出力パルスを出力するためのタイミングを指示する信号を出力する比較制御手段とを備え、前記一時レジスタは、前記加算結果が前記周期の値を超えたときに、当該加算結果から前記周期の値を減算し、当該減算した値を前記初期値として格納することを特徴とする。
【0013】
請求項1記載のタイミング発生装置によれば、測定手段により、印字ヘッドの移動に基づいて機能するエンコーダから出力されるパルス信号の周期が、例えばTと測定される。また、加算手段により所定の倍率値nが加算される。そして、比較制御手段により、前記加算結果と、前記測定した周期の値とが比較される。比較の結果、前記加算結果が前記周期の値を超える時には、前記出力パルスを出力するためのタイミングを指示する信号を出力する。例えば、前記加算結果がnXであり、この値が前記周期Tに等しくなったとすると、nX=Tであるから、X=T/nとなる。つまり、前記加算結果が前記周期に等しくなるタイミングは、周期Tをn等分したタイミングである。従って、周期Tに対して所望の等分数nとして前記処理を行うことにより、所望のタイミングで前記出力パルスの出力が可能となる。つまり、T/nの値が割り切れない値の場合には、余りを次の周期Tに対する同様の処理に繰り越すことにより、所望の等分数のタイミングが得られる。また、前記比較制御手段は、前記加算結果が前記周期以上の時には、前記出力パルスを出力するためのタイミングを指示する信号を出力するので、上述のように、周期Tに対して所望の等分数nの最初のタイミングで前記出力パルスが出力される。
また、前記比較制御手段は、前記加算結果が前記周期の値を超える時には、前記加算結果から前記周期の値が減算されてこの減算結果が初期値とされる。そしてこの減算結果である初期値は、T/nの値が割り切れない値の場合の、余りとして、次の周期Tに対する同様の処理に繰り越される。従って、T/nの値が割り切れない値の場合でも、前記周期Tに対して所望の等分数のタイミングで、出力パルスが出力されることになる。
【0014
0015
0016
0017】
請求項記載のタイミング発生装置は、前記課題を解決するために、請求項1記載のタイミング発生装置において、前記倍率レジスタに格納される倍率値は、可変であることを特徴とする。
【0018】
請求項記載のタイミング発生装置によれば、前記倍率レジスタに格納される倍率値は、可変であって、上述のように加算される。従って、周期Tに対して所望の等分数nの最初のタイミングで前記出力パルスが出力される。
【0019】
請求項記載のタイミング発生装置は、前記課題を解決するために、請求項1に記載のタイミング発生装置において、前記タイミング発生装置は、インクジェットプリンタにおけるインク吐出タイミングを発生させる装置であり、前記倍率値は、前記インクジェットプリンタにおける解像度に応じて可変であることを特徴とする。
【0020】
請求項記載のタイミング発生装置によれば、インクジェットプリンタにおける解像度に応じて、前記所定の倍率値を決定し、上述したように、エンコーダの周期Tに対する所望の等分数nのインク吐出タイミングを発生させる。インクジェットプリンタにおける解像度は、エンコーダの周期Tの任意の所定倍に設定される。
【0021】
請求項記載のタイミング発生方法は、前記課題を解決するために、印字ヘッドの移動に基づいて機能するエンコーダから出力されるパルス信号に同期しながら、所定間隔の出力パルスを出力するタイミング発生方法であって、前記エンコーダから出力されたパルス信号の周期を基準クロックに基づいて測定する測定工程と、倍率レジスタに格納された倍率値を、前記基準クロックに基づいて一時レジスタに格納された初期値に順次加算する加算工程と、前記加算工程によって加算された加算結果と、前記測定工程により測定された周期の値とを比較し、前記加算結果が前記周期の値を超えたときに、前記出力パルスを出力するためのタイミングを指示する信号を出力する出力工程と、前記加算結果が前記周期の値を超えたときに、当該加算結果から前記周期の値を減算し、当該減算した値を前記初期値として前記一時レジスタに格納する格納工程と、を備えたことを特徴とする。
【0022】
請求項記載のタイミング発生方法によれば、エンコーダから出力されるパルス信号の周期が、例えばTと測定される。また、加算手段により所定の倍率値nが加算される。そして、比較制御手段により、前記加算結果と、前記測定した周期の値とが比較される。比較の結果、前記加算結果が前記周期の値を超える時には、前記出力パルスを出力するためのタイミングを指示する信号を出力する。例えば、前記加算結果がnXであり、この値が前記周期Tに等しくなったとすると、nX=Tであるから、X=T/nとなる。つまり、前記加算結果が前記周期に等しくなるタイミングは、周期Tをn等分したタイミングである。従って、周期Tに対して所望の等分数nとして前記処理を行うことにより、所望のタイミングで前記出力パルスの出力が可能となる。つまり、T/nの値が割り切れない値の場合には、余りを次の周期Tに対する同様の処理に繰り越すことにより、所望の等分数のタイミングが得られる。また、前記比較制御手段は、前記加算結果が前記周期以上の時には、前記出力パルスを出力するためのタイミングを指示する信号を出力するので、上述のように、周期Tに対して所望の等分数nの最初のタイミングで前記出力パルスが出力される。
また、加算結果が前記周期の値を超える時には、前記加算結果から前記周期の値が減算される。減算結果は前記初期値とされ、T/nの値が割り切れない値の場合の余りとして、次の周期Tに対する同様の処理に繰り越される。従って、T/nの値が割り切れない値の場合でも、前記周期Tに対して所望の等分数のタイミングで、出力パルスが出力されることになる。
【0023
0024
0025
0026】
請求項記載のタイミング発生方法は、前記課題を解決するために、請求項に記載のタイミング発生方法において、前記タイミング発生方法は、インクジェットプリンタにおけるインク吐出タイミングを発生させる方法であって、前記倍率値は、前記インクジェットプリンタにおける解像度に応じて可変であることを特徴とする。
【0027】
請求項記載のタイミング発生方法によれば、前記倍率レジスタに格納される倍率値は可変であって、上述のように加算される。従って、周期Tに対して所望の等分数nの最初のタイミングで前記出力パルスが出力される。また、インクジェットプリンタにおける解像度に応じて、前記所定の倍率値を決定し、上述したように、エンコーダの周期Tに対する所望の等分数nのインク吐出タイミングを発生させる。インクジェットプリンタにおける解像度は、エンコーダの周期Tの任意の所定倍に設定される。
【0028】
【発明の実施の形態】
以下、本発明の実施の形態を添付図面の図1乃至図3に基づいて説明する。
【0029】
図1は、本発明が適用されるファクシミリ装置の回路構成を示すブロック図である。
【0030】
図1に例示すように、本実施形態のファクシミリ装置は、CPU1と、メモリー2と、DMAコントローラ3と、印字データ処理部4と、逓倍回路7と、印字位置制御部8とがメインバス12を介して接続されている。更に逓倍回路7及び印字位置制御部8には,タイミング制御回路6が接続されており、タイミング制御回路6には印字パルス発生部5が接続されている。また、印字データ処理部4及び印字パルス発生部5には、プリンタ部9が接続されている。
【0031】
CPU1は、タイマ等を備え、メモリー2を構成するROM等に記憶された制御プログラムを実行可能な論理演算回路であり、このCPU1により、メインバス12上に制御信号またはデータ等が出力され、印字データ処理部4、印字パルス発生部5、逓倍回路7、及び印字位置制御部8等の駆動等が実行される。
【0032】
メモリー2は、前記制御プログラムを記憶するためのROM、画像データ等を格納するためのRAM等から構成される。
【0033】
DMAコントローラ3は、画像データのメモリー2から印字データ処理部4への転送を、メインバス12を介して直接行う回路である。
【0034】
印字データ処理部4は、DMAコントローラ3から転送される画像データをビットマップデータに展開し、所定のタイミングでプリンタ部9に出力する回路である。
【0035】
印字パルス発生部5は、プリンタ部9の印字ヘッド10に所定のタイミングで印字パルスを印加し、印字ヘッド10にインクを吐出させる。この所定のタイミングは、タイミング制御回路6によって生成される。
【0036】
タイミング制御回路6は、DMAコントローラ3、及び印字パルス発生部5等に対して、予め定められた印字シーケンスに従い、所定のタイミングで制御信号を出力する回路である。この際、前記所定のタイミングとして使用されるのは、印字位置制御部8から出力されるエンコーダ11の周波数に同期した信号と、逓倍回路7から出力されるエンコーダ11の周波数に対して所定倍の周波数を有する信号である。
【0037】
逓倍回路7は、エンコーダ11の周波数を読み取り、更にその周波数を所定倍する回路であり、この倍率値は、CPU1によって設定可能に構成されている。詳しくは後述する。
【0038】
印字位置制御部8は、エンコーダ11の周波数を読み取り、その周波数に同期した信号をタイミング制御回路6に出力する回路である。タイミング制御回路6は、基本的には、このエンコーダ11の周波数に同期した信号に基づいて印字ヘッド10の位置を検出し、所望の位置でインクの吐出タイミングを発生させる。しかしながら、エンコーダ11の周波数はプリンタに求められる解像度を実現する程度までには高くできないため、本実施形態では、前記逓倍回路7によってエンコーダ11の周波数の所定倍の信号を生成し、この信号を用いてエンコーダ11の周波数よりも高い周波数でインクの吐出タイミングを発生させている。
【0039】
プリンタ部9には、インクジェット方式の印字ヘッド10と、前記吐出タイミングの生成の基準となるクロック信号を与えるエンコーダ11が備えられている。エンコーダ11は、印字ヘッド10の記録用紙幅方向への移動経路の近傍に、当該幅方向に亘って設けられたエンコードパターン部と、該パターン部のエンコードパターンを光学的に読み取る読取手段を備えており、読取手段は前記エンコードパターンの周波数に応じたパルス信号を出力する。
【0040】
なお、図1には図示していないが、プリンタ部9には、記録用紙の給紙・搬送部が設けられており、給紙・搬送部はメインバス12を介してCPU1により制御される。
【0041】
以上のような構成により、印字動作が行われる場合には、まず、図示しないホストコンピュータから出力されるデータを、DMAコントローラ3によってメモリー2に格納する。次に、DMAコントローラ3によってデータをメモリー2から印字データ処理部4に転送し、印字データ処理部4においてビットマップデータに展開する。展開されたデータは、順次、印字データ処理部4からプリンタ部9に出力される。また、CPU1の制御により、記録用紙の給紙・搬送が行われ、記録用紙は印字ヘッド10との対向位置まで搬送される。
【0042】
そして、タイミング制御回路6から出力されるタイミング信号に基づいて、印字パルス発生部5からは印字パルスが出力され、印字データ処理部4から出力される画像データに対応して、前記印字パルスのタイミングでインクの吐出が行われ、前記記録用紙に画像が形成される。
【0043】
このインクの吐出タイミングは、原則的にはエンコーダ11の周期に同期したクロック信号に基づいて生成されるが、上述したように、エンコーダ11の周期はプリンタの解像度を満足させる程には細かくできない。そこで、本実施形態では、逓倍回路7で、エンコーダ11の周波数の所定倍の周波数のクロック信号を生成しているが、特に、このクック信号は、エンコーダ11の周波数に対して2倍以外の倍数、例えば、3倍、または5倍の周波数のクロック信号を容易に生成可能に構成されている。以下、図2に基づいて、本実施形態における逓倍回路7の詳しい構成について説明する。
【0044】
逓倍回路7は、図2に示すように、倍率レジスタ20と、切り替え器21と、補数回路22と、パルス間隔測定カウンタ23と、比較器24と、一時レジスタ25と、加算器26とから構成されている。
【0045】
倍率レジスタ20は、メインバス12を介してCPU1によって設定される所定の倍率値を格納するレジスタである。本実施形態では、2倍以外の倍数値の設定も可能になっている。
【0046】
切り替え器21は、加算器26の入力を切り替える手段であり、加算結果が、パルス間隔測定カウンタ23によって測定したエンコーダの周期を超えない時には、加算器26の入力を、倍率レジスタ20側に切り替え、加算結果がエンコーダの周期に一致した時には、補数回路22側に切り替える。
【0047】
補数回路22は、パルス間隔測定カウンタ23によって測定したエンコーダの周期の値に対する2の補数の値を出力する回路である。加算結果がエンコーダの周期に一致した時には、補数回路22から出力されるエンコーダの周期値の2の補数の値が加算されるので、加算結果からエンコーダの周期値が減算される結果となる。
【0048】
パルス間隔測定カウンタ23は、エンコーダ11から出力されるエンコーダの読み取り信号の周期を、所定のシステムクロックによって計数する回路である。例えば、システムクロックの周期がtであり、エンコーダの周期Tが100tである場合には、パルス間隔測定カウンタ23からはカウンタ値「100」がエンコーダの周期の値として出力される。
【0049】
比較器24は、前記パルス間隔測定カウンタ23の出力値、即ちエンコーダ11の周期の値と、一時レジスタ25の値、即ち加算器26の加算結果とを比較し、加算結果がエンコーダ11の周期の値よりも小さい場合には、切り替え器21に対して、加算器26の入力を倍率レジスタ20側に切り替えさせる信号を出力する。また、加算結果がエンコーダ11の周期の値に達した場合には、切り替え器21に対して、加算器26の入力を補数回路22側に切り替えさせる信号を出力する。
【0050】
一時レジスタ25は、加算器26の出力信号を入力し、加算器26の加算結果を積算する回路である。一時レジスタ25の出力は、加算器26と、比較器24に供給される。
【0051】
加算器26は、前記パルス間隔測定カウンタ23と同様に、システムクロックを基準クロックとして、前記倍率レジスタ20の内容を加算する回路である。加算結果がエンコーダの周期の値に達した時には、上述したように、加算値からエンコーダの周期の値が減算され、その減算結果に対して前記倍率レジスタ20の内容を加算する。
【0052】
次に、図3のフローチャートに基づいて、本実施形態の逓倍回路7によるエンコーダの周期値を所定倍したクロック信号の生成処理について説明する。
【0053】
まず、CPU1からの指示により、印字ヘッド10の記録用紙幅方向への移動が開始されると、エンコーダ11からエンコードパターンに同期したパルス信号が出力される。エンコードパターンは、記録用紙に対する印字領域幅よりも大きな幅の領域に設けられているので、実際に印字が開始される前から、前記パルス信号の出力は行われる。
【0054】
次に、前記パルス信号は、逓倍回路7のパルス間隔測定カウンタ23に入力され、パルス間隔測定カウンタ23は、システムクロックを基準にして前記パルス信号のパルス間隔を計測する。以下、一例として、システムクロックの周期をtとした時、エンコードの周期の値Tが100tであれば、パルス間隔測定カウンタ23の計測結果は100となる。
【0055】
以上のようにして、エンコード周期Tの計測が終了すると、比較器24は、パルス間隔測定カウンタ23の出力であるエンコード周期Tと、一時レジスタ25の内容を比較する。初期状態では、一時レジスタ25の内容は「0」であるので、比較器24は、例えば負論理の信号を切り替え器21に出力する。
【0056】
従って、切り替え器21は、加算器26の入力を倍率レジスタ20側に切り替える。倍率レジスタ20には、CPU1によって設定された倍率値nが格納されており、加算器26には、倍率値nが入力される。
【0057】
そして、加算器26は、基準クロックに従って(図3:ステップS1;YES)、一時レジスタ25の内容Xと、前記入力された倍率値nとを加算する(図3:ステップS2)。加算結果は、順次一時レジスタ25に格納される。例えば、倍率値nが「4」と設定されていたとすると、初期状態では一時レジスタ25の内容Xは「0」であるから、一時レジスタ25の内容は、4、8、12・・・・と増加していくことになる。
【0058】
前記加算結果、即ち一時レジスタ25の内容Xは、逐次、比較器24によって前記エンコーダの周期Tの値と比較される(図3:ステップS3)。この比較の結果、前記一時レジスタ25の内容が前記エンコーダ11の周期Tに達していない場合には(図3:ステップS3;YES)、印字が終了していなければ(図3:ステップS6;YES)、更に前記加算処理及び比較処理を継続する。
【0059】
そして、前記一時レジスタ25の内容Xが、前記エンコーダ11の周期Tを超えた場合には(図3:ステップS3;NO)、比較器24は例えば正論理の信号を切り替え器21に出力する。これに応じて、切り替え器21は、加算器26の入力を補数回路22に切り替える。補数回路22は、前記エンコーダ11の周期Tの値の2の補数を加算器26に出力する。従って、加算器26がこの2の補数と前記一時レジスタ25の内容Xとの加算処理を行うことにより、前記一時レジスタ25の内容Xから、前記エンコーダの周期Tの値を減算する処理が行われることになる(図3:ステップS4)。
【0060】
また、比較器24は、前記一時レジスタ25の内容Xが、前記エンコーダの周期Tを超えた場合には、所望の印字タイミングを知らせるパルス信号をタイミング制御回路6に対して出力する(図3:ステップS5)。
【0061】
以上のような処理が繰り返されることにより、前記エンコーダの周期Tの所定倍のクロック信号が得られることになる。具体的な例を用いて説明すると、まず、所定の倍率値をnとし、この倍率値nをk回加算した時に、加算結果がエンコーダの周期Tと等しくなったとする。この場合、T=knであるから、k=T/nとなる。つまり、k回の加算が終了した時点というのは、前記エンコーダの周期Tのn分の1のタイミングである。従って、このタイミングのパルス信号の出力を続けることにより、エンコーダの周波数のn倍の周波数を有するクロック信号が得られることになる。
【0062】
ここで、更に具体的な数値を例に挙げて説明を行う。例えば、図4(E)に拡大して示すように、システムクロックの周期がtであり、このシステムクロックを用いて計測したエンコーダの周期Tが図4(A)に示すように100tであるとすると、パルス間隔測定カウンタ23の出力は「100」となる。また、倍率レジスタ20に設定されている倍率値は「5」であり、エンコーダの周波数の5倍の周波数を有するクロック信号を生成するものとする。
【0063】
このような条件で上述した処理が行われると、図4(D)に拡大して示すように、周期tのシステムクロックに基づく20回目の加算が終了したところで、5×20t=100tとなって、図4(B)に示すように逓倍回路7からタイミング制御回路6にパルス信号が出力される。このタイミングは、20=100t/5tとなるタイミングであって、エンコーダの周期T(=100t)の5分の1に相当するタイミングである。以下、同様の処理を繰り返すと、エンコーダの周期Tの5分の1に相当するタイミング毎にパルス信号が出力されることになり、これらのパルス信号を一連のクロック信号として見れば、エンコーダの周波数の5倍の周波数を有するクロック信号が得られることになる。
【0064】
以上のような処理により、タイミング制御回路6には、印字位置制御部8から、図4(A)に示すようなエンコーダの周期Tに同期したパルス信号が出力されると共に、逓倍回路7から、図4(B)に示すようなエンコーダの周波数を5倍した周波数のクロック信号が出力される。従って、タイミング制御回路6は、例えば図4(C)に示すように、エンコーダの周期Tよりも細かいタイミングで、印字パルス発生部5に対して、インクの吐出タイミングを知らせることができる。この場合、タイミング制御回路6は、図4(B)に示すエンコーダの周波数を5倍した周波数のクロック信号そのものを、インクの吐出タイミングとして印字パルス発生部5に知らせるようにしても良いし、図4(A)に示すようなエンコーダの周期Tに同期したパルス信号を基準とした上で、図4(B)に示すエンコーダの周波数を5倍した周波数のクロック信号から適宜のタイミングを選んで、印字パルス発生部5に知らせるようにしても良い。タイミング制御回路6からどのようにクロック信号を選択して印字パルス発生部5に知らせるかは、プリンタの解像度等の条件により適宜設定可能である。
【0065】
また、前記の逓倍回路7においては、加算器26による加算結果が、エンコーダの周期Tを超えた場合には、加算結果からエンコーダの周期Tを減算する処理を行う。これは、前記所定倍率nではエンコーダの周期Tを割り切ることが出来ない場合に対する措置である。例えば、エンコーダの周期Tが100tであり、前記所定倍率nが「3」であるとすると、34回目の加算時に加算結果が102となり、100を超える。この場合には、前記減算処理により、次のサイクルの加算器26による加算は、「2」を初期値として開始される。このように、エンコーダの周期値である「100」を「3」で割った余りに起因する計算の端数は、次のサイクルにおける加算に繰り越されていくので、少なくとも有効な印字が行われる期間中においては、エンコーダの周波数の3倍の周波数を有するクロック信号を生成することができる。
【0066】
以上のように、本実施形態によれば、エンコーダの周波数に対して、2倍だけでなく、任意の倍数の周波数を有するクロック信号を、除算演算を行うことなく、容易に行うことができる。その結果、例えば、300dpi、600dpi、900dpi、及び1200dpiの系列の解像度を有するプリンタにおいて、450dpi等の解像度を実現することができる。また、例えば90dpiのエンコーダを、前記300dpi、600dpi、900dpi、及び1200dpiの系列の解像度を有するプリンタと、360dpi、720dpi、及び1440dpiの系列の解像度を有するプリンタの両方に共通に使用することができるので、コストを著しく低減することが可能となる。
【0067】
なお、本実施形態では、本発明の逓倍回路をインクジェットプリンタに用いた例について説明したが、他にも電子写真方式のプリンタ装置、コピー装置等、様々な電子機器に本発明は適用可能である。
【0068】
【発明の効果】
以上説明したように請求項1記載のタイミング発生装置及び請求項6記載のタイミング発生方法によれば、測定手段により、印字ヘッドの移動に基づいて機能するエンコーダから出力されるパルス信号の周期が、例えばTと測定される。また、加算手段により所定の倍率値nが加算される。そして、比較制御手段により、前記加算結果と、前記測定した周期の値とが比較される。比較の結果、前記加算結果が前記周期の値を超える時には、出力パルスを出力するためのタイミングを指示する信号を出力する。例えば、前記加算結果がnXであり、この値が前記周期Tに等しくなったとすると、nX=Tであるから、X=T/nとなる。つまり、前記加算結果が前記周期に等しくなるタイミングは、周期Tをn等分したタイミングである。従って、周期Tに対して所望の等分数nとして前記処理を行うことにより、所望のタイミングで前記出力パルスの出力が可能となる。つまり、T/nの値が割り切れない値の場合には、余りを次の周期Tに対する同様の処理に繰り越すことにより、所望の等分数のタイミングが得られる。
また、前記比較制御手段は、前記加算値が前記周期以上の時には、前記出力パルスの出力タイミングを報知するので、上述のように、周期Tに対して所望の等分数nの最初のタイミングで前記出力パルスが出力される。
【0069】
また、前記加算結果が前記周期を超える時に、前記パルス信号の出力タイミングを報知すると共に前記加算結果から前記周期の値を減算するので、前記所望の倍率ではエンコーダの周波数が割り切れない場合でも、エンコーダの周波数に対して、2倍だけでなく、それ以外の倍率のクロック信号を容易に生成することができる。その結果、エンコーダの共通化が可能になり、コストの低減に寄与することができる。
【0070】
請求項記載のタイミング発生装置及び請求項記載のタイミング発生方法によれば、前記所望の倍率値を可変としたので、解像度等の要請に応じてエンコーダの周波数に対して任意の倍率のクロック信号を容易に生成することができる。
【0071】
請求項記載のタイミング発生装置及び請求項記載のタイミング発生方法によれば、前記所望の倍率値を、インクジェットプリンタにおける解像度に応じて可変としたので、エンコーダの解像度に制約されることなく、任意の解像度のプリンタを提供できる。また、エンコーダの共通化が可能になり、コストの低減に寄与することができる。
【図面の簡単な説明】
【図1】本発明の一実施形態であるインクジェットプリンタの回路構成を示すブロック図である。
【図2】図1の回路における逓倍回路の構成を示すブロック図である。
【図3】図1のインクジェットプリンタにおける印字タイミング信号の生成処理を示すフローチャートである。
【図4】図1のインクジェットプリンタにおける印字タイミング信号生成処理のタイミングチャートであり、(A)はエンコーダ信号、(B)はエンコーダ信号の周波数を5倍した周波数を有するクロック信号、(C)はインク吐出タイミング信号、(D)は逓倍回路における加算結果、及び(E)はシステムクロック(拡大図)をそれぞれ示すタイミングチャートである。
【符号の説明】
1…CPU
6…タイミング制御回路
7…逓倍回路
8…印字位置制御部
10…印字ヘッド
11…エンコーダ
20…倍率レジスタ
21…切り替え器
22…補数回路
23…パルス間隔測定カウンタ
24…比較器
25…一時レジスタ
26…加算器
[0001]
BACKGROUND OF THE INVENTION
The present invention belongs to the technical field of an apparatus and method for generating timing such as ink ejection timing in an ink jet printer.
[0002]
[Prior art]
In a conventional ink jet printer, when the head moves to perform printing, a pulse signal indicating ink ejection timing is output from the control means, and printing is performed at a predetermined resolution.
[0003]
Specifically, the position of the head is measured by an optical encoder, and a signal indicating the ink ejection timing is generated so that ink ejection is performed when the head reaches a predetermined position.
[0004]
However, since there is a limit to making the encoder cycle fine, the actual print timing needs to be made finer than the encoder cycle.
[0005]
Therefore, conventionally, an encoder signal is read, and a frequency is increased by a multiplier circuit to generate a timing signal finer than the encoder cycle, and printing is performed.
[0006]
For example, even when an encoder equivalent to 90 dpi is used, the timing signal is generated once with a fine period up to 1440 dpi.
[0007]
[Problems to be solved by the invention]
However, in the conventional method, for example, when the period is reduced to one-fourth of the encoder period, the encoder period is first measured, and then the period is divided by 4, so the following is performed. There was a serious problem.
[0008]
In other words, when the period is set to ¼ or ½ of the encoder period, the calculation can be easily performed by bit shift. Since the bit shift cannot be used, the period of the encoder must actually be divided by 5.
[0009]
However, such a divider circuit has a problem that it becomes a complicated circuit requiring a large number of circuit elements.
[0010]
Further, since the division process needs to be performed in a short time until the head moves to the next position while measuring the period of the encoder, it is difficult to realize from the viewpoint of processing speed.
[0011]
Therefore, the present invention solves such a problem, and with respect to the frequency of a signal serving as a reference for timing generation, 2nIt is an object of the present invention to provide a timing generation apparatus and method that can easily generate a clock signal having a frequency of not only a double but also other magnifications without performing a division operation.
[0012]
[Means for Solving the Problems]
In order to solve the problem, the timing generator according to claim 1Encoder that works based on print head movementA timing generator that outputs output pulses at predetermined intervals while synchronizing with a pulse signal output fromEncoderMeasuring means for measuring the period of the pulse signal output from the reference clock, a magnification register for storing a predetermined magnification value, a temporary register for storing an initial value, and a magnification value stored in the magnification register. The addition means for sequentially adding to the initial value stored in the temporary register based on the reference clock, the addition result by the addition means and the value of the period measured by the measurement means are compared, and the addition result is A comparison control means for outputting a signal for instructing a timing for outputting the output pulse when the value of the period is exceeded;,WithWhen the addition result exceeds the period value, the temporary register subtracts the period value from the addition result and stores the subtracted value as the initial value.It is characterized by that.
[0013]
According to the timing generator of claim 1, by the measuring means,Encoder that works based on print head movementThe period of the pulse signal output from is measured as T, for example. A predetermined magnification value n is added by the adding means. Then, the comparison control means compares the addition result with the value of the measured period. As a result of the comparison, when the addition result exceeds the value of the period, a signal indicating the timing for outputting the output pulse is output. For example, if the addition result is nX and this value is equal to the period T, since nX = T, X = T / n. That is, the timing at which the addition result becomes equal to the cycle is a timing obtained by dividing the cycle T into n equal parts. Therefore, by performing the processing with a desired fraction n for the period T, the output pulse can be output at a desired timing. In other words, when the value of T / n is not divisible, the remainder is carried over to the same processing for the next period T, whereby a desired fractional timing can be obtained. The comparison control means outputs a signal indicating the timing for outputting the output pulse when the addition result is equal to or greater than the period, so that a desired fractional number with respect to the period T as described above. The output pulse is output at the first timing of n.
Further, when the addition result exceeds the period value, the comparison control means subtracts the period value from the addition result and sets the subtraction result as an initial value. The initial value as the subtraction result is carried over to the same processing for the next period T as a remainder when the value of T / n is not divisible. Therefore, even when the value of T / n is not divisible, an output pulse is output at a desired fractional timing with respect to the period T.
0014]
[0015]
[0016]
[0017
Claim2In order to solve the above-mentioned problem, a timing generator according to claim 1 is provided.InIn the described timing generator, the magnification value stored in the magnification register is variable.
[0018]
Claim2According to the described timing generator, the magnification value stored in the magnification register is variable and is added as described above. Therefore, the output pulse is output at the first timing of a desired fraction n with respect to the period T.
[0019]
Claim3In order to solve the above-described problem, the timing generation device described in claim 1 is a device that generates ink ejection timing in an inkjet printer, and the magnification value is: It is variable according to the resolution in the inkjet printer.
[0020]
Claim3According to the described timing generation device, the predetermined magnification value is determined in accordance with the resolution in the ink jet printer, and as described above, a desired fraction n of ink ejection timing with respect to the period T of the encoder is generated. The resolution in the ink jet printer is set to an arbitrary predetermined multiple of the period T of the encoder.
[0021]
Claim4In order to solve the problem, the described timing generation methodEncoder that works based on print head movementA timing generation method for outputting output pulses at a predetermined interval while synchronizing with a pulse signal output fromEncoderA measuring step for measuring the period of the pulse signal output from the reference clock based on a reference clock, and an adding step for sequentially adding the magnification value stored in the magnification register to the initial value stored in the temporary register based on the reference clock And comparing the addition result added by the addition step with the value of the cycle measured by the measurement step, and outputting the output pulse when the addition result exceeds the value of the cycle An output process for outputting a signal indicating timing;A storage step of subtracting the period value from the addition result when the addition result exceeds the period value and storing the subtracted value in the temporary register as the initial value;It is provided with.
[0022]
Claim4According to the described timing generation method,EncoderThe period of the pulse signal output from is measured as T, for example. A predetermined magnification value n is added by the adding means. Then, the comparison control means compares the addition result with the value of the measured period. As a result of the comparison, when the addition result exceeds the value of the period, a signal indicating the timing for outputting the output pulse is output. For example, if the addition result is nX and this value is equal to the period T, since nX = T, X = T / n. That is, the timing at which the addition result becomes equal to the cycle is a timing obtained by dividing the cycle T into n equal parts. Therefore, by performing the processing with a desired fraction n for the period T, the output pulse can be output at a desired timing. In other words, when the value of T / n is not divisible, the remainder is carried over to the same processing for the next period T, whereby a desired fractional timing can be obtained. The comparison control means outputs a signal indicating the timing for outputting the output pulse when the addition result is equal to or greater than the period, so that a desired fractional number with respect to the period T as described above. The output pulse is output at the first timing of n.
When the addition result exceeds the period value, the period value is subtracted from the addition result. The subtraction result is set to the initial value, and is carried over to the same processing for the next period T as the remainder when the value of T / n is not divisible. Therefore, even when the value of T / n is not divisible, an output pulse is output at a desired fractional timing with respect to the period T.
0023]
[0024]
[0025]
[[0026]
Claim5In order to solve the problem, the timing generation method described in claim4In the timing generation method described in (1), the timing generation method is a method of generating ink ejection timing in an inkjet printer, and the magnification value is variable in accordance with the resolution in the inkjet printer.
[0027]
Claim5According to the described timing generation method, the magnification value stored in the magnification register is variable and is added as described above. Therefore, the output pulse is output at the first timing of a desired fraction n with respect to the period T. Further, the predetermined magnification value is determined in accordance with the resolution in the ink jet printer, and as described above, a desired fraction n of ink ejection timings with respect to the period T of the encoder is generated. The resolution in the ink jet printer is set to an arbitrary predetermined multiple of the period T of the encoder.
[0028]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to FIGS. 1 to 3 of the accompanying drawings.
[0029]
FIG. 1 is a block diagram showing a circuit configuration of a facsimile apparatus to which the present invention is applied.
[0030]
As shown in FIG. 1, the facsimile apparatus of the present embodiment includes a CPU 1, a memory 2, a DMA controller 3, a print data processing unit 4, a multiplication circuit 7, and a print position control unit 8. Connected through. Further, a timing control circuit 6 is connected to the multiplication circuit 7 and the print position control unit 8, and a print pulse generation unit 5 is connected to the timing control circuit 6. A printer unit 9 is connected to the print data processing unit 4 and the print pulse generation unit 5.
[0031]
The CPU 1 includes a timer and the like, and is a logical operation circuit that can execute a control program stored in a ROM or the like constituting the memory 2. The CPU 1 outputs a control signal or data on the main bus 12 for printing. Driving of the data processing unit 4, the printing pulse generation unit 5, the multiplication circuit 7, the printing position control unit 8, and the like are executed.
[0032]
The memory 2 includes a ROM for storing the control program, a RAM for storing image data, and the like.
[0033]
The DMA controller 3 is a circuit that directly transfers image data from the memory 2 to the print data processing unit 4 via the main bus 12.
[0034]
The print data processing unit 4 is a circuit that develops the image data transferred from the DMA controller 3 into bitmap data and outputs it to the printer unit 9 at a predetermined timing.
[0035]
The print pulse generator 5 applies a print pulse to the print head 10 of the printer unit 9 at a predetermined timing, and causes the print head 10 to eject ink. This predetermined timing is generated by the timing control circuit 6.
[0036]
The timing control circuit 6 is a circuit that outputs a control signal to the DMA controller 3, the print pulse generator 5, and the like at a predetermined timing according to a predetermined print sequence. At this time, the predetermined timing used is a signal synchronized with the frequency of the encoder 11 output from the print position control unit 8 and a predetermined multiple of the frequency of the encoder 11 output from the multiplication circuit 7. A signal having a frequency.
[0037]
The multiplication circuit 7 is a circuit that reads the frequency of the encoder 11 and further multiplies the frequency by a predetermined number. The magnification value can be set by the CPU 1. Details will be described later.
[0038]
The print position control unit 8 is a circuit that reads the frequency of the encoder 11 and outputs a signal synchronized with the frequency to the timing control circuit 6. The timing control circuit 6 basically detects the position of the print head 10 based on a signal synchronized with the frequency of the encoder 11 and generates ink ejection timing at a desired position. However, since the frequency of the encoder 11 cannot be increased to the extent that the resolution required for the printer is realized, in the present embodiment, the multiplier circuit 7 generates a signal having a predetermined multiple of the frequency of the encoder 11 and uses this signal. Thus, the ink ejection timing is generated at a frequency higher than the frequency of the encoder 11.
[0039]
The printer unit 9 includes an inkjet print head 10 and an encoder 11 that provides a clock signal that serves as a reference for generating the ejection timing. The encoder 11 includes an encode pattern portion provided in the width direction in the vicinity of the movement path of the print head 10 in the recording paper width direction, and a reading unit that optically reads the encode pattern of the pattern portion. The reading means outputs a pulse signal corresponding to the frequency of the encode pattern.
[0040]
Although not shown in FIG. 1, the printer unit 9 is provided with a recording paper feeding / conveying unit, which is controlled by the CPU 1 via the main bus 12.
[0041]
When a printing operation is performed with the above configuration, first, data output from a host computer (not shown) is stored in the memory 2 by the DMA controller 3. Next, the data is transferred from the memory 2 to the print data processing unit 4 by the DMA controller 3 and developed into bitmap data in the print data processing unit 4. The developed data is sequentially output from the print data processing unit 4 to the printer unit 9. Further, the recording paper is fed and transported under the control of the CPU 1, and the recording paper is transported to a position facing the print head 10.
[0042]
Based on the timing signal output from the timing control circuit 6, a print pulse is output from the print pulse generation unit 5, and the print pulse timing corresponding to the image data output from the print data processing unit 4 is output. Ink is ejected to form an image on the recording paper.
[0043]
In principle, the ink ejection timing is generated based on a clock signal synchronized with the cycle of the encoder 11. However, as described above, the cycle of the encoder 11 cannot be made fine enough to satisfy the resolution of the printer. Therefore, in the present embodiment, the multiplier circuit 7 generates a clock signal having a frequency that is a predetermined multiple of the frequency of the encoder 11. In particular, this clock signal is 2 with respect to the frequency of the encoder 11.nA clock signal having a frequency other than double, for example, 3 or 5 times, can be easily generated. Hereinafter, based on FIG. 2, the detailed structure of the multiplication circuit 7 in this embodiment is demonstrated.
[0044]
As shown in FIG. 2, the multiplication circuit 7 includes a magnification register 20, a switch 21, a complement circuit 22, a pulse interval measurement counter 23, a comparator 24, a temporary register 25, and an adder 26. Has been.
[0045]
The magnification register 20 is a register that stores a predetermined magnification value set by the CPU 1 via the main bus 12. In this embodiment, 2nIt is also possible to set multiple values other than double.
[0046]
The switch 21 is a means for switching the input of the adder 26. When the addition result does not exceed the encoder period measured by the pulse interval measurement counter 23, the input of the adder 26 is switched to the magnification register 20 side. When the addition result coincides with the encoder cycle, the circuit is switched to the complement circuit 22 side.
[0047]
The complement circuit 22 is a circuit that outputs a 2's complement value with respect to the value of the encoder period measured by the pulse interval measurement counter 23. When the addition result coincides with the encoder cycle, the 2's complement value of the encoder cycle value output from the complement circuit 22 is added, so that the encoder cycle value is subtracted from the addition result.
[0048]
The pulse interval measurement counter 23 is a circuit that counts the period of the read signal of the encoder output from the encoder 11 using a predetermined system clock. For example, when the period of the system clock is t and the period T of the encoder is 100 t, the counter value “100” is output from the pulse interval measurement counter 23 as the value of the period of the encoder.
[0049]
The comparator 24 compares the output value of the pulse interval measurement counter 23, that is, the period value of the encoder 11, with the value of the temporary register 25, that is, the addition result of the adder 26, and the addition result indicates the period of the encoder 11. When the value is smaller than the value, a signal for switching the input of the adder 26 to the magnification register 20 side is output to the switch 21. Further, when the addition result reaches the value of the cycle of the encoder 11, a signal for switching the input of the adder 26 to the complement circuit 22 side is output to the switch 21.
[0050]
The temporary register 25 is a circuit that inputs the output signal of the adder 26 and integrates the addition result of the adder 26. The output of the temporary register 25 is supplied to an adder 26 and a comparator 24.
[0051]
Similar to the pulse interval measurement counter 23, the adder 26 is a circuit that adds the contents of the magnification register 20 using the system clock as a reference clock. When the addition result reaches the encoder cycle value, as described above, the encoder cycle value is subtracted from the addition value, and the contents of the magnification register 20 are added to the subtraction result.
[0052]
Next, based on the flowchart of FIG. 3, a clock signal generation process in which the period value of the encoder is multiplied by a predetermined value by the multiplier circuit 7 of the present embodiment will be described.
[0053]
First, when the movement of the print head 10 in the recording paper width direction is started by an instruction from the CPU 1, a pulse signal synchronized with the encode pattern is output from the encoder 11. Since the encode pattern is provided in an area having a width larger than the print area width for the recording paper, the pulse signal is output before printing is actually started.
[0054]
Next, the pulse signal is input to the pulse interval measurement counter 23 of the multiplier circuit 7, and the pulse interval measurement counter 23 measures the pulse interval of the pulse signal with reference to the system clock. Hereinafter, as an example, when the period of the system clock is t and the encoding period value T is 100 t, the measurement result of the pulse interval measurement counter 23 is 100.
[0055]
When the measurement of the encode period T is completed as described above, the comparator 24 compares the encode period T, which is the output of the pulse interval measurement counter 23, with the contents of the temporary register 25. Since the contents of the temporary register 25 are “0” in the initial state, the comparator 24 outputs, for example, a negative logic signal to the switch 21.
[0056]
Accordingly, the switch 21 switches the input of the adder 26 to the magnification register 20 side. A magnification value n set by the CPU 1 is stored in the magnification register 20, and a magnification value n is input to the adder 26.
[0057]
Then, the adder 26 adds the contents X of the temporary register 25 and the input magnification value n according to the reference clock (FIG. 3: step S1; YES) (FIG. 3: step S2). The addition result is sequentially stored in the temporary register 25. For example, if the magnification value n is set to “4”, the content X of the temporary register 25 is “0” in the initial state, so the content of the temporary register 25 is 4, 8, 12,. Will increase.
[0058]
The addition result, that is, the content X of the temporary register 25 is sequentially compared with the value of the cycle T of the encoder by the comparator 24 (FIG. 3: step S3). As a result of this comparison, if the contents of the temporary register 25 have not reached the period T of the encoder 11 (FIG. 3: step S3; YES), printing has not been completed (FIG. 3: step S6; YES). Further, the addition process and the comparison process are continued.
[0059]
When the content X of the temporary register 25 exceeds the period T of the encoder 11 (FIG. 3: step S3; NO), the comparator 24 outputs a positive logic signal to the switch 21, for example. In response to this, the switch 21 switches the input of the adder 26 to the complement circuit 22. The complement circuit 22 outputs the 2's complement of the value of the period T of the encoder 11 to the adder 26. Therefore, when the adder 26 performs the addition process of the 2's complement and the content X of the temporary register 25, a process of subtracting the value of the period T of the encoder from the content X of the temporary register 25 is performed. (FIG. 3: Step S4).
[0060]
Further, when the content X of the temporary register 25 exceeds the period T of the encoder, the comparator 24 outputs a pulse signal for informing a desired printing timing to the timing control circuit 6 (FIG. 3: Step S5).
[0061]
By repeating the above processing, a clock signal having a predetermined multiple of the period T of the encoder can be obtained. To explain using a specific example, first, assume that a predetermined magnification value is n, and when the magnification value n is added k times, the addition result becomes equal to the period T of the encoder. In this case, since T = kn, k = T / n. That is, the point in time when the k additions are completed is a timing of 1 / n of the cycle T of the encoder. Therefore, by continuing to output the pulse signal at this timing, a clock signal having a frequency n times the frequency of the encoder can be obtained.
[0062]
Here, a description will be given by taking more specific numerical values as examples. For example, as shown in an enlarged view in FIG. 4E, the period of the system clock is t, and the period T of the encoder measured using this system clock is 100 t as shown in FIG. Then, the output of the pulse interval measurement counter 23 becomes “100”. Also, the magnification value set in the magnification register 20 is “5”, and a clock signal having a frequency five times the frequency of the encoder is generated.
[0063]
When the above-described processing is performed under such conditions, as shown in an enlarged view in FIG. 4D, when the 20th addition based on the system clock with the period t is completed, 5 × 20t = 100t. As shown in FIG. 4B, a pulse signal is output from the multiplier circuit 7 to the timing control circuit 6. This timing is a timing at which 20 = 100t / 5t, and is a timing corresponding to one fifth of the encoder cycle T (= 100t). Thereafter, when the same processing is repeated, a pulse signal is output at every timing corresponding to one fifth of the encoder cycle T. If these pulse signals are viewed as a series of clock signals, the frequency of the encoder Thus, a clock signal having a frequency five times that of the above is obtained.
[0064]
Through the above processing, the timing control circuit 6 outputs a pulse signal synchronized with the period T of the encoder as shown in FIG. A clock signal having a frequency that is five times the frequency of the encoder as shown in FIG. 4B is output. Therefore, the timing control circuit 6 can inform the print pulse generator 5 of the ink ejection timing at a timing finer than the cycle T of the encoder, for example, as shown in FIG. In this case, the timing control circuit 6 may notify the print pulse generator 5 of the clock signal itself having a frequency five times the frequency of the encoder shown in FIG. 4B as the ink ejection timing. Based on a pulse signal synchronized with the encoder cycle T as shown in FIG. 4 (A), an appropriate timing is selected from a clock signal having a frequency obtained by multiplying the frequency of the encoder shown in FIG. The printing pulse generator 5 may be notified. How the clock signal is selected from the timing control circuit 6 and notified to the print pulse generator 5 can be appropriately set according to conditions such as the resolution of the printer.
[0065]
In the multiplication circuit 7, when the addition result by the adder 26 exceeds the encoder period T, the encoder period T is subtracted from the addition result. This is a measure for a case where the encoder cycle T cannot be divided by the predetermined magnification n. For example, if the period T of the encoder is 100 t and the predetermined magnification n is “3”, the addition result becomes 102 at the 34th addition and exceeds 100. In this case, the addition by the adder 26 in the next cycle is started with “2” as an initial value by the subtraction process. In this way, the fraction of the calculation resulting from the remainder obtained by dividing the encoder period value “100” by “3” is carried over to the addition in the next cycle, so at least during the period during which effective printing is performed. Can generate a clock signal having a frequency three times that of the encoder.
[0066]
As described above, according to the present embodiment, the frequency of the encoder is 2nIt is possible to easily perform a clock signal having an arbitrary multiple frequency as well as a double without performing a division operation. As a result, for example, a resolution of 450 dpi can be realized in a printer having a series resolution of 300 dpi, 600 dpi, 900 dpi, and 1200 dpi. Further, for example, an encoder of 90 dpi can be used in common for both a printer having a resolution of 300 dpi, 600 dpi, 900 dpi, and 1200 dpi and a printer having a resolution of 360 dpi, 720 dpi, and 1440 dpi. Cost can be significantly reduced.
[0067]
In this embodiment, an example in which the multiplication circuit of the present invention is used in an ink jet printer has been described. However, the present invention can be applied to various other electronic devices such as an electrophotographic printer device and a copying apparatus. .
[0068]
【The invention's effect】
As described above, according to the timing generator of claim 1 and the timing generator method of claim 6, the measuring meansEncoder that works based on print head movementThe period of the pulse signal output from is measured as T, for example. A predetermined magnification value n is added by the adding means. Then, the comparison control means compares the addition result with the value of the measured period. As a result of the comparison, when the addition result exceeds the value of the period, a signal for instructing timing for outputting an output pulse is output. For example, if the addition result is nX and this value is equal to the period T, since nX = T, X = T / n. That is, the timing at which the addition result becomes equal to the cycle is a timing obtained by dividing the cycle T into n equal parts. Therefore, by performing the processing with a desired fraction n for the period T, the output pulse can be output at a desired timing. In other words, when the value of T / n is not divisible, the remainder is carried over to the same processing for the next period T, whereby a desired fractional timing can be obtained.
In addition, when the addition value is equal to or greater than the period, the comparison control unit notifies the output timing of the output pulse, and thus, as described above, at the first timing of a desired fractional number n with respect to the period T. Output pulse is output.
[0069]
Also,When the addition result exceeds the period, the output timing of the pulse signal is notified and the value of the period is subtracted from the addition result, so even if the encoder frequency is not divisible by the desired magnification, the encoder frequency Against 2nIn addition to the multiplication, a clock signal with other magnification can be easily generated. As a result, the encoder can be shared, which can contribute to cost reduction.
[0070]
Claim2The timing generator according to claim 1 and claims5According to the described timing generation method, since the desired magnification value is made variable, it is possible to easily generate a clock signal having an arbitrary magnification with respect to the encoder frequency in response to a request for resolution or the like.
[0071]
Claim3The timing generator according to claim 1 and claims5According to the described timing generation method, since the desired magnification value is made variable according to the resolution of the ink jet printer, a printer having an arbitrary resolution can be provided without being restricted by the resolution of the encoder. In addition, the encoder can be shared, which can contribute to cost reduction.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a circuit configuration of an inkjet printer according to an embodiment of the present invention.
FIG. 2 is a block diagram showing a configuration of a multiplier circuit in the circuit of FIG.
FIG. 3 is a flowchart showing a print timing signal generation process in the ink jet printer of FIG. 1;
4 is a timing chart of print timing signal generation processing in the ink jet printer of FIG. 1. FIG. 4A is an encoder signal, FIG. 4B is a clock signal having a frequency five times the frequency of the encoder signal, and FIG. Ink ejection timing signal, (D) is a timing chart showing the addition result in the multiplication circuit, and (E) is a timing chart showing the system clock (enlarged view).
[Explanation of symbols]
1 ... CPU
6 ... Timing control circuit
7 ... Multiplier circuit
8. Print position control unit
10 ... Print head
11 ... Encoder
20 ... Magnification register
21 ... Switch
22: complement circuit
23 ... Pulse interval measurement counter
24 ... Comparator
25 ... Temporary register
26. Adder

Claims (5)

印字ヘッドの移動に基づいて機能するエンコーダから出力されるパルス信号に同期しながら、所定間隔の出力パルスを出力するタイミング発生装置であって、
前記エンコーダから出力されたパルス信号の周期を基準クロックに基づいて測定する測定手段と、
所定の倍率値を格納する倍率レジスタと、
初期値を格納する一時レジスタと、
前記倍率レジスタに格納された倍率値を、前記基準クロックに基づいて前記一時レジスタに格納された初期値に順次加算する加算手段と、
前記加算手段による加算結果と前記測定手段により測定された周期の値とを比較し、前記加算結果が前記周期の値を超えたときに、前記出力パルスを出力するためのタイミングを指示する信号を出力する比較制御手段とを備え
前記一時レジスタは、前記加算結果が前記周期の値を超えたときに、当該加算結果から前記周期の値を減算し、当該減算した値を前記初期値として格納することを特徴とするタイミング発生装置。
A timing generator that outputs output pulses at predetermined intervals while synchronizing with a pulse signal output from an encoder that functions based on movement of a print head ,
Measuring means for measuring the period of the pulse signal output from the encoder based on a reference clock;
A magnification register for storing a predetermined magnification value;
A temporary register to store the initial value;
Addition means for sequentially adding the magnification value stored in the magnification register to the initial value stored in the temporary register based on the reference clock;
A signal indicating the timing for outputting the output pulse when the addition result by the adding means is compared with the period value measured by the measuring means and the addition result exceeds the period value. and a comparison control means for outputting,
The temporary register subtracts the cycle value from the addition result when the addition result exceeds the cycle value, and stores the subtracted value as the initial value. .
前記倍率レジスタに格納される倍率値は、可変であることを特徴とする請求項1記載のタイミング発生装置。The timing generator according to claim 1 , wherein the magnification value stored in the magnification register is variable. 前記タイミング発生装置は、インクジェットプリンタにおけるインク吐出タイミングを発生させる装置であり、前記倍率値は、前記インクジェットプリンタにおける解像度に応じて可変であることを特徴とする請求項1に記載のタイミング発生装置。The timing generator according to claim 1, wherein the timing generator is a device that generates ink ejection timing in an inkjet printer, and the magnification value is variable in accordance with a resolution in the inkjet printer. 印字ヘッドの移動に基づいて機能するエンコーダから出力されるパルス信号に同期しながら、所定間隔の出力パルスを出力するタイミング発生方法であって、
前記エンコーダから出力されたパルス信号の周期を基準クロックに基づいて測定する測定工程と、
倍率レジスタに格納された倍率値を、前記基準クロックに基づいて一時レジスタに格納された初期値に順次加算する加算工程と、
前記加算工程によって加算された加算結果と、前記測定工程により測定された周期の値とを比較し、前記加算結果が前記周期の値を超えたときに、前記出力パルスを出力するためのタイミングを指示する信号を出力する出力工程と、
前記加算結果が前記周期の値を超えたときに、当該加算結果から前記周期の値を減算し、当該減算した値を前記初期値として前記一時レジスタに格納する格納工程と、
を備えることを特徴とするタイミング発生方法。
A timing generation method for outputting output pulses at predetermined intervals while synchronizing with a pulse signal output from an encoder that functions based on movement of a print head ,
A measurement step of measuring the period of the pulse signal output from the encoder based on a reference clock;
An addition step of sequentially adding the magnification value stored in the magnification register to the initial value stored in the temporary register based on the reference clock;
The addition result added by the addition step is compared with the period value measured by the measurement step, and when the addition result exceeds the period value, the timing for outputting the output pulse is determined. An output process for outputting a signal to instruct;
A storage step of subtracting the period value from the addition result when the addition result exceeds the period value, and storing the subtracted value in the temporary register as the initial value;
A timing generation method comprising:
前記タイミング発生方法は、インクジェットプリンタにおけるインク吐出タイミングを発生させる方法であって、
前記倍率値は、前記インクジェットプリンタにおける解像度に応じて可変であることを特徴とする請求項に記載のタイミング発生方法。
The timing generation method is a method of generating ink ejection timing in an inkjet printer,
The timing generation method according to claim 4 , wherein the magnification value is variable according to a resolution in the inkjet printer.
JP2000095106A 2000-03-30 2000-03-30 Timing generating apparatus and method Expired - Fee Related JP3622628B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000095106A JP3622628B2 (en) 2000-03-30 2000-03-30 Timing generating apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000095106A JP3622628B2 (en) 2000-03-30 2000-03-30 Timing generating apparatus and method

Publications (2)

Publication Number Publication Date
JP2001277633A JP2001277633A (en) 2001-10-09
JP3622628B2 true JP3622628B2 (en) 2005-02-23

Family

ID=18610053

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000095106A Expired - Fee Related JP3622628B2 (en) 2000-03-30 2000-03-30 Timing generating apparatus and method

Country Status (1)

Country Link
JP (1) JP3622628B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7396058B2 (en) 2020-01-14 2023-12-12 ブラザー工業株式会社 liquid discharge device

Also Published As

Publication number Publication date
JP2001277633A (en) 2001-10-09

Similar Documents

Publication Publication Date Title
JP2010162810A (en) Line printer, thermal printer, element number detecting method for thermal head, and element arrangement density deciding method for thermal head
JP3622628B2 (en) Timing generating apparatus and method
JP2008143151A (en) Recording head, head cartridge, and recording device
JP5808821B2 (en) Method and system for controlling multi-color ink jet printing in an intermittent rotary printing apparatus
JP2893824B2 (en) Printer
JP2021181220A (en) Method for transmitting printing data and printer
JP2011235528A (en) Recording head and recording apparatus
US20040119806A1 (en) Heat history control system, printer, and program
JP2956767B2 (en) Print data control device in printer
JP5471472B2 (en) Image forming apparatus
JP3615178B2 (en) Printer control device
JP3657443B2 (en) Image forming apparatus
JP4165359B2 (en) Liquid ejection apparatus and liquid ejection method
US7320511B2 (en) Image forming apparatus and high-resolution printing method in a horizontal direction
JP2009208387A (en) Thermal printer
JP2616323B2 (en) Line thermal head protection circuit
JP2977715B2 (en) Print head load detector
JP2591015B2 (en) Method and apparatus for energizing thermal head in thermal printer
JP2008012817A (en) Printer and data transfer method
JP6221604B2 (en) Image processing apparatus, image forming apparatus, and image processing program
JP2019084685A (en) Recording device and recording control method
JP4935478B2 (en) Printing apparatus and printing method
JPH0325115B2 (en)
JP2009045761A (en) Liquid-droplet discharge device
JP2006341447A (en) Recording device and data processing method of recording device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040203

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040402

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040803

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040917

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041115

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3622628

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071203

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081203

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081203

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091203

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091203

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101203

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111203

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111203

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121203

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131203

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees