JP2016107508A - Head control device and printer - Google Patents

Head control device and printer Download PDF

Info

Publication number
JP2016107508A
JP2016107508A JP2014247089A JP2014247089A JP2016107508A JP 2016107508 A JP2016107508 A JP 2016107508A JP 2014247089 A JP2014247089 A JP 2014247089A JP 2014247089 A JP2014247089 A JP 2014247089A JP 2016107508 A JP2016107508 A JP 2016107508A
Authority
JP
Japan
Prior art keywords
print data
head
state machine
cpu
printing operation
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.)
Granted
Application number
JP2014247089A
Other languages
Japanese (ja)
Other versions
JP6393175B2 (en
Inventor
学 秋元
Manabu Akimoto
学 秋元
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.)
Toshiba Corp
Toshiba TEC Corp
Original Assignee
Toshiba Corp
Toshiba TEC Corp
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 Toshiba Corp, Toshiba TEC Corp filed Critical Toshiba Corp
Priority to JP2014247089A priority Critical patent/JP6393175B2/en
Publication of JP2016107508A publication Critical patent/JP2016107508A/en
Application granted granted Critical
Publication of JP6393175B2 publication Critical patent/JP6393175B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To provide a head control device which is reduced in the number of times of interruption to a CPU to enable stable print control.SOLUTION: A head control device includes a print data transfer circuit 21, a counter 34 and a state machine 32. A print data transfer circuit 38 transfers the print data to be printed to a print head 28. A counter counts the number of times of repetition of printing operation set by a CPU 20. The state machine updates a counter every time transfer of the print data to the print head is completed by a print data transfer circuit after the number of times of repetition is set by the CPU, and controls the printing operation until the counter shows completion of the printing operation for the number of times of repetition.SELECTED DRAWING: Figure 2

Description

本発明の実施形態は、プリンタ装置に用いられるヘッド制御装置及びプリンタ装置に関する。   Embodiments described herein relate generally to a head control device and a printer device used in a printer device.

従来、インクジェットヘッドが搭載されたプリンタ装置は、装置全体の制御を司るプロセッサ(CPU(Central Processing Unit))が搭載される。CPUは、プリンタ装置が接続されたパーソナルコンピュータなどの上位機器からの指示に応じて、インクジェットヘッドを駆動制御する駆動制御回路を介して印刷動作を制御する。   Conventionally, a printer device equipped with an inkjet head is equipped with a processor (CPU (Central Processing Unit)) that controls the entire device. The CPU controls the printing operation via a drive control circuit that drives and controls the inkjet head in response to an instruction from a host device such as a personal computer to which the printer device is connected.

従来、プリンタ装置のCPUは、例えばある一連の動作を繰り返し実行させる場合、駆動制御をするソフトウェアに基づいて繰り返し動作を制御する。すなわち、CPUは、ヘッドのステータスや駆動制御回路のステータスなどの動作ステータスを監視し、一連の動作が終了したことを検知すると、次の動作を実行させる等の制御を繰り返す。従来、次の動作を起動する方法としては、例えば、動作終了割込み等を用いてCPU等で割込みを受け付け、割込み処理ルーチン内で実行する方法を用いている。   Conventionally, when a CPU of a printer device repeatedly executes a certain series of operations, for example, the CPU controls the operations repeatedly based on software for controlling driving. That is, the CPU monitors the operation status such as the head status and the status of the drive control circuit, and repeats control such as executing the next operation when detecting the end of a series of operations. Conventionally, as a method for starting the next operation, for example, a method of accepting an interrupt by a CPU or the like using an operation end interrupt or the like and executing it in an interrupt processing routine is used.

特開2002−55830号公報JP 2002-55830 A

このように従来のプリンタ装置は、繰り返し動作を制御する場合に、CPU等で割り込みを受け付けて割込み処理ルーチンを実行する方法を用いている。   As described above, the conventional printer apparatus uses a method of executing an interrupt processing routine by accepting an interrupt by a CPU or the like when controlling a repetitive operation.

しかしながら、CPU等で割込みが多重になる場合には、ソフトウェアの処理ルーチンが複雑になるおそれがあった。さらに、割り込み処理ルーチン内で次の動作を実行させると、次の起動開始時間が要求処理に間に合わなかったり、起動タイミングが不安定になったりするなどのおそれがあった。   However, when interrupts are multiplexed by the CPU or the like, the software processing routine may be complicated. Further, when the next operation is executed in the interrupt processing routine, there is a risk that the next start time may not be in time for the requested process, or the start timing may become unstable.

本発明が解決しようとする課題は、CPUへの割込み回数を低減させて、安定した印刷制御をすることが可能なヘッド制御装置及びプリンタ装置を提供することである。   The problem to be solved by the present invention is to provide a head control device and a printer device capable of reducing the number of interruptions to the CPU and performing stable printing control.

実施形態によれば、ヘッド制御装置は、印刷データ転送回路とカウンタとステートマシンとを有する。印刷データ転送回路は、印刷対象とする印刷データを印刷ヘッドに転送する。カウンタは、CPUにより設定される印刷動作の繰り返し回数をカウントする。ステートマシンは、前記CPUにより前記繰り返し回数が設定された後、前記印刷データ転送回路による前記印刷データの前記印刷ヘッドへの転送完了毎に前記カウンタを更新し、前記カウンタが前記繰り返し回数分の印刷動作の完了を示すまで印刷動作を制御する。   According to the embodiment, the head control device includes a print data transfer circuit, a counter, and a state machine. The print data transfer circuit transfers print data to be printed to the print head. The counter counts the number of repetitions of the printing operation set by the CPU. After the number of repetitions is set by the CPU, the state machine updates the counter every time the print data transfer circuit transfers the print data to the print head, and the counter prints the number of repetitions. Control the printing operation until it indicates completion of the operation.

本実施形態におけるプリンタ装置の構成を示すブロック図。FIG. 2 is a block diagram illustrating a configuration of a printer apparatus according to the present embodiment. 本実施形態におけるヘッド制御装置の詳細な構成を示すブロック図。FIG. 2 is a block diagram illustrating a detailed configuration of a head control device according to the present embodiment. 本実施形態におけるプリンタ装置の動作について示すフローチャート。6 is a flowchart illustrating the operation of the printer apparatus according to the present embodiment. 本実施形態における第1変形例であるヘッド制御装置の構成を示すブロック図。The block diagram which shows the structure of the head control apparatus which is the 1st modification in this embodiment. 本実施形態における第2変形例であるヘッド制御装置の構成を示すブロック図。The block diagram which shows the structure of the head control apparatus which is the 2nd modification in this embodiment.

以下、実施の形態について、図面を参照して説明する。
図1は、本実施形態におけるプリンタ装置10の構成を示すブロック図である。プリンタ装置10は、図示1インタフェースを介して、例えばパーソナルコンピュータ(PC)12に接続される。PC12は、例えば印刷機能を有するアプリケーションプログラム(プリンタソフトウェア)を実装する電子機器である。PC12は、プリンタソフトウェアの制御によりプリンタ装置10と通信して、印刷対象とする印刷データを含む様々なデータやコマンドをプリンタ装置10に送信する。
Hereinafter, embodiments will be described with reference to the drawings.
FIG. 1 is a block diagram illustrating a configuration of a printer apparatus 10 according to the present embodiment. The printer device 10 is connected to, for example, a personal computer (PC) 12 via an interface shown in FIG. The PC 12 is an electronic device in which an application program (printer software) having a printing function is mounted, for example. The PC 12 communicates with the printer device 10 under the control of printer software, and transmits various data and commands including print data to be printed to the printer device 10.

本実施形態におけるプリンタ装置10は、例えばインクジェット方式により印刷をするプリンタである。プリンタ装置10は、PC12(プリンタソフトウェア)の制御に応じて、PC12から送信された印刷データを印刷するための印刷処理を実行する。   The printer device 10 according to the present embodiment is a printer that performs printing by, for example, an inkjet method. The printer device 10 executes print processing for printing print data transmitted from the PC 12 in accordance with control of the PC 12 (printer software).

図1に示すように、プリンタ装置10は、CPU20、ヘッド制御装置21、電源制御回路22、ステータスレジスタ23、記憶装置24、外部I/F(Interface)制御回路25などを有する。   As shown in FIG. 1, the printer device 10 includes a CPU 20, a head control device 21, a power supply control circuit 22, a status register 23, a storage device 24, an external I / F (Interface) control circuit 25, and the like.

CPU20は、PC12の制御のもとで、プリンタ装置10全体の制御を司る。CPU20は、PC12から受信した印刷データをヘッド制御装置21に出力し、この印刷データに対する印刷処理の実行を指示する。CPU20は、PC12から一連の印刷動作を繰り返して実行する処理(以下、繰り返し処理)の要求があった場合(例えば、複数枚分の印刷処理)に、ヘッド制御装置21(駆動制御回路26)に対して繰り返し回数を設定する。CPU20は、割込み回路20Aを有する。CPU20は、ヘッド制御装置21(駆動制御回路26)において繰り返し処理が完了した場合に、駆動制御回路26(後述する割込み回路36)からの割込みを割込み回路20Aにより受け付けて、次の動作に移行させる等の制御をする。   The CPU 20 controls the entire printer apparatus 10 under the control of the PC 12. The CPU 20 outputs the print data received from the PC 12 to the head control device 21 and instructs execution of print processing for the print data. When there is a request from the PC 12 to repeatedly execute a series of printing operations (hereinafter referred to as “repetitive processing”) (for example, printing processing for a plurality of sheets), the CPU 20 causes the head control device 21 (drive control circuit 26) to Set the number of repetitions. The CPU 20 has an interrupt circuit 20A. When the repetitive processing is completed in the head control device 21 (drive control circuit 26), the CPU 20 receives an interrupt from the drive control circuit 26 (interrupt circuit 36 described later) by the interrupt circuit 20A and shifts to the next operation. And so on.

ヘッド制御装置21は、CPU20の制御のもとで印刷動作を制御する。ヘッド制御装置21は、駆動制御回路26とヘッド28(印刷ヘッド)とを含む。ヘッド28は、インクジェットヘッドである。駆動制御回路26は、CPU20から出力された印刷データをヘッド28に転送して、ヘッド28による印刷媒体(例えばインクジェット用紙)への印刷を制御する。駆動制御回路26は、印刷動作を制御するための専用のハードウェア(後述するステートマシン32)を実装することにより、CPU20への割込みの発生を低減させる。すなわち、駆動制御回路26は、CPU20による割込み処理ルーチンによる制御負荷を低減させて、安定した印刷制御を実現する。   The head control device 21 controls the printing operation under the control of the CPU 20. The head control device 21 includes a drive control circuit 26 and a head 28 (print head). The head 28 is an inkjet head. The drive control circuit 26 transfers print data output from the CPU 20 to the head 28 and controls printing on a print medium (for example, inkjet paper) by the head 28. The drive control circuit 26 reduces the occurrence of interrupts to the CPU 20 by mounting dedicated hardware (a state machine 32 described later) for controlling the printing operation. That is, the drive control circuit 26 reduces the control load caused by the interrupt processing routine by the CPU 20 and realizes stable print control.

電源制御回路22は、ヘッド28を含む各部の駆動電力の供給を制御する。   The power supply control circuit 22 controls the supply of driving power to each unit including the head 28.

ステータスレジスタ23は、ヘッド28やヘッド制御装置21や(駆動制御回路26)に係る種々のステータスを記憶する。ステータスは、例えばヘッド28の温度及び電圧、駆動制御回路26のFIFOステータス、印刷制御ステータス等を含む。ステータスレジスタ23により記憶されるステータスは、CPU20により読み取られる。   The status register 23 stores various statuses related to the head 28, the head control device 21, and the (drive control circuit 26). The status includes, for example, the temperature and voltage of the head 28, the FIFO status of the drive control circuit 26, the print control status, and the like. The status stored in the status register 23 is read by the CPU 20.

記憶装置24は、CPU20によりアクセスされるRAM(Random Access Memory)、ROM(Read Only Memory)等の記憶媒体を含む。記憶装置24は、CPU20により実行されるプログラムや各種データを記憶する。   The storage device 24 includes storage media such as RAM (Random Access Memory) and ROM (Read Only Memory) accessed by the CPU 20. The storage device 24 stores programs executed by the CPU 20 and various data.

外部I/F制御回路25は、例えばUSB(Universal Serial Bus)インタフェースに対応した機器を接続し、この機器との間でデータ通信を行う。   The external I / F control circuit 25 connects, for example, a device that supports a USB (Universal Serial Bus) interface, and performs data communication with this device.

図2は、本実施形態におけるヘッド制御装置21の詳細な構成を示すブロック図である。
図2に示すように、駆動制御回路26は、レジスタ30、ステートマシン32、ジョブカウンタ34、割込み回路36、印刷データ転送回路38を有する。
FIG. 2 is a block diagram showing a detailed configuration of the head control device 21 in the present embodiment.
As shown in FIG. 2, the drive control circuit 26 includes a register 30, a state machine 32, a job counter 34, an interrupt circuit 36, and a print data transfer circuit 38.

レジスタ30は、CPU20から受信されるコマンド、データを記憶し、ステートマシン32あるいはジョブカウンタ34に受け渡す。   The register 30 stores commands and data received from the CPU 20 and passes them to the state machine 32 or the job counter 34.

ステートマシン32は、CPU20から送信される印刷データに対する印刷動作を制御するための専用のハードウェアである。ステートマシン32は、レジスタ30を通じて受信されるCPU20からのコマンドに応じて、印刷データ転送回路38による印刷データの転送状態(ステータス)を監視しながら印刷動作を制御する。ステートマシン32は、繰り返し処理の実行が指示される場合、CPU20により印刷動作の繰り返し回数が設定された後、印刷データ転送回路38による印刷データのヘッド28への転送完了毎にジョブカウンタ34を更新し、ジョブカウンタ34が繰り返し回数分の印刷動作の完了を示すまで印刷動作を制御する。   The state machine 32 is dedicated hardware for controlling a printing operation for print data transmitted from the CPU 20. The state machine 32 controls the printing operation while monitoring the print data transfer state (status) by the print data transfer circuit 38 according to the command from the CPU 20 received through the register 30. The state machine 32 updates the job counter 34 every time the print data transfer circuit 38 completes the transfer of print data to the head 28 after the CPU 20 sets the number of repetitions of the print operation when the execution of the repeat process is instructed. The printing operation is controlled until the job counter 34 indicates completion of the printing operation for the number of repetitions.

ステートマシン32は、印刷データ転送回路38による印刷データの転送状態(ステータス)を監視しながら印刷動作を制御し、またジョブカウンタ34を更新しながら繰り返し処理を制御する。すなわち、繰り返し処理により印刷動作が制御されている間は、CPU20に対する割込みを発生させない。従って、CPU20により実行される割込み要求に対するソフトウェアの処理ルーチンが複雑化しない。また、駆動制御回路26内で専用のハードウェアであるステートマシン32により印刷動作を制御することで処理の遅延を発生しにくくする。   The state machine 32 controls the printing operation while monitoring the transfer state (status) of the print data by the print data transfer circuit 38, and controls the repetitive processing while updating the job counter 34. That is, no interruption to the CPU 20 is generated while the printing operation is controlled by repeated processing. Therefore, the software processing routine for the interrupt request executed by the CPU 20 is not complicated. Further, the printing operation is controlled by the state machine 32 which is dedicated hardware in the drive control circuit 26, thereby making it difficult for processing delay to occur.

ジョブカウンタ34は、ステートマシン32により制御される一連の印刷動作の繰り返し回数をカウントする。ジョブカウンタ34は、一連の印刷動作(例えば、1枚分の印刷処理)が完了する毎に、ステートマシン32により更新される。   The job counter 34 counts the number of repetitions of a series of printing operations controlled by the state machine 32. The job counter 34 is updated by the state machine 32 every time a series of printing operations (for example, printing processing for one sheet) is completed.

割込み回路36は、ジョブカウンタ34が繰り返し回数分の印刷動作の完了を示す場合に、CPU20に対して割込みを要求する。   The interrupt circuit 36 requests the CPU 20 to interrupt when the job counter 34 indicates completion of the printing operation for the number of repetitions.

印刷データ転送回路38は、ステートマシン32の制御により、CPU20から受信された印刷対象とする印刷データをヘッド28に転送する。印刷データ転送回路38は、複数の記憶媒体を段階的に転送する。印刷データ転送回路38は、メモリ40、メモリコントローラ41、転送DMA(Direct Memory Access)ブロック42、プレバッファ43、転送DMAブロック44、FIFO(First-In First-Out)バッファ45、転送DMAブロック46とを有する。   The print data transfer circuit 38 transfers the print data to be printed received from the CPU 20 to the head 28 under the control of the state machine 32. The print data transfer circuit 38 transfers a plurality of storage media in stages. The print data transfer circuit 38 includes a memory 40, a memory controller 41, a transfer DMA (Direct Memory Access) block 42, a pre-buffer 43, a transfer DMA block 44, a FIFO (First-In First-Out) buffer 45, and a transfer DMA block 46. Have

次に、本実施形態におけるプリンタ装置10の動作について、図3に示すフローチャートを参照しながら説明する。
PC12は、プリンタ装置10により印刷を実行させる場合、プリンタソフトウェアの制御により印刷データをプリンタ装置10に送信する。PC12から送信された印刷データは、記憶装置24に記憶される。ここでは、例えば複数枚分の印刷を一括して実行する連続印刷の実行が指示され、複数枚分の印刷データが記憶装置24に記憶されたものとする。
Next, the operation of the printer apparatus 10 in this embodiment will be described with reference to the flowchart shown in FIG.
When printing is executed by the printer device 10, the PC 12 transmits print data to the printer device 10 under the control of printer software. The print data transmitted from the PC 12 is stored in the storage device 24. Here, for example, it is assumed that execution of continuous printing for collectively executing printing for a plurality of sheets is instructed, and print data for a plurality of sheets is stored in the storage device 24.

プリンタ装置10のCPU20は、連続印刷の要求に応じて、初期パラメータの設定をする(ACT A1)。初期パラメータには、例えば印字幅/ライン設定、電圧設定、モード選択などがある。   The CPU 20 of the printer device 10 sets initial parameters in response to a request for continuous printing (ACT A1). Examples of the initial parameters include print width / line setting, voltage setting, and mode selection.

また、CPU20は、レジスタ30を通じて、ステートマシン32に連続印刷での繰返し回数(繰り返し回数=n)(例えば、印刷枚数)を設定する(ACT A2)。その後、CPU20は、レジスタ30を通じて、ステートマシン32に対して連続動作を開始させる(ACT A3)。   Further, the CPU 20 sets the number of repetitions (number of repetitions = n) (for example, the number of prints) in continuous printing in the state machine 32 through the register 30 (ACT A2). Thereafter, the CPU 20 causes the state machine 32 to start a continuous operation through the register 30 (ACT A3).

ステートマシン32は、CPU20からの連続動作の開始指示に応じて、繰り返し処理を実行する(ACT A4)。なお、印刷データは、CPU20により駆動制御回路26に出力され、印刷データ転送回路38のメモリコントローラ41を通じてメモリ40に展開される。   The state machine 32 repeatedly executes a process in response to a continuous operation start instruction from the CPU 20 (ACT A4). The print data is output to the drive control circuit 26 by the CPU 20 and developed in the memory 40 through the memory controller 41 of the print data transfer circuit 38.

以下、ステートマシン32による印刷動作の制御について説明する。ここでは、簡略化した印刷データの転送処理について説明する。   Hereinafter, control of the printing operation by the state machine 32 will be described. Here, a simplified print data transfer process will be described.

ステートマシン32は、処理繰り返し回数分の印刷動作が完了したかを判別する(ACT B1)。印刷動作が完了していなければ、ステートマシン32は、印刷データの転送を開始する前に、プレバッファ43とFIFOバッファ45をクリアする(ACT B2)。   The state machine 32 determines whether the printing operation for the number of processing repetitions has been completed (ACT B1). If the printing operation is not completed, the state machine 32 clears the pre-buffer 43 and the FIFO buffer 45 (ACT B2) before starting to transfer the print data.

その後、ステートマシン32は、プレバッファ43と転送DMAブロック42により、印刷データのDMA転送をスタートさせる。転送DMAブロック42は、メモリコントローラ41により読み出される印刷データをプレバッファ43に転送する(第1DMAスタート)(ACT B3)。   Thereafter, the state machine 32 starts DMA transfer of print data by the pre-buffer 43 and the transfer DMA block 42. The transfer DMA block 42 transfers the print data read by the memory controller 41 to the pre-buffer 43 (first DMA start) (ACT B3).

ステートマシン32は、プレバッファ43に一定量の印刷データが転送された状態(例えば、ハーフフル(Half−Full)状態)となったかを監視する(ACT B4)。ステートマシン32は、プレバッファ43がハーフフル状態となったことが判別されると、転送DMAブロック44による次のDMA転送を起動する。転送DMAブロック44は、プレバッファ43に記憶された印刷データをFIFOバッファ45に転送する(第2DMAスタート)(ACT B5)。   The state machine 32 monitors whether or not a certain amount of print data has been transferred to the pre-buffer 43 (for example, half-full state) (ACT B4). When it is determined that the pre-buffer 43 is in a half-full state, the state machine 32 activates the next DMA transfer by the transfer DMA block 44. The transfer DMA block 44 transfers the print data stored in the pre-buffer 43 to the FIFO buffer 45 (second DMA start) (ACT B5).

同様にして、次にステートマシン32は、FIFOバッファ45に一定量の印刷データが転送された状態(例えば、ハーフフル(Half−Full)状態)となったかを監視する(ACT B6)。ステートマシン32は、FIFOバッファ45がハーフフル状態となったことが判別されると、転送DMAブロック46による次のDMA転送を起動する。   Similarly, next, the state machine 32 monitors whether or not a certain amount of print data has been transferred to the FIFO buffer 45 (for example, half-full state) (ACT B6). When it is determined that the FIFO buffer 45 is in the half-full state, the state machine 32 activates the next DMA transfer by the transfer DMA block 46.

転送DMAブロック46は、FIFOバッファ45に記憶された印刷データをPS変換部46Aによりパラレル−シリアル変換して、ヘッド28に出力する。ヘッド28は、転送DMAブロック46から転送される印刷データをもとに印刷媒体に対して印刷をする。   The transfer DMA block 46 performs parallel-serial conversion on the print data stored in the FIFO buffer 45 by the PS conversion unit 46 </ b> A and outputs it to the head 28. The head 28 performs printing on the print medium based on the print data transferred from the transfer DMA block 46.

こうして、印刷データ転送回路38における印刷データの転送は、ステートマシン32の制御のもとで実行される。   Thus, the print data transfer in the print data transfer circuit 38 is executed under the control of the state machine 32.

ステートマシン32は、一連の印刷データがヘッド28に転送されて、印刷処理が完了すると(ACT B8)、印刷終了処理を実行する(ACT B9)。すなわち、ステートマシン32は、転送DMAブロック42,44,46による印刷データの転送終了を検出し其々のDMA制御レジスタを停止させる。   When the series of print data is transferred to the head 28 and the print process is completed (ACT B8), the state machine 32 executes the print end process (ACT B9). That is, the state machine 32 detects the end of print data transfer by the transfer DMA blocks 42, 44, and 46 and stops the respective DMA control registers.

ステートマシン32は、ジョブカウンタ34に記憶される一連の印刷処理の実行回数の値(job_count)をカウントアップする(job_count=job_count+1)(ACT B10)。   The state machine 32 counts up the value (job_count) of the number of execution times of a series of printing processes stored in the job counter 34 (job_count = job_count + 1) (ACT B10).

ステートマシン32は、繰り返し回数分の印刷動作が完了したかを判別する(ACT B1)。すなわち、ステートマシン32は、「job_count<=n」となったかを判別する。   The state machine 32 determines whether the printing operation for the number of repetitions has been completed (ACT B1). That is, the state machine 32 determines whether or not “job_count <= n”.

ステートマシン32は、繰り返し回数分の印刷動作が完了していないと判別した場合、前述と同様にして、次の印刷媒体に対する印刷データを転送する処理を繰り返して実行する(ACT B1〜B10)。   If it is determined that the printing operation for the number of repetitions has not been completed, the state machine 32 repeatedly executes the process of transferring the print data for the next print medium in the same manner as described above (ACT B1 to B10).

一方、ステートマシン32は、繰り返し回数分の印刷動作が完了したと判別した場合、印刷動作の制御を終了する。   On the other hand, when the state machine 32 determines that the printing operation for the number of repetitions has been completed, the state machine 32 ends the control of the printing operation.

このように、印刷データ転送回路38における転送DMAブロック42,44,45によるデータ転送は、ステートマシン32がプレバッファ43、FIFOバッファ45の状態を監視して制御する。すなわち、CPU20に対して割込みを発生させることなく、専用のハードウェアであるステートマシン32により一連の印刷動作を制御することができる。   Thus, the data transfer by the transfer DMA blocks 42, 44, 45 in the print data transfer circuit 38 is controlled by the state machine 32 by monitoring the states of the pre-buffer 43 and the FIFO buffer 45. That is, a series of printing operations can be controlled by the state machine 32 that is dedicated hardware without generating an interrupt to the CPU 20.

なお、CPU20は、駆動制御回路26のステートマシン32に対して連続動作を開始させた後、割込み待ち状態となる。駆動制御回路26の割込み回路36は、ジョブカウンタ34がCPU20によって設定された繰り返し回数分の印刷動作が完了したことを示す場合には割込みを発生して、CPU20(割込み回路20A)に出力する。   The CPU 20 waits for an interrupt after the state machine 32 of the drive control circuit 26 starts a continuous operation. The interrupt circuit 36 of the drive control circuit 26 generates an interrupt and outputs it to the CPU 20 (interrupt circuit 20A) when the job counter 34 indicates that the printing operation for the number of repetitions set by the CPU 20 has been completed.

CPU20は、割込み回路20Aにより入力された割込みにより、ヘッド制御装置21による連続印刷の処理が完了したことを判別し(ACT A5)、次の処理に移行する。   Based on the interrupt input by the interrupt circuit 20A, the CPU 20 determines that the continuous printing process by the head controller 21 has been completed (ACT A5), and proceeds to the next process.

このようして、本実施形態におけるプリンタ装置10では、駆動制御回路26にCPU20による制御動作を代替するステートマシン32を設けて、ジョブカウンタ36を更新しながら一連の印刷動作を繰り返し実行することができる。また、ステートマシン32と割込み回路36の組み合わせによる専用のハードウェアを駆動制御回路26に設けることで、高速に印刷処理を制御することができる。   As described above, in the printer device 10 according to the present embodiment, the drive control circuit 26 is provided with the state machine 32 that replaces the control operation performed by the CPU 20, and a series of printing operations can be repeatedly executed while updating the job counter 36. it can. In addition, by providing the drive control circuit 26 with dedicated hardware based on the combination of the state machine 32 and the interrupt circuit 36, the printing process can be controlled at high speed.

従って、印刷データ転送回路38における印刷データの転送を制御するために、CPU20がポーリング処理をしたり、印刷データ転送回路38における各段のデータ転送毎に割込み処理をしたりする必要が無い。このため、CPU20の負荷が軽減され、連続動作の起動タイミング等を安定させることが可能となる。   Therefore, in order to control the transfer of print data in the print data transfer circuit 38, the CPU 20 does not need to perform polling processing or perform interrupt processing for each stage of data transfer in the print data transfer circuit 38. For this reason, the load on the CPU 20 is reduced, and it is possible to stabilize the start timing and the like of the continuous operation.

次に、本実施形態におけるプリンタ装置10(ヘッド制御装置21)の変形例について説明する。
図4は、本実施形態における第1変形例であるヘッド制御装置21Aの構成を示すブロック図、図5は、本実施形態における第2変形例であるヘッド制御装置21Bの構成を示すブロック図である。ヘッド制御装置21A,21Bは、それぞれ複数のヘッド28(ここでは、2つのヘッド28A,28B)による印刷動作を制御する構成を有している。
Next, a modified example of the printer device 10 (head control device 21) in the present embodiment will be described.
FIG. 4 is a block diagram illustrating a configuration of a head control device 21A that is a first modification example of the present embodiment, and FIG. 5 is a block diagram illustrating a configuration of a head control device 21B that is a second modification example of the present embodiment. is there. Each of the head control devices 21A and 21B has a configuration for controlling a printing operation by a plurality of heads 28 (here, two heads 28A and 28B).

図4に示すヘッド制御装置21Aは、ヘッド28Aに印刷データを転送する印刷データ転送回路38A1、ヘッド28Bに印刷データを転送する印刷データ転送回路38A2が設けられる。印刷データ転送回路38A1,38A2は、図2に示す印刷データ転送回路38と実質同一の構成を有する。   The head control device 21A shown in FIG. 4 is provided with a print data transfer circuit 38A1 that transfers print data to the head 28A, and a print data transfer circuit 38A2 that transfers print data to the head 28B. The print data transfer circuits 38A1 and 38A2 have substantially the same configuration as the print data transfer circuit 38 shown in FIG.

また、ヘッド制御装置21Aは、複数の系統(ここでは2つ)の印刷動作を制御するステートマシン32Aが設けられる。ステートマシン32Aは、CPU20の制御のもとで、印刷データ転送回路38A1とヘッド28Aによる系統(第1系統)の印刷と、印刷データ転送回路38A2とヘッド28Bによる系統(第2系統)の印刷動作を制御する機能を有する。ステートマシン32Aによる各系統に対する制御は、図2に示すステートマシン32と同様にして実行される。   The head control device 21A is provided with a state machine 32A that controls printing operations of a plurality of systems (two in this case). Under the control of the CPU 20, the state machine 32A performs printing of the system (first system) by the print data transfer circuit 38A1 and the head 28A and printing operation of the system (second system) by the print data transfer circuit 38A2 and the head 28B. It has a function to control. Control of each system by the state machine 32A is executed in the same manner as the state machine 32 shown in FIG.

ステートマシン32Aは、ジョブカウンタ34Aにおいて、第1系統において一連の印刷処理を実行する毎に実行回数の値(job_count1)34A1を更新しながら印刷動作を制御する。また、ステートマシン32Aは、ジョブカウンタ34Aにおいて、第2系統において一連の印刷処理を実行する毎に実行回数の値(job_count2)34A2を更新しながら印刷動作を制御する。   In the job counter 34A, the state machine 32A controls the printing operation while updating the execution count value (job_count1) 34A1 every time a series of printing processing is executed in the first system. Further, the state machine 32A controls the printing operation while updating the execution count value (job_count2) 34A2 every time a series of printing processing is executed in the second system in the job counter 34A.

図5に示すヘッド制御装置21Bは、ヘッド28Aに印刷データを転送する印刷データ転送回路38B1、印刷データ転送回路38B1に対応するステートマシン32B1とジョブカウンタ34B1が設けられる(第1系統)。また、ヘッド制御装置21Bは、ヘッド28Bに印刷データを転送する印刷データ転送回路38B2、印刷データ転送回路38B2に対応するステートマシン32B2とジョブカウンタ34B2が設けられる(第2系統)
印刷データ転送回路38B1,38B2は、図2に示す印刷データ転送回路38と実質同一の構成を有する。また、ステートマシン32B1,32B2とジョブカウンタ34B1,34B2は、それぞれ図2に示すステートマシン32、ジョブカウンタ34と実質同一の機能を有する。
The head control device 21B shown in FIG. 5 is provided with a print data transfer circuit 38B1 for transferring print data to the head 28A, a state machine 32B1 corresponding to the print data transfer circuit 38B1, and a job counter 34B1 (first system). The head control device 21B is provided with a print data transfer circuit 38B2 for transferring print data to the head 28B, and a state machine 32B2 and a job counter 34B2 corresponding to the print data transfer circuit 38B2 (second system).
The print data transfer circuits 38B1 and 38B2 have substantially the same configuration as the print data transfer circuit 38 shown in FIG. The state machines 32B1 and 32B2 and job counters 34B1 and 34B2 have substantially the same functions as the state machine 32 and job counter 34 shown in FIG.

ステートマシン32B1,32B2は、CPU20の制御のもとで、それぞれの系統(第1系統、第2系統)の印刷動作を制御する機能を有する。   The state machines 32B1 and 32B2 have a function of controlling the printing operation of each system (first system, second system) under the control of the CPU 20.

このようにして、複数のヘッド28A,28Bにより印刷をする構成とした場合でも、CPU20に代わって印刷動作を制御する専用回路を並列化させて設けることにより(第1系統、第2系統)、CPU20への最小限の負荷で高速に処理することが可能となる。これにより、連続印刷処理における安定化と処理の高速化を実現することが可能となる。   In this way, even when the printing is performed by the plurality of heads 28A and 28B, by providing a dedicated circuit for controlling the printing operation in parallel instead of the CPU 20 (first system, second system), High-speed processing can be performed with a minimum load on the CPU 20. As a result, it is possible to realize stabilization and high-speed processing in the continuous printing process.

なお、図4と図5に示す構成では、2つのヘッド28A,28Bによる印刷を制御する2系統の構成例を示しているが、3系統以上の構成を設けることも可能である。   4 and 5 show an example of the configuration of two systems for controlling printing by the two heads 28A and 28B, it is also possible to provide a configuration of three or more systems.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。   Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and gist of the invention, and are also included in the invention described in the claims and the equivalents thereof.

10…プリンタ装置、20…CPU、21…ヘッド駆動制御ユニット、22…電源制御回路、26…駆動制御回路、28…ヘッド、30…レジスタ、32,32A,32B1,32B2…ステートマシン、34,34A,34B1,34B2…ジョブカウンタ、36…割込み回路、38,38A1,38A2,38B1,38B2…印刷データ転送回路。   DESCRIPTION OF SYMBOLS 10 ... Printer apparatus, 20 ... CPU, 21 ... Head drive control unit, 22 ... Power supply control circuit, 26 ... Drive control circuit, 28 ... Head, 30 ... Register, 32, 32A, 32B1, 32B2 ... State machine, 34, 34A , 34B1, 34B2 ... job counter, 36 ... interrupt circuit, 38, 38A1, 38A2, 38B1, 38B2 ... print data transfer circuit.

Claims (6)

印刷対象とする印刷データを印刷ヘッドに転送する印刷データ転送回路と、
CPUにより設定される印刷動作の繰り返し回数をカウントするカウンタと、
前記CPUにより前記繰り返し回数が設定された後、前記印刷データ転送回路による前記印刷データの前記印刷ヘッドへの転送完了毎に前記カウンタを更新し、前記カウンタが前記繰り返し回数分の印刷動作の完了を示すまで印刷動作を制御するステートマシンとを有するヘッド制御装置。
A print data transfer circuit for transferring print data to be printed to the print head;
A counter for counting the number of repetitions of the printing operation set by the CPU;
After the number of repetitions is set by the CPU, the counter is updated every time transfer of the print data to the print head by the print data transfer circuit is completed, and the counter completes the printing operation for the number of repetitions. A head control device having a state machine for controlling a printing operation until shown.
前記カウンタが前記繰り返し回数分の印刷動作の完了を示す場合に、前記CPUに対して割込みを要求する割込み回路をさらに有する請求項1記載のヘッド制御装置。   The head control device according to claim 1, further comprising: an interrupt circuit that requests an interrupt to the CPU when the counter indicates completion of the printing operation for the number of repetitions. 前記印刷データ転送回路は、前記印刷データを、複数の記憶媒体を段階的に転送する構成を有し、
前記ステートマシンは、各段階の記憶媒体の前記印刷データの転送を制御する請求項1記載のヘッド制御装置。
The print data transfer circuit has a configuration for transferring the print data to a plurality of storage media in stages.
The head control apparatus according to claim 1, wherein the state machine controls transfer of the print data of a storage medium at each stage.
前記ステートマシンは、第1のステートマシンと第2のステートマシンを含み、
前記印刷ヘッドは、第1の印刷ヘッドと第2の印刷ヘッドを含み、
前記第1のステートマシンは、前記第1の印刷ヘッドによる印刷動作を制御し、前記第2のステートマシンは、前記第2の印刷ヘッドの印刷動作を制御する請求項1記載のヘッド制御装置。
The state machine includes a first state machine and a second state machine,
The print head includes a first print head and a second print head,
The head control device according to claim 1, wherein the first state machine controls a printing operation by the first print head, and the second state machine controls a printing operation of the second print head.
前記ステートマシンは、第1の印刷ヘッドによる印刷動作と、第2の印刷ヘッドによる印刷動作を制御する請求項1記載のヘッド制御装置。   The head control device according to claim 1, wherein the state machine controls a printing operation by a first printing head and a printing operation by a second printing head. 電子機器から指示に応じて印刷動作を制御するCPUと、
印刷対象とする印刷データを印刷ヘッドに転送する印刷データ転送回路と、
前記CPUにより設定される印刷動作の繰り返し回数をカウントするカウンタと、
前記CPUにより前記繰り返し回数が設定された後、前記印刷データ転送回路による前記印刷データの前記印刷ヘッドへの転送完了毎に前記カウンタを更新し、前記カウンタが前記繰り返し回数分の印刷動作の完了を示すまで印刷動作を制御するステートマシンとを有するプリンタ装置。
A CPU for controlling a printing operation in response to an instruction from the electronic device;
A print data transfer circuit for transferring print data to be printed to the print head;
A counter for counting the number of repetitions of the printing operation set by the CPU;
After the number of repetitions is set by the CPU, the counter is updated every time transfer of the print data to the print head by the print data transfer circuit is completed, and the counter completes the printing operation for the number of repetitions. And a state machine that controls a printing operation until shown.
JP2014247089A 2014-12-05 2014-12-05 Head control device and printer device Active JP6393175B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014247089A JP6393175B2 (en) 2014-12-05 2014-12-05 Head control device and printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014247089A JP6393175B2 (en) 2014-12-05 2014-12-05 Head control device and printer device

Publications (2)

Publication Number Publication Date
JP2016107508A true JP2016107508A (en) 2016-06-20
JP6393175B2 JP6393175B2 (en) 2018-09-19

Family

ID=56121643

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014247089A Active JP6393175B2 (en) 2014-12-05 2014-12-05 Head control device and printer device

Country Status (1)

Country Link
JP (1) JP6393175B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05254215A (en) * 1992-03-16 1993-10-05 Sharp Corp Document printing system in information processing apparatus
JPH09174936A (en) * 1995-12-27 1997-07-08 Brother Ind Ltd Image recording apparatus
JPH10217584A (en) * 1997-01-31 1998-08-18 Canon Inc Recorder and record controlling method
JP2005258783A (en) * 2004-03-11 2005-09-22 Ricoh Co Ltd Data transfer device, data transfer method, image forming apparatus, and option board
JP2008036884A (en) * 2006-08-02 2008-02-21 Seiko Epson Corp Printer
JP2014004694A (en) * 2012-06-21 2014-01-16 Seiko Epson Corp Liquid discharge device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05254215A (en) * 1992-03-16 1993-10-05 Sharp Corp Document printing system in information processing apparatus
JPH09174936A (en) * 1995-12-27 1997-07-08 Brother Ind Ltd Image recording apparatus
JPH10217584A (en) * 1997-01-31 1998-08-18 Canon Inc Recorder and record controlling method
JP2005258783A (en) * 2004-03-11 2005-09-22 Ricoh Co Ltd Data transfer device, data transfer method, image forming apparatus, and option board
JP2008036884A (en) * 2006-08-02 2008-02-21 Seiko Epson Corp Printer
JP2014004694A (en) * 2012-06-21 2014-01-16 Seiko Epson Corp Liquid discharge device

Also Published As

Publication number Publication date
JP6393175B2 (en) 2018-09-19

Similar Documents

Publication Publication Date Title
JP5064336B2 (en) Image forming system and program
US20080071942A1 (en) Method for executing a software updating process and computer for implementing the method
JP2007011469A5 (en)
US9552050B2 (en) Information processing device, printing device, and control method
JP6393175B2 (en) Head control device and printer device
JP2012061752A5 (en)
JP5651622B2 (en) Data transmission apparatus, data transmission method, and program
US20160224285A1 (en) Printer control apparatus, printing control method, and printing control system
JP2011116083A (en) Printer and control method therefor, program
JP2017151752A (en) Image processing device, image processing system, image processing method and program
JP5601090B2 (en) Communication device
JP5041527B2 (en) Data transfer apparatus, request generation apparatus, and request generation method
JP2009048298A (en) Information processor, information processing method, program for implementing this information processing method, medium for recording this program, dma controller, dma transfer method, program for implementing this dma transfer method, and medium for recording this program
JP2009211307A (en) Image forming apparatus
JP6402484B2 (en) Information processing apparatus and information processing program
JP5376084B1 (en) Print control apparatus, image forming apparatus, and program
US20160286088A1 (en) Image processing system, image processing apparatus, image processing method, and non-transitory computer readable medium
JP5991784B2 (en) Information processing apparatus and information processing program
KR100571759B1 (en) A control method of printing system
CN105468553B (en) The control method of information processing unit and information processing unit
JP2017154434A5 (en)
JP6542513B2 (en) USB transfer device, USB transfer system and USB transfer method
EP3172655A1 (en) Printable image data generation in large-scale printing
JP2005258783A (en) Data transfer device, data transfer method, image forming apparatus, and option board
JP2021117740A (en) Information processing apparatus, method fo controlling the same, and program therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170413

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180220

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180420

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180731

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180824

R150 Certificate of patent or registration of utility model

Ref document number: 6393175

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150