JP3302146B2 - Printer device and head drive circuit thereof - Google Patents

Printer device and head drive circuit thereof

Info

Publication number
JP3302146B2
JP3302146B2 JP32185493A JP32185493A JP3302146B2 JP 3302146 B2 JP3302146 B2 JP 3302146B2 JP 32185493 A JP32185493 A JP 32185493A JP 32185493 A JP32185493 A JP 32185493A JP 3302146 B2 JP3302146 B2 JP 3302146B2
Authority
JP
Japan
Prior art keywords
data
head
counter
register
print
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
JP32185493A
Other languages
Japanese (ja)
Other versions
JPH07171989A (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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP32185493A priority Critical patent/JP3302146B2/en
Publication of JPH07171989A publication Critical patent/JPH07171989A/en
Application granted granted Critical
Publication of JP3302146B2 publication Critical patent/JP3302146B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はプリンタ装置及びそのヘ
ッド駆動回路に関し、特に複数の記録要素を有するプリ
ントヘッドを駆動して画像をプリントするプリンタ装置
及びその駆動回路に関するものである。
The present invention relates to an head drive circuit of the printer and its printer apparatus for printing an image by driving a print head, in particular having a plurality of recording elements
And to a drive circuit for it.

【0002】[0002]

【従来の技術】ライン型のサーマルヘッドを有し、この
サーマルヘッドの発熱素子を複数のブロックに分割し
て、各ブロックごとに通電して記録を行うことにより、
プリンタ装置の電源容量の増大を抑えたサーマルプリン
タが知られている。このようなサーマルヘッドの駆動方
式では、1ラインで記録されるドット数にかかわらず常
にサーマルヘッドの発熱素子がブロックに分割されて記
録が行われるので、記録に要する時間が増大するといっ
た問題がある。そこで、電源容量に基づいて1ラインで
最大同時に通電できる発熱素子数を求め、この素子数に
相当する数のドットデータがサーマルヘッドに転送され
た時点で、その分のデータを記録し、次の記録タイミン
グで残りのデータのうちの同時に通電可能な素子に相当
する分を記録するというようにしている。これにより、
1ラインの記録ドット数が多い時は、サーマルヘッドの
発熱素子が複数回に分けて通電され、1ラインの記録ド
ット数が少ない時は、1回の通電により1ラインが記録
される。
2. Description of the Related Art A thermal head of a line type is provided, and a heating element of the thermal head is divided into a plurality of blocks, and recording is performed by energizing each block.
2. Description of the Related Art A thermal printer that suppresses an increase in the power supply capacity of a printer device is known. In such a thermal head driving method, since the heating elements of the thermal head are always divided into blocks and recording is performed regardless of the number of dots recorded in one line, there is a problem that the time required for recording increases. . Therefore, the number of heating elements that can be energized at the same time in one line is obtained based on the power supply capacity, and when the number of dot data corresponding to the number of elements is transferred to the thermal head, the corresponding data is recorded, and the next data is recorded. At the recording timing, of the remaining data, the portion corresponding to the elements that can be energized simultaneously is recorded. This allows
When the number of recording dots in one line is large, the heating element of the thermal head is energized in a plurality of times, and when the number of recording dots in one line is small, one line is recorded by one energization.

【0003】[0003]

【発明が解決しようとする課題】通常、このような処理
を行うために、プリンタ装置の制御部とサーマルヘッド
との間にシーケンサと呼ばれる回路を設け、この回路に
より前述した制御を行っている。しかし、このシーケン
サによる制御では、1ラインで同時に通電可能な素子数
を変更したい場合には、その変更が難しく、また記録に
要する時間を短縮するために、そのシーケンサは制御部
より転送されるデータの受信と解析、ドット数の計数、
サーマルヘッドへのデータ転送、更には発熱素子への通
電時間の制御等を並行して実行しなければならないた
め、その負担が大きなものとなっていた。
Usually, in order to perform such processing, a circuit called a sequencer is provided between the control unit of the printer and the thermal head, and the above-described control is performed by this circuit. However, in the control by the sequencer, when it is desired to change the number of elements that can be energized simultaneously in one line, it is difficult to change the number. In order to reduce the time required for recording, the sequencer controls Receiving and analyzing, counting the number of dots,
Since the data transfer to the thermal head and the control of the energization time to the heating element and the like must be performed in parallel, the burden has been heavy.

【0004】本発明は上記従来例に鑑みてなされたもの
で、記録すべきドット数が同時に駆動可能な記録要素の
数を超えた場合であっても、そのドットデータを記録可
能なドット数ごとに自動的に分割して高速に記録させる
ことができるプリンタ装置のヘッド駆動回路を提供する
ことを目的とする。
The present invention has been made in view of the above-mentioned conventional example, and even if the number of dots to be printed exceeds the number of printable elements that can be simultaneously driven, the dot data is stored for each of the printable dots. It is an object of the present invention to provide a head drive circuit of a printer device which can automatically divide a print job into a high-speed print.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に本発明のヘッド駆動回路は以下のような構成を備え
る。即ち、複数の記録要素を有するプリントヘッドを用
いて被記録媒体に画像をプリントするプリンタ装置のヘ
ッド駆動回路であって、前記プリントヘッドに出力する
ためのデータを記憶する記憶手段と、同時に駆動可能な
前記プリントヘッドの記録要素の数を保持する第1レジ
スタと、前記プリントヘッドの記録に用いられる記録要
素の総数を記憶する第2レジスタと、前記記憶手段より
前記プリントヘッドに供給される黒ドット数を計数する
黒ドットカウンタと、前記プリントヘッドに出力するデ
ータのドット数を計数するためのドットカウンタと、
記プリントヘッドに出力するデータの同期クロック数を
計数するための分割駆動カウンタと、 前記黒ドットカウ
ンタの計数値が前記第1レジスタに保持されている値を
超えた場合に、前記ドットカウンタに対して計数を停止
するイネーブル信号を供給すると共に、前記分割駆動カ
ウンタに対して計数を継続するイネーブル信号を出力す
ることで、前記プリントヘッドに供給したデータの総数
が前記第2レジスタに記憶された前記記録要素の総数に
満たない場合に空データを発生して前記プリントヘッド
データ保持手段に供給してプリントヘッドに記録動作
を行わせる制御手段とを有し、 前記ドットカウンタが途
中で停止されている場合、当該ドットカウンタと前記分
割駆動カウンタとを用いて先に未転送であったデータの
転送を行い次の記録動作を行うことを特徴とする。
In order to achieve the above object, a head drive circuit according to the present invention has the following arrangement. That is, a head drive circuit of a printer device that prints an image on a recording medium using a print head having a plurality of recording elements, and can be simultaneously driven with storage means for storing data to be output to the print head. A first register for storing the number of recording elements of the print head, a second register for storing the total number of recording elements used for recording of the print head, and a black dot supplied to the print head from the storage means. Count the number
A black dot counter and data to be output to the print head
And the dot counter for counting the number of dots over data, before
The number of synchronous clocks for data output to the printhead
A division drive counter for counting, and the black dot cow
Counter value is the value held in the first register.
Stop counting for the dot counter when exceeding
And an enable signal for the divided drive.
Output an enable signal to the counter to continue counting.
When the total number of data supplied to the print head is less than the total number of recording elements stored in the second register, empty data is generated and supplied to the data holding means of the print head for printing. Recording operation on head
Control means for executing the dot counter.
If the dot counter is stopped in the
Using the split drive counter and the
The transfer is performed and the next recording operation is performed .

【0006】[0006]

【作用】以上の構成において、プリントヘッドに供給さ
れる黒ドット数を計数する黒ドットカウンタと、プリン
トヘッドに出力するデータのドット数を計数するための
ドットカウンタと、プリントヘッドに出力するデータの
同期クロック数を計数するための分割駆動カウンタとを
有し、黒ドットカウンタの計数値が、同時に駆動可能な
プリントヘッドの記録要素の数を超えた場合に、そのド
ットカウンタに対して計数を停止するイネーブル信号を
供給すると共に、分割駆動カウンタに対して計数を継続
するイネーブル信号を出力することで、プリントヘッド
に供給したデータの総数が第2レジスタに記憶された記
録要素の総数に満たない場合に空データを発生してプリ
ントヘッドのデータ保持手段に供給してプリントヘッド
に記録動作を行わせる。更に、ドットカウンタが途中で
停止されている場合、当該ドットカウンタと前記分割駆
動カウンタとを用いて先に未転送であったデータの転送
を行い次の記録動作を行うように動作する。
With the above arrangement, a black dot counter for counting the number of black dots supplied to the print head, a dot counter for counting the number of dots of data to be output to the print head, and a dot counter for counting the number of dots to be output to the print head. A divided drive counter for counting the number of synchronous clocks, and when the count value of the black dot counter exceeds the number of print elements of the print head that can be driven simultaneously, the counting of the dot counter is stopped. When the total number of data supplied to the print head is less than the total number of recording elements stored in the second register, by supplying an enable signal to perform the counting and outputting an enable signal to continue counting to the divided drive counter. Generates empty data and supplies it to the data holding means of the print head to perform a recording operation on the print head. That. Further, when the dot counter is stopped halfway, data that has not been transferred previously is transferred using the dot counter and the divided drive counter, and the next recording operation is performed.

【0007】[0007]

【実施例】【Example】

[実施例1]以下、添付図面を参照して本発明の好適な
実施例を詳細に説明する。
Embodiment 1 Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

【0008】図1は本実施例のサーマルプリンタ装置の
主要部の構成を示すブロック図である。なお、本実施例
では、サーマルヘッドを使用したサーマルプリンタの場
合で説明するが、本発明はこれに限定されるものでな
く、例えば熱転写プリンタや電気熱変換体を有するイン
クジェットプリンタ、或いはその他のプリンタ装置にも
適用できる 図1において、5はサーマルヘッドで、図3にその詳細
を示す。6は制御部であり、システムバス18を介して
主メモリ2、キャラクタジェネレータ(以下CGと呼
ぶ)16、ヘッド駆動制御部17等と接続されている。
その他、不図示の表示制御部、通信制御部、キーボード
等の入力制御部等を有しているが、その部分の説明は省
略する。主メモリ9におけるプリントバッファ10は、
制御部6がプリントデータを展開するための領域であ
り、キャラクタ印字の際にはCG16を参照して、所望
のフォントデータによりビットイメージに展開されて記
憶される。ヘッド駆動制御部17は本実施例の特徴部分
であり、図2を参照して後述するように、プリントバッ
ファ10に記憶されたプリントデータを制御部6から受
取り、サーマルヘッド5を駆動するための各種タイミン
グ信号を生成するとともに、プリントデータをサーマル
ヘッド5に転送している。これら各種タイミング信号
は、図3のサーマルヘッド5のブロック図を参照して後
述する。
FIG. 1 is a block diagram showing the configuration of the main part of the thermal printer of this embodiment. In this embodiment, a case of a thermal printer using a thermal head will be described. However, the present invention is not limited to this. For example, a thermal transfer printer, an inkjet printer having an electrothermal converter, or other printers In FIG. 1, reference numeral 5 denotes a thermal head, and FIG. 3 shows the details thereof. Reference numeral 6 denotes a control unit, which is connected to the main memory 2, a character generator (hereinafter referred to as CG) 16, a head drive control unit 17, and the like via a system bus 18.
In addition, a display control unit, a communication control unit, an input control unit such as a keyboard, etc., which are not shown, are provided. The print buffer 10 in the main memory 9
This is an area for the control unit 6 to develop print data. When printing characters, the control unit 6 refers to the CG 16 and develops and stores a bit image with desired font data. The head drive control unit 17 is a feature of the present embodiment, and receives print data stored in the print buffer 10 from the control unit 6 and drives the thermal head 5 as described later with reference to FIG. Various timing signals are generated, and print data is transferred to the thermal head 5. These various timing signals will be described later with reference to the block diagram of the thermal head 5 in FIG.

【0009】図3は本実施例のサーマルヘッド5の構成
を示すブロック図である。
FIG. 3 is a block diagram showing the configuration of the thermal head 5 of the present embodiment.

【0010】図3において、4は発熱体1(記録要素)
を加熱するためのシリアルデータを入力して保持するシ
フトレジスタであり、シフトクロック14に同期してプ
リントデータ15が入力され、そのパラレル出力がラッ
チ回路3の入力部へそれぞれ接続される。ラッチ回路3
はラッチクロック13によってこれをラッチし、ラッチ
したデータが2入力NAND型のドライバ2の入力へそ
れぞれ接続される。2入力NAND型のドライバ2のも
う一方の入力にはストローブ信号12が共通で接続さ
れ、その出力は発熱体1のそれぞれに接続される。発熱
体1のもう一端は、電源8より電源ライン11に共通し
て接続され、ヘッド駆動電圧が印加されている。よっ
て、いま発熱体1の発熱素子(抵抗体)の数をnとする
と、ドライバ2はn個、ラッチ回路3はnビットのラッ
チ回路、シフトレジスタ4もnビットのシフトレジスタ
となる。
In FIG. 3, reference numeral 4 denotes a heating element 1 (recording element).
Is a shift register that inputs and holds serial data for heating the print data, print data 15 is input in synchronization with a shift clock 14, and its parallel output is connected to the input unit of the latch circuit 3, respectively. Latch circuit 3
Is latched by a latch clock 13, and the latched data is connected to the input of a two-input NAND type driver 2, respectively. A strobe signal 12 is commonly connected to the other input of the two-input NAND type driver 2, and the output is connected to each of the heating elements 1. The other end of the heating element 1 is commonly connected to a power supply line 11 from a power supply 8, and a head drive voltage is applied. Therefore, assuming that the number of heating elements (resistors) of the heating element 1 is n, the driver 2 is n, the latch circuit 3 is an n-bit latch circuit, and the shift register 4 is also an n-bit shift register.

【0011】このように、本実施例のサーマルヘッド5
は発熱体1、ドライバ2、ラッチ回路3、シフトレジス
タ4などが一体となって構成されており、ヘッド駆電源
ライン11、ストローブ信号12、ラッチクロック1
3、シフトクロック14、プリントデータ15などの信
号に基づいて駆動される。
As described above, the thermal head 5 of this embodiment
Is constituted integrally with a heating element 1, a driver 2, a latch circuit 3, a shift register 4, and the like. A head drive power line 11, a strobe signal 12, a latch clock 1
3, driven based on signals such as shift clock 14, print data 15, and the like.

【0012】図2は本実施例のヘッド駆動制御部17の
詳細な構成を示すブロック図である。但し、図中の接続
ラインは主なものだけを記している。
FIG. 2 is a block diagram showing a detailed configuration of the head drive control unit 17 of this embodiment. However, only the main connection lines are shown in the figure.

【0013】図2において、20は分周回路であり、シ
ステムバス18より供給されるクロック34を分周し、
サーマルヘッド5の制御に使用するクロック35を作成
している。このクロック35は、通常数百KHzから数
MHz程度の値をとるが、使用するサーマルヘッド5の
1ラインのドット数によっても変わってくるので、制御
部6の指示により、その分周比が可変できる構成になっ
ている。25はヘッド制御部17の各種タイミングを生
成するタイミング制御部であり、システムバス18とは
START信号54、インタラプト信号43などで接続
されている。21は総ドット数設定レジスタで、1ライ
ンでプリントされるドット数が設定され、そのデータ入
力部には、制御部6よりシステムバス18経由でデータ
ライン36が入力され、その出力37は、ドットカウン
タ22と分割駆動カウンタ23のデータ入力部に接続さ
れている。
In FIG. 2, reference numeral 20 denotes a frequency dividing circuit which divides a frequency of a clock 34 supplied from the system bus 18,
A clock 35 used for controlling the thermal head 5 is created. This clock 35 usually takes a value of about several hundred KHz to several MHz, but it varies depending on the number of dots of one line of the thermal head 5 to be used. It is a configuration that can be done. Reference numeral 25 denotes a timing control unit for generating various timings of the head control unit 17, and is connected to the system bus 18 by a START signal 54, an interrupt signal 43, and the like. Reference numeral 21 denotes a total dot number setting register, in which the number of dots to be printed in one line is set. A data line 36 is input to the data input unit of the control unit 6 via the system bus 18, and the output 37 is a dot It is connected to the data input section of the counter 22 and the division drive counter 23.

【0014】これらドットカウンタ22と分割駆動カウ
ンタ23は共にダウンカウンタであり、レジスタ21の
出力37をロードし、クロック35に同期してダウンカ
ウントを行っている。ドットカウンタ22のカウントイ
ネーブル端子(E)には、タイミング制御部25よりデ
ータイネーブル信号42が供給されている。このドット
カウンタ22のカウント終了信号52はタイミング制御
部25に入力されており、このドットカウンタ22が1
周すると、サーマルヘッド5への1ライン分のデータ転
送が終了したことを示している。また分割駆動カウンタ
23のカウントイネーブル端子(E)には、タイミング
制御部25よりのクロックイネーブル信号41が供給さ
れている。このカウンタ23のカウント終了信号53
は、タイミング制御部25に入力されており、サーマル
ヘッド5の発熱素子をN分割して駆動する時には、この
カウント終了信号53がN回発生し、このカウンタがN
周することになる。24はドットカウンタ22のカウン
ト値38と分割駆動カウンタ23とのカウント値39を
比較する比較器であり、一致信号40をタイミング制御
部25に出力している。
The dot counter 22 and the division drive counter 23 are both down counters, and load the output 37 of the register 21 and count down in synchronization with the clock 35. A data enable signal 42 is supplied from the timing control unit 25 to the count enable terminal (E) of the dot counter 22. The count end signal 52 of the dot counter 22 is input to the timing controller 25, and the dot counter 22
This indicates that the data transfer for one line to the thermal head 5 has been completed. A clock enable signal 41 from the timing control unit 25 is supplied to a count enable terminal (E) of the divided drive counter 23. The count end signal 53 of this counter 23
Is input to the timing control unit 25, and when the heating element of the thermal head 5 is driven by dividing into N, the count end signal 53 is generated N times and the counter is set to N.
Will go around. A comparator 24 compares a count value 38 of the dot counter 22 with a count value 39 of the divided drive counter 23, and outputs a coincidence signal 40 to the timing control unit 25.

【0015】この構成により、ドットカウンタ22はサ
ーマルヘッド5に転送されたドット数を正確に計数し、
分割駆動カウンタ23は黒ドット数が1ラインにおける
同時ヒート数を越えた時(黒カウンタ27の出力により
判定)に、残りのデータを空データ(データ0)でサー
マルヘッド5に転送する分も計数している。こうして最
初に同時ヒートできる黒ドット分をサーマルヘッド5に
転送してラッチ回路3にラッチした後、分割駆動カウン
タ23は再び総ドット数設定レジスタ21に設定されて
いるドット数にセットされる。そして分割駆動カウンタ
23だけ(イネーブル信号42がオフ)がクロック35
でカウントダウンされ、ドットカウンタ22の計数値と
等しくなったことが比較器24で検知されると、データ
イネーブル信号42をオンにして、残りのデータをサー
マルヘッド5に転送する。
With this configuration, the dot counter 22 accurately counts the number of dots transferred to the thermal head 5,
When the number of black dots exceeds the number of simultaneous heats in one line (determined by the output of the black counter 27), the divided drive counter 23 also counts the amount of the remaining data transferred to the thermal head 5 as empty data (data 0). are doing. After the first black dots that can be simultaneously heated are transferred to the thermal head 5 and latched by the latch circuit 3, the division drive counter 23 is set again to the number of dots set in the total dot number setting register 21. Only the division drive counter 23 (the enable signal 42 is off) is the clock 35
When the comparator 24 detects that the count value has become equal to the count value of the dot counter 22, the data enable signal 42 is turned on and the remaining data is transferred to the thermal head 5.

【0016】28はデータ入力レジスタで、サーマルヘ
ッド5へ転送するプリントデータを入力して保持してい
る。そのデータ入力部には制御部6よりシステムバス1
8経由でデータ45が入力されており、このレジスタ2
8の出力48はパラレル・シリアル(P−S)変換器2
9のパラレル入力部に接続される。P−S変換器29
は、そのパラレル入力をクロック35に同期してシリア
ルデータ49として出力するが、このP−S変換器29
のシフトイネーブル端子(E)にはタイミング制御部2
5よりデータイネーブル信号42が入力されており、こ
の信号がハイレベルの時のみP−S変換を実行する。
Reference numeral 28 denotes a data input register which inputs and holds print data to be transferred to the thermal head 5. The control unit 6 sends a system bus 1 to the data input unit.
8, data 45 is input to this register 2.
8 is a parallel / serial (PS) converter 2
9 parallel input units. PS converter 29
Outputs the parallel input as serial data 49 in synchronization with the clock 35. This PS converter 29
The timing control unit 2 is connected to the shift enable terminal (E) of
5, the data enable signal 42 is inputted, and the PS conversion is executed only when this signal is at the high level.

【0017】26は同時ヒート数設定レジスタで、サー
マルヘッド5の同時に通電可能な発熱体1の数が設定さ
れている。そのデータ入力部には、制御部6よりシステ
ムバス18経由でデータ44が入力され、その出力46
は黒カウンタ27のデータ入力部に接続される。この黒
カウンタ27はダウンカウンタであり、レジスタ26の
出力46をロードし、クロック35に同期してダウンカ
ウントを行う。黒カウンタ27のカウントイネーブル端
子(E)には、P−S変換器29よりシリアルデータ4
9が供給されており、プリントデータ49がハイレベル
の時、即ち、黒データの時にクロック35をカウントす
ることにより、黒ドット数を計数している。この黒カウ
ンタ27が1周すると、1ラインの黒ドット数が同時ヒ
ート可能な黒ドット数を越えたことを示し、これにより
カウント終了信号47がタイミング制御部25に出力さ
れる。このカウント終了信号47が出力されると、タイ
ミング制御部25はデータイネーブル信号42をオフ、
カウントイネーブル信号41をオンにしたままで、シフ
トクロック14をシフトレジスタ4の段数分出力する。
こうしてサーマルヘッド5のシフトレジスタ4には、最
大同時ヒート可能な黒ドット分のプリントデータと、残
りの空きデータとからなる1ブロック分のプリントデー
タがセットされる。なお、この黒カウンタ27には、1
ラインのプリント終了時に、同時ヒート数設定レジスタ
26にセットされている値がプリセットされる。
Reference numeral 26 denotes a simultaneous heat number setting register in which the number of heat generating elements 1 of the thermal head 5 which can be energized simultaneously is set. The data input unit receives data 44 from the control unit 6 via the system bus 18, and outputs the data 46.
Is connected to the data input section of the black counter 27. The black counter 27 is a down counter, loads the output 46 of the register 26, and counts down in synchronization with the clock 35. The serial enable signal from the PS converter 29 is supplied to the count enable terminal (E) of the black counter 27.
9 is supplied, and the number of black dots is counted by counting the clock 35 when the print data 49 is at a high level, that is, when the print data 49 is black data. When the black counter 27 makes one rotation, it indicates that the number of black dots in one line has exceeded the number of simultaneously heatable black dots, whereby a count end signal 47 is output to the timing control unit 25. When the count end signal 47 is output, the timing controller 25 turns off the data enable signal 42,
The shift clocks 14 are output by the number of stages of the shift register 4 while the count enable signal 41 is kept on.
Thus, in the shift register 4 of the thermal head 5, print data for one block consisting of print data for black dots that can be heated simultaneously and remaining free data is set. The black counter 27 has 1
At the end of line printing, the value set in the simultaneous heat number setting register 26 is preset.

【0018】32はヒート時間設定レジスタで、サーマ
ルヘッド5をヒートする時間を設定しており、そのデー
タ入力部には、制御部6よりシステムバス18経由でデ
ータ50が入力され、その出力51はヒートタイマ33
のデータ入力部に接続される。このヒートタイマ33
は、タイミング制御部25から出力されるラッチクロッ
ク13によりトリガされ、クロック35をタイムベース
として、レジスタ32の出力51で設定された値に応じ
た時間、カウント動作を行なう。このカウント動作の間
に出力されるのがストローブ信号12である。
Reference numeral 32 denotes a heat time setting register which sets the time for heating the thermal head 5. Data 50 is input to the data input portion of the control portion 6 from the control portion 6 via the system bus 18. Heat timer 33
Is connected to the data input section. This heat timer 33
Is triggered by the latch clock 13 output from the timing control unit 25, and performs a counting operation for a time corresponding to the value set by the output 51 of the register 32 using the clock 35 as a time base. The strobe signal 12 is output during this counting operation.

【0019】30は2入力ANDゲートであり、P−S
変換器29より出力されるシリアルデータ49とタイミ
ング制御部25より出力されるデータイネーブル信号4
2との論理積を取り、プリントデータ15として出力す
る。31も同様な2入力ANDゲートであり、分周回路
20より出力されるクロック35とタイミング制御部2
5より出力されるクロックイネーブル信号41との論理
積をとり、シフトクロック14としてサーマルヘッド5
に出力している。
Reference numeral 30 denotes a two-input AND gate, which is a P-S
Serial data 49 output from converter 29 and data enable signal 4 output from timing control unit 25
The logical product of the two is taken and output as print data 15. Reference numeral 31 denotes a similar two-input AND gate, which outputs the clock 35 output from the frequency dividing circuit 20 and the timing control unit 2.
AND with the clock enable signal 41 output from the thermal head 5 as the shift clock 14
Output to

【0020】以上の構成による本発明の第1実施例の動
作を、図4及び図5に示したタイミング図を用いて説明
する。
The operation of the first embodiment of the present invention having the above configuration will be described with reference to the timing charts shown in FIGS.

【0021】図4において、図4(a)は分周回路20
の出力クロック35を示し、図4(b)はP−S変換器
29のシリアル出力49を示している。図4(g)は、
制御部6からデータ入力レジスタ28への書込みタイミ
ングを示している。図4(f)は、このデータ入力レジ
スタ28よりP−S変換器29へデータをロードするロ
ード信号55を示している。ここでオーバーランを防止
するため、制御部6は、データ入力レジスタ28よりP
−S変換器29へデータがロードされるまで、データ入
力レジスタ28へ次のデータを書込まない。また、この
ロード信号55は通常、P−S変換器29のシリアル出
力49の最終ビットが出力されるのに同期して発生する
が、制御部6によるデータ入力レジスタ28へのデータ
の書込みが間に合わず、シリアルデータ49が最終ビッ
トまで出力してしまった場合(タイミングT1)には、
イネーブル信号41と42が共にロウレベルになる。そ
して、図4(g)の401で示された書込み信号45を
受けて402で示すロード信号が発生するまで、これら
クロックイネーブル信号41(図4(c))とデータイ
ネーブル信号42(図4(d))とが共にロウレベルに
保たれる。これにより、ドットカウンタ22と分割駆動
カウンタ23とはカウント動作を停止し、サーマルヘッ
ド5へのシフトクロック14(図4(e))はANDゲ
ート31によりロウレベルに保たれる。即ち、制御部6
によるデータ入力レジスタ28へのプリントデータの書
込みが行われない場合、ヘッド駆動制御部17の動作は
完全に停止することになる。
FIG. 4A shows a frequency dividing circuit 20.
FIG. 4B shows a serial output 49 of the PS converter 29. FIG. 4 (g)
The timing of writing from the control unit 6 to the data input register 28 is shown. FIG. 4F shows a load signal 55 for loading data from the data input register 28 to the PS converter 29. Here, in order to prevent overrun, the control unit 6 sends the P
Until the data is loaded into the -S converter 29, the next data is not written to the data input register 28. The load signal 55 is normally generated in synchronization with the output of the last bit of the serial output 49 of the PS converter 29. However, the writing of data to the data input register 28 by the control unit 6 is delayed. When the serial data 49 has been output up to the last bit (timing T1),
Both the enable signals 41 and 42 become low level. Then, the clock enable signal 41 (FIG. 4C) and the data enable signal 42 (FIG. 4C) are received until a load signal 402 is generated in response to the write signal 45 indicated by 401 in FIG. d) and are both kept at the low level. As a result, the dot counter 22 and the division drive counter 23 stop counting, and the shift clock 14 (FIG. 4E) to the thermal head 5 is kept at the low level by the AND gate 31. That is, the control unit 6
When the print data is not written into the data input register 28 by the above operation, the operation of the head drive control unit 17 is completely stopped.

【0022】図5は1ラインの記録を、サーマルヘッド
5の発熱素子1を3分割して駆動することにより行なう
タイミング図である。
FIG. 5 is a timing chart in which one-line recording is performed by driving the heating element 1 of the thermal head 5 in three parts.

【0023】図5において、(a)は制御部6からのS
TART信号54を示し、この信号に基づいてヘッド駆
動制御部17の動作が開始する。よってこれに先立ち、
制御部6により、分周回路20の分周比、総ドット数設
定レジスタ21、同時ヒート数設定レジスタ26、ヒー
ト時間設定レジスタ32などの初期値が設定され、各初
期値はドットカウンタ22、分割駆動カウンタ23、黒
カウンタ27、ヒートタイマ33などに初期ロードされ
る。
In FIG. 5, (a) shows S from the control unit 6.
A TART signal 54 is shown, and the operation of the head drive control unit 17 starts based on this signal. So prior to this,
The control unit 6 sets the frequency division ratio of the frequency dividing circuit 20, the initial value of the total dot number setting register 21, the simultaneous heat number setting register 26, the heat time setting register 32, and the like. It is initially loaded into the drive counter 23, the black counter 27, the heat timer 33 and the like.

【0024】START信号54を受け、データ入力レ
ジスタ28にプリントデータが書き込まれると、図4に
示したようにP−S変換器29にそのデータがロードさ
れる。そしてシフトクロック14(図5(b))に同期
した、プリントデータ15の転送が開始される。このと
き、黒カウンタ27によりシリアルデータ49の黒ドッ
ト数がカウントされる。こうしてデータ転送が行われ、
同時にヒートできる数分の黒データがサーマルヘッド5
に転送されると、この黒カウンタ27はカウント終了信
号47(図5(c)の501)を発生する。これを受け
てタイミング制御部25は、データイネーブル42をロ
ウレベルにして(図5(e)の502)、ANDゲート
30を閉じてプリントデータ15の出力を禁止する。こ
のときまた、ドットカウンタ22のカウント動作とP−
S変換器29のシフトアウト動作も停止される。
When print data is written into the data input register 28 in response to the START signal 54, the data is loaded into the PS converter 29 as shown in FIG. Then, transfer of the print data 15 synchronized with the shift clock 14 (FIG. 5B) is started. At this time, the number of black dots of the serial data 49 is counted by the black counter 27. Data transfer is performed in this way,
The number of black data that can be heated simultaneously is the thermal head 5
The black counter 27 generates a count end signal 47 (501 in FIG. 5C). In response to this, the timing control unit 25 sets the data enable 42 to low level (502 in FIG. 5E), closes the AND gate 30, and inhibits the output of the print data 15. At this time, the counting operation of the dot counter 22 and P-
The shift-out operation of the S converter 29 is also stopped.

【0025】このとき、分割駆動カウンタ23はイネー
ブル状態にあってクロック35によりカウントダウンさ
れ、ドットカウンタ22のカウント動作が停止するの
で、両カウンタの計数値は不一致となる。これにより比
較器24より一致信号40が出力されなくなる(図5
(k)の503)。但し、この時はシフトクロック14
の出力が停止されないため、空データがサーマルヘッド
5に転送される状態になる。即ちこの状態は、既に転送
終了したデータをシフトレジスタ4の所定位置までシフ
トするための動作である。
At this time, the divided drive counter 23 is in an enabled state, is counted down by the clock 35, and stops the counting operation of the dot counter 22, so that the count values of both counters do not match. As a result, the match signal 40 is no longer output from the comparator 24 (FIG. 5).
(K) 503). However, at this time, the shift clock 14
Is not stopped, so that empty data is transferred to the thermal head 5. That is, this state is an operation for shifting data that has already been transferred to a predetermined position of the shift register 4.

【0026】こうして空データの転送が進み、シフトレ
ジスタ4へのデータ転送が終了すると、分割駆動カウン
タ23のカウント終了信号53(図5(f)の504)
が発生する。これを受けて、タイミング制御部25はク
ロックイネーブル信号41をロウレベルとし(図5
(d)の505)、分割駆動カウンタ23のカウント動
作とシフトクロック14(図5(b))の出力とを停止
する。
When the transfer of empty data proceeds and the data transfer to the shift register 4 is completed, the count end signal 53 of the divided drive counter 23 (504 in FIG. 5F).
Occurs. In response to this, the timing controller 25 sets the clock enable signal 41 to low level (see FIG. 5).
(505 of (d)), the counting operation of the divided drive counter 23 and the output of the shift clock 14 (FIG. 5 (b)) are stopped.

【0027】これと同時に、ラッチクロック13をサー
マルヘッド5に出力し、シフトレジスタ4の出力をラッ
チ回路3に取り込む。このラッチ動作が終了するとシフ
トレジスタ4は再び使用可能になるので、タイミング制
御部25はクロックイネーブル信号41をハイレベルと
して(図5(d)の506)、分割駆動カウンタ23の
カウント動作とシフトクロック14の出力とを再開す
る。この時のプリントデータは引き続き空データである
が、データ転送が進んで分割駆動カウンタ23のカウン
ト値が、先程から停止中のドットカウンタ22のカウン
ト値と一致すると、一致信号40が比較器24より出力
される(図5(k)の507)。
At the same time, the latch clock 13 is output to the thermal head 5, and the output of the shift register 4 is taken into the latch circuit 3. When this latch operation is completed, the shift register 4 becomes usable again. Therefore, the timing control unit 25 sets the clock enable signal 41 to the high level (506 in FIG. 5D), and performs the counting operation of the divided drive counter 23 and the shift clock. 14 and restart. The print data at this time is still empty data, but when the data transfer proceeds and the count value of the divided drive counter 23 matches the count value of the dot counter 22 that has been stopped previously, the match signal 40 is output from the comparator 24. It is output (507 in FIG. 5 (k)).

【0028】タイミング制御部25はこの一致信号40
を受けて、データイネーブル信号42を出力し(図5
(e)の508)、ドットカウンタ22のカウントダウ
ン動作と、P−S変換器29のシフトアウト動作、並び
にプリントデータ15の出力とを再開する。このあとは
前述の動作と同様、分割駆動カウンタ23のカウント終
了信号53が発生するまで(図5(f)の509)一連
の動作が進行する。
The timing controller 25 outputs the coincidence signal 40
In response, a data enable signal 42 is output (FIG. 5).
(E) 508), the countdown operation of the dot counter 22, the shift-out operation of the PS converter 29, and the output of the print data 15 are restarted. Thereafter, as in the above-described operation, a series of operations proceeds until the count end signal 53 of the divided drive counter 23 is generated (509 in FIG. 5F).

【0029】一方、ヒートタイマ33はタイミング制御
部25よりラッチクロック13を受けると(図5(i)
の510)ストローブ信号12を出力して(図5(j)
の511)、ラッチ回路3にラッチされているデータに
より、発熱体1のヒートを開始する。このヒートはスト
ローブ信号12が出力されている間だけ行なわれ、スト
ローブ信号12はヒートタイマ33のカウントが終了す
るまで出力される。これでサーマルヘッド5の分割駆動
の1サイクルが終了したことになる。
On the other hand, when the heat timer 33 receives the latch clock 13 from the timing controller 25 (FIG. 5 (i)).
510) The strobe signal 12 is output (FIG. 5 (j)
511), the heating of the heating element 1 is started by the data latched in the latch circuit 3. This heating is performed only while the strobe signal 12 is being output, and the strobe signal 12 is output until the count of the heat timer 33 ends. Thus, one cycle of the divisional driving of the thermal head 5 is completed.

【0030】ここで分割駆動カウンタ23のカウント終
了信号53が発生したときに(図5(f)の509)ス
トローブ信号12が出力中(ハイレベル)であれば、タ
イミング制御部25はストローブ信号12の出力終了
(図5(j)の512)を持ち、ラッチ回路3が使用可
能になってから、ラッチクロック13を出力する(図5
(i)の513)。そして直ちにストローブ信号12を
再びハイレベルにして(図5(j)の514)、発熱体
1の次のヒートを開始する。
Here, if the strobe signal 12 is being output (high level) when the count end signal 53 of the divided drive counter 23 is generated (509 in FIG. 5 (f)), the timing control unit 25 outputs the strobe signal 12 5 (j in FIG. 5 (j)), and outputs the latch clock 13 after the latch circuit 3 becomes usable (FIG. 5 (j)).
(I) 513). Then, the strobe signal 12 is immediately set to the high level again (514 in FIG. 5 (j)), and the next heating of the heating element 1 is started.

【0031】これと同時に、タイミング制御部25はク
ロックイネーブル41を出力し(図5(d)の51
5)、分割駆動カウンタ23のカウント動作とシフトク
ロック14の出力とを再開する。この後もデータ転送中
に一致信号40が発生して(図5(k)の516)、デ
ータイネーブル信号42がハイレベルになり(図5
(e)の517)、空データから実データへの切換が起
こる。前2回のデータ転送サイクルでは、実データの転
送中に黒カウンタ27の終了信号47が発生したが、転
送データ中の黒ドット数が同時に駆動可能な発熱体数l
よりも少ない場合には、その終了信号47が発生せず、
ドットカウンタ22と分割駆動カウンタ23のカウント
終了信号52,53が先に発生する(図5(f)の51
8,(g)の519)。
At the same time, the timing controller 25 outputs the clock enable 41 (51 in FIG. 5D).
5) Restart the count operation of the division drive counter 23 and the output of the shift clock 14. Thereafter, the coincidence signal 40 is generated during the data transfer (516 in FIG. 5 (k)), and the data enable signal 42 becomes high level (FIG. 5 (k)).
(E) 517), switching from empty data to actual data occurs. In the previous two data transfer cycles, the end signal 47 of the black counter 27 was generated during the transfer of the actual data.
If it is less than the end signal 47, the end signal 47 is not generated,
Count end signals 52 and 53 of the dot counter 22 and the division drive counter 23 are generated first (51 in FIG. 5F).
8, (g) 519).

【0032】これを受けて、タイミング制御部25はラ
ッチクロック13を出力しようとする。しかし、この時
も前回と同様に、ストローブ信号12の状態をチェック
し、出力中であればその終了を待ってからラッチクロッ
ク13を出力する(図5(i)の520)。この後のヒ
ートサイクルは前回同様の動作となるのでここでの説明
は省略する。
In response, the timing control section 25 attempts to output the latch clock 13. However, at this time, as in the previous case, the state of the strobe signal 12 is checked, and if the strobe signal 12 is being output, the end thereof is awaited before the latch clock 13 is output (520 in FIG. 5 (i)). Since the subsequent heat cycle operates in the same manner as the previous heat cycle, the description is omitted here.

【0033】さてタイミング制御部25は、ドットカウ
ンタ22のカウント終了信号52(図5(g)の51
9)を受けた後のヒートサイクルが終了すると(図5
(j)の521)、制御部6に対しインタラプト信号4
3を出力する(図5(h))。制御部6はこのインタラ
プト信号43により、1ラインの記録動作が終了したこ
とを把握することができる。この後、通常は、記録用紙
の1ライン分のフィードを行った後、次のラインの記録
に移るのであるが、ここでの説明は省略する。
The timing control unit 25 outputs a count end signal 52 of the dot counter 22 (51 in FIG. 5 (g)).
When the heat cycle after receiving 9) is completed (FIG. 5)
(J) 521), the interrupt signal 4
3 is output (FIG. 5 (h)). The control unit 6 can recognize from the interrupt signal 43 that the recording operation for one line has been completed. After that, usually, one line of the recording paper is fed, and then the process proceeds to the recording of the next line, but the description is omitted here.

【0034】なお、以上では説明しなかったが、図2の
各カウンタ,タイマは、自分自身のカウント終了信号に
より、各々の設定レジスタより設定値をロードするよう
になっている。
Although not described above, each of the counters and timers in FIG. 2 loads a set value from each of the setting registers in response to its own count end signal.

【0035】なお、図5のタイミング図では、黒ドット
数に応じてサーマルヘッド5の発熱素子の数を3つのブ
ロックに分割して記録したが、もし1ラインの黒ドット
数が同時ヒート数に満たない時は、1回の通電により1
ラインの全てがプリントされることは言うまでもない。
In the timing chart of FIG. 5, the number of heating elements of the thermal head 5 is divided into three blocks and recorded according to the number of black dots. If less than 1
It goes without saying that all of the lines are printed.

【0036】このように、本実施例では制御部6が、ヘ
ッド駆動制御部17の各レジスタの初期値を設定してし
まえば、後はプリントデータを転送するのみで、自動的
にしかも高速に、サーマルヘッド5の発熱素子を、同時
ヒートできる発熱素子数に分割駆動して記録することが
可能となる。
As described above, in this embodiment, once the control unit 6 has set the initial values of the respective registers of the head drive control unit 17, only the print data is transferred thereafter, automatically and at high speed. In addition, the heating elements of the thermal head 5 can be dividedly driven to the number of heating elements capable of simultaneously heating and recording can be performed.

【0037】図6は本実施例のプリンタ装置の制御部6
における1ページのプリント処理を示すフローチャート
である。
FIG. 6 shows a control unit 6 of the printer of this embodiment.
9 is a flowchart showing a print process of one page in FIG.

【0038】この処理野開始時点では、記録紙はプリン
ト位置まで搬送されているものとし、まずステップS1
で、総ドット数設定レジスタ21に1ラインの総ドット
数を、分周回路20に分周比を設定し、さらに同時ヒー
ト数設定レジスタ26に、同時に通電可能な発熱素子数
をセットする。次にステップS2に進み、図示しないホ
ストコンピュータ等の外部機器よりデータを受信したか
どうかを調べ、データを受信するとステップS3に進
み、その受信したデータをデータ入力レジスタ28にセ
ットする。次にステップS4で、ヒート時間設定レジス
タ32に、発熱素子1に通電する時間(ストローブ信号
12のパルス幅)をセットし、スタート信号54をタイ
ミング制御部25に出力する。以上の処理でP−S変換
器29が動作を開始し、シフトレジスタ4へのデータ転
送が開始される。
At the start of this processing field, it is assumed that the recording paper has been conveyed to the print position.
Then, the total number of dots of one line is set in the total dot number setting register 21, the frequency division ratio is set in the frequency dividing circuit 20, and the number of heating elements that can be energized simultaneously is set in the simultaneous heat number setting register 26. Next, the process proceeds to step S2, where it is determined whether or not data has been received from an external device such as a host computer (not shown). When the data has been received, the process proceeds to step S3, and the received data is set in the data input register 28. Next, in step S 4, the time for energizing the heating element 1 (the pulse width of the strobe signal 12) is set in the heat time setting register 32, and the start signal 54 is output to the timing control unit 25. With the above processing, the PS converter 29 starts operating, and data transfer to the shift register 4 starts.

【0039】次にステップS5に進み、次のデータをホ
ストコンピュータから受信するまで待ち、受信したなら
ばステップS6に進み、データ入力レジスタ28が空で
書込み可能になるまで待つ。このデータ入力レジスタ2
8が空になることは、1つ前にデータ入力レジスタ28
に書き込んだデータがP−S変換器29にロードされ、
データ入力レジスタ28に次のデータを書き込んでも、
前のデータが破壊されない状態を言う。
Next, the process proceeds to step S5, and waits until the next data is received from the host computer. If received, the process proceeds to step S6, and waits until the data input register 28 is empty and becomes writable. This data input register 2
8 becomes empty immediately before the data input register 28
Is loaded into the PS converter 29,
Even if the next data is written to the data input register 28,
A state in which the previous data is not destroyed.

【0040】こうしてデータ入力レジスタ28が空にな
るとステップS7に進み、ステップS5で受信したデー
タをデータ入力レジスタ28に書込む。次にステップS
8に進み、1ライン分のデータ転送が終了したかどうか
を調べ、終了していない時はステップS5に戻って前述
の処理を繰返す。データ転送が終了していればステップ
S9に進み、インタラプトが発生するのを待つ。このイ
ンタラプトは1ラインのヒート終了時に出力されるイン
タラプト信号43によるものである。
When the data input register 28 becomes empty, the process proceeds to step S7, and the data received in step S5 is written into the data input register 28. Next, step S
The process proceeds to step 8 to check whether the data transfer for one line has been completed. If the data transfer has not been completed, the process returns to step S5 to repeat the above-described processing. If the data transfer has been completed, the process proceeds to step S9, and waits for the occurrence of an interrupt. This interrupt is caused by an interrupt signal 43 output at the end of one line of heat.

【0041】ステップS9でインタラプトが発生し、1
ラインのヒートが終了するとステップS10に進み、所
定量のペーパフィードを行ってステップS11に進む。
ステップS11では、1ページのプリント処理が終了し
たかどうかを判定し、1ページのプリント処理が終了し
ていない時はステップS2に戻り、前述の処理を実行す
る。1ページのプリント処理が終了するとステップS1
2に進み、記録済みの記録紙を排紙して処理を終了す
る。 [第2実施例]前述の第1実施例では、制御部6から、
ヘッド駆動制御部17へ各種データを書込むことによ
り、サーマルヘッド5へのデータ転送処理を行なった
が、この転送をダイレクト・メモリ・アクセス・コント
ローラ(以下DMACと呼ぶ)を用いて行なうことによ
り、さらにより高速のデータ転送が期待できる。この場
合の構成例を図7〜図9で示し、これらの図を参照して
第2実施例を説明する。ただし、以下の説明では第1実
施例との相違点のみを説明する。
In step S9, an interrupt occurs, and 1
When the heating of the line is completed, the process proceeds to step S10, in which a predetermined amount of paper feed is performed, and the process proceeds to step S11.
In step S11, it is determined whether the printing process for one page has been completed. If the printing process for one page has not been completed, the process returns to step S2 to execute the above-described process. When printing of one page is completed, step S1 is performed.
Proceeding to step 2, the recorded recording paper is discharged, and the process is terminated. [Second Embodiment] In the first embodiment, the control unit 6
The data transfer processing to the thermal head 5 was performed by writing various data to the head drive control unit 17, but by performing this transfer using a direct memory access controller (hereinafter referred to as DMAC), Even faster data transfer can be expected. 7 to 9 show configuration examples in this case, and the second embodiment will be described with reference to these drawings. However, in the following description, only differences from the first embodiment will be described.

【0042】図7は本発明の第2実施例のプリンタ装置
の主要部のブロック図である。図7において、第1実施
例と異なる点は、DMAC(DMAコントローラ)70
がシステムバス18に接続されていることにある。
FIG. 7 is a block diagram of a main part of a printer according to a second embodiment of the present invention. 7, the difference from the first embodiment is that a DMAC (DMA controller) 70
Are connected to the system bus 18.

【0043】図8はヘッド制御部172の詳細な構成を
示すブロック図である。但し、図2の構成と共通する部
分は同じ番号で示し、それらの説明を省略する。
FIG. 8 is a block diagram showing a detailed configuration of the head control section 172. However, portions common to the configuration of FIG. 2 are denoted by the same reference numerals, and description thereof will be omitted.

【0044】この第2実施例では、タイミング制御部2
52がDMA要求信号56をシステムバス18に出力
し、このバス18よりのDMA応答信号57を入力して
いる。また、図2に示されたデータ入力レジスタ28が
省略され、データライン45が直接、P−S変換器29
に接続されている。
In the second embodiment, the timing control unit 2
52 outputs a DMA request signal 56 to the system bus 18, and receives a DMA response signal 57 from the bus 18. Also, the data input register 28 shown in FIG. 2 is omitted, and the data line 45 is directly connected to the PS converter 29.
It is connected to the.

【0045】DMAC70によるデータ転送は、前述の
DMA要求信号56とDMA応答信号57とで行なわれ
る。タイミング制御信号252はP−S変換器29が空
の状態のときにはDMA要求信号56をDMAC70に
対して出力する。DMAC70はこれを受けて、制御部
6よりシステムバス18の使用権を得たならば、データ
ライン45にプリントデータを載せてDMA応答信号5
7を返す。この応答信号57により、P−S変換器29
へのパラレルロードが実行されるとともに、タイミング
制御部252はDMA要求信号56を取り下げ、DMA
C70はシステムバス18の使用権を制御部6に返す。
このようにしてDMAによるプリントデータの転送が行
なわれる。但し、これに先立ち、制御部6によってDM
AC70はプリントバッファ10がDMA転送元、P−
S変換器29がDMA転送先となるよう初期設定されて
いなければならない。これは、所謂メモリよりI/Oへ
のDMA転送(Memory to I/O)である。
The data transfer by the DMAC 70 is performed by the DMA request signal 56 and the DMA response signal 57 described above. The timing control signal 252 outputs a DMA request signal 56 to the DMAC 70 when the PS converter 29 is empty. When the DMAC 70 receives the right to use the system bus 18 from the control unit 6, the DMAC 70 puts the print data on the data line 45 and outputs the DMA response signal 5.
Returns 7 The response signal 57 allows the PS converter 29
And the timing control unit 252 withdraws the DMA request signal 56 and
C70 returns the right to use the system bus 18 to the control unit 6.
Thus, the transfer of the print data by the DMA is performed. However, prior to this, the control unit 6
In the AC 70, the print buffer 10 is a DMA transfer source,
The S converter 29 must be initialized so as to be a DMA transfer destination. This is so-called DMA transfer from memory to I / O (Memory to I / O).

【0046】前述の第1実施例と比較すると、制御部6
からのデータ転送が異なるのみであるが、この動作を図
9を参照して詳細に説明する。
As compared with the first embodiment, the control unit 6
This operation will be described in detail with reference to FIG.

【0047】先ず、DMA応答信号57によりP−S変
換器29へデータがロードされる(図9(g)の90
1)と、DMA要求信号56がロウレベルになる。これ
によりシフトクロック14に同期してプリントデータ1
5の転送が開始される。そしてタイミング制御部252
は、P−S変換器29のシフト終了信号(図9(h)の
902)を受けて、DMA要求信号56を出力する(図
9(f))とともに、クロックイネーブル41とデータ
イネーブル42を共にロウレベルに保つ。これにより、
ドットカウンタ22と分割駆動カウンタ23とは共にカ
ウントダウンを停止し、シフトクロック14はANDゲ
ート31により、ロウレベルに保たれる。このときヘッ
ド駆動部制御部172の動作はすべて停止しているが、
この状態はDMA応答信号57によって、DMA要求信
号56の取り下げ、クロックイネーブル41とデータイ
ネーブル42の再出力が発生することで解除される。よ
って、制御部6がシステムバス18を開放するのが遅
れ、DMA応答信号56のレスポンスが遅くなっても
(図9(g)の903)何ら問題はない。
First, data is loaded into the PS converter 29 by the DMA response signal 57 (90 in FIG. 9 (g)).
1), the DMA request signal 56 goes low. Thus, the print data 1 is synchronized with the shift clock 14.
5 is started. And the timing control unit 252
Receives the shift end signal (902 in FIG. 9H) of the PS converter 29, outputs the DMA request signal 56 (FIG. 9F), and sets both the clock enable 41 and the data enable 42 together. Keep low level. This allows
Both the dot counter 22 and the division drive counter 23 stop counting down, and the shift clock 14 is kept at a low level by the AND gate 31. At this time, all the operations of the head drive unit control unit 172 are stopped,
This state is released when the DMA response signal 57 causes the withdrawal of the DMA request signal 56 and the re-output of the clock enable 41 and the data enable 42. Therefore, even if the release of the system bus 18 by the control unit 6 is delayed and the response of the DMA response signal 56 is delayed (903 in FIG. 9G), there is no problem.

【0048】このようにP−S変換終了時に、必ずカウ
ンタ22,23が停止する以外は、図6に示した第1実
施例とほぼ同様の動作をするので以下の説明は省略す
る。
The operation is almost the same as that of the first embodiment shown in FIG. 6 except that the counters 22 and 23 always stop at the end of the PS conversion, so that the following description is omitted.

【0049】なお、通常DMA転送のスピードは、プリ
ントデータのシリアル転送と比べると非常に高速であ
る。このため第2実施例では、第1実施例のデータ入力
レジスタ28を省略したが、これを残したままDMA転
送を行なっても良い。
The speed of the normal DMA transfer is much higher than that of the serial transfer of the print data. For this reason, in the second embodiment, the data input register 28 of the first embodiment is omitted, but the DMA transfer may be performed with the data input register 28 remaining.

【0050】以上述べたように、第2実施例によれば、
制御部6がヘッド駆動制御部172の各レジスタやDM
AC70に対して一度初期設定するだけで、プリントデ
ータの転送を意識する必要もなくなり、自動的にしかも
高速に、サーマルヘッド5の発熱素子を分割して駆動で
きるばかりでなく、制御部6側の負荷の低減もはかれ
る。 [第3実施例]前述の実施例では、同時に駆動可能な発
熱体1の数を固定して考えてきたが、これを変更したい
場合がある。即ち、この同時にヒートできる素子の数
は、通常電源の容量によって決定される。よって、バッ
テリー駆動とACアダプタ駆動の切換が可能な機種で
は、ACアダプタ使用時に、同時ヒート可能な数を殖や
すか、或いはその制約を無くすことが出来る場合があ
る。
As described above, according to the second embodiment,
The control unit 6 controls each register and the DM of the head drive control unit 172.
It is not necessary to be conscious of the transfer of print data only by initializing the AC 70 once, and it is possible to automatically and quickly drive the heating element of the thermal head 5 by dividing the heating element. The load can be reduced. [Third Embodiment] In the above-described embodiment, the number of heating elements 1 that can be driven simultaneously is fixed, but it may be desired to change the number. That is, the number of elements that can be heated simultaneously is usually determined by the capacity of the power supply. Therefore, in a model that can switch between battery drive and AC adapter drive, the number of simultaneous heats can be increased or the restriction can be eliminated when the AC adapter is used.

【0051】以下、図10,図11を参照して本発明の
第3実施例の説明を行なう。
Hereinafter, a third embodiment of the present invention will be described with reference to FIGS.

【0052】図10は第3実施例のプリンタ装置の概略
構成を示すブロック図である。この第3実施例では、図
1の構成に電圧判別回路58が追加され、その判別信号
59がヘッド駆動部173に入力されている。この判別
信号59はバッテリー駆動の時はロウレベルに、ACア
ダプタによる駆動時にはハイレベルの信号を出力するよ
うになっている。この電源判別回路58は、この実施例
では、例えばバッテリー駆動とACアダプタ駆動とを判
別するべきものであるが、公知の手段が多数であるの
で、この回路の詳細な説明は省略する。
FIG. 10 is a block diagram showing a schematic configuration of the printer of the third embodiment. In the third embodiment, a voltage discriminating circuit 58 is added to the configuration of FIG. 1, and a discrimination signal 59 is input to the head driving unit 173. The discrimination signal 59 outputs a low level signal when driven by a battery, and outputs a high level signal when driven by an AC adapter. In this embodiment, the power supply discriminating circuit 58 should discriminate between, for example, battery drive and AC adapter drive. However, since there are many known means, a detailed description of this circuit will be omitted.

【0053】図11は、第3実施例のヘッド駆動部17
3の構成を示すブロック図である。図において、同時ヒ
ート数設定レジスタA26は、バッテリー駆動時の同時
ヒート数を設定するレジスタであり、同時ヒート数設定
レジスタB263はACアダプタ駆動時の同時ヒート数
を設定するレジスタである。両レジスタともに動作開始
前に、制御部6によって初期値が設定されている。これ
ら両レジスタの各々の出力46,463はセレクタ60
に接続されている。このセレクタ60のセレクト端子に
は、電源判別信号59が入力されており、この判別信号
59がロウレベルの時にはレジスタA26の出力46
が、ハイレベルのときにはレジスタB263の出力46
3が選択されて、出力59として出力される。この出力
59が黒カウンタ27のデータ入力端子に入力されてい
る。
FIG. 11 shows a head driving unit 17 according to the third embodiment.
FIG. 3 is a block diagram showing a configuration of No. 3; In the figure, a simultaneous heat number setting register A26 is a register for setting the number of simultaneous heats when the battery is driven, and a simultaneous heat number setting register B263 is a register for setting the number of simultaneous heats when the AC adapter is driven. Before the operation of both registers is started, the control unit 6 sets initial values. The outputs 46 and 463 of each of these registers are connected to the selector 60.
It is connected to the. A power supply determination signal 59 is input to a select terminal of the selector 60. When the determination signal 59 is at a low level, the output 46 of the register A26 is output.
Is high, the output 46 of the register B 263
3 is selected and output as output 59. This output 59 is input to the data input terminal of the black counter 27.

【0054】これによって、バッテリー駆動の際にはレ
ジスタ26の設定値が、ACアダプタ駆動の際にはレジ
スタ263の設定値が選択され、その各々の初期設定値
によって、電源に応じた同時ヒート数が、自動的に切り
替えられる。
Thus, the set value of the register 26 is selected when the battery is driven, and the set value of the register 263 is selected when the AC adapter is driven. Is automatically switched.

【0055】ここで、ACアダプタの電力供給能力が充
分で、サーマルヘッド5の発熱素子の分割駆動の必要が
ない場合には、レジスタ262に1ラインの総ドット数
より大きな値を設定しておけばよい。これにより黒カウ
ンタ27によるカウント終了が発生しなくなるので、サ
ーマルヘッドの発熱素子の分割駆動は起こらない。
Here, when the power supply capability of the AC adapter is sufficient and it is not necessary to drive the heating elements of the thermal head 5 separately, a value larger than the total number of dots in one line can be set in the register 262. I just need. As a result, the end of counting by the black counter 27 does not occur, so that the heating elements of the thermal head are not dividedly driven.

【0056】もちろん前述の実施例と組み合わせること
により、同時ヒート数設定レジスタ26の値を、使用さ
れている電源に応じて制御部6が書き換えることによ
り、同時ヒート数を変更できるようにしても良い。
Of course, in combination with the above embodiment, the number of simultaneous heats may be changed by rewriting the value of the simultaneous heat number setting register 26 by the control unit 6 according to the power supply used. .

【0057】なお、この第3実施例では、電源の種類と
してバッテリーとACアダプタを例に取ったが、容量の
異なるバッテリーを使用する場合、あるいは電源容量の
異なるACアダプタを使用する場合などのほか、3種
類,4種類と電源の種類がある場合にも適用できるのは
もちろんである。
In the third embodiment, a battery and an AC adapter are taken as examples of the type of power supply. However, there are cases where batteries with different capacities are used or AC adapters with different power capacities are used. Needless to say, the present invention can be applied to a case where there are three types, four types and a power source type.

【0058】また、この実施例では第1実施例を基に説
明したが、第2実施例に適用した場合でも同様であるの
は言うまでもない。 [第4実施例]サーマルヘッド5の発熱素子は温度が上
がると抵抗値が上がる。よって、サーマルヘッド5の温
度が高い場合には消費する電流が少なくなるので、同時
ヒートドット数を増やすことが可能になる。また、バッ
テリーは温度が高いほうがその能力が上がるため、やは
り温度が高くなれば、同時ヒートドット数を増やすこと
が可能になる。
Although this embodiment has been described based on the first embodiment, it goes without saying that the same applies to the case where it is applied to the second embodiment. [Fourth Embodiment] The resistance value of the heating element of the thermal head 5 increases as the temperature increases. Therefore, when the temperature of the thermal head 5 is high, the consumed current is reduced, and the number of simultaneous heat dots can be increased. Also, since the higher the temperature of the battery, the higher the capacity, the higher the temperature, the more the number of simultaneous heat dots can be increased.

【0059】よってここでは、温度変化に対応して同時
ヒートドット数を変更する第4実施例について、図1
2,図13を参照して説明する。
Therefore, here, a fourth embodiment in which the number of simultaneous heat dots is changed in response to a temperature change will be described with reference to FIG.
The description will be made with reference to FIG.

【0060】図12は、第4実施例のプリンタ装置の主
要部の構成を示すブロック図で、前述の図面と共通する
部分は同じ番号で示し、それらの説明を省略する。
FIG. 12 is a block diagram showing the structure of the main part of the printer of the fourth embodiment. The parts common to the above-mentioned drawings are designated by the same reference numerals, and their description is omitted.

【0061】この第4実施例では、前述の第1実施例の
図1に温度検知部64、アンプ63、A/D変換器61
が追加されている。温度検知部64はサーミスタ等から
なり、その出力67がアンプ63で増幅され、A/D変
換器61に入力されている。このA/D変換器61の出
力65は、ヘッド駆動部173に入力されている。
In the fourth embodiment, the temperature detector 64, the amplifier 63, and the A / D converter 61 shown in FIG.
Has been added. The temperature detector 64 is composed of a thermistor or the like. The output 67 is amplified by the amplifier 63 and input to the A / D converter 61. The output 65 of the A / D converter 61 is input to the head driving unit 173.

【0062】図13は第4実施例のヘッド駆動部174
の詳細を示すブロック図である。
FIG. 13 shows a head driving unit 174 of the fourth embodiment.
FIG. 4 is a block diagram showing the details of.

【0063】図13において、同時ヒート数設定レジス
タ26の出力46は、加算器68の一方の入力端子に入
力され、加算器68のもう一方の入力端子にはA/D変
換器61のデジタル出力65が入力される。そして加算
器68の加算出力69が、黒カウンタ27のデータ入力
端子に入力されている。
In FIG. 13, the output 46 of the simultaneous heat number setting register 26 is input to one input terminal of an adder 68, and the other input terminal of the adder 68 is connected to the digital output of the A / D converter 61. 65 is input. The addition output 69 of the adder 68 is input to the data input terminal of the black counter 27.

【0064】これによって、温度が変化するとA/D変
換器61のデジタル出力65が変化し、加算器68の加
算出力69も変化することになる。即ち、温度変化に応
じた同時ヒート数の自動切換が可能になる。
Thus, when the temperature changes, the digital output 65 of the A / D converter 61 changes, and the addition output 69 of the adder 68 also changes. That is, the number of simultaneous heats can be automatically switched according to the temperature change.

【0065】ここで、25℃の時を基準に考える。その
ときのA/D変換出力65が“T”であれば、これが加
算器68により自動的に加算されてしまうので、予め制
御部6は同時ヒート数設定レジスタ26に、この値
“T”を減算した初期値を設定しておく。これにより、
温度が25℃の時には、通常のヒートドット数が出力さ
れて黒カウンタ27にセットされ、温度が25℃より上
下した場合にはそれに応じて加算器68の出力が変化し
て、その温度に応じた同時ヒートドット数が実現でき
る。なお、温度変化に応じたデジタル出力65の変化率
については、温度検知部64の種類と、アンプ63のゲ
インを適正にすることで調整可能である。
Here, the case where the temperature is 25 ° C. is considered. If the A / D conversion output 65 at that time is “T”, this is automatically added by the adder 68, so the control unit 6 stores this value “T” in the simultaneous heat number setting register 26 in advance. Set the subtracted initial value. This allows
When the temperature is 25.degree. C., the normal number of heat dots is output and set in the black counter 27. When the temperature rises or falls below 25.degree. C., the output of the adder 68 changes accordingly. The number of simultaneous heat dots can be realized. Note that the rate of change of the digital output 65 according to the temperature change can be adjusted by making the type of the temperature detection unit 64 and the gain of the amplifier 63 appropriate.

【0066】もちろん、この第4実施例のような構成を
取らなくても、制御部6が温度を計測し、前述の第1実
施例,第2実施例において、同時ヒート数設定レジスタ
26の値を書き換えれば、同時ヒート数を変更できる。
しかしながら、本実施例によれば、制御部6の介在なし
に、その変更を行うことができる。また、この実施例で
は、第1実施例に基づいて説明したが、第2実施例の場
合でも同様にして実現できることは言うまでもない。
Needless to say, the controller 6 measures the temperature without taking the configuration as in the fourth embodiment, and in the first and second embodiments, the value of the simultaneous heat number setting register 26 is set. Can be changed to change the number of simultaneous heats.
However, according to the present embodiment, the change can be made without the intervention of the control unit 6. Further, in this embodiment, the description has been given based on the first embodiment, but it goes without saying that the same can be realized in the case of the second embodiment.

【0067】尚、本発明は複数の機器から構成されるシ
ステムに適用しても、1つの機器からなる装置に適用し
ても良い。また、本発明はシステム或は装置に、本発明
を実施するプログラムを供給することによって達成され
る場合にも適用できることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Needless to say, the present invention can also be applied to a case where the present invention is achieved by supplying a program for implementing the present invention to a system or an apparatus.

【0068】以上説明したように本実施例によれば、高
速にサーマルヘッドにプリントデータを転送でき、か
つ、サーマルヘッドの発熱素子の同時に駆動可能な数に
応じて発熱体を分割駆動できる効果がある。
As described above, according to the present embodiment, the print data can be transferred to the thermal head at high speed, and the heating elements can be divided and driven in accordance with the number of simultaneously driving heating elements of the thermal head. is there.

【0069】[0069]

【発明の効果】以上説明したように本願発明によれば、
記録すべきドット数が同時に駆動可能な記録要素の数を
超えた場合であっても、そのドットデータを記録可能な
ドット数ごとに自動的に分割して高速に記録させること
ができるという効果がある。
As described above, according to the present invention,
Even if the number of dots to be printed exceeds the number of print elements that can be driven simultaneously, the effect is that the dot data can be automatically divided for each number of printable dots and printed at high speed. is there.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1実施例のプリンタ装置の主要部の
概略構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of a main part of a printer device according to a first embodiment of the present invention.

【図2】本発明の第1実施例のプリンタ装置におけるヘ
ッド駆動制御部の構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a head drive control unit in the printer device according to the first embodiment of the present invention.

【図3】本実施例のサーマルヘッドの構成を示す回路図
である。
FIG. 3 is a circuit diagram illustrating a configuration of a thermal head according to the present embodiment.

【図4】第1実施例のヘッド駆動制御部の動作を説明す
るためのタイミング図である。
FIG. 4 is a timing chart for explaining the operation of the head drive control unit according to the first embodiment.

【図5】第1実施例のヘッド駆動制御部の分割駆動を説
明するためのタイミング図である。
FIG. 5 is a timing chart for explaining divided driving of the head drive control unit according to the first embodiment.

【図6】本実施例のプリンタ装置の制御部の動作を示す
フローチャートである。
FIG. 6 is a flowchart illustrating an operation of a control unit of the printer device according to the present exemplary embodiment.

【図7】本発明の第2実施例のプリンタ装置の主要部の
概略構成を示すブロック図である。
FIG. 7 is a block diagram illustrating a schematic configuration of a main part of a printer device according to a second embodiment of the present invention.

【図8】第2実施例のヘッド駆動制御部の構成を示すブ
ロック図である。
FIG. 8 is a block diagram illustrating a configuration of a head drive control unit according to a second embodiment.

【図9】第2実施例のヘッド駆動部の動作を説明するた
めのタイミング図である。
FIG. 9 is a timing chart for explaining the operation of the head drive unit of the second embodiment.

【図10】本発明の第3実施例のプリンタ装置の主要部
の概略構成を示すブロック図である。
FIG. 10 is a block diagram illustrating a schematic configuration of a main part of a printer device according to a third embodiment of the present invention.

【図11】第3実施例のヘッド駆動制御部の部分的な構
成を示すブロック図である。
FIG. 11 is a block diagram illustrating a partial configuration of a head drive control unit according to a third embodiment.

【図12】本発明の第4実施例のプリンタ装置の主要部
の概略構成を示すブロック図である。
FIG. 12 is a block diagram illustrating a schematic configuration of a main part of a printer device according to a fourth embodiment of the present invention.

【図13】第4実施例のヘッド駆動制御部の部分的な構
成を示すブロック図である。
FIG. 13 is a block diagram illustrating a partial configuration of a head drive control unit according to a fourth embodiment.

【符号の説明】[Explanation of symbols]

1 発熱抵抗体(発熱素子) 3 ラッチ回路 4 シフトレジスタ 5 サーマルヘッド 6 制御部 9 主メモリ 10 プリントバッファ 17,172,173,174 ヘッド駆動制御部 21 総ドット数設定レジスタ 22 ドットカウンタ 23 分割駆動カウンタ 25 タイミング制御部 26 同時ヒート数設定レジスタ 27 黒カウンタ 32 ヒート時間設定レジスタ REFERENCE SIGNS LIST 1 heating resistor (heating element) 3 latch circuit 4 shift register 5 thermal head 6 control unit 9 main memory 10 print buffer 17, 172, 173, 174 head drive control unit 21 total dot number setting register 22 dot counter 23 divided drive counter 25 Timing control unit 26 Simultaneous heat number setting register 27 Black counter 32 Heat time setting register

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の記録要素を有するプリントヘッド
を用いて被記録媒体に画像をプリントするプリンタ装置
のヘッド駆動回路であって、 前記プリントヘッドに出力するためのデータを記憶する
記憶手段と、 同時に駆動可能な前記プリントヘッドの記録要素の数を
保持する第1レジスタと、 前記プリントヘッドの記録に用いられる記録要素の総数
を記憶する第2レジスタと、 前記記憶手段より前記プリントヘッドに供給される黒ド
ット数を計数する黒ドットカウンタと、前記プリントヘッドに出力するデータのドット数を計数
するためのドットカウンタと、 前記プリントヘッドに出力するデータの同期クロック数
を計数するための分割駆動カウンタと、 前記黒ドットカウンタの計数値が前記第1レジスタに保
持されている値を超えた場合に、前記ドットカウンタに
対して計数を停止するイネーブル信号を供給すると共
に、前記分割駆動カウンタに対して計数を継続するイネ
ーブル信号を出力することで、 前記プリントヘッドに供
給したデータの総数が前記第2レジスタに記憶された前
記記録要素の総数に満たない場合に空データを発生して
前記プリントヘッドのデータ保持手段に供給してプリン
トヘッドに記録動作を行わせる制御手段とを有し、 前記ドットカウンタが途中で停止されている場合、当該
ドットカウンタと前記分割駆動カウンタとを用いて先に
未転送であったデータの転送を行い次の記録動作を行う
ことを特徴とするヘッド駆動回路。
1. A head drive circuit of a printer device for printing an image on a recording medium using a print head having a plurality of recording elements, comprising: storage means for storing data to be output to the print head; A first register for holding the number of print elements of the print head which can be driven simultaneously, a second register for storing the total number of print elements used for printing of the print head, and A black dot counter for counting the number of black dots, and a dot number for data to be output to the print head.
Counter and the number of synchronous clocks of data output to the print head
And a count value of the black dot counter is stored in the first register.
When the value exceeds the value held, the dot counter
Supplying an enable signal to stop counting
The rice which continues counting to the division drive counter is
By outputting a cable signal , empty data is generated when the total number of data supplied to the print head is less than the total number of recording elements stored in the second register, and the empty data is generated by the data holding means of the print head. Supply and pudding
Control means for causing the recording head to perform a recording operation, and when the dot counter is stopped halfway,
First, using the dot counter and the divided drive counter,
A head drive circuit for transferring data that has not been transferred and performing the next recording operation .
【請求項2】 前記分割駆動カウンタは、前記プリント
ヘッドに供給する前記空データ計数をも行うことを特
徴とする請求項1に記載のヘッド駆動回路。
Wherein said division drive counter head driving circuit according to claim 1, characterized in that also performs counting of the empty data to be supplied to the print head.
【請求項3】 前記第1及び第2レジスタが保持してい
る値を所望の値に変更可能にしたことを特徴とする請求
項1に記載のヘッド駆動回路。
3. The head drive circuit according to claim 1, wherein the value held by said first and second registers can be changed to a desired value.
【請求項4】 前記プリンタ装置の電源の種類を判別す
る判別手段と、 前記判別手段の判別結果に応じて前記第1レジスタに保
持する同時駆動可能な記録要素の数を変更する変更手段
とを更に有することを特徴とする請求項3に記載のヘッ
ド駆動回路。
4. A discriminating means for discriminating a type of power supply of the printer device, and a changing means for changing the number of simultaneously drivable recording elements held in the first register according to a discrimination result of the discriminating means. 4. The head drive circuit according to claim 3, further comprising:
【請求項5】 環境温度を測定する温度測定手段と、前
記温度測定手段により測定された温度に応じて前記第1
レジスタに保持する同時駆動可能な記録要素の数を変更
する変更手段とを更に有することを特徴とする請求項3
に記載のヘッド駆動回路。
5. A temperature measuring means for measuring an environmental temperature, and said first measuring means according to the temperature measured by said temperature measuring means.
4. A changing means for changing the number of simultaneously drivable recording elements held in a register.
3. The head drive circuit according to claim 1.
【請求項6】 前記プリントヘッドはライン型のヘッド
であり、前記制御手段は前記プリントヘッドに転送した
黒ドット数が前記第1レジスタに記憶されている値と一
致すると、前記記録要素の数に応じて黒ドットのプリン
ト位置を調整してプリントを行い、次に残りのデータを
前記プリントヘッドに転送しながら転送した黒ドット数
が前記第1レジスタに記憶されている値と一致したかど
うか判断し、1ラインのデータを前記プリントヘッドに
転送してプリントするまで同様の操作を繰返すことを特
徴とする請求項1に記載のヘッド駆動回路。
6. The print head is a line-type head, and the control means determines that the number of recording elements is equal to the number of the recording elements when the number of black dots transferred to the print head matches the value stored in the first register. The print position of the black dot is adjusted accordingly, and printing is performed. Then, while the remaining data is transferred to the print head, it is determined whether or not the number of transferred black dots matches the value stored in the first register. 2. The head drive circuit according to claim 1, wherein the same operation is repeated until one line of data is transferred to the print head and printed.
【請求項7】 請求項1乃至6のいずれか1項に記載の
ヘッド駆動回路と、 前記供給されるデータを受け取り記録を行うプリントヘ
ッドと、 前記ヘッド駆動回路及びプリントヘッドを制御すると共
に、前記記憶手段にプリントデータを展開する制御手段
と、を有することを特徴とするプリンタ装置。
7. A head drive circuit according to claim 1, further comprising: a print head for receiving and recording the supplied data; and controlling the head drive circuit and the print head. A printer device, comprising: control means for developing print data in a storage means.
【請求項8】 前記制御手段は、前記ドットカウンタで8. The control device according to claim 1, wherein
の計数が終了したときに、1ラインの記録動作が終了しWhen the counting of one line is completed, the recording operation of one line is completed.
たことを示すインタラプト信号を発生することを特徴とGenerating an interrupt signal indicating that the
する請求項1に記載のヘッド駆動回路。2. The head drive circuit according to claim 1, wherein:
JP32185493A 1993-12-21 1993-12-21 Printer device and head drive circuit thereof Expired - Fee Related JP3302146B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32185493A JP3302146B2 (en) 1993-12-21 1993-12-21 Printer device and head drive circuit thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32185493A JP3302146B2 (en) 1993-12-21 1993-12-21 Printer device and head drive circuit thereof

Publications (2)

Publication Number Publication Date
JPH07171989A JPH07171989A (en) 1995-07-11
JP3302146B2 true JP3302146B2 (en) 2002-07-15

Family

ID=18137167

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32185493A Expired - Fee Related JP3302146B2 (en) 1993-12-21 1993-12-21 Printer device and head drive circuit thereof

Country Status (1)

Country Link
JP (1) JP3302146B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5769745B2 (en) * 2013-03-13 2015-08-26 東芝テック株式会社 Printer
JP6166626B2 (en) * 2013-09-17 2017-07-19 サトーホールディングス株式会社 Printer and printing method thereof

Also Published As

Publication number Publication date
JPH07171989A (en) 1995-07-11

Similar Documents

Publication Publication Date Title
JPH09191731A (en) Printing system by automatic detection of paper length and its control
JPH07205467A (en) Control circuit for heat-sensitive press
JPH07329341A (en) Method and apparatus for controlling printing and image forming apparatus
JPH07329338A (en) Thermal printer and driving method therefor
JP3302146B2 (en) Printer device and head drive circuit thereof
JP2557049B2 (en) Printing method of thermal printer
JP3357972B2 (en) Data DMA transfer circuit for thermal transfer line printer
JPH0319069B2 (en)
JP2616323B2 (en) Line thermal head protection circuit
JP3586324B2 (en) Thermal line printer and driving method of thermal line printer
JPH06183048A (en) Thermal printer
JP3182789B2 (en) Printer control device, printer and control method therefor
JP2569898B2 (en) Thermal head energization control method
JP3222327B2 (en) Thermal printer
JPH0899427A (en) Thermal printer and thermal printer driving method
JPS63249222A (en) Printer controller
JP2500136B2 (en) Double memory type dot printer
JPH061045A (en) Printer device
JP2647062B2 (en) Print control device for thermal printer
JPH06286196A (en) Thermal line printer
JP2937702B2 (en) Non-impact printer
JPH0825672A (en) Thermal head split driving apparatus
JPH0325115B2 (en)
JPH0825673A (en) Thermal head split driving apparatus
JPH0852894A (en) Method and apparatus for driving thermal head

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020405

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

Free format text: PAYMENT UNTIL: 20090426

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090426

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100426

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees