JPH03143659A - Head driver for dot printer - Google Patents

Head driver for dot printer

Info

Publication number
JPH03143659A
JPH03143659A JP28530689A JP28530689A JPH03143659A JP H03143659 A JPH03143659 A JP H03143659A JP 28530689 A JP28530689 A JP 28530689A JP 28530689 A JP28530689 A JP 28530689A JP H03143659 A JPH03143659 A JP H03143659A
Authority
JP
Japan
Prior art keywords
shift
data
shift amount
printing
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.)
Pending
Application number
JP28530689A
Other languages
Japanese (ja)
Inventor
Satomitsu Funabashi
識充 船橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP28530689A priority Critical patent/JPH03143659A/en
Publication of JPH03143659A publication Critical patent/JPH03143659A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To obtain a head driver for dot printer capable of transmitting data from a bit image buffer to a printing buffer without conducting a complicated bit operation by a method wherein the printing buffer to which the printing data is transmitted from the bit image buffer is shifted by a shift amount setting part. CONSTITUTION:A CPU conducts calculation, thereafter transmitting a shift amount resulting from the calculation to a shift amount setting part 4 as a shift command signal. Based on this signal, the shift amount setting part 4 makes shift registers 1 and 2 conduct a shift action. In this manner, the shift registers 1 and 2 receiving the transmission of the printing data from a bit image buffer can be shifted by the shift amount setting part 4 in compliance with a line to be printed. Therefore, the CPU may operate a shift amount only one time before printing of each line is started. In this manner, a time required to a shift operation can be set to be remarkably short, which is preferable for a high-speed printing.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、ビットイメージバッファ内のデータを印字バ
・シファに転送して印字ストローブ信号により印字を行
なうドツトプリンタのヘッド駆動装置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention provides a head drive device for a dot printer that transfers data in a bit image buffer to a print buffer and performs printing using a print strobe signal. Regarding.

(従来の技術) ドツトプリンタは、縦1列に所定数の印字ドツト素子を
有するヘッドを備えており、印字を行なう場合には、キ
ャリッジが印字開始位置に到達する間にビットイメージ
バッファから印字すべき縦1ドツト列のデータを印字バ
ッファに転送してラッチさせ、印字ストローブ信号が発
せられることによりタイミング発生回路が所定のタイミ
ングで前記印字バッファにラッチされたデータを駆動回
路に与えて、この駆動回路により前記ヘッドの印字ドツ
ト素子をオン、オフ制御して縦1ドツト列の印字を行な
わせ、キャリッジが次の印字開始位置に到達する間に再
び前述同様の処理を行なうようにして、次の縦1ドツト
列の印字を行なわせ、以下これを繰返すことにより1行
の印字を終了するようになっている。
(Prior Art) A dot printer is equipped with a head having a predetermined number of printing dot elements in one vertical column, and when printing, it is necessary to print from the bit image buffer while the carriage reaches the printing start position. The data of one vertical dot row is transferred to the print buffer and latched, and when a print strobe signal is issued, the timing generation circuit gives the data latched in the print buffer to the drive circuit at a predetermined timing, and this drive circuit The print dot element of the head is controlled on and off to print one vertical line of dots, and while the carriage reaches the next printing start position, the same process as described above is performed again to print the next vertical line. One row of dots is printed, and this process is repeated to complete printing of one line.

而して、前述したような処理を行なう場合、ヘッドの印
字ドツト素子の数(ドツト数)が8の倍数であれば、ビ
ットイメージバッファから印字バッファにデータを転送
するに際して1バイト単位で転送することができるので
、効率のよい転送を行なうことができる。しかしながら
、ドツト数が8の倍数でない時には、例えばドツト数が
10であった時には、印字データを転送するには2バイ
トのデータが必要になるが、ここで、2バイト内の各ビ
ットをAD、乃至AD、及びBD、乃至BD7とすると
、常に同じビットが印字データにはならないために、例
えば最初の行の印字がAD。
Therefore, when performing the processing described above, if the number of print dot elements (dot number) of the head is a multiple of 8, data is transferred in units of 1 byte when transferring from the bit image buffer to the print buffer. Therefore, efficient transfer can be performed. However, when the number of dots is not a multiple of 8, for example when the number of dots is 10, 2 bytes of data are required to transfer the print data. If it is AD to AD and BD to BD7, the same bits will not always be the print data, so for example, the first line will be printed as AD.

乃至AD、及びBDo、BDlの10ビツトであると、
次の行の印字はAD2乃至AD、及びBD。乃至BD3
の10ビツトとなるように、各行らに印字に使用すべき
ビットが変化することになる。
10 bits from AD to BDo and BDl,
The next line is printed from AD2 to AD and BD. ~BD3
The bits to be used for printing change for each row so that there are 10 bits.

従って、このようなことをプログラム処理する場合には
、この2バイトのデータをアキュムレータ等のレジスタ
に転送し、シフト命令によりシフトした後印字バッファ
に転送するという複雑なものになり、処理速度の遅いも
のとなってしまう。このように、処理速度が遅いと、キ
ャリッジが横方向に1ドツト列分進む特開内にビットイ
メージバッファから印字バッファへのデータ転送が終了
せずに印字不能となるので、高速印字には不適当である
Therefore, when processing such a thing with a program, it becomes complicated to transfer this 2-byte data to a register such as an accumulator, shift it with a shift command, and then transfer it to the print buffer, which slows down the processing speed. It becomes a thing. In this way, if the processing speed is slow, the data transfer from the bit image buffer to the print buffer will not be completed before the carriage advances one dot row in the horizontal direction, making printing impossible, which is not suitable for high-speed printing. Appropriate.

このような問題を解決する手段として従来では次のよう
な2例が考えられている。
Conventionally, the following two examples have been considered as means for solving such problems.

第1の従来例としては、9ドツトを有するヘッドを備え
たドツトプリンタの場合、最下段のドツトは通常の文字
印字に使用されずにアンダーライン、グラフィック等に
使用されることから、上から8つまでのドツトに対応す
るデータは第1のビットイメージバッファの1バイトに
格納し、最下段のドツトに対応するデータは横8ドツト
分を第2のビットイメージバッファの1バイトに格納す
るものである。そして、印字をi〒なう場合には、先ず
、第1のビットイメージバッファから1バイトのデータ
を印字バッファに転送し、次に、第2のビットイメージ
バッファから1バイト中の1ビツトのみのデータを印字
バッファに転送する。
As a first conventional example, in the case of a dot printer equipped with a head with 9 dots, the bottom dots are not used for normal character printing but are used for underlining, graphics, etc., so the top 8 dots are The data corresponding to the dots up to is stored in 1 byte of the first bit image buffer, and the data corresponding to the bottom dot is stored in 1 byte of the second bit image buffer for 8 horizontal dots. . When printing is to be performed, first, one byte of data is transferred from the first bit image buffer to the print buffer, and then only one bit of one byte is transferred from the second bit image buffer. Transfer data to print buffer.

第2の従来例としては、例えばヘッドが10ドツトを有
する場合、1バイト+2ビツトのデータ構成になるが、
2ドツト分が格納された1バイトデータの内の残り6ビ
ツトを空白(全て「0」又は「1」)にしてその6ドツ
ト分は印字データとして使用しないことにするものであ
る。これによれば、常に2バイト分づつ印字バッファに
転送すればよいことになる。
As a second conventional example, for example, if the head has 10 dots, the data structure is 1 byte + 2 bits.
The remaining 6 bits of the 1-byte data containing 2 dots are left blank (all "0" or "1") so that the 6 dots are not used as print data. According to this, it is sufficient to always transfer two bytes to the print buffer.

(発明が解決しようとする課題) 最近では解像度の向上を図るために50ドツトヘツドを
用いることが考えられており、この場合には、40ドツ
トに対しては5バイトのデータを転送すればよいが、残
りの10ドツトにχ・すするデータ転送が問題になる。
(Problem to be solved by the invention) Recently, it has been considered to use a 50-dot head in order to improve resolution, and in this case, it is only necessary to transfer 5 bytes of data for 40 dots. , data transfer for the remaining 10 dots becomes a problem.

第1の従来例は、9ドツトヘツドの場合であるので、1
バイト+1ビツトのデータ構成で済むのであるが、】O
ドツトヘッド(例えば50ドツトヘツドの残り10ドツ
ト分)の場合には、1バイト+2ビツトのデータ構成と
なり、この2ビツトを横8ドツト分づつ2バイトに格納
すると、データ処理が複雑になり、前述したような50
ドツトヘツドのような多数ドツトのヘッドのデータ転送
には不適当であり、しかも、ビットイメージバッフ7が
2つ必要となることから、ビット操作が複雑になる不具
合がある。
The first conventional example is a case of 9 dot heads, so 1
The data structure is just byte + 1 bit, but ]O
In the case of a dot head (for example, the remaining 10 dots of a 50-dot head), the data structure is 1 byte + 2 bits, and if these 2 bits are stored in 2 bytes each for 8 horizontal dots, data processing becomes complicated, and as mentioned above, 50
This method is unsuitable for data transfer from a multi-dot head such as a dot head, and furthermore, since two bit image buffers 7 are required, bit operations become complicated.

又、第2の従来例では、10ドツトヘツドの場合には、
残り2ビツトのために1バイト分を使用することになっ
て、ビットイメージバッファとして容量の大なるものが
必要になる不具合がある。
In addition, in the second conventional example, in the case of 10 dot heads,
Since 1 byte is used for the remaining 2 bits, a large capacity bit image buffer is required.

本発明は上記事情に鑑みてなされたもので、その目的は
、ヘッドの印字ドツト素子の数が8の倍数でなくても、
ビットイメージバッファを加工することなく、ビットイ
メージバッファの容量を粗大することなく、又、複雑な
ビット操作を行なうことなくして、ビットイメージバッ
ファから印字バッファにデータ転送を行なうことができ
るドツトプリンタのヘッド駆動装置を提供するにある。
The present invention has been made in view of the above-mentioned circumstances, and its purpose is to print even if the number of printing dot elements in the head is not a multiple of 8.
A dot printer head drive that can transfer data from the bit image buffer to the print buffer without processing the bit image buffer, increasing the capacity of the bit image buffer, or performing complex bit operations. We are in the process of providing equipment.

[発明の構成] (課題を解決するための手段) 本発明のドツトプリンタのヘッド駆動装置は、所定量の
ビット数を有しそのシフトが可能であってビットイメー
ジバッファ内のデータが転送されるパラレル入力及びパ
ラレル出力方式の印字バッファを設け、この印字バッフ
ァのシフト量を印字すべきデータに応じて設定するシフ
ト量設定部を設け、印字ストローブ信号を受けることに
より前記印字バッファからのパラレル出力データに基づ
いて所定のタイミングでヘッドを駆動する駆動部を設け
る構成に特徴をHする。
[Structure of the Invention] (Means for Solving the Problems) A head drive device for a dot printer according to the present invention has a predetermined number of bits, can be shifted, and is a parallel printer in which data in a bit image buffer is transferred. A print buffer of input and parallel output type is provided, and a shift amount setting unit is provided to set the shift amount of this print buffer according to the data to be printed, and by receiving a print strobe signal, parallel output data from the print buffer is provided. H is characterized by a configuration in which a drive section is provided to drive the head at a predetermined timing based on the above.

(作用) 本発明のドツトプリンタのヘッド詔勅装置によれば、ビ
ットイメージバッファから印字バッファに転送されたデ
ータは、シフト量設定部により印字すべきデータに応じ
てシフトされた上で所定のタイミングで駆動部に与えら
れるので、必要なデータのみが駆動部に与えられてこれ
に基づいてヘッドが駆動される。従って、ビットイメー
ジバッファからのデータを一度アキュムレータ等のレジ
スタに転送してシフトする必要がなく、又、2以上のビ
ットイメージバッファを用いる必要らなく、更に、ビッ
トイメージバッファには空白なくデータを格納すること
ができる。
(Function) According to the dot printer head edict device of the present invention, the data transferred from the bit image buffer to the print buffer is shifted according to the data to be printed by the shift amount setting section and then driven at a predetermined timing. Since only the necessary data is given to the drive section, the head is driven based on this data. Therefore, there is no need to transfer and shift the data from the bit image buffer to a register such as an accumulator, there is no need to use two or more bit image buffers, and furthermore, the data can be stored in the bit image buffer without blank space. can do.

(実施例) 以下本発明の一実施例につき図面を参考しながら説明す
る。
(Example) An example of the present invention will be described below with reference to the drawings.

先ず、全体の構成について第1図に従い説明する。1及
び2は印字バッファたる8ビツトのシフトレジスタであ
り、これらはパラレル入力及びパラレル出力方式のもの
である。これらのシフトレジスタ1及び2の8ビツトの
入力端子にはCPUの制御の基にビットイメージバッフ
ァ(いずれも図示せず)からのデータが8ビツトのデー
タバス3を介して与えられるようになっている。4はシ
フト量設定部であり、その入力端子にCPUの制御の基
にシフト指令信号がデータバス3を介して与えられるよ
うになっている。このシフト量設定部4は、後述するよ
うに出力端子からシフト量信号SFを出力するようにな
っていて、そのシフト量信号SFを前記シフトレジスタ
1及び2の制御端子に与えるようになっている。5はア
ンド回路51乃至510よりなるゲート回路、6はCP
Uから入力端子に印字ストローブ信号PSが与えられる
タイミング発生回路、7は駆動回路であり、これらは駆
動部8を構成する。即ち、アンド回路51乃至5Bの各
一方の入力端子にはシフトレジスタ1の8ビツトの出力
端子り、乃至り、からのデータが与えられるようになっ
ており、アンド回路59及び5□。の各一方の入力端子
にはシフトレジスタ2の8ビツトの出力端子Do乃至D
7の内の上位2ビツトの出力端子Do及びDlからのデ
ータが与えられるようになっている。従って、シフトレ
ジスタ2の残りの出力端子Dl乃至D7は使用されない
休止出力端子である。タイミング発生回路6は、印字ス
トローブ信号PSが与えられるε、10ビツトの出力端
子から駆動タイミング信号T1乃至T1o(第4図参照
)を出力するようになっており、これらの駆動タイミン
グ信号TI乃至TIGはアンド回路5五乃至5!oの各
他方の入力端子に与えられるようになっている。
First, the overall configuration will be explained with reference to FIG. 1 and 2 are 8-bit shift registers serving as print buffers, and these are of a parallel input and parallel output type. Data from a bit image buffer (both not shown) is supplied to the 8-bit input terminals of these shift registers 1 and 2 via an 8-bit data bus 3 under the control of the CPU. There is. Reference numeral 4 denotes a shift amount setting section, to whose input terminal a shift command signal is applied via the data bus 3 under the control of the CPU. The shift amount setting section 4 is configured to output a shift amount signal SF from an output terminal as described later, and is configured to apply the shift amount signal SF to the control terminals of the shift registers 1 and 2. . 5 is a gate circuit consisting of AND circuits 51 to 510, 6 is a CP
A timing generation circuit whose input terminal is supplied with a print strobe signal PS from U, and a drive circuit 7 constitute a drive section 8. That is, one input terminal of each of the AND circuits 51 to 5B is supplied with data from the 8-bit output terminal of the shift register 1, and the AND circuits 59 and 5□. The 8-bit output terminals Do to D of the shift register 2 are connected to each one of the input terminals of the shift register 2.
The data from the output terminals Do and Dl of the upper two bits of 7 is applied. Therefore, the remaining output terminals D1 to D7 of the shift register 2 are unused rest output terminals. The timing generation circuit 6 is configured to output drive timing signals T1 to T1o (see FIG. 4) from an ε, 10-bit output terminal to which the print strobe signal PS is applied, and these drive timing signals TI to TIG is AND circuit 55 to 5! o is applied to each other input terminal of the input terminal.

駆動回路7は、10ビツトの入力端子にアンド回路51
乃至510の出力端子からのデータが与えられると、対
応する10ビツトの出力端子から出力信号を出力するよ
うになっており、これらの出力信号はヘッド9の10ビ
ツトの入力端子に与えられるようになっている。そして
、ヘッド9は、図示しないキャリッジに搭載されていて
、縦1列に10個の印字ドツト素子91乃至910を有
しており、駆動回路7から対応する印字ドツト素子に出
力信号が与えられると、その印字ドツト素子に電源端子
10(?!dilX電圧+V)から電流制限用抵抗11
を介して通電するようになっている。尚、ヘッド9とし
ては、ワイヤドツト式、インクジェット式、感熱式のい
ずれでもよいが、ここでは感熱式を採用している。
The drive circuit 7 has an AND circuit 51 connected to a 10-bit input terminal.
When data is given from the output terminals of the heads 9 to 510, output signals are output from the corresponding 10-bit output terminals, and these output signals are given to the 10-bit input terminal of the head 9. It has become. The head 9 is mounted on a carriage (not shown) and has ten printing dot elements 91 to 910 arranged in a vertical line, and when an output signal is given to the corresponding printing dot element from the drive circuit 7, , from the power supply terminal 10 (?! dilX voltage +V) to the printed dot element, the current limiting resistor 11 is connected.
It is designed to be energized through. The head 9 may be of a wire dot type, an inkjet type, or a thermal type, but the thermal type is used here.

次に、本実施例の作用につき第2図乃至第4図をも参照
しながら説明する。
Next, the operation of this embodiment will be explained with reference to FIGS. 2 to 4.

図示しないビットイメージバッファには、第2図に示す
ように、縦1列10ビツトの印字データが格納されてい
る。先ず、第1行の印字を行なう場合には、ビットイメ
ージバッファから、第3図に示すように、アドレスr0
000J及び「1000」から各1バイト:1゛2バイ
トの印字データがデータバス3を介してシフトレジスタ
1及び2に転送される。尚、この第3図においては、横
方向のドツト数(ビット数)は4096に設定されてい
る。この場合、アドレスr0000Jの1バイトの印字
データはシフトレジスタ1に転送されてラッチされ、ア
ドレスr1000Jの1バイトの印字データはシフトレ
ジスタ2に転送されてラッチされる。又、CPUからは
シフト量設定部4に対してデータバス3を介してシフト
指令信号が与えられ、該シフト量設定部4は例えばシフ
ト量「0」を示すシフト量信号SFを出力してシフトレ
ジスタ1及び2に与える。その後、CPUからはタイミ
ング発生回路6に印字ストローブ信号PSが与えられる
ようになり、該タイミング光1回路6は、第4図に示す
ように、互いに所定の時間差を有するハイレベルの駆動
タイミング信号T1乃至T!。を順次出力してアンドロ
路51乃至51oに与えるようになる。従って、シフト
レジスタ1及び2にラッチされた印字データがそのシフ
トレジスタ1の出力端子Do乃至D7及びシフトレジス
タ2の出力端子り、、Dlからアンド回路5、乃至58
及び59 +  510を介して駆動回路7に順次与え
られるようになる。これにより、駆動回路7は、印字デ
ータの示す内容が印字要(7%イレベル)の場合には対
応する出力端子の出力信号をロウレベルとし、印字不要
(ロウレベル)の場合には対応する出力端子の出力信号
をハイレベルとするようになり、ヘッド9の印字ドツト
索子91乃至910は、ロウレベルの信号が与えられる
と動作して印字用紙にドツトを形成し、ハイレベルの信
号が与えられると不動作でドツトの形成は行なわない。
As shown in FIG. 2, a bit image buffer (not shown) stores print data of 10 bits in one vertical column. First, when printing the first line, the address r0 is read from the bit image buffer as shown in FIG.
Print data of 1 byte: 1 to 2 bytes each from 000J and "1000" is transferred to shift registers 1 and 2 via data bus 3. Note that in FIG. 3, the number of dots (number of bits) in the horizontal direction is set to 4,096. In this case, 1 byte of print data at address r0000J is transferred to shift register 1 and latched, and 1 byte of print data at address r1000J is transferred to shift register 2 and latched. Further, a shift command signal is given from the CPU to the shift amount setting section 4 via the data bus 3, and the shift amount setting section 4 outputs a shift amount signal SF indicating the shift amount "0", for example, to perform the shift. Apply to registers 1 and 2. Thereafter, the print strobe signal PS is supplied from the CPU to the timing generation circuit 6, and the timing light 1 circuit 6 receives the high-level drive timing signal T1 having a predetermined time difference from each other, as shown in FIG. ~T! . are sequentially output and applied to the andro paths 51 to 51o. Therefore, the print data latched in the shift registers 1 and 2 is transferred from the output terminals Do to D7 of the shift register 1 and the output terminals of the shift register 2, Dl to the AND circuits 5 to 58.
and 59 + 510 to be sequentially applied to the drive circuit 7. As a result, the drive circuit 7 sets the output signal of the corresponding output terminal to a low level when the content indicated by the print data indicates that printing is required (7% blank level), and sets the output signal of the corresponding output terminal to a low level when printing is not required (low level). The output signal is set to a high level, and the print dot probes 91 to 910 of the head 9 operate to form dots on the printing paper when a low level signal is applied, and dots when a high level signal is applied. The operation does not form dots.

このようにして、ヘッド9はアドレスro 000Jの
ビット「0」乃至「7」及びアドレスrlooOJのビ
ットrOJ、rlJの印字データに基づいて、第1行の
最初の10ドツト縦1列の印字を行なうことになる。以
下、同様にして、ビットイメージバッファのアドレス「
0001」及びrloolJの印字データからアドレス
rOF F FJ及びrlFFFJまでの各2バイトの
印字データが順次シフトレジスタ1及び2に転送され、
これに基づいてヘッド9が縦各列の印字を行なうように
なって、第117の印字動作が終了する。
In this way, the head 9 prints the first 10 dots in one vertical column of the first row based on the print data of bits "0" to "7" of address ro 000J and bits rOJ and rlJ of address rlooOJ. It turns out. Similarly, the bit image buffer address "
0001'' and rloolJ to addresses rOF FJ and rlFFFJ are sequentially transferred to shift registers 1 and 2,
Based on this, the head 9 starts printing in each vertical column, and the 117th printing operation ends.

第1行の印字動作が終了すると、第2行の印字動作に移
行するが、この場合には、先ず、ビットイメージバッフ
ァのアドレスr1000J及びr2000Jの2バイト
の印字アークがシフトレジスタ1及び2に転送される。
When the printing operation of the first line is completed, the printing operation moves to the second line. In this case, first, the 2-byte printing arcs at addresses r1000J and r2000J of the bit image buffer are transferred to shift registers 1 and 2. be done.

ここで、アドレスrlooOJの1バイトの印字データ
はシフトレジスタ1に転送されてラッチされ、アドレス
「2000Jの1バイトの印字データはシフトレジスタ
2に転送されてラッチされるが、アドレス「1000」
のビット「0」及び「1」の印′γデータは第1行のも
のであり、そのまま印字したのではまともな印字にはな
らない。そこで、CPUは再びシフト量設定部4にシフ
ト指令信号を与えるようになり、該シフト量設定部4は
例えばシフト量「2」を示すシフト量f3号SFを出力
してシフトレジスタ1及び2に与える。これにより、シ
フトレジスタ1及び2は「2」だけシフトされて、シフ
トレジスタ1は、アドレスr1000Jのビット「2」
乃至「7」の印字データを出力端子り。
Here, 1 byte of print data at address rlooOJ is transferred to shift register 1 and latched, and 1 byte of print data at address "2000J" is transferred to shift register 2 and latched, but address "1000"
The mark 'γ data of bits ``0'' and ``1'' are from the first line, and if printed as is, it will not result in proper printing. Therefore, the CPU again gives a shift command signal to the shift amount setting section 4, and the shift amount setting section 4 outputs, for example, a shift amount No. f3 SF indicating a shift amount of "2" to the shift registers 1 and 2. give. As a result, shift registers 1 and 2 are shifted by "2", and shift register 1 is shifted by bit "2" of address r1000J.
The output terminal outputs the print data of "7".

乃至D!1から出力し、シフトレジスタ2は、アドレス
r2000Jのビット「0」及び「1」の印字データを
シフトレジスタ1の出力端子D6及びD7から出力する
とともに、アドレスr2000Jのビット「2」及び「
3」の印字データを自己の出力端子Do及びDlから出
力する。これにより、前述したようにタイミング発生回
路6が印字ストローブ信号PSに基づいて駆動タイミン
グ信号T1乃至T!。を出力すると、アドレスr100
0Jのビット「2」乃至「7」及びアドレス「2000
」のビット「0」乃至「3」の印′γデータが第2行の
最初の縦1列に印字されることになる。
~D! The shift register 2 outputs the print data of bits "0" and "1" of the address r2000J from the output terminals D6 and D7 of the shift register 1, and also outputs the print data of the bits "2" and "1" of the address r2000J.
3" is output from its own output terminals Do and Dl. As a result, as described above, the timing generation circuit 6 generates drive timing signals T1 to T! based on the print strobe signal PS. . When you output address r100
Bits “2” to “7” of 0J and address “2000”
The mark 'γ data of bits "0" to "3" of "" will be printed in the first vertical column of the second row.

以下、同様の動作が行なわれるものであるが、CPUは
印字される行が代わる毎に次のような演算を行なう。即
ち、シフト量をSとし、印字すべき行を(とすると、 S −2x Ce −D−8x lNT[((−1)/
4]の演算を行なう。ここで、lNT[< < −1)
ハコは(1,−1)/4の整数部のみとする。従って、
第1行のシフトエS五は、 S s = 2 X (1−1)−8X INT[(1
−1)ハ]−0となり、第2行のシフト量82は、 S 2−2 X  (2−1)−8X INT[(2−
1)ハ]−2となり、又、例えば第18行のシフトff
1staは、S 18−2 X (1g−1)−8X 
INT[(1B−1)ハ]−34−8X 4−2 となる。CPUは、このような演算を行なって、演算粘
果のシフト量Sをシフト指令信号としてシフト量設定部
4に与えるものであり、シフト量設定部4はこれに基づ
いてシフトレジスタ1及び2にシフト動作を実行させる
。尚、このようなシフト量Sの演算をシフト型設定部4
自体に行なわせるようにしてもよいことは勿論である。
Similar operations are performed thereafter, but the CPU performs the following calculations each time the printed line changes. That is, if the shift amount is S and the line to be printed is (, then S -2x Ce -D-8x lNT[((-1)/
4] is performed. Here, lNT[<<-1)
The box contains only the integer part of (1, -1)/4. Therefore,
The shift S5 in the first row is S s = 2 X (1-1) - 8X INT[(1
-1) C] -0, and the shift amount 82 of the second row is S 2-2 X (2-1)-8X INT[(2-
1) C]-2, and for example, the shift ff in the 18th row
1sta is S18-2X (1g-1)-8X
INT[(1B-1)c]-34-8X 4-2 . The CPU performs such calculations and provides the shift amount S of the calculated resultant to the shift amount setting section 4 as a shift command signal, and the shift amount setting section 4 sends the shift amount S to the shift registers 1 and 2 based on this. Execute the shift operation. Incidentally, such calculation of the shift amount S is performed by the shift type setting section 4.
Of course, it is also possible to have the program perform the task itself.

又、CPUは印字すべき(j(()においてシフトレジ
スタ1及び2に転送する印字データのバッファポインタ
P1及びP2を、 Pl −(< −1)+ INT[(’! −1)ハ]
P2−Pl+1 のように演算する。例えば第3図に矢印で示すように第
2行第3列の場合のバッファポインタP1(2−11+
P2゜2.)は、 P 1 +2−s) −(2−1)+INT[(2−1
)ハ]−1P 212−31″Pl(2−31+ 1−
2となり、従って、 (0002) + (1000) x 1− (10(
12)(0002) + (1000) x 2− (
2002)となり、CPUはアドレス「1002」及び
「2002」の2バイトの印字データをシフトレジスタ
1及び2に転送するようになる。
In addition, the CPU sets buffer pointers P1 and P2 of print data to be transferred to shift registers 1 and 2 at j() as Pl - (< -1) + INT [('! -1) C]
Calculate as P2-Pl+1. For example, as shown by the arrow in FIG. 3, the buffer pointer P1 (2-11+
P2゜2. ) is P 1 +2-s) -(2-1)+INT[(2-1
) C]-1P 212-31″Pl (2-31+ 1-
Therefore, (0002) + (1000) x 1- (10(
12) (0002) + (1000) x 2- (
2002), and the CPU transfers the 2-byte print data at addresses "1002" and "2002" to shift registers 1 and 2.

このように本実施例によれば、ビットイメージバッファ
から印字データが転送されるシフトレジスタ1及び2を
シフト量設定部4により印字すべき行に応じてシフトさ
せるようにしたので、CPUは各行の印字開始前に1度
シフト量を演算するだけでよく、従って、シフトに要す
る時間は極く短時間で済んで、高速印字に好適である。
According to this embodiment, the shift registers 1 and 2 to which print data is transferred from the bit image buffer are shifted by the shift amount setting unit 4 according to the line to be printed, so that the CPU It is only necessary to calculate the shift amount once before starting printing, and therefore the time required for shifting is extremely short, making it suitable for high-speed printing.

又、ビットイメージバッファに何ら加工を施こす必要が
ないとともに、2以上のビットイメージバッファを用い
る必要がなく、データ転送に複雑なビット操作を行なう
必要もなくて、プログラムが簡単になり、既存のソフト
ウェアをそのまま流用できる利点がある。しかも、ビッ
トイメージバッファに空白なく印字データを格納するこ
とができて、ビットイメージバッファとして特に大容量
のものを用いる必要はない。
In addition, there is no need to perform any processing on the bit image buffer, there is no need to use two or more bit image buffers, and there is no need to perform complicated bit operations for data transfer, making the program simpler and easier to use than existing The advantage is that the software can be used as is. Moreover, the print data can be stored in the bit image buffer without blank space, and there is no need to use a particularly large capacity bit image buffer.

尚、上記実施例では10ドツトヘツドを用いた場合につ
いて述べたものであるが、50ドツトヘツド等の多数の
ドツトを有するヘッドを用いる場合でも8ビツトのシフ
トレジスタの数を増加することにより女・1処できるも
のである。
Although the above embodiment describes the case where a 10-dot head is used, even when using a head with a large number of dots such as a 50-dot head, it is possible to increase the number of 8-bit shift registers. It is possible.

又、上記実施例では、8ビツトのシフトレジスタを用い
るようにしたが、CPUが16ビツトであれば、16ビ
ツトのシフトレジスタを用いるようにしてもよい。
Further, in the above embodiment, an 8-bit shift register is used, but if the CPU is 16-bit, a 16-bit shift register may be used.

更に、上記実施例では印字バッファとしてパラレル入力
及びパラレル出力方式のシフトレジスタを用いるように
したが、代りに、バレルシフタを用いるようにしてもよ
く、この場合には、シフト量をデータとして書込むこと
ができるので、シフトクロックを必要とせず、従って、
シフト量設定部の溝底が簡単になる利点がある。
Further, in the above embodiment, a parallel input/parallel output type shift register is used as the print buffer, but a barrel shifter may be used instead, and in this case, the shift amount can be written as data. does not require a shift clock, and therefore,
This has the advantage of simplifying the groove bottom of the shift amount setting section.

[発明の効果コ 本発明のドツトプリンタのヘッド駆動装置は以上説明し
たように、ビットイメージバッファから印字データが転
送される印字バッファをシフト量設定部によりシフトさ
せるようにしたので、複雑なビット操作が不要で高速印
字に好適し、2以上のビットイメージバッファを用いる
必要がなく、又、ビットイメージバッファに空白なく印
字データを格納し得て、ビットイメージバッファとして
特に大容量のものを用いなくて済むという優れた効果を
奏するものである。
[Effects of the Invention] As explained above, in the head drive device of the dot printer of the present invention, the print buffer to which print data is transferred from the bit image buffer is shifted by the shift amount setting section, so that complicated bit operations can be avoided. It is unnecessary and suitable for high-speed printing, there is no need to use two or more bit image buffers, and print data can be stored in the bit image buffer without blank space, so there is no need to use a particularly large capacity bit image buffer. This has an excellent effect.

【図面の簡単な説明】[Brief explanation of the drawing]

図面は本発明の一実施例を示し、第1図は電気的構成を
示すブロック線図、第2図はビットイメージバッファの
構成図、第3図はビットイメージバッファの印字データ
のアドレスを示す図、第4図は作用説明用のタイムチャ
ートである。 図面中、1及び2はシフトレジスタ(印字バッファ) 4はシフト量設定部、 6はタイミ ング発 生回路、 7は駆動回路、 8は駆動部、 9はヘラ ド を示す。
The drawings show an embodiment of the present invention; FIG. 1 is a block diagram showing the electrical configuration, FIG. 2 is a block diagram of the bit image buffer, and FIG. 3 is a diagram showing addresses of print data in the bit image buffer. , FIG. 4 is a time chart for explaining the operation. In the drawings, 1 and 2 are shift registers (print buffers), 4 is a shift amount setting section, 6 is a timing generation circuit, 7 is a drive circuit, 8 is a drive section, and 9 is a helad.

Claims (1)

【特許請求の範囲】[Claims] 1、所定量のビット数を有しそのシフトが可能であって
ビットイメージバッファ内のデータが転送されるパラレ
ル入力及びパラレル出力方式の印字バッファと、この印
字バッファのシフト量を印字すべきデータに応じて設定
するシフト量設定部と、印字ストローブ信号を受けるこ
とにより前記印字バッファからのパラレル出力データに
基づいて所定のタイミングでヘッドを駆動する駆動部と
を具備してなるドットプリンタのヘッド駆動装置。
1. A print buffer with a parallel input and parallel output method that has a predetermined number of bits and can be shifted, and the data in the bit image buffer is transferred, and the amount of shift of this print buffer is used as the data to be printed. A head drive device for a dot printer, comprising: a shift amount setting section that sets a shift amount accordingly; and a drive section that receives a print strobe signal and drives the head at a predetermined timing based on parallel output data from the print buffer. .
JP28530689A 1989-10-31 1989-10-31 Head driver for dot printer Pending JPH03143659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28530689A JPH03143659A (en) 1989-10-31 1989-10-31 Head driver for dot printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28530689A JPH03143659A (en) 1989-10-31 1989-10-31 Head driver for dot printer

Publications (1)

Publication Number Publication Date
JPH03143659A true JPH03143659A (en) 1991-06-19

Family

ID=17689820

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28530689A Pending JPH03143659A (en) 1989-10-31 1989-10-31 Head driver for dot printer

Country Status (1)

Country Link
JP (1) JPH03143659A (en)

Similar Documents

Publication Publication Date Title
US5010513A (en) Data processing apparatus
US6449665B1 (en) Means for reducing direct memory access
KR900009065B1 (en) Method of confirming that a pattern to be printed is a high-density pattern and divisionally printing the pattern, and a dot printer which can print high-quality, high-densitty patterns
JPH03143659A (en) Head driver for dot printer
JPH01136770A (en) Printer
US5793939A (en) Print controlling apparatus
JPS58117036A (en) Print controller
JPH0695067A (en) Liquid crystal display device
JPH0528668B2 (en)
JP2834738B2 (en) Printing equipment
JP2617252B2 (en) Printer
JP3098435B2 (en) Control system for multiple thermal heads
JP2842010B2 (en) Printing control device
KR880001597B1 (en) Korean language image data transmission circuit by a direct memory access
JPS63233843A (en) Bit map memory control device
KR860002122B1 (en) Laser beam printer
JPS60178074A (en) Electronic appliance
JP2758277B2 (en) DPI print control circuit in serial printer
JPS5959459A (en) Reverse-order printing system for printer
JPH0569232B2 (en)
JPH05193195A (en) Printing control device
JPH04158394A (en) Character generator
JPS60168677A (en) Rule image generator
JPS60178072A (en) Electronic appliance
JPH02295772A (en) Raster scan type perfecting printer