JPS626880Y2 - - Google Patents

Info

Publication number
JPS626880Y2
JPS626880Y2 JP999384U JP999384U JPS626880Y2 JP S626880 Y2 JPS626880 Y2 JP S626880Y2 JP 999384 U JP999384 U JP 999384U JP 999384 U JP999384 U JP 999384U JP S626880 Y2 JPS626880 Y2 JP S626880Y2
Authority
JP
Japan
Prior art keywords
frequency
pulse
pulses
generated
cpu
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
Application number
JP999384U
Other languages
Japanese (ja)
Other versions
JPS60124298U (en
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 filed Critical
Priority to JP999384U priority Critical patent/JPS60124298U/en
Publication of JPS60124298U publication Critical patent/JPS60124298U/en
Application granted granted Critical
Publication of JPS626880Y2 publication Critical patent/JPS626880Y2/ja
Granted legal-status Critical Current

Links

Description

【考案の詳細な説明】 本考案は、マイクロプロセツサ(明細書中
CPUと称す。)を用いてパルスモータドライバ制
御用のパルス発振をコントロールするパルス発振
回路の改良に関するものである。
[Detailed description of the invention] The invention is based on a microprocessor (in the specification).
It is called CPU. ) for controlling pulse oscillation for controlling a pulse motor driver.

第1図は従来例の回路図で、1′はCPU、2′
はタイマLSIである。タイマLSI2′とは、CPU
1′よりデータを与えることによつて指定周波数
のパルスを発生させたり、停止させることのでき
る専用LSIである。まず、CPU1′より逐時変化
せる又は一定の指定周波数のパルスを発生するよ
うタイマLSI2′にデータを入力すると、これに
応じてタイマLSI2′はCPUのデータに従つて指
定周波数のパルス3′(以下発生パルスと言う。)
を発生させることになる。次いで、タイマLSI
2′より発生した発生パルス3′の数をCPU1′に
てカウントし、所定数のパルス数に達したところ
でタイマLSI2′のパルス発生を停止させる。こ
れにより指定パルス数の発生、周波数の変化のコ
ントロールが出来るのである。さて、ここで従来
より問題となつていたことは、タイマLSI2′よ
り指定パルス数を発生させるためには、CPU
1′は常にタイマLSI2′の発生パルス3′をカウ
ントする必要がある。しかしながらCPU1′自身
はある決つた周波数Tの基準クロツク4′により
動作しており、このため発生パルス3′をカウン
トする最低周波数が決つてしまい、基準クロツク
4′より短い周期の周波数Tを持つ発生パルス
3′はカウントできないことになる。この関係を
第2図で示す。ここで第2図aで示すように、
CPU1′による読み込みで発生パルス3′の状態
を見ており、例えば発生パルス3′がH状態から
L状態に移つた時第2図aでは基準クロツク4′
より発生パルス3′の方が周期が大であるから正
確にカウントできるが、同図bのように発生パル
ス3′の方が基準クロツク4′より短周期である場
合正確にカウントできないことになる。次に、
CPU1′でパルスカウントする必要性について説
明する。パルスモータ5′をモータドライバにて
速度制御並びに停止位置制御をしながら駆動する
場合、第3図に示すように時刻T0、周波数
でパルス発振を開始する。そして時刻T1迄直線
的に発生パルス3′の周波数を上げて加速し、時
刻T1で最高速度に達する。次いで時刻T2迄この
速度を保持し、時刻T2より時刻T3にかけて直線
的に周波数を下げて速度を落し、時刻T3になつ
た時にタイマLSI2′の発振を停止させ、目標位
置に正確にパルスモータ5′を停止させるもので
あるが、このためには時刻T0〜T3迄に出力され
た総パルス数が目的のパルス数と一致しておらね
ばならず、そのためには発生パルス3′の発生
中、常にその数をカウントして確認しておかねば
ならないものである。そして、この作業はCPU
1′で直接行わねばならないものである。
Figure 1 is a circuit diagram of a conventional example, where 1' is the CPU, 2'
is a timer LSI. Timer LSI2' is a CPU
This is a dedicated LSI that can generate or stop pulses of a specified frequency by applying data from 1'. First, when data is input to timer LSI 2' to generate pulses with a specified frequency that changes from time to time or a constant value from CPU 1', timer LSI 2' responds to the pulse 3' (pulse 3') with a specified frequency according to the CPU data. (hereinafter referred to as generated pulse).
will occur. Next, the timer LSI
The CPU 1' counts the number of generated pulses 3' generated from the pulse 2', and when a predetermined number of pulses is reached, the timer LSI 2' stops generating pulses. This allows generation of a specified number of pulses and control of frequency changes. Now, what has been a problem in the past is that in order to generate the specified number of pulses from timer LSI 2', the CPU
1' must always count the pulses 3' generated by the timer LSI 2'. However, the CPU 1' itself is operated by the reference clock 4' with a certain fixed frequency T, and therefore the minimum frequency at which to count the generated pulses 3' is fixed, and the pulses 3' that have a frequency T shorter than that of the reference clock 4' are determined. Pulse 3' cannot be counted. This relationship is shown in FIG. Here, as shown in Figure 2 a,
The state of the generated pulse 3' is checked by reading by the CPU 1'. For example, when the generated pulse 3' shifts from the H state to the L state, the reference clock 4'
Since the generated pulse 3' has a longer period, it can be counted accurately, but if the generated pulse 3' has a shorter period than the reference clock 4', as shown in b in the same figure, it cannot be counted accurately. . next,
The necessity of counting pulses in CPU 1' will be explained. When driving the pulse motor 5' while controlling its speed and stop position using a motor driver, as shown in Fig. 3, at time T 0 and frequency 0 ,
Start pulse oscillation with . Then, the frequency of the generated pulse 3' is linearly increased and accelerated until time T1 , and the maximum speed is reached at time T1 . Next, this speed is maintained until time T 2 , and the frequency is linearly lowered from time T 2 to time T 3 to reduce the speed. At time T 3 , the oscillation of timer LSI 2' is stopped and the target position is accurately reached. To stop the pulse motor 5', the total number of pulses output from time T 0 to T 3 must match the target number of pulses. While 3' is occurring, the number must be constantly counted and confirmed. And this work is done by CPU
1' must be performed directly.

かかるパルスモータドライブの制御において、
従来例のようにCPU1′が発生パルス3′を1つ
1つカウントする方式では前述のように基準クロ
ツク4′の周波数より発生パルス3′の周波数の方
が高くなつてしまうとパルス数をカウントできな
くなり、停止位置をオーバーランする結果とな
る。従つて停止位置を正確にしようとすればパル
スモータ5′の最高速度は基準クロツク4′の周波
数Tに制限されることになり、パルスモータドラ
イブの高速化が望めなくなる。
In controlling such a pulse motor drive,
In the conventional method where the CPU 1' counts the generated pulses 3' one by one, as mentioned above, if the frequency of the generated pulses 3' becomes higher than the frequency of the reference clock 4', the number of pulses is counted. This will result in overrunning the stop position. Therefore, if the stopping position is to be made accurate, the maximum speed of the pulse motor 5' will be limited to the frequency T of the reference clock 4', making it impossible to increase the speed of the pulse motor drive.

そこで、本考案は、かかる従来例の欠点に鑑み
てなされたもので、その目的とするところは、高
周波数では発生パルスを2n(n=整数)個づつ
1まとめにしてカウントし、CPU内部にて補正
を行うことにより、発生パルスがどのように高い
周波数であつたとしてもこれをカウントすること
ができるパルスモータコントロール用パルス発振
回路を提供するにある。
The present invention was developed in view of the drawbacks of the conventional example, and its purpose is to count the generated pulses in groups of 2 n (n = integer) at high frequencies, and to An object of the present invention is to provide a pulse oscillation circuit for controlling a pulse motor that can count generated pulses no matter how high their frequency is by performing correction in .

以下、本考案を図示実施例に従つて詳述する。
第4図中1はCPU、2はタイマLSI、6は分周回
路である。まず、CPU1より指定周波数のパル
スを発生するようデータをタイマLSI2に入力す
る。これを受けてタイマLSI2は第3図に示すよ
うに時刻T0〜T1の間は発生パルス3の周波数を
へ連続的に増加させ、時刻T1〜T2
は周波数をに保持し、時刻T2〜T3の間は周
波数をに連続的に下げることになる
が、第3図において基準クロツク4の周波数Tを
越えた所で発生パルス3のカウントが不可能にな
る。そこで発生パルス3のカウント方法として、
第4図に示すように分周回路6の分周ライン6
a,6b,6cとCPU1の選択ライン1a,1
b,1cとのアンドをとり、発生パルス3に最適
の周波数の分周パルス7を選択してCPU1に入
力することになる。即ち発生パルス3の周波数が
第3図において基準クロツク4の周波数Tの2
倍、4倍、8倍というように高くなつて行つた時
分周パルス7の周波数を2分周、4分周、8分周
というように2n(n=整数)分周に変換して行
くのである。このような選択はCPU1にあらか
じめプログラミングしておくことになる。さて、
パルスモータ5の停止直前において、分周パルス
7にて間接的にカウントされた発生パルス3の総
和とタイマLSI2にて発生されるべき所定のパル
ス数との間に差が生じた時その差分だけ補正パル
ス8を出力し、両者を一致させてパルスモータ5
を正確に停止させる。なお、2分周パルス7aは
発生パルス3が基準クロツク4の周波数Tを越え
た所から発生するようにプログラミングしておい
ても良いが、最初から2分周パルス7aを用いて
発生パルス3の数をカウントし、最後に補正パル
ス8を出すようにしても良いものである。なお、
本実施例では8分周迄しか記載していないがもち
ろんこれに限られるものではなく2n分周(n>
3以上の整数)迄採用することができるものであ
る。
The present invention will be described in detail below with reference to illustrated embodiments.
In FIG. 4, 1 is a CPU, 2 is a timer LSI, and 6 is a frequency dividing circuit. First, the CPU 1 inputs data to the timer LSI 2 so as to generate a pulse of a specified frequency. In response to this, timer LSI 2 changes the frequency of generated pulse 3 between times T 0 and T 1 as shown in Figure 3.
The frequency is increased continuously from 0 to 1 , the frequency is held at 1 from time T 1 to T 2 , and the frequency is continuously decreased from 1 to 0 from time T 2 to T 3 . In FIG. 3, it becomes impossible to count the generated pulses 3 when the frequency T of the reference clock 4 is exceeded. Therefore, as a method of counting generated pulse 3,
As shown in FIG. 4, the frequency dividing line 6 of the frequency dividing circuit 6
a, 6b, 6c and CPU1 selection lines 1a, 1
By doing an AND with b and 1c, the frequency-divided pulse 7 having the optimum frequency for the generated pulse 3 is selected and input to the CPU 1. That is, the frequency of the generated pulse 3 is equal to 2 of the frequency T of the reference clock 4 in FIG.
The frequency of the time-divided pulse 7, which increases by 2 times, 4 times, and 8 times, is converted to 2 n (n = integer) frequency by dividing by 2, 4, and 8. I'm going. Such a selection must be programmed into CPU1 in advance. Now,
Immediately before the pulse motor 5 stops, if there is a difference between the sum of the generated pulses 3 indirectly counted by the frequency divided pulse 7 and the predetermined number of pulses to be generated by the timer LSI 2, only that difference occurs. The correction pulse 8 is output, and the pulse motor 5 is activated by matching the two pulses.
stop accurately. Note that the frequency-divided pulse 7a may be programmed so that the generated pulse 3 exceeds the frequency T of the reference clock 4, but the frequency-divided pulse 7a can be used from the beginning to generate the generated pulse 3. It is also possible to count the number and output the correction pulse 8 at the end. In addition,
In this example, only up to 8 frequency divisions are described, but of course the number is not limited to this, and 2 n frequency divisions (n >
(an integer of 3 or more) can be adopted.

本考案は、叙上のようにCPUにより制御され
る分周回路を設け、タイマLSIより発生した発生
パルスに対して最適周波数の分周回路を選択して
CPUに入力するようにしてあるのでCPUの基準
クロツクより高い周波数の発生パルスを発生させ
たとしても正確に発生パルス数をカウントするこ
とができ、正確な停止位置を保持し得るにも拘ら
ず、従来実現できなかつた高い周波数の(換言す
れば高速の)パルスモータ駆動が可能となつた。
As mentioned above, this invention provides a frequency divider circuit controlled by the CPU, and selects the frequency divider circuit with the optimum frequency for the generated pulses generated by the timer LSI.
Since the input is made to the CPU, even if the generated pulses are generated at a higher frequency than the CPU's reference clock, the number of generated pulses can be accurately counted, and the accurate stop position can be maintained. It has become possible to drive a pulse motor at a high frequency (in other words, at high speed), which was previously impossible to achieve.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は従来例のパルス発振回路のブロツク
図、第2図a,bは発生パルスとCPUの基準ク
ロツクとの関係を示す比較図、第3図はパルスモ
ータ駆動における時間−周波数関係図、第4図は
本考案のブロツク回路図、第5図はパルス周波数
比較図で、1はCPU、2はタイマLSI、6は分周
回路、3は発生パルス、7は分周パルスである。
Figure 1 is a block diagram of a conventional pulse oscillation circuit, Figures 2a and b are comparison diagrams showing the relationship between generated pulses and the CPU reference clock, and Figure 3 is a time-frequency relationship diagram in pulse motor drive. FIG. 4 is a block circuit diagram of the present invention, and FIG. 5 is a pulse frequency comparison diagram, where 1 is a CPU, 2 is a timer LSI, 6 is a frequency dividing circuit, 3 is a generated pulse, and 7 is a frequency divided pulse.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] CPUにて発生パルス数並びに周波数の変化の
コントロールを受けるパルスモータドライブ回路
制御用のタイマLSIと、タイマLSIより発生した
パルスの入力を受け、CPUの指示により発生パ
ルスに対して最適の分周パルスを発生し、CPU
に入力する分周回路と、分周パルス数をカウント
することによりタイマLSIの発生パルス数をカウ
ントし、タイマLSIの発生パルス数と周波数変化
のコントロールを行うCPUとで構成されたこと
を特徴とするパルスモータコントロール用パルス
発振回路。
A timer LSI for controlling the pulse motor drive circuit whose number of generated pulses and changes in frequency are controlled by the CPU, and a timer LSI that receives input of the pulses generated from the timer LSI and provides the optimal frequency-divided pulse for the generated pulses according to instructions from the CPU. occurs and the CPU
A CPU that counts the number of pulses generated by the timer LSI by counting the number of divided pulses, and controls the number of pulses generated by the timer LSI and frequency changes. Pulse oscillation circuit for pulse motor control.
JP999384U 1984-01-26 1984-01-26 Pulse oscillation circuit for pulse motor control Granted JPS60124298U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP999384U JPS60124298U (en) 1984-01-26 1984-01-26 Pulse oscillation circuit for pulse motor control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP999384U JPS60124298U (en) 1984-01-26 1984-01-26 Pulse oscillation circuit for pulse motor control

Publications (2)

Publication Number Publication Date
JPS60124298U JPS60124298U (en) 1985-08-21
JPS626880Y2 true JPS626880Y2 (en) 1987-02-17

Family

ID=30490738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP999384U Granted JPS60124298U (en) 1984-01-26 1984-01-26 Pulse oscillation circuit for pulse motor control

Country Status (1)

Country Link
JP (1) JPS60124298U (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5100120A (en) * 1988-10-21 1992-03-31 Oki Electric Industry Co., Ltd Cut-sheet feeder control method

Also Published As

Publication number Publication date
JPS60124298U (en) 1985-08-21

Similar Documents

Publication Publication Date Title
EP0583376B1 (en) Stepper motor ramp generation
US4263537A (en) Controlled positioning of a motor shaft
JP2928518B2 (en) Driving method of stepping motor
US4506201A (en) Microprocessor controlled pulse motor
JPS6229798U (en)
US3518516A (en) Stepping motor constant velocity drive
US4680516A (en) Motor speed control system
JPS626880Y2 (en)
US3952237A (en) Rotary body control apparatus
GB1507720A (en) Motor drive system including a feedback loop
US3812414A (en) Stepper motor control system using pulse injection for velocity overshoot control
US4481454A (en) Method of driving a stepping motor
JPS60255081A (en) Speed control system of sewing maghine
US4890048A (en) Low torque ripple stepping motor controller circuit
US5696642A (en) Circuit for controlling the rotation of a rotating member
US4529923A (en) Circuit for driving a stepping motor
JPS6347083Y2 (en)
JPS6035983A (en) Controller of motor
JPS58107094A (en) Controller for pulse motor
JPS59113797A (en) Drive system for stepping motor
JPH07303396A (en) Motor controller
JP2586017B2 (en) Magnetic disk drive
JPH028560B2 (en)
JPH033476B2 (en)
JPS59165976A (en) Capstan control system