JP3266949B2 - Stepping motor control circuit - Google Patents

Stepping motor control circuit

Info

Publication number
JP3266949B2
JP3266949B2 JP29957192A JP29957192A JP3266949B2 JP 3266949 B2 JP3266949 B2 JP 3266949B2 JP 29957192 A JP29957192 A JP 29957192A JP 29957192 A JP29957192 A JP 29957192A JP 3266949 B2 JP3266949 B2 JP 3266949B2
Authority
JP
Japan
Prior art keywords
motor
register
stepping
data
data set
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
JP29957192A
Other languages
Japanese (ja)
Other versions
JPH06153593A (en
Inventor
敏生 上原
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP29957192A priority Critical patent/JP3266949B2/en
Publication of JPH06153593A publication Critical patent/JPH06153593A/en
Application granted granted Critical
Publication of JP3266949B2 publication Critical patent/JP3266949B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Control Of Stepping Motors (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、ファクシミリ装置等の
ステッピングモータ制御回路に関し、特にソフトウェア
によるモータ制御性の向上に好適なステッピングモータ
制御回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a stepping motor control circuit for a facsimile machine and the like, and more particularly to a stepping motor control circuit suitable for improving motor controllability by software.

【0002】[0002]

【従来の技術】従来のステッピングモータ制御回路で
は、励磁相に関してはモータ制御開始前に励磁相を決め
ておき、モータ制御中は相切換えを行なわない。また、
モータ歩進速度は固定クロックに対して四つ飛ばし、三
つ飛ばし、二つ飛ばし、そのままというように、クロッ
クを採用してスルーアップ/ダウンや速度制御を行なっ
ていた。このような装置では、ソフトウェアは常にモー
タ制御に関与していなければならなかった。なお、この
種の装置として関連するものには、例えば、特開平3−
123173号がある。
2. Description of the Related Art In a conventional stepping motor control circuit, the excitation phase is determined before the motor control is started, and the phase switching is not performed during the motor control. Also,
The motor stepping speed is controlled by slew-up / down and speed control by skipping four, three, and two with respect to the fixed clock. In such devices, the software had to always be involved in motor control. Related devices of this type include, for example, Japanese Unexamined Patent Application Publication No.
There is 123173.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術では、ソ
フトウェアの負荷が大きく、ソフトウェアによるモータ
制御性に問題があった。本発明の目的は、このような問
題点を改善し、相切換え、スルーアップ/スルーダウ
ン、励磁ON/OFF、データリクエスト等のソフトウ
ェアによる制御性を向上させるのに好適なステッピング
モータ制御回路を提供することにある。
In the above prior art, the load of software is large, and there is a problem in motor controllability by software. SUMMARY OF THE INVENTION An object of the present invention is to provide a stepping motor control circuit which solves such problems and is suitable for improving controllability by software such as phase switching, through-up / through-down, excitation ON / OFF, and data request. Is to do.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、本発明のステッピングモータ制御回路は、ステッピ
ングモータの駆動パルスを異なる励磁相で発生させるシ
フトレジスタ、モータ歩進パルス速度をカウンタ値とし
て記憶するモータ状態レジスタ、基本クロックをカウン
トするクロックカウンタ、モータ状態レジスタの値とク
ロックカウンタの値を比較するコンパレータ、該コンパ
レータが一致を確認した場合、モータ歩進パルスを発生
するステップパルス発生回路、上記モータ状態レジスタ
を複数ステップ分セットするデータセットレジスタ、該
データセットレジスタの内容をモータ歩進パルス発生ご
とにシフトさせるデータシフトコントローラを備え、該
ータ状態レジスタに設定した値によりモータ歩進パル
ス速度を任意に変更可能にしたことを特徴とする。さら
に、上記モータ状態レジスタに設定されたクロック選択
ビットにより、基本クロックの選択を行なうクロックセ
レクタを備えたことを特徴とする。さらに、上記モータ
状態レジスタに複数ステップ分のデータを設定して、該
データをモータ状態レジスタにシフトし、自動的に複数
ステップに渡るモータ歩進パルスを発生可能にしたこと
を特徴とする。さらに、上記データセットレジスタを構
成するモータ状態レジスタ間のセットカウンタ値を比較
し、値が等しい場合は、データシフトコントローラによ
るデータセットレジスタに記憶されたデータのシフトを
止めさせ、ステップパルス発生回路に等間隔のモータ歩
進パルスの発生を促すプリセットオートローディングコ
ンパレータを備えて、データセットレジスタに設定され
たデータが続けて2ステップ同じ場合は、該データによ
りモータ歩進が制御される際、該データによる速度にて
モータを等速駆動するようにモータ歩進パルスを発生可
能にしたことを特徴とする。また、上記データセットレ
ジスタに記憶されたデータが、モータ歩進に伴うシフト
所定のステップ数以下になった場合には、システムに
対して割り込みを発生させるDMAリクエスト発生回路
を備え、CPUに割り込みを発生させてデータセットレ
ジスタが空きになった旨の通知を可能にしたことを特徴
とする。また、上記等速運動の解除を指示するオートプ
リセットローディングエンドビット用のレジスタを備え
たことを特徴とする。また、ステッピングモータの駆動
を制御する回路において、該ステッピングモータの駆動
パルスを異なる励磁相で発生させるシフトレジスタと、
モータ歩進パルス速度をカウンタ値として記憶するモー
タ状態レジスタと、基本クロックをカウントするクロッ
クカウンタと、前記モータ状態レジスタの値とクロック
カウンタの値を比較するコンパレータと、該コンパレー
タが一致を確認した場合、モータ歩進パルスを発生する
ステップパルス発生回路と、モータ状態レジスタに設定
されたクロック選択ビットにより、クロックの選択を行
なうクロックセレクタと、該モータ状態レジスタを複数
ステップ分有するデータセットレジスタと、該データセ
ットレジスタの内容をモータ歩進パルス発生ごとにシフ
トさせるデータシフトコントローラと、該データセット
レジスタに記憶されたデータが、モータ歩進に伴うシフ
トで所定のステップ数以下になった場合、CPUに割り
込みを発生可能にしたDMAリクエスト発生回路とを備
えたことを特徴とする。さらに、モータスタート、励磁
OFF、モータの等速駆動を示すビットを含む制御情報
を設定するコントロールレジスタを備え、CPUは該制
御情報を認識してモータ制御を行えるようにしたこと
特徴とする。
In order to achieve the above object, a stepping motor control circuit according to the present invention comprises: a shift register for generating driving pulses of a stepping motor in different excitation phases; and storing a motor stepping pulse speed as a counter value. A motor status register, a clock counter that counts a basic clock, a comparator that compares the value of the motor status register with the value of the clock counter, a step pulse generation circuit that generates a motor stepping pulse when the comparators match , Motor status register
A data set register that sets
The contents of the data set register are generated when the motor stepping pulse is generated.
And a data shift controller for shifting the
Characterized in that the motors state set value in the register was arbitrarily change the motor stepping pulses speed. Further, a clock selector for selecting a basic clock according to a clock selection bit set in the motor status register is provided. Further, by setting the data for a plurality of steps content to the motor state register, shifting the data to the motor status register, automatically plurality
A motor stepping pulse over a step can be generated . Further, the set counter values between the motor state registers constituting the data set register are compared, and if the values are equal, the shift of the data stored in the data set register by the data shift controller is stopped, and the step pulse generation circuit is caused to stop. A preset auto-loading comparator for prompting the generation of equally spaced motor stepping pulses is provided. If the data set in the data set register is the same for two consecutive steps , the data is used when the motor stepping is controlled by the data. Motor stepping pulse can be generated to drive the motor at a constant speed
The feature is that it has been enabled. When the data stored in the data set register falls below a predetermined number of steps due to a shift accompanying the motor stepping, a DMA request generating circuit for generating an interrupt to the system is provided, and the CPU is provided with an interrupt. to generate the data set register is characterized in that to allow notification became vacant. Further, a register for an auto-preset loading end bit for instructing cancellation of the constant velocity motion is provided. Further, in a circuit for controlling the driving of the stepping motor, a shift register for generating a driving pulse of the stepping motor in a different excitation phase,
A motor status register that stores a motor stepping pulse speed as a counter value, a clock counter that counts a basic clock, a comparator that compares the value of the motor status register with the value of the clock counter, and when the comparators match. , multiple and step pulse generating circuit for generating a motor stepping pulses, the clock selection bits set in the motor status register, a clock selector for selecting the clock, the motor status register
A data set register having steps, a data shift controller that shifts the contents of the data set register every time a motor stepping pulse is generated, and data stored in the data set register that is shifted in a predetermined step by the motor stepping. A DMA request generating circuit which enables an interrupt to be generated in the CPU when the number becomes equal to or less than the number . Further, a control register for setting control information including bits indicating motor start, excitation OFF, and constant speed driving of the motor is provided, and the CPU can recognize the control information and perform motor control.

【0005】[0005]

【作用】本発明においては、異なった励磁相用のシフト
レジスタをモータと同期させてシフトするため、励磁相
を急変してもスムーズにモータが回転し、画像の読み込
み精度を落とさずに相切換えができる。また、ソフトウ
ェアによる設定カウンタ値が任意のため、モータの歩進
パルス間隔を自由に設定でき、よってモータの速度を任
意に設定できる。さらに、基本クロックを選択できるた
め、ソフトウェアにより細くモータ速度を設定できる。
例えば、複写機等において、プリンタ系への記録周期に
合わせることが可能となる。また、独立したプリンタ系
への縮率変倍等が容易となる。また、数ラインに及ぶデ
ータセットレジスタを持っているため、ソフトウェアは
一度にモータ制御データの書き込み(DMAあるいは通
常のライト動作)を終えられるため、ソフトウェアによ
るモータ制御性が飛躍的に向上する。また、プリセット
オートローディングコンパレータによりモータのスルー
アップのみソフトセットすれば、等速駆動時にはハード
にて自動制御するため、ソフトウェアによる負荷が大幅
に軽減される。また、ソフトウェアは、データセットレ
ジスタにセットしたデータがどこまでシフトし、使われ
ているか知ることができるため、その都度ソフトウェア
が読みに行く必要はなく、ソフトウェアの負荷を軽減で
きる。また、コントロールレジスタを設けることによ
り、CPUからの命令を容易にセットできるとともに、
CPUはモータ制御の状態を知ることができるため、ソ
フトウェアによるモータ制御性が向上する。さらに、モ
ータの等速駆動をソフトウェアにより解除することがで
きる。
In the present invention, the shift registers for different excitation phases are shifted in synchronization with the motor, so that the motor rotates smoothly even if the excitation phase is suddenly changed, and the phase is switched without lowering the image reading accuracy. Can be. Further, since the counter value set by the software is arbitrary, the stepping pulse interval of the motor can be freely set, and thus the speed of the motor can be arbitrarily set. Further, since the basic clock can be selected, the motor speed can be finely set by software.
For example, in a copying machine or the like, it is possible to match the recording cycle to a printer system. Further, it is easy to change the reduction ratio to an independent printer system. In addition, since the software has a data set register extending over several lines, the software can finish writing the motor control data (DMA or normal write operation) at a time, so that the motor controllability by the software is dramatically improved. Also, if only the motor through-up is set by software using the preset auto-loading comparator, automatic control is performed by hardware at the time of constant speed driving, so that the load of software is greatly reduced. Further, the software can know how much the data set in the data set register has been shifted and used, so that the software does not have to go to read each time, and the load on the software can be reduced. By providing a control register, instructions from the CPU can be easily set,
Since the CPU can know the state of motor control, motor controllability by software is improved. Further, the constant speed driving of the motor can be released by software.

【0006】[0006]

【実施例】以下、本発明の一実施例を図面により説明す
る。図1は、本発明の一実施例におけるファクシミリ装
置のステッピングモータ制御回路を示すブロック図であ
る。図1に示す2相シフトレジスタ1、1−2相シフト
レジスタ2、およびW1−2相シフトレジスタ3は、そ
れぞれ2相/1−2相/W1−2相励磁パターンを自動
発生するものであり、シフトパルス(SP)により一つ
ずつパターンがシフトする。この2相/1−2相/W1
−2相は図2に示す通りであり、図2において、(a)
はモータ相励磁の2相、(b)は1−2相、(c)はW
1−2相をそれぞれ示す。また、モータ(4相モータ)
制御用の参照信号は図3に示す通りであって、相励磁の
リファレンス電圧VrefAおよびVrefBは16進
サイクルカウンタ(図示せず)と各シフトレジスタ1〜
3の出力より作成する。また、各励磁相の初期値(モー
タの初期位置)は(A,−A,B,−B)=(1,0,
1,0)とし、リセット時およびクリア時に設定され
る。また、図1の1/2分周回路4,5は、それぞれ、
1−2相へ入るシフトパルスをW1−2相へのシフトパ
ルスの1/2分周し、2相へ入るシフトパルスを1−2
相へのシフトパルスの1/2分周とするものである。こ
れにより、図4および図5に示すように、各シフトレジ
スタ1〜3からの発生パルスはモータの回転に同期して
同時にシフトすることになり、モータ駆動中に励磁相を
急変させた場合でも、モータは一時停止することなく、
スムーズに動作を続ける。なお、図4において、(a)
は励磁相のW1−2相の各サイクルにおけるモータ位置
とモータコントロール信号(参照信号)の関係を示し、
図4(b)および図5はそれぞれ1−2相、2相を示す
ものである。また、図1のW1−2相リファレンス電圧
発生回路6、1−2相リファレンス電圧発生回路7、お
よび2相リファレンス電圧発生回路8は、モータ駆動用
のリファレンス電圧を発生させるものであり、この際、
上記と同様に1/2分周回路9,10にてW1−2相、
1−2相、2相の同期をとる。また、セレクタ11は、
W1−2相、1−2相、2相励磁を切り換えるものであ
り、セレクタ12は、各相励磁のリファレンス電圧を切
り換える。また、セレクタ13は、正転/逆転パルスの
切り換えを行なう。また、セレクタ14は、カウントす
るクロック信号の切り換えを行ない、クロックカウンタ
15は、クロック信号をカウントする。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a stepping motor control circuit of a facsimile apparatus according to one embodiment of the present invention. The two-phase shift register 1, the 1-2-phase shift register 2, and the W1-2-phase shift register 3 shown in FIG. 1 automatically generate a 2-phase / 1-2-phase / W1-2-phase excitation pattern, respectively. The pattern is shifted one by one by the shift pulse (SP). This 2-phase / 1-2-phase / W1
The -2 phase is as shown in FIG. 2, and in FIG.
Represents two phases of motor phase excitation, (b) represents 1-2 phases, and (c) represents W
Phases 1-2 are shown. Motor (4-phase motor)
The reference signal for control is as shown in FIG. 3, and the reference voltages VrefA and VrefB for the phase excitation are a hexadecimal cycle counter (not shown) and each of the shift registers 1 to
Create from the output of 3. The initial value (initial position of the motor) of each excitation phase is (A, -A, B, -B) = (1, 0,
1, 0) and are set at the time of reset and at the time of clearing. Also, the 1/2 frequency divider circuits 4 and 5 in FIG.
The shift pulse entering the 1-2 phase is divided by の of the shift pulse entering the W1-2 phase, and the shift pulse entering the two phases is reduced to 1-2.
The frequency is set to パ ル ス the frequency of the shift pulse for the phase. As a result, as shown in FIGS. 4 and 5, the pulses generated from each of the shift registers 1 to 3 are simultaneously shifted in synchronization with the rotation of the motor, so that even when the excitation phase is suddenly changed while the motor is being driven. , Without stopping the motor,
Keep running smoothly. In FIG. 4, (a)
Indicates the relationship between the motor position and the motor control signal (reference signal) in each cycle of the excitation phase W1-2 phase,
FIGS. 4B and 5 show 1-2 phase and 2 phase, respectively. The W1-2-phase reference voltage generation circuit 6, the 1-2-phase reference voltage generation circuit 7, and the two-phase reference voltage generation circuit 8 of FIG. 1 generate a reference voltage for driving the motor. ,
Similarly to the above, the 1/2 frequency dividers 9 and 10 use the W1-2 phase,
Synchronize the first and second phases. Also, the selector 11
The selector 12 switches the W1-2 phase, the 1-2 phase, and the two-phase excitation, and switches the reference voltage of each phase excitation. The selector 13 switches between forward rotation / reverse rotation pulses. The selector 14 switches the clock signal to be counted, and the clock counter 15 counts the clock signal.

【0007】また、データセットレジスタ16は、モー
タ制御データをセットするレジスタで、DMAもしくは
通常のソフトウェアによる書き込みによってセットされ
る。ここで書き込まれるデータは、図6に示すように、
モータ励磁のモード(正逆転、W1−2相、1−2相、
2相)、基本クロックの選択ビット、および、基本クロ
ックを幾つ数えたらモータのシフトパルスを発生するか
を示すモータステップカウント値である。このデータセ
ットレジスタ16の内容は、データシフトコントローラ
18によってシフトされて行き、モータ状態レジスタ1
7に入る。このモータ状態レジスタ17の内容は、現在
ロードされているモータの状態である。また、レジスタ
17に保持されたモータステップカウンタ値は、コンパ
レータ19によりクロックカウンタ15と常に比較され
ており、それらが一致すると、ステップパルス発生回路
20よりステップパルスが発生される。このステップパ
ルスは前述の自動励磁発生ブロック(シフトレジスタ1
〜3、リファレンス電圧発生回路6〜8等)へ送られ、
モータが駆動される。また、プリセットオートローディ
ングコンパレータ21は、モータスルーアップ後のパル
スレートをデータシフトコントローラ18に通知する。
これにより、データセットレジスタ16に同じ値を書き
込むと、ハードウェアが自動的にモータを等速駆動させ
るので、モータスルーアップ後のソフトの負荷を軽減す
ることができる。また、DMAリクエスト発生回路22
は、データセットレジスタ16がシフトにより空きにな
ったことをCPUに知らせるための割り込みパルス発生
用の回路(レジスタエンプティ割り込みパルス発生用の
回路)である。DMAリクエスト間隔レジスタ24にセ
ットする値によって、データセットレジスタ16がシフ
トにより幾つ空きになったら割り込みパルスを発生する
かが設定できる。 先ず、ステップパルスカウンタ23で
ステップパルスをカウントする。例えば、DMAリクエ
スト間隔レジスタ24に3をセットしたとする。その結
果、ステップパルスカウンタ23が1、または2をカウ
ントするときには、DMAリクエスト発生回路22には
信号が行かないが、3パルス目には信号はDMAリクエ
スト用コンパレータ25がスルーゲート26を開いて信
号が通過する。これに従っ て、DMAリクエスト発生回
路22は「INT empty信号」を出す。また、コ
ントロールレジスタ23は、図7に示すように、モータ
をスタートするときに立てるビット、モータ等速運動を
解除するオートプリセットロードエンドビット、ソフト
が等速運動しているのを知るための等速ビット、電流制
御ビット、および励磁OFFビット等を保持し、ソフト
ウェアによる制御性をより高める。例えば、モータが自
動的に等速駆動される場合、ソフトウェアはデータセッ
トレジスタ16の値によって等速を予測できるが、さら
に、前記等速ビットによっても等速駆動を確認できる。
The data set register 16 is a register for setting motor control data, and is set by writing by DMA or ordinary software. The data written here is, as shown in FIG.
Motor excitation mode (forward / reverse, W1-2 phase, 1-2 phase,
2), a basic clock selection bit, and a motor step count value indicating how many basic clocks are counted before a motor shift pulse is generated. The contents of the data set register 16 are shifted by the data shift controller 18 to obtain the motor state register 1.
Enter 7. The content of the motor status register 17 is the status of the currently loaded motor. Further, the motor step counter value held in the register 17 is constantly compared with the clock counter 15 by the comparator 19, and when they match, a step pulse is generated by the step pulse generating circuit 20. This step pulse corresponds to the above-mentioned automatic excitation generation block (shift register 1).
To 3, reference voltage generating circuits 6 to 8).
The motor is driven. Further, the preset auto-loading comparator 21 notifies the data shift controller 18 of the pulse rate after motor through-up.
As a result, when the same value is written to the data set register 16, the hardware automatically drives the motor at a constant speed, so that the load of software after motor through-up can be reduced. The DMA request generation circuit 22
Is a circuit for generating an interrupt pulse (circuit for generating a register empty interrupt pulse) for notifying the CPU that the data set register 16 has become empty due to the shift. The DMA request interval register 24
The data set register 16 is shifted according to the value to be set.
Generates an interrupt pulse when it becomes empty
Can be set. First, the step pulse counter 23
Step pulses are counted. For example, DMA request
It is assumed that 3 is set in the strike interval register 24. The result
As a result, the step pulse counter 23 counts 1 or 2.
When the DMA request generation circuit 22
The signal does not go, but at the third pulse the signal is a DMA request.
The strike comparator 25 opens the through gate 26 and
No. passes. According to this, DMA request occurrence times
Road 22 issues an "INT empty signal". Also, as shown in FIG. 7, the control register 23 has a bit to be set when starting the motor, an auto preset load end bit for canceling the motor constant speed movement, and a bit for knowing that the software is moving at a constant speed. The speed bit, the current control bit, the excitation OFF bit, and the like are retained, and controllability by software is further improved. For example, when the motor is automatically driven at a constant speed, the software can predict the constant speed based on the value of the data set register 16, but can also confirm the constant speed driving based on the constant speed bit.

【0008】次に、図8を用い、モータ駆動時(コピー
時)のモータステップカウンタ値と変倍率とパルスレー
トの関係について述べる。図8において、横軸はモータ
速度(dpi)および変倍率(%)、縦軸はモータを駆
動するのに単位時間に必要なパルス数であり、nはクロ
ックカウンタ15にセットされるカウンタ値を示す。本
実施例では、矢印で示すように、モータ速度を徐々に上
げる場合、カウンタ値nと励磁相をデータセットレジス
タ16に書き込むだけでスムーズにスルーアップ/スル
ーダウンできる。従って、記録系を400dpiのスピ
ードで一定速度駆動させた状態(変倍率100%)か
ら、スキャナモータ速度を変化させて、スキャナモータ
変倍を行なうことができる。また、カウンタ値nと基本
クロックを適宜選択することにより、1%きざみの変倍
も可能である。なお、本実施例では、4相モータを用い
る場合について述べたが、1種類のモータに対して異な
る励磁方法がある場合には同様の効果を得ることができ
る。例えば、5相モータの場合、4相、4−5相、5相
励磁でもよい。
Next, the relationship between the motor step counter value during motor driving (during copying), the magnification, and the pulse rate will be described with reference to FIG. 8, the horizontal axis represents the motor speed (dpi) and the magnification (%), the vertical axis represents the number of pulses required per unit time to drive the motor, and n represents the counter value set in the clock counter 15. Show. In this embodiment, as shown by the arrow, when the motor speed is gradually increased, the through-up / through-down can be performed smoothly only by writing the counter value n and the excitation phase to the data set register 16. Therefore, it is possible to change the scanner motor speed by changing the scanner motor speed from a state in which the recording system is driven at a constant speed at a speed of 400 dpi (magnification 100%). Further, by appropriately selecting the counter value n and the basic clock, it is possible to change the magnification in increments of 1%. In this embodiment, the case where a four-phase motor is used has been described. However, the same effect can be obtained when there is a different excitation method for one type of motor. For example, in the case of a 5-phase motor, 4-phase, 4-5-phase, 5-phase excitation may be used.

【0009】[0009]

【発明の効果】本発明によれば、異なった励磁相用のシ
フトレジスタをモータと同期させてシフトしているた
め、異なる励磁相に急変してもスムースにモータが回転
し、画像の読み込み精度を落とさずに相切換えができ
る。また、データセットレジスタ、コントロールレジス
タ等により、ソフトウェアによるモータ制御性を向上さ
せ、ソフトウェアの負荷を軽減することができる。
According to the present invention, since the shift registers for different excitation phases are shifted in synchronization with the motor, the motor rotates smoothly even if the excitation phase suddenly changes to a different excitation phase, and the image reading accuracy is improved. Phase can be switched without dropping. Further, the motor controllability by software can be improved by a data set register, a control register, and the like, and the load on software can be reduced.

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

【図1】本発明の一実施例におけるファクシミリ装置の
ステッピングモータ制御回路を示すブロック図である。
FIG. 1 is a block diagram showing a stepping motor control circuit of a facsimile apparatus according to one embodiment of the present invention.

【図2】本発明の一実施例におけるモータ励磁相を示す
図である。
FIG. 2 is a diagram showing a motor excitation phase in one embodiment of the present invention.

【図3】本発明の一実施例におけるリファレンス電圧を
示す図である。
FIG. 3 is a diagram showing a reference voltage in one embodiment of the present invention.

【図4】本発明の一実施例における各モータ励磁相のモ
ータコントロール信号を示す図である。
FIG. 4 is a diagram showing motor control signals of each motor excitation phase in one embodiment of the present invention.

【図5】本発明の一実施例における各モータ励磁相のモ
ータコントロール信号を示す図である。
FIG. 5 is a diagram showing motor control signals of each motor excitation phase in one embodiment of the present invention.

【図6】本発明の一実施例におけるデータセットレジス
タの構成を示す図である。
FIG. 6 is a diagram showing a configuration of a data set register in one embodiment of the present invention.

【図7】本発明の一実施例におけるコントロールレジス
タの構成を示す図である。
FIG. 7 is a diagram showing a configuration of a control register in one embodiment of the present invention.

【図8】本発明の一実施例におけるモータ駆動時のモー
タステップカウンタ値と変倍率とパルスレートの関係を
示す図である。
FIG. 8 is a diagram showing a relationship between a motor step counter value, a scaling factor, and a pulse rate during motor driving according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 2相シフトレジスタ 2 1−2相シフトレジスタ 3 W1−2相シフトレジスタ 4 1/2分周回路 5 1/2分周回路 6 W1−2相リファレンス電圧発生回路 7 1−2相リファレンス電圧発生回路 8 2相リファレンス電圧発生回路 9 1/2分周回路 10 1/2分周回路 11 セレクタ 12 セレクタ 13 セレクタ 14 セレクタ 15 クロックカウンタ 16 データセットレジスタ 17 モータ状態レジスタ 18 データシフトコントローラ 19 コンパレータ 20 ステップパルス発生回路 21 プリセットオートローディングコンパレータ 22 DMAリクエスト発生回路 23 コントロールレジスタ Reference Signs List 1 2-phase shift register 2 1-2-phase shift register 3 W1-2-phase shift register 4 1/2 frequency divider 5 1/2 frequency divider 6 W1-2 phase reference voltage generator 7 1-2 phase reference voltage generator Circuit 8 Two-phase reference voltage generating circuit 9 1/2 frequency divider 10 1/2 frequency divider 11 selector 12 selector 13 selector 14 selector 15 clock counter 16 data set register 17 motor status register 18 data shift controller 19 comparator 20 step pulse Generation circuit 21 Preset auto-loading comparator 22 DMA request generation circuit 23 Control register

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭57−91697(JP,A) 特開 平1−274696(JP,A) 特開 昭58−198198(JP,A) 特開 平2−207659(JP,A) 特開 昭63−103697(JP,A) 実開 平2−26399(JP,U) 特公 昭63−34720(JP,B1) (58)調査した分野(Int.Cl.7,DB名) H02P 8/00 H04N 1/04 ──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-57-91697 (JP, A) JP-A-1-274696 (JP, A) JP-A-58-198198 (JP, A) JP-A-2- 207659 (JP, A) JP-A-63-103697 (JP, A) JP-A-2-26399 (JP, U) JP-B-63-34720 (JP, B1) (58) Fields investigated (Int. Cl. 7 , DB name) H02P 8/00 H04N 1/04

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ステッピングモータの駆動を制御する回
路において、該ステッピングモータの駆動パルスを異な
る励磁相で発生させるシフトレジスタと、モータ歩進パ
ルス速度をカウンタ値として記憶するモータ状態レジス
タと、基本クロックをカウントするクロックカウンタ
と、モータ状態レジスタの値とクロックカウンタの値を
比較するコンパレータと、該コンパレータが一致を確認
した場合、モータ歩進パルスを発生するステップパルス
発生回路と、上記モータ状態レジスタを複数ステップ分
セットするデータセットレジスタと、該データセットレ
ジスタの内容をモータ歩進パルス発生ごとにシフトさせ
るデータシフトコントローラとを備え、該モータ状態レ
ジスタに設定した値によりモータ歩進パルス速度を任意
変更可能にしたことを特徴とするステッピングモータ
制御回路。
1. A circuit for controlling the driving of a stepping motor, comprising: a shift register for generating drive pulses for the stepping motor in different excitation phases; a motor state register for storing a motor stepping pulse speed as a counter value; A counter that counts the clock counter, a comparator that compares the value of the motor status register with the value of the clock counter, a step pulse generation circuit that generates a motor stepping pulse when the comparators match, and a motor status register. For multiple steps
A data set register to be set and the data set register
Shift the contents of the register each time the motor stepping pulse is generated
That a data shift controller, a stepping motor control circuit, characterized in that was arbitrarily change the motor stepping pulses speed by the value set in 該Mo over data status register.
【請求項2】 上記モータ状態レジスタに設定されたク
ロック選択ビットにより、基本クロックの選択を行なう
クロックセレクタを備えたことを特徴とする請求項1記
載のステッピングモータ制御回路。
2. The stepping motor control circuit according to claim 1, further comprising a clock selector for selecting a basic clock according to a clock selection bit set in said motor status register.
【請求項3】 上記モータセットレジスタに複数ステ
ップ分のデータを設定して、該データをモータ状態レジ
スタにシフトし、自動的に複数ステップに渡るモータ歩
進パルスを発生可能にしたことを特徴とする請求項1記
載のステッピングモータ制御回路。
3. The motor set register includes a plurality of stages.
Tsu by setting up of data, the data shifted to the motor status register, automatically stepping motor control according to claim 1, wherein that you have to be generated for motor stepping pulses across multiple step circuit.
【請求項4】 上記データセットレジスタを構成するモ
ータ状態レジスタ間のセットカウンタ値を比較し、値が
等しい場合は、データシフトコントローラによるデータ
セットレジスタに記憶されたデータのシフトを止めさ
せ、ステップパルス発生回路に等間隔のモータ歩進パル
スの発生を促すプリセットオートローディングコンパレ
ータを備えて、データセットレジスタに設定されたデー
タが続けて2ステップ同じ場合は、該データによりモー
タ歩進が制御される際、該データによる速度にてモータ
を等速駆動するようにモータ歩進パルスを発生可能にし
たことを特徴とする請求項3記載のステッピングモータ
制御回路。
4. A set counter value between the motor status registers constituting the data set register is compared. If the values are equal, the shift of the data stored in the data set register by the data shift controller is stopped. The generation circuit is provided with a preset auto-loading comparator that prompts the generation of equally spaced motor stepping pulses. If the data set in the data set register is the same for two consecutive steps , the data is used to control the motor stepping. the motor stepping pulses allows occur to drive at a constant speed motor at a speed of the data
Stepping motor control circuit according to claim 3, wherein a was.
【請求項5】 上記データセットレジスタに記憶された
データが、モータ歩進に伴うシフトで所定のステップ数
以下になった場合には、システムに対して割り込みを発
生させるDMAリクエスト発生回路を備え、CPUに割
り込みを発生させてデータセットレジスタが空きになっ
た旨の通知を可能にしたことを特徴とする請求項4記載
のステッピングモータ制御回路。
5. The method according to claim 1, wherein the data stored in the data set register is a predetermined number of steps in a shift accompanying the motor advance.
A DMA request generating circuit for generating an interrupt to the system when the following condition is satisfied is provided, and an interrupt is generated for the CPU to enable notification that the data set register becomes empty. A stepping motor control circuit according to claim 4.
【請求項6】 上記等速運動の解除を指示するオートプ
リセットローディングエンドビット用のレジスタを備え
たことを特徴とする請求項4記載のステッピングモータ
制御回路。
6. A stepping motor control circuit according to claim 4, further comprising a register for an auto-preset loading end bit for instructing release of said constant velocity movement.
【請求項7】 ステッピングモータの駆動を制御する回
路において、該ステッピングモータの駆動パルスを異な
る励磁相で発生させるシフトレジスタと、モータ歩進パ
ルス速度をカウンタ値として記憶するモータ状態レジス
タと、基本クロックをカウントするクロックカウンタ
と、前記モータ状態レジスタの値とクロックカウンタの
値を比較するコンパレータと、該コンパレータが一致を
確認した場合、モータ歩進パルスを発生するステップパ
ルス発生回路と、モータ状態レジスタに設定されたクロ
ック選択ビットにより、クロックの選択を行なうクロッ
クセレクタと、該モータ状態レジスタを複数ステップ分
有するデータセットレジスタと、該データセットレジス
タの内容をモータ歩進パルス発生ごとにシフトさせるデ
ータシフトコントローラと、該データセットレジスタに
記憶されたデータが、モータ歩進に伴うシフトで所定の
ステップ数以下になった場合、CPUに割り込みを発生
させるDMAリクエスト発生回路とを備えたことを特徴
とするステッピングモータ制御回路。
7. A circuit for controlling driving of a stepping motor, comprising: a shift register for generating drive pulses for the stepping motor in different excitation phases; a motor status register for storing a motor stepping pulse speed as a counter value; A counter that counts the clock count, a comparator that compares the value of the motor status register with the value of the clock counter, a step pulse generation circuit that generates a motor stepping pulse when the comparator determines a match, and a motor status register. A clock selector for selecting a clock according to the set clock selection bit, a data set register having the motor status register for a plurality of steps , and shifting the contents of the data set register every time a motor stepping pulse is generated Data shift controller And over La, data stored in the data set register, a predetermined shift caused by the motor stepping
A stepping motor control circuit, comprising: a DMA request generating circuit for generating an interrupt to the CPU when the number of steps becomes equal to or less than the number of steps .
【請求項8】 請求項7記載のステッピングモータ制御
回路において、モータスタート、励磁OFF、モータの
等速駆動を示すビットを含む制御情報を設定するコント
ロールレジスタを備え、CPUは該制御情報を認識して
モータ制御を行えるようにしたことを特徴とするステッ
ピングモータ制御回路。
8. The stepping motor control circuit according to claim 7, further comprising a control register for setting control information including bits indicating motor start, excitation OFF, and constant speed driving of the motor, and wherein the CPU recognizes the control information. A stepping motor control circuit characterized in that motor control can be performed by using a motor.
JP29957192A 1992-11-10 1992-11-10 Stepping motor control circuit Expired - Lifetime JP3266949B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29957192A JP3266949B2 (en) 1992-11-10 1992-11-10 Stepping motor control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29957192A JP3266949B2 (en) 1992-11-10 1992-11-10 Stepping motor control circuit

Publications (2)

Publication Number Publication Date
JPH06153593A JPH06153593A (en) 1994-05-31
JP3266949B2 true JP3266949B2 (en) 2002-03-18

Family

ID=17874356

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29957192A Expired - Lifetime JP3266949B2 (en) 1992-11-10 1992-11-10 Stepping motor control circuit

Country Status (1)

Country Link
JP (1) JP3266949B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3560335B2 (en) 2000-11-21 2004-09-02 キヤノン株式会社 Stepping motor control device and method, and image reading device and method
JP4420079B2 (en) 2007-07-26 2010-02-24 ソニー株式会社 Pulse motor control device, control method, control program, and imaging device

Also Published As

Publication number Publication date
JPH06153593A (en) 1994-05-31

Similar Documents

Publication Publication Date Title
EP1318596B1 (en) Motor driving device and motor driving method
US4463301A (en) Step motor driving circuit
JP2838734B2 (en) Lens control device
US4734631A (en) Step motor control
JP3266949B2 (en) Stepping motor control circuit
JP5201001B2 (en) Image reading device
JP3381561B2 (en) Stepping motor driving device and surveillance camera device using the same
EP1658721B1 (en) Stepping motor control circuit, electronic camera, and stepping motor control method
JP2003224998A (en) Drive method for stepping motor
JP3316299B2 (en) Stepping motor drive circuit
US4221001A (en) Shift register suitable for controlling the energization of a multiwinding motor
JP4086471B2 (en) Stepping motor control method, control circuit, and electronic apparatus including stepping motor
JP3219601B2 (en) Driving method and driving circuit for stepping motor
JP4054916B2 (en) Stepping motor control circuit, electronic camera, and stepping motor control method
JPS6047116B2 (en) Pulse motor control device
JP2000108443A (en) Method for controlling stepping motor and image-forming apparatus using the same
JP2820724B2 (en) Drive control device for servo motor of image reading device
JPH04331498A (en) Driver for step motor
JPH1198892A (en) Pulse motor driver
JP2000139099A (en) Motor controller
JPH0217895A (en) Driving of stepping motor
RU1781811C (en) Electric motor drive with device for detection of failures
JP3251344B2 (en) Pulse output circuit
SU1624616A1 (en) Thyratron motor
JPH01110095A (en) Driving device for paper feeding

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080111

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090111

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100111

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110111

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120111

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130111

Year of fee payment: 11

EXPY Cancellation because of completion of term