JP3772611B2 - Thermal printer data generator - Google Patents

Thermal printer data generator Download PDF

Info

Publication number
JP3772611B2
JP3772611B2 JP31204899A JP31204899A JP3772611B2 JP 3772611 B2 JP3772611 B2 JP 3772611B2 JP 31204899 A JP31204899 A JP 31204899A JP 31204899 A JP31204899 A JP 31204899A JP 3772611 B2 JP3772611 B2 JP 3772611B2
Authority
JP
Japan
Prior art keywords
data
bits
bit
print data
gradation
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
JP31204899A
Other languages
Japanese (ja)
Other versions
JP2001130043A5 (en
JP2001130043A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP31204899A priority Critical patent/JP3772611B2/en
Publication of JP2001130043A publication Critical patent/JP2001130043A/en
Publication of JP2001130043A5 publication Critical patent/JP2001130043A5/ja
Application granted granted Critical
Publication of JP3772611B2 publication Critical patent/JP3772611B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Fax Reproducing Arrangements (AREA)
  • Electronic Switches (AREA)
  • Color, Gradation (AREA)

Description

【0001】
【発明の属する技術分野】
本発明はサーマルプリンタに関し、特にサーマルヘッドに供給する印字データのデータ生成装置に関する。
【0002】
【従来の技術】
近年、ディジタルカメラ用プリンタの開発が盛んに行われている。ディジタルカメラの性能向上に伴い、これらプリンタの高画質化・高速印刷化も急速に進んできている。ところで、一般的に、ディジタルカメラ用プリンタはサーマルヘッドを用いた、サーマルプリンタで構成されている。
【0003】
サーマルプリンタは、複数の発熱抵抗体に同時に電圧を加え、それによって発生する熱を利用して印刷を行うものである。ディジタルカメラ画像のような階調データの印刷は、階調値に合わせて、個々の発熱抵抗体への通電時間を調節し、発生する熱を最適に制御することで行われる。発熱抵抗体の通電制御は、サーマルヘッドへ送る印字データにより行われている。
【0004】
図8はサーマルヘッドの回路図である。発熱抵抗体0〜3は記録紙に印字を行う印字部であり、対応するトランジスタQ0〜Q3をオン、又はオフに駆動することによって発熱抵抗体0〜3に電流を流し、記録紙に印字を行う。また、トランジスタQ0〜Q3のオン、オフ駆動は印字データに従って実行され、印字データをシリアルにシフトレジスタ1に送り、ラッチ信号に同期してラッチ回路2に1ライン分のデータをラッチする。
【0005】
ラッチ回路2にラッチされたデータはアンドゲート(ANDゲート)3−0〜3−3を介して上述のトランジスタQ0〜Q3に出力され、ハイレベル(“1”)の信号が供給されたトランジスタQ0〜Q3がオンし、対応する発熱抵抗体を発熱する。
【0006】
一方、図9は上述のサーマルヘッドに印字データを供給する、印字データ生成部である。印字データ生成部は、データ生成回路4とディレー回路5で構成され、データ生成回路4では2ビット構成で供給される印刷データと、同じく2ビット構成で供給される階調カウントデータの比較を行い、印字データを生成する。また、データ生成回路4から出力される印字データはシステムクロックに同期してディレー回路5に出力され、ディレー回路5から上述のシフトレジスタ1に出力される。
【0007】
図10は上述の処理を示すタイムチャートであり、印字データを2ビットとし、それぞれ階調を3,2,2,0とした場合の処理を示す。同図から分かるように、データ生成回路4は階調カウントデータの値をデクリメントしつつ、各発熱抵抗体の印刷データと階調カウントデータの値を大小比較していく。この例では、シフトレジスタ1への入力の都合で、発熱抵抗体0、発熱抵抗体1、発熱抵抗体2、発熱抵抗体3の順に大小比較している。そして、「印刷データ>階調カウントデータ」の時1を、そうでない時0を、次のシステムクロックの立ち上がりのタイミングでディレー回路5に取り込み、印字データとして出力する。
【0008】
その後、1つの階調における全ての発熱抵抗体のデータの生成が終了したら、ラッチパルスを出力し、シフトレジスタ1のデータをラッチ回路2にラッチする。そして、ラッチの値が1である発熱抵抗体のみを、ストローブ信号が1のタイミングで通電する。これを各階調ごとに繰り返し、この間印字データが順次生成され、階調印刷が行われる。
【0009】
【発明が解決しようとする課題】
上記従来のサーマルプリンタでは、図9に示すデータ生成回路が使用されている。しかし、このデータ生成回路は印刷データと階調カウントデータを順次比較しながら印字データを作成するため、処理時間を要する。このため、例えば高精細印刷等のため印刷データの多ビット化を行うと、タイミング的にクリティカルになりやすい。回路の高速化においては、処理を細分化し、1ステージずつに分割して実行するパイプライン化が有効な手段であるが、従来の印字データの生成回路では、比較回路自体が1つのステージを構成する最小単位となるため、クリティカルパスの解消にはならない。
【0010】
本発明は、上記課題を解決するため、データ生成回路に工夫を加え、印刷データのビットを分け、従来より細かく分割して大小比較を行い、印字データを生成することによって高速な回路を実現するサーマルプリンタのデータ生成装置を提供するものである。
【0011】
【課題を解決するための手段】
上記課題は請求項1記載の発明によれば、印刷する画像の階調を表す画像データである印刷データを上位半分のビットと下位半分のビットに分離する第1の分離手段と、前記印刷データと同じビット数を有し順次歩進される階調カウントデータを上位半分のビットと下位半分のビットに分離する第2の分離手段と、前記第1の分離手段で分離した印刷データの上位半分のビットと前記第2の分離手段で分離した階調カウントデータの上位半分のビットとを比較する第1の比較手段と、前記第1の分離手段で分離した印刷データの下位半分のビットと前記第2の分離手段で分離した階調カウントデータの下位半分のビットとを比較する第2の比較手段と、前記第1、第2の比較手段によって比較した比較結果から、印刷ヘッドの各発熱抵抗体の通電を制御するヘッドデータを生成するデータ生成手段と、を有することを特徴とするサーマルプリンタのデータ生成装置を提供することによって達成される。
【0012】
ここで、印刷データは例えばディジタルカメラ等から出力される画像データであり、上位ビット/下位ビット分離回路11は上記画像データを上位1ビットと下位1ビットに分離し、同様に上位ビット/下位ビット分離回路12によって分離された階調カウントデータの上位1ビット、下位1ビットと比較される。
【0013】
例えば、第1の比較手段は上記両上位1ビットを比較し、第2の比較手段は下位1ビットを比較し、比較結果からヘッドデータを作成する。
このように構成することにより、印刷データは複数の比較回路によって並行して比較処理され、高速にヘッドデータの生成を行うことができる。
【0014】
上記課題は請求項2記載の発明によれば、2N階調印刷を行うプリンタのデータ生成装置において、印刷する画像の階調を表す画像データである印刷データを上位(N−n)ビットと下位nビットに分離する第1の分離手段と、前記印刷データと同じビット数を有し順次歩進される階調カウントデータを上位(N−n)ビットと下位nビットに分離する第2の分離手段と、前記第1の分離手段で分離した前記印刷データの上位( N −n)ビットと前記第2の分離手段で分離した前記階調カウントデータの上位( N −n)ビットとを比較する第1の比較手段と、前記第1の分離手段で分離した前記印刷データの上位(N−n)ビットと前記第2の分離手段で分離した前記階調カウントデータの上位( N −n)ビットとの同値判定を行う同値判定手段と、前記第1の分離手段で分離した前記印刷データの下位nビットと前記第2の分離手段で分離した前記階調カウントデータの下位nビットとを比較する第2の比較手段と、前記第1、第2の比較手段によって比較した比較結果及び前記同値判定手段による判定結果から、印刷ヘッドの各発熱抵抗体の通電を制御するヘッドデータを生成するデータ生成手段と、を有することを特徴とするプリンタのデータ生成装置を提供することによって達成される。
【0015】
請求項3の記載は、前記請求項2記載の発明において、前記データ生成手段が、前記第1の比較手段の比較結果、及び前記同値判定手段の判定結果により、前記印刷データの上位( N −n)ビットが前記階調カウントデータの上位( N −n)ビットより大きい、もしくは、前記印刷データの上位(N−n)ビットと前記階調カウントデータの上位( N −n)ビットとが等しく前記印刷データの下位nビットが前記階調カウントデータの下位nビットより大きいと識別された場合、前記ヘッドの発熱抵抗体を制御するデータとしてオン駆動データを出力する構成である。
【0016】
このように構成することによっても、印刷データは並行に処理され、高速にヘッドデータの生成を行うことができる。
【0019】
【発明の実施の形態】
以下、本発明の実施の形態を図面を参照しながら説明する。
<第1の実施形態>
図1は、本実施形態のサーマルプリンタに使用するヘッドデータ生成回路の回路図である。尚、本例のヘッドデータ生成回路から出力されるヘッドデータ(印字データ)は前述の図8に示すサーマルヘッドのシフトレジスタ1に供給される。
【0020】
図1において、本例のヘッドデータ生成回路10は、上位ビット/下位ビット分離回路11、12、比較回路13〜15、DFFで構成されるディレー回路16〜18、アンドゲート(ANDゲート)19、オア(OR)ゲート20、及びディレー回路21で構成されている。
【0021】
上位ビット/下位ビット分離回路11は2ビット構成の印刷データを上位1ビットと下位1ビットに分離する回路であり、分離後の上位1ビットのデータは比較回路13及び14に出力され、分離後の下位1ビットのデータは比較回路15に出力される。一方、上位ビット/下位ビット分離回路12は2ビット構成の階調カウントデータを上位1ビットと下位1ビットに分離する回路であり、分離後の上位1ビットのデータは上記比較回路13及び14に出力され、分離後の下位1ビットのデータも上記比較回路15に出力される。
【0022】
比較回路13では印刷データの上位1ビットと階調カウントデータの上位1ビットを比較し、印刷データ>階調カウントデータのとき、“1”をディレー回路16に出力し、印刷データ<階調カウントデータのとき、“0”をディレー回路16に出力する。また、比較回路14でも印刷データの上位1ビットと階調カウントデータの上位1ビットを比較し、印刷データ=階調カウントデータのとき、“1”をディレー回路17に出力し、印刷データ≠階調カウントデータのとき、“0”をディレー回路17に出力する。
【0023】
一方、比較回路15では印刷データの下位1ビットと階調カウントデータの下位1ビットを比較し、印刷データ>階調カウントデータのとき、“1”をディレー回路18に出力し、印刷データ<階調カウントデータのとき、“0”をディレー回路18に出力する。
【0024】
アンドゲート(ANDゲート)19は上記ディレー回路17及び18の出力の論理積に従って、“1”又は“0”の信号をオア(OR)ゲート20に出力する。また、オア(OR)ゲート20は上記アンドゲート(ANDゲート)19の出力と、ディレー回路16の出力の論理和に従った出力をディレー回路21に行い、ディレー回路21から出力される信号、即ちヘッドデータを前述のシフトレジスタ1に出力する。
【0025】
尚、ディレー回路16〜18への信号供給は、システムクロックに従って行われる。
図2は上記構成の印字データ生成回路の処理動作を説明するタイムチャートである。尚、本実施形態の説明においても、発熱抵抗体0〜3の印字データをそれぞれ3,2,2,0として説明する。
【0026】
先ず、階調カウンタ=3のとき、発熱抵抗体0に対するヘッドデータ生成は同図のAのタイミングにおいて、階調カウンタの上位1ビットと発熱抵抗体0の印字データの上位1ビットの大小比較・同値判定、及び階調カウンタの下位1ビットと発熱抵抗体0の印刷データの下位1ビットの大小比較を行う。
【0027】
ここで、前述のように印刷データが、上位1ビット>下位1ビットならば“1”、そうでなければ“0”を出力する。また、印刷データの上位1ビット=下位1ビットならば“1”、そうでなければ“0”を出力する。さらに、印刷データの上位1ビット>階調カウンタの下位1ビットならば“1”、そうでなければ“0”出力する。
【0028】
次に、Bのタイミングでは、上記Aのタイミング中に行った発熱抵抗体0の印字データに対する大小比較と同値判定の結果を対応するディレー回路16〜18に取り込む。
【0029】
次に、Cのタイミングでは、印字データの上位1ビット>階調カウンタの上位1ビット、又は印刷データの上位1ビット=階調カウンタの上位1ビット、且つ印刷データの下位1ビット>階調カウンタの下位1ビットならば“1”、そうでなければ“0”の規則に従って、値をディレー回路21に取り込む。そして、これをヘッドデータとしてヘッドのシフトレジスタ1へ出力する。
【0030】
階調カウンタ=3のとき、その他の発熱抵抗体に対するヘッドデータ生成も同様であり、発熱抵抗体1に対してのヘッドデータ生成は、Bのタイミングで大小比較・同値判定を行い、Cのタイミングでその結果を取り込み、Dのタイミングでヘッドデータをディレー回路21に取り込み出力する。
【0031】
また、発熱抵抗体2に対してのヘッドデータ生成は、Cのタイミングで大小比較・同値判定を行い、Dのタイミングでその結果を取り込み、Eのタイミングでヘッドデータをディレー回路21に取り込み出力する。さらに、発熱抵抗体3に対してのヘッドデータ生成は、Dのタイミングで大小比較・同値判定を行い、Eのタイミングでその結果を取り込み、Fのタイミングでヘッドデータをディレー回路21に取り込み出力する。
【0032】
以上の処理を行うと、階調カウントデータが3である時、全てのヘッドデータの生成が完了する。そして、次に、ラッチパルスを出力し、シフトレジスタのデータをラッチする。そして、ラッチの値が“1”である発熱抵抗体のみが、ストローブが“1”のタイミングで通電される。
【0033】
以下同様に、階調カウントデータの各値においてヘッドデータの生成、ラッチ、発熱抵抗体への通電を行う。このよう処理することによって、高速の転送処理を行うことができる。
【0034】
尚、一般的には、第1の実施形態における発明では、2N 階調印刷を行うサーマルプリンタにおいてN>n>=1とするとき、ヘッドデータの生成を
ステージ1:
(1)印刷データの上位(N−n)bit と階調カウンタの上位(N−n)bit の大小比較
(2)印刷データの上位(N−n)bit と階調カウンタの上位(N−n)bit の同値判定
(3)印刷データの下位nbit と階調カウンタの下位nbit の大小比較
ステージ2:ステージ1の結果より、印刷データの上位(N−n)bit >階調カウンタの上位(N−n)bitまたは、印刷データの上位(N−n)bit =階調カウンタの上位(N−n)bitかつ 印刷データの下位nbit >階調カウンタの下位nbit ならばヘッドデータ=1上記以外ならばヘッドデータ=0の規則に従って行うように構成し、上記の各ステージをパイプラインの1段分の処理に対応させることにより、従来より高速動作する回路が実現できる。
【0035】
尚、階調カウントデータをデクリメントする場合で説明したが、階調カウントデータをインクリメントする構成としてもよい。
<第2の実施形態>
次に、本発明の第2の実施形態について説明する。
【0036】
図3は本実施形態のシステム構成図である。同図において、前述の第1の実施形態と同じ回路には同じ番号を付して構成上の説明を省略する。本例の相違は、上位ビット/下位ビット分離回路11の出力である下位1ビットが比較回路15に出力されると共に、比較回路23にも出力される構成であり、又上位ビット/下位ビット分離回路12の出力である下位1ビットが比較回路15に出力されると共に、比較回路23にも出力される構成である。また、比較回路23の追加に従ってディレー回路24も追加され、新たなオア(OR)ゲート25においてディレー回路18と24の出力の論理和が出力される構成である。以下、具体的な回路動作を図4のタイムチャートを使用して説明する。
【0037】
先ず、本例においても、階調カウントデータが3の時、発熱抵抗体0に対するヘッドデータ生成は、Aのタイミングで階調カウンタの上位1ビットと発熱抵抗体0の印刷データの下位1ビットの大小比較・同値判定、及び階調カウンタの下位1ビットと発熱抵抗体0の印刷データの下位1ビットの大小比較・同値判定を行う。それぞれ、印刷データの上位1ビット>階調カウンタの上位1ビットならば“1”、そうでなければ“0”である。また、印刷データの上位1ビット=階調カウンタトデータの上位1ビットならば“1”、そうでなければ“0”である。
【0038】
一方、印刷データの下位1ビット>階調カウントデータの下位1ビットならば“1”、そうでなければ“0”である。さらに、印刷データの下位1ビット=階調カウントデータの下位1ビットならば“1”、そうでなければ“0”である。
【0039】
次に、Bのタイミングでは、Aのタイミング中に行った発熱抵抗体0の印刷データに対する大小比較と同値判定の結果をディレー回路16〜18、及び24に取り込む。そして、Cのタイミングでは、印刷データの上位1ビット>階調カウントデータの上位1ビット、又は印刷データの上位1ビット=階調カウントデータの上位1ビット、且つ印刷データの下位1ビット>階調カウントデータの下位1ビット、又は印刷データの上位1ビット=階調カウントデータの上位1ビット、且つ印刷データの下位1ビット=階調カウントデータの下位1ビットならば“1”、そうでなければ“0”の規則に従って値をディレー回路21に取り込む。そして、ディレー回路21から出力される信号をヘッドデータとして出力する。
【0040】
尚、他の発熱抵抗体に対するヘッドデータ生成処理も同様であり、発熱抵抗体1に対しては、Bのタイミングで大小比較・同値判定を行い、Cのタイミングでその結果を取り込み、DのタイミングでヘッドデータをDFF5に取り込み出力する。発熱抵抗体2に対しては、Cのタイミングで大小比較・同値判定を行い、Dのタイミングでその結果を取り込み、Eのタイミングでヘッドデータをディレー回路21に取り込み出力する。発熱抵抗体3に対しては、Dのタイミングで大小比較・同値判定を行い、Eのタイミングでその結果を取り込む。Fのタイミングでヘッドデータをディレー回路21に取り込み出力する。
【0041】
以下同様に、階調カウントデータの各値においてヘッドデータの生成を行い、ラッチ、発熱抵抗体への通電を行う。したがって、この規則に従って回路処理を繰り返し、従来よりも高速に動作する回路が実現できる。
【0042】
尚、上記実施形態では、印刷データと階調カウントデータの下位1ビットの大小比較・同値判定を分けて行ったが、一つにまとめ、印刷データの下位ビット>=階調カウンタの下位ビットの時“1”、そうでなければ“0”のようにして、この結果をディレー回路21に出力するように構成してもよい。例えば、図5はこの例である。
<第3の実施形態>
次に、本発明の第3の実施形態について説明する。
【0043】
図6は本実施形態のシステム構成図である。同図において、前述の第1又は第2の実施形態と同じ回路には同じ番号を付して構成上の説明を省略する。本例の相違は、比較回路13’の比較処理が前述とは逆であり、また比較回路15’の比較処理も前述とは逆である点である。また、オア(OR)ゲート20の後にインバータ27が接続されている点である。
【0044】
このように構成することにより、前述の第1の実施形態とは論理が逆になり、図7に示すタイムチャートに従ってシフトレジスタ1に対し高速なヘッドデータを出力することができる。
【0045】
【発明の効果】
以上、説明したように本発明によれば、ヘッドデータを高速に生成でき、プリンタ装置に供給するので、高速プリント処理が可能になる。
【図面の簡単な説明】
【図1】第1の実施形態を説明するシステム構成図である。
【図2】第1の実施形態を説明するタイムチャートである。
【図3】第2の実施形態を説明するシステム構成図である。
【図4】第2の実施形態を説明するタイムチャートである。
【図5】第2の実施形態の変形例を説明するシステム構成図である。
【図6】第3の実施形態を説明するシステム構成図である。
【図7】第3の実施形態を説明するタイムチャートである。
【図8】サーマルヘッドの回路構成を説明する図である。
【図9】従来のヘッドデータ生成回路を説明する回路図である。
【図10】従来のヘッドデータ生成回路の回路動作を説明するタイムチャートである。
【符号の説明】
10 ヘッドデータ生成回路
11、12 上位ビット/下位ビット分離回路
13〜15 比較回路
16〜18 ディレー回路
19 アンドゲート(ANDゲート)
20 オア(OR)ゲート
21 ディレー回路
23 比較回路
24 ディレー回路
25 オア(OR)ゲート
27 インバータ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a thermal printer, and more particularly to a data generation apparatus for print data supplied to a thermal head.
[0002]
[Prior art]
In recent years, printers for digital cameras have been actively developed. With the improvement in performance of digital cameras, high-quality printing and high-speed printing of these printers are rapidly progressing. By the way, in general, a printer for a digital camera is composed of a thermal printer using a thermal head.
[0003]
The thermal printer performs printing by applying a voltage to a plurality of heating resistors simultaneously and using the heat generated thereby. Printing gradation data such as a digital camera image is performed by adjusting the energization time to each heating resistor in accordance with the gradation value and optimally controlling the generated heat. The energization control of the heating resistor is performed by print data sent to the thermal head.
[0004]
FIG. 8 is a circuit diagram of the thermal head. The heating resistors 0 to 3 are printing units for printing on the recording paper. When the corresponding transistors Q0 to Q3 are driven on or off, current is supplied to the heating resistors 0 to 3 to print on the recording paper. Do. The transistors Q0 to Q3 are turned on / off according to the print data, the print data is serially sent to the shift register 1, and the data for one line is latched in the latch circuit 2 in synchronization with the latch signal.
[0005]
The data latched in the latch circuit 2 is output to the above-described transistors Q0 to Q3 via AND gates (AND gates) 3-0 to 3-3, and the transistor Q0 to which the high level (“1”) signal is supplied. -Q3 is turned on, and the corresponding heating resistor is heated.
[0006]
On the other hand, FIG. 9 shows a print data generation unit that supplies print data to the thermal head described above. The print data generation unit includes a data generation circuit 4 and a delay circuit 5. The data generation circuit 4 compares the print data supplied in a 2-bit configuration with the gradation count data supplied in the same 2-bit configuration. Generate print data. The print data output from the data generation circuit 4 is output to the delay circuit 5 in synchronization with the system clock, and is output from the delay circuit 5 to the shift register 1 described above.
[0007]
FIG. 10 is a time chart showing the above-described processing, and shows processing when the print data is 2 bits and the gradation is 3, 2, 2, and 0, respectively. As can be seen from the figure, the data generation circuit 4 decrements the value of the gradation count data, and compares the print data of each heating resistor with the value of the gradation count data. In this example, the heating resistor 0, the heating resistor 1, the heating resistor 2, and the heating resistor 3 are compared in order of size for convenience of input to the shift register 1. Then, when “ print data> gradation count data”, 1 is taken into the delay circuit 5 at the next rising timing of the system clock, and 0 is outputted as print data.
[0008]
After that, when generation of data of all the heating resistors in one gradation is completed, a latch pulse is output and the data of the shift register 1 is latched in the latch circuit 2. Then, only the heating resistor whose latch value is 1 is energized at the timing when the strobe signal is 1. This is repeated for each gradation, and during this time, print data is sequentially generated and gradation printing is performed.
[0009]
[Problems to be solved by the invention]
In the conventional thermal printer, the data generation circuit shown in FIG. 9 is used. However, since this data generation circuit creates the print data while sequentially comparing the print data and the gradation count data, a processing time is required. For this reason, for example, if the number of bits of print data is increased for high-definition printing or the like, it is likely to become critical in terms of timing. In order to increase the speed of the circuit, the processing is subdivided and pipelining is executed by dividing the process into stages, but in the conventional print data generation circuit, the comparison circuit itself constitutes one stage. Since this is the smallest unit, the critical path will not be resolved.
[0010]
In order to solve the above-mentioned problems, the present invention adds a device to the data generation circuit, divides the bits of the print data, divides the data finer than before, performs size comparison, and realizes a high-speed circuit by generating print data. A data generation apparatus for a thermal printer is provided.
[0011]
[Means for Solving the Problems]
According to the first aspect of the present invention, there is provided the first separation means for separating the print data, which is image data representing the gradation of the image to be printed, into upper half bits and lower half bits; and the print data second separating means and said first upper half of the print data separated by the separating means for separating the tone count data sequentially incremented has the same number of bits to bits of the bits and lower half of the upper half and wherein the bit and the first comparison means for comparing the upper half of the bits of the tone count data separated by said second separating means, the lower half of the bits of the print data separated by said first separating means Based on the comparison result obtained by comparing the lower half bit of the gradation count data separated by the second separation means with the first and second comparison means , each heating resistance of the print head is obtained. the body's It is achieved by providing a data generation device of the thermal printer characterized by having a data generating means for generating a head data for controlling the electric.
[0012]
Here, the print data is, for example, image data output from a digital camera or the like, and the upper bit / lower bit separation circuit 11 separates the image data into upper 1 bit and lower 1 bit, and similarly, upper bit / lower bit. The gradation count data separated by the separation circuit 12 is compared with the upper 1 bit and the lower 1 bit.
[0013]
For example, the first comparing means compares the upper 1 bits, and the second comparing means compares the lower 1 bits and creates head data from the comparison result.
With this configuration, print data is subjected to comparison processing in parallel by a plurality of comparison circuits, and head data can be generated at high speed.
[0014]
The above object is achieved, according to the second aspect of the present invention, 2 in the data generation device of a printer for performing N gradation printing, and an image data is higher print data (N-n) bits representing the gradation of an image to be printed A first separation unit that separates the lower n bits, and a second that separates gradation count data that has the same number of bits as the print data and is stepped sequentially into upper (N−n) bits and lower n bits It compares the separating means, and said first upper of the print data separated by the separating means (N -n) of the grayscale count data separated by the bit and the second separating means upper (N -n) bits first comparison means, said first upper of the print data separated by the separating means (n-n) of the gray-scale count data separated by the bit and the second separating means higher for (n -n) equivalence determination means for performing equivalence determination that the bit A second comparison means for comparing the lower n bits of the grayscale count data separated by said low-order n bits of the print data separated by the first separating means the second separating means, said first And data generation means for generating head data for controlling energization of each heating resistor of the print head from the comparison result compared by the second comparison means and the determination result by the equivalence determination means. This is achieved by providing a printer data generation device.
[0015]
According to a third aspect of the present invention, in the invention according to the second aspect, the data generating means determines whether the print data is higher in rank ( N −) based on the comparison result of the first comparison means and the determination result of the equivalence determination means. n) bits is greater than the upper (n -n) bits of the grayscale count data, or, and the upper (n -n) bits of the upper (n-n) bit and the previous Machinery tone count data of the print data If equal rather lower n bits of the print data is identified as greater than the lower n bits of the grayscale count data, it is configured to output an on-drive data as data for controlling the heating resistor of the head.
[0016]
Also with this configuration, print data is processed in parallel, and head data can be generated at high speed .
[0019]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
<First Embodiment>
FIG. 1 is a circuit diagram of a head data generation circuit used in the thermal printer of this embodiment. The head data (print data) output from the head data generation circuit of this example is supplied to the shift register 1 of the thermal head shown in FIG.
[0020]
In FIG. 1, the head data generation circuit 10 of this example includes upper bit / lower bit separation circuits 11 and 12, comparison circuits 13 to 15, a delay circuit 16 to 18 including a DFF, an AND gate (AND gate) 19, An OR gate 20 and a delay circuit 21 are included.
[0021]
The upper bit / lower bit separation circuit 11 is a circuit that separates print data having a 2-bit structure into upper 1 bit and lower 1 bit. The separated upper 1 bit data is output to the comparison circuits 13 and 14 and is separated. The lower 1 bit data of is output to the comparison circuit 15. On the other hand, the upper bit / lower bit separation circuit 12 is a circuit that separates 2-bit grayscale count data into upper 1 bit and lower 1 bit, and the separated upper 1 bit data is sent to the comparison circuits 13 and 14. The separated lower 1-bit data is also output to the comparison circuit 15.
[0022]
The comparison circuit 13 compares the upper 1 bit of the print data with the upper 1 bit of the gradation count data. When the print data> the gradation count data, “1” is output to the delay circuit 16 and the print data <the gradation count. When data, “0” is output to the delay circuit 16. The comparison circuit 14 also compares the upper 1 bit of the print data with the upper 1 bit of the gradation count data, and when print data = gradation count data, outputs “1” to the delay circuit 17 and print data ≠ When the key count data, “0” is output to the delay circuit 17.
[0023]
On the other hand, the comparison circuit 15 compares the low-order 1 bit of the print data with the low-order 1 bit of the gradation count data, and when print data> gradation count data, “1” is output to the delay circuit 18 and the print data <scale When the key count data, “0” is output to the delay circuit 18.
[0024]
An AND gate 19 outputs a signal “1” or “0” to an OR gate 20 according to the logical product of the outputs of the delay circuits 17 and 18. The OR gate 20 outputs an output in accordance with the logical sum of the output of the AND gate 19 and the output of the delay circuit 16 to the delay circuit 21, and the signal output from the delay circuit 21, that is, The head data is output to the shift register 1 described above.
[0025]
The signal supply to the delay circuits 16 to 18 is performed according to the system clock.
FIG. 2 is a time chart for explaining the processing operation of the print data generation circuit having the above configuration. In the description of the present embodiment, the print data of the heating resistors 0 to 3 will be described as 3, 2, 2, and 0, respectively.
[0026]
First, when the gradation counter = 3, the head data generation for the heating resistor 0 is compared in magnitude between the upper 1 bit of the gradation counter and the upper 1 bit of the printing data of the heating resistor 0 at the timing A in FIG. Judgment of equivalence and comparison of the lower 1 bit of the gradation counter and the lower 1 bit of the print data of the heating resistor 0 are performed.
[0027]
Here, print data, as described above, if the upper 1 bit> lower one bit "1", and outputs "0" otherwise. In addition, if the upper 1 bit = lower 1 bit of the print data "1", and outputs "0" otherwise. Further, if the upper 1 bit> lower one bit of the gradation counter print data "1", otherwise "0" output.
[0028]
Next, at the timing B, the comparison results of the print data of the heating resistor 0 performed during the timing A and the result of the equivalence determination are taken into the corresponding delay circuits 16-18.
[0029]
Next, at timing C, the upper 1 bit of the print data> the upper 1 bit of the gradation counter, or the upper 1 bit of the print data = the upper 1 bit of the gradation counter, and the lower 1 bit of the print data> the gradation counter The value is taken into the delay circuit 21 in accordance with the rule of “1” if it is the lower one bit of “0”, otherwise “0”. Then, this is output as head data to the shift register 1 of the head.
[0030]
When the gradation counter = 3, the head data generation for other heat generating resistor is also similar, the head data generation against heating resistor antibody 1 performs magnitude comparison and equivalence determination at the timing B, the timing of the C The result is taken in, and the head data is taken in and output to the delay circuit 21 at the timing D.
[0031]
In addition, the head data generation for the heating resistor 2 is performed by comparing the size and determining the same value at the timing C, capturing the result at the timing D, and capturing and outputting the head data to the delay circuit 21 at the timing E. . Further, the head data generation for the heating resistor 3 is performed by comparing the size and determining the same value at the timing D, capturing the result at the timing E, and capturing and outputting the head data to the delay circuit 21 at the timing F. .
[0032]
When the above processing is performed, when the gradation count data is 3, the generation of all head data is completed. Next, a latch pulse is output to latch the data in the shift register. Only the heating resistor whose latch value is “1” is energized at the timing when the strobe is “1”.
[0033]
Similarly, head data is generated, latched, and the heating resistor is energized at each value of the gradation count data. By performing such processing, high-speed transfer processing can be performed.
[0034]
In general, in the invention according to the first embodiment, when N>n> = 1 in a thermal printer that performs 2 N gradation printing, head data is generated in stage 1:
(1) Size comparison of upper (Nn) bit of print data and upper (Nn) bit of gradation counter (2) Upper (Nn) bit of print data and upper (N-) of gradation counter n) Bit equivalence determination (3) Size comparison of lower nbit of print data and lower nbit of gradation counter Stage 2: From the result of stage 1, higher order (N−n) bit of print data> higher order of gradation counter ( If Nn) bit or upper (Nn) bit of print data = upper (Nn) bit of gradation counter and lower nbit of print data> lower nbit of gradation counter, head data = 1 other than above If configured to perform according to the rules of the head data = 0, by associating each stage of the one stage of the pipeline processing, the circuit operating at a high speed than the conventional can be realized.
[0035]
Although the case where the gradation count data is decremented has been described, the gradation count data may be incremented.
<Second Embodiment>
Next, a second embodiment of the present invention will be described.
[0036]
FIG. 3 is a system configuration diagram of this embodiment. In the figure, the same circuits as those in the first embodiment described above are denoted by the same reference numerals, and the description thereof is omitted. The difference in this example is that the lower 1 bit, which is the output of the upper bit / lower bit separation circuit 11, is output to the comparison circuit 15 and also to the comparison circuit 23, and the upper bit / lower bit separation is also performed. In this configuration, the lower 1 bit, which is the output of the circuit 12, is output to the comparison circuit 15 and also to the comparison circuit 23. In addition, a delay circuit 24 is added in accordance with the addition of the comparison circuit 23, and a logical OR of the outputs of the delay circuits 18 and 24 is output in a new OR gate 25. A specific circuit operation will be described below with reference to the time chart of FIG.
[0037]
First, also in this embodiment, when the gradation count data is 3, the head data generation for the heating resistor 0, the lower the print data of the upper 1 bit and the heating resistor 0 gradation counter at the timing of A 1 magnitude comparison and equivalence determination bit, and the low-order bit of the print data of the lower bit and the heating resistor 0 gradation counter the magnitude comparison and equivalence judgment performed. Respectively if the upper 1 bit> gradation counter upper one bit of the print data "1", it is otherwise "0". Further, if the upper one bit of the upper 1 bit = gradation counter DOO data print data "1", it is otherwise "0".
[0038]
On the other hand, if the lower 1 bit of the print data> the lower 1 bit of the gradation count data, “1”, otherwise “0”. Further, if the lowest bit of the lower 1 bit = gradation count data print data "1", it is otherwise "0".
[0039]
Then, at the timing of B, taking the results of the magnitude comparison and equivalence judgment for the print data of the heating resistor 0 made during the timing of the A delay circuit 16 to 18, and 24. Then, in the timing and C, the upper one bit of the upper 1 bit> gradation count data print data or the upper one bit of the upper 1 bit = gradation count data print data, and low-order bit of the print data > low-order bit of the gray scale count data, or upper 1 bit of the upper 1 bit = gradation count data print data, and if the lower 1 bit = lower one bit of the gray scale count data print data "1" Otherwise, the value is taken into the delay circuit 21 in accordance with the rule of “0”. Then, the signal output from the delay circuit 21 is output as head data.
[0040]
The head data generation process for the other heating resistors is the same. For the heating resistor 1, the size comparison / equivalence determination is performed at the timing B, the result is taken in at the timing C, and the timing at the timing D is determined. The head data is fetched into DFF5 and output. For the heating resistor 2, the size comparison / equivalence determination is performed at timing C, the result is captured at timing D, and the head data is captured and output to the delay circuit 21 at timing E. For the heating resistor 3, the size comparison / equivalence determination is performed at the timing D, and the result is captured at the timing E. The head data is fetched and output to the delay circuit 21 at the timing F.
[0041]
Similarly, head data is generated for each value of the gradation count data, and power is supplied to the latch and the heating resistor. Therefore, it is possible to realize a circuit that operates at higher speed than before by repeating the circuit processing according to this rule.
[0042]
In the above embodiment, although carried out by dividing the magnitude comparison and equivalence judgment of the lower one bit of print data and the gradation count data, Back, lower bits of the lower bits> = gradation counter print data In this case, the result may be output to the delay circuit 21 as “1”, otherwise “0”. For example, FIG. 5 is an example of this.
<Third Embodiment>
Next, a third embodiment of the present invention will be described.
[0043]
FIG. 6 is a system configuration diagram of this embodiment. In the figure, the same circuits as those in the first or second embodiment described above are denoted by the same reference numerals, and description of the configuration is omitted. The difference in this example is that the comparison process of the comparison circuit 13 ′ is opposite to that described above, and the comparison process of the comparison circuit 15 ′ is also opposite to that described above. Further, an inverter 27 is connected after the OR gate 20.
[0044]
With this configuration, the logic is reversed from that of the first embodiment described above, and high-speed head data can be output to the shift register 1 according to the time chart shown in FIG.
[0045]
【The invention's effect】
As described above, according to the present invention, the head data can be generated at high speed and supplied to the printer apparatus, so that high-speed print processing is possible.
[Brief description of the drawings]
FIG. 1 is a system configuration diagram illustrating a first embodiment.
FIG. 2 is a time chart illustrating the first embodiment.
FIG. 3 is a system configuration diagram illustrating a second embodiment.
FIG. 4 is a time chart for explaining a second embodiment.
FIG. 5 is a system configuration diagram illustrating a modification of the second embodiment.
FIG. 6 is a system configuration diagram illustrating a third embodiment.
FIG. 7 is a time chart for explaining a third embodiment.
FIG. 8 is a diagram illustrating a circuit configuration of a thermal head.
FIG. 9 is a circuit diagram illustrating a conventional head data generation circuit.
FIG. 10 is a time chart illustrating the circuit operation of a conventional head data generation circuit.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 10 Head data generation circuit 11, 12 Upper bit / lower bit separation circuit 13-15 Comparison circuit 16-18 Delay circuit 19 AND gate (AND gate)
20 OR (OR) gate 21 Delay circuit 23 Comparison circuit 24 Delay circuit 25 OR (OR) gate 27 Inverter

Claims (3)

印刷する画像の階調を表す画像データである印刷データを上位半分のビットと下位半分のビットに分離する第1の分離手段と、
前記印刷データと同じビット数を有し順次歩進される階調カウントデータを上位半分のビットと下位半分のビットに分離する第2の分離手段と、
前記第1の分離手段で分離した印刷データの上位半分のビットと前記第2の分離手段で分離した階調カウントデータの上位半分のビットとを比較する第1の比較手段と、
前記第1の分離手段で分離した印刷データの下位半分のビットと前記第2の分離手段で分離した階調カウントデータの下位半分のビットとを比較する第2の比較手段と、
前記第1、第2の比較手段によって比較した比較結果から、印刷ヘッドの各発熱抵抗体の通電を制御するヘッドデータを生成するデータ生成手段と、を有することを特徴とするサーマルプリンタのデータ生成装置。
First separation means for separating print data, which is image data representing the gradation of an image to be printed, into upper half bits and lower half bits;
Second separation means for separating gradation count data that has the same number of bits as the print data and that is sequentially incremented into upper half bits and lower half bits;
A first comparison means for comparing the upper half of the bits of the gradation count data separated by the first and upper half of the bits of the print data separated by the separating means and the second separation means,
Second comparison means for comparing the low half of bits of gradation count data separated by said first and lower half of the bits of the print data separated by the separating means the second separating means,
Data generation means for a thermal printer, comprising: data generation means for generating head data for controlling energization of each heating resistor of the print head from the comparison result compared by the first and second comparison means apparatus.
2N階調印刷を行うプリンタのデータ生成装置において、
印刷する画像の階調を表す画像データである印刷データを上位(N−n)ビットと下位nビットに分離する第1の分離手段と、
前記印刷データと同じビット数を有し順次歩進される階調カウントデータを上位(N−n)ビットと下位nビットに分離する第2の分離手段と、
前記第1の分離手段で分離した前記印刷データの上位( N −n)ビットと前記第2の分離手段で分離した前記階調カウントデータの上位( N −n)ビットとを比較する第1の比較手段と、
前記第1の分離手段で分離した前記印刷データの上位(N−n)ビットと前記第2の分離手段で分離した前記階調カウントデータの上位( N −n)ビットとの同値判定を行う同値判定手段と、
前記第1の分離手段で分離した前記印刷データの下位nビットと前記第2の分離手段で分離した前記階調カウントデータの下位nビットとを比較する第2の比較手段と、
前記第1、第2の比較手段によって比較した比較結果及び前記同値判定手段による判定結果から、印刷ヘッドの各発熱抵抗体の通電を制御するヘッドデータを生成するデータ生成手段と、
を有することを特徴とするプリンタのデータ生成装置。
(但し、N、nは、N>n>=1を満足する数値)
In a printer data generation device that performs 2 N gradation printing,
First separation means for separating print data, which is image data representing the gradation of an image to be printed, into upper (N−n) bits and lower n bits;
Second separation means for separating gradation count data having the same number of bits as the print data and sequentially incremented into upper (N−n) bits and lower n bits;
It said first upper of the print data separated by the separating means (N -n) of the grayscale count data separated by the bit and the second separating means upper (N -n) first comparing the bit A comparison means;
Equivalence performing equivalence determination that said first higher of the print data separated by the separating means (N-n) of the gray-scale count data separated by the bit and the second separating means upper (N -n) bits A determination means;
Second comparison means for comparing the lower n bits of the grayscale count data separated by said low-order n bits of the print data separated by the first separating means the second separating means,
Data generation means for generating head data for controlling energization of each heating resistor of the print head from the comparison result of the first and second comparison means and the determination result of the equivalence determination means;
A data generation apparatus for a printer, comprising:
(However, N and n are numerical values satisfying N>n> = 1)
前記データ生成手段は、前記第1の比較手段の比較結果、及び前記同値判定手段の判定結果により、前記印刷データの上位( N −n)ビットが前記階調カウントデータの上位( N −n)ビットより大きい、もしくは、前記印刷データの上位( N −n)ビットと前記階調カウントデータの上位( N −n)ビットとが等しく前記印刷データの下位nビットが前記階調カウントデータの下位nビットより大きいと識別された場合、前記ヘッドの発熱抵抗体を制御するデータとしてオン駆動データを出力することを特徴とする請求項2記載のプリンタのデータ生成装置。Said data generating means, the comparison result of the first comparison means, and the determination result of the equivalence judgment unit, the upper print data (N -n) upper bits the tone count data (N -n) bit larger, or higher (n -n) bits before and Machinery tone count data of the upper (n -n) bits and is lower n bits are the gradation of equal rather the print data before Kishirushi printing data 3. The printer data generation apparatus according to claim 2, wherein when the count data is identified to be larger than the lower n bits , on-drive data is output as data for controlling the heating resistor of the head.
JP31204899A 1999-11-02 1999-11-02 Thermal printer data generator Expired - Fee Related JP3772611B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31204899A JP3772611B2 (en) 1999-11-02 1999-11-02 Thermal printer data generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31204899A JP3772611B2 (en) 1999-11-02 1999-11-02 Thermal printer data generator

Publications (3)

Publication Number Publication Date
JP2001130043A JP2001130043A (en) 2001-05-15
JP2001130043A5 JP2001130043A5 (en) 2004-11-25
JP3772611B2 true JP3772611B2 (en) 2006-05-10

Family

ID=18024602

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31204899A Expired - Fee Related JP3772611B2 (en) 1999-11-02 1999-11-02 Thermal printer data generator

Country Status (1)

Country Link
JP (1) JP3772611B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05220996A (en) * 1992-02-14 1993-08-31 Dainippon Printing Co Ltd Image recording method and apparatus
JPH07156434A (en) * 1993-12-07 1995-06-20 Canon Inc Printing equipment
JPH08197770A (en) * 1995-01-25 1996-08-06 Matsushita Electric Ind Co Ltd Thermal printer

Also Published As

Publication number Publication date
JP2001130043A (en) 2001-05-15

Similar Documents

Publication Publication Date Title
CN1121606C (en) Thermal sensitive printer and hot control method
US4989224A (en) Coincidence circuit
JPS62164568A (en) Temperature correction system for thermal head
JP2001130043A (en) Thermal printer data generator
JP2698224B2 (en) Thermal head
JPH071758A (en) Thermal transfer head having line buffer, thermal transfer recording apparatus and method
JP4046816B2 (en) Thermal head drive device
KR100245800B1 (en) Thermal head controller of color printer
KR100250623B1 (en) Thermal head driving apparatus of color printer
JP2000185423A (en) Integrated circuit for driving thermal head
JP3323138B2 (en) Integrated circuit for driving thermal head
JPH05254172A (en) Ic for driving thermal head
JPS6076360A (en) Heat-sensitive recording device
JP3684881B2 (en) Image recording device
JPH07266600A (en) Thermal head drive circuit, thermal head and printer
JP2000127475A (en) Thermal head drive control device, drive control method, and computer-readable recording medium storing a program for causing a computer to execute the method
JPH0985979A (en) Thermal printing method and thermal printer
JPS63264375A (en) Preheating system thermal head
JP2000198188A (en) Ink jet recording device
JP2563014B2 (en) Thermal head
JPH09187978A (en) Heat generation method of thermal transfer head and heat generation controller adapted to the method
JP2000246943A (en) Thermal head split drive method
JPH07148964A (en) Thermal head
JP2001310495A (en) Printing apparatus and control method thereof
JPH02147343A (en) Video printer

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20031210

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20031210

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051012

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051018

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051216

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060206

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090224

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100224

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110224

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110224

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120224

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120224

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130224

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130224

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140224

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees