[go: up one dir, main page]

JP2005212388A - Data processor for printer - Google Patents

Data processor for printer Download PDF

Info

Publication number
JP2005212388A
JP2005212388A JP2004024186A JP2004024186A JP2005212388A JP 2005212388 A JP2005212388 A JP 2005212388A JP 2004024186 A JP2004024186 A JP 2004024186A JP 2004024186 A JP2004024186 A JP 2004024186A JP 2005212388 A JP2005212388 A JP 2005212388A
Authority
JP
Japan
Prior art keywords
line
data
processing
memory
data processing
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.)
Withdrawn
Application number
JP2004024186A
Other languages
Japanese (ja)
Inventor
Yoshiki Takeoka
良樹 竹岡
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2004024186A priority Critical patent/JP2005212388A/en
Publication of JP2005212388A publication Critical patent/JP2005212388A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Electronic Switches (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To perform processing of data for driving a recording head. <P>SOLUTION: A data processing section 20 performs the processing of data in parallel with the driving of a thermal head 8 in pipe-line processing. The data processing section 20 is equipped with a first processing circuit 26 and a second processing circuit 28 in order to perform the pipe-line processing in the two stages and an intermediate buffer section 27 is provided between the processing circuits 26, 28. The processing is respectively performed by the processing circuits 26, 28 by each one line for every line cycle. The processing time period of each processing can be reduced and the line cycle can be reduced so that the printing time period can be reduced. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、プリンタに用いられるプリンタ用データ処理装置に関するものである。   The present invention relates to a printer data processing apparatus used in a printer.

画像データに基づいて記録ヘッドを駆動し、記録紙にカラー画像を記録するプリンタが各種知られている。このようなプリンタでカラー画像を記録する場合には、画像データに対して各種のデータ処理を施して、ヘッドドライバで記録ヘッドを駆動するデータに変換する必要がある。   Various printers that drive a recording head based on image data and record a color image on recording paper are known. When recording a color image with such a printer, it is necessary to perform various data processing on the image data and convert it into data for driving the recording head with a head driver.

例えば記録ヘッドとしてのサーマルヘッドでカラー感熱記録紙を加熱することのよりカラー画像を発色記録するカラー感熱プリンタでは、データ処理としては画像データをサーマルヘッドの発熱素子の通電時間(発熱量)に応じたデータに変換する必要がある他、記録方式の特性等に応じた各種のデータ処理が必要であり、色空間変換処理,記録紙等の特性に応じた三次元色変換処理,輪郭強調処理,階調を示すデータをサーマルヘッドの発熱素子が発生すべき熱エネルギーに変換するエネルギー変換処理,熱履歴補正演算処理,駆動データへの変換処理等が行われる。   For example, in a color thermal printer that records color images by heating a color thermal recording paper with a thermal head as a recording head, the image data is processed according to the energization time (heat generation amount) of the thermal head heating element as data processing. In addition to data conversion, various data processing according to the characteristics of the recording method is required. Color space conversion processing, three-dimensional color conversion processing according to the characteristics of the recording paper, contour enhancement processing, An energy conversion process for converting data indicating gradation into heat energy to be generated by the heating element of the thermal head, a thermal history correction calculation process, a conversion process to drive data, and the like are performed.

上記のような一連のデータ処理は、商品性を維持できるプリント速度を得るために、高速なCPU、例えばRISC(Reduced Instruction Set Computer)プロセッサや、DSP(Digital Signal Processor)のような高速な演算器と大容量のワークメモリとを用いて、面単位およびライン単位で順次に処理を行っている。また、通常では実際にサーマルヘッドを駆動する前に、例えば色空間変換処理から三次元色変換処理までの一連の処理を面単位で順次に行ってワークメモリに記憶しておき、残る処理をラインの記録に同期してライン単位で順次に行うことにより、一部の処理をサーマルヘッドを駆動と並行して行うことにより、プリント開始前の準備時間を短くして実質的なプリント時間の短縮を図っている。   In order to obtain a printing speed capable of maintaining commerciality, a series of data processing as described above is performed by a high-speed CPU such as a RISC (Reduced Instruction Set Computer) processor or a high-speed computing unit such as a DSP (Digital Signal Processor). And a large-capacity work memory are used to sequentially perform processing in units of planes and lines. Also, normally, before actually driving the thermal head, for example, a series of processing from color space conversion processing to three-dimensional color conversion processing is sequentially performed in units of planes and stored in the work memory, and the remaining processing is performed on the line. By performing the processing sequentially in line units in synchronization with the recording of the print head, a part of the processing is performed in parallel with the driving of the thermal head, thereby shortening the preparation time before starting printing and substantially reducing the printing time. I am trying.

また、特許文献1に記載されるように、各種の処理は、面単位およびライン単位にかかわらず、演算器(CPU)とメモリとをバスで接続した構成により、各処理毎にワークメモリから演算器に画像データを読み出して処理を行い、処理結果を再びワークメモリに書き戻すという手順が繰り替し行われていた。   In addition, as described in Patent Document 1, various processes are performed from a work memory for each process by a configuration in which a computing unit (CPU) and a memory are connected by a bus regardless of a unit of plane and a unit of line. The procedure of reading out the image data to the device, processing it, and writing the processing result back to the work memory has been repeated.

特開2000−172630号JP 2000-172630 A

ところで、プリント時間の短縮を図るには、1ラインを記録する1ライン記録期間を短縮すること、あるいはプリント開始前の準備時間を短くすることで可能になる。1ライン記録期間を短縮するには、サーマルヘッドの駆動と並行して行われる処理数を減らすか、より高速な演算を行わなければならない。   By the way, in order to shorten the printing time, it is possible to shorten the one-line recording period for recording one line or shorten the preparation time before starting printing. In order to shorten the one-line recording period, it is necessary to reduce the number of processes performed in parallel with the driving of the thermal head or to perform a higher speed calculation.

しかしながら、前者では、プリント開始前に実行する処理数が増加し、その処理をより高速な演算器を用いて実行し、ライン記録に並行したデータの処理数を減らすことでライン記録期間を短縮しなければないが、近年では画像の高画質化にともない画像データのサイズが大きくなっており、それに見合う高速な演算器を用いることで製造コストの大きな上昇を招いてしまい好ましくない。   However, in the former, the number of processes to be executed before the start of printing is increased, and the line recording period is shortened by executing the process using a higher-speed computing unit and reducing the number of data processes in parallel with the line recording. However, in recent years, the size of image data has increased with the increase in image quality, and the use of a high-speed computing unit corresponding to that increases the manufacturing cost, which is not preferable.

一方、後者では、上記のように演算器とメモリとをバスで接続した構成により、各処理毎にワークメモリに対してデータの入出力を行う際にデータ転送によるオーバヘッドが大きいので高速化に限界がある。そして、このために、より高速な演算器や高速なアクセスが可能なメモリを用いることは、やはり製造コストの大きな上昇を招いてしまう。   On the other hand, in the latter, because the configuration is such that the arithmetic unit and the memory are connected by a bus as described above, the overhead due to the data transfer is large when data is input / output to / from the work memory for each processing, so the speed is limited. There is. For this reason, the use of a higher-speed computing unit or a memory that can be accessed at a higher speed still causes a significant increase in manufacturing cost.

本発明は、上記問題を解消するためになされたもので、プリントの高速化に適したプリンタ用データ処理装置を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a printer data processing apparatus suitable for increasing the printing speed.

上記目的を達成するために、請求項1記載の発明では、1ラインを記録するライン周期毎に、1ライン分の入力データに対する所定の処理を行って処理済みの1ライン分の出力データを次段の入力データとして出力することにより、パイプライン処理で前記データ処理を行う複数段のデータ処理手段と、各データ処理手段の間にそれぞれ設けられ、ライン周期毎に、次段のデータ処理手段に対して1ライン分の入力データを出力するとともに、前段のデータ処理手段からの1ライン分の出力データが次のライン周期で出力すべきデータとして書き込まれる1個以上の中間バッファとを備えたものである。   In order to achieve the above object, according to the first aspect of the present invention, predetermined processing is performed on input data for one line for each line period in which one line is recorded, and output data for one line that has been processed is then processed. By outputting as the input data of the stage, it is provided between each of the data processing means and a plurality of data processing means for performing the data processing in the pipeline processing, and in the next stage data processing means for each line cycle. One line of input data is output, and one line of output data from the preceding data processing means is provided with one or more intermediate buffers written as data to be output in the next line cycle It is.

請求項2記載の発明では、ライン周期毎に、1ライン分のデータを初段のデータ処理手段の入力データとして出力するとともに、新たな1ライン分の画像データが次のライン周期で出力すべきデータとして書き込まれるラインメモリ手段と、ライン周期毎に、前記データ処理が施された1ライン分のデータを出力するとともに、次のライン周期で出力すべきデータとして最終段のデータ処理手段からの1ライン分の出力データが書き込まれるプリントバッファ手段とを備えたものである。   According to the second aspect of the present invention, for each line cycle, data for one line is output as input data for the first stage data processing means, and image data for a new line is to be output in the next line cycle. The line memory means to be written as, and one line of data subjected to the data processing are output for each line cycle, and one line from the last stage data processing means is output as data to be output in the next line cycle. Print buffer means in which the output data for the remaining minutes are written.

請求項3記載の発明では、ラインメモリ手段を、2つのラインメモリから構成され、一方のラインメモリからデータを読み出している間に、他方のラインメモリに対してデータの書き込みを行い、1ライン毎に読み出しと書き込みを行うラインメモリが切り換わるダブルバッファ構成としたものである。   In the invention according to claim 3, the line memory means is composed of two line memories, and while reading data from one line memory, the data is written to the other line memory, This is a double buffer configuration in which the line memory for reading and writing is switched.

請求項4記載の発明では、プリントバッファ部を、2つのバッファメモリから構成され、一方のバッファメモリからデータを読み出している間に、他方のバッファメモリに対してデータの書き込みを行い、1ライン毎に読み出しと書き込みを行うバッファメモリが切り換わるダブルバッファ構成としたものである。   In the invention according to claim 4, the print buffer unit is composed of two buffer memories, and while data is being read from one buffer memory, data is written to the other buffer memory and line by line In this configuration, the buffer memory for reading and writing is switched to a double buffer configuration.

請求項5記載の発明では、中間バッファを、読み出すべきラインのデータの読み出しと、書き込むべきラインのデータの書き込みとを画素単位で交互に行う1ライン分のバッファメモリから構成としたものである。   According to a fifth aspect of the present invention, the intermediate buffer is constituted by a buffer memory for one line that alternately reads out the data of the line to be read and writes the data of the line to be written in pixel units.

請求項6記載の発明では、パイプライン処理のタイミングを制御するライン制御手段を備え、このライン制御手段は、プリント時には予め設定されたライン周期数分のパイプライン処理を実行させた後に、パイプライン処理を一時的に停止し、記録紙が定速となることに応答してパイプライン処理を再開させるものである。   According to a sixth aspect of the present invention, line control means for controlling the timing of pipeline processing is provided, and the line control means executes pipeline processing for a preset number of line cycles at the time of printing, and then executes pipeline processing. The processing is temporarily stopped, and the pipeline processing is resumed in response to the recording sheet having a constant speed.

請求項7記載の発明では、外部のCPUとの間で通信を行うインタフェースを備え、このインタフェースを介してCPUによってライン周期が設定されるものである。   According to the seventh aspect of the present invention, an interface for communicating with an external CPU is provided, and the line cycle is set by the CPU via this interface.

本発明によれば、1ラインを記録するライン周期毎に、それぞれパイプライン処理でデータ処理を行う複数段のデータ処理手段と、各データ処理手段の間に中間バッファとを設ける構成として、画像データに対して記録ヘッドを駆動するためのデータ処理を行ようにしたから、プリント前の事前処理,1ラインを記録する1ライン記録期間の短縮を図ることができ、プリントを高速に行うことができるようになる。しかも、大容量のワークメモリや高速なプロセッサを用いる必要がないので製造コストを低く抑えることができる。   According to the present invention, image data is configured such that, for each line cycle for recording one line, a plurality of stages of data processing means for performing data processing by pipeline processing and an intermediate buffer between the data processing means are provided. Since the data processing for driving the recording head is performed, the pre-processing before printing, the one-line recording period for recording one line can be shortened, and the printing can be performed at high speed. It becomes like this. In addition, since it is not necessary to use a large-capacity work memory or a high-speed processor, the manufacturing cost can be reduced.

本発明を実施した感熱記録方式のプリンタの概略を図1に示す。CPU2は、プリンタの各部を制御する。このCPU2は、システムバス3を介して、ROM4,画像メモリ5,プリント制御LSI7の間でデータ及び各種コマンドの授受を行う。ROM4には、プリントシーケンスを実行するためのプログラムや各種パラメータが書き込まれており、CPU2は、このROM4のプログラムにしたがって各部を制御する。画像メモリ5には、記録すべき画像の画像データが書き込まれる。   An outline of a thermal recording type printer embodying the present invention is shown in FIG. The CPU 2 controls each part of the printer. The CPU 2 exchanges data and various commands between the ROM 4, the image memory 5, and the print control LSI 7 via the system bus 3. The ROM 4 stores a program for executing a print sequence and various parameters, and the CPU 2 controls each unit according to the program of the ROM 4. In the image memory 5, image data of an image to be recorded is written.

プリンタ用データ処理装置であるプリント制御LSI7は、サーマルヘッド8を駆動してカラー感熱記録紙に画像を記録するために画像メモリ5から読み出された画像データに所定のデータ処理を施す機能の他、サーマルヘッド8のアップ・ダウンやカラー感熱記録紙の搬送を制御する機能をも有したものたなっている。   The print control LSI 7 which is a data processing apparatus for a printer has a function of performing predetermined data processing on image data read from the image memory 5 in order to drive the thermal head 8 and record an image on color thermal recording paper. Also, the thermal head 8 has a function of controlling the up / down of the thermal head 8 and the conveyance of the color thermal recording paper.

メモリカード9は、プリンタに着脱自在とされており、装着時にはCPU2と接続される。このメモリカード9には、例えばデジタルカメラで撮影された画像が圧縮された画像データで記録されている。記録すべき画像の画像データは、CPU2によってメモリカード9から読み出され、このCPU2によって伸長されて画像メモリ5に書き込まれる。画像データとしては、例えば輝度データ,青色色差データ,赤色色差データからなるYCbCr(4:2:2)形式のものが用いられているが、この形式に限らず、JPEG形式やTIFF形式などのような各種形式のものでもよく、また赤色,緑色,青色の画像データやイエロー,マゼンタ,シアンの画像データであってもよい。   The memory card 9 is detachable from the printer, and is connected to the CPU 2 when attached. In this memory card 9, for example, an image taken with a digital camera is recorded as compressed image data. Image data of an image to be recorded is read from the memory card 9 by the CPU 2, decompressed by the CPU 2, and written into the image memory 5. As the image data, for example, the YCbCr (4: 2: 2) format composed of luminance data, blue color difference data, and red color difference data is used, but not limited to this format, such as JPEG format or TIFF format. Various types of data may be used, and red, green, and blue image data, and yellow, magenta, and cyan image data may be used.

記録ヘッドとしてのサーマルヘッド8は、多数、例えば1024個の発熱素子がライン状に配された発熱素子アレイを備えており、この発熱素子アレイをプリントのためにカラー感熱記録紙に圧接した圧接位置と、カラー感熱記録紙から離れた退避位置との間で揺動自在にされている。   The thermal head 8 as a recording head includes a heating element array in which a large number of, for example, 1024 heating elements are arranged in a line, and the heating position is a pressure contact position where the heating element array is pressed against a color thermal recording paper for printing. And a retreat position away from the color thermal recording paper.

カラー感熱記録紙は、周知のように、支持体上にシアン感熱発色層,マゼンタ感熱発色層,イエロー感熱発色層,透明な保護層が順番に層設されている。感熱発色層は、記録する順番に層設されており、イエロー感熱発色層は420nmの紫外線(近紫外線)が、マゼンタ感熱発色層は365nmの紫外線が照射されることによって発色能力が消失する。   As is well known, color heat-sensitive recording paper has a cyan heat-sensitive color forming layer, a magenta heat-sensitive color developing layer, a yellow heat-sensitive color developing layer, and a transparent protective layer sequentially arranged on a support. The thermosensitive coloring layers are arranged in the order of recording. The yellow thermosensitive coloring layer loses its coloring ability when irradiated with 420 nm ultraviolet rays (near ultraviolet rays) and the magenta thermosensitive coloring layer with 365 nm ultraviolet rays.

各感熱発色層は、深層になるほど発色するために大きな発色熱エネルギーが必要である。このカラー感熱記録紙では、イエロー感熱発色層の発色熱エネルギーが最も低く、シアン感熱発色層の発色熱エネルギーが最も高い。発色熱エネルギーは、感熱発色層が発色する直前のバイアス熱エネルギーと、階調値すなわち記録すべき画素の発色濃度に応じた階調熱エネルギーとからなる。バイアス熱エネルギーは各感熱発色層毎に一定の値であるが、階調熱エネルギーは発色濃度が高いほど大きくなる。   Each heat-sensitive color forming layer requires a large color heat energy in order to develop color as the depth increases. In this color thermal recording paper, the yellow thermal coloring layer has the lowest coloring thermal energy, and the cyan thermal coloring layer has the highest coloring thermal energy. The coloring thermal energy is composed of bias thermal energy immediately before the thermosensitive coloring layer develops color and gradation thermal energy corresponding to the gradation value, that is, the coloring density of the pixel to be recorded. The bias thermal energy is a constant value for each thermosensitive coloring layer, but the gradation thermal energy increases as the color density increases.

サーマルヘッド8は、搬送路の上流から下流に向けて搬送中のカラー感熱記録紙に加熱を行って1色の画像を1ラインずつ記録する。1色の画像の記録完了後、カラー感熱記録紙が搬送路の下流から上流に向けて戻され、この後に再びカラー感熱記録紙が上流から下流に向けて搬送されている間に次の1色の画像が1ラインずつ記録される。このようにして、サーマルヘッド8は、カラー感熱記録紙の往復動によって3色面順次でカラー画像を記録する。また、イエロー画像,マゼンタ画像のそれぞれの記録後には、図示しない光定着器からカラー感熱記録紙に対して紫外線を照射することにより、次の色の記録時に前の色感熱発色層が発色しないように記録済みの感熱発色層の発色能力を消失させる。   The thermal head 8 heats the color thermal recording paper being conveyed from the upstream side to the downstream side of the conveyance path to record one color image line by line. After the recording of one color image is completed, the color thermal recording paper is returned from the downstream side to the upstream side of the conveyance path, and then the next one color is transferred while the color thermal recording paper is conveyed again from the upstream side to the downstream side. Are recorded line by line. In this way, the thermal head 8 records a color image in three color planes sequentially by reciprocating movement of the color thermal recording paper. Further, after each yellow image and magenta image is recorded, the color thermosensitive recording paper is irradiated with ultraviolet rays from an unillustrated optical fixing device so that the previous color thermosensitive coloring layer does not develop color during the recording of the next color. The color developing ability of the thermosensitive coloring layer already recorded on the surface is lost.

揺動モータ11,搬送モータ12は、プリント制御LSI7によって駆動される。揺動モータ11は、サーマルヘッド8を圧接位置と退避位置との間で移動する。搬送モータ12は、図示しない給紙ローラー,搬送ローラを駆動して、カラー感熱記録紙の給紙と記録時の搬送を行う。サーマルヘッド8を駆動して画像を記録するプリント期間では、所定のライン周期でカラー感熱記録紙を1ライン分ずつ移動するように搬送モータ12が駆動される。   The swing motor 11 and the transport motor 12 are driven by the print control LSI 7. The swing motor 11 moves the thermal head 8 between the press contact position and the retracted position. The carry motor 12 drives a paper feed roller and a carry roller (not shown) to feed the color thermal recording paper and carry it at the time of recording. In the printing period in which the thermal head 8 is driven to record an image, the conveyance motor 12 is driven so that the color thermal recording paper is moved line by line at a predetermined line cycle.

ヘッド位置センサ13aは、サーマルヘッド8が圧接位置,退避位置にセットされたことを検出する。搬送位置センサ13bは、カラー感熱記録紙の先端を検出する。この搬送位置センサ13bは、それでカラー感熱記録紙の先端が検出されたときにサーマルヘッド8を圧接位置に移動すると、カラー感熱記録紙の記録エリアの数ライン手前にサーマルヘッド8が圧接されるように、サーマルヘッド8の下流側の近傍に配されている。   The head position sensor 13a detects that the thermal head 8 is set at the press contact position and the retracted position. The transport position sensor 13b detects the leading edge of the color thermal recording paper. When the thermal head 8 is moved to the press contact position when the leading edge of the color thermal recording paper is detected, the transport position sensor 13b is brought into contact with the thermal head 8 several lines before the recording area of the color thermal recording paper. Further, it is arranged in the vicinity of the downstream side of the thermal head 8.

ヘッド温度センサ14aは、サーマルヘッド8に取り付けられており、サーマルヘッド8のヘッド温度を測定する。環境温度センサ14bは、プリンタ内の環境温度を測定する。これらの各温度センサ14a,14bで測定されたヘッド温度,環境温度は、熱履歴補正に用いられる。   The head temperature sensor 14 a is attached to the thermal head 8 and measures the head temperature of the thermal head 8. The environmental temperature sensor 14b measures the environmental temperature in the printer. The head temperature and environmental temperature measured by these temperature sensors 14a and 14b are used for thermal history correction.

プリント制御LSI7は、CPUIF(インターフェース)15,割り込み制御回路16,ライン制御部17,モータ制御部18,センサ入力部19,データ処理部20,ヘッド制御部21から構成されている。CPUIF15,ライン制御部17,モータ制御部18,センサ入力部19,データ処理部20,ヘッド制御部21は、プリント制御LSI7内に設けられた内部バス22に接続されており、その内部バス22を介して相互間でデータ,各種コマンドの授受が可能になっている。また、CPUIF15は、システムバス3を介してCPU2と接続されており、プリント制御LSI7の各部とCPU2との間のデータの授受を制御する。   The print control LSI 7 includes a CPUIF (interface) 15, an interrupt control circuit 16, a line control unit 17, a motor control unit 18, a sensor input unit 19, a data processing unit 20, and a head control unit 21. The CPUIF 15, line control unit 17, motor control unit 18, sensor input unit 19, data processing unit 20, and head control unit 21 are connected to an internal bus 22 provided in the print control LSI 7. Data and various commands can be exchanged between each other. The CPUIF 15 is connected to the CPU 2 via the system bus 3 and controls data exchange between each unit of the print control LSI 7 and the CPU 2.

割り込み制御回路16は、プリント制御LSI7内の各部からの信号に応答してCPU2に割込み信号を送出する。この割り込み制御回路16には、ライン制御部17からのライン周期信号,センサ入力部19からの割り込み要求信号が入力される。CPU2は、ライン周期信号に対応した割り込み信号に応答して画像メモリ5からの画像データの読み出しを行い、またセンサ入力部19からの割り込み要求信号に対応した割り込み信号の入力により、プリント制御用LSI7の処理開始やプリント開始を制御する。   The interrupt control circuit 16 sends an interrupt signal to the CPU 2 in response to signals from each part in the print control LSI 7. The interrupt control circuit 16 receives a line cycle signal from the line control unit 17 and an interrupt request signal from the sensor input unit 19. The CPU 2 reads the image data from the image memory 5 in response to the interrupt signal corresponding to the line cycle signal, and receives the interrupt signal corresponding to the interrupt request signal from the sensor input unit 19 to input the print control LSI 7. Control the start of printing and the start of printing.

ライン制御部17は、データ処理のタイミング信号となる一定なライン周期のライン周期信号を発生する。ライン周期信号は、割り込み制御回路16,データ処理部20,モータ制御部21にそれぞれ送られる。ライン周期信号から次のライン周期信号が発生するまでが期間が1ラインを記録する1ライン記録期間であり、ライン周期は、サーマルヘッド8が駆動されるプリント期間中にモータ制御部18から搬送モータ12に出力される搬送パルスと同じ周期となっている。   The line control unit 17 generates a line cycle signal having a constant line cycle, which becomes a data processing timing signal. The line cycle signal is sent to the interrupt control circuit 16, the data processing unit 20, and the motor control unit 21, respectively. The period from the line cycle signal to the generation of the next line cycle signal is a one-line recording period in which one line is recorded. The line cycle is transferred from the motor control unit 18 to the transport motor during the printing period in which the thermal head 8 is driven. 12 has the same cycle as the carrier pulse output to 12.

ライン制御部17は、1色の画像の記録時には、CPU2からの処理開始の指示に応答して、後述するデータ処理部のパイプライン処理の段数に応じた個数のライン周期信号の送出してからライン周期信号の送出をいったん停止し、この後にプリント開始信号が入力されると、予め設定されたディレイ数分のライン周期だけ待ってから搬送パルスに同期したタイミングでライン周期信号の送出を再開する。プリント開始信号は、後述するようにカラー感熱記録紙20の搬送速度が一定とる直前にモータ制御部18から入力される。これにより、実際のサーマルヘッド8の駆動に先行してデータ処理回路20による遅延されるライン数分の処理をデータ処理回路20に行わせている。   At the time of recording an image of one color, the line control unit 17 responds to a processing start instruction from the CPU 2 and transmits a number of line cycle signals corresponding to the number of stages of pipeline processing of the data processing unit described later. When transmission of the line cycle signal is stopped and a print start signal is input after that, the line cycle signal is restarted at the timing synchronized with the carrier pulse after waiting for a line cycle corresponding to the preset number of delays. . The print start signal is input from the motor control unit 18 immediately before the conveyance speed of the color thermal recording paper 20 becomes constant as will be described later. As a result, the data processing circuit 20 performs processing for the number of lines delayed by the data processing circuit 20 prior to the actual driving of the thermal head 8.

また、ライン制御部17は、後述するデータ有効信号,ライン有効信号をデータ処理部20,ヘッド制御部21に送り、データ処理部20によるデータ処理,ヘッド制御部20によるサーマルヘッド8の駆動タイミングを制御する。   Further, the line control unit 17 sends a data valid signal and a line valid signal, which will be described later, to the data processing unit 20 and the head control unit 21, and performs data processing by the data processing unit 20 and driving timing of the thermal head 8 by the head control unit 20. Control.

モータ制御部18は、揺動モータ11,搬送モータ12の駆動をそれぞれ制御する。モータ制御部18は、CPU2から指示により揺動モータ11を駆動し、サーマルヘッド8を圧接位置と退避位置との間で移動させる。また、モータ制御部18は、搬送パルスを送出して搬送モータ12を駆動し、カラー感熱記録紙を搬送する。なお、搬送パルスは、ライン制御部17にも送られ、プリント期間中では搬送パルスとライン周期との同期がとられる。   The motor control unit 18 controls driving of the swing motor 11 and the transport motor 12. The motor control unit 18 drives the swing motor 11 according to an instruction from the CPU 2 to move the thermal head 8 between the press contact position and the retracted position. Further, the motor control unit 18 sends a conveyance pulse to drive the conveyance motor 12 to convey the color thermal recording paper. The carrier pulse is also sent to the line control unit 17, and the carrier pulse and the line cycle are synchronized during the printing period.

搬送モータ12の速度、すなわちカラー感熱記録紙の搬送速度は、搬送パルスの周期が短いほど早くなる。モータ制御部18は、記録時では、搬送パルスの周期と発生パルスの個数を規定した加減速テーブルに基づいて搬送パルスが送出される。この加減速テーブルには、カラー感熱記録紙を所定の搬送速度にまで加速する加速期間、所定の搬送速度で搬送を行いサーマルヘッド8で実際に記録を行うプリント期間、搬送を終了する際の減速期間のぞれぞれについての周期とパルス数とが規定されている。   The speed of the transport motor 12, that is, the transport speed of the color thermal recording paper, becomes faster as the transport pulse period is shorter. At the time of recording, the motor control unit 18 sends the carrier pulse based on an acceleration / deceleration table that defines the cycle of the carrier pulse and the number of generated pulses. The acceleration / deceleration table includes an acceleration period for accelerating the color thermal recording paper to a predetermined conveyance speed, a printing period for conveying the thermal recording paper at a predetermined conveyance speed and actually recording with the thermal head 8, and a deceleration at the end of conveyance. The period and the number of pulses for each period are specified.

プリント期間の搬送パルスの周期は、カラー感熱記録紙を定速で搬送するために一定にされており、その周期は前述のようにライン周期と同一にされている。また、加速期間では搬送パルスの周期が徐々に短くされてプリント期間の搬送速度にまで搬送速度が加速されるようになっており、減速期間では徐々に搬送速度が減少するように搬送パルスの周期が徐々に長くされている。   The period of the conveyance pulse in the printing period is constant for conveying the color thermal recording paper at a constant speed, and the period is the same as the line period as described above. Also, during the acceleration period, the conveyance pulse cycle is gradually shortened so that the conveyance speed is accelerated to the conveyance speed during the printing period, and during the deceleration period, the conveyance pulse period is reduced so that the conveyance speed gradually decreases. Has been gradually getting longer.

各期間の搬送パルス数は、記録するカラー感熱記録紙のサイズなどに応じてCPU2によって設定される。また、この例では記録する色によってライン周期及び搬送パルスの周期が異なるので、ライン周期及び搬送パルスの周期は、各色の記録に先立ち、CPU2によってライン制御部17,モータ制御部18に設定される。   The number of transport pulses in each period is set by the CPU 2 in accordance with the size of the color thermal recording paper to be recorded. In this example, since the line cycle and the carrier pulse cycle are different depending on the color to be recorded, the line cycle and the carrier pulse cycle are set in the line controller 17 and the motor controller 18 by the CPU 2 prior to the recording of each color. .

上記モータ制御部18は、加速期間が終了する際、すなわち一定周期の搬送パルスの送出を開始する直前にプリント開始信号を発生して、これをライン制御部17に送る。これにより、前述のように、プリント開始信号から所定のディレイ数分の周期を待ってからライン周期信号の送出が再開される。ディレイ数は、例えば、カラー感熱記録紙のサーマルヘッドが圧接する位置から記録エリアの先端までの長さと加速期間のパルス数に応じて決められている。   The motor control unit 18 generates a print start signal at the end of the acceleration period, that is, immediately before starting the transmission of a fixed period of carrier pulses, and sends this to the line control unit 17. Thus, as described above, the transmission of the line period signal is resumed after waiting for a period corresponding to the predetermined number of delays from the print start signal. The number of delays is determined according to, for example, the length from the position where the thermal head of the color thermal recording paper is pressed to the leading edge of the recording area and the number of pulses in the acceleration period.

センサ入力部19には、各位置センサ13a,13b、各温度センサ14a,14bからの検出信号が入力される。このセンサ部19は、サーマルヘッド8が圧接位置に移動したことをヘッド位置センサ13aから検出信号に基づいて検出したときに、プリントを開始させるために割り込み要求信号を割り込み制御回路16に送る。また、搬送位置センサ13bでカラー感熱記録の先端を検出したたときには、サーマルヘッド8を圧接位置に移動させるために割り込み要求信号を割り込み制御回路16に送る。   Detection signals from the position sensors 13a and 13b and the temperature sensors 14a and 14b are input to the sensor input unit 19. When detecting that the thermal head 8 has moved to the pressure contact position based on the detection signal from the head position sensor 13a, the sensor unit 19 sends an interrupt request signal to the interrupt control circuit 16 in order to start printing. When the leading end of the color thermal recording is detected by the transport position sensor 13b, an interrupt request signal is sent to the interrupt control circuit 16 in order to move the thermal head 8 to the press contact position.

さらに、センサ入力部19は、A/D変換器を有しており、ヘッド温度センサ14a,環境温度センサ14bからの検出信号をヘッド温度,及び環境温度のデジタル情報に変換し、これらを内部バス22を介してデータ処理部20に送る。   Further, the sensor input unit 19 has an A / D converter, converts detection signals from the head temperature sensor 14a and the environmental temperature sensor 14b into digital information of the head temperature and the environmental temperature, and converts them into an internal bus. The data is sent to the data processing unit 20 via 22.

データ処理部20には、CPU2によって画像メモリ5から1ライン分ずつ読み出された画像データが入力される。このデータ処理部20は、画像データに対して詳細を後述するようにライン単位でパイプライン処理によるデータ処理を施してサーマルヘッド8を駆動して画像を記録するための通電時間データを作成して出力する。   Image data read from the image memory 5 by one line by the CPU 2 is input to the data processing unit 20. As will be described in detail later, the data processing unit 20 performs data processing by pipeline processing in units of lines and creates energization time data for recording the image by driving the thermal head 8. Output.

ヘッド制御部21は、データ処理部20からの1ライン分の通電時間データが入力される。このヘッド制御部21は、通電時間データに基づいてサーマルヘッド8の対応する発熱素子を発熱させてカラー感熱記録紙を加熱する。これにより、カラー感熱記録紙に1色の画像を1ラインずつ記録する。   The head controller 21 receives energization time data for one line from the data processor 20. The head controller 21 heats the color thermal recording paper by causing the corresponding heating element of the thermal head 8 to generate heat based on the energization time data. Thus, one color image is recorded line by line on the color thermal recording paper.

ヘッド制御部21は、1ラインを記録するための1ライン期間中に一定の間隔でカウントアップされるカウンタや、このカウンタのカウント値と各通電時間データとを比較し通電時間データが大きい場合に出力を「Hレベル」とする1ライン分のコンパレータや、ストローブ信号の入力中でコンパレータの出力が「Hレベル」となっているときに対応するサーマルヘッド8の発熱素子を通電して発熱させる回路などから構成されている。   The head control unit 21 compares a counter that is counted up at regular intervals during one line period for recording one line, or when the energization time data is large by comparing the count value of this counter with each energization time data. A comparator for one line whose output is “H level”, or a circuit that generates heat by energizing the heating element of the corresponding thermal head 8 when the output of the comparator is “H level” while the strobe signal is being input. Etc.

各1ライン記録期間中には、データ処理部20から1ライン分の通電時間データがヘッド制御部21によって読み出されるとともに、その内部で1ライン記録期間中の最大の通電時間と同じ長さのストローブ信号が発生する。ヘッド制御部21内のカウンタは、1ラインの記録開始時にリセットされて所定の単位時間毎にカウントアップする。これにより、サーマルヘッド8の各発熱素子は、対応する通電時間データに表される時間だけ通電されて発熱し、通電時間データの元になった画像データが示す濃度に発色させる熱エネルギーをカラー感熱記録紙に与える。   During each one-line recording period, energization time data for one line is read from the data processing unit 20 by the head control unit 21, and the strobe having the same length as the maximum energization time during the one-line recording period therein. A signal is generated. The counter in the head controller 21 is reset at the start of recording of one line and counts up every predetermined unit time. As a result, each heating element of the thermal head 8 is energized only for the time represented by the corresponding energization time data to generate heat, and the thermal energy for color development at the density indicated by the image data based on the energization time data is color heat sensitive. Give to the recording paper.

また、ヘッド制御部21には、サーマルヘッド8の各発熱素子の抵抗値を測定する抵抗値測定ユニット21aが設けられている。抵抗値測定ユニット21aは、例えばプリンタの電源がオンとされた直後に、CPU2に制御されて各発熱素子の抵抗値をそれぞれ測定する。測定された各抵抗値は、CPU2に送られ、その抵抗値に基づいて発熱素子が発生すべき熱エネルギーを補正する補正値を発熱素子毎に算出する。各補正値は、データ処理部20に送られてセットされる。   Further, the head control unit 21 is provided with a resistance value measurement unit 21 a that measures the resistance value of each heating element of the thermal head 8. For example, immediately after the printer is turned on, the resistance value measurement unit 21a is controlled by the CPU 2 to measure the resistance value of each heating element. Each measured resistance value is sent to the CPU 2 and a correction value for correcting the heat energy to be generated by the heating element is calculated for each heating element based on the resistance value. Each correction value is sent to the data processing unit 20 and set.

図2にデータ処理部20の構成を示す。データ処理部20は、ラインメモリ部25,第1処理回路26,中間バッファ部27,第2処理回路28,プリントバッファ部29から構成されている。ラインメモリ部25,中間バッファ部27,プリントバッファ部29は、図示しないコントローラによりデータのリード(読み出し)・ライト(書き込み)が制御される。第1処理回路26,第2処理回路28は、データ処理手段となっており、2段のデータ処理手段でパイプライン処理を行う。   FIG. 2 shows the configuration of the data processing unit 20. The data processing unit 20 includes a line memory unit 25, a first processing circuit 26, an intermediate buffer unit 27, a second processing circuit 28, and a print buffer unit 29. In the line memory unit 25, the intermediate buffer unit 27, and the print buffer unit 29, data reading (reading) and writing (writing) are controlled by a controller (not shown). The first processing circuit 26 and the second processing circuit 28 serve as data processing means, and perform pipeline processing with a two-stage data processing means.

ラインメモリ部25には、ライン周期信号の発生毎、すなわちライン周期毎に画像データが1ライン分ずつCPU2によって入力される。このラインメモリ部25は、第1ラインメモリ25aと第2ラインメモリ25bとから構成されており、一方のラインメモリから画像データが読み出されている間に、他方のラインメモリに画像データの書き込みが可能とされるとともに、1ライン毎に書き込みと読み出しとが切り換えられるダブルバファ構成となっている。これは、1ライン記録期間中で、1ライン分の画像データを読み出して第1処理回路26において処理を行っている間に、次に処理すべき1ライン分の画像データをラインメモリ部25に書き込んでおく必要があるためである。なお、画像データとしては、輝度データ、各色差データがそれぞれ書き込まれ、また読み出される。   The line memory unit 25 receives image data for each line by the CPU 2 every time a line period signal is generated, that is, every line period. The line memory unit 25 includes a first line memory 25a and a second line memory 25b. While image data is being read from one line memory, image data is written to the other line memory. And a double buffer configuration in which writing and reading can be switched for each line. This is because the image data for one line to be processed next is stored in the line memory unit 25 while the image data for one line is read and processed in the first processing circuit 26 during one line recording period. This is because it needs to be written. As image data, luminance data and color difference data are written and read out.

このラインメモリ部25は、ライン制御部17からのライン有効信号L0が入力されているときに読み出しが有効となり、データ有効信号D0が入力されている間に読出し動作を行い、画像データとともにデータ有効信号D1を第1処理回路26に送る。   The line memory unit 25 is enabled to read when the line valid signal L0 from the line control unit 17 is input, performs a read operation while the data valid signal D0 is input, and the data valid together with the image data. The signal D1 is sent to the first processing circuit 26.

第1処理回路26は、データ有効信号D1とともに入力される1ライン分の画像データを順次に取り込み、第1処理を施して順次に出力する。この第1処理は、4:2:2の比率でサンプリングされて作成された輝度データ、各色差データを1:1:1のデータに変換する同時化処理,この画像データをY(イエロー),M(マゼンタ),C(シアン)の各色の階調データに変換する色空間変換処理,階調データに対して輪郭を強調する輪郭強調処理とからなる。この第1処理回路26は、第1処理を施して得られる階調データのうち記録すべき色の階調データをデータ有効信号D2とともに順次に中間バッファ部27に出力する。   The first processing circuit 26 sequentially captures image data for one line input together with the data valid signal D1, performs first processing, and sequentially outputs it. This first process is a luminance process sampled and created at a 4: 2: 2 ratio, a synchronization process for converting each color difference data into 1: 1: 1 data, and this image data is converted into Y (yellow), It consists of a color space conversion process for converting to M (magenta) and C (cyan) gradation data, and an edge enhancement process for enhancing the outline of the gradation data. The first processing circuit 26 sequentially outputs the gradation data of the color to be recorded out of the gradation data obtained by performing the first process to the intermediate buffer unit 27 together with the data valid signal D2.

中間バッファ部27は、ラインメモリ部25と同様にダブルバッファ構成とされており、それぞれ1ライン分の記憶容量を有した第1中間バッファメモリ27a,第2中間バファメモリ27bとから構成されている。データ有効信号D2とともに第1処理回路26からの階調データが入力されると、書き込みに設定されている一方の中間バッファメモリに1ライン分の階調データの書き込みが行われ、ライン制御部17からのライン有効信号L3,データ有効信号D3が入力されることによって読出しに設定されている他方の中間バッファメモリから1ライ分の階調データが読み出される。   Similar to the line memory unit 25, the intermediate buffer unit 27 has a double buffer configuration, and includes a first intermediate buffer memory 27a and a second intermediate buffer memory 27b each having a storage capacity for one line. When the gradation data from the first processing circuit 26 is input together with the data valid signal D2, the gradation data for one line is written into one intermediate buffer memory set to the writing, and the line controller 17 When the line valid signal L3 and the data valid signal D3 are input, gradation data for one line is read from the other intermediate buffer memory set to read.

上記中間バッファ部27の書込み及び読出しは、ライン周期毎に行われ、1ライン記録期間内では、1周期前(前回の1ライン記録期間中)に書き込まれた1ライン分の階調データの読出しが行われるとともに、新な1ライン分の階調データが書き込みが行われる。中間バッファ部27から読み出された階調データは、データ有効信号D4とともに第2処理回路28に送られる。   Writing and reading of the intermediate buffer unit 27 is performed for each line cycle, and within one line recording period, reading of gradation data for one line written one cycle before (during the previous one line recording period). And gradation data for a new line is written. The gradation data read from the intermediate buffer unit 27 is sent to the second processing circuit 28 together with the data valid signal D4.

第2処理回路28は、データ有効信号D4とともに中間バッファ部27から出力される階調データに対して第2処理を施してデータ有効信号D5とともに順次に出力する。第2処理は、エネルギー変換処理,熱履歴補正,抵抗値正処理,通電時間変換処理からなる。   The second processing circuit 28 performs the second process on the gradation data output from the intermediate buffer unit 27 together with the data valid signal D4, and sequentially outputs it together with the data valid signal D5. The second processing includes energy conversion processing, thermal history correction, resistance value positive processing, and energization time conversion processing.

エネルギー変換処理は、カラー感熱記録紙の発色特性に応じたパラメータで階調データを発熱素子が発生すべき熱エネルギー値に変換する。熱履歴補正では、サーマルヘッド8の蓄熱状態に応じたパラメータで発熱素子に発生させる熱エネルギーを増減する。抵抗値正処理では、抵抗値測定ユニット21aで測定された抵抗値に基づいた補正値をパラメータとして用いて濃度ムラの発生を防止するための補正を行う。エネルギー変換処理,抵抗値正処理で用いられる各パラメータは、記録に先立ってCPU2によって画像記録前に第2処理回路28にセットされる。また、熱履歴補正では、各温度センサ14a,14bで測定されるヘッド温度及び環境温度がパラメータの一部として用いられる。   In the energy conversion process, the gradation data is converted into a thermal energy value to be generated by the heating element with a parameter corresponding to the color development characteristics of the color thermal recording paper. In the thermal history correction, the thermal energy generated in the heating element is increased or decreased by a parameter corresponding to the thermal storage state of the thermal head 8. In the resistance value positive process, a correction value based on the resistance value measured by the resistance value measuring unit 21a is used as a parameter to perform correction for preventing density unevenness. Each parameter used in the energy conversion process and the resistance value positive process is set in the second processing circuit 28 by the CPU 2 before image recording before recording. In the thermal history correction, the head temperature and the environmental temperature measured by the temperature sensors 14a and 14b are used as part of the parameters.

プリントバッファ部29は、ラインメモリ部25,中間バッファ部27と同様なダブルバッファ構成とされており、第1プリントバッファメモリ29aと、第2プリントバッファメモリ29bとからなる。プリントバッファ部29には、第2処理回路28から1ライン分の通電時間データとデータ有効信号D5が入力される。データ有効信号D5が入力されると、入力中の通電時間データを書き込み側のプリントバッファメモリに順次に取り込んで保持し、次のライン周期にヘッド制御部21によって読み出される。   The print buffer unit 29 has a double buffer configuration similar to that of the line memory unit 25 and the intermediate buffer unit 27, and includes a first print buffer memory 29a and a second print buffer memory 29b. The print buffer unit 29 is supplied with energization time data for one line and a data valid signal D5 from the second processing circuit. When the data valid signal D5 is input, the energization time data being input is sequentially fetched and held in the print-side print buffer memory, and read out by the head controller 21 in the next line cycle.

1ライン分のデータについての、ラインメモリ部25からの読み出しから中間バッファ部27への書き込みまでの一連の処理は1ライン記録期間内に完了する。同様に、中間バッファ部27からの読み出しからプリントバッファ部29への書き込みまでの一連の処理は1ライン記録期間内に完了する。また、ラインメモリ部25からプリントバッファ部29までは、内部バス22とは別に用意されたバスによって各部間で直接にデータ,信号の授受が可能にされている。   A series of processing from reading from the line memory unit 25 to writing to the intermediate buffer unit 27 for one line of data is completed within one line recording period. Similarly, a series of processing from reading from the intermediate buffer unit 27 to writing to the print buffer unit 29 is completed within one line recording period. Further, from the line memory unit 25 to the print buffer unit 29, data and signals can be directly exchanged between the respective units by a bus prepared separately from the internal bus 22.

次に上記構成の作用について説明する。プリンタの電源をオンとすると、抵抗値測定ユニット21aが自動的に作動され、サーマルヘッド8の各発熱素子の抵抗値がそれぞれ測定される。この測定によって得られる各発熱素子の抵抗値は、内部バス22,CPUIF15,システムバス3を介してCPU2に送られる。そして、測定された各抵抗値に基づき、各発熱素子に対応した補正値がCPU2によって算出され、各補正値がシステムバス3,CPUIF15,内部バス22を介してデータ処理部20に送られ、第2処理回路28に抵抗値補正処理用のパラメータとしてセットされる。   Next, the operation of the above configuration will be described. When the power supply of the printer is turned on, the resistance value measurement unit 21a is automatically operated, and the resistance value of each heating element of the thermal head 8 is measured. The resistance value of each heating element obtained by this measurement is sent to the CPU 2 via the internal bus 22, the CPUIF 15, and the system bus 3. Then, based on each measured resistance value, a correction value corresponding to each heating element is calculated by the CPU 2, and each correction value is sent to the data processing unit 20 via the system bus 3, CPUIF 15, and internal bus 22. 2 is set in the processing circuit 28 as a parameter for resistance value correction processing.

電源をオンとした後に、図示しない操作部を操作してプリント指示を与えると、CPU2によってメモリカード9から記録すべき画像のデータが読み出され、これを伸長して得られる画像データが画像メモリ5に書き込まれる。   When a print instruction is given by operating an operation unit (not shown) after the power is turned on, image data to be recorded is read from the memory card 9 by the CPU 2, and image data obtained by decompressing the image data is stored in the image memory. 5 is written.

また、モータ制御部18には、CPU2からヘッドアップの指示が与えられる。この指示を受けたモータ制御部18により、揺動モータ11が駆動されてサーマルヘッド8が退避位置にセットされる。そして、ヘッド位置センサ13aによってサーマルヘッド8が退避位置にセットされたことが検出されると、割り込み要求信号がセンサ入力部19から割り込み制御回路16に送出されて、CPU2に割り込み信号が送られる。   The motor control unit 18 is given a head-up instruction from the CPU 2. Upon receipt of this instruction, the motor control unit 18 drives the swing motor 11 to set the thermal head 8 at the retracted position. When the head position sensor 13a detects that the thermal head 8 is set at the retracted position, an interrupt request signal is sent from the sensor input unit 19 to the interrupt control circuit 16, and an interrupt signal is sent to the CPU 2.

上記の割り込み信号に応答して、CPU2からはモータ制御部18に対して給送指示が与えられ、搬送モータ12が駆動される。この搬送モータ12の駆動により給送ローラ及び搬送ローラが回転され、給紙カセットからカラー感熱記録紙がサーマルヘッド8に向けて給紙される。   In response to the interrupt signal, the CPU 2 gives a feed instruction to the motor control unit 18 to drive the transport motor 12. The feed motor and the transport roller are rotated by driving the transport motor 12, and the color thermal recording paper is fed from the paper feed cassette toward the thermal head 8.

カラー感熱記録紙の給紙が行われ、カラー感熱記録紙の先端が搬送位置センサ13bによって検出されると、割り込み制御回路16に割り込み要求信号がセンサ入力部19から送出され、CPU2に割り込み信号が送られる。この割り込み信号に応答してCPU2からモータ制御部18に搬送モータ12の停止と、サーマルヘッド8のダウンが指示される。   When color thermal recording paper is fed and the leading edge of the color thermal recording paper is detected by the transport position sensor 13b, an interrupt request signal is sent from the sensor input unit 19 to the interrupt control circuit 16, and an interrupt signal is sent to the CPU 2. Sent. In response to this interrupt signal, the CPU 2 instructs the motor controller 18 to stop the transport motor 12 and to bring down the thermal head 8.

モータ制御部18により、搬送モータ12が停止されてカラー感熱記録紙の搬送が停止される。この搬送の停止後に、揺動モータ11が駆動されてサーマルヘッド8が圧接位置にセットされて、カラー感熱記録紙に圧接される。   The motor control unit 18 stops the conveyance motor 12 and stops the conveyance of the color thermal recording paper. After the conveyance is stopped, the swing motor 11 is driven to set the thermal head 8 at the press contact position and press the color thermal recording paper.

上記のようにサーマルヘッド8が圧接位置にセットされたことが、ヘッド位置検出センサ13aによって検出されると、センサ入力部19からの割り込み要求信号が割り込み制御回路16に送られ、CPU2に割り込み信号が入力される。この割り込み信号の入力により、CPU2によって画像メモリ5から第1ラインの画像データの読み出しが行われ、システムバス3,CPUIF15、内部バス22を介してデータ処理部20のラインメモリ部25に送られる。ラインメモリ部25は、初期状態では第1ラインメモリ25aにデータが書き込まれるようにされているため、第1ラインの画像データが第1ラインメモリ25aに書き込まれる。   When the head position detection sensor 13a detects that the thermal head 8 has been set at the pressure contact position as described above, an interrupt request signal from the sensor input unit 19 is sent to the interrupt control circuit 16, and an interrupt signal is sent to the CPU 2. Is entered. In response to the input of this interrupt signal, the CPU 2 reads the first line of image data from the image memory 5 and sends it to the line memory unit 25 of the data processing unit 20 via the system bus 3, CPUIF 15, and internal bus 22. Since the line memory unit 25 is configured to write data to the first line memory 25a in the initial state, the image data of the first line is written to the first line memory 25a.

第1ラインの画像データの書き込が完了すると、図3に示すように、CPU2から処理開始の指示が出力され、これがCPUIF15を介して、ライン制御部17とモータ制御部18と送られる。この処理開始の指示を受けて、モータ制御部18は、加減速テーブルに基づいて搬送モータ12に対して搬送パルスの送出を開始する。これにより、カラー感熱記録紙は、停止状態から加速されて、一定の搬送速度で搬送されるようになる。   When the writing of the image data of the first line is completed, as shown in FIG. 3, an instruction to start processing is output from the CPU 2 and sent to the line control unit 17 and the motor control unit 18 via the CPU IF 15. Upon receiving this processing start instruction, the motor control unit 18 starts sending the carrier pulse to the carrier motor 12 based on the acceleration / deceleration table. As a result, the color thermal recording paper is accelerated from the stopped state and is conveyed at a constant conveyance speed.

一方、ライン制御部17は処理開始の指示を受けると、その直後から割り込み制御回路16,データ処理部20,ヘッド制御部21に対してライン周期信号の送出を開始するとともに、ラインメモリ部25に対してライン有効信号L0の送出を開始する。このライン有効信号L0は、1色の画像についての第1処理が完了するまでの間、継続して出力される。なお、図3中の読出し及び書込みのタイミングを示す波形に付記した数字はラインの番号を示している。   On the other hand, when receiving an instruction to start processing, the line control unit 17 starts sending a line cycle signal to the interrupt control circuit 16, the data processing unit 20, and the head control unit 21 immediately after that, and On the other hand, transmission of the line valid signal L0 is started. The line valid signal L0 is continuously output until the first process for one color image is completed. Note that the numbers appended to the waveforms indicating the read and write timings in FIG. 3 indicate the line numbers.

また、このライン周期信号L1の送出開始と同時に、ライン制御部17からは1番目のデータ有効信号D0がラインメモリ部25に送られる。ライン有効信号L0の入力中にデータ有効信号D0が入力されることにより、第1ラインメモリ25aから第1ラインの各画像データが所定の処理レートで順番に読み出される。そして、この第1ラインの画像データが出力されている期間には第1処理回路26に1番目のデータ有効信号D1が送られる。   Simultaneously with the start of transmission of the line cycle signal L 1, the first data valid signal D 0 is sent from the line control unit 17 to the line memory unit 25. When the data valid signal D0 is input while the line valid signal L0 is being input, each image data of the first line is sequentially read from the first line memory 25a at a predetermined processing rate. The first data valid signal D1 is sent to the first processing circuit 26 during the period when the image data of the first line is being output.

1番目のデータ有効信号D1を受け、第1処理回路26は、そのデータ有効信号D1の入力中にラインメモリ部25から出力される画像データを順次に取り込み、取り込んだ画像データに第1処理を施して出力する。このときに、第1処理回路26による第1処理は、ラインメモリ部25からの画像データの読み出しに同期して、すなわち所定の処理レートで行われる。   Upon receiving the first data valid signal D1, the first processing circuit 26 sequentially fetches the image data output from the line memory unit 25 during the input of the data valid signal D1, and performs the first process on the fetched image data. And output. At this time, the first processing by the first processing circuit 26 is performed in synchronization with the reading of the image data from the line memory unit 25, that is, at a predetermined processing rate.

第1処理が施されることにより、画像データ(輝度データ,青色色差データ,赤色色差データ)は、イエロ−,マゼンタ,シアンの各階調データに変換され、輪郭強調処理が施された後に、記録すべき色、すなわちイエロー階調データが所定の処理レートで順次にデータ有効信号D2とともに中間バッファ部27に出力される。   By performing the first processing, the image data (luminance data, blue color difference data, red color difference data) is converted into yellow, magenta, and cyan gradation data, subjected to contour enhancement processing, and then recorded. The color to be processed, that is, yellow gradation data, is sequentially output to the intermediate buffer unit 27 together with the data valid signal D2 at a predetermined processing rate.

中間バッファ部27は、最初に第1中間バッファメモリ27aにデータ書き込みが行われるようにされているから、データ有効信号D2を受け、それとともに入力される第1ラインのイエロー階調データが第1中間バッファメモリ27aに順次に書き込まれる。   Since the intermediate buffer unit 27 is initially configured to write data to the first intermediate buffer memory 27a, the intermediate buffer unit 27 receives the data valid signal D2, and the yellow gradation data of the first line input together with the data valid signal D1 is the first. The data is sequentially written into the intermediate buffer memory 27a.

第1ラインのイエロー階調データが第1中間バッファメモリ27aに書き込まれた後に、2番目のライン周期信号が発生する。そして、このライン周期信号に同期して、ライン制御部17からイエロー画像用のライン有効信号L3の送出が開始されるとともに、1番目のデータ有効信号D3が中間バッファ部27に送られる。   After the yellow gradation data of the first line is written into the first intermediate buffer memory 27a, the second line cycle signal is generated. In synchronism with this line cycle signal, the line control unit 17 starts to send the line valid signal L3 for yellow image, and sends the first data valid signal D3 to the intermediate buffer unit 27.

ライン有効信号L3とともにデータ有効信号D3が入力されることに応答して、中間バッファ部27の第1中間バッファメモリ27aから第1ラインの各イエロー階調データの読出しが所定の処理レートで順次に行われて、1番目のデータ有効信号D4とともに第2処理回路28に送られる。   In response to the input of the data valid signal D3 together with the line valid signal L3, the yellow gradation data of the first line is sequentially read from the first intermediate buffer memory 27a of the intermediate buffer unit 27 at a predetermined processing rate. This is performed and sent to the second processing circuit 28 together with the first data valid signal D4.

中間バファ部27から順次出力されるイエロー階調データは、1番目のデータ有効信号D4が入力されることで第2処理回路28に順次に取り込まれて、所定の処理レートで第2処理が施され、1番目のデータ有効信号D5ともに出力される。これにより、第1ラインのイエロー階調データは、熱履歴補正,抵抗補正処理が施された通電時間データとして出力される。   The yellow gradation data sequentially output from the intermediate buffer unit 27 is sequentially taken into the second processing circuit 28 by the input of the first data valid signal D4, and the second processing is performed at a predetermined processing rate. The first data valid signal D5 is output together. Thereby, the yellow gradation data of the first line is output as energization time data subjected to the thermal history correction and resistance correction processing.

上記のようにして得られる第1ラインの通電時間データは、1番目のデータ有効信号D5とともに第2信号処理回路28からプリントバッファ部29に送られる。そして、このプリントバッファ部29はデータ有効信号5が入力されることによって、第1ラインの通電時間データを第1プリントバッファメモリ29aに順次に取り込んで保持する。   The energization time data of the first line obtained as described above is sent from the second signal processing circuit 28 to the print buffer unit 29 together with the first data valid signal D5. When the data valid signal 5 is input to the print buffer unit 29, the energization time data of the first line is sequentially fetched and held in the first print buffer memory 29a.

ところで、第1ラインの画像データのラインメモリ部25への書き込みが完了した後に発生する1番目のライン周期信号が割り込み制御回路16に入力される。すると、CPU2に割り込み信号が送られ、この割り込み信号を受けてCPU2により画像メモリ5から第2ラインの各画像データが読み出されて、これがラインメモリ部25に送られる。   Incidentally, the first line cycle signal generated after the writing of the image data of the first line to the line memory unit 25 is completed is input to the interrupt control circuit 16. Then, an interrupt signal is sent to the CPU 2. Upon receipt of this interrupt signal, the CPU 2 reads out each image data of the second line from the image memory 5 and sends it to the line memory unit 25.

ラインメモリ部25は、第1ラインの画像データの書き込みが完了した時点で、第1ラインメモリ25aが読み出し用に、第2ラインメモリ25bが書き込み用に切り換えられているから、第2ラインの画像データは、第1ラインの画像データの読み出しと競合することなく、第2ラインメモリ25bに順次書き込まれる。   Since the first line memory 25a is switched for reading and the second line memory 25b is switched for writing when the writing of the image data of the first line is completed, the line memory unit 25 has changed the image of the second line. Data is sequentially written into the second line memory 25b without conflicting with the reading of the image data of the first line.

そして、2番目のライン周期信号の発生に同期して、2番目のデータ有効信号D0がライン制御部17からラインメモリ部25に送られることにより、この第2ラインメモリ25bから第2ラインの画像データが読み出され、2番目のデータ有効信号D1とともに第1処理回路26に送られる。この第2ラインの各画像データは、第1処理回路26で第1処理が施されてそれぞれイエロー階調データに変換され、2番目のデータ有効信号D2とともに中間バッファ部27に送られる。このときに中間バッファ部27は、第2中間バッファメモリ27bが書き込み用にされているから、この第2中間バッファメモリ27bに第2ラインのイエロー階調データが書き込まれる。したがって、第1ラインの読み出しとは競合しない。   In synchronization with the generation of the second line cycle signal, the second data valid signal D0 is sent from the line control unit 17 to the line memory unit 25, so that the second line image is output from the second line memory 25b. Data is read and sent to the first processing circuit 26 together with the second data valid signal D1. Each image data of the second line is subjected to the first processing by the first processing circuit 26, converted into yellow gradation data, and sent to the intermediate buffer unit 27 together with the second data valid signal D2. At this time, since the second intermediate buffer memory 27b is used for writing in the intermediate buffer unit 27, the yellow gradation data of the second line is written into the second intermediate buffer memory 27b. Therefore, it does not compete with the reading of the first line.

さらに、上記の2番目のライン周期信号に同期して、画像メモリ5から第3ラインの画像データが読み出されラインメモリ部25に送られる。2番目のライン周期信号が発生した時点では、第1ラインメモリ25aからの第1ラインの画像データの読み出しが完了しており、この第1ラインメモリ25aが書き込み用に切り換えられている。そして、この第1ラインメモリ25aに第3ラインの画像データが書き込まれる。なお、このときに、第2ラインメモリ25bからは、上述のように第2ラインの画像データが読み出されている。   Further, in synchronization with the second line cycle signal, the image data of the third line is read from the image memory 5 and sent to the line memory unit 25. When the second line cycle signal is generated, reading of the image data of the first line from the first line memory 25a is completed, and the first line memory 25a is switched for writing. Then, the image data of the third line is written in the first line memory 25a. At this time, the second line image data is read from the second line memory 25b as described above.

上記のようにして第1ラインの通電時間データがプリントバッファ部29に、第2ラインのイエロー階調データが中間バッファ部27に、第3ラインの画像データがラインメモリ部25に書き込まれた状態となると、ライン周期信号の発生が一時的に停止される。このように第3ラインの画像データをラインメモリ部25に書き込んだ状態まで事前処理を進め、一時的にライン周期信号の発生を停止しプリント開始の待機状態とする。これにより、プリント開始の指示に応答して直ちにサーマルヘッド8を駆動できるようにしている。   As described above, the energization time data of the first line is written in the print buffer unit 29, the yellow gradation data of the second line is written in the intermediate buffer unit 27, and the image data of the third line is written in the line memory unit 25. Then, the generation of the line period signal is temporarily stopped. In this way, the pre-processing is advanced to the state where the image data of the third line is written in the line memory unit 25, the generation of the line cycle signal is temporarily stopped, and the print start standby state is set. Thus, the thermal head 8 can be driven immediately in response to an instruction to start printing.

ライン周期信号の発生が一時的に停止された状態となってから、加速期間が終了してプリント期間となる。そして、このプリント期間となる直前にプリント開始信号がモータ制御部18からライン制御部17に対して送られる。すると、ライン制御部17は、予め設定されたディレイ数(この例では2周期)分の搬送パルスの入力を待ってから、搬送パルスに同期したタイミングでライン周期信号の送出を再開する。すなわち、カラー感熱記録紙の搬送速度が一定になることに応答してパイプライン処理が再開される。   After the generation of the line cycle signal is temporarily stopped, the acceleration period ends and the print period starts. A print start signal is sent from the motor control unit 18 to the line control unit 17 immediately before the print period starts. Then, the line control unit 17 waits for the input of carrier pulses for a preset number of delays (two cycles in this example), and then resumes sending the line cycle signal at a timing synchronized with the carrier pulses. That is, the pipeline processing is resumed in response to the constant conveyance speed of the color thermal recording paper.

送出再開直後に発生される3番目のライン周期信号と同時にライン制御部17からヘッド制御部21に対してライン有効信号L6の送出が開始される。このライン有効信号L6は、1色の画像の最終ラインの記録が完了するまで送出される。   Simultaneously with the third line cycle signal generated immediately after the restart of the transmission, the line control unit 17 starts to transmit the line valid signal L6 to the head control unit 21. This line valid signal L6 is sent out until the recording of the last line of an image of one color is completed.

ライン有効信号L6が入力されることによりヘッド制御部21は、ライン周期信号の入力毎にプリントバッファ部29から通電時間データを1ライン分ずつ読み出して、それに基づいてサーマルヘッド8の各発熱素子を駆動するようになる。このため、3番目のライン周期信号が発生すると、ヘッド制御部21により第1プリンタバッファメモリ29aから第1ラインの通電時間データが読み出され、これに基づいてサーマルヘッド8の発熱素子が駆動される。これにより、イエロー画像の第1ラインがカラー感熱記録紙に記録される。   When the line valid signal L6 is input, the head control unit 21 reads energization time data for one line from the print buffer unit 29 for each input of the line cycle signal, and based on this, the heating elements of the thermal head 8 are read out. Come to drive. Therefore, when the third line cycle signal is generated, the head controller 21 reads the energization time data of the first line from the first printer buffer memory 29a, and the heating element of the thermal head 8 is driven based on this. The As a result, the first line of the yellow image is recorded on the color thermal recording paper.

他方、3番目のライン周期信号に同期して、上記と同様に、割り込み信号,各データ有効信号の送出が行われ、第2中間バッファメモリ27bの第2ラインのイエロー階調データが第2処理回路28に送られる。そして、このイエロー階調データに第2処理が施されることで得られる通電時間データがプリントバッファ部29に送られ、その第2プリントバッファメモリ29bに書き込まれる。また、第1ラインメモリ25aから第3ラインのイエロー階調データが第1処理回路26に送られ、第1処理が施されて得られるイエロー階調データが第1中間バッファメモリ27aに書き込まれる。さらには、画像メモリ5から読み出された第4ラインの画像データが第2ラインメモリ25bに書き込まれる。   On the other hand, in the same manner as described above, an interrupt signal and each data valid signal are transmitted in synchronization with the third line cycle signal, and the yellow gradation data of the second line of the second intermediate buffer memory 27b is subjected to the second processing. It is sent to the circuit 28. The energization time data obtained by performing the second process on the yellow gradation data is sent to the print buffer unit 29 and written into the second print buffer memory 29b. Further, the yellow gradation data of the third line is sent from the first line memory 25a to the first processing circuit 26, and the yellow gradation data obtained by performing the first processing is written into the first intermediate buffer memory 27a. Further, the image data of the fourth line read from the image memory 5 is written into the second line memory 25b.

この後に、4番目のライン周期信号が発生すると、上記と同様にして、第2ラインの通電時間データがヘッド制御部21に読み出される。これにより、サーマルヘッド8の各発熱素子が第2ラインの通電時間データに基づいて駆動され、カラー感熱記録紙紙にイエロー画像の第2ラインが記録される。また、第3ラインのイエロー階調データに第2処理を施して得られる通電時間データが第1プリントバッファメモリ29aに書き込まれ、第4ラインのイエロー階調データに第1処理を施したイエロー階調データが第2中間バッファメモリ27bに書き込まれる。さらには、画像メモリ5から読み出された第5ラインの画像データが第1ラインメモリ25aに書き込まれる。以下、同様にして、イエロー画像の第3ライン以降が記録される。   Thereafter, when the fourth line cycle signal is generated, the energization time data of the second line is read out to the head controller 21 in the same manner as described above. Thereby, each heating element of the thermal head 8 is driven based on the energization time data of the second line, and the second line of the yellow image is recorded on the color thermal recording paper. The energization time data obtained by performing the second process on the yellow gradation data of the third line is written in the first print buffer memory 29a, and the yellow scale obtained by performing the first process on the yellow gradation data of the fourth line. The tone data is written into the second intermediate buffer memory 27b. Further, the image data of the fifth line read from the image memory 5 is written into the first line memory 25a. Thereafter, the third and subsequent lines of the yellow image are recorded in the same manner.

イエロー画像の記録されたカラー感熱記録紙の部分は、図示しない光定着器からの近紫外線が照射されることにより光定着される。イエロー画像の最終ラインの記録が終了し、カラー感熱記録紙の後端までの光定着が完了すると、サーマルヘッド8が退避位置に移動されてからカラー感熱記録紙が戻される。この搬送中に、カラー感熱記録紙の先端が搬送位置センサ13bにに検出されると、搬送が停止されるとともに、サーマルヘッド8がカラー感熱記録紙に圧接される。   The portion of the color thermal recording paper on which the yellow image is recorded is optically fixed by being irradiated with near ultraviolet rays from an optical fixing device (not shown). When the recording of the last line of the yellow image is completed and the light fixing up to the rear end of the color thermal recording paper is completed, the color thermal recording paper is returned after the thermal head 8 is moved to the retracted position. If the leading edge of the color thermal recording paper is detected by the conveyance position sensor 13b during the conveyance, the conveyance is stopped and the thermal head 8 is pressed against the color thermal recording paper.

サーマルヘッド8をカラー感熱記録紙に圧接した後に、マゼンタに応じたパラメータ,ライン周期等をセットしてから、イエロー画像の場合と同様な手順でパイプライン処理で第1処理、第2処理を行いながら、マゼンタ画像を1ラインずつ記録する。   After the thermal head 8 is pressed against the color thermal recording paper, parameters, line cycle, etc. are set according to magenta, and then the first and second processes are performed by pipeline processing in the same procedure as in the case of a yellow image. The magenta image is recorded line by line.

マゼンタ画像の記録されたカラー感熱記録紙の部分は、光定着器からの紫外線が照射されることにより光定着される。マゼンタ画像の最終ラインの記録が終了し、カラー感熱記録紙の後端までの光定着が完了するとサーマルヘッド8による圧接が解除されてからカラー感熱記録紙が戻される。この搬送中に、カラー感熱記録紙の先端が搬送位置センサ13bに検出されると、搬送が停止されるとともに、サーマルヘッド8がカラー感熱記録紙に圧接される。サーマルヘッド8圧接された後に、シアンプリント工程が開始され、上記と同様な手順でシアン画像が1ラインずつ記録される。   The portion of the color thermal recording paper on which the magenta image is recorded is photofixed by irradiating with ultraviolet rays from a photofixer. When the recording of the last line of the magenta image is completed and the light fixing up to the rear end of the color thermal recording paper is completed, the pressure contact by the thermal head 8 is released, and then the color thermal recording paper is returned. If the leading edge of the color thermal recording paper is detected by the conveyance position sensor 13b during the conveyance, the conveyance is stopped and the thermal head 8 is pressed against the color thermal recording paper. After the thermal head 8 is pressed, a cyan printing process is started, and a cyan image is recorded line by line in the same procedure as described above.

上記のように、ラインの記録に同期させて1ライン分ずつ各段のデータ処理をするようにパイプライン処理を行っているから、ライン周期を短くすることができプリントの高速化を図ることができるのと同時に、データ処理のための大容量のメモリが不要となる。   As described above, since the pipeline processing is performed so as to process each stage of data for each line in synchronism with the line recording, the line cycle can be shortened and the printing speed can be increased. At the same time, a large-capacity memory for data processing becomes unnecessary.

上記実施形態では 中間バッファ部をダブルバッファ構成としているが、処理レ−トがシステムクロックの4倍以上である場合には、読み出しと書き込みのタイミングをずらした制御を行うことにより、ダブルバッファ構成ではなく1ライン分のラインメモリで構成することができる。   In the above embodiment, the intermediate buffer unit has a double buffer configuration. However, when the processing rate is four times or more of the system clock, the double buffer configuration has a control by shifting the read and write timings. In other words, a line memory for one line can be used.

図4は、中間バッファ部を1ライン分のラインメモリで構成した例を示すものである。ドットイネーブルは、1画素の処理タイミングの基準となる信号であり、システムクロックの4倍の周期で繰り返し発生される。すなわち、処理レ−トがシステムクロックの4倍になっている。読み出しと書き込みは、いずれもシステムクロックの4倍の周期で行われ、互いにシステムクロックの2周期分タイミングずらして行う。これにより、中間バッファ部を1ライン分のラインメモリで構成しながら、読出しと書き込みとが競合しないようにできる。   FIG. 4 shows an example in which the intermediate buffer unit is constituted by a line memory for one line. The dot enable is a signal serving as a reference for processing timing of one pixel, and is repeatedly generated at a cycle four times the system clock. That is, the processing rate is four times the system clock. Both reading and writing are performed at a cycle four times the system clock, and the timing is shifted by two system clock cycles. As a result, it is possible to prevent the reading and writing from competing while the intermediate buffer unit is constituted by a line memory for one line.

上記各実施形態では、第1処理回路と第2処理回路との間に中間バファ部を設けることにより、ライン周期毎にライン単位で処理を進める構成であるが、中間バッファ部を設けずに第1処理回路で1ライン中の(i+1)番目の画素のデータを処理している間に、第2処理回路で同じラインのi番目の画素のデータを処理するように処理を進めてもよい。   In each of the above-described embodiments, the intermediate buffer unit is provided between the first processing circuit and the second processing circuit so that the processing is performed in units of lines for each line period. While the data of the (i + 1) -th pixel in one line is processed by one processing circuit, the processing may be advanced so that the data of the i-th pixel of the same line is processed by the second processing circuit.

また、上記各実施形態では、1個のサーマルヘッドを用い、カラー感熱記録紙を3往復している間にカラー画像を記録する1ヘッド3パス方式であるが、各色のそれぞれにサーマルヘッドを設け、カラー感熱記録紙を1方向に1回搬送している間にカラー画像を記録する3ヘッド1パス方式のものであってもよい。この場合には、上記と同様に構成されるプリント制御LSIを各サーマルヘッドのそれぞれに対応して設ける。そして、1つのプリント制御LSIで搬送モータを制御するとともに、このプリント制御LSIからのプリント開始信号により、それぞれ各サーマルヘッドの位置に応じたディレイ数でサーマルヘッドの駆動を開始させる構成とすれば、容易に3ヘッド1パス方式のカラー感熱プリンタを構成できる。   In each of the above embodiments, one thermal head is used and a color image is recorded while the thermal recording paper is reciprocated three times. However, a thermal head is provided for each color. Alternatively, a three-head, one-pass system may be used in which a color image is recorded while the color thermal recording paper is conveyed once in one direction. In this case, a print control LSI configured in the same manner as described above is provided for each thermal head. Then, while controlling the conveyance motor with one print control LSI, and by starting the drive of the thermal head with the number of delays corresponding to the position of each thermal head, according to the print start signal from this print control LSI, A 3-head 1-pass color thermal printer can be easily constructed.

上記ではサーマルプリンタについて説明したが、熱溶融型のプリンタやインクジェット方式のプリンタ等に本発明を利用することができる。また、パイプライン処理の段数は、2段に限るものではなく3段以上であってもよい。例えば同時化処理,色空間変換処理,輪郭強調処理,エネルギー変換処理,熱履歴補正,抵抗値正処理,通電時間変換処理のそれぞれを行う処理回路を設け、パイプライン処理を7段としてもよい。   Although the thermal printer has been described above, the present invention can be applied to a thermal melting type printer, an ink jet type printer, and the like. Further, the number of stages of pipeline processing is not limited to two, but may be three or more. For example, a processing circuit that performs each of a synchronization process, a color space conversion process, an outline enhancement process, an energy conversion process, a thermal history correction, a resistance value correction process, and an energization time conversion process may be provided, and the pipeline process may have seven stages.

本発明を実施した感熱方式のプリンタの構成の概略を示すブロック図である。1 is a block diagram illustrating an outline of a configuration of a thermal printer that embodies the present invention. パイプライン処理を行うデータ処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the data processing part which performs a pipeline process. プリント制御用LSIの動作タイミングを示すタイミングチャートである。6 is a timing chart showing the operation timing of the print control LSI. 中間バッファ部を1ライン分のラインメモリで構成した例をタイミングチャートで示すものである。An example in which the intermediate buffer unit is configured by a line memory for one line is shown in a timing chart.

符号の説明Explanation of symbols

2 CPU
5 画像メモリ
8 サーマルヘッド
7 プリント制御LSI
17 ライン制御部
20 データ処理部
25 ラインメモリ部
26,28 処理回路
27 中間バッファ部
29 プリントバッファ部
2 CPU
5 Image memory 8 Thermal head 7 Print control LSI
17 Line control unit 20 Data processing unit 25 Line memory unit 26, 28 Processing circuit 27 Intermediate buffer unit 29 Print buffer unit

Claims (7)

記録ヘッドを駆動して1ラインずつ画像を記録するプリンタに用いられ、画像データに対して記録ヘッドを駆動するためのデータ処理を行うプリンタ用データ処理装置において、
1ラインを記録するライン周期毎に、1ライン分の入力データに対する所定の処理を行って処理済みの1ライン分の出力データを次段の入力データとして出力することにより、パイプライン処理で前記データ処理を行う複数段のデータ処理手段と、各データ処理手段の間にそれぞれ設けられ、ライン周期毎に、次段のデータ処理手段に対して1ライン分の入力データを出力するとともに、前段のデータ処理手段からの1ライン分の出力データが次のライン周期で出力すべきデータとして書き込まれる1個以上の中間バッファとを備えたことを特徴とするプリンタ用データ処理装置。
In a printer data processing apparatus that is used in a printer that drives a recording head to record an image line by line, and performs data processing for driving the recording head on image data.
By performing predetermined processing on input data for one line and outputting processed output data for one line as input data for the next stage for each line cycle for recording one line, the data is obtained by pipeline processing. A plurality of stages of data processing means for processing and each data processing means are provided, and for each line period, input data for one line is output to the next stage data processing means, and the previous stage data A printer data processing apparatus, comprising: one or more intermediate buffers in which output data for one line from the processing means is written as data to be output in the next line cycle.
ライン周期毎に、1ライン分のデータを初段のデータ処理手段の入力データとして出力するとともに、新たな1ライン分の画像データが次のライン周期で出力すべきデータとして書き込まれるラインメモリ手段と、ライン周期毎に、前記データ処理が施された1ライン分のデータを出力するとともに、次のライン周期で出力すべきデータとして最終段のデータ処理手段からの1ライン分の出力データが書き込まれるプリントバッファ手段とを備えていることを特徴とする請求項1記載のプリンタ用データ処理装置。   Line memory means for outputting data for one line as input data for the first stage data processing means for each line period, and for writing image data for a new line as data to be output in the next line period; A print in which data for one line subjected to the data processing is output for each line cycle, and output data for one line from the data processing means at the final stage is written as data to be output in the next line cycle. 2. The printer data processing apparatus according to claim 1, further comprising buffer means. 前記ラインメモリ手段は、2つのラインメモリから構成され、一方のラインメモリからデータを読み出している間に、他方のラインメモリに対してデータの書き込みを行い、1ライン毎に読み出しと書き込みを行うラインメモリが切り換わるダブルバッファ構成であることを特徴とする請求項2記載のプリンタ用データ処理装置。   The line memory means is composed of two line memories. While reading data from one line memory, the line memory means writes data to the other line memory, and reads and writes each line. 3. The data processing apparatus for a printer according to claim 2, wherein the data processing apparatus has a double buffer configuration in which a memory is switched. 前記プリントバッファ部は、2つのバッファメモリから構成され、一方のバッファメモリからデータを読み出している間に、他方のバッファメモリに対してデータの書き込みを行い、1ライン毎に読み出しと書き込みを行うバッファメモリが切り換わるダブルバッファ構成であることを特徴とする請求項2記載のプリンタ用データ処理装置。   The print buffer unit is composed of two buffer memories, and writes data to the other buffer memory while reading data from one buffer memory, and reads and writes data for each line. 3. The data processing apparatus for a printer according to claim 2, wherein the data processing apparatus has a double buffer configuration in which a memory is switched. 前記中間バッファは、読み出すべきラインのデータの読み出しと、書き込むべきラインのデータの書き込みとを画素単位で交互に行う1ライン分のバッファメモリから構成されていることを特徴とする請求項1ないし4のいずれか1項に記載のプリンタ用データ処理装置。   5. The intermediate buffer includes a buffer memory for one line that alternately reads out data of a line to be read and writes data of a line to be written in units of pixels. The data processing apparatus for a printer according to any one of the above. パイプライン処理のタイミングを制御するライン制御手段を備え、このライン制御手段は、プリント時には予め設定されたライン周期数分のパイプライン処理を実行させた後に、パイプライン処理を一時的に停止し、記録紙が定速となることに応答してパイプライン処理を再開させることを特徴とする請求項1ないし5のいずれか1項に記載のプリンタ用データ処理装置。   Line control means for controlling the timing of pipeline processing is provided, and this line control means temporarily stops pipeline processing after executing pipeline processing for a predetermined number of line periods during printing, 6. The printer data processing apparatus according to claim 1, wherein the pipeline processing is resumed in response to the recording paper having a constant speed. 外部のCPUとの間で通信を行うインタフェースを備え、このインタフェースを介してCPUによってライン周期が設定されることを特徴とする請求項1ないし6のいずれか1項に記載のプリンタ用データ処理装置。   7. The printer data processing apparatus according to claim 1, further comprising an interface for communicating with an external CPU, wherein the line cycle is set by the CPU via the interface. .
JP2004024186A 2004-01-30 2004-01-30 Data processor for printer Withdrawn JP2005212388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004024186A JP2005212388A (en) 2004-01-30 2004-01-30 Data processor for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004024186A JP2005212388A (en) 2004-01-30 2004-01-30 Data processor for printer

Publications (1)

Publication Number Publication Date
JP2005212388A true JP2005212388A (en) 2005-08-11

Family

ID=34906950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004024186A Withdrawn JP2005212388A (en) 2004-01-30 2004-01-30 Data processor for printer

Country Status (1)

Country Link
JP (1) JP2005212388A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009208460A (en) * 2007-12-06 2009-09-17 Seiko Epson Corp Image processing device, image forming apparatus, and image forming method
US7667377B2 (en) 2005-12-08 2010-02-23 Murata Manufacturing Co., Ltd. Laminated piezoelectric element and process for producing the same
JP2014019046A (en) * 2012-07-18 2014-02-03 Kyocera Document Solutions Inc Image forming device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7667377B2 (en) 2005-12-08 2010-02-23 Murata Manufacturing Co., Ltd. Laminated piezoelectric element and process for producing the same
JP2009208460A (en) * 2007-12-06 2009-09-17 Seiko Epson Corp Image processing device, image forming apparatus, and image forming method
JP2014019046A (en) * 2012-07-18 2014-02-03 Kyocera Document Solutions Inc Image forming device

Similar Documents

Publication Publication Date Title
JPH02269063A (en) Method and apparatus for recording
US8657437B2 (en) Bar code printing device and bar code printing method
US20150085054A1 (en) Control device, printer, and control method of a printer
JP2005212388A (en) Data processor for printer
JP4918871B2 (en) Printer and control method thereof
US6897887B2 (en) Heat history control system, printer, and program
JP2000185424A (en) Method for controlling history of thermal printer
JP3357972B2 (en) Data DMA transfer circuit for thermal transfer line printer
JP7698956B2 (en) Printer, printing control method, and program
JP2005169641A (en) Image forming apparatus and control method thereof
JPH11268343A (en) Recording apparatus
JP4079958B2 (en) Thermal history control device, operation method thereof, and thermal printer
JP2875826B2 (en) Recording device
JP4228028B2 (en) Image input / output device
JP2003080756A (en) Thermal printer
JP4895720B2 (en) Data transfer apparatus and image forming apparatus having the same
JP2000177161A (en) Method for controlling thermal history of printer
JP2000255092A (en) Image recording apparatus and storage medium for storing control procedure of image recording apparatus
JP2005040971A (en) Printer and its recording method
JP6622541B2 (en) Recording apparatus, data transfer method, and program
JPH02125763A (en) Recording method and device
JPS63290769A (en) Image recorder
JP2007168351A (en) Printing method and printing apparatus
JP4282647B2 (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND THERMAL PRINTER
JP3876683B2 (en) Printer and printer preheating control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060515

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061221

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20071101