JPH05146196A - Step motor driving circuit - Google Patents

Step motor driving circuit

Info

Publication number
JPH05146196A
JPH05146196A JP30600391A JP30600391A JPH05146196A JP H05146196 A JPH05146196 A JP H05146196A JP 30600391 A JP30600391 A JP 30600391A JP 30600391 A JP30600391 A JP 30600391A JP H05146196 A JPH05146196 A JP H05146196A
Authority
JP
Japan
Prior art keywords
signal
output
data
input
setting 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.)
Pending
Application number
JP30600391A
Other languages
Japanese (ja)
Inventor
Tomohide Oka
知英 岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP30600391A priority Critical patent/JPH05146196A/en
Publication of JPH05146196A publication Critical patent/JPH05146196A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

PURPOSE:To rotary drive a step motor at high speed by means of a conventional CPU without requiring any special CPU. CONSTITUTION:A set data (f) is outputted from a control section (CPU) 11 and stored in a FIFO memory 12 which subsequently outputs the set data to a row double down counter 13. When a count value being set by the set data is counted, the row double counter 13 delivers a carry signal (i) to a phase control circuit 14 and the carry signal is also read into a FIFO memory 12.

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 drive circuit capable of high speed rotation drive.

【0002】[0002]

【従来の技術】従来のステッピングモータの駆動制御回
路を図10に示す。制御部1は各部の動作を制御するC
PU(central processor unit)と共にROM(read o
nlymemory、図示せず)及びI/O(input/output)等
から構成されている。この制御部1からステッピングモ
ータ(図示せず)の速度制御するための設定データ(8
ビットデータ)信号aが、書込信号bと共に出力され、
データラッチ回路2に入力されるようになっている。前
記制御部1からのデータ信号aで送信された設定データ
は、書込信号bにより前記データラッチ回路2に記憶保
持(ラッチ)され、さらにこの記憶保持された設定デー
タは、ローダブルダウンカウンタ3に入力されるように
なっていた。
2. Description of the Related Art FIG. 10 shows a conventional drive control circuit for a stepping motor. The control unit 1 controls the operation of each unit C
ROM (read o together with PU (central processor unit)
It is composed of an nly memory (not shown) and I / O (input / output). Setting data (8) for controlling the speed of a stepping motor (not shown) is supplied from the control unit 1.
Bit data) signal a is output together with write signal b,
The data is input to the data latch circuit 2. The setting data transmitted by the data signal a from the control section 1 is stored and held (latched) in the data latch circuit 2 by the write signal b, and the stored and held setting data is stored in the loadable down counter 3. It was supposed to be input to.

【0003】このローダブルダウンカウンタ3には、前
記制御部1から出力されたクロック信号cが入力される
ようになっており、前記データラッチ回路2から入力さ
れた設定データにより設定されたカウント値をその入力
されたクロック信号でダウンカウントして、そのカウン
ト値が「0」になると、ステッピングモータのA相、反
転A相、B相、反転B相への通電制御を行う位相制御回
路4へキャリー信号dを出力する。この位相制御回路4
は、キャリー信号dから得られた進相クロック及び前記
制御部1から入力される回転方向信号eに基づいて、ス
テッピングモータの各相に対して通電制御を行う。
A clock signal c output from the control section 1 is input to the loadable down counter 3, and a count value set by the setting data input from the data latch circuit 2 is input. Is down-counted by the input clock signal, and when the count value becomes "0", to the phase control circuit 4 for controlling the energization of the A phase, the inverted A phase, the B phase, and the inverted B phase of the stepping motor. The carry signal d is output. This phase control circuit 4
Performs energization control for each phase of the stepping motor on the basis of the advance clock obtained from the carry signal d and the rotation direction signal e input from the control unit 1.

【0004】キャリー信号dは、さらに前記ローダブル
ダウンカウンタ3のロード端子Rに入力されると共に、
前記制御部1に割込信号dとして入力され、前記制御部
1は、この割込信号dに基づいて、次の設定データを送
信するデータ信号aを書込信号bと共に前記データラッ
チ回路2に出力し、前記ローダブルダウンカウンタ3は
ロード端子Rに入力されたキャリー信号dにより前記デ
ータラッチ回路2から設定データを読取るようになって
いる。図11に、キャリー(割込)信号dが入力された
ときに前記制御部(CPU)1が行う処理の流れ図を示
す。
The carry signal d is further input to the load terminal R of the loadable down counter 3, and
An interrupt signal d is input to the control unit 1, and the control unit 1 sends a data signal a for transmitting the next setting data to the data latch circuit 2 together with a write signal b based on the interrupt signal d. The loadable down counter 3 outputs the set data from the data latch circuit 2 by the carry signal d input to the load terminal R. FIG. 11 shows a flow chart of processing performed by the control unit (CPU) 1 when the carry (interrupt) signal d is input.

【0005】ローダブルダウンカウンタ3からのキャリ
ー信号dにより割込が発生すると、割込(キャリー)信
号が入力されたか否か判断して、割込信号が入力される
までの待機状態となる。割込信号が入力されると次の設
定データを計算し、その計算して得た設定データを、書
込信号bを出力してデータ信号aによりデータラッチ回
路2に記憶保持させる。この設定データの記憶保持が終
了すると次のキャリー信号dによる割込が発生するまで
の待機状態となる。
When an interrupt is generated by the carry signal d from the loadable down counter 3, it is judged whether or not an interrupt (carry) signal is input, and a standby state is entered until the interrupt signal is input. When the interrupt signal is input, the next setting data is calculated, and the calculated setting data is output as the write signal b and stored in the data latch circuit 2 by the data signal a. When the storage and holding of the setting data is completed, the system waits until the next interrupt by the carry signal d occurs.

【0006】以上説明したように、制御部1から設定デ
ータが出力するタイミングは、ローダブルダウンカウン
タ3からのキャリー信号dにより割込が発生するのを待
って、設定データをデータラッチ回路2に出力するよう
になっている。
As described above, at the timing at which the setting data is output from the control unit 1, the setting data is output to the data latch circuit 2 after the occurrence of an interrupt due to the carry signal d from the loadable down counter 3. It is designed to output.

【0007】[0007]

【発明が解決しようとする課題】従来のステッピングモ
ータ駆動回路では、データラッチ回路2を使用し、ロー
ダブルダウンカウンタ3からのキャリー信号を割込信号
として、制御部(CPU)1によって次の設定データの
出力の処理が行われるため、ステッピングモータの高速
回転駆動においては、制御部1による次の設定データの
出力の処理を行っている間に、すでにステッピングモー
タがその次の設定データによる駆動ステップに入ってし
まうという事態が発生してしまう。つまり、制御部1に
よる設定データの出力処理が高速回転駆動しているステ
ッピングモータに追従できないという問題があった。こ
の問題を解決するためには、制御部1に処理速度の高速
なCPUを使用すればよいが、そのような高速なCPU
はコストが高いという問題がある。
In the conventional stepping motor drive circuit, the data latch circuit 2 is used, the carry signal from the loadable down counter 3 is used as an interrupt signal, and the following setting is made by the control unit (CPU) 1. Since the data output process is performed, in the high-speed rotation driving of the stepping motor, while the control unit 1 is performing the output process of the next setting data, the stepping motor has already driven by the next setting data. The situation of entering will occur. That is, there is a problem that the output processing of the setting data by the control unit 1 cannot follow the stepping motor that is driven to rotate at high speed. In order to solve this problem, a CPU having a high processing speed may be used for the control unit 1, but such a high-speed CPU is used.
Has the problem of high cost.

【0008】そこでこの発明は、特別に高速なCPUを
使用せずに、従来のCPUを使用してステッピングモー
タを高速回転駆動できるステッピングモータ駆動回路を
提供することを目的とする。
Therefore, an object of the present invention is to provide a stepping motor drive circuit which can drive a stepping motor to rotate at high speed by using a conventional CPU without using an especially high speed CPU.

【0009】[0009]

【課題を解決するための手段】請求項1対応の発明は、
ステッピングモータの速度及び回転方向を設定して、基
準クロック、設定データ及び回転方向信号を出力する制
御手段と、この制御手段から出力された設定データを順
次入力して記憶すると共に入力した順番に出力するファ
ストインファストアウトメモリ(fast in fast out mem
ory 、先入れ先出し形メモリ)と、このファストインフ
ァストアウトメモリから順番に出力される設定データに
基づいて、基準クロックにより設定時間を計数してから
キャリー信号を出力すると共にそのキャリー信号により
ファストインファストアウトメモリから次の設定データ
を読み取るカウンタと、制御手段から出力された回転方
向信号によりステッピングモータの各相の位相を決定
し、カウンタから出力されたキャリー信号により駆動パ
ルスをステッピングモータの各相に対して決定された位
相で出力する駆動パルス出力手段とを設けたものであ
る。
The invention according to claim 1 is
Control means for setting the speed and rotation direction of the stepping motor and outputting a reference clock, setting data and rotation direction signal, and setting data output from this control means are sequentially input and stored and output in the input order. Fast in fast out mem
ory, first-in first-out type memory) and the set data output from this fast-in fast-out memory in order, and then outputs the carry signal after counting the set time by the reference clock and the fast-in fast-out by the carry signal. A counter that reads the next setting data from the memory and the phase of each phase of the stepping motor is determined by the rotation direction signal output from the control means, and a drive pulse is output to each phase of the stepping motor by the carry signal output from the counter. Drive pulse output means for outputting in a phase determined by the above.

【0010】請求項2対応の発明は、請求項1対応の発
明において、制御手段から基準クロックを入力してこの
基準クロックの周期を2のn乗倍にしてカウンタに出力
する2のn乗分の1分周カウンタを設けたものである。
According to a second aspect of the invention, in the first aspect of the invention, the reference clock is input from the control means, the period of the reference clock is multiplied by 2 and output to the counter. The counter is divided by 1.

【0011】請求項3対応の発明は、請求項2対応の発
明において、カウンタはファストインファストアウトメ
モリからカウンタに入力される設定データの最上位ビッ
トのデータには関係なく、その最上位ビットのデータを
1に固定したものである。
In the invention according to claim 3, in the invention according to claim 2, the counter is irrelevant to the most significant bit of the setting data input from the fast-in fast-out memory to the counter, The data is fixed at 1.

【0012】[0012]

【作用】このような構成の本発明において、制御手段に
より、ステッピングモータの速度及び回転方向が設定さ
れ、基準クロック、設定データ及び回転方向信号が出力
される。ファストインファストアウトメモリにより、こ
の出力された設定データは、順次入力されて記憶される
と共に入力された順番に出力される。
In the present invention having such a structure, the speed and the rotation direction of the stepping motor are set by the control means, and the reference clock, the setting data and the rotation direction signal are output. By the fast-in fast-out memory, the output setting data is sequentially input and stored, and is output in the input order.

【0013】このファストインファストアウトメモリか
ら出力された設定データに基づいて、カウンタは、制御
手段から出力された基準クロックにより設定時間を計数
してキャリー信号を出力すると共に、そのキャリー信号
によりファストインファストアウトメモリから次の設定
データを読取る。
Based on the setting data output from the fast-in / fast-out memory, the counter counts the set time by the reference clock output from the control means and outputs a carry signal, and the carry-in signal causes the fast-in operation. Read the next setting data from the fast-out memory.

【0014】駆動パルス出力手段により、制御手段から
出力された回転方向信号によりステッピングモータの各
相の位相が決定され、カウンタから出力されたキャリー
信号により駆動パルスがステッピングモータの各相に対
して決定された位相で出力される。
The drive pulse output means determines the phase of each phase of the stepping motor according to the rotation direction signal output from the control means, and the drive pulse is determined for each phase of the stepping motor according to the carry signal output from the counter. Is output at the specified phase.

【0015】また、制御手段から出力された基準クロッ
クは、2のn乗分の1分周カウンタにより、その基準ク
ロックの周期が2のn乗倍にされて、カウンタに出力さ
れる。
Further, the reference clock output from the control means is output to the counter after the period of the reference clock is multiplied by 2 to the nth power by the 1-division counter for 2 n.

【0016】また、ファストインファストアウトメモリ
から出力された設定データ(複数ビットのデータ)の最
上位ビットのデータには関係なく、カウンタにおけるそ
の最上位ビットのデータが1に固定される。
Further, the data of the most significant bit in the counter is fixed to 1 regardless of the data of the most significant bit of the setting data (a plurality of bits of data) output from the fast-in fast-out memory.

【0017】[0017]

【実施例】以下、この発明の第1の一実施例を図面を参
照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present invention will be described below with reference to the drawings.

【0018】図1において、11は各部の動作を制御す
るCPU(central processor unit)等を有して構成さ
れた制御部である。この制御部11からは、9ビットの
FIFOメモリ(fast in fast out memory )12から
出力された書込可能信号gの入力確認にしたがって、ス
テッピングモータ(図示せず)を駆動制御するためのデ
ータ(9ビットデータ)信号fが書込信号hと共に出力
されてそのFIFOメモリ12に入力されるようになっ
ている。前記制御部11からのデータ信号fで送信され
た設定データは、書込信号hにより前記FIFOメモリ
12に順次記憶保持され、さらにこの記憶保持された設
定データは、8ビットのローダブルダウンカウンタ13
から出力するキャリー信号iが読込信号として9ビット
のFIFOメモリ12に入力されることにより、記憶保
持された順番に前記ローダブルダウンカウンタ13に入
力されるようになっている。
In FIG. 1, reference numeral 11 denotes a control unit having a CPU (central processor unit) for controlling the operation of each unit. Data for controlling the drive of the stepping motor (not shown) is supplied from the control unit 11 according to the input confirmation of the writable signal g output from the 9-bit FIFO memory (fast in fast out memory) 12. The 9-bit data) signal f is output together with the write signal h and input to the FIFO memory 12. The setting data transmitted by the data signal f from the control unit 11 is sequentially stored and held in the FIFO memory 12 by the write signal h, and the stored and held setting data is the 8-bit loadable down counter 13.
The carry signal i output from the above is input to the 9-bit FIFO memory 12 as a read signal so that the carry signal i is input to the loadable down counter 13 in the order of being stored and held.

【0019】このローダブルダウンカウンタ13には、
前記制御部11から出力されたクロック信号jが入力さ
れるようになっており、前記FIFOメモリ12から入
力された設定データにより設定されたカウント値を、そ
の入力されたクロック信号jでダウンカウントして、そ
のカウント値が「0」になると、ステッピングモータの
A相、反転A相、B相、反転B相への通電制御を行う移
動制御回路14へ、キャリー信号iを出力する。この位
相制御回路14は、キャリー信号i及び前記制御部11
から入力された回転方向信号kに基づいて、ステッピン
グモータの各相に対して通電制御を行う。
The loadable down counter 13 has
The clock signal j output from the control unit 11 is input, and the count value set by the setting data input from the FIFO memory 12 is down-counted by the input clock signal j. When the count value becomes "0", the carry signal i is output to the movement control circuit 14 that controls the energization of the A phase, the inverted A phase, the B phase, and the inverted B phase of the stepping motor. The phase control circuit 14 controls the carry signal i and the control unit 11
Energization control is performed for each phase of the stepping motor based on the rotation direction signal k input from.

【0020】キャリー信号iは、さらに前記ローダブル
ダウンカウンタ13のロード端子Rに入力され、前記ロ
ーダブルダウンカウンタ13は、ロード端子に入力され
たキャリー信号iにより前記FIFOメモリ12から設
定データを読取るようになっている。
The carry signal i is further input to the load terminal R of the loadable down counter 13, and the loadable down counter 13 reads the setting data from the FIFO memory 12 by the carry signal i input to the load terminal. It is like this.

【0021】図2に、前記ローダブルダウンカウンタ1
3から前記FIFOメモリ12へキャリー信号iが出力
されたことにより、そのFIFOメモリ12から書込可
能信号gが入力されたときに前記制御部(CPU)11
が行う処理の流れ図を示す。
FIG. 2 shows the loadable down counter 1 described above.
The carry signal i is output from the FIFO memory 12 to the FIFO memory 12 so that when the writable signal g is input from the FIFO memory 12, the control unit (CPU) 11
The flowchart of the process which is performed is shown.

【0022】ローダブルダウンカウンタ13からキャリ
ー信号iがFIFOメモリ12に入力されると、FIF
Oメモリ12から設定データが記憶保持された順番でロ
ーダブルダウンカウンタ13に出力され、FIFOメモ
リ12から書込可能信号gが発生する。
When the carry signal i from the loadable down counter 13 is input to the FIFO memory 12, the FIFO memory 12 receives the carry signal i.
The setting data is output from the O memory 12 to the loadable down counter 13 in the order stored and held, and the writable signal g is generated from the FIFO memory 12.

【0023】まず、この発生した書込可能信号gが入力
されたか否かを判断して、書込可能信号gが入力される
までの待機状態となる。書込可能信号gが入力されると
次の設定データを計算し、その計算して得た設定データ
を、書込信号hと共にデータ信号fにより出力してFI
FOメモリ12に記憶保持させる。この設定データの記
憶保持が終了すると、書込可能信号gがまだ出力されて
いるか否かを判断して、書込可能信号gがまだ出力され
ていれば再びさらに次の設定データを計算する処理に戻
るようになっている。
First, it is determined whether or not the generated writable signal g has been input, and a standby state is entered until the writable signal g is input. When the writable signal g is input, the next setting data is calculated, and the setting data obtained by the calculation is output by the data signal f together with the writing signal h to obtain the FI.
The FO memory 12 is stored and held. When the storage and holding of the setting data is completed, it is determined whether the writable signal g is still output, and if the writable signal g is still output, the next setting data is calculated again. To return to.

【0024】また、書込可能信号gが出力されていなけ
れば、再び、ローダブルダウンカウンタ13からのキャ
リー信号iによる書込可能信号gが、発生するまでの待
機状態となる処理に戻るようになっている。このような
構成の本実施例においては、制御部11から書込信号h
と共にデータ信号fにより設定データがFIFOメモリ
12に出力される。
If the writable signal g is not output, the process returns to the standby state until the writable signal g by the carry signal i from the loadable down counter 13 is generated again. Is becoming In the present embodiment having such a configuration, the write signal h from the control unit 11 is sent.
At the same time, the setting data is output to the FIFO memory 12 by the data signal f.

【0025】この時のFIFOメモリ12おける各信号
のタイミングを、図3に示す。図3(a)にFIFOメ
モリ12に入力されたデータ信号fを示し、図3(b)
にFIFOメモリ12に入力された書込信号h、図3
(c)にFIFOメモリ12からローダブルダウンカウ
ンタ13へ出力するデータ信号(データ信号f)、図3
(d)にFIFOメモリ12に入力される読込信号(キ
ャリー信号i)を示す。
FIG. 3 shows the timing of each signal in the FIFO memory 12 at this time. FIG. 3A shows the data signal f input to the FIFO memory 12, and FIG.
The write signal h input to the FIFO memory 12 in FIG.
FIG. 3C shows a data signal (data signal f) output from the FIFO memory 12 to the loadable down counter 13.
A read signal (carry signal i) input to the FIFO memory 12 is shown in (d).

【0026】図3に示すように、書込信号hと共にデー
タ信号fにより設定データが順次FIFOメモリ12に
入力される。このうち最初の設定データ(データ1)の
みは、記憶保持されると同時にローダブルダウンカウン
タ13に出力される。そしてその最初の設定データ(デ
ータ1)の次の設定データ(データ2)は、時点Cにお
ける読込信号(キャリー信号i)の入力(ダウンエッジ
の入力)により出力される。それ以降の設定データにお
いても読込信号の入力により出力されるようになってい
る。ただし、次の設定データが入力されていない場合に
は読込信号が入力されても、そのとき出力されている設
定データが継続して出力される事になる。
As shown in FIG. 3, the setting data is sequentially input to the FIFO memory 12 by the data signal f together with the write signal h. Of these, only the first setting data (data 1) is stored and held, and simultaneously output to the loadable down counter 13. Then, the next setting data (data 2) of the first setting data (data 1) is output by the input (down edge input) of the read signal (carry signal i) at time point C. The subsequent setting data is also output by the input of the read signal. However, if the next setting data is not input, even if the read signal is input, the setting data being output at that time is continuously output.

【0027】この時のローダブルダウンカウンタ13に
おける各信号のタイミングを図4に示す。図4(a)に
ローダブルダウンカウンタ13に入力されるクロック信
号jを示し、図4(b)にローダブルダウンカウンタ1
3から位相制御回路14へ出力するキャリー信号i、図
4(c)にローダブルダウンカウンタ13からFIFO
メモリ12へ出力する読込信号(キャリー信号i)、図
4(d)にFIFOメモリ12からローダブルダウンカ
ウンタ13に入力されたデータ信号(データ信号f)、
図4(e)にローダブルダウンカウンタ13におけるカ
ウントデータ信号を示す。
FIG. 4 shows the timing of each signal in the loadable down counter 13 at this time. FIG. 4A shows the clock signal j input to the loadable down counter 13, and FIG. 4B shows the loadable down counter 1.
Carry signal i output from 3 to phase control circuit 14, loadable down counter 13 to FIFO in FIG.
A read signal (carry signal i) output to the memory 12, a data signal (data signal f) input to the loadable down counter 13 from the FIFO memory 12 in FIG.
FIG. 4E shows a count data signal in the loadable down counter 13.

【0028】図4に示すように、入力されている設定デ
ータがカウント値「8」の時には、その前の設定データ
がカウントされており、この前の設定データにより設定
されたカウントデータ信号がクロック信号jによりダウ
ンカウントされて「0」になると、時点Dに示すよう
に、キャリー信号i及び読込信号が出力され、入力され
ている設定データによりカウントデータ信号の設定が行
われると共にFIFOメモリ12から出力される設定デ
ータが次の設定データとなる。この次の設定データは、
図4の例ではカウント値「9」のものとなっている。
As shown in FIG. 4, when the input setting data is the count value "8", the previous setting data is being counted, and the count data signal set by the previous setting data is the clock. When the signal j is down-counted to "0", the carry signal i and the read signal are output as shown at time D, the count data signal is set by the input setting data, and the FIFO memory 12 The output setting data becomes the next setting data. The next setting data is
In the example of FIG. 4, the count value is "9".

【0029】カウント値「8」の設定データにより
「8」に設定されたカウントデータ信号は、クロック信
号jによりカウントダウンされて「0」になると、時点
Eに示すように、再びキャリー信号i及び読込信号が出
力される。そしてその時設定されている設定データ(カ
ウント値「9」)によりカウントデータ信号が「9」に
設定されて、クロック信号jによりカウントダウンが開
始される。
When the count data signal set to "8" by the setting data of the count value "8" is counted down by the clock signal j and becomes "0", the carry signal i and the read signal are read again as shown at the time point E. The signal is output. Then, the count data signal is set to "9" by the setting data (count value "9") set at that time, and the countdown is started by the clock signal j.

【0030】また、制御部11から出力された方向回転
信号eにより、回路制御回路14は正回転又は逆回転を
決定し、ローダブルダウンカウンタ13から出力される
キャリー信号iから得られた進相クロック(CLK)に
より、図5(a)に示す正回転(CW)時のA相及びB
相の通電タイミング又は図5(b)に示す逆回転(CC
W)時のA相及びB相の通電タイミングに基づいて、ス
テッピングモータを通電駆動制御する。
The circuit control circuit 14 determines the forward rotation or the reverse rotation based on the direction rotation signal e output from the control section 11, and the phase advance obtained from the carry signal i output from the loadable down counter 13. Depending on the clock (CLK), A phase and B at the time of forward rotation (CW) shown in FIG.
Phase energization timing or reverse rotation (CC
The stepping motor is energized and driven based on the energization timings of the A phase and the B phase at the time of W).

【0031】このように本実施例によれば、FIFOメ
モリ12を使用し、ローダブルダウンカウンタ13から
のキャリー信号iを読込信号としてこのFIFOメモリ
12に入力させたことにより、制御部11のCPUは、
ステッピングモータの設定データをFIFOメモリ12
の容量にしたがって設定データをFIFOメモリ12に
書込む処理を行うだけで済むため、ローダブルダウンカ
ウンタ13の設定データを読込むタイミングは、キャリ
ー信号iにより制御される事になる。従って、特別高速
なCPUを使用せずに、しかも高速なCPUに比べて安
価にステッピングモータを高速回転駆動できる。また、
図6にこの発明の第2の一実施例を示す。
As described above, according to this embodiment, the FIFO memory 12 is used, and the carry signal i from the loadable down counter 13 is input to the FIFO memory 12 as a read signal. Is
The setting data of the stepping motor is stored in the FIFO memory 12
Since it suffices to write the setting data into the FIFO memory 12 according to the capacity of, the timing of reading the setting data of the loadable down counter 13 is controlled by the carry signal i. Therefore, it is possible to drive the stepping motor to rotate at a high speed at a low cost as compared with a high-speed CPU without using a special high-speed CPU. Also,
FIG. 6 shows a second embodiment of the present invention.

【0032】この実施例は、前述の第1の実施例におい
て、制御部11とローダブルダウンカウンタ13へのク
ロック信号jのラインに、2のn乗分の1分周カウンタ
15を介し、この2のn乗分の1分周カウンタ15にお
いて、前記制御部11から出力されたクロック信号j
は、その周期を2のn乗倍したクロック信号(2のn乗
倍クロック信号n)に変換して前記ローダブルダウンカ
ウンタ13に出力するようになっている。
In this embodiment, the line of the clock signal j to the control unit 11 and the loadable down counter 13 in the first embodiment described above is passed through the 1-division counter 15 for 2 to the nth power, A clock signal j output from the control unit 11 in a divide-by-1 counter 15 for 2 to the nth power.
Is converted into a clock signal (clock signal n times 2 to the nth power) of which the cycle is multiplied by the nth power of 2 and output to the loadable down counter 13.

【0033】また、前記制御部11から書込信号hと共
に前記FIFOメモリ12へ出力するデータ信号pに
は、前記2のn乗分の1分周カウンタ15の分周値を設
定するデータが含まれている。すなわちデータ信号pの
上位2ビットは、前記2のn乗分の1分周カウンタ15
の分周値の設定データ(0、1、2)のため(分周値デ
ータ信号r)に使用され、下位7ビットはローダブルダ
ウンカウンタ13のカウント値のため(カウントデータ
信号s)に使用されている。
The data signal p output from the control section 11 to the FIFO memory 12 together with the write signal h includes data for setting the frequency division value of the 1 frequency division counter 15 for the nth power of 2. Has been. That is, the high-order 2 bits of the data signal p are the 1-division counter 15 for the nth power of 2.
Is used for (division value data signal r) for setting the division value (0, 1, 2), and the lower 7 bits are used for (count data signal s) for the count value of the loadable down counter 13. Has been done.

【0034】そして、前記FIFOメモリ12からは、
前記2のn乗分の1分周カウンタ15へ前記分周値デー
タ信号rが出力され、前記ローダブルダウンカウンタ1
3へカウントデータ信号sが出力されるようになってお
り、そのローダブルダウンカウンタ13のカウントデー
タ信号入力部の最上位ビットは「1」に固定されてい
る。
From the FIFO memory 12,
The divided value data signal r is output to the 1-division counter 15 for the nth power of 2, and the loadable down counter 1
3, the count data signal s is output to 3, and the most significant bit of the count data signal input part of the loadable down counter 13 is fixed to "1".

【0035】図7に、前記ローダブルダウンカウンタ1
3から前記FIFOメモリ12へキャリー信号iが出力
されたことにより、そのFIFOメモリ12から書込可
能信号gが入力されたときに前記制御部(CPU)11
が行う処理の流れ図を示す。
FIG. 7 shows the loadable down counter 1 described above.
The carry signal i is output from the FIFO memory 12 to the FIFO memory 12 so that when the writable signal g is input from the FIFO memory 12, the control unit (CPU) 11
The flowchart of the process which is performed is shown.

【0036】ローダブルダウンカウンタ13からキャリ
ー信号iがFIFOメモリ12に入力されると、FIF
Oメモリ12から設定データが記憶保持された順番でロ
ーダブルダウンカウンタ13に出力され、FIFOメモ
リ12から書込可能信号gが発生する。
When the carry signal i is input from the loadable down counter 13 to the FIFO memory 12, the FIFO
The setting data is output from the O memory 12 to the loadable down counter 13 in the order stored and held, and the writable signal g is generated from the FIFO memory 12.

【0037】まず、この発生した書込可能信号gが入力
されたか否かを判断して、書込可能信号gが入力される
までの待機状態となる。書込可能信号gが入力されると
次の設定データ及び2のn乗分の1分周カウンタ15の
分周値のデータを計算し、その計算して得た設定データ
及び分周値のデータを、書込信号hと共にデータ信号p
により出力してFIFOメモリ12に記憶保持させる。
この設定データの記憶保持が終了すると、書込可能信号
gがまだ出力されているか否かを判断して、書込可能信
号gがまだ出力されていれば再びさらに次の設定データ
を計算する処理に戻るようになっている。
First, it is determined whether or not the generated writable signal g is input, and a standby state is entered until the writable signal g is input. When the writable signal g is input, the next setting data and the data of the frequency division value of the n-th power of 2 of the frequency division counter 15 are calculated, and the calculated setting data and frequency division value data are obtained. Together with the write signal h and the data signal p
To be stored and held in the FIFO memory 12.
When the storage and holding of the setting data is completed, it is determined whether the writable signal g is still output, and if the writable signal g is still output, the next setting data is calculated again. To return to.

【0038】また、書込可能信号gが出力されていなけ
れば、再び、ローダブルダウンカウンタ13からのキャ
リー信号iによる書込可能信号gが、発生するまでの待
機状態となる処理に戻るようになっている。
If the writable signal g is not output, the process returns to the standby state until the writable signal g by the carry signal i from the loadable down counter 13 is generated again. Is becoming

【0039】このような構成の本実施例においては、制
御部11から出力されるクロック信号j及び9ビットの
データ信号pの上位2ビットのデータが、FIFOメモ
リ12を介して2のn乗分の1分周カウンタ15に入力
されることにより、上位2ビットの数値が「0」の時に
は図8(a)に示すような分周がかからないクロック信
号n、「1」の時には図8(b)に示すような1/2の
分周がかかったクロック信号n、「2」の時には図8
(c)に示すような1/4の分周がかかったクロック信
号n、「3」の時には図8(d)に示すような1/8の
分周がかかったクロック信号nが、ローダブルダウンカ
ウンタ13に出力される。なお、この実施例においては
1/8の分周は使用していない。
In this embodiment having such a configuration, the upper 2 bits of data of the clock signal j and the 9-bit data signal p output from the control unit 11 are divided by the nth power of 2 through the FIFO memory 12. 8 is input to the 1-divide counter 15, the clock signal n is not divided as shown in FIG. 8 (a) when the numerical value of the upper 2 bits is "0", and is shown in FIG. 8 (b) when it is "1". 8) when the clock signal n is divided by 1/2 and is "2" as shown in FIG.
A clock signal n divided by 1/4 as shown in (c), and a clock signal n divided by 1/8 as shown in FIG. It is output to the down counter 13. In this embodiment, 1/8 frequency division is not used.

【0040】さらに、ローダブルダウンカウンタ13の
最上位ビットは「1」に固定されているので、制御部1
1から出力されるデータ信号の下位7ビットのデータ
が、FIFOメモリ12を介してローダブルダウンカウ
ンタ13へ入力するデータにより128〜255までの
数値を取ることができる。
Further, since the most significant bit of the loadable down counter 13 is fixed at "1", the control unit 1
The data of the lower 7 bits of the data signal output from 1 can take a numerical value from 128 to 255 depending on the data input to the loadable down counter 13 via the FIFO memory 12.

【0041】この実施例においても前述した実施例と同
様に、図3、図4及び図5に示すFIFOメモリ12、
ローダブルダウンカウンタ13及び位相制御回路14に
おける各信号の通電タイミングにしたがって制御され
る。
Also in this embodiment, similarly to the above-mentioned embodiment, the FIFO memory 12 shown in FIGS.
The loadable down counter 13 and the phase control circuit 14 are controlled according to the energization timing of each signal.

【0042】従って、図9に示すように、7ビットのカ
ウントデータ信号s及び2のn乗分の1分周カウンタ1
5からの2のn乗倍クロック信号nにより、クロック信
号jの速度Kに対して1/128〜1/255〜1/5
12までのクロック速度L〜M〜Nの2のn乗倍クロッ
ク信号nを得ることができる。従って、ローダブルダウ
ンカウンタ13は、この2のn乗倍クロック信号nに基
づいてキャリー信号dを出力するので、この1/128
〜1/512までのクロック速度を持つキャリー信号d
から得られる進相クロックによって、位相制御回路14
はステッピングモータの各相の通電タイミングパルスを
出力するので、ステッピングモータのスローアップ制御
を高い精度で行う事ができる。なお、実施例において
は、さらに1/512〜1/1020までのクロック速
度をキャリー信号dとして発生させることも可能である
が、図9には図示していない。
Therefore, as shown in FIG. 9, the 7-bit count data signal s and the frequency-dividing counter 1 for the nth power of 2 are used.
2 to the n-th power clock signal n from 5 to 1/128 to 1/255 to 1/5 with respect to the speed K of the clock signal j
It is possible to obtain a clock signal n that is a power of 2 to the n-th power of clock speeds L to M to N up to 12. Therefore, the loadable down counter 13 outputs the carry signal d based on the n-th power clock signal n of 2.
Carry signal d with clock speeds up to 1/512
The phase control circuit 14
Outputs the energization timing pulse of each phase of the stepping motor, so that the slow-up control of the stepping motor can be performed with high accuracy. In the embodiment, a clock speed of 1/512 to 1/1020 can be further generated as the carry signal d, but it is not shown in FIG.

【0043】このように本実施例は、FIFOメモリ1
2を使用したことにより、前述した実施例と同様なステ
ッピングモータを高速回転駆動できる効果を得ることが
でき、2のn乗分の1分周カウンタ15及びローダブル
ダウンカウンタ13のデータ入力において最上位ビット
を「1」に固定したことにより、ステッピングモータを
高速回転駆動させるのに必要なスローアップ制御をより
高い精度で行うことができる。
As described above, in this embodiment, the FIFO memory 1
By using 2, it is possible to obtain the effect that the stepping motor similar to that of the above-described embodiment can be driven to rotate at high speed, and it is possible to obtain the maximum data input of the 1-division counter 15 and the loadable down counter 13 for 2 n. By fixing the upper bit to “1”, the slow-up control required for driving the stepping motor to rotate at high speed can be performed with higher accuracy.

【0044】[0044]

【発明の効果】以上詳述したようにこの発明によれば、
特別に高速なCPUを使用せずに、従来のCPUを使用
してステッピングモータを高速回転駆動できるステッピ
ングモータ駆動回路を提供できる。
As described in detail above, according to the present invention,
It is possible to provide a stepping motor drive circuit capable of driving a stepping motor to rotate at high speed by using a conventional CPU without using a specially fast CPU.

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

【図1】この発明の第1実施例の要部回路構成を示すブ
ロック図。
FIG. 1 is a block diagram showing a circuit configuration of essential parts of a first embodiment of the present invention.

【図2】同実施例の制御部(CPU)が行う処理の流れ
を示す図。
FIG. 2 is a diagram showing a flow of processing performed by a control unit (CPU) of the embodiment.

【図3】同実施例のFIFOメモリの各信号のタイミン
グを示す図。
FIG. 3 is a diagram showing the timing of each signal of the FIFO memory of the same embodiment.

【図4】同実施例のローダブルダウンカウンタの各信号
のタイミングを示す図。
FIG. 4 is a diagram showing the timing of each signal of the loadable down counter of the embodiment.

【図5】同実施例の正回転時及び逆回転時ののステッピ
ングモータの各相の通電タイミングを示す図。
FIG. 5 is a view showing the energization timing of each phase of the stepping motor during forward rotation and reverse rotation of the embodiment.

【図6】この発明の第2実施例の要部回路構成を示すブ
ロック図。
FIG. 6 is a block diagram showing a circuit configuration of essential parts of a second embodiment of the present invention.

【図7】同実施例の制御部(CPU)が行う処理の流れ
を示す図。
FIG. 7 is a diagram showing a flow of processing performed by a control unit (CPU) of the embodiment.

【図8】同実施例の2のn乗分の1分周カウンタにより
分周されたクロック信号を示す図。
FIG. 8 is a diagram showing a clock signal frequency-divided by a 1-division counter for 2 to the nth power of the embodiment.

【図9】同実施例のステッピングモータの始動時の速度
曲線を示す図。
FIG. 9 is a diagram showing a speed curve when the stepping motor of the embodiment is started.

【図10】従来例の要部回路構成を示すブロック図。FIG. 10 is a block diagram showing a circuit configuration of a main part of a conventional example.

【図11】従来例の制御部(CPU)が行う処理の流れ
を示す図。
FIG. 11 is a diagram showing a flow of processing performed by a control unit (CPU) of a conventional example.

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

11…制御部(CPU)、12…FIFOメモリ、13
…ローダブルダウンカウンタ、14…位相制御回路、f
…データ信号、i…キャリー信号。
11 ... Control unit (CPU), 12 ... FIFO memory, 13
… Loadable down counter, 14… Phase control circuit, f
... data signal, i ... carry signal.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ステッピングモータの速度及び回転方向
を設定して、基準クロック、設定データ及び回転方向信
号を出力する制御手段と、この制御手段から出力された
設定データを順次入力して記憶すると共に入力した順番
に出力するファストインファストアウトメモリと、この
ファストインファストアウトメモリから順番に出力され
る設定データに基づいて、前記基準クロックにより設定
時間を計数してからキャリー信号を出力すると共にその
キャリー信号により前記ファストインファストアウトメ
モリから次の設定データを読み取るカウンタと、前記制
御手段から出力された回転方向信号により前記ステッピ
ングモータの各相の位相を決定し、前記カウンタから出
力されたキャリー信号により駆動パルスを前記ステッピ
ングモータの各相に対して決定された位相で出力する駆
動パルス出力手段とを設けたことを特徴とするステッピ
ングモータ駆動回路。
1. A control means for setting a speed and a rotation direction of a stepping motor to output a reference clock, setting data and a rotation direction signal, and setting data output from the control means are sequentially input and stored. Based on the fast-in / fast-out memory that outputs in the order of input and the setting data that is sequentially output from the fast-in / fast-out memory, the set time is counted by the reference clock, and then the carry signal is output and the carry signal is output. A counter that reads the next setting data from the fast-in fast-out memory by a signal, and the phase of each phase of the stepping motor is determined by the rotation direction signal output from the control means, and by the carry signal output from the counter. Drive pulse for each phase of the stepping motor A stepping motor drive circuit, characterized in that a drive pulse output means for outputting a phase determined to the stepping motor is provided.
【請求項2】 制御手段から出力された基準クロックを
入力してこの基準クロックの周期を2のn乗倍にしてカ
ウンタに出力する2のn乗分の1分周カウンタを設けた
ことを特徴とする前記請求項1記載のステッピングモー
タ駆動回路。
2. A frequency dividing counter for dividing to the nth power of 2 for inputting the reference clock output from the control means and multiplying the period of this reference clock by the nth power of 2 to output to the counter. The stepping motor drive circuit according to claim 1.
【請求項3】 カウンタは、ファストインファストアウ
トメモリから前記カウンタに入力される設定データの最
上位ビットのデータには関係なく、その最上位ビットの
データを1に固定したことを特徴とする前記請求項2記
載のステッピングモータ駆動回路。
3. The counter fixes the data of the most significant bit to 1 regardless of the data of the most significant bit of the setting data input from the fast in fast out memory to the counter. The stepping motor drive circuit according to claim 2.
JP30600391A 1991-11-21 1991-11-21 Step motor driving circuit Pending JPH05146196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30600391A JPH05146196A (en) 1991-11-21 1991-11-21 Step motor driving circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30600391A JPH05146196A (en) 1991-11-21 1991-11-21 Step motor driving circuit

Publications (1)

Publication Number Publication Date
JPH05146196A true JPH05146196A (en) 1993-06-11

Family

ID=17951909

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30600391A Pending JPH05146196A (en) 1991-11-21 1991-11-21 Step motor driving circuit

Country Status (1)

Country Link
JP (1) JPH05146196A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100653659B1 (en) * 2003-09-30 2006-12-05 가부시끼가이샤 도시바 Electrostatic actuator, electrostatic actuator driving method, electromechanical transducer, waveform output device, and electric element

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100653659B1 (en) * 2003-09-30 2006-12-05 가부시끼가이샤 도시바 Electrostatic actuator, electrostatic actuator driving method, electromechanical transducer, waveform output device, and electric element

Similar Documents

Publication Publication Date Title
KR100265218B1 (en) Microprocessor 2x core design
JPH0526439B2 (en)
JPH05146196A (en) Step motor driving circuit
US4144447A (en) Interval timer
JPH0262196B2 (en)
JP2773546B2 (en) Pulse generation circuit
JPS6024494B2 (en) Random access memory read/write control circuit
JP2562371B2 (en) Analog multifunction electronic clock
JP3165777B2 (en) Step-up motor slow-up / down control device
JP2811187B2 (en) Low vibration driving method of pulse motor and its circuit
JP3165425B2 (en) Electronic clock
JPH04287421A (en) Start circuit for a/d converter or d/a converter
JPH05128060A (en) Information processor
JPS63127302A (en) Electronic equipment
SU1387165A1 (en) Device for programmed acceleration of stepping motor
JPH06290586A (en) Semiconductor memory
JPH087269B2 (en) Electronic clock
JPH02211097A (en) Controlling circuit for step motor
JPS586231B2 (en) Driving method of semiconductor memory device
JP2536102B2 (en) Data processing device
JPH06113595A (en) Motor controller
JPS6356199A (en) Control unit of pulse motor
JPH0344473B2 (en)
JP3450667B2 (en) Data processor
JPH1198892A (en) Pulse motor driver