JP2004009452A - Recording apparatus - Google Patents

Recording apparatus Download PDF

Info

Publication number
JP2004009452A
JP2004009452A JP2002164670A JP2002164670A JP2004009452A JP 2004009452 A JP2004009452 A JP 2004009452A JP 2002164670 A JP2002164670 A JP 2002164670A JP 2002164670 A JP2002164670 A JP 2002164670A JP 2004009452 A JP2004009452 A JP 2004009452A
Authority
JP
Japan
Prior art keywords
motor
dma
address
current
data
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
JP2002164670A
Other languages
Japanese (ja)
Inventor
Masayuki Motoe
本江 雅之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2002164670A priority Critical patent/JP2004009452A/en
Publication of JP2004009452A publication Critical patent/JP2004009452A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Control Of Stepping Motors (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a control method in the case where data for controlling a motor increases, in which the reduction of a load for a CPU and the effectiveness of a current table are intended. <P>SOLUTION: The recording apparatus is provided with the CPU, a ROM in which a control table for a motor is stored, a RAM for storing the control table for the motor, a motor driver, and a DMA control circuit for performing the DMA from the RAM. The table for controlling the motor is composed of a third table storing the time for every step, a first table and the information, such as the value of current equivalent to a plurality of 1/4 steps, and a second table and each leading address of the second table. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、記録手段から被記録材へ記録を行う記録装置に関する。
【0002】
【従来の技術】
プリンター、複写機、ファクシミリ等の機能を有する記録装置、あるいはコンピュータやワードプロセッサ等を含む複合機やワークステーションの出力機器として用いられる記録装置は、画像情報に基づいて用紙やプラスチック薄板(OHP用シート)等の被記録材に画像(文字や記号を含む)を記録していく用に構成されており、被記録材の搬送方向(副走査方向)と交差する方向に主走査する記録方式をとるシリアルタイプの記録装置に於ては、被記録材に沿って移動(主走査)するキャリッジ上に搭載した記録手段(記録ヘッド)によって画像(文字や記号を含む)を記録し、1行分の記録を終了した後に所定量の紙送り(副走査)を行い、その後に次の行の画像を記録(副走査)するという動作を繰り返すことにより、被記録材の所望範囲に画像が記録される。
【0003】
図1に記録装置の構成図を示す。
【0004】
1は、ホスト、2は、記録装置の制御の中心的な役割を果たすCPU、3は、制御プログラム及びCG等を書き込んであるROM、4は、GAであり、CPUの機能では果たせない所をロジック設計によるカスタムデバイスという形で補う。5は、ホスト1からのデータ(印字データ、制御コード、記号を含む)を溜め込む受信バッファや受信バッファからデータを読みだし、ビットデータに展開されたものを格納するための印字バッファやGA4で使用される制御レジスタに使用されるメモリであるRAMである。
【0005】
6は、被記録材に沿って記録ヘッドを(主操作)させるCRモータ、7は、被記録材の搬送方向(副走査方向)へ紙を送るためのラインフイード(以下LF)モータ、8は、記録ヘッドの印字品位を保つために、ヘッドの吐出ノズルからインクを吸い上げる動作と、給紙及び排紙に使用されるモータ(以下P−ASFモータ)である。9は、6〜8各モータを駆動する際に必要であるモータドライバやその周辺回路である所のモータ駆動回路である。
【0006】
10は、キャリッジ上に搭載され、被記録材に沿って、インクを吐出することにより、記録を行う記録ヘッドであり、11のヘッド制御回路によって記録ヘッドの種類、記録ヘッドの各吐出ノズルにあるヒーターを加熱するための抵抗のばらつき、また記録ヘッドの温度等を検出し、適切な記録を行うことが、出来るように構成されている。
【0007】
近年、プリンタの性能として、写真に近い、高解像度へのさらなる試みが繰り返され、また、印字速度も高速化が望まれており、インクの着弾精度を高めていかねばならない。また、フォト画像を印字するため、5色以上のインク色を使った方式も用いられるようになり、印字ヘッドも複数搭載する機種も多くなってきている。そのため、キャリッジの大きさ、重量とも大きくなる傾向にあり、モータ駆動の負荷が増加している。
【0008】
さらに、環境にやさしいプリンタとして、印字時の音も静かにすることが求められており、特にモータ駆動時の振動、騒音レベルの極小化が進められている。
【0009】
つまり、このような状況下において、モータ駆動は、高速化、振動の低下、定速時の速度変動の減少、トルクアップと改善する問題が依然多くなっている。
【0010】
モータとしては、ステッピングモータ、DCモータが、よく使用されており、特に販売価格が安価な機種では、エンコーダを使用することなく、ヘイループ制御を行うことが出来るステッピングモータを使用するケースが多いと考えられる。このステッピングモータを駆動する方式として、微少ステップ角で制御できる、マイクロステップ方式がある。この方式によれば、モータをより滑らかに駆動し、振動や、音、走速時の速度変動をおさえることが出来る。その反面、電流値の設定データ等が増加してしまう傾向も併せ持っている。電流値の設定データの増加とモータの回転速度の高速化により、1ステップ当たりにモータドライバに対し転送するデータも増え、モータ駆動制御テーブルも増加する。
【0011】
扱うデータ量の増加により、今まで制御テーブルをCPUのポート、および、CPUのタイマを使用して、モータドライバに駆動データを転送していたが、データ処理の負荷が重くなってしまう為、モータ制御テーブルをMに格納し、DMAアクセスでデータを取得し、ドライバに転送する構成が考えられ、従来、このような構成を使用していた。
【0012】
その場合のテーブル構成を図2に示す。
【0013】
200は、時間テーブルであり、各ステップの時間を格納したテーブルである。ここでの1ステップとは、図2の(a)で示した単位である。201は、電流テーブルであり、図2の(a)で相信号の1周期を360度とした場合の電流値テーブルであり、A相、B相の各電流値が格納されている。202は、別の電流値テーブルであり、201と同様にテーブルが構成された電流値の異なるテーブルである。実際は、このような電流テーブルが多数存在する。
【0014】
従来、このようなテーブル構成において、CPUは、ROMプログラムに従って、毎ステップ毎に使用する電流テーブルのアドレスをDMAのスタートアドレスとしてGAのレジスタに設定していた。例を用いると1ステップ目で電流テーブルの180°〜270°までの設定電流を使用したい場合は、DMAのスタートアドレスとして、アドレスAを設定するといった具合である。
【0015】
定速時は、同じ設定電流をループする機能を持っており、毎ステップでの設定は、必要の無い構成となっている。
【0016】
従来は、前述のような、テーブル構成、および、テーブル転送制御方式を取っていた。
【0017】
【発明が解決しようとする課題】
従来の構成において、スタート時の位相が異なる場合、各ステップに対応する電流テーブルのDMAスタートアドレスを作り変えなければならず、CPUの負荷を重くしていた。また、各ステップ単位で割り込みを発生させて、電流テーブルのDMAスタートアドレスを設定していた為、割り込み処理が頻繁に発生していた。特に主操作と副操作を重複される駆動では、設定の為の割り込み頻度が2倍になり、1ステップ時間が短い場合には、割り込み処理が1ステップ時間に占める割合が大きくモータ制御以外の印字処理やI/Fデータ受信等の処理に影響を及ぼすことも考えられる。
【0018】
【課題を解決するための手段】
本発明の記録装置は、モータ制御データが増大した場合の制御方法であって、CPUの負荷軽減を目的とする。CPU、モータの制御テーブルが格納されているROM、モータの制御テーブル格納用RAM、モータ制御用モータドライバ、該RAMからDMAを行いモータ制御データをリードするためのDMA制御回路を具備し、該M内のモータ制御テーブルが、ステップ毎の時間を格納した、第1のテーブルと複数の1/4ステップ分の電流値等の情報を格納した、第2のテーブルと該第2のテーブルの各先頭アドレスを格納した、第3のテーブルから構成されるモータ制御方式を提案している。
【0019】
【発明の実施の形態】
(実施例1)
以下、本発明の一実施例を示す図面を参照して説明する。
【0020】
図3に本実施例の構成図を示す。
【0021】
ROM3,CPU2,RAM5,GA4,キャリッジモータドライバ15で構成される。CPU2は、ROM3に予め格納されているモータ制御データをリードし、M5に格納する。RAM5のリード、ライト動作は、GA4を介して行われる。GA4は、CPU2からのモータ駆動スタートトリガーを受けるとRAM5からDMAでデータをリードしモータドライバに転送し、モータ駆動を行う。
【0022】
RAM5やらのリードデータは、byte,またはword単位で行われ、そのデータを元にモータドライバの入出力インターフェースに合わせたデータ加工を行っている。本実施例では、モータドライバに対してシリアル転送する為、RAM5のデータをパラシリ変換する必要がある。
【0023】
次に実際にどのようにモータを駆動するかを図4を用いて説明する。
【0024】
まず、本特許において、図4に1ステップと示してある範囲を1ステップと定義している。
【0025】
また、1レンジとは、1ステップを16分割した1/16ステップと定義している。
【0026】
本実施例で使用しているモータドライバは、定電流チョッピング方式のステッピングモータドライバであり、マイクロステップ駆動機能を持っており、チョッピングをかける電流値を16段階で切り替え可能となっている。本モータドライバの入力インターフェースは、シリアル転送用に出来ており、STB,DATA,CLXの3本の信号によって、制御データを入力する構成となっている。このモータドライバの信号タイミングおよび、転送コマンドの詳細を図5に示してある。
【0027】
図4の1レンジを駆動するためには、データ量1WORDとなっており、1ステップを駆動するためのデータ量は、16WORDとなる。1WORDのデータの中には、A相、B相のコイルに流す電流の向き、チョッピングをかける電流値等モータ駆動用の設定データが含まれている。DMAは、1回で1WORDのデータを扱うので1ステップ(16レンジ)駆動するためには、16回のDMAが必要である。
【0028】
GA4は、CPU2から、スタートトリガーを受け取るとM5から格納されているモータ制御データをDMAでリードし、そのデータをパラシリ変挽してモータドライバへ転送するというシーケンスを1レンジの中で行い、1ステップは、そのシーケンスが16回繰り返されて形成される。
【0029】
図6に本実施例のテーブル構成を示す。
【0030】
501は、各ステップの時間テーブルである。502は、1/4ステップ分の電流テーブル1ある。503は、502と同様に構成された電流値の異なる電流テーブル2である。実際は、このような電流テーブルが多数存在する。504は、各ステップに使用する電流テーブルの先頭アドレスを並べた、先頭アドレステーブルである。本実施例では、アドレスは、22ビットで表されるが、上位6BITをオフセットアドレスとして持ち、先頭アドレステーブルのアドレスは、16BIT(1WORD)で格納されている。これは、DMA頻度を少なくするためであり、この為、64Kbit内の領域にすべての電流テーブルを格納しなければならないという制限は、発生する。
【0031】
図7は、前記のモータテーブルをどのようにDMAするかを示してある。
【0032】
まず、最初に時間テーブル501のスタートアドレスと先頭アドレステーブル504のスタートアドレスをGAのレシスタにWRITEしておく。時間テーブル501および、先頭アドレステーブル504は、DMAにより、アドレスがカウントアップするアドレスポインタとして構成されている。
【0033】
CPUからGAの所定のレジスタへのWRITEをスタートトリガーとして時間テーブルの1ステップ目の時間を時間テーブル501のスタートアドレスからREADする。ここでREADした値は、1ステップの1/16の時間である。次に1ステップ日の電流テーブルの先頭アドレスを先頭アドレステーブル504のスタートアドレスからREADする。このREADした値にオフセットドレスを足したアドレスが使用したい電流テーブルの実アドレスであり、このアドレスから1ステップの1/16の時間単位でDMAをおこない、格納されている電流値データをREADしていく。さらに、次のステップの時間と電流テーブルのスタートアドレスを得る為、1ステップ中のあるタイミングでDMAを行う。この繰り返しにより、モータ駆動に適切なステップ時間、電流値にてモータを駆動していく。
【0034】
なお、前述で電流テーブルを1/4ステップ分にしていることを図8を用いて説明する。モータの相の励磁状態は、図8に示すように、1から4の状態に区別出来る。
【0035】
表は、往動作時(対してモータ逆回転は、複動作とする)のモータドライバに合った電流テーブルの内容である。相状態1,3のテーブルと相状態2,4の内容を比較すると電流値とdecayの値をA,B相入れ替えた形となっている。ここで電流テーブル中のA相、B相bit(PHASE信号)は、本来このビットのLOW−HIで相状態を決めているが、ここではA相のbitを相切り替えの有り無し信号として使用している。B相のbitは、無視している。相bitを切り替え信号とする事により、モータ駆動開始の初期相状態を予め設定すれば、切り替えbitを見て、相励磁状態をハード的にインクリメントしていくことが可能となる。つまり、ハード的にインクリメントした相励磁状態に従って、電流値、decay値の入れ替え作業をハード的に行うことにより、電流テーブルは、1/4ステップ分で必要十分となる。
【0036】
図9に各ステップで使用する電流テーブルの先頭アドレスを前記第1のテーブルの各ステップの時間が格納されているアドレスに相対するよう構成したテーブルを示す。
【0037】
1ステップの時間が格納されているアドレスの次のアドレスに1ステップ目で使用する電流テーブルの先頭アドレスが格納されている。このようにアドレスが連続していなくとも、時間テーブルにオフセットを持たせたアドレスに先頭アドレステーブル領域を確保してもよい。
【0038】
このように、時間が格納されているアドレスに相対するよう先頭アドレステーブルを設けることで、先頭アドレステーブルのアドレスポインタを持たずに済み、より簡易かつ少ゲート数で制御回路を構成することが可能となる。
【0039】
【発明の効果】
本実施例によれば、該RAM内のモータ制御テーブルを、ステップ毎の時間を格納した、第1のテーブルと複数の1/4ステップ分の電流値等の情報を格納した、第2のテーブルと該第2のテーブルの各先頭アドレスを格納した、第3のテーブルから構成することにより、モータの電流値テーブルを約1/4にすることが出来る。また、前記第1のテーブルと第2のテーブルと第3のテーブルをモータ駆動1ステップ間でDMA−READすることにより、次のステップの設定をハード的に行うことができ、モータ駆動中でのCPUの負荷は、激減する。
【図面の簡単な説明】
【図1】記録装置の構成図。
【図2】従来例のモータ制御テーブル構成。
【図3】実施例の構成図。
【図4】モータ駆動電流波形図。
【図5】ドライバへの転送タイミングおよびコマンド内容。
【図6】実施例のモータ制御テーブル構成。
【図7】DMA制御タイミング。
【図8】1/4ステップの電流テーブル利用方式。
【図9】他のモータ制御テーブル構成。
【符号の説明】
1 ホスト
2 CPU
3 ROM
4 GA
5 RAM
6 CRモータ
7 LFモータ
8 ASFモータ
9 モータ駆動回路
10 記録ヘッド
11 ヘッド制御回
15 モータドライバ
16 従来例の時間テーブル
200 従来例での時間テーブル
201 従来例での電流テーブル1
202 従来例での電流テーブル2
501 実施例での時間テーブル
502 実施例での電流テーブル1
503 実施例での電流テーブル2
504 実施例での先頭アドレステーブル
901 他の実施例での時間、先頭アドレステーブル
902 他の実施例での電流テーブル1
903 他の実施例での電流テーブル2
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a recording apparatus that performs recording from a recording unit on a recording material.
[0002]
[Prior art]
A recording device having a function such as a printer, a copier, a facsimile, or a recording device used as an output device of a multifunction machine or a workstation including a computer or a word processor is a sheet or a thin plastic sheet (OHP sheet) based on image information. , Etc., for recording images (including characters and symbols) on a recording material such as a recording material, and adopting a recording method of performing a main scanning in a direction intersecting a conveying direction (sub-scanning direction) of the recording material. In a recording apparatus of the type, an image (including characters and symbols) is recorded by recording means (recording head) mounted on a carriage that moves (main scans) along a recording material, and one line of recording is performed. After finishing the printing, a predetermined amount of paper feeding (sub-scanning) is performed, and then the operation of recording (sub-scanning) the image of the next line is repeated, so that the position of the recording material is Range image is recorded on.
[0003]
FIG. 1 shows a configuration diagram of a recording apparatus.
[0004]
1 is a host, 2 is a CPU that plays a central role in controlling the recording apparatus, 3 is a ROM in which a control program and CG are written, and 4 is a GA, which is a part that cannot be performed by the functions of the CPU. Supplement in the form of custom devices by logic design. Reference numeral 5 denotes a reception buffer for storing data (including print data, control codes, and symbols) from the host 1 and data read out from the reception buffer, and is used for a print buffer or a GA 4 for storing bit data expanded. RAM, which is a memory used for a control register.
[0005]
Reference numeral 6 denotes a CR motor for moving the recording head (main operation) along the recording material; 7, a line feed (hereinafter, LF) motor for feeding paper in the recording material conveyance direction (sub-scanning direction); In order to maintain the print quality of the recording head, a motor (hereinafter referred to as a P-ASF motor) used for sucking up ink from the discharge nozzles of the head and for feeding and discharging paper. Reference numeral 9 denotes a motor drive circuit which is a motor driver and its peripheral circuits necessary for driving each of the 6 to 8 motors.
[0006]
Reference numeral 10 denotes a recording head which is mounted on a carriage and performs recording by discharging ink along a recording material. The type of the recording head is controlled by a head control circuit 11, and each recording nozzle is provided at each discharge nozzle of the recording head. It is configured to detect variations in resistance for heating the heater, temperature of the print head, and the like, and perform appropriate printing.
[0007]
In recent years, as the performance of the printer, further attempts to achieve a high resolution similar to a photograph have been repeated, and a higher printing speed has been desired. Therefore, it is necessary to increase the ink landing accuracy. In addition, in order to print a photo image, a method using five or more ink colors has been used, and more and more models have a plurality of print heads. Therefore, the size and weight of the carriage tend to increase, and the load of driving the motor increases.
[0008]
Further, as an environmentally friendly printer, it is required that the sound at the time of printing be quiet, and the minimization of vibration and noise levels particularly during motor driving is being promoted.
[0009]
That is, in such a situation, there are still many problems that the motor drive is improved such as increasing the speed, reducing the vibration, decreasing the speed fluctuation at the constant speed, and increasing the torque.
[0010]
Stepping motors and DC motors are often used as motors, and it is considered that stepping motors that can perform hay loop control without using an encoder are often used, especially for models with low selling prices. Can be As a method of driving the stepping motor, there is a micro step method that can be controlled with a minute step angle. According to this method, the motor can be driven more smoothly, and vibration, sound, and speed fluctuation during running speed can be suppressed. On the other hand, there is also a tendency that the setting data of the current value increases. Due to the increase in the current value setting data and the increase in the rotation speed of the motor, the data transferred to the motor driver per one step also increases, and the motor drive control table also increases.
[0011]
Due to the increase in the amount of data to be handled, the control table has been used to transfer drive data to the motor driver using the CPU port and the CPU timer, but the load of data processing becomes heavy. A configuration in which a control table is stored in M, data is acquired by DMA access, and the data is transferred to a driver has been considered. Conventionally, such a configuration has been used.
[0012]
FIG. 2 shows a table configuration in that case.
[0013]
Reference numeral 200 denotes a time table, which stores the time of each step. Here, one step is the unit shown in FIG. Reference numeral 201 denotes a current table, which is a current value table in a case where one cycle of the phase signal is set to 360 degrees in FIG. 2A, and stores current values of the A phase and the B phase. Reference numeral 202 denotes another current value table, which is different from the current value table in the same manner as 201. Actually, there are many such current tables.
[0014]
Conventionally, in such a table configuration, the CPU sets the address of the current table used for each step in the register of the GA as the start address of the DMA according to the ROM program. Using the example, if it is desired to use the set current from 180 ° to 270 ° in the current table at the first step, an address A is set as the DMA start address.
[0015]
At the time of constant speed, it has a function of looping the same set current, so that setting at each step is unnecessary.
[0016]
Conventionally, the above-described table configuration and table transfer control system have been adopted.
[0017]
[Problems to be solved by the invention]
In the conventional configuration, when the phases at the start are different, the DMA start address of the current table corresponding to each step must be recreated, and the load on the CPU is increased. Further, since an interrupt is generated for each step and the DMA start address of the current table is set, interrupt processing frequently occurs. In particular, in the drive in which the main operation and the sub-operation are overlapped, the interrupt frequency for setting is doubled, and when the one step time is short, the ratio of the interrupt processing to the one step time is large and printing other than the motor control is performed. It may also affect processing such as processing and I / F data reception.
[0018]
[Means for Solving the Problems]
The recording apparatus of the present invention is a control method when the motor control data increases, and aims at reducing the load on the CPU. A CPU for storing a motor control table, a RAM for storing a motor control table, a motor driver for motor control, and a DMA control circuit for performing DMA from the RAM and reading motor control data; Are the first table storing the time for each step, the second table storing the information such as the current value for a plurality of quarter steps, and the head of each of the second tables. A motor control method comprising a third table storing addresses is proposed.
[0019]
BEST MODE FOR CARRYING OUT THE INVENTION
(Example 1)
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0020]
FIG. 3 shows a configuration diagram of the present embodiment.
[0021]
It comprises a ROM 3, a CPU 2, a RAM 5, a GA 4, and a carriage motor driver 15. The CPU 2 reads the motor control data stored in the ROM 3 in advance, and stores the data in M5. Read and write operations of the RAM 5 are performed via the GA 4. Upon receiving a motor drive start trigger from the CPU 2, the GA 4 reads data from the RAM 5 by DMA, transfers the data to the motor driver, and drives the motor.
[0022]
The read data from the RAM 5 or the like is performed in units of bytes or words, and data processing is performed based on the data in accordance with the input / output interface of the motor driver. In this embodiment, since the data is serially transferred to the motor driver, the data in the RAM 5 needs to be converted into parallel data.
[0023]
Next, how to actually drive the motor will be described with reference to FIG.
[0024]
First, in this patent, the range shown as one step in FIG. 4 is defined as one step.
[0025]
One range is defined as 1/16 step obtained by dividing one step into 16 steps.
[0026]
The motor driver used in the present embodiment is a stepping motor driver of a constant current chopping method, has a microstep driving function, and can switch the current value to be chopped in 16 steps. The input interface of this motor driver is made for serial transfer, and is configured to input control data by three signals STB, DATA, and CLX. FIG. 5 shows the signal timing of the motor driver and the details of the transfer command.
[0027]
The data amount for driving one range in FIG. 4 is 1 WORD, and the data amount for driving one step is 16 WORD. The 1WORD data includes motor drive setting data such as the direction of the current flowing through the A-phase and B-phase coils and the current value for performing chopping. Since the DMA handles 1 WORD data at a time, 16 steps of DMA are required to drive one step (16 ranges).
[0028]
When receiving a start trigger from the CPU 2, the GA 4 reads the motor control data stored from the M5 by DMA, and performs a sequence in which the data is paralysed and transferred to the motor driver in one range. The steps are formed by repeating the sequence 16 times.
[0029]
FIG. 6 shows a table configuration of the present embodiment.
[0030]
501 is a time table of each step. Reference numeral 502 denotes a current table 1 for a 1/4 step. Reference numeral 503 denotes a current table 2 having the same configuration as that of the current table 502 but having different current values. Actually, there are many such current tables. Reference numeral 504 denotes a head address table in which the head addresses of a current table used for each step are arranged. In the present embodiment, the address is represented by 22 bits, but the upper 6 BITs are used as offset addresses, and the address of the head address table is stored as 16 BITs (1 WORD). This is to reduce the frequency of DMA, and therefore, there is a restriction that all current tables must be stored in an area within 64 Kbits.
[0031]
FIG. 7 shows how to DMA the motor table.
[0032]
First, the start address of the time table 501 and the start address of the head address table 504 are written to the GA register. The time table 501 and the head address table 504 are configured as address pointers whose addresses are counted up by DMA.
[0033]
Using the WRITE from the CPU to a predetermined register of the GA as a start trigger, the time of the first step of the time table is read from the start address of the time table 501. The value read here is 1/16 of one step. Next, the head address of the current table for one step is read from the start address of the head address table 504. The address obtained by adding the offset value to the read value is the actual address of the current table to be used. From this address, DMA is performed in units of 1/16 of a step, and the stored current value data is read. Go. Further, in order to obtain the time of the next step and the start address of the current table, DMA is performed at a certain timing during one step. By repeating this, the motor is driven with a current value and a step time appropriate for driving the motor.
[0034]
The fact that the current table is set to 1/4 step will be described with reference to FIG. The excitation state of the motor phase can be distinguished from 1 to 4 as shown in FIG.
[0035]
The table shows the contents of the current table suitable for the motor driver during the forward operation (reverse rotation of the motor is assumed to be double operation). When the contents of the phase states 2 and 4 are compared with the tables of the phase states 1 and 3, the current value and the decay value are replaced with the A and B phases. Here, the phase state of the A-phase and B-phase bits (PHASE signal) in the current table is originally determined by the LOW-HI of this bit, but here, the A-phase bit is used as a signal indicating whether phase switching is performed. ing. Bits of phase B are ignored. If the initial phase state of the motor drive start is set in advance by using the phase bit as the switching signal, the phase excitation state can be incremented in hardware by looking at the switching bit. In other words, by performing the work of replacing the current value and the decay value in hardware according to the phase excitation state incremented by hardware, the current table becomes necessary and sufficient for 1/4 step.
[0036]
FIG. 9 shows a table in which the head address of the current table used in each step is made to correspond to the address where the time of each step in the first table is stored.
[0037]
The head address of the current table used in the first step is stored at the address next to the address where the time of one step is stored. Even if the addresses are not consecutive as described above, the head address table area may be reserved at an address having an offset in the time table.
[0038]
In this way, by providing the head address table so as to be relative to the address where the time is stored, it is not necessary to have an address pointer of the head address table, and the control circuit can be configured more simply and with a smaller number of gates. It becomes.
[0039]
【The invention's effect】
According to the present embodiment, the motor control table in the RAM is a first table storing time for each step, and a second table storing information such as current values for a plurality of quarter steps. And the third table storing the respective top addresses of the second table, the motor current value table can be reduced to about 1/4. Also, by performing DMA-READ on the first table, the second table, and the third table during one step of driving the motor, the setting of the next step can be performed by hardware, and The load on the CPU is drastically reduced.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a recording apparatus.
FIG. 2 is a configuration of a conventional motor control table.
FIG. 3 is a configuration diagram of an embodiment.
FIG. 4 is a motor drive current waveform diagram.
FIG. 5 shows transfer timing to a driver and command contents.
FIG. 6 is a configuration of a motor control table according to the embodiment.
FIG. 7 shows DMA control timing.
FIG. 8 shows a method of using a 1 / 4-step current table.
FIG. 9 shows another motor control table configuration.
[Explanation of symbols]
1 Host 2 CPU
3 ROM
4 GA
5 RAM
6 CR motor 7 LF motor 8 ASF motor 9 Motor drive circuit 10 Recording head 11 Head control circuit 15 Motor driver 16 Conventional time table 200 Conventional time table 201 Conventional current table 1
202 Current Table 2 in Conventional Example
501 Time table 502 in the embodiment Current table 1 in the embodiment
503 Current Table 2 in Example
504 Head address table 901 in the embodiment Time and head address table 902 in other embodiment Current table 1 in other embodiment
903 Current table 2 in another embodiment

Claims (5)

CPU、モータの制御テーブルが格納されているROM、モータの制御テーブル格納用RAM、モータ制御用モータドライバ、該RAMからモータ制御データをDMAリードするDMA制御手段を具備し、該RAM内のモータ制御テーブルが、ステップ毎の時間を格納した、第1のテーブルと複数の1/4ステップ分の電流値等の情報を格納した、第2のテーブルと該第2のテーブルの各先頭アドレスを格納した、第3のテーブルから構成されることを特徴とする記録装置。A motor control table storing RAM; a motor control table storing RAM; a motor control motor driver; and a DMA control means for DMA reading motor control data from the RAM. The table stores a first table storing time for each step, a second table storing information such as a current value for a plurality of quarter steps, and a head address of each of the second table. And a third table. 前記第3のテーブルをDMAリードし、得たアドレスを次のステップのDMAスタートアドレスとすることを特徴とする、請求項1記載の記録装置。2. The recording apparatus according to claim 1, wherein the third table is read by DMA, and the obtained address is used as a DMA start address in the next step. 各ステップで使用する電流テーブルの先頭アドレスを前記第1のテーブルの各ステップの時間が格納されているアドレスに相対するよう構成される請求項1記載の記録装置。2. The recording apparatus according to claim 1, wherein the head address of the current table used in each step is configured to correspond to the address where the time of each step in the first table is stored. 前記第3のテーブルをDMAリードし、得たアドレスを次のステップのDMAスタートアドレスとすることを特徴とする、請求項3記載の記録装置。4. The recording apparatus according to claim 3, wherein the third table is DMA-read, and the obtained address is used as a DMA start address in the next step. 前記第1のテーブルと第2のテーブルと第3のテーブルをモータ駆動1ステップ間でDMA−READすることを特徴とする、請求項1記載の記録装置。2. The recording apparatus according to claim 1, wherein the first table, the second table, and the third table are DMA-read during one step of driving the motor.
JP2002164670A 2002-06-05 2002-06-05 Recording apparatus Withdrawn JP2004009452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002164670A JP2004009452A (en) 2002-06-05 2002-06-05 Recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002164670A JP2004009452A (en) 2002-06-05 2002-06-05 Recording apparatus

Publications (1)

Publication Number Publication Date
JP2004009452A true JP2004009452A (en) 2004-01-15

Family

ID=30432755

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002164670A Withdrawn JP2004009452A (en) 2002-06-05 2002-06-05 Recording apparatus

Country Status (1)

Country Link
JP (1) JP2004009452A (en)

Similar Documents

Publication Publication Date Title
US8540331B2 (en) Printing apparatus and printing method
US6014000A (en) System with motor control using multiple timing signal generators
JP6018036B2 (en) Control device for stepping motor and transport device having the same
JP2004009452A (en) Recording apparatus
JP3774578B2 (en) Recording apparatus and motor control circuit
JPS607478B2 (en) Sub-scanning step motor drive device
JP2002272161A (en) Device and method for transfer control
JPH05122470A (en) Facsimile equipment
JP3301337B2 (en) Inkjet printer
JP2000078890A (en) Device and method for controlling drive
JP6976139B2 (en) Recording device and recording control method
JP2000078889A (en) Device and method for controlling drive
JP2002347964A (en) Information processing terminal for image processing system and image processing method
JP2756046B2 (en) Thermal transfer printer
JP2000014195A (en) Motor control device and recorder using the device
JP2004025731A (en) Recorder
JPH0995023A (en) Recorder and control method for lf motor in recorder
JP2758277B2 (en) DPI print control circuit in serial printer
JP2005031994A (en) Liquid injection control data transfer device, and liquid injection device equipped with liquid injection control data transfer device
JP2002192787A (en) Serial printer
JPH10119370A (en) Image forming device
JPH10226123A (en) Method and device for controlling printer
JP2004351792A (en) Recorder
JP2005271342A (en) Image forming apparatus
JP2004306596A (en) Recording apparatus and method for controlling recording data

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050906