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
JP3567256B2 - Stepping motor drive circuit - Google Patents
[go: Go Back, main page]

JP3567256B2 - Stepping motor drive circuit - Google Patents

Stepping motor drive circuit Download PDF

Info

Publication number
JP3567256B2
JP3567256B2 JP22932894A JP22932894A JP3567256B2 JP 3567256 B2 JP3567256 B2 JP 3567256B2 JP 22932894 A JP22932894 A JP 22932894A JP 22932894 A JP22932894 A JP 22932894A JP 3567256 B2 JP3567256 B2 JP 3567256B2
Authority
JP
Japan
Prior art keywords
register
data
output
bit
shift register
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 - Fee Related
Application number
JP22932894A
Other languages
Japanese (ja)
Other versions
JPH0898593A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP22932894A priority Critical patent/JP3567256B2/en
Publication of JPH0898593A publication Critical patent/JPH0898593A/en
Application granted granted Critical
Publication of JP3567256B2 publication Critical patent/JP3567256B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Control Of Stepping Motors (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、ステッピングモータの駆動回路に関する。
【0002】
【従来の技術】
ステッピングモータを駆動するためには、ステッピングモータの励磁巻線に供給する信号位相を切り換える必要がある。ステッピングモータの駆動回路として、図4及び図5に示すようなものが考えらる。
【0003】
図4の駆動回路は、2個のトグルフリップフロップ11及び12と、インバータ13とで構成されており、一方のトグルフリップフロップ11のクロック端子にクロック信号CLKが直接供給され、他方のトグルフリップフロップ13のクロック端子に、インバータ13で反転されたクロック信号CLKが供給されている。
【0004】
この駆動回路は、クロック信号CLKの立ち上がりに同期したタイミングで、トグルフリップフロップ11のQ出力信号(信号A)が、例えば「1」となり、同時に反転Q出力信号(反転信号A)が「0」となり、クロック信号CLKの立ち下がりに同期してトグルフリップフロップ12のQ出力信号(信号B)が「1」となり、同時に反転Q出力信号(反転信号B)が「0」となる。
【0005】
そして、次のクロック信号の立ち上がりに同期したタイミングで、トグルフリップフロップ11のQ出力信号(信号A)が「0」となり、反転Q出力信号(反転信号A)が「1」となる。さらに、そのクロックCLKの立ち下がりに同期したタイミングでトグルフリップフロップ12のQ出力信号(信号B)が「0」となり、反転Q出力信号(反転信号B)が「1」となる。これらの動作が繰り返されて、図6(B)に示すような2相励磁の場合の駆動信号A,B,及びその反転信号A,Bが出力される。なお、図6(A)は、1相励磁の場合の駆動信号を示し、同図(C)は1−2相励磁の場合の駆動信号を示している。
【0006】
しかしながら、図4の駆動回路では、図6(A)に示すような駆動信号、あるいは図6(C)に示すような駆動信号を出力することはできない。
図5は、シフトレジスタを用いたステッピングモータ駆動回路の構成を示す図である。
【0007】
この駆動回路は、トグルフリップフロップ21と、3個のDフリップフロップ22〜24と1個のインバータ25とで構成されており、トグルフリップフロップ21とDフリップフロップ23のクロック端子にクロック信号CLKが直接供給され、Dフリップフロップ22及び24のクロック端子にインバータ25で反転されたクロック信号CLKが供給されている。
【0008】
この駆動回路は、初期状態において各フリップフロップ21〜24の出力信号は全て「0」になっており、最初のクロック信号CLKの立ち上がりに同期したタイミングで、トグルフリップフロップ21の出力信号Aが「1」となり、そのクロック信号CLKの立ち下がりに同期したタイミングで、トグルフリップフロップ21の出力信号A(このとき、「1」)がフリップフロップ22にラッチされ、フリップフロップ22の出力信号Bが「1」となる。
【0009】
そして、次のクロック信号CLKの立ち上がりに同期したタイミングで、フリップフロップ22の出力信号Bがフリップフロップ23にラッチされ、トグルフリップフロップ21の出力信号Aが「0」となり、同時にフリップフロップ23の出力信号、すなわち反転信号Aが「1」となる。そして、そのクロック信号CLKの立ち下がりに同期したタイミングで、トグルフリップフロップ21の「0」の出力信号がフリップフロップ22にラッチされて、フリップフロップ22の出力信号Bが「0」となり、同時にフリップフロップ23の「1」の出力信号がフリップフロップ24にラッチされ、フリップフロップ24の出力信号、すなわち反転信号Bが「1」となる。
【0010】
これらの動作が繰り返されて、図5(B)に示すような駆動信号A,B及びその反転信号A,Bが出力される。
この図4の駆動回路は、上述した図3の駆動回路に比べて駆動信号の変更が可能であり、例えばデータのシフト方向を反転させることができれば、ステッピングモータを逆転させる駆動信号を出力することができる。
【0011】
しかしながら、図4の駆動回路も、ステッピングモータを1相励磁する場合の図5(A)の駆動信号、あるいは1−2相励磁する場合の図5(B)のような駆動信号をそのままでは作成することができない。
【0012】
【発明が解決しようとする課題】
上述したように従来のステッピングモータ駆動回路は、励磁位相の変更、あるいはモータの正転、逆転の切り換えを自由に行うことができないという問題点があった。
【0013】
本発明の課題は、ステッピングモータの励磁位相の変更、あるいは正転、逆転の切り換えを簡単に行うことのできるステッピングモータ駆動回路を提供することである。
【0014】
【課題を解決するための手段】
本発明のステッピングモータ駆動回路は、ステッピングモータを駆動するためのn+1(nは整数、ただしn≧0)ビットの波形データを記憶する波形データ記憶回路と、n+1ビット数分のレジスタからなり、それぞれのレジスタが2つの入力端子と1つの出力端子とを有し、それぞれのレジスタの出力端子が次段のレジスタの2つの入力端子のうちの一方の入力端子接続され、最終段のレジスタの出力端子が第1段目のレジスタの2つの入力端子のうちの一方の入力端子に接続され、それぞれのレジスタが保持しているデータをクロック信号に同期したタイミングで順次シフトさせるシフトレジスタと、前記シフトレジスタと同じビット数分の選択回路からなり、それぞれの選択回路は2つのデータ入力端子と1つのデータ出力端子とセレクト信号入力端子とを有し、それぞれの選択回路の一方のデータ入力端子は、前記波形データ記憶回路の各ビットの出力に接続され、それぞれの選択回路の他方のデータ入力端子は、kビット目の選択回路の他方のデータ入力端子が前記シフトレジスタのn−k(kは、0≦k≦nの整数)ビット目のレジスタの出力端子に接続される接続関係をもって前記シフトレジスタのそれぞれのレジスタの出力端子に接続され、それぞれの選択回路のデータ出力端子は、前記シフトレジスタの対応するビットのレジスタの他方の入力端子に接続され、それぞれの選択回路の前記一方のデータ入力端子を介して前記波形データ記憶回路から入力される波形データと、それぞれの選択回路の前記他方のデータ入力端子を介して前記シフトレジスタの前記接続関係にあるそれぞれのレジスタから入力されるデータの一方をそれぞれの選択回路の前記セレクト信号入力端子から入力されるセレクト信号に基づいて選択してそれぞれの選択回路の前記データ出力端子から対応する前記シフトレジスタのそれぞれのレジスタに出力する選択回路群とを備える。
【0015】
【作用】
本発明によれば、そのときシフトレジスタに保持されているデータの上位ビットと下位ビットをクロスさせたデータを選択してシフトレジスタの入力端子に供給することで、ステッピングモータの回転を反転させるための波形データをシフトレジスタにプリセットすることができる。これにより、ステッピングモータの回転を正転状態から逆転状態に、あるいは逆転状態から正転状態に簡単に切り換えることができる。また、選択回路群に入力する波形データを変更することで、励磁位相の変更を簡単に実現できる。
【0016】
【実施例】
以下、本発明の実施例を図面を参照しながら説明する。図1は、本発明の実施例のステッピングモータ駆動回路の回路構成図である。
【0017】
図1には、ステッピングモータの1相分の駆動回路を示してあり、同様な回路がステッピングモータの相数分設けられている。
同図において、励磁波形設定レジスタ1は、励磁波形の時系列の波形データを記憶する8ビットのレジスタR0〜R7から構成され、設定された波形データをセレクタ群2へ出力する。
【0018】
セレクタ群(選択回路)2は、それぞれ2つの入力端子と1つの出力端子を有し、2つの入力端子から入力されるデータの一方を選択して出力する8ビットのセレクタS0〜S7で構成されている。このセレクタS0〜S7の一方の入力端子は励磁波形設定レジスタ1の各ビットの出力端子に接続され、他方の入力端子は、後述するシフトレジスタ3の各ビットの出力端子に接続されている。セレクタ群2は、セレクト端子に与えられるセレクト信号SELによって、励磁波形設定レジスタ1に設定される波形データと、レシフトレジスタ3に保持されている波形データとの一方を選択し、選択したデータをシフトレジスタ3へ出力する。なお、セレクタ群2は、選択したデータをラッチし、そのラッチしたデータをシフトレジスタ3へ出力するようにしてもよい。
【0019】
シフトレジスタ3は、それぞれ1ビットのレジスタF0〜F7が8ビット分縱続に接続されて構成され、セレクタ群2からレジスタF0〜F7に出力される波形データをロード信号LOADに同期したタイミングで取り込み、取り込んだデータをシフトクロック信号SCLKに同期して順次シフトしていく。また、シフトレジスタ3の最上位ビットのレジスタF7の出力端子は、最下位ビットのレジスタF0の入力端子に接続されており、シフトレジスタ3にプリセットされた波形データが循環するようになっている。
【0020】
セレクタ群2の0ビット(最下位ビット)目のセレクタS0の入力端子に、シフトレジスタ3の7ビット(最上位ビット)目のレジスタF7の出力端子が接続され、1ビット目のセレクタS1の入力端子に、シフトレジスタ3の6ビット目のレジスタF6の出力端子が接続され、2ビット目のセレクタS2の入力端子に、シフトレジスタ3の5ビット目の出力端子が接続され、3ビット目のセレクタS3の入力端子に、シフトレジスタ3の4ビット目のレジスタF4の出力端子が接続されている。また、4ビット目のセレクタS4の入力端子に、シフトレジスタ3の3ビット目のレジスタF3の出力端子が接続され、5ビット目のセレクタS5の入力端子に、シフトレジスタ3の2ビット目のレジスタF2の出力端子が接続され、6ビット目のセレクタS6の入力端子に、シフトレジスタF1の1ビット目のレジスタF1の出力端子が接続され、7ビット目のセレクタS7の入力端子に、シフトレジスタ3の0ビット目のレジスタF0の出力端子が接続されている。
【0021】
すなわち、シフトレジスタ3の上位ビットとセレクタ群2の下位ビット及びシフトレジスタ3の下位ビットとセレクタ群2の上位ビットとがクロスするように(たすき状)に接続されており、セレクタ群2が、励磁波形設定レジスタ1の出力データではなく、シフトレジスタ3の出力データを選択した場合には、シフトレジスタ3のシフト方向を反転させた場合と同じ波形データがシフトレジスタ3にプリセットされ、反転させた波形データがシフトレジスタ3から順に出力されるようになっている。
【0022】
次に、以上のような構成の駆動回路の動作を、図2(A)、(B)のタイミングチャートを参照しながら説明する。同図(A)は、回転時の信号波形を示し、同図(B)はホールド時(停止時)の信号波形を示している。
【0023】
シフトレジスタ3にシフトクロック信号SCLKが供給されないときには、シフトレジスタ3は直前の出力信号OUT0(図2(B)では「1」)を保持しており、次のシフトクロック信号SCLKが入力するまでその状態を保持している。
【0024】
次にステッピングモータが回転しているときの駆動回路の動作を説明する。先ず、ステッピングモータを正転させる場合について説明する。
今、セレクタ群2のセレクタ端子には「0」のセレクト信号SELが与えられ、励磁波形設定レジスタ1に「01010011」という波形データが設定されているものとする。このとき、セレクト信号SELが「0」であるのでセレクタ群2は、励磁波形設定レジスタ1に設定されている波形データ「01010011」を選択しシフトレジスタ3に出力しており、その波形データがロード信号LOADの立ち上がりに同期したタイミングてシフトレジスタ3にプリセットされる。そして、次のシフトクロック信号SCLKの立ち上がりに同期したタイミングで(図2(A)▲1▼のタイミング)、プリセットされた波形データがシフトレジスタ3のレジスタF0〜F7の各出力端子に出力される。
【0025】
この結果、シフトレジスタ3の出力データOUT0として、励磁波形設定レジスタ1の最上位ビットの7ビット目に設定されていた波形データ「1」が出力される。
【0026】
そして、次のシフトクロック信号SCLKに同期して、レジスタF0の出力データがレジスタF1に、レジスタF1の出力データがレジスタF2に、レジスタF2の出力データがレジスタF3というように、下位ビットのレジスタの出力データが上位ビットのレジスタに順にシフトされる。
【0027】
この結果、シフトレジスタ3の最上位ビットの出力データとして、励磁波形設定レジスタ1の6ビット目の波形データ「1」が出力され、それまでレジスタF7にラッチされていた7ビット目の波形データの「1」が、0ビット目のレジスタF0にシフトされる。
【0028】
以下、シフトクロック信号SCLKに同期して、シフトレジスタ3の出力端子OUT0から、励磁波形設定レジスタ1の5ビット目、4ビット目、3ビット目・・・の波形データが順に出力され、0ビット目の波形データが出力されると、再度、7ビット目の波形データから順に出力される。
【0029】
ステッピングモータの2相目、3相目、4相目についても同様な動作が繰り返ステッピングモータが正転する。
なお、ステッピングモータの励磁位相の変更は、励磁波形設定レジスタ1に設定する波形データを変更することで、つまり1相励磁用、あるいは1−2相励磁用の波形データを設定することで簡単に実現できる。
【0030】
次に、ステッピングモータの回転を逆転させる場合について説明する。この場合、セレクタ群2のセレクタ端子にセレクト信号SELとして「1」が与えられ、そのセレクト信号SELによりセレクタ群2はシフトレジスタ3の出力データを選択し、選択されたデータがシフトレジスタ3にプリセットされる。
【0031】
すなわち、ロード信号LOADの立ち上がりに同期して、セレクタ群2の7ビット目のセレクタS7を介して与えられるシフトレジスタ3の0ビット目のレジスタF0の出力データが、シフトレジスタ3の7ビット目のレジスタF7にプリセットされ、セレクタ群2の6ビット目のセレクタS6を介して与えられるシフトレジスタ3の1ビット目のレジスタF1の出力データが、シフトレジスタ3の6ビット目のレジスタF6にプリセットされ、セレクタ群2の5ビット目のセレクタS5を介して与えられるシフトレジスタ3の2ビット目のレジスタF2の出力データが、シフトレジスタ3のビット目のレジスタF5にプリセットされ、以下同様にシフトレジスタ3の3ビット目、4ビット目・・・7ビット目の出力データが、シフトレジスタ3の4ビット目、3ビット目・・・0ビット目のレジスタにプリセットされる。
【0032】
そして、次のシフトクロック信号SCLKの立ち上がりに同期して、プリセットされた波形データがシフトレジスタ3のレジスタF0〜F7のそれぞれの出力端子に出力され、以後シフトクロック信号SCLKの立ち上がりに同期してその波形データが順次シフトされる。
【0033】
例えば、図2(A)に示すタイミングでセレクト信号SELが「1」に変化し、ロード信号LOADが「1」に変化したとする。このとき、シフトレジスタ3の各レジスタF0〜F7の出力データは下位ビットから上位ビット方向に「00110101」となっており、その出力データの上位ビットと下位ビットを入れ換えた波形データは下位ビットから上位ビット方向に「10101100」となり、その波形データがシフトレジスタ3にプリセットされる。そして、次のシフトクロック信号SCLKの立ち上がりに同期して、プリセットされたデータが各レジスタF0〜F7の出力端子に出力され、シフトレジスタ3の出力信号OUT0として「0」が出力される。以後、シフトクロック信号SCLKに同期して波形データが順にシフトされ、出力データOUT0として、図2(A)に示すように「0」、「1」、「1」・・・が順に出力される。
【0034】
これにより、シフトレジスタ3の出力データOUT0として、右方向にシフトされていた波形データを左方向にシフトさせた場合と同じ波形データが得られるので、ステッピングモータを逆転させることができる。
【0035】
次に、テッピングモータの回転を逆転状態から正転状態に切り換える場合について説明する。
セレクト信号SELが「1」の状態で、ロード信号が「1」となると、上述した逆転時と同様に、シフトレジスタ3の7ビット目のレジスタF7の出力データが、セレクタ群2の0ビット目のセレクタS0を介してシフトレジスタ3の0ビット目のレジスタF0にプリセットされ、シフトレジスタ3の6ビット目のレジスタF6の出力データが、セレクタ群2の1ビット目のセレクタS1を介してシフトレジスタ3の1ビット目のレジスタF1にプリセットされる。以下同様にシフトレジスタ3の5ビット目、4ビット目・・・0ビット目のレジスタの出力データが、それぞれセレクタ群2の2ビット目、3ビット目・・・7ビット目のセレクタを介してシフトレジスタ3の2ビット目、3ビット目・・・7ビット目のレジスタにプリセットされる。
【0036】
これにより、「01010011」の波形データを逆転した波形データを、さらに逆転した波形データ、すなわち元の波形データがシフトレジスタ3にプリセットされる。
【0037】
そして、次のクロック信号の立ち上がりに同期して、プリセットされた波形データがそれぞれのレジスタF0〜F7の出力端子に出力され、以後シフトクロック信号SCLKに同期して波形データが順次シフトされる。ステッピングモータの2相目。3相目、4相目にも同様な波形データが供給され、ステッピングモータは逆回転から正回転に切り換わる。
【0038】
以上のように上記第1実施例によれば、セレクタ群2を利用してシフトレジスタ3の上位ビットと下位ビットとを入れ換えることで、ステッピングモータを正転、あるいは逆転させることができ、回転方向の制御を簡単な構成で実現できる。さらに、励磁波形設定レジスタ1に設定する波形データを変更することで、1相励磁、2相励磁、あるいは1−2相励磁等の励磁方法の変更を簡単に実現でき、励磁方法を変更する場合でも、従来のように駆動回路の構成自体を変更する必要がない。
【0039】
次に、図3は、本発明の第2実施例の駆動回路の構成を示す図である。上述した第1実施例は、図示しないRAM等に記憶されている波形データを励磁波形設定レジスタ1に設定するようになっているのに対し、この第2実施例は、1相励磁、2相励磁、1ー2相励磁の波形データを生成するロジック回路11、12。13を設け、それらのロジック回路11〜13の出力の1つをセレクタ14で選択し、選択した波形データを前述したセレクタ群2に出力するようになっている。
【0040】
この第2実施例によれば、1相励磁、2相励磁等を行うための波形データを、ユーザがRAM等に予め設定する必要がないので、1相励磁、2相励磁等の波形データをユーザが意識せずにステッピングモータの回転制御を実現できる。
【0041】
【発明の効果】
本発明によれば、駆動回路の構成を変更することなく、波形データを変更するだけで任意の励磁方法を実現できる。また、選択回路を用いてシフトレジスタの上位ビットと下位ビットのデータを入れ換えることで、ステッピングモータの正転、逆転を容易に実現できる。
【図面の簡単な説明】
【図1】本発明の第1実施例の駆動回路の回路構成図である。
【図2】同図(A)は、第1実施例の駆動回路の動作を示すタイミングチャート、同図(B)は、回転時及び停止時のタイミングチャートである。
【図3】第2実施例の駆動回路の回路構成図である。
【図4】従来の駆動回路の一例を示す図である。
【図5】従来の駆動回路の一例を示す図である。
【図6】同図(A),(B),(C)は、励磁波形の一例を示す図である。
【符号の説明】
1 励磁波形設定レジスタ
2 セレクタ群
3 シフトレジスタ
[0001]
[Industrial applications]
The present invention relates to a driving circuit for a stepping motor.
[0002]
[Prior art]
In order to drive the stepping motor, it is necessary to switch the signal phase supplied to the excitation winding of the stepping motor. As a driving circuit of the stepping motor, one shown in FIGS. 4 and 5 can be considered.
[0003]
4 is composed of two toggle flip-flops 11 and 12 and an inverter 13. A clock signal CLK is directly supplied to a clock terminal of one toggle flip-flop 11, and the other toggle flip-flop 11 is provided. The clock signal CLK inverted by the inverter 13 is supplied to a clock terminal 13.
[0004]
In this drive circuit, the Q output signal (signal A) of the toggle flip-flop 11 becomes, for example, “1” at the timing synchronized with the rise of the clock signal CLK, and at the same time, the inverted Q output signal (inverted signal A) becomes “0”. The Q output signal (signal B) of the toggle flip-flop 12 becomes “1” in synchronization with the fall of the clock signal CLK, and at the same time, the inverted Q output signal (inverted signal B) becomes “0”.
[0005]
Then, at a timing synchronized with the rising of the next clock signal, the Q output signal (signal A) of the toggle flip-flop 11 becomes “0” and the inverted Q output signal (inverted signal A) becomes “1”. Further, the Q output signal (signal B) of the toggle flip-flop 12 becomes "0" and the inverted Q output signal (inverted signal B) becomes "1" at a timing synchronized with the falling edge of the clock CLK. These operations are repeated to output drive signals A and B and their inverted signals A and B in the case of two-phase excitation as shown in FIG. FIG. 6A shows a drive signal in the case of one-phase excitation, and FIG. 6C shows a drive signal in the case of 1-2 phase excitation.
[0006]
However, the driving circuit in FIG. 4 cannot output a driving signal as shown in FIG. 6A or a driving signal as shown in FIG. 6C.
FIG. 5 is a diagram showing a configuration of a stepping motor drive circuit using a shift register.
[0007]
This drive circuit includes a toggle flip-flop 21, three D flip-flops 22 to 24, and one inverter 25. A clock signal CLK is supplied to clock terminals of the toggle flip-flop 21 and the D flip-flop 23. The clock signal CLK which is directly supplied and inverted by the inverter 25 is supplied to the clock terminals of the D flip-flops 22 and 24.
[0008]
In this drive circuit, in the initial state, the output signals of the flip-flops 21 to 24 are all “0”, and the output signal A of the toggle flip-flop 21 becomes “0” at the timing synchronized with the first rise of the clock signal CLK. 1 ", the output signal A of the toggle flip-flop 21 (at this time," 1 ") is latched by the flip-flop 22 at the timing synchronized with the fall of the clock signal CLK, and the output signal B of the flip-flop 22 becomes" 1 ". 1 ".
[0009]
Then, at a timing synchronized with the next rising of the clock signal CLK, the output signal B of the flip-flop 22 is latched by the flip-flop 23, and the output signal A of the toggle flip-flop 21 becomes "0". The signal, that is, the inverted signal A becomes “1”. Then, at a timing synchronized with the falling of the clock signal CLK, the output signal of “0” of the toggle flip-flop 21 is latched by the flip-flop 22, and the output signal B of the flip-flop 22 becomes “0”, and at the same time, The output signal of "1" of the flip-flop 23 is latched by the flip-flop 24, and the output signal of the flip-flop 24, that is, the inverted signal B becomes "1".
[0010]
These operations are repeated to output drive signals A and B and their inverted signals A and B as shown in FIG.
The drive circuit of FIG. 4 can change the drive signal as compared with the drive circuit of FIG. 3 described above. For example, if the data shift direction can be reversed, a drive signal for reversing the stepping motor is output. Can be.
[0011]
However, the drive circuit of FIG. 4 also creates the drive signal of FIG. 5A when exciting the stepping motor in one phase or the drive signal as shown in FIG. 5B when exciting 1-2 steps. Can not do it.
[0012]
[Problems to be solved by the invention]
As described above, the conventional stepping motor drive circuit has a problem that the excitation phase cannot be changed or the motor can be freely switched between normal rotation and reverse rotation.
[0013]
An object of the present invention is to provide a stepping motor drive circuit that can easily change the excitation phase of a stepping motor or switch between normal rotation and reverse rotation.
[0014]
[Means for Solving the Problems]
The stepping motor drive circuit of the present invention includes a waveform data storage circuit for storing n + 1 (n is an integer, where n ≧ 0) bits of waveform data for driving the stepping motor, and a register for n + 1 bits. Has two input terminals and one output terminal, the output terminal of each register is connected to one of the two input terminals of the next- stage register, and the output of the last-stage register A shift register having a terminal connected to one of the two input terminals of the first-stage register for sequentially shifting data held in each register at a timing synchronized with a clock signal; It consists selection circuits having the same number of bits as registers, each selection circuit and two data input terminals and one data output terminal And one data input terminal of each selection circuit is connected to the output of each bit of the waveform data storage circuit, and the other data input terminal of each selection circuit is connected to the k-th bit. The other data input terminal of the selection circuit is connected to the output terminal of the register of the nkth (k is an integer of 0 ≦ k ≦ n) bit of the shift register, and the respective registers of the shift register are connected. The data output terminal of each selection circuit is connected to the other input terminal of the register of the corresponding bit of the shift register, and the data output terminal of each selection circuit is connected via the one data input terminal of each selection circuit. The waveform data input from the waveform data storage circuit is connected to the front of the shift register via the other data input terminal of each selection circuit. One of the data input from each of the registers in the connection relationship is selected based on the select signal input from the select signal input terminal of each select circuit, and the one corresponding to the data output terminal of each select circuit is selected. And a selection circuit group for outputting to each of the shift registers .
[0015]
[Action]
According to the present invention, the rotation of the stepping motor is reversed by selecting data obtained by crossing the upper bit and the lower bit of the data held in the shift register and supplying the selected data to the input terminal of the shift register. Can be preset in the shift register. Thereby, the rotation of the stepping motor can be easily switched from the normal rotation state to the reverse rotation state or from the reverse rotation state to the normal rotation state. In addition, by changing the waveform data input to the selection circuit group, it is possible to easily change the excitation phase.
[0016]
【Example】
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a circuit configuration diagram of a stepping motor drive circuit according to an embodiment of the present invention.
[0017]
FIG. 1 shows a drive circuit for one phase of a stepping motor, and similar circuits are provided for the number of phases of the stepping motor.
In FIG. 1, an excitation waveform setting register 1 is composed of 8-bit registers R0 to R7 for storing time-series waveform data of an excitation waveform, and outputs the set waveform data to a selector group 2.
[0018]
The selector group (selection circuit) 2 has two input terminals and one output terminal, and is composed of 8-bit selectors S0 to S7 for selecting and outputting one of data input from the two input terminals. ing. One input terminal of each of the selectors S0 to S7 is connected to an output terminal of each bit of the excitation waveform setting register 1, and the other input terminal is connected to an output terminal of each bit of the shift register 3 described later. The selector group 2 selects one of the waveform data set in the excitation waveform setting register 1 and the waveform data held in the shift register 3 by the select signal SEL applied to the select terminal, and selects the selected data. Output to shift register 3. Note that the selector group 2 may latch the selected data and output the latched data to the shift register 3.
[0019]
The shift register 3 is configured by connecting 1-bit registers F0 to F7 in cascade by 8 bits, and captures waveform data output from the selector group 2 to the registers F0 to F7 at a timing synchronized with the load signal LOAD. , And sequentially shifts the fetched data in synchronization with the shift clock signal SCLK. The output terminal of the register F7 of the most significant bit of the shift register 3 is connected to the input terminal of the register F0 of the least significant bit, so that the waveform data preset in the shift register 3 circulates.
[0020]
The input terminal of the selector S0 of the 0th bit (least significant bit) of the selector group 2 is connected to the output terminal of the register F7 of the 7th bit (most significant bit) of the shift register 3, and the input of the selector S1 of the first bit. The output terminal of the sixth bit register F6 of the shift register 3 is connected to the terminal, the fifth bit output terminal of the shift register 3 is connected to the input terminal of the second bit selector S2, and the third bit selector The output terminal of the register F4 of the fourth bit of the shift register 3 is connected to the input terminal of S3. The input terminal of the fourth-bit selector S4 is connected to the output terminal of the third-bit register F3 of the shift register 3, and the input terminal of the fifth-bit selector S5 is connected to the second-bit register of the shift register 3. The output terminal of the shift register F1 is connected to the output terminal of the shift register F1. The output terminal of the shift register F1 is connected to the input terminal of the shift register F1. Is connected to the output terminal of the register F0 of the 0th bit.
[0021]
That is, the upper bits of the shift register 3 and the lower bits of the selector group 2 and the lower bits of the shift register 3 and the upper bits of the selector group 2 are connected so as to cross (cross), and the selector group 2 When the output data of the shift register 3 is selected instead of the output data of the excitation waveform setting register 1, the same waveform data as when the shift direction of the shift register 3 is inverted is preset in the shift register 3 and is inverted. Waveform data is sequentially output from the shift register 3.
[0022]
Next, the operation of the driving circuit having the above configuration will be described with reference to the timing charts of FIGS. FIG. 3A shows a signal waveform during rotation, and FIG. 3B shows a signal waveform during hold (at the time of stop).
[0023]
When the shift clock signal SCLK is not supplied to the shift register 3, the shift register 3 holds the immediately preceding output signal OUT0 ("1" in FIG. 2B), and keeps the output signal OUT0 until the next shift clock signal SCLK is input. Holds state.
[0024]
Next, the operation of the drive circuit when the stepping motor is rotating will be described. First, the case where the stepping motor is rotated forward will be described.
Now, it is assumed that the select signal SEL of “0” is given to the selector terminal of the selector group 2 and the waveform data “01010011” is set in the excitation waveform setting register 1. At this time, since the select signal SEL is “0”, the selector group 2 selects the waveform data “01010011” set in the excitation waveform setting register 1 and outputs it to the shift register 3, and the waveform data is loaded. It is preset in the shift register 3 at a timing synchronized with the rise of the signal LOAD. The preset waveform data is output to the output terminals of the registers F0 to F7 of the shift register 3 at the timing synchronized with the next rise of the shift clock signal SCLK (timing of (1) in FIG. 2A). .
[0025]
As a result, as the output data OUT0 of the shift register 3, the waveform data “1” set in the seventh most significant bit of the excitation waveform setting register 1 is output.
[0026]
In synchronization with the next shift clock signal SCLK, the output data of the register F0 is output to the register F1, the output data of the register F1 is output to the register F2, and the output data of the register F2 is output to the register F3. The output data is sequentially shifted to the upper bit register.
[0027]
As a result, the waveform data “1” of the sixth bit of the excitation waveform setting register 1 is output as the output data of the most significant bit of the shift register 3, and the waveform data of the seventh bit latched in the register F 7 until then is output. "1" is shifted to the register F0 of the 0th bit.
[0028]
Thereafter, in synchronization with the shift clock signal SCLK, the fifth-, fourth-, third-bit, etc. waveform data of the excitation waveform setting register 1 are sequentially output from the output terminal OUT0 of the shift register 3, and 0 bits are output. When the waveform data of the seventh bit is output, the waveform data is output again in order from the seventh bit.
[0029]
Similar operations are repeated for the second, third, and fourth phases of the stepping motor, and the stepping motor rotates forward.
The excitation phase of the stepping motor can be easily changed by changing the waveform data set in the excitation waveform setting register 1, that is, by setting the waveform data for one-phase excitation or 1-2-phase excitation. realizable.
[0030]
Next, a case where the rotation of the stepping motor is reversed will be described. In this case, “1” is given to the selector terminal of the selector group 2 as the select signal SEL, and the selector group 2 selects the output data of the shift register 3 by the select signal SEL, and the selected data is preset in the shift register 3. Is done.
[0031]
That is, in synchronization with the rising of the load signal LOAD, the output data of the 0th bit register F0 of the shift register 3 supplied via the 7th bit selector S7 of the selector group 2 is changed to the 7th bit of the shift register 3 The output data of the first bit register F1 of the shift register 3 which is preset in the register F7 and supplied through the sixth bit selector S6 of the selector group 2 is preset in the sixth bit register F6 of the shift register 3, The output data of the second bit register F2 of the shift register 3 given via the fifth bit selector S5 of the selector group 2 is preset in the bit register F5 of the shift register 3, and so on. The output data of the third bit, the fourth bit,. Fourth bit 3 is preset to the third bit ... 0 th bit of the register.
[0032]
Then, in synchronization with the next rise of the shift clock signal SCLK, the preset waveform data is output to each output terminal of the registers F0 to F7 of the shift register 3, and thereafter, in synchronism with the rise of the shift clock signal SCLK. The waveform data is sequentially shifted.
[0033]
For example, assume that the select signal SEL changes to “1” and the load signal LOAD changes to “1” at the timing shown in FIG. At this time, the output data of each of the registers F0 to F7 of the shift register 3 is "00110101" in the direction from the lower bit to the upper bit, and the waveform data obtained by exchanging the upper bit and the lower bit of the output data is from the lower bit to the upper bit. The value becomes “10101100” in the bit direction, and the waveform data is preset in the shift register 3. Then, in synchronization with the next rise of the shift clock signal SCLK, the preset data is output to the output terminals of the registers F0 to F7, and “0” is output as the output signal OUT0 of the shift register 3. Thereafter, the waveform data is sequentially shifted in synchronization with the shift clock signal SCLK, and "0", "1", "1",... Are sequentially output as output data OUT0 as shown in FIG. .
[0034]
As a result, as the output data OUT0 of the shift register 3, the same waveform data as when the right-shifted waveform data is shifted to the left is obtained, so that the stepping motor can be reversed.
[0035]
Next, the case where the rotation of the stepping motor is switched from the reverse rotation state to the normal rotation state will be described.
When the select signal SEL is “1” and the load signal becomes “1”, the output data of the register F7 of the seventh bit of the shift register 3 becomes the 0th bit of the selector group 2 as in the case of the reverse rotation described above. And the output data of the sixth bit register F6 of the shift register 3 is output to the shift register 3 via the first bit selector S1 of the selector group 2. 3 is preset in the register F1 of the first bit. Similarly, the output data of the fifth bit, the fourth bit,..., The 0th bit of the shift register 3 is transmitted via the second bit, the third bit,. The shift register 3 is preset in the second, third,..., Seventh bit registers.
[0036]
As a result, the waveform data obtained by inverting the waveform data of “01010011” and the waveform data obtained by further inverting the waveform data, that is, the original waveform data, are preset in the shift register 3.
[0037]
Then, in synchronization with the next rise of the clock signal, the preset waveform data is output to the output terminals of the registers F0 to F7, and thereafter the waveform data is sequentially shifted in synchronization with the shift clock signal SCLK. The second phase of the stepping motor. Similar waveform data is supplied to the third and fourth phases, and the stepping motor switches from reverse rotation to normal rotation.
[0038]
As described above, according to the first embodiment, the upper and lower bits of the shift register 3 are exchanged using the selector group 2, whereby the stepping motor can be rotated forward or backward, and the rotation direction can be changed. Control can be realized with a simple configuration. Further, by changing the waveform data set in the excitation waveform setting register 1, it is possible to easily change the excitation method such as one-phase excitation, two-phase excitation, or one-two-phase excitation. However, there is no need to change the configuration of the drive circuit itself as in the related art.
[0039]
Next, FIG. 3 is a diagram showing a configuration of a drive circuit according to a second embodiment of the present invention. In the first embodiment described above, the waveform data stored in the RAM or the like (not shown) is set in the excitation waveform setting register 1. On the other hand, in the second embodiment, one-phase excitation and two-phase Logic circuits 11, 12, and 13 for generating excitation and 1-2-phase excitation waveform data are provided, and one of the outputs of the logic circuits 11 to 13 is selected by a selector 14, and the selected waveform data is selected by the above-described selector. The data is output to the group 2.
[0040]
According to the second embodiment, there is no need for the user to preset waveform data for performing one-phase excitation, two-phase excitation, etc. in the RAM or the like. The rotation control of the stepping motor can be realized without the user's awareness.
[0041]
【The invention's effect】
According to the present invention, an arbitrary excitation method can be realized only by changing the waveform data without changing the configuration of the drive circuit. Further, by exchanging the data of the upper bit and the lower bit of the shift register using the selection circuit, the forward and reverse rotation of the stepping motor can be easily realized.
[Brief description of the drawings]
FIG. 1 is a circuit configuration diagram of a drive circuit according to a first embodiment of the present invention.
FIG. 2A is a timing chart showing the operation of the drive circuit according to the first embodiment, and FIG. 2B is a timing chart at the time of rotation and stop.
FIG. 3 is a circuit configuration diagram of a drive circuit according to a second embodiment.
FIG. 4 is a diagram illustrating an example of a conventional driving circuit.
FIG. 5 is a diagram illustrating an example of a conventional driving circuit.
FIGS. 6A, 6B, and 6C are diagrams illustrating examples of excitation waveforms.
[Explanation of symbols]
1 Excitation waveform setting register 2 Selector group 3 Shift register

Claims (1)

ステッピングモータを駆動するためのn+1(nは整数、ただしn≧0)ビットの波形データを記憶する波形データ記憶回路と、
n+1ビット数分のレジスタからなり、それぞれのレジスタが2つの入力端子と1つの出力端子とを有し、それぞれのレジスタの出力端子が次段のレジスタの2つの入力端子のうちの一方の入力端子接続され、最終段のレジスタの出力端子が第1段目のレジスタの2つの入力端子のうちの一方の入力端子に接続され、それぞれのレジスタが保持しているデータをクロック信号に同期したタイミングで順次シフトさせるシフトレジスタと、
前記シフトレジスタと同じビット数分の選択回路からなり、それぞれの選択回路は2つのデータ入力端子と1つのデータ出力端子とセレクト信号入力端子とを有し、それぞれの選択回路の一方のデータ入力端子は、前記波形データ記憶回路の各ビットの出力に接続され、それぞれの選択回路の他方のデータ入力端子は、kビット目の選択回路の他方のデータ入力端子が前記シフトレジスタのn−k(kは、0≦k≦nの整数)ビット目のレジスタの出力端子に接続される接続関係をもって前記シフトレジスタのそれぞれのレジスタの出力端子に接続され、それぞれの選択回路のデータ出力端子は、前記シフトレジスタの対応するビットのレジスタの他方の入力端子に接続され、それぞれの選択回路の前記一方のデータ入力端子を介して前記波形データ記憶回路から入力される波形データと、それぞれの選択回路の前記他方のデータ入力端子を介して前記シフトレジスタの前記接続関係にあるそれぞれのレジスタから入力されるデータの一方をそれぞれの選択回路の前記セレクト信号入力端子から入力されるセレクト信号に基づいて選択してそれぞれの選択回路の前記データ出力端子から対応する前記シフトレジスタのそれぞれのレジスタに出力する選択回路群と、
を備えることを特徴とするステッピングモータ駆動回路。
A waveform data storage circuit for storing n + 1 (n is an integer, where n ≧ 0) bits of waveform data for driving the stepping motor;
consists n + 1 number of bits of registers, each register having two input terminals and one output terminal, one input terminal of the two input terminals of the output terminal of each register of the next register And the output terminal of the last stage register is connected to one of the two input terminals of the first stage register, and the data held by each register is synchronized with the clock signal. A shift register for sequentially shifting
The shift register includes selection circuits for the same number of bits, each selection circuit having two data input terminals, one data output terminal, and a select signal input terminal, and one data input terminal of each selection circuit. Is connected to the output of each bit of the waveform data storage circuit, and the other data input terminal of each selection circuit is connected to the nk (k Is an integer of 0.ltoreq.k.ltoreq.n), and is connected to the output terminal of each register of the shift register with a connection relationship connected to the output terminal of the bit-th register. The corresponding bit of the register is connected to the other input terminal of the register, and the wave is connected via the one data input terminal of each selection circuit. One of the waveform data input from the data storage circuit and one of the data input from the respective registers in the connection relationship of the shift register via the other data input terminals of the respective selection circuits is converted into the data of the respective selection circuits. A selection circuit group that selects based on a select signal input from the select signal input terminal and outputs from the data output terminal of each selection circuit to each of the corresponding shift registers ;
A stepping motor drive circuit comprising:
JP22932894A 1994-09-26 1994-09-26 Stepping motor drive circuit Expired - Fee Related JP3567256B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22932894A JP3567256B2 (en) 1994-09-26 1994-09-26 Stepping motor drive circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22932894A JP3567256B2 (en) 1994-09-26 1994-09-26 Stepping motor drive circuit

Publications (2)

Publication Number Publication Date
JPH0898593A JPH0898593A (en) 1996-04-12
JP3567256B2 true JP3567256B2 (en) 2004-09-22

Family

ID=16890433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22932894A Expired - Fee Related JP3567256B2 (en) 1994-09-26 1994-09-26 Stepping motor drive circuit

Country Status (1)

Country Link
JP (1) JP3567256B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7342377B2 (en) 2006-05-24 2008-03-11 Kabushiki Kaisha Toshiba Stepping-motor control apparatus and method of controlling the apparatus

Also Published As

Publication number Publication date
JPH0898593A (en) 1996-04-12

Similar Documents

Publication Publication Date Title
US6192385B1 (en) Pseudorandom number generating method and pseudorandom number generator
CN110912549A (en) Serial-parallel conversion circuit, driving method thereof and display panel
US4901264A (en) Pseudo random pattern generating device
CN111224658A (en) A design method of conversion circuit from parallel data to serial data
US5608802A (en) Data ciphering device
CN121116879B (en) Parallel-to-serial conversion circuit
JP2006101269A (en) Latch clock generating circuit and serial/parallel conversion circuit
JPH1032492A (en) Code conversion circuit
JP3567256B2 (en) Stepping motor drive circuit
KR100337422B1 (en) Semiconductor circuit having burst counter circuit which is reduced the circuits passing from the clock input terminal to output terminal
US5621337A (en) Iterative logic circuit
KR100336756B1 (en) Clock dividing circuit
KR0153046B1 (en) Phase converting circuit enable to select phase delay
JP3353543B2 (en) Control signal generation circuit
JP2871975B2 (en) Semiconductor memory device
KR100518141B1 (en) Decode circuit, code conversion circuit and code conversion method
JP2010124228A (en) Frequency division circuit and electronic apparatus
JP3145988B2 (en) Data S / P conversion circuit
JP3103746B2 (en) Semiconductor delay device
JPH11261407A (en) Counter
JPH02243060A (en) Magnification and reduction circuit for picture data
JPH0328879B2 (en)
JPH0756651A (en) Clock generator
CN119582813A (en) A frequency division circuit
KR100199190B1 (en) Data acquisition logic

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040301

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040511

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040524

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080625

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090625

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090625

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100625

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110625

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110625

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120625

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120625

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130625

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees