Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2628207B2 - Print timing correction device - Google Patents
[go: Go Back, main page]

JP2628207B2 - Print timing correction device - Google Patents

Print timing correction device

Info

Publication number
JP2628207B2
JP2628207B2 JP1115989A JP1115989A JP2628207B2 JP 2628207 B2 JP2628207 B2 JP 2628207B2 JP 1115989 A JP1115989 A JP 1115989A JP 1115989 A JP1115989 A JP 1115989A JP 2628207 B2 JP2628207 B2 JP 2628207B2
Authority
JP
Japan
Prior art keywords
value
clock
print timing
timer
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP1115989A
Other languages
Japanese (ja)
Other versions
JPH02190369A (en
Inventor
彰彦 稲本
研一 宮本
国彦 近江
Original Assignee
株式会社ピーエフユー
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 株式会社ピーエフユー filed Critical 株式会社ピーエフユー
Priority to JP1115989A priority Critical patent/JP2628207B2/en
Publication of JPH02190369A publication Critical patent/JPH02190369A/en
Application granted granted Critical
Publication of JP2628207B2 publication Critical patent/JP2628207B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 〔概要〕 シリアル・ドット・プリンタにおける印字タイミング
補正装置に関し、 基本クロックを発生するクロック回路(1)と、 基本クロックを計数し、計数値が設定値になった時は
キャリア・モータ用クロックを出力し初期値に戻るキャ
リア・モータ用タイマ(2)と、 基本クロックを計数し、計数値が設定値になった時は
印字タイミング用クロックを出力し初期値に戻り、クリ
ア端子に所定値(low)の信号が印加されたときは計数
値が初期値に戻り、クリア端子に所定値(low)の信号
が印加されている間は基本クロックの計数を停止する印
字タイミング用タイマ(9)と、 キャリア・モータ用クロックを計数するとともにクリ
ア端子に所定値(low)の信号が印加された時にはクリ
アされるキャリア・モータ用パルス・カウンタ(3)
と、 印字タイミング用クロックを計数すると共にクリア端
子に所定値(low)の信号が印加された時にはクリアさ
れる印字タイミング用パルス・カウンタ(4)と、 第1の比較用レジスタ(5A)と、 第2の比較用レジスタ(5B)と、 キャリア・モータ用パルス・カウンタ(3)の計数値
と第1の比較用レジスタ(5A)の値とを比較し、両者が
一致した時は所定値(low)の信号を出力し、両者が一
致しないときは他の所定値(high)の信号を出力する第
1の比較器(6A)と、 印字タイミング用パルス・カウンタ(4)の計数値と
第2の比較用レジスタ(5B)の値とを比較し、両者が一
致した時は所定値(low)の信号を出力し、両者が一致
しないときは他の所定値(high)の信号を出力する第2
の比較器(6B)と、 キャリア・モータ用タイマ(2)の設定値をTCR,第1
の比較用レジスタ(5A)の設定値をA,印字タイミング用
タイマ(9)の設定値をTHM,第2の比較用レジスタ(5
B)の設定値をBとするとき、TCR×A−THM×B≧0な
る条件式を満足するような値をキャリア・モータ用タイ
マ(2),印字タイミング用タイマ(9),第1の比較
用レジスタ(5A),第2の比較用レジスタ(5B)のそれ
ぞれに設定する設定値処理手段(13)と を具備し、 キャリア・モータ用パルス・カウンタ(3)のクリア
端子と印字タイミング用パルス・カウンタ(4)のクリ
ア端子には、第1の比較器(6A)の出力が印加され、 印字タイミング用タイマ(9)のクリア端子には、第
2の比較器(6B)の出力が印加され、 印字タイミング用パルス・カウンタ(4)がクリアさ
れると、第2の比較器(6B)の出力が他の所定値(hig
h)に変更される ことを特徴としている。
DETAILED DESCRIPTION OF THE INVENTION [Overview] Regarding a print timing correction device in a serial dot printer, a clock circuit (1) for generating a basic clock, a basic clock is counted, and when the counted value reaches a set value, A carrier motor timer (2) for outputting a carrier motor clock and returning to an initial value; counting a basic clock; when the counted value reaches a set value, outputting a print timing clock and returning to an initial value; When a signal of a predetermined value (low) is applied to the clear terminal, the count value returns to the initial value, and while the signal of the predetermined value (low) is applied to the clear terminal, the counting of the basic clock is stopped. And a carrier motor clock that is counted when the carrier motor clock is counted and a predetermined value (low) signal is applied to the clear terminal. Scan counter (3)
A pulse counter for print timing (4) that is cleared when a signal of a predetermined value (low) is applied to a clear terminal while counting a clock for print timing, a first register for comparison (5A), The second comparison register (5B) is compared with the count value of the carrier motor pulse counter (3) and the value of the first comparison register (5A). low), and when they do not match, a first comparator (6A) that outputs another predetermined value (high) signal, and the count value of the print timing pulse counter (4) and the first comparator (6A). 2 is compared with the value of the comparison register (5B), and when they match, a signal of a predetermined value (low) is output. When they do not match, a signal of another predetermined value (high) is output. Second
Set the value of the comparator (6B) and the carrier motor timer (2) to TCR ,
The setting value of the comparison register (5A) is A, the setting value of the print timing timer (9) is T HM , and the second comparison register (5A)
When the set value of B) and B, T CR × A-T HM × B ≧ 0 The condition value carrier motor timer that satisfies formula (2), printing timing timer (9), the Setting value processing means (13) for setting each of the first comparison register (5A) and the second comparison register (5B), and a clear terminal of the carrier motor pulse counter (3) and printing The output of the first comparator (6A) is applied to the clear terminal of the timing pulse counter (4), and the output of the second comparator (6B) is applied to the clear terminal of the print timing timer (9). When the output is applied and the print timing pulse counter (4) is cleared, the output of the second comparator (6B) changes to another predetermined value (hig
h).

〔産業上の利用分野〕[Industrial applications]

本発明は、シリアル・モータとしてステッピング・モ
ータを使用したシリアル・ドット・プリンタにおいて、
キャリア・モータの励磁タイミングを与えるキャリア・
モータ用クロックと、印字タイミング用クロックのずれ
を補正する印字タイミング補正装置に関するものであ
る。
The present invention relates to a serial dot printer using a stepping motor as a serial motor.
Carrier that gives carrier motor excitation timing
The present invention relates to a print timing correction device that corrects a difference between a motor clock and a print timing clock.

〔従来の技術〕[Conventional technology]

第4図はシリアル・ドット・プリンタにおけるキャリ
ア・モータ用クロックと印字タイミング用クロックの生
成を説明する図である。同図において21はクロック発生
器、22はCRモータ用タイマ、23は印字タイミング用タイ
マをそれぞれ示している。なお、CRはキャリアの略であ
り、CRクロックとはキャリア・モータ用クロックのこと
であり、HMはハンマの略であり、HMクロックとは印字タ
イミング用クロックのことである。
FIG. 4 is a diagram for explaining generation of a carrier motor clock and a print timing clock in a serial dot printer. In the figure, reference numeral 21 denotes a clock generator, 22 denotes a CR motor timer, and 23 denotes a print timing timer. Note that CR is an abbreviation for carrier, CR clock is a carrier motor clock, HM is an abbreviation for hammer, and HM clock is a print timing clock.

クロック発生器21は、例えば1MHz(周期は1μs)の
ものである。CR用タイマ22は、クロック発生器21から出
力されるクロックを計数し、計数値が予め定められた値
になると、CRクロックを出力し、初期値に戻る。印字タ
イミング用タイマ23も同様な動作を行う。CRクロック
は、キャリアを移動させるステッピング・モータの巻線
を励磁するタイミングを与えるものである。HMタイミン
グ用クロックは、印字ヘッド内のソレノイドを励磁する
タイミングを与えるものである。
The clock generator 21 has a frequency of, for example, 1 MHz (the period is 1 μs). The CR timer 22 counts the clock output from the clock generator 21, and when the count value reaches a predetermined value, outputs a CR clock and returns to the initial value. The print timing timer 23 performs the same operation. The CR clock provides timing for exciting the winding of the stepping motor that moves the carrier. The HM timing clock gives the timing for exciting the solenoid in the print head.

第5図のステッピング・モータの概要を示す図であ
る。ステータの中には、十字形のロータが配置され、ス
テータにはA相,A相,B相,B相が設けられている。
FIG. 6 is a diagram showing an outline of the stepping motor shown in FIG. 5; A cross-shaped rotor is arranged in the stator, and the stator is provided with A-phase, A-phase, B-phase, and B-phase.

第6図はCRクロックと巻線励磁との関係を説明する図
である。ステッピング・モータのA相巻線に電流を流す
ためのスイッチ(図示せず)は、#1〜#3CRクロッ
ク、#5〜#7CRクロック,…の間だけオンされる。A
相,B相,B相については図示の通りである。
FIG. 6 is a diagram for explaining the relationship between the CR clock and the winding excitation. A switch (not shown) for supplying a current to the A-phase winding of the stepping motor is turned on only during # 1 to # 3 CR clocks, # 5 to # 7 CR clocks,. A
The phase, B phase, and B phase are as shown in the figure.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

従来の回路構成では、或る定まった周波数比でキャリ
ア・モータ用タイマと印字タイミング用タイマを動作さ
せたい場合、各々のクロック・パルスの間隔は基本クロ
ックの整数倍に限定される。そうでないとき、理想の周
波数比に近くなるように各タイマに近似値をセットして
動作させた場合、その誤差の累積によって印字のずれが
発生する。
In the conventional circuit configuration, when it is desired to operate the carrier motor timer and the print timing timer at a certain fixed frequency ratio, the interval between each clock pulse is limited to an integral multiple of the basic clock. Otherwise, if each timer is set to an approximate value so as to be close to the ideal frequency ratio and the timer is operated, the printing error occurs due to the accumulation of the error.

本発明は、この点に鑑みて創作されたものであって、
シリアル・ドット・プリンタにおいて、キャリア・モー
タ用クロックと、印字タイミング用クロックを一定間隔
で同期化させることにより、印字ポジションのずれを補
正することを目的としている。
The present invention has been made in view of this point,
It is an object of the present invention to correct a shift of a print position by synchronizing a clock for a carrier motor and a clock for a print timing at a constant interval in a serial dot printer.

〔課題を解決するための手段〕[Means for solving the problem]

第1図は本発明の原理説明図である。本発明の印字タ
イミング補正装置は、 基本クロックを発生するクロック回路(1)と、 基本クロックを計数し、計数値が設定値になった時は
キャリア・モータ用クロックを出力し初期値に戻るキャ
リア・モータ用タイマ(2)と、 基本クロックを計数し、計数値が設定値になった時は
印字タイミング用クロックを出力し初期値に戻り、クリ
ア端子に所定値(low)の信号が印加されたときは計数
値が初期値に戻り、クリア端子に所定値(low)の信号
が印加されている間は基本クロックの計数を停止する印
字タイミング用タイマ(9)と、 キャリア・モータ用クロックを計数するとともにクリ
ア端子に所定値(low)の信号が印加された時にはクリ
アされるキャリア・モータ用パルス・カウンタ(3)
と、 印字タイミング用クロックを計数すると共にクリア端
子に所定値(low)の信号が印加された時にはクリアさ
れる印字タイミング用パルス・カウンタ(4)と、 第1の比較用レジスタ(5A)と、 第2の比較用レジスタ(5B)と、 キャリア・モータ用パルス・カウンタ(3)の計数値
と第1の比較用レジスタ(5A)の値とを比較し、両者が
一致した時は所定値(low)の信号を出力し、両者が一
致しないときは他の所定値(high)の信号を出力する第
1の比較器(6A)と、 印字タイミング用パルス・カウンタ(4)の計数値と
第2の比較王レジスタ(5B)の値とを比較し、両者が一
致した時は所定値(low)の信号を出力し、両者が一致
しないときは他の所定値(high)の信号を出力する第2
の比較器(6B)と、 キャリア・モータ用タイマ(2)の設定値をTCR,第1
の比較用レジスタ(5A)の設定値をA,印字タイミング用
タイマ(9)の設定値をTHM,第2の比較用レジスタ(5
B)の設定値をBとするとき、TCR×A−THM×B≧0な
る条件式を満足するような値をキャリア・モータ用タイ
マ(2),印字タイミング用タイマ(9),第1の比較
用レジスタ(5A),第2の比較用レジスタ(5B)のそれ
ぞれに設定する設定値処理手段(13)と を具備し、 キャリア・モータ用パルス・カウンタ(3)のクリア
端子と印字タイミング用パルス・カウンタ(4)のクリ
ア端子には、第1の比較器(6A)の出力が印加され、 印字タイミング用タイマ(9)のクリア端子には、第
2の比較器(6B)の出力が印加され、 印字タイミング用パルス・カウンタ(4)がクリアさ
れると、第2の比較器(6B)の出力が他の所定値(hig
h)に変更される ことを特徴とするものである。なお、設定値処理手段
(13)は、例えばマイクロプログラムとプロセッサによ
って構成されている。
FIG. 1 is a diagram illustrating the principle of the present invention. A printing timing correction apparatus according to the present invention includes a clock circuit (1) for generating a basic clock, a carrier for counting the basic clock, and outputting a carrier motor clock when the counted value reaches a set value and returning to a default value.・ The motor timer (2) and the basic clock are counted, and when the counted value reaches the set value, the print timing clock is output and returned to the initial value, and a signal of a predetermined value (low) is applied to the clear terminal. When the count value returns to the initial value, a print timing timer (9) that stops counting the basic clock while a signal of a predetermined value (low) is applied to the clear terminal, and a carrier motor clock are used. The pulse counter for carrier motor which is cleared when a signal of a predetermined value (low) is applied to the clear terminal upon counting (3)
A pulse counter for print timing (4) that is cleared when a signal of a predetermined value (low) is applied to a clear terminal while counting a clock for print timing, a first register for comparison (5A), The second comparison register (5B) is compared with the count value of the carrier motor pulse counter (3) and the value of the first comparison register (5A). low), and when they do not match, a first comparator (6A) that outputs another predetermined value (high) signal, and the count value of the print timing pulse counter (4) and the first comparator (6A). The value of the second comparison king register (5B) is compared, and if they match, a signal of a predetermined value (low) is output. If they do not match, a signal of another predetermined value (high) is output. Second
Set the value of the comparator (6B) and the carrier motor timer (2) to TCR ,
The setting value of the comparison register (5A) is A, the setting value of the print timing timer (9) is T HM , and the second comparison register (5A)
When the set value of B) and B, T CR × A-T HM × B ≧ 0 The condition value carrier motor timer that satisfies formula (2), printing timing timer (9), the Setting value processing means (13) for setting each of the first comparison register (5A) and the second comparison register (5B), and a clear terminal of the carrier motor pulse counter (3) and printing The output of the first comparator (6A) is applied to the clear terminal of the timing pulse counter (4), and the output of the second comparator (6B) is applied to the clear terminal of the print timing timer (9). When the output is applied and the print timing pulse counter (4) is cleared, the output of the second comparator (6B) changes to another predetermined value (hig
h). The set value processing means (13) is constituted by, for example, a microprogram and a processor.

〔実施例〕〔Example〕

第2図は本発明の1実施例のブロック図である。同図
において、1はクロック発生器、2はCRモータ用タイ
マ、3はCR用パルス・カウンタ、4はHM用パルス・カウ
ンタ、5Aと5Bは比較用レジスタ、6Aと6Bは比較器、7は
CRモータ励磁相発生回路、8はCRモータ・ドライバ、9
は印字タイミング用タイマ、10は印字ヘッド駆動オンタ
イム発生回路、11は印字ヘッド・ドライバ、12は水晶発
振器をそれぞれ示している。
FIG. 2 is a block diagram of one embodiment of the present invention. In the figure, 1 is a clock generator, 2 is a timer for a CR motor, 3 is a pulse counter for CR, 4 is a pulse counter for HM, 5A and 5B are comparison registers, 6A and 6B are comparators, and 7 is a comparator.
CR motor excitation phase generation circuit, 8 is CR motor driver, 9
Denotes a print timing timer, 10 denotes a print head drive on-time generating circuit, 11 denotes a print head driver, and 12 denotes a crystal oscillator.

クロック発生器1は、水晶発振器12からの信号を取り
込み、基本クロックを出力する。CR用タイマ2は、基本
クロックを計数し、計数値が予め定められた設定値にな
ると、CRクロックを出力し、初期値に戻る。CR用タイマ
2の設定値は、マイクロプログラムによって変更可能で
ある。CR用パルス・カウンタ3は、CRクロックを計数
し、また、そのクリア端子に低レベル信号が入力される
と、クリアされる。HM用パルス・カウンタ4は、HMクロ
ックを計数し、また、クリア端子に低レベル信号が入力
されると、クリアされる。比較用レジスタ5Aの値はマイ
クロプログラムによって変更可能である。比較用レジス
タ5Bも同様である。比較器6Aは、パルス・カウンタ3の
値と比較用レジスタ5Aの値を比較し、両者が一致した時
に低レベル信号を出力する。比較器6Aの出力は、パルス
・カウンタ3,4のクリア端子に印加されている。比較器6
Bは、パルス・カウンタ4の値と比較用レジスタ5Bの値
を比較し、両者が一致した時に低レベル信号を出力す
る。比較器6Bの出力は、印字タイミング用タイマ9のク
リア端子に印加される。CRモータ励磁相発生回路7は、
マイクロプログラムからの指示に従い、CRクロックに同
期してモータ巻線の電流を制御するための制御信号を生
成する。CRモータ励磁相発生回路7から出力される制御
信号は、CRモータ・ドライバ8を介してCRモータ(ステ
ッピング・モータ)に送られる。印字タイミング用タイ
マ9は、基本クロックを計数し、計数値が予め定められ
た設定値になると、印字タイミング用クロックを出力
し、初期値に戻る。印字タイミング用タイマ9の設定値
は、マイクロプログラムによって変更可能である。印字
ヘッド駆動オンタイム発生回路10は、マイクロプログラ
ムからの指示に従い、HMクロックに同期して印字ヘッド
のソレノイドの電流を制御するための制御信号を生成す
る。印字ヘッド駆動オンタイム発生回路10から出力され
る制御信号は、印字ヘッド・ドライバ11を介して印字ヘ
ッドに送られる。
The clock generator 1 receives a signal from the crystal oscillator 12 and outputs a basic clock. The CR timer 2 counts the basic clock, and outputs a CR clock when the counted value reaches a predetermined set value, and returns to the initial value. The set value of the CR timer 2 can be changed by a microprogram. The CR pulse counter 3 counts the CR clock and is cleared when a low level signal is input to its clear terminal. The HM pulse counter 4 counts the HM clock and is cleared when a low level signal is input to the clear terminal. The value of the comparison register 5A can be changed by a microprogram. The same applies to the comparison register 5B. The comparator 6A compares the value of the pulse counter 3 with the value of the comparison register 5A, and outputs a low-level signal when they match. The output of the comparator 6A is applied to the clear terminals of the pulse counters 3 and 4. Comparator 6
B compares the value of the pulse counter 4 with the value of the comparison register 5B, and outputs a low-level signal when they match. The output of the comparator 6B is applied to the clear terminal of the print timing timer 9. The CR motor excitation phase generation circuit 7
In accordance with an instruction from the microprogram, a control signal for controlling the current of the motor winding is generated in synchronization with the CR clock. A control signal output from the CR motor excitation phase generation circuit 7 is sent to a CR motor (stepping motor) via a CR motor driver 8. The print timing timer 9 counts the basic clock, and when the count value reaches a predetermined set value, outputs the print timing clock and returns to the initial value. The set value of the print timing timer 9 can be changed by a microprogram. The print head drive on-time generation circuit 10 generates a control signal for controlling the current of the solenoid of the print head in synchronization with the HM clock according to an instruction from the microprogram. The control signal output from the print head drive on-time generation circuit 10 is sent to the print head via the print head driver 11.

第3図は本発明の実施例における各部の波形を示す図
である。同図において、TCRはCRモータ用タイマ2の設
定値、THMは印字タイミング用タイマ9の設定値をそれ
ぞれ示している。
FIG. 3 is a diagram showing waveforms at various parts in the embodiment of the present invention. In the figure, T CR is setting the CR motor timer 2, T HM indicates the set value of the print timing timer 9, respectively.

図示の例では、TCR×4=THM×5+Δeであり、この
場合には比較用レジスタ5Aに4がセットされ、比較用レ
ジスタ5Bに5がリセットされる。
In the illustrated example, a T CR × 4 = T HM × 5 + Δe, 4 is set in the comparison register 5A in this case, 5 is reset to the comparison register 5B.

比較器6Aの出力の立下がりが同期化ゾーンのスタート
・ポイントになる。パルス・カウンタ4の値と比較用レ
ジスタ5Bの値が一致し、比較器6Bの出力が低レベルにな
ると、印字タイミング用タイマ9はクリアされ、比較器
6Bの出力が低レベルの間は印字タイミング用タイマ9は
ストップしたままである。パルス・カウンタ3の値と比
較用レジスタ5Aの値が一致すると、比較器6Aは低レベル
を出力し、パルス・カウンタ3およびパルス・カウンタ
4がクリアされる。パルス・カウンタ4がクリアされる
と、比較器6Bの出力は高レベルになり、これにより、印
字タイミング用タイマのストップは解除される。
The falling edge of the output of comparator 6A becomes the start point of the synchronization zone. When the value of the pulse counter 4 matches the value of the comparison register 5B and the output of the comparator 6B goes low, the print timing timer 9 is cleared and the
While the output of 6B is at a low level, the print timing timer 9 remains stopped. When the value of the pulse counter 3 matches the value of the comparison register 5A, the comparator 6A outputs a low level, and the pulse counter 3 and the pulse counter 4 are cleared. When the pulse counter 4 is cleared, the output of the comparator 6B goes high, thereby releasing the stop of the print timing timer.

具体例について説明する。基本クロックを1MHz(周期
=1μs)とする。
A specific example will be described. The basic clock is 1 MHz (period = 1 μs).

この場合、周波数比がCR:HM=8:9なので、周期比はC
R:HM=9:8であるが、実際にタイマに設定する値は基本
クロック(1MHz=1μs)の整数倍となるため、CRモー
タ用タイマ,印字タイミング用タイマには近似値をセッ
トする。周波数が4800Hzと5400Hzであるので、その最大
公約数は600になる。4800÷600=8,5400÷600=9であ
るので、比較用レジスタ5Aには8がセットされ、比較用
レジスタ5Bには9がセットされる。但し、 TCR×A−THM×B≧0 とする必要がある。この場合、同期化ゾーン毎に、 209×8−185×9=7(μs) の誤差が発生するが、実施例の回路によってその誤差を
補正することが出来る。すなわち、誤差分(7μs)だ
け印字タイミング用クロックをストップさせておいて、
次の同期化ゾーンの開始時に、両タイマが同時スタート
する。
In this case, since the frequency ratio is CR: HM = 8: 9, the period ratio is C
Although R: HM = 9: 8, the value actually set in the timer is an integral multiple of the basic clock (1 MHz = 1 μs). Therefore, approximate values are set in the CR motor timer and the print timing timer. Since the frequencies are 4800Hz and 5400Hz, the greatest common divisor is 600. Since 4800 ÷ 600 = 8,5400 ÷ 600 = 9, 8 is set in the comparison register 5A and 9 is set in the comparison register 5B. However, there needs to be T CR × A-T HM × B ≧ 0. In this case, an error of 209 × 8−185 × 9 = 7 (μs) occurs in each synchronization zone, but the error can be corrected by the circuit of the embodiment. That is, the print timing clock is stopped by the error (7 μs),
At the start of the next synchronization zone, both timers start simultaneously.

〔発明の効果〕〔The invention's effect〕

以上の説明から明らかなように、本発明によれば、CR
モータ用タイマおよび印字タイミング用タイマに設定す
る値が近似的なものであっても一定間隔で両タイマの同
期化を行うことが出来るので、如何なる周波数比でも誤
差の累積を防ぐことが出来、それによる印字ポジション
のずれの発生も防ぐことが出来る。
As is apparent from the above description, according to the present invention, CR
Even if the values set for the motor timer and the print timing timer are approximate, the two timers can be synchronized at regular intervals, so that accumulation of errors can be prevented at any frequency ratio. This can also prevent the printing position from being shifted due to printing.

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

第1図は本発明の原理説明図、第2図は本発明の1実施
例のブロック図、第3図は本発明の実施例における各部
の波形を示す図、第4図は従来のCRクロックとHMクロッ
クの生成を説明する図、第5図はキャリア・モータの概
要を示す図、第6図はCRクロックと巻線励磁の関係を説
明する図である。 1……クロック発生器、2……CRモータ用タイマ、3…
…CR用パルス・カウンタ、4……HM用パルス・カウン
タ、5Aと5B……比較用レジスタ、6Aと6B……比較器、7
……CRモータ励磁相発生回路、8……CRモータ・ドライ
バ、9……印字タイミング用タイマ、10……印字ヘッド
駆動オンタイム発生回路、11……印字ヘッド・ドライ
バ、12……水晶発振器
FIG. 1 is a diagram for explaining the principle of the present invention, FIG. 2 is a block diagram of one embodiment of the present invention, FIG. 3 is a diagram showing waveforms at various parts in the embodiment of the present invention, and FIG. FIG. 5 is a diagram illustrating the outline of a carrier motor, and FIG. 6 is a diagram illustrating the relationship between a CR clock and winding excitation. 1 ... clock generator, 2 ... CR motor timer, 3 ...
… CR pulse counter, 4… HM pulse counter, 5A and 5B… Comparison registers, 6A and 6B… Comparator, 7
………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………….

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭61−5967(JP,A) 特開 昭61−22973(JP,A) 特開 昭63−57253(JP,A) 特開 平1−222971(JP,A) 特開 昭53−55170(JP,A) 特開 昭62−156960(JP,A) 特開 昭64−47556(JP,A) 特開 平2−36970(JP,A) ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-61-5967 (JP, A) JP-A-61-22973 (JP, A) JP-A-63-57253 (JP, A) 222971 (JP, A) JP-A-53-55170 (JP, A) JP-A-62-156960 (JP, A) JP-A-64-47556 (JP, A) JP-A-2-36970 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】基本クロックを発生するクロック回路
(1)と、 基本クロックを計数し、計数値が設定値になった時はキ
ャリア・モータ用クロックを出力し初期値に戻るキャリ
ア・モータ用タイマ(2)と、 基本クロックを計数し、計数値が設定値になった時は印
字タイミング用クロックを出力し初期値に戻り、クリア
端子に所定値(low)の信号が印加されたときは計数値
が初期値に戻り、クリア端子に所定値(low)の信号が
印加されている間は基本クロックの計数を停止する印字
タイミング用タイマ(9)と、 キャリア・モータ用クロックを計数するとともにクリア
端子に所定値(low)の信号が印加された時にはクリア
されるキャリア・モータ用パルス・カウンタ(3)と、 印字タイミング用クロックを計数すると共にクリア端子
に所定値(low)の信号が印加された時にはクリアされ
る印字タイミング用パルス・カウンタ(4)と、 第1の比較用レジスタ(5A)と、 第2の比較用レジスタ(5B)と、 キャリア・モータ用パルス・カウンタ(3)の計数値と
第1の比較用レジスタ(5A)の値とを比較し、両者が一
致した時は所定値(low)の信号を出力し、両者が一致
しないときは他の所定値(high)の信号を出力する第1
の比較器(6A)と、 印字タイミング用パルス・カウンタ(4)の計数値と第
2の比較用レジスタ(5B)の値とを比較し、両者が一致
した時は所定値(low)の信号を出力し、両者が一致し
ないときは他の所定値(high)の信号を出力する第2の
比較器(6B)と、 キャリア・モータ用タイマ(2)の設定値をTCR,第1の
比較用レジスタ(5A)の設定値をA,印字タイミング用タ
イマ(9)の設定値をTHM,第2の比較用レジスタ(5B)
の設定値をBとするとき、TCR×A−THM×B≧0なる条
件式を満足するような値をキャリア・モータ用タイマ
(2),印字タイミング用タイマ(9),第1の比較用
レジスタ(5A),第2の比較用レジスタ(5B)のそれぞ
れに設定する設定値処理手段(13)と を具備し、 キャリア・モータ用パルス・カウンタ(3)のクリア端
子と印字タイミング用パルス・カウンタ(4)のクリア
端子には、第1の比較器(6A)の出力が印加され、 印字タイミング用タイマ(9)のクリア端子には、第2
の比較器(6B)の出力が印加され、 印字タイミング用パルス・カウンタ(4)がクリアされ
ると、第2の比較器(6B)の出力が他の所定値(high)
に変更される ことを特徴とする印字タイミング補正装置。
A clock circuit (1) for generating a basic clock, a carrier motor timer for counting the basic clock, outputting a carrier motor clock when the counted value reaches a set value, and returning to an initial value. (2) The basic clock is counted, and when the counted value reaches the set value, the print timing clock is output and returned to the initial value. When the signal of the predetermined value (low) is applied to the clear terminal, the total is counted. The numerical value returns to the initial value, and while the signal of the predetermined value (low) is applied to the clear terminal, the print timing timer (9) that stops counting the basic clock and the carrier motor clock are counted and cleared. The carrier motor pulse counter (3), which is cleared when a signal of a predetermined value (low) is applied to the terminal, and counts the print timing clock and sets the predetermined value to the clear terminal. A pulse counter for print timing (4), which is cleared when a (low) signal is applied, a first comparison register (5A), a second comparison register (5B), and a carrier motor The count value of the pulse counter (3) is compared with the value of the first comparison register (5A). When both values match, a signal of a predetermined value (low) is output. Output a signal of a predetermined value (high)
The comparator (6A) compares the count value of the print timing pulse counter (4) with the value of the second comparison register (5B), and when they match, a signal of a predetermined value (low) And a second comparator (6B) that outputs a signal of another predetermined value (high) when the two do not coincide with each other. The set value of the carrier motor timer (2) is set to TCR , the first The set value of the comparison register (5A) is A, the set value of the print timing timer (9) is T HM , and the second comparison register (5B)
When the setting value is B, T CR × A-T HM × B ≧ 0 The condition value carrier motor timer that satisfies formula (2), printing timing timer (9), first Setting value processing means (13) for setting each of the comparison register (5A) and the second comparison register (5B), and a clear terminal of the carrier motor pulse counter (3) and a print timing. The output of the first comparator (6A) is applied to the clear terminal of the pulse counter (4), and the second terminal is applied to the clear terminal of the print timing timer (9).
When the output of the comparator (6B) is applied and the pulse counter (4) for print timing is cleared, the output of the second comparator (6B) becomes another predetermined value (high).
A print timing correction device characterized by being changed to:
JP1115989A 1989-01-20 1989-01-20 Print timing correction device Expired - Lifetime JP2628207B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1115989A JP2628207B2 (en) 1989-01-20 1989-01-20 Print timing correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1115989A JP2628207B2 (en) 1989-01-20 1989-01-20 Print timing correction device

Publications (2)

Publication Number Publication Date
JPH02190369A JPH02190369A (en) 1990-07-26
JP2628207B2 true JP2628207B2 (en) 1997-07-09

Family

ID=11770255

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1115989A Expired - Lifetime JP2628207B2 (en) 1989-01-20 1989-01-20 Print timing correction device

Country Status (1)

Country Link
JP (1) JP2628207B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2810806B2 (en) * 1991-04-09 1998-10-15 沖電気工業株式会社 Print timing generation circuit in serial printer

Also Published As

Publication number Publication date
JPH02190369A (en) 1990-07-26

Similar Documents

Publication Publication Date Title
JP2723691B2 (en) Variable timing signal generation circuit
EP0094763B1 (en) Pulse motor control device
EP2761755B1 (en) System, method and apparatus having extended pulse width modulation phase offset
JP3848502B2 (en) Printer control device
JP2628207B2 (en) Print timing correction device
JPH11507799A (en) Step motor control method and control device
JP2797728B2 (en) Pulse generator waveform processing circuit
JP2996755B2 (en) Circuit device for generating a predetermined number of output pulses
JPH05327486A (en) Synchronizing signal generating circuit
EP0893877B1 (en) Motor drive system controlled by a phase accumulator and method therefor
JP4069134B2 (en) Printer control device
JP4390522B2 (en) Time information creation device, image processing system and method
JPH08156328A (en) Timing control device
JP3624060B2 (en) Pulse motor drive device
JPS61284455A (en) printing device
JP2810806B2 (en) Print timing generation circuit in serial printer
JPH043750B2 (en)
JP3045644B2 (en) Carrier movement controller and pulse frequency converter
JPH0655795A (en) Printing signal generation method and device in serial printer
JPH1127986A (en) Motor controller
JP2578822B2 (en) Stepping motor drive
JP2784654B2 (en) Recording control device
JP2638381B2 (en) Motor drive
JP2001199103A (en) Print timing control device
JP2002108495A (en) Timer device and printer with timer device