JP3132769B2 - Thermal printer controller - Google Patents

Thermal printer controller

Info

Publication number
JP3132769B2
JP3132769B2 JP27579291A JP27579291A JP3132769B2 JP 3132769 B2 JP3132769 B2 JP 3132769B2 JP 27579291 A JP27579291 A JP 27579291A JP 27579291 A JP27579291 A JP 27579291A JP 3132769 B2 JP3132769 B2 JP 3132769B2
Authority
JP
Japan
Prior art keywords
print
voltage
heating element
printing
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP27579291A
Other languages
Japanese (ja)
Other versions
JPH05112027A (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.)
Furuno Electric Co Ltd
Original Assignee
Furuno Electric 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 Furuno Electric Co Ltd filed Critical Furuno Electric Co Ltd
Priority to JP27579291A priority Critical patent/JP3132769B2/en
Publication of JPH05112027A publication Critical patent/JPH05112027A/en
Application granted granted Critical
Publication of JP3132769B2 publication Critical patent/JP3132769B2/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]

【産業上の利用分野】この発明は、印字データに基づき
サーマルヘッドを通電制御して印字を行うサーマルプリ
ンタ制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a thermal printer control device for performing printing by energizing a thermal head based on print data.

【0002】[0002]

【従来の技術】一般にサーマルプリンタは、高細度のド
ットパターン印字ができ、しかも機構が簡単であること
から、携帯型電子機器の印字出力装置として好適であ
る。
2. Description of the Related Art Generally, a thermal printer is suitable as a print output device of a portable electronic device because it can print a high-definition dot pattern and has a simple mechanism.

【0003】携帯型電子機器は例えば商用電源を使用す
る据置型の電子機器とは異なり、電池を電源として動作
しなければならず、しかも使用時の環境温度の変化幅が
大きい。そのため携帯型電子機器の使用形態や使用目的
に応じて、サーマルプリンタ制御装置を設計しなければ
ならない。すなわち、サーマルプリンタは、サーマルヘ
ッドの各発熱体に印加するエネルギーと周囲温度によっ
て印字濃度が大きく変化する。そのため、従来はサーマ
ルヘッドに対する印加エネルギーを各発熱体の通電時間
幅の制御により行うようにし、電池電圧に応じて通電時
間幅を制御するとともに、周囲温度を検出してその通電
時間幅を補正するようにしている。
A portable electronic device, unlike a stationary electronic device using, for example, a commercial power supply, must operate using a battery as a power supply, and has a large variation in environmental temperature during use. Therefore, the thermal printer control device must be designed according to the usage form and purpose of the portable electronic device. That is, in the thermal printer, the print density greatly changes depending on the energy applied to each heating element of the thermal head and the ambient temperature. Therefore, conventionally, the energy applied to the thermal head is controlled by controlling the power supply time width of each heating element, the power supply time width is controlled according to the battery voltage, and the ambient temperature is detected to correct the power supply time width. Like that.

【0004】[0004]

【発明が解決しようとする課題】携帯型電子機器を設計
する際、その負荷特性に応じて電池の種類や容量が設計
される。例えば目標とする使用時間と負荷電流の積によ
って電池の容量が定められる。しかし負荷電流は一定で
あるとは限らず、電池の放電率によっても容量が変化す
るため、二次電池の場合、設計使用時間に達するまでに
充電が必要となる場合があった。特にラインサーマルプ
リンタの場合、サーマルヘッドに設けられている発熱体
の印字率(1ライン当りの選択率)が高い程負荷電流が
増大する。
When designing a portable electronic device, the type and capacity of the battery are designed according to the load characteristics. For example, the capacity of the battery is determined by the product of the target use time and the load current. However, the load current is not always constant, and the capacity varies depending on the discharge rate of the battery. Therefore, in the case of a secondary battery, it may be necessary to charge the battery before it reaches the design use time. In particular, in the case of a line thermal printer, the load current increases as the printing rate (selectivity per line) of the heating element provided on the thermal head increases.

【0005】そのため、電池容量が減少して内部抵抗が
増大している状態で、印字率の高い印字を行えば、電源
電圧が大きく低下するため、電源電圧が許容下限電圧を
下回って印字が強制停止されることになる。さらに、例
えばニッケル−カドミウム電池などの二次電池を電源と
して用いる場合、比較的残容量の多い状態であっても、
例えばサーマルヘッドの全発熱体を同時に駆動したよう
な場合、電源電圧が急激に低下して、低電圧の警告がな
される。このような比較的残容量の多い状態で充電を行
うような使用方法であれば、浅い充電/浅い放電が繰り
返されることになり、所謂メモリ効果によって電池容量
が低下し、使用可能時間がますます短くなることにな
る。
[0005] For this reason, if printing with a high printing rate is performed in a state where the battery capacity is reduced and the internal resistance is increased, the power supply voltage is greatly reduced. Will be suspended. Further, for example, when a secondary battery such as a nickel-cadmium battery is used as a power supply, even when the battery has a relatively large remaining capacity,
For example, when all the heating elements of the thermal head are driven at the same time, the power supply voltage drops rapidly, and a low voltage warning is issued. In such a usage method where charging is performed in a state where the remaining capacity is relatively large, shallow charging / shallow discharging will be repeated, and the battery capacity will decrease due to the so-called memory effect, and the usable time will increase. Will be shorter.

【0006】この発明の目的は、限られた容量の電池を
用いて稼動時間を極力延長できるようにしたサーマルプ
リンタ制御装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a thermal printer control device capable of using a battery having a limited capacity to extend the operation time as much as possible.

【0007】[0007]

【課題を解決するための手段】この発明は、ラインサー
マルヘッドの各発熱体毎の印字データを入力するレジス
タと、このレジスタの各ビット出力の状態に応じて通電
すべき発熱体を電池を電源として駆動する発熱体駆動回
路を備えたサーマルプリンタ制御装置において、前記レ
ジスタの内容を複数ビット毎にグループ化して選択出力
するグループ別ゲート回路と、前記グループ別ゲート回
路を印字分割数に応じて時分割的に選択して、1ライン
分の印字を行う分割印字制御手段と、前記ラインサーマ
ルヘッドの共通電極側への印加電圧または電池電圧を測
定する電圧測定手段と、前記電圧測定手段による測定電
圧と、1ライン当たりの選択ドット数の比率である印字
率とに基づいて、前記測定電圧が所定値より低いときに
前記印字分割数が増し、且つ前記印字率が所定値より高
くなるときに前記印字分割数が増すように前記印字分割
数を切り替える分割数切り替え手段とを設けたことを特
徴とする。
According to the present invention, there is provided a register for inputting print data for each heating element of a line thermal head, and a heating element to be energized according to the state of each bit output of the register. In a thermal printer control device having a heating element driving circuit driven as a group, a gate circuit for each group for selectively outputting the contents of the register by grouping a plurality of bits and a gate circuit for each group according to the number of print divisions. divisionally selects a dividing print control means for printing one line, a voltage measuring means for measuring the applied voltage or the battery voltage to the common electrode side of the line Thermal <br/> heads or others, the voltage measurement Measuring power by means
Printing is the ratio of pressure and the number of selected dots per line
And when the measured voltage is lower than a predetermined value,
The print division number increases, and the print ratio is higher than a predetermined value.
Print division so that the number of print divisions increases
And a division number switching means for switching the number.

【0008】[0008]

【作用】この発明のサーマルプリンタ制御装置では、グ
ループ別ゲート回路は、印字データを入力するレジスタ
の内容を複数ビット毎にグループ化して選択的に出力す
る。分割印字制御手段は、印字分割数に応じてグループ
別ゲート回路を時分割的に選択して、1ライン分の印字
を行う。電圧測定手段は、サーマルヘッドの共通電極側
への印加電圧または電池電圧を測定し、分割数切り替え
手段は、測定電圧が所定値より低いときに前記印字分割
数が増し、且つ前記印字率が所定値より高くなるときに
前記印字分割数が増すように印字分割数を切り替える。
従って、サーマルヘッドの共通電極側への印加電圧また
電池電圧の低下に伴い、印字分割数が増加し、1ライン
分の発熱体が複数のグループに分けられ、時分割的に印
字が行われる。そのため、同時に通電される発熱体の最
大数が減少し、サーマルヘッドの共通電極側への印加電
圧または電池電圧が低下時に、電池にとっての負荷電流
が制限され、電圧低下が抑制される。これにより残容量
の少なくなった状態でも電源電圧が許容下限を下回らな
い範囲で印字制御が行われる。逆に残容量が十分にあっ
て電源電圧が高い場合には印字分割数が減少し、例えば
1ライン分の選択発熱体を同時に印字することになり、
高速印字が可能となる。しかし、そのような状態でも1
ライン当たりの選択駆動ドット数の比率(印字率)が所
定値より高い場合には、印字分割数が増して、通電電流
が高くなり過ぎないようになり、電池の放電率が抑えら
れ、その寿命が延びる。
In the thermal printer control device according to the present invention, the group-by-group gate circuit groups the contents of the register for inputting the print data into a plurality of bits and selectively outputs the result. The divided print control means selects one of the gate circuits for each group in a time-division manner according to the number of print divisions, and prints one line. The voltage measuring means measures the voltage applied to the common electrode side of the thermal head or the battery voltage, and switches the number of divisions.
Means for dividing the print when the measured voltage is lower than a predetermined value;
When the number increases and the printing rate becomes higher than a predetermined value,
The print division number is switched so that the print division number increases.
Therefore, as the voltage applied to the common electrode of the thermal head and the battery voltage decrease, the number of print divisions increases, and the heating elements for one line are divided into a plurality of groups, and printing is performed in a time-division manner. Therefore, the maximum number of heating elements that are simultaneously energized is reduced, and when the voltage applied to the common electrode side of the thermal head or the battery voltage is reduced, the load current for the battery is limited, and the voltage drop is suppressed. As a result, printing control is performed within a range in which the power supply voltage does not fall below the allowable lower limit even when the remaining capacity is low. Conversely, when the remaining capacity is sufficient and the power supply voltage is high, the number of print divisions decreases, and for example, the selected heating elements for one line are printed simultaneously,
High-speed printing becomes possible. However, even in such a state,
The ratio of the number of selected drive dots per line (printing rate)
If it is higher than the fixed value, the number of print divisions increases and the
Is not too high, and the battery discharge rate is reduced.
And its life is extended.

【0009】[0009]

【実施例】この発明の実施例であるサーマルプリンタ制
御装置の構成を回路図として図1に示す。図1において
CPU1はROM,RAMおよびA/Dコンバータを含
み、サーマルプリント制御を行う。シフトレジスタ2は
CPU1からの印字データをシリアルに入力する。ラッ
チレジスタ3はラッチ信号を受けてシフトレジスタ2の
内容をラッチする。ゲート回路4はストローブ信号(S
TB1〜STB4)が与えられたとき、ラッチレジスタ
3の内容に応じて駆動トランジスタ5を選択駆動する。
ゲート回路4のゲート記号中に示す番号は対応する選択
すべき発熱体の番号である。図1に示した接続の場合、
ストローブ信号STB1が有効であるとき、ラッチレジ
スタ3に設定されている1ライン分の印字データのう
ち、発熱体番号1〜128のビットデータに応じて発熱
体番号1〜128の発熱体が選択的に通電される。スト
ローブ信号STB2が有効であるとき、ラッチレジスタ
3に設定されている1ライン分の印字データのうち、発
熱体番号129〜192のビットデータに応じて発熱体
番号129〜192の発熱体が選択的に通電される。同
様に、ストローブ信号STB3が有効であるとき、発熱
体番号193〜256の発熱体が選択的に通電され、ス
トローブ信号STB4が有効であるとき、発熱体番号2
57〜384の発熱体が選択的に通電される。また、図
1において6はラインサーマルヘッドの各ドットを構成
する発熱体であり、384ドット分の発熱体からなる。
VPはサーマルヘッドの発熱体6の共通電極側に印加す
る電源電圧であり、例えばpチャンネルFETを介して
電池電圧が直接与えられる。抵抗R1,R2はヘッド駆
動電圧VPを所定の分圧比で分圧する。CPU1はアナ
ログ入力ポートA1からその分圧値を読み取って、ヘッ
ド駆動電圧VPを測定する。
FIG. 1 is a circuit diagram showing a configuration of a thermal printer control device according to an embodiment of the present invention. In FIG. 1, a CPU 1 includes a ROM, a RAM, and an A / D converter, and performs thermal print control. The shift register 2 serially inputs print data from the CPU 1. The latch register 3 receives the latch signal and latches the contents of the shift register 2. The gate circuit 4 outputs a strobe signal (S
TB1 to STB4), the driving transistor 5 is selectively driven according to the contents of the latch register 3.
The number shown in the gate symbol of the gate circuit 4 is the number of the corresponding heating element to be selected. In the case of the connection shown in FIG.
When the strobe signal STB1 is valid, among the print data of one line set in the latch register 3, the heating elements of the heating element numbers 1 to 128 are selectively selected according to the bit data of the heating element numbers 1 to 128. Is energized. When the strobe signal STB2 is valid, among the print data for one line set in the latch register 3, the heating elements of the heating element numbers 129 to 192 are selectively selected according to the bit data of the heating element numbers 129 to 192. Is energized. Similarly, when the strobe signal STB3 is valid, the heating elements of the heating element numbers 193 to 256 are selectively energized, and when the strobe signal STB4 is valid, the heating element number 2 is selected.
The heating elements 57 to 384 are selectively energized. In FIG. 1, reference numeral 6 denotes a heating element that constitutes each dot of the line thermal head, and is composed of a heating element for 384 dots.
VP is a power supply voltage applied to the common electrode side of the heating element 6 of the thermal head. For example, a battery voltage is directly applied via a p-channel FET. The resistors R1 and R2 divide the head drive voltage VP at a predetermined division ratio. The CPU 1 reads the divided voltage value from the analog input port A1 and measures the head drive voltage VP.

【0010】次にCPUの処理手順をフローチャートと
して図2〜図5に示し、各出力信号のタイミングチャー
トを図6に示す。
Next, FIGS. 2 to 5 show the processing procedure of the CPU as flowcharts, and FIG. 6 shows a timing chart of each output signal.

【0011】図2および図3はマスタCPUなどの外部
から与えられるデータを受けて印字制御を行う全体の処
理手順を示す。CPUは先ずマスタCPU(不図示)か
らコードを入力するが、CR(キャリッジリターン)コ
ードまたは終了コードを入力するまでは、キャラクタコ
ードを内部のレジスタに記憶する(n1→n2→n3→
n4→n1・・・・)。1行分のキャラクタコードを受
信した後、CRコードを受信すれば、ライン番号LNに
初期値0を設定する(n5)。このライン番号LNはあ
る文字の何ライン目を印字すべきかを示すカウンタであ
る。その後、1行分のキャラクタコード列とライン番号
LNとによって1ライン分の印字データをデコードする
(n6)。そしてそのラインの印字率(選択ドットの比
率)をカウントする(n7)。そして、デコードした1
ライン分のデータを図1に示すシフトレジスタ2へ転送
し、転送後ラッチレジスタ3へラッチさせる(n8→n
9)。その後、図3に示す処理へ移る。図3においてD
は印字分割数であり、後述するようにヘッド駆動電圧V
PによってDの値は定められる。既に定められている分
割数Dが1(一括印字)であれば、印字率が50%を超
えるか否かの判定をおこなう(n10→n11)。50
%未満であれば後述する処理によって1ライン分を同時
に印字する(n12)。その後、印字紙の紙送り用モー
タを所定ステップ数だけ駆動して、印字紙を1ライン分
搬送する(n13)。そして、ライン番号LNをインク
リメントして、再び1行分のキャラクタコード列とライ
ン番号LNとによってLN番目の印字データを求め、同
様に処理を行う(n14→n15→n6→・・・・)。
印字分割数Dが1であっても、そのラインの印字率が5
0%を超える場合には、強制的に2分割印字を行う(n
11→n17)。また、印字分割数Dが2であれば無条
件に2分割印字を行う(n16→n17)。印字分割数
Dが3であれば無条件に3分割印字を行う(n18→n
19)。もし、印字分割数Dが4であれば低電圧警告を
行い、印字処理を中断する(n18→n20→EN
D)。正常に1行分の印字を終了したなら、次行のキャ
ラクタコード列を受信する(n14→n1→n2→n3
→n4→n1・・・・)。その後、終了コードを受信し
て、1連の印字処理を終了する(n3→END)。
FIG. 2 and FIG. 3 show an overall processing procedure for performing print control in response to externally applied data such as a master CPU. The CPU first inputs a code from a master CPU (not shown), but stores a character code in an internal register (n1 → n2 → n3 →) until a CR (carriage return) code or an end code is input.
n4 → n1 ...). After receiving the character code for one line and receiving the CR code, the line number LN is set to the initial value 0 (n5). The line number LN is a counter indicating which line of a certain character is to be printed. Thereafter, the print data for one line is decoded by the character code string for one line and the line number LN (n6). Then, the printing rate (the ratio of the selected dots) of the line is counted (n7). And the decoded 1
The data for the line is transferred to the shift register 2 shown in FIG. 1, and is latched by the latch register 3 after the transfer (n8 → n).
9). Then, the process proceeds to the process shown in FIG. In FIG. 3, D
Is the number of print divisions, and the head drive voltage V
The value of D is determined by P. If the predetermined division number D is 1 (collective printing), it is determined whether the printing rate exceeds 50% (n10 → n11). 50
If it is less than%, one line is simultaneously printed by the processing described later (n12). Thereafter, the paper feed motor for the printing paper is driven by a predetermined number of steps to convey the printing paper by one line (n13). Then, the line number LN is incremented, the LN-th print data is obtained again from the character code string for one line and the line number LN, and the same processing is performed (n14 → n15 → n6 →...).
Even if the printing division number D is 1, the printing rate of the line is 5
If it exceeds 0%, two-part printing is forcibly performed (n
11 → n17). If the number D of print divisions is 2, undivided printing is performed unconditionally (n16 → n17). If the print division number D is 3, three-part print is performed unconditionally (n18 → n
19). If the print division number D is 4, a low voltage warning is issued and the printing process is interrupted (n18 → n20 → EN).
D). When printing of one line is completed normally, the character code string of the next line is received (n14 → n1 → n2 → n3).
→ n4 → n1 ...). Thereafter, an end code is received, and a series of printing processes is ended (n3 → END).

【0012】図4は図3のステップn12の具体的な処
理手順を示す。先ず、ストローブ信号STB1,2,
3,4の全てを“H”(有効)にして、図1に示したゲ
ート回路4に対しストローブ信号を与える。これにより
ラッチレジスタ3の全ての内容が同時に駆動トランジス
タ5に与えられる(n30)。この状態でヘッド駆動電
圧VPを測定する(n31)。その後、VPに応じて次
ラインの印字分割数を決定する。例えばVPが4.4V
以上であれば印字分割数Dに1を設定する(n32→n
33)。続いて、ヘッド駆動電圧VPと周囲温度によっ
て通電時間を算出し、通電時間をカウントするためのカ
ウンタに通電時間を設定する(n37→n38)。その
後、カウンタをスタートさせ、前記カウンタが所定値に
達して通電時間の終了を検出したなら、ストローブ信号
STB1,2,3,4の全てを“L”にして発熱体の通
電を終了する(n39→n40→n41)。もし、ヘッ
ド駆動電圧VPが4.2V以上4.4V未満の値であれ
ば印字分割数Dに2を設定する(n32→n34)。ヘ
ッド駆動電圧VPが4.0V以上4.2V未満であれば
印字分割数Dに3を設定する(n32→n35)。ヘッ
ド駆動電圧VPが4.0V未満であれば印字分割数Dに
4を設定する(n32→n36)。従ってDの値が1で
あれば次のラインを一括印字し、D=2であれば次のラ
インを2分割印字し、D=3であれば次のラインを3分
割印字することになる。もし、D=4となれば、次のラ
インの印字の際、低電圧警告を行って印字を中断するこ
とになる。
FIG. 4 shows a specific processing procedure of step n12 in FIG. First, the strobe signals STB1, STB2,
All of 3 and 4 are set to “H” (valid), and a strobe signal is applied to the gate circuit 4 shown in FIG. As a result, all the contents of the latch register 3 are simultaneously supplied to the drive transistor 5 (n30). In this state, the head drive voltage VP is measured (n31). After that, the print division number of the next line is determined according to the VP. For example, VP is 4.4V
If this is the case, 1 is set for the print division number D (n32 → n
33). Subsequently, the energization time is calculated based on the head drive voltage VP and the ambient temperature, and the energization time is set in a counter for counting the energization time (n37 → n38). Thereafter, the counter is started, and when the counter reaches a predetermined value and detects the end of the energization time, all of the strobe signals STB1, STB2, STB3, and ST4 are set to "L", and the energization of the heating element is ended (n39). → n40 → n41). If the head drive voltage VP is a value of 4.2 V or more and less than 4.4 V, 2 is set as the print division number D (n32 → n34). If the head drive voltage VP is 4.0 V or more and less than 4.2 V, the number D of print divisions is set to 3 (n32 → n35). If the head drive voltage VP is less than 4.0 V, the print division number D is set to 4 (n32 → n36). Therefore, if the value of D is 1, the next line is printed collectively, if D = 2, the next line is printed in two parts, and if D = 3, the next line is printed in three parts. If D = 4, a low voltage warning is issued and printing is interrupted when printing the next line.

【0013】図5は図3におけるステップn17の処理
手順を示す。先ず、ストローブ信号STB1,2のみ
“H”とする(n50)。これにより図1に示したゲー
ト回路4のうち発熱体番号1〜192、即ち1ラインの
左半分の発熱体がラッチレジスタ3の内容に基づいて選
択的に通電されることになる。この状態でヘッド駆動電
圧VPを測定する(n51)。その後、VPに応じて次
ラインの印字分割数を決定する。例えばVPが4.4V
以上であれば印字分割数Dに1を設定する(n52→n
53)。VPが4.2V以上4.4V未満であれば印字
分割数Dに2を設定する(n52→n54)。VPが
4.0V以上4.2V未満であれば印字分割数Dに3を
設定する(n52→n55)。VPが4.0V未満であ
れば印字分割数Dに4を設定する(n52→n56)。
続いて、ヘッド駆動電圧VPと周囲温度によって通電時
間を算出し、通電時間をカウントするためのカウンタに
通電時間を設定する(n57→n58)。その後、カウ
ンタをスタートさせ、前記カウンタが所定値に達して通
電時間の終了を検出したなら、ストローブ信号STB
1,2を“L”にして発熱体の通電を終了する(n59
→n60→n61)。続いてストローブ信号STB3,
4を“H”とする(n62)。これにより図1に示した
ゲート回路4のうち発熱体番号193〜384の発熱
体、すわなち右半分の発熱体がラッチレジスタ3の内容
に基づいて選択的に通電が開始されることになる。そし
て通電時間をカウントするためのカウンタにステップn
57で求めた通電時間を設定する(n63)。その後、
カウンタをスタートさせ、前記カウンタが所定値に達し
て通電時間の終了を検出したなら、ストローブ信号ST
B3,4を“L”にして発熱体の通電を終了する(n6
4→n65→n66)。
FIG. 5 shows a processing procedure of step n17 in FIG. First, only the strobe signals STB1 and STB2 are set to "H" (n50). As a result, the heating element numbers 1 to 192 of the gate circuit 4 shown in FIG. In this state, the head drive voltage VP is measured (n51). After that, the print division number of the next line is determined according to the VP. For example, VP is 4.4V
If this is the case, 1 is set for the print division number D (n52 → n
53). If VP is not less than 4.2 V and less than 4.4 V, 2 is set as the print division number D (n52 → n54). If VP is equal to or higher than 4.0 V and lower than 4.2 V, 3 is set as the print division number D (n52 → n55). If VP is less than 4.0 V, 4 is set as the print division number D (n52 → n56).
Subsequently, the energizing time is calculated based on the head drive voltage VP and the ambient temperature, and the energizing time is set in a counter for counting the energizing time (n57 → n58). Thereafter, the counter is started. When the counter reaches a predetermined value and detects the end of the energization time, the strobe signal STB
By setting 1 and 2 to "L", the energization of the heating element is terminated (n59).
→ n60 → n61). Subsequently, the strobe signal STB3,
4 is set to "H" (n62). As a result, in the gate circuit 4 shown in FIG. 1, the heating elements of the heating element numbers 193 to 384, that is, the heating elements in the right half are selectively energized based on the contents of the latch register 3. . Then, the counter for counting the energization time is set to step n.
The energization time obtained in 57 is set (n63). afterwards,
The counter is started, and when the counter reaches a predetermined value and detects the end of the energization time, the strobe signal ST
B3 and 4 are set to "L" to terminate the energization of the heating element (n6
4 → n65 → n66).

【0014】図3に示したステップn19の3分割印字
についても略同様であり、ストローブ信号STB1を有
効にして、1ラインの左1/3の印字を行い、その後ス
トローブ信号STB2,3を有効にして、1ラインの中
央1/3を印字し、さらにストローブ信号4を有効にし
て1ラインの右1/3を印字する。そして、いずれかの
印字中(通電中)にヘッド駆動電圧VPを測定して、そ
の電圧に応じて印字分割数Dの値を設定すればよい。
The same applies to the three-part printing in step n19 shown in FIG. 3. The strobe signal STB1 is made valid to perform printing of the left one-third of one line, and then the strobe signals STB2 and 3 are made valid. Then, the center 1/3 of one line is printed, and the strobe signal 4 is made valid to print the right 1/3 of the line. Then, the head drive voltage VP may be measured during any printing (during energization), and the value of the print division number D may be set according to the measured voltage.

【0015】図6はCPUの出力する各信号のタイミン
グを示す図であり、時刻t1で1ライン分の印字データ
のシフトレジスタ2への転送を開始し、ラッチ信号を出
力した後、t2でストローブ信号STB1〜STB4を
全て“H”とする。このt2〜t3で、選択された発熱
体に通電が行われる。2分割印字の場合には、t5〜t
7に示すように、先ずt5〜t6の期間に1ラインの左
半分について選択された発熱体が通電され、t6〜t7
の期間に1ラインの右半分について選択された発熱体が
通電される。また、3分割印字の場合、t9〜t12に
示すように、先ず9〜10の期間に1ラインの左1/3
について選択された発熱体に通電が行われ、t10〜t
11の期間に1ラインの中央1/3について選択された
発熱体に通電が行われ、t11〜t12の期間に、1ラ
インの右1/3について選択された発熱体に通電が行わ
れる。
FIG. 6 is a diagram showing the timing of each signal output from the CPU. At time t1, transfer of one line of print data to the shift register 2 is started, and after outputting a latch signal, the strobe signal is output at t2. The signals STB1 to STB4 are all set to “H”. At t2 to t3, power is supplied to the selected heating element. In the case of two-segment printing, t5 to t
As shown in FIG. 7, first, during the period from t5 to t6, the heating element selected for the left half of one line is energized, and from t6 to t7.
During the period, the heating element selected for the right half of one line is energized. Also, in the case of three-division printing, first, as shown at t9 to t12, the left one-third of one line is
Power is supplied to the heating element selected for
During the period of 11, power is supplied to the heating element selected for the center 1/3 of one line, and during the period from t11 to t12, power is supplied to the heating element selected for the right 1/3 of the line.

【0016】このように電源電圧が低下するに伴って印
字分割数が増大することにより、電源電圧が低下する程
1回の印字当たりの印字率が減少する。そのため電圧低
下率が小さくなり、残容量の少ない電池を用いても電源
電圧を大きく低下させることなく印字制御を行うことが
できる。また、電源電圧の高い状態であっても、印字率
が高けれは強制的に2分割印字されるため、電源である
電池の放電率が抑えられ、電池の寿命を長く保つことが
できる。
Since the number of print divisions increases as the power supply voltage decreases, the printing rate per one print decreases as the power supply voltage decreases. For this reason, the voltage drop rate is reduced, and printing control can be performed without significantly lowering the power supply voltage even when using a battery with a small remaining capacity. In addition, even when the power supply voltage is high, if the printing rate is high, printing is forcibly performed in two parts, so that the discharge rate of the battery as the power source is suppressed, and the life of the battery can be maintained long.

【0017】[0017]

【発明の効果】この発明のサーマルプリンタ制御装置に
よれば、同一内容の印字を行う場合でも、電源電圧の低
下に伴って消費電流が抑えられるため、電池の内部抵抗
による電圧降下が少なくなり、電源電圧を一定レベル以
上に維持することができ、サーマルプリンタを用いた長
時間の稼動が可能となる。また、電池の容量がまだ十分
にあって、電源電圧が高い状態では印字分割数が少なく
なる(例えば一括印字)ため、高速で印字を行うことが
できる。しかも、そのような状態でも1ライン当たりの
選択駆動ドット数の比率(印字率)が所定値より高い場
合には、印字分割数が増して、通電電流が高くなり過ぎ
ないようになり、電池の放電率が抑えられ、その寿命が
延びる。また、この発明のサーマルプリンタ制御装置
を、二次電池を電源とする電子機器に組み込む場合、二
次電池が必要十分な量に放電されるまで使用可能である
ため、その後の充電時に十分な充電が行われ、所謂メモ
リ効果が排除され、二次電池を常に良好な状態に維持す
ることができ、二次電池の寿命を長く保つことができ
る。
According to the thermal printer control apparatus of the present invention, even when printing the same contents, the current consumption is suppressed as the power supply voltage decreases, so that the voltage drop due to the internal resistance of the battery is reduced. The power supply voltage can be maintained at a certain level or higher, and long-term operation using a thermal printer can be performed. Further, when the battery capacity is still sufficient and the power supply voltage is high, the number of print divisions is small (for example, batch printing), so that high-speed printing can be performed. In addition, even in such a state,
If the ratio of the number of selected drive dots (printing ratio) is higher than a predetermined value,
In this case, the number of print divisions increases and the energizing current becomes too high.
Battery life, the battery's discharge rate is reduced,
Extend. When the thermal printer control device of the present invention is incorporated in an electronic device using a secondary battery as a power source, the secondary battery can be used until the secondary battery is discharged to a necessary and sufficient amount. Is performed, so-called memory effect is eliminated, the secondary battery can be always maintained in a good state, and the life of the secondary battery can be maintained long.

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

【図1】この発明の実施例であるサーマルプリンタ制御
装置の回路図である。
FIG. 1 is a circuit diagram of a thermal printer control device according to an embodiment of the present invention.

【図2】この発明の実施例であるサーマルプリンタ制御
装置の主要部の処理手順を示すフローチャートである。
FIG. 2 is a flowchart illustrating a processing procedure of a main part of the thermal printer control device according to the embodiment of the present invention.

【図3】この発明の実施例であるサーマルプリンタ制御
装置の主要部の処理手順を示すフローチャートである。
FIG. 3 is a flowchart showing a processing procedure of a main part of the thermal printer control device according to the embodiment of the present invention.

【図4】一括印字の処理手順を示すフローチャートであ
る。
FIG. 4 is a flowchart illustrating a processing procedure of batch printing.

【図5】2分割印字の処理手順を示すフローチャートで
ある。
FIG. 5 is a flowchart illustrating a processing procedure for two-part printing.

【図6】CPUの出力する各種信号のタイミングを示す
図である。
FIG. 6 is a diagram showing timings of various signals output from a CPU.

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

4−ゲート回路 6−発熱体 VP−ヘッド駆動電圧 STB1〜STB4−ストローブ信号 4-gate circuit 6-heating element VP-head drive voltage STB1-STB4-strobe signal

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) B41J 2/35 - 2/37 ──────────────────────────────────────────────────続 き Continuation of front page (58) Field surveyed (Int.Cl. 7 , DB name) B41J 2/35-2/37

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ラインサーマルヘッドの各発熱体毎の印字
データを入力するレジスタと、このレジスタの各ビット
出力の状態に応じて通電すべき発熱体を電池を電源とし
て駆動する発熱体駆動回路を備えたサーマルプリンタ制
御装置において、 前記レジスタの内容を複数ビット毎にグループ化して選
択出力するグループ別ゲート回路と、 前記グループ別ゲート回路を印字分割数に応じて時分割
的に選択して、1ライン分の印字を行う分割印字制御手
段と、前記ライン サーマルヘッドの共通電極側への印加電圧ま
たは電池電圧を測定する電圧測定手段と、前記電圧測定手段による測定電圧と、1ライン当たりの
選択駆動ドット数の比率である印字率とに基づいて、前
記測定電圧が所定値より低いときに前記印字分割数が増
し、且つ前記印字率が所定値より高くなるときに前記印
字分割数が増すように前記印字分割数を切り替える 分割
数切り替え手段とを設けたことを特徴とするサーマルプ
リンタ制御装置。
A register for inputting print data for each heating element of a line thermal head, and a heating element drive circuit for driving a heating element to be energized in accordance with the state of each bit output of the register with a battery as a power supply. A thermal printer controller comprising: a group-by-group gate circuit for grouping and selectively outputting the contents of the register for each of a plurality of bits; and Division print control means for printing lines , voltage measurement means for measuring the applied voltage or battery voltage to the common electrode side of the line thermal head, measurement voltage by the voltage measurement means,
Based on the print ratio, which is the ratio of the number of selected drive dots,
When the measured voltage is lower than a predetermined value, the number of print divisions increases.
And when the printing rate is higher than a predetermined value,
A thermal printer control device comprising: a division number switching unit that switches the print division number so as to increase the character division number .
JP27579291A 1991-10-23 1991-10-23 Thermal printer controller Expired - Fee Related JP3132769B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27579291A JP3132769B2 (en) 1991-10-23 1991-10-23 Thermal printer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27579291A JP3132769B2 (en) 1991-10-23 1991-10-23 Thermal printer controller

Publications (2)

Publication Number Publication Date
JPH05112027A JPH05112027A (en) 1993-05-07
JP3132769B2 true JP3132769B2 (en) 2001-02-05

Family

ID=17560481

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27579291A Expired - Fee Related JP3132769B2 (en) 1991-10-23 1991-10-23 Thermal printer controller

Country Status (1)

Country Link
JP (1) JP3132769B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3060347B2 (en) * 1992-12-28 2000-07-10 キヤノン株式会社 Recording device
DE4438600B8 (en) * 1993-10-30 2008-02-28 Pentax Corp. thermal printer
US6002417A (en) * 1998-01-23 1999-12-14 Eastman Kodak Company Method and apparatus for dynamically sizing and operating enable groups of thermal elements in a printer
JP4527871B2 (en) * 2000-11-15 2010-08-18 パナソニック株式会社 Thermal printer apparatus and operation control method thereof
JP2004351899A (en) * 2003-05-30 2004-12-16 Casio Comput Co Ltd Electronic device
JP5462206B2 (en) * 2011-03-01 2014-04-02 東芝テック株式会社 Thermal printer and program
JP2014030945A (en) * 2012-08-02 2014-02-20 Toshiba Tec Corp Printing device, information processing device, and program
JP6347230B2 (en) * 2015-05-22 2018-06-27 ブラザー工業株式会社 Printing device

Also Published As

Publication number Publication date
JPH05112027A (en) 1993-05-07

Similar Documents

Publication Publication Date Title
US5698987A (en) Method of driving heating element to match its resistance, thermal printer, and resistance measuring device
JP3132769B2 (en) Thermal printer controller
KR900014137A (en) Thermal Transfer Printers for Portable Data Terminals
JPH10507698A (en) Heating control for thermal printer
US5051756A (en) Thermal printer
EP0255116A2 (en) Thermal print head printing control apparatus
US4656489A (en) Thermal printer/plotter
JPH07329338A (en) Thermal printer and driving method therefor
JPH10181063A (en) Print head controlling device
EP0294288B1 (en) Dot matrix print head drive method
US6377290B1 (en) Thermal printer apparatus
US6606108B2 (en) Thermal print head high-speed driving apparatus and method
US4973984A (en) Thermal-head driving apparatus
US6784909B2 (en) Auxiliary control device for managing printing in a thermal printer
JP3853473B2 (en) Thermal head drive device
US4409597A (en) Line printer for recording analog signals
JPS61228970A (en) Thermal head driver
JPH06183048A (en) Thermal printer
JPH0319069B2 (en)
KR100212322B1 (en) Head temperature adjusting apparatus of inkjet printer
JPH06286196A (en) Thermal line printer
US6480215B1 (en) Control device for thermal printer head and printer using the same
JP3228969B2 (en) Thermal printer controller
JP3673264B2 (en) Thermal head control device
JPH04224970A (en) Thermal head driving device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees