KR100221829B1 - Pattern data generating apparatus for stepping motor drive - Google Patents

Pattern data generating apparatus for stepping motor drive Download PDF

Info

Publication number
KR100221829B1
KR100221829B1 KR1019960022526A KR19960022526A KR100221829B1 KR 100221829 B1 KR100221829 B1 KR 100221829B1 KR 1019960022526 A KR1019960022526 A KR 1019960022526A KR 19960022526 A KR19960022526 A KR 19960022526A KR 100221829 B1 KR100221829 B1 KR 100221829B1
Authority
KR
South Korea
Prior art keywords
data
mode
output
step motor
shift
Prior art date
Application number
KR1019960022526A
Other languages
Korean (ko)
Other versions
KR980006796A (en
Inventor
강신구
Original Assignee
유기범
대우통신주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 유기범, 대우통신주식회사 filed Critical 유기범
Priority to KR1019960022526A priority Critical patent/KR100221829B1/en
Publication of KR980006796A publication Critical patent/KR980006796A/en
Application granted granted Critical
Publication of KR100221829B1 publication Critical patent/KR100221829B1/en

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors of the kind having motors rotating step by step
    • H02P8/14Arrangements for controlling speed or speed and torque
    • H02P8/20Arrangements for controlling speed or speed and torque characterised by bidirectional operation
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors of the kind having motors rotating step by step
    • H02P8/02Arrangements for controlling dynamo-electric motors of the kind having motors rotating step by step specially adapted for single-phase or bi-pole stepper motors, e.g. watch-motors, clock-motors

Abstract

본 발명은 입력되는 제어데이터를 근거로 스텝모터의 구동을 위한 패턴데이터를 자동적으로 생성하여 출력하도록 된 스텝모터 구동용 패턴데이터 발생장치에 관한 것으로서, 스텝모터의 회전방향과 여자방식을 설정하기 위한 데이터를 래치하기 위한 제1 래치수단과, 스텝모터의 1상 여자방식에 대응하는 제1 기준데이터와 2상 여자방식에 대응하는 제2 기준데이터를 저장하기 위한 제2 래치수단, 로드신호에 따라 상기 제2 래치수단에서 출력되는 제1 또는 제2 기준데이터를 로드하고, 그 최하위비트 출력이 제1 방향 시프트데이터 입력단에 결합됨과 더불어 최상위비트 출력이 제2 방 향시프트 데이터 입력단에 결합되며, 클록신호의 입력시마다 상기 제1 래치수단에서 출력되는 회전방향 설정데이터에 근거해서 상기 로드된 데이터를 시프트시키면서 그 시프트된 데이터를 출력하는 제1 및 제2시프트 레지스터, 제1 및 제2 레벨의 선택신호에 따라 상기 제1 및 제2 시프트 레지스터의 출력을 선택적으로 출력하는 선택수단 및, 상기 제1 래치수단에서 출력되는 여자방식 데이터에 근거해서 입력되는 클록신호를 상기 제1 또는 제2 시프트 레지스터에 선택적으로 공급함과 더불어 상기 선택수단에 대해 제1 또는 제2 레벨의 선택신호를 출력하는 모드제어수단을 포함하여 구성된 것을 특징으로 한다.The present invention relates to a stepping motor drive pattern data generator for automatically generating and outputting pattern data for driving a stepping motor based on input control data, A second latch means for storing first reference data corresponding to a one-phase excitation mode of the step motor and second reference data corresponding to a two-phase excitation mode; A first latch circuit for latching the first or second reference data output from the second latch means, the least significant bit output being coupled to the first direction shift data input, the most significant bit output being coupled to the second direction shift data input, Shifting the loaded data based on rotation direction setting data output from the first latch means each time a signal is input Selecting means for selectively outputting the outputs of the first and second shift registers in accordance with first and second level selection signals, first and second shift registers for outputting shifted data, And a mode control means for selectively supplying a clock signal to the first or second shift register based on the excitation type data to be outputted and outputting a first or second level selection signal to the selection means .

Description

스텝모터 구동용 패턴데이터 발생 장치Pattern data generator for step motor drive

제1도는 일반적인 스텝모터 구동장치를 나타낸 블록구성도.FIG. 1 is a block diagram showing a general step motor driving device. FIG.

제2도 및 제3도는 제1도에 나타난 장치의 동작을 설명하기 위한 동작파형도.FIGS. 2 and 3 are operational waveforms for explaining the operation of the device shown in FIG. 1;

제4도는 본 발명의 제1 관점에 따른 스텝모터 구동장치를 나타낸 블록구성도.FIG. 4 is a block diagram showing a step motor driving device according to a first aspect of the present invention; FIG.

제5도는 제4도에 나타낸 장치의 동작타이밍 정도.5 shows the operation timing of the apparatus shown in FIG.

제6도 및 제7도는 제4도에서 마이크로 프로세서로부터 패턴데이터 발생장치로 공급되는 데이터의 포맷예를 나타낸 데이터포맷도.FIG. 6 and FIG. 7 are data formats showing an example of the format of data supplied from the microprocessor to the pattern data generator in FIG.

제8도는 제4도에서의 패턴데이터 발생장치의 구성을 나타낸 회로구성도.FIG. 8 is a circuit diagram showing a configuration of a pattern data generator in FIG. 4; FIG.

제9도는 제8도에서 모드제어부의 구성을 나타낸 회로그성도.FIG. 9 is a block diagram showing the configuration of the mode control unit in FIG.

제10도는 제9도의 동작을 설명하기 위한 동작타이밍도.FIG. 10 is an operation timing diagram for explaining the operation of FIG. 9; FIG.

제11도는 본 발명의 제2 관점에 따른 스텝모터 구동장치를 나타낸 블록구성도.FIG. 11 is a block diagram showing a step motor driving apparatus according to a second aspect of the present invention; FIG.

제12도는 제11도에 나타낸 장치의 동작타이밍도.12 is an operation timing diagram of the apparatus shown in Fig. 11; Fig.

제13도는 제11도에서의 패턴데이터 발생장치의 구성을 나타낸 회로구성도.FIG. 13 is a circuit diagram showing a configuration of a pattern data generating apparatus in FIG. 11; FIG.

* 도면의 주요부분에 대한 간단한 설명* A brief description of the main parts of the drawing

3 : 모터구동부 41 : 마이크로 프로세서3: motor driving unit 41: microprocessor

42 : 패턴데이터 발생장치 81, 82 : 래치회로42: pattern data generator 81, 82: latch circuit

83, 84 : 시프트 레지스터 85 : 모드제어부83, 84: Shift register 85: Mode control section

86 : 선택기 91 : 제1 클록신호 출력부86: selector 91: first clock signal output section

92 : 제2 클록신호 출력부 93 : 선택신호 출력부92: second clock signal output section 93: selection signal output section

90 : D플립플롭 101 : 마이크로 프로세서90: D flip flop 101: Microprocessor

102 : 패턴데이터 발생장치 110 : 카운터102: pattern data generator 110: counter

SM : 스텝모터SM: Step motor

본 발명은 스텝모터(Step Motor)를 구동제어하기 위한 스텝모터 구동장치에 관한 것으로, 특히 입력되는 제어데이터를 근거로 스텝모터의 구동을 위한 패턴데이터를 자동적으로 생성하여 출력하도록 된 스텝모터 구동용 패턴데이터 발생장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a stepping motor driving apparatus for driving and controlling a stepping motor. More particularly, the present invention relates to a stepping motor driving apparatus for automatically generating and outputting pattern data for driving a stepping motor, And a pattern data generator.

일반적으로, 스텝모터는 펄스신호의 입력에 따라 회전자가 일정한 회전각도로 회전하도록된 것으로서, 이와 같은 스텝모터는 그 모터로 공급되는 펄스의 수를 근거로 해당 모터의 회전량 등을 정밀하게 제어할 수 있기 때문에 정밀한 제어가 요구되는 프린터나 전동 타자기 또는 플로터 등에 많이 사용되고 있다.Generally, a step motor is a motor in which a rotor rotates at a constant rotation angle in accordance with the input of a pulse signal. Such a step motor controls precisely the amount of rotation of the motor based on the number of pulses supplied to the motor It is widely used in printers, electric typewriters or plotters requiring precise control.

제1도는 상기한 스텝모터를 구동하기 위한 일반적인 스텝모터 구동장치의 구성을 나타낸 블록구성도이다.FIG. 1 is a block diagram showing the configuration of a general step motor driving apparatus for driving the above-mentioned step motor.

제1도에서 참조번호 1은 수텝모를 구동제어하기 패턴데이터를 출력하는 마이크로 프로세서로서, 이 마이크로 프로세서(1)는 스텝모터(SM)를 1상 또는 2상모드로 구동할 것인가, 정회전 또는 역회전할 것인가에 따라 소정의 패턴데이터를 출력하게 된다.In FIG. 1, reference numeral 1 denotes a microprocessor for outputting pattern data for driving and controlling a microprocessor. The microprocessor 1 controls whether the stepper motor SM is driven in a one-phase or two-phase mode, The predetermined pattern data is output according to whether the rotation is to be performed.

또한, 참조번호 2는 상기 마이크로 프로세서(1)로부터 출력되는 패턴데이터를 래치하는 래치회로이고, 3은 이 래치회로(2)에 래치된 데이터를 근거로 상기 스텝모터(SM)를 구동하는 모터구동부로서, 여기서 모터구동부(3)는 예컨대 상기 래치회로(2)의 각 래치데이터가 "1"인지 "0"인지에 따라 스텝모터(SM)로 하이 또는 로우레벨의 펄스신호를 출력하게 된다.Reference numeral 2 denotes a latch circuit for latching the pattern data output from the microprocessor 1 and 3 denotes a motor driver for driving the stepper motor SM based on the data latched in the latch circuit 2 Where the motor drive unit 3 outputs a high or low level pulse signal to the stepper motor SM depending on whether each latch data of the latch circuit 2 is "1" or "0", for example.

그리고, 스텝모터(SM)는 상기 모터구동부(3)에서 출력되는 펄스신호의 펄스수에 대응하는 양만큼 회전자가 정회전 또는 역회전하게 된다.Then, the step motor SM rotates in the forward or reverse direction by an amount corresponding to the number of pulses of the pulse signal output from the motor driving unit 3. [

즉, 상기 구성에 있어서는 마이크로 프로세서(1)가 스텝모터(SM)를 구동하기 위한 패턴데이터를 출력함으로써 스텝모터(SM)를 소정의 구동모드로 구동하게 된다.That is, in the above configuration, the microprocessor 1 outputs the pattern data for driving the step motor SM, thereby driving the step motor SM in the predetermined drive mode.

이를 보다 구체적으로 설명하면, 마이크로 프로세서(1)는 우선 스텝모터(SM)를 1상의 정회전모드로 구동하는 경우에는 다음의 표 1에 나타낸 바와 같이 모터구동부(3)로 인가되는 패턴데이터(A, B,)의 각 비트를 하나씩 "1"로 설정하는 데이터를 래치회로(2)에 순차적으로 래치하게 된다.The microprocessor 1 first drives the step motor SM in the forward rotation mode of one phase as shown in the following Table 1 and outputs the pattern data A , B, ) To be "1 " one by one to the latch circuit 2 in sequence.

그리고, 모터구동부(3)는 상기 마이크로 프로세서(1)에 의해 래치회로(2)에 래치된 데이터, 즉 래치회로(2)에서 출력되는 패턴데이터(A, B,)를 근거로 제2도에 나타낸 바와 같은 펄스신호를 스텝모터(SM)로 출력함으로써 스텝모터(SM)를 1상 정회전 모드로 구동하게 된다.The motor driving section 3 outputs data latched in the latch circuit 2 by the microprocessor 1, that is, the pattern data A, B, , The step motor SM is driven in the one-phase forward rotation mode by outputting the pulse signal as shown in Fig. 2 to the step motor SM.

또한, 이때 스텝모터(SM)를 역회전 구동하는 경우에는 다음 표 2에 나타낸 바와 같이 패턴데이터(A, B,)의 각 비트를 상술한 정회전 구동과는 반대방향으로 순차 "1"로 설정함으로써 실행하게 된다.At this time, when the step motor SM is driven in the reverse direction, the pattern data A, B, Quot; 1 "in the opposite direction to the forward rotation drive described above.

한편, 스텝모터(SM)를 2상 정회전모드로 구동하는 경우에는 마이크로프로세서(1)는 래치회로(2)에 대해 다음 표 3에 나타낸 바와 같은 패턴데이터를 순차로 래치시키게 되고,On the other hand, when the step motor SM is driven in the two-phase forward rotation mode, the microprocessor 1 sequentially latches the pattern data shown in the following Table 3 to the latch circuit 2,

모터구동부(3)는 상기 표 3의 패턴데이터를 근거로 제3도에 나타낸 펄스신호를 스텝모터(SM)에 대해 출력함으로써 스텝모터(SM)를 2상의 정회전 모드로 구동하게 된다.The motor driving section 3 drives the step motor SM in the forward rotation mode of two phases by outputting the pulse signal shown in Fig. 3 to the step motor SM on the basis of the pattern data in the above Table 3. [

또한, 이 경우에 있어서도 스텝모터(SM)를 2상의 역회전 모드로 구동시키는 경우에는 다음의 표 4에 나타낸 바와 같이 상기 표 3과는 반대방향으로 패턴데이터를 순차 변경시킴으로써 실행하게 된다.Also in this case, when the step motor SM is driven in the two-phase reverse rotation mode, pattern data is sequentially changed in the direction opposite to that of Table 3 as shown in Table 4 below.

"""""""""""""" "" "" "" "" "" ""

단, 상기 표 5에서 x는 Don't care 비트를 나타낸다.In Table 5, x denotes a Do not care bit.

한편, 제8도는 상술한 제4도에서의 패턴데이터 발생장치의 구성을 나타낸 구성도로, 도면에서 참조번호 81은 제1 제어신호(CSO)가 로우레벨일 때 입력되는 데이터(DATA)를 래치하여 출력하는 제1 래치회로이고, 82는 제2 제어신호(CS1)가 로우레벨일 때 입력되는 데이터(DATA)를 래치하여 출력하는 제2 래치회로이다.FIG. 8 is a block diagram showing the configuration of the pattern data generator in FIG. 4, wherein reference numeral 81 denotes a latch circuit for latching data (DATA) input when the first control signal CSO is low level And 82 is a second latch circuit for latching and outputting data DATA to be inputted when the second control signal CS1 is at a low level.

또한, 참조번호 83과 84는 로드신호()가 입력되면 상기 제2 래치회로(82)에서 출력되는 래치데이터의 하위 4비트(비트0∼비트3)와 상위 4비트(비트4∼비트7)를 각각 로드함과 더불어 이후에 설명할 모드제어부(85)로부터 입력되는 클록신호(CLK)신호에 따라 상기 로드된 데이터를 시프트시키면서 병렬로 출력하는 제1 및 제2 시프트 레지스터로서, 이 제1 및 제2 시프트 레지스터(83, 84)는 특히 그 최하위비트 출력(QA)이 우방향 시프트데이터 입력단(SR)에 결합됨과 더불어 최상위비트 출력(QD)이 좌방향 시프트데이터 입력단(SL)에 결합되고, 또한 상기 제1 래치회로(81)로부터 인가되는 스텝모터(SM)의 회전방향을 설정하기 위한 데이터(S0, S1)에 근거해서 상기 클록신호(CLK)가 입력될 때마다 로드된 데이터를 좌방향 또는 우방향으로 시프트시키도록 되어 있다.Reference numerals 83 and 84 denote load signals ( (Bit 0 to bit 3) and the upper 4 bits (bits 4 to 7) of the latch data output from the second latch circuit 82 are loaded, respectively, and a mode The first and second shift registers 83 and 84 are first and second shift registers which output the data in parallel while shifting the loaded data in accordance with a clock signal (CLK) signal input from the control unit 85, The most significant bit output QA is coupled to the right shift data input terminal SR and the most significant bit output QD is coupled to the left shift data input terminal SL and also from the first latch circuit 81 The data loaded every time the clock signal CLK is input is shifted leftward or rightward based on data S0 and S1 for setting the rotational direction of the step motor SM.

즉, 상기 제1 및 제2 시프트 레지스터(83, 84)는 상기 제1 래치회로(81)로부터 인가되는 2비트 데이터(S0, S1), 즉 스텝모터(SM)의 회전방향 설정데이터가 "10"인 경우에는 로드된 데이터를 QA로부터 QD의 방향 (우방향)으로 순차적으로 시프트시키면서 출력하게 되고, 상기 회전방향 설정데이터가 "1"인 경우에는 로드된 데이터를 QD로부터 QA의 방향(좌방향)으로 순차 시프트시키면서 출력하게 된다. 그리고, 이때 우방향 시프트가 이루어지는 경우에는 최상위비트(QD)의 출력이 우방향 시프트데이터 입력단(SR)으로 입력되어 다음 클록신호(CLK)의 입력시에는 최하위비트 츨력단(QA)를 통해 출력되게 되고, 좌방향 시프트가 이루어지는 경우에는 최하위비트(QA)의 출력이 좌방향 시프트데이터 입력단(SL)로 입력되어 다음 클록신호(CLK)의 입력시에는 최상위비트 출력단(QD)을 통해 출력되게 된다.That is, the first and second shift registers 83 and 84 are set so that the 2-bit data S0 and S1 applied from the first latch circuit 81, that is, the rotation direction setting data of the step motor SM, Quot ;, the loaded data is output while sequentially shifting the loaded data from QA to the direction of QD (right direction). When the rotational direction setting data is "1 ", the loaded data is shifted from QD ) And sequentially outputs the output. When the rightward shift is performed at this time, the output of the most significant bit QD is input to the right shift data input terminal SR and the output of the next least significant bit output terminal QA when the next clock signal CLK is input The output of the least significant bit QA is input to the left shift data input SL and the output of the next most significant bit output QD is input when the next clock signal CLK is input.

이어, 제8도에서 참조번호 85는 상기 제1 래치회로(81)로부터 출력되는 제3 비트(비트2)신호에 따라 제1 및 제2 클록신호(CLK1, CLK2)를 선택적으로 출력함과 더불어 이후에 설명할 선택기(86)로 제1 또는 제2 레벨의 선택신호(S)를 출력하는 모드제어부로서, 이는 상기 제1 래치회로(81)에서 출력되는 비트2의 신호가 "1"인 경우, 즉 1상 또는 2상의 단일 모드 여자방식인 경우에는 입력 클록신호(CLK)를 근거로 제1 및 제2 클록신호(CLK1)를 동시적으로 출력함과 더불어 선택기(86)로 예컨대 하이레벨의 선택신호를 출력하고, 상기 제1 래치회로(81)에서 출력되는 비트2의 신호가"0"인 경우, 즉 1-2상의 복합모드 여자방식인 경우에는 제1 및 제2 클록신호(CLK1, CLK2)와 제1 및 제2 레벨의 선택신호를 교번적으로 출력하게 된다.8, reference numeral 85 denotes a circuit for selectively outputting the first and second clock signals CLK1 and CLK2 according to a third bit (bit 2) signal output from the first latch circuit 81, A mode control unit for outputting the first or second level selection signal S to the selector 86 to be described later when the bit 2 signal output from the first latch circuit 81 is "1" That is, a single-mode or two-phase single mode excitation method, the first and second clock signals CLK1 are simultaneously output based on the input clock signal CLK, and the selector 86 outputs, for example, When the bit 2 signal output from the first latch circuit 81 is "0 ", that is, when the first latch circuit 81 outputs the first and second clock signals CLK1 and CLK2, CLK2 and the first and second level selection signals alternately.

제9도는 상기 모드제어부(85)의 구성을 나타낸 구성도로, 도면에서 참조번호 90은 외부에서 인가되는 클록신호(CLK)에 따라 동작하고, 그 반전출력()이 입력단(D)에 결합된 D플립플롭이고, AND1 및 AND2는 각각 상기 D플립플롭(90)의 출력(Q,)과 클록신호(CLK)를 논리 곱하여 출력하는 제1 및 제2 앤드게이트이다.FIG. 9 is a block diagram showing the configuration of the mode control unit 85. In FIG. 9, reference numeral 90 denotes a clock signal CLK operated in accordance with an externally applied clock signal CLK, Is a D flip flop coupled to the input terminal D, and AND1 and AND2 are the outputs of the D flip flop 90 (Q, ) And the clock signal (CLK) and outputs the resultant signal.

또한, 도면에서 참조번호 91은 모드선택신호(MODE)에 따라 상기 제1 앤드게이트(AND1)의 출력 및 클록신호(CLK)를 처리하여 상술한 제1 시프트레지스터(83)로 인가되는 제1 클록신호(CLK1)를 출력하는 제1 클록신호 출력부이고, 92는 모드선택신호(MODE)에따라 상기 제2 앤드게이트(AND1)의 출력 및 클록신호(CLK)를 처리하여 상술한 제2 시프트레지스터(83)로 인가되는 제2 클록신호(CLK2)를 출력하는 제2 클록신호 출력부, 93은 모드선택신호(MODE)에 따라 상기 D플립플롭(90)의 반전출력()을 처리하여 이후에 설명할 선택기(86)를 동작제어하기 위한 선택신호(S)를 출력하는 선택신호 출력부이다.In the figure, reference numeral 91 denotes a first shift register 83 which processes the output of the first AND gate AND1 and the clock signal CLK according to a mode selection signal MODE, And 92 is a first clock signal output unit for outputting the signal CLK1 and 92 for processing the output of the second AND gate AND1 and the clock signal CLK in accordance with the mode selection signal MODE, A second clock signal output unit 93 for outputting a second clock signal CLK2 applied to the D flip flop 90 according to the mode selection signal MODE, And outputs a selection signal S for controlling the operation of the selector 86 to be described later.

여기서, 상기 모드선택신호(MODE)로서는 상기 제1 래치회로(81)에서 인가되는 제3 비트신호가 사용되게 된다.Here, the third bit signal applied from the first latch circuit 81 is used as the mode selection signal MODE.

또한, 상기 제1 클록신호 출력부(91)는 상기 모드선택신호(MODE)를 반전시키기 위한 인버터(IV1)와, 이 인버터(IV1)의 출력과 상기 제1 앤드게이트(AND1)의 출력을 논리곱하는 앤드게이트(AND3), 상기 인버터(IV1)의 출력을 반전시키는 인버터(IV2), 이 인버터(IV2)의 출력과 상기 클록신호(CLK)를 논리곱하는 앤드게이트(AND4) 및, 상기 앤드게이트(AND3)(AND4)의 출력을 논리합하는 오아게이트(OR1)를 포함하는 구성으로 되어, 상기 모드선택신호(MODE)가 "0" 인 경우에는 상기 제1 앤드게이트(AND1)의 출력을, 상기 모드선택신호(MODE)가 "1"인 경우에는 클록신호(CLK)를 제1 클록신호(CLK1)로서 출력하게 된다.The first clock signal output unit 91 includes an inverter IV1 for inverting the mode selection signal MODE and an output of the first AND gate AND1, An AND gate AND4 for multiplying the output of the inverter IV2 by the clock signal CLK and an inverter IV2 for inverting the output of the inverter IV1; AND3) AND4 (OR1). When the mode selection signal MODE is "0 ", the output of the first AND gate AND1 is set to the mode And outputs the clock signal CLK as the first clock signal CLK1 when the selection signal MODE is "1 ".

또한, 상기 제2 클록신호 출력부(92)는 상기 모드선택신호(MODE)를 반전시키기 위한 인버터(IV3)와, 이 인버터(IV3)의 출력과 상기 제2 앤드게이트(AND2)의 출력을 논리곱하는 앤드게이트(AND5), 상기 인버터(IV3)의 출력을 반전시키는 인버터(IV4), 이 인버터(IV4)의 출력과 상기 클록신호(CLK)를 논리곱하는 앤드게이트(AND6) 및, 상기 앤드게이트(AND5)(AND6)의 출력을 논리합하는 오아게이트(OR2)를 포함하는 구성으로 되어, 상기 모드선택신호(MODE)가 "0"인 경우에는 상기 제2 앤드게이트(AND2)의 출력을, 상기 모드선택신호(MODE)가 "1"인 경우에는 클록신호(CLK)를 제2 클록신호(CLK2)로서 출력하게 된다.The second clock signal output unit 92 includes an inverter IV3 for inverting the mode selection signal MODE and an output of the second AND gate AND2, An AND gate AND5 for inverting the output of the inverter IV3, an AND gate AND6 for ANDing the output of the inverter IV4 and the clock signal CLK, AND5 (AND6). When the mode selection signal MODE is "0 ", the output of the second AND gate AND2 is set to the mode And outputs the clock signal CLK as the second clock signal CLK2 when the selection signal MODE is "1 ".

그리고, 상기 선택신호 출력부(93)은 상기 모드선택신호(MODE)를 반전시키기 위한 인버터(IV5)와, 이 인버터(IV5)의 출력과 상기 D플립플롭(90)의 반전출력()을 논리곱하는 앤드게이트(AND7), 상기 인버터(IV5)의 출력을 반전시키는 인버터(IV6), 이 인버터 (IV6)의 출력과 상기 모드선택신호(MODE)를 논리곱하는 앤드게이트(AND8), 상기 앤드게이트(AND7)(AND8)의 출력을 논리합하는 오아게이트(OR3) 및, 이 오아게이트(OR3)의 출력을 반전시키는 인버터(IV7)를 포함하는 구성으로 되어, 상기 모드선택신호(MODE)가 "0"인 경우에는 상기 D플립플롭(90)의 반전출력()을 반전시켜서 출력하고, 상기 모드선택신호(MODE)가 "1"인 경우에는 로우레벨의 선택신호를 출력하게 된다.The selection signal output unit 93 includes an inverter IV5 for inverting the mode selection signal MODE and an inverted output of the inverter IV5 and the D flip- An AND gate AND8 for inverting the output of the inverter IV5 and an AND gate 8 for ANDing the output of the inverter IV6 and the mode selection signal MODE, An OR gate OR3 for ORing the outputs of the AND gates AND7 and AND8 and an inverter IV7 for inverting the output of the OR gate OR3. Quot; 0 ", the inverted output of the D flip-flop 90 , And outputs a low-level selection signal when the mode selection signal MODE is "1 ".

즉, 상기한 구성에 있어서 D플립플롭(90)은 제10도 (a)에 나타낸 바와 같은 클록신호(CLK)가 입력되면, 출력단(Q,)을 통해 제10도 (b) 및 (c)에 나타낸 바와 같은 신호를 출력하게 되고, 이어 이 D플립플롭(90)의 출력(Q,)은 앤드게이트(AND1)(AND2)를 통해 클록신호(CLK)와 각각 논리곱되어 앤드게이트(AND1, AND2)로부터는 제10도 (d) 및 (e)와 같은 클록신호가 출력되게 된다.That is, in the above configuration, when the clock signal CLK as shown in FIG. 10 (a) is inputted, the D flip-flop 90 outputs the output signals Q, (B) and (c) through the D flip-flop 90 and then outputs the signals (Q, Are logically multiplied with the clock signal CLK through the AND gates AND1 and AND2 and the clock signals as shown in FIG. 10 (d) and (e) are output from the AND gates AND1 and AND2.

한편, 제1 및 제2 클록신호 출력부(91)는 입력되는 모드선택신호(MODE)에 따라 상기 앤드게이트(AND1, AND2)의 출력과 입력클록(CLK)을 선택적으로 출력하게 된다. 즉, 모드선택신호(MODE)가 "0"인 경우에는 인번터(IV1, IV3)의 출력이 하이레벨로 되고 인버터(IV2, IV4)의 출력이 로우레벨로 되게 됨으로써 앤드게이트(AND1, AND2)의 출력, 즉 제10도 (d) 및 (e)의 클록신호가 각각 앤드게이트(AND3, AND5)를 통해 출력되게 되고, 모드선택신호(MODE)가 "1"인 경우에는 인버터(IV2, IV4)의 출력이 하이레벨로 되고 인버터(IV1, IV3)의 출력이 로우레벨로 되게 됨으로써 클록신호(CLK)가 각각 앤드게이트(AND4, AND6)를 통해 출력되게 된다.The first and second clock signal output units 91 selectively output the outputs of the AND gates AND1 and AND2 and the input clock CLK according to an input mode selection signal MODE. That is, when the mode selection signal MODE is "0 ", the outputs of the inverters IV1 and IV3 become high level and the outputs of the inverters IV2 and IV4 become low level, The clock signals of FIGS. 10 (d) and 10 (e) are output via the AND gates AND3 and AND5, respectively. When the mode selection signal MODE is "1" And the outputs of the inverters IV1 and IV3 become low level, so that the clock signal CLK is outputted through the AND gates AND4 and AND6, respectively.

또한, 선택신호 출력부(93)에 있어서는 모드선택신호(MODE)가 "0"인 경우에는 제10도 (f)와 같이 상기 D플립플롭(90)의 반전출력()이 앤드게이트(AND7)와 인버터(IV7)를 통해 반전되어 출력되고, 모드선택신호(MODE)가 "1"인 경우에는 앤드게이트(AND8)의 하이레벨 출력이 인버터(IV7)에 의해 반전되어 로우레벨의 선택신호(S)가 출력되게 된다.When the mode selection signal MODE is "0 ", the selection signal output unit 93 outputs the inverted output of the D flip-flop 90 as shown in FIG. 10 (f) ) Is inverted and outputted through the AND gate AND7 and the inverter IV7 and when the mode selection signal MODE is "1", the high level output of the AND gate AND8 is inverted by the inverter IV7 A low-level selection signal S is output.

따라서, 상기 모드제어부(85)에 있어서는 제8도에서 제1 래치회로(81)로부터 인가되는 모드선택신호(MODE)가 "1"인 경우, 즉 1상 또는 2상의 단일모드 여자방식인 경우에는 제10도 (a)와 동일한 형태의 제1 및 제2 클록신호(CLK1, CLK2)를 출력함과 더불어 로우레벨의 선택신호 (S)를 출력하고, 모드선택신호(MODE)가 "0"인 1-2상 여자방식의 경우에는 제10도 (d) 및 (e)와 같은 제1 및 제2 클록신호(CLK1, CLK2)를 출력함과 더불어 선택신호(S)로서 제10도 (f)와 같이 하이레벨과 로우레벨이 교번적으로 발생되는 클록신호가 출력되게 된다.Therefore, in the mode control unit 85, when the mode selection signal MODE applied from the first latch circuit 81 in FIG. 8 is "1", that is, in the single-mode or two-phase single- Level selection signal S while outputting the first and second clock signals CLK1 and CLK2 of the same type as in FIG. 10 (a), and when the mode selection signal MODE is "0" In the case of the 1-2 phase excitation method, the first and second clock signals CLK1 and CLK2 shown in FIGS. 10 (d) and 10 (e) are outputted and, as the selection signal S, A clock signal in which a high level and a low level are alternately generated is output.

그리고, 제8도에서 참조번호 86은 상기 모드제어부(85)로부터 인가되는 선택신호 (S)에 따라 제1 입력단(A)과 제2 입력단(B)으로 인가되는 각각 4비트의 데이터를 패턴데이터로서 제3도의 모터구동부(3)로 선택 출력하는 선택기로서, 이는 상기 모드제어부(85)로부터 예컨대 로우레벨의 선택신호가 인가되는 경우에는 제1입력단(A)으로 입력되는 상기 제1 시프트 레지스터(83)로부터의 4비트 데이터를 출력하는 한편, 상기 모드제어부(85)로부터 하이레벨의 선택신호가 인가되는 경우에는 제2 입력단(B)으로 입력되는 상기 제2 시프트 레지스터(84)로부터의 4비트 데이터를 패턴데이터로서 출력하게 된다.In FIG. 8, reference numeral 86 denotes data of four bits each applied to the first input terminal A and the second input terminal B according to the selection signal S applied from the mode control unit 85, Which is input to the first input terminal A when the low level selection signal is applied from the mode control unit 85, to the motor driver 3 of the third stage, Bit data from the second shift register 84 that is input to the second input terminal B when a high-level selection signal is applied from the mode control unit 85, And outputs the data as pattern data.

이어 상기한 구성으로 된 장치의 동작을 설명한다.Next, the operation of the apparatus having the above configuration will be described.

제4도의 구성에서 우선, 마이크로 프로세서(41)가 스텝모터(SM)를 1상 여자방식으로 정회전구동하는 경우에는, 상술한 표 5에 나타낸 바와 같이 제1 제어신호(CSO)의 액티브 로우상태에서 데이터버스를 통해 "101x xxxx"를 출력하고, 제2 제어신호의 액티브 로우상태에서 "1000 xxxx"를 출력한 후, 제5도에 나타낸 바와 같이 로드신호()와 클록신호(CLK)를 출력함으로써 패턴데이터 발생장치(42)를 구동하게 된다.4, in the case where the microprocessor 41 drives the step motor SM in the one-phase excitation mode, the microcomputer 41 sets the first control signal CSO to the active low state Quot; 101x xxxx "through the data bus in the active low state of the second control signal and outputs" 1000 xxxx "in the active low state of the second control signal, And the clock signal CLK to drive the pattern data generator 42.

한편, 이때 패턴데이터 발생장치(42)에 있어서는 제1 제어신호(CSO)의 로우레벨에서 제1 래치회로(81)에 "101x xxxx"이 래치되고, 제2 제어신호(CS1)의 로우레벨에서 제2 래치회로(82)에 "1000 xxxx"가 래치되게 된다.At this time, in the pattern data generator 42, "101x xxxx" is latched in the first latch circuit 81 at the low level of the first control signal CSO and at the low level of the second control signal CS1 "1000 xxxx" is latched in the second latch circuit 82.

따라서, 이때 제1 시프트레지스터(83)에는 로드신호()의 액티브 로우상태에서 "1000"의 데이터가 로드됨과 더불어 그 시프트방향 설정데이터로서 "10"이 입력되게 된다.Therefore, at this time, the first shift register 83 is supplied with the load signal ( &Quot; 1000 "is loaded in the active low state of the shift direction setting data, and" 10 "is inputted as the shift direction setting data.

또한, 상기 모드제어부(85)에 있어서는 상기 제1 래치회로(81)로부터 "10"의 모드선택신호가 입력됨에 따라 모드제어부(85)는 로우레벨의 선택신호를 선택기(86)로 출력하여 상기 제1 시프트 레지스터(83)의 출력을 선택가능상태로 설정함과 더불어 입력되는 클록신호(CLK)에 따라 제1 및 제2 클록신호(CLK1)(CLK2)를 출력하게 된다.In addition, in the mode control unit 85, the mode control unit 85 outputs a low-level selection signal to the selector 86 as the mode selection signal of "10" is input from the first latch circuit 81, The output of the first shift register 83 is set to the selectable state and the first and second clock signals CLK1 and CLK2 are output in accordance with the input clock signal CLK.

따라서, 상기한 상태에서는 제1 시프트 레지스터(83)가 상기 모드제어부(85)로부터 인가되는 클록신호(CLK1)에 따라 시프트 동작을 실행하면서 그 시프트된 데이터를 출력단(QA∼QD)을 통해 출력함과 더불어 그 최상위비트의 출력(QD)이 다시 좌방향 시프트데이터 입력단(SL)으로 입력되게 되므로, 이 제1 시프트 레지스터(83)로부터 선택기(86)를 통해서 출력되는 데이터는 클록신호(CLK)의 입력시마다 상술한 표 1에 나타낸 바와 같이 테이터 "1"이 A로부터측으로 순차로 시프트되는 패턴데이터로서 출력되게 된다.Therefore, in the above state, the first shift register 83 performs the shift operation in response to the clock signal CLK1 applied from the mode control unit 85, and outputs the shifted data through the output stages QA to QD The data output from the first shift register 83 through the selector 86 is input to the left shift data input terminal SL of the clock signal CLK and the output QD of the most significant bit is input to the left shift data input terminal SL again. As shown in Table 1 above, data "1" As pattern data that is sequentially shifted to the left side.

또한, 마이크로 프로세서(41)가 스텝모터(SM)를 1상 역회전 모드로 구동하는 경우에는 표 5 나타낸 바와 같이 제1 래치회로(81)에 래치되는 데이터의 비트0 및 비트1의 값이 "1"로 설정되고 그 밖의 다른 데이터는 상술한 1상 정회전 모드시와 동일하게 된다.When the microprocessor 41 drives the step motor SM in the one-phase reverse rotation mode, the values of bit 0 and bit 1 of the data latched in the first latch circuit 81 are set to " 1 "and other data becomes the same as in the above-described one-phase forward rotation mode.

따라서, 이 경우에는 제1 시프트 레지스터(83)로 인가되는 시프트방향 설정데이터가 변경되어 제1 시프트 레지스터(83)의 데이터 시프트 방향이 출력단(QD)으로부터 출력단(QA) 측으로 실행되는 한편, 출력단(QA)으로부터 출력되는 데이터가 그 우방향 시프트데이터 입려단(SR)으로 입력되게 됨으로써 이 제1시프트 레지스터(83)로부터 선택기(86)를 통해서 출력되는 데이터는 상술한 표 2에 나타낸 바와 같이 데이터 "1"이로부터 A측으로 순차로 시프트되는 패턴데이터의 형태로 되게 된다.Therefore, in this case, the shift direction setting data applied to the first shift register 83 is changed so that the data shift direction of the first shift register 83 is performed from the output stage QD to the output stage QA side, The data output from the first shift register 83 through the selector 86 is input to the right shift data input terminal SR as data " 1 " The pattern data is sequentially shifted from the A side to the A side.

한편, 스텝모터(SM)를 2상 정회전 모드로 구동하는 경우에는, 마이크로 프로세서(41)는 표 5에 나타낸 바와 같이 제1 데이터로서 "101x xxxx", 제2 데이터로서 "1100 xxxx"를 패턴데이터 발생장치(42)로 공급하게 된다.On the other hand, when the stepper motor SM is driven in the two-phase forward rotation mode, the microprocessor 41 outputs "101x xxxx" as the first data and "1100 xxxx" And supplies it to the data generating device 42.

따라서, 이 경우에는 상술한 1상 정회전 모드와 동일한 동작방식으로 모드제어부(85)와 제1 시프트 레지스터(83)가 동작하게 되는데, 이때 상기 제1시프트 레지스터(83)는 "1100"의 데이터가 로드되어 있게 되므로, 이 제1시프트 레지스터(83)로부터 선택기 (86)를 통해 출력되는 데이터는 표 3에 나타낸 바와 같은 패턴데이터의 형태로 되게 된다.In this case, the mode control unit 85 and the first shift register 83 operate in the same operation mode as the above-described one-phase forward rotation mode. At this time, the first shift register 83 outputs data of "1100" The data output from the first shift register 83 through the selector 86 is in the form of pattern data as shown in Table 3. [

또한, 스텝모터(SM)를 2상 역회전 모드로 구동하는 경우에는 마이크로 프로세서(41)에서 제1 데이터로서 "011x xxxx", 제2 데이터로서 "1100 xxxx"가 공급되게 된다.When the step motor SM is driven in the two-phase reverse rotation mode, the microprocessor 41 supplies "011x xxxx" as the first data and "1100 xxxx" as the second data.

따라서, 이 경우에는 상술한 2상 정회전 모드와 동일한 데이터가 제1 시프트 레지스터(83)에 로드되면서 그 데이터 시프트 방향이 정회전 모드와 반대로 설정되게 되므로 제1 시프트 레지스터(83)로부터 선택기(86)를 통해 출력되는 데이터는 표 4에 나타낸 바와 같은 패턴데이터의 형태로 되게 된다.Therefore, in this case, the same data as in the above-described two-phase forward rotation mode is loaded into the first shift register 83 and the data shift direction thereof is set to be opposite to the forward rotation mode so that the data from the first shift register 83 to the selector 86 ) Is in the form of pattern data as shown in Table 4. < tb > < TABLE >

또한, 상술한 1상 또는 2상 구동방식에 있어서는 제2 시프트 레지스터(84)도 모드제어부(85)로부터 인가되는 클록신호(CLK2)에 따라 시프트동작을 실행하게 되지만, 이 제2 시프트 레지스터(85)의 출력은 선택기(86)에 위해 선택되지 않게 되므로, 스텝모터(SM)의 구동에는 영향을 미치지 않게 된다.The second shift register 84 also performs the shift operation in accordance with the clock signal CLK2 applied from the mode control unit 85 in the one-phase or two-phase driving method described above. However, the second shift register 85 Is not selected for the selector 86, so that the operation of the stepper motor SM is not affected.

이어, 스텝모터(SM)를 1-2상의 정회전 모드로 구동하는 경우에는 마이크로 프로세서(41)는 표 5에 나타낸 바와 같이 제1 데이터로서 "100x xxxx", 제2데이터로서 "1000 1100"을 공급하게 된다.Next, when the stepper motor SM is driven in the forward rotation mode of 1-2 phase, the microprocessor 41 outputs "100x xxxx" as the first data and "1000 1100" as the second data as shown in Table 5 .

따라서, 이 경우에는 제2 래치회로(82)에 래치된 제2 데이터에 의해 로드신호()의 입력시에 제1 시프트 레지스터(83)에는 "1000", 제2 시프트 레지스터(84)에는 "1100"이 로드되는 한편, 이 제1 및 제2 시프트 레지스터(83, 84)는 시프트 방향설정 데이터로서 "10"이 인가되게 되므로 로드된 데이터를 출력단 (QA)으로부터 출력단(QD)측으로 시프트시키면서 시프트된 데이터를 출력단(QA∼QD)을 통해 병렬로 출력하게 된다.Therefore, in this case, the second data latched in the second latch circuit 82 is applied to the load signal Is input to the first shift register 83 and the second shift register 84 at the time of input of the shift register 83 and 84 and the first and second shift registers 83 and 84 are set to the shift direction setting Quot; 10 "as data. Therefore, the loaded data is shifted from the output stage QA to the output stage QD side and the shifted data is output in parallel through the output stages QA to QD.

또한, 모드제어부(85)는 모드선택 데이터로서 "0" 인가되므로, 제10도 (d) 및 (e)에 나타낸 바와 같이 마이크로 프로세서(41)로부터 인가되는 클록신호(CLK)에 대해 제1 및 제2 클록신호(CLK1, CLK2)를 생성하여 제1 및 제2 시프트 레지스터(83, 84)로 각각 공급함과 더불어, 제10도 (f)에 나타낸 바와 같은 선택신호(S)를 출력하게 된다.Since the mode control unit 85 is applied with "0" as the mode selection data, the clock signal CLK applied from the microprocessor 41 as shown in FIGS. 10 (d) and 10 Generates the second clock signals CLK1 and CLK2 and supplies them to the first and second shift registers 83 and 84 and outputs the selection signal S as shown in FIG.

따라서, 상기한 모드선택상태에는 다음 표 6에 나타낸 바와 같이 제1 시프트 레지스터(83)에서 출력되는 1상의 정회전 패턴데이터와 제2 시프트 레지스터(84)에서 출력되는 2상의 정회전 패턴데이터가 선택기(86)에 의해 교번적으로 선택되어 출력되게 되므로 스텝모터 (SM)는 1-2상의 정회전 모드로 구동되게 된다.Therefore, as shown in the following Table 6, the one-phase normal rotation pattern data output from the first shift register 83 and the two-phase normal rotation pattern data output from the second shift register 84 are input to the selector The step motor SM is driven in the positive rotation mode of the 1-2 phase.

또한, 스텝모터(SM)를 1-2상의 역회전 모드로 구동하는 경우에는 표 5에 나타낸 바와 같이 마이크로 프로세서(41)는 제1 데이터로서 010x xxxx, 제2데이터로서 1000 1100을 공급하게 된다.When the stepper motor SM is driven in the reverse rotation mode of 1-2 phases, as shown in Table 5, the microprocessor 41 supplies 010x xxxx as the first data and 1000 1100 as the second data.

따라서, 이 경우에는 상술한 1-2상 정회전 모드와 실질적으로 제1 및 제2 시프트 레지스터(83, 84)로 공급되는 회전방향 설정데이터만이 달라지게 되므로, 모드제어부(85)는 상술한 1-2상 정회전모드와 방식으로 모드제어를 실행하게 된다.Therefore, in this case, only the rotational phase direction setting data supplied to the first and second shift registers 83 and 84 are different from the above-mentioned 1-2 phase normal rotational mode and therefore, The mode control is executed in the 1-2 phase forward rotation mode and the mode.

또한, 제1 및 제2시프트 레지스터(83, 84)도 상술한 1-2상 정회전 모드시와 동일한 데이터가 로드되게 되는데, 이 경우에 있어서는 제1 및 제2 시프트 레지스터(83, 84)는 1의 회전방향 설정데이터가 인가되므로 출력단(QD)으로부터 출력단(QA)측으로 테이터를 시프트시키면서 시프트된 데이터를 출력단(QA∼QD)을 통해 병렬로 출력하게 된다.In the first and second shift registers 83 and 84, the same data as in the 1-2-phase forward rotation mode is loaded. In this case, the first and second shift registers 83 and 84 1, the shifted data is outputted in parallel through the output stages QA to QD while shifting the data from the output stage QD to the output stage QA side.

다음 표 7은 1-2상 역회전 모드시에 선택기(86)로부터 출력되는 패턴데이터를 나타낸 것이다.Table 7 below shows pattern data output from the selector 86 in the 1-2 phase reverse rotation mode.

또한, 상기 각 동작모드상태에서 스텝모터(SM)의 구동을 정지시키고자 하는 경우에는 마이크로 프로세서 (41)가 패턴데이터 발생장치(42)로 공급하는 클록신호(CLK)를 차단함으로써 실행되게 된다.When the drive of the step motor SM is to be stopped in each of the above operation mode states, the microprocessor 41 is executed by blocking the clock signal CLK supplied to the pattern data generator 42. [

따라서, 상기 실시예에 있어서는 마이크로 프로세서(41)가 스텝모터(SM)의 구동방식에 따라 일일히 패턴데이터를 생성하여 출력할 것 없이, 단지 해당 구동방식에 따라 소정의 데이터를 근거로 패턴데이터 발생장치(42)를 프로그램하면 되므로 스텝모터(SM)의 구동에 따른 마이크로 프로세서(41)의 부담이 대폭 축소하게 된다.Therefore, in the above-described embodiment, the microprocessor 41 does not generate and output pattern data all the time according to the driving method of the step motor SM, but generates pattern data based on predetermined data only according to the driving method Since the apparatus 42 is programmed, the burden on the microprocessor 41 due to the driving of the stepper motor SM can be greatly reduced.

한편, 상기 실시예에 있어서는 스텝모터(SM)의 구동량 또는 구동시간이 마이크로 프로세서(41)로부터의 클록신호(CLK) 출력에 의존하도록 되어 있다. 즉, 마이크로 프로세서(41)가 스텝모터(SM)를 소정의 양만큼 구동하게 되는 경우, 마이크로 프로세서(41)는 패턴데이터 발생장치(42)로 공급하는 클록신호(CLK)의 펄스수를 계수하여 계수된 펄스수가 소정치가 될 때 클록신호(CLK)의 출력을 차단하는 방법으로 스텝모터(SM)의 구동량을 제어하게 된다.On the other hand, in the above embodiment, the drive amount or drive time of the stepping motor SM depends on the output of the clock signal CLK from the microprocessor 41. That is, when the microprocessor 41 drives the stepper motor SM by a predetermined amount, the microprocessor 41 counts the number of pulses of the clock signal CLK supplied to the pattern data generator 42 The driving amount of the step motor SM is controlled by a method of interrupting the output of the clock signal CLK when the number of counted pulses becomes a predetermined value.

따라서, 상기 실시예에 있어서는 마이크로 프로세서(41) 클록신호(CLK)의 출력 펄스수를 계수하면서 스텝모터(SM)의 구동량을 지속적으로 체크하여야 하는 바, 이는 마이크로 프로세서(41)의 소프트웨어적인 부담을 초래하게 된다.Therefore, in the above embodiment, the driving amount of the stepping motor SM must be continuously checked while counting the number of output pulses of the clock signal CLK of the microprocessor 41. This is because the software load of the microprocessor 41 .

제11도는 본 발명의 다른 실시예에 따른 스텝모터 구동용 패턴데이터 발생장치를 나타낸 블록구성도로, 본 실시예는 패턴데이터 발생장치가 마이크로 프로세서로부터 인가되는 스텝모터의 구동량데이터를 근거로 스텝모터의 구동량을 체크하여 스텝모터가 적절히 구동된 경우에는 마이크로 프로세서로 인터럽트신호를 출력하도록 된 것이다. 또한, 제11도에서 상술한 제4도의 구성과 동일한 부분에서 동일한 첨조번호를 붙이고 그 상세한 설명은 생략한다.FIG. 11 is a block diagram showing a pattern data generating apparatus for driving a step motor according to another embodiment of the present invention. In this embodiment, the pattern data generating apparatus includes a step motor And when the step motor is properly driven, the microprocessor outputs the interrupt signal. In FIG. 11, the same reference numerals are assigned to the same components as those in FIG. 4, and a detailed description thereof will be omitted.

제11도에서 참조번호 101은 스텝모터(SM)의 구동을 제어하기 위한 마이크로 프로세서로이고, 102는 이 마이크로 프로세서(101)의 제어에 따라 스텝모터(SM)를 구동하기 위한 패턴데이터를 생성하여 출력하는 패턴데이터 발생장치이다.11, reference numeral 101 denotes a microprocessor for controlling the driving of the stepping motor SM, and 102 generates pattern data for driving the stepping motor SM under the control of the microprocessor 101 And outputs the pattern data.

상기 구성에 있어서, 마이크로 프로세서(101)는 제12도에 그 동작타이밍을 나타낸 바와 같이, 제1 내지 제3 제어신호(CSO~CS2)의 액티브 로우상태에서 제1 내지 제3 데이터를 출력하여 패턴데이터 발생장치(102)를 프로그램하게 된다.12, the microprocessor 101 outputs the first to third data in the active low state of the first to third control signals CSO to CS2, The data generating apparatus 102 is programmed.

이때, 상기 제1 및 제2 데이터는 제4도에서 설명한 바와 동일하게 스텝모터(SM)의 회전방향과 여자방식을 선택하기 위한 구동모드 테이터로 설정되고, 제3데이터는 스텝모터(SM)의 구동량을 설정하기 위한 구동량데이터로 설정되게 된다.At this time, the first and second data are set to the drive mode data for selecting the rotational direction and the excitation mode of the step motor SM in the same manner as described in FIG. 4, The drive amount data for setting the drive amount is set.

이어, 마이크로 프로세서(101)는 제4도의 실시예에서와 마찬가지로 로드신호()와 클록신호(CLK)를 출력함으로써 패턴데이터 발생장치(102)를 구동하게 된다.Next, the microprocessor 101, as in the embodiment of FIG. 4, And the clock signal CLK to drive the pattern data generator 102.

그리고, 패턴데이터 발생장치(102)로부터 인터럽트신호()가 입력되면 클록신호(CLK)의 출력을 중지함으로써 스텝모터의 구동을 정지시키게 된다.Then, from the pattern data generator 102, an interrupt signal ( The operation of the step motor is stopped by stopping the output of the clock signal CLK.

한편, 제13도는 상술한 패턴데이터 발생장치(102)의 구성을 나타낸 구성도로, 제13도에 있어서는 제8도에 나타낸 구성에 대해 카운터(110)가 추가로 갖추어져 있다.FIG. 13 is a diagram showing the configuration of the above-described pattern data generator 102. In FIG. 13, a counter 110 is additionally provided for the configuration shown in FIG.

상기 카운터(110)는 제3 제어신호(CS2)의 로우레벨 상태에서 제3 데이터(DATA), 즉 마이크로 프로세서(101)로부터 스텝모터(SM)의 구동량데이터를 셋트한 후 클록신호(CLK)가 입력될 때마다 해당 데이터값을 다운카운트하게 된다. 그리고, 해당 계수치가 "0"이 되면 출력포트를 통해 로우레벨의 인터럽트신호()를 출력하게 된다.The counter 110 sets the third data DATA, that is, the drive amount data of the stepper motor SM from the microprocessor 101 in the low level state of the third control signal CS2, and then outputs the clock signal CLK, The corresponding data value is down-counted. When the count value becomes "0 ", the low-level interrupt signal ( ).

따라서, 상기 실시예에 있어서는 마이크로 프로세서(101)가 패턴데이터 발생장치(102)를 프로그램할 때, 스텝모터(SM)의 구동량에 다른 데이터값을 입력한 후, 패턴데이터 발생장치(102)로부터 출력되는 인터럽트신호()를 근거로 클록신호(CLK)의 출력을 중지하면 되므로 마이크로 프로세서(101)의 소프트웨어적인 부담이 더욱 절감되게 된다.Therefore, in the above embodiment, when the microprocessor 101 programs the pattern data generator 102, after inputting another data value to the drive amount of the stepper motor SM, the pattern data generator 102 The output interrupt signal ( The output of the clock signal CLK is stopped, so that the burden on the software of the microprocessor 101 is further reduced.

또한, 본 발명은 상기 실시예에 한정되지 않고 본 발명의 기술적 요지를 벗어나지 않는 범위내에서 다양하게 변형시켜 실시할 수 있다.The present invention is not limited to the above-described embodiments, and various modifications may be made without departing from the technical spirit of the present invention.

예를 들어, 제4도 및 제8도에 나타낸 실시예에 있어서는 마이크로 프로세서(41)가 스텝모터(SM)의 여자방식에 따라 제2 데이터를 적절한 값으로 설정하도록 구성하였으나, 이 경우 제2 데이터로서 "1000 1100"를 고정적으로 공급하여 제1 시프트 레지스터(83)에 "1000", 제2 시프트 레지스터(84)에 "1100"을 항상 일정하게 로드한 후, 1상 여자방식의 경우에는 선택신호(S)에 의해 제1 시프트 레지스터(81)의 출력이 선택되고, 2상 여자방식의 경우에는 제2 시프트 레지스터(84)의 출력이 선택되며, 1-2상 여자방식의 경우에는 상기 실시예와 동일한 방법으로 제1 및 제2 시프트 레지스터(83, 84)와 선택기(86)가 교번적으로 동작되도록 모드제어부(85)를 구성해도 동일한 결과를 얻을 수 있다.For example, in the embodiment shown in FIGS. 4 and 8, the microprocessor 41 is configured to set the second data to an appropriate value according to the excitation method of the stepping motor SM, but in this case, 1000 " is constantly supplied to the first shift register 83 and the second shift register 84 by constantly supplying "1000 1100" The output of the first shift register 81 is selected by the shift register S and the output of the second shift register 84 is selected in the case of the two-phase excitation method. In the case of the 1-2- The same result can be obtained even if the mode control unit 85 is configured so that the first and second shift registers 83 and 84 and the selector 86 are operated alternately.

이상 설명한 바와 같이 본 발명에 의하면, 스텝모터를 구동함에 있어 마이크로 프로세서의 소프트웨어적인 부담을 대폭적으로 저감시킬 수 있도록 해주는 스텝모터 구동용 패턴데이터 발생장치를 실현할 수 있게 된다.As described above, according to the present invention, it is possible to realize a pattern data generator for stepping motor drive that can greatly reduce the software burden of the microprocessor in driving the stepper motor.

Claims (3)

스텝모터의 회선방향과 여자방식을 설정하기 위한 데이터를 래치하기 위한 제1 래치수단과, 스텝모터의 1상 여자방식에 대응하는 제1 기준데이터와 2상 여자방식에 대응하는 제2 기준데이터를 저장하기 위한 제2 래치수단, 로드신호에 따라 상기 제2 래치수단에서 출력되는 제1 또는 제2 기준데이터를 로드하고, 그 최하위비트 출력이 제1 방향 시프트데이터 입력단에 결합됨과 더불어 최상위비트 출력이 제2방향 시프트데이터 입력단에 결합되며, 클록신호의 입력시마다 상기 제1 래치수단에서 출력되는 회전방향 설정데이터에 근거해서 상기 로드된 데이터를 시프트시키면서 그 시프트된 데이터를 출력하는 제1 및 제2 시프트 레지스터, 제1 및 제2 레벨의 선택신호에 따라 상기 제1 및 제2 시프트 레지스터의 출력을 선택적으로 출력하는 선택수단, 스텝모터의 구동량에 대응하는 구동량데이터를 입력받음과 더불어, 상기 클록신호를 계수하여 그 계수치가 상기 구동량데이터와 동일한 경우에는 소정 레벨의 인터럽트신호를 출력하는 카운터수단 및, 상기 제1 래치수단에서 출력되는 여자방식 데이터에 근거해서 입력되는 클록신호를 상기 제1 또는 제2 시프트 레지스터에 선택적으로 공급함과 더불어 상기 선택수단에 대해 제1 또는 제2레벨의 선택신호를 출력하는 모드제어수단을 포함하여 구성된 것을 특징으로 하는 스텝모터 구동용 패턴데이터 발생장치.First latch means for latching data for setting the line direction and excitation mode of the step motor, first latch means for latching the first reference data corresponding to the one-phase excitation mode of the step motor and the second reference data corresponding to the two- A second latch means for storing the first or second reference data output from the second latch means in accordance with a load signal and for connecting the least significant bit output thereof to the first direction shift data input stage, First and second shifts, which are coupled to a second direction shift data input and output the shifted data while shifting the loaded data based on rotation direction setting data output from the first latch means each time a clock signal is input, Selection means for selectively outputting the outputs of the first and second shift registers in accordance with a register, first and second level selection signals, A counter means for counting the clock signal and outputting an interrupt signal of a predetermined level when the count value is equal to the drive amount data, And a mode control means for selectively supplying a clock signal to the first or second shift register based on the excitation type data output from the first or second shift register and outputting a first or second level selection signal to the selection means And outputs the pattern data to the step motor. 제1항에 있어서, 상기 스텝모터를 1상 또는 2상의 단일모드로 동작시키는 경우에는 상기 제1시프트 레지스터에 해당 모드에 따라 기준데이터가 로드되는 것을 특징으로 하는 스텝모터 구동용 패턴데이터 발생장치.2. The step motor driving pattern data generator according to claim 1, wherein when the step motor is operated in a single-phase or two-phase single mode, the reference data is loaded in the first shift register in accordance with the mode. 제1항에 있어서, 상기 제1 시프트 레지스터에는 스텝모터를 1상의 모드로 구동하기 위한 기준데이터가 로드되고, 상기 제2 시프트 레지스터에는 스텝모터를 2상의 모드로 구동하기 위한 기준데이터가 로드되는 것을 특징으로 하는 스텝모터 구동용 패턴데이터 발생장치.2. The shift register according to claim 1, wherein the reference data for driving the step motor in the 1-phase mode is loaded in the first shift register, and the reference data for driving the step motor in the 2-phase mode is loaded in the second shift register Wherein the step motor driving pattern data generating device comprises:
KR1019960022526A 1996-06-20 1996-06-20 Pattern data generating apparatus for stepping motor drive KR100221829B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960022526A KR100221829B1 (en) 1996-06-20 1996-06-20 Pattern data generating apparatus for stepping motor drive

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960022526A KR100221829B1 (en) 1996-06-20 1996-06-20 Pattern data generating apparatus for stepping motor drive

Publications (2)

Publication Number Publication Date
KR980006796A KR980006796A (en) 1998-03-30
KR100221829B1 true KR100221829B1 (en) 1999-09-15

Family

ID=19462626

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960022526A KR100221829B1 (en) 1996-06-20 1996-06-20 Pattern data generating apparatus for stepping motor drive

Country Status (1)

Country Link
KR (1) KR100221829B1 (en)

Also Published As

Publication number Publication date
KR980006796A (en) 1998-03-30

Similar Documents

Publication Publication Date Title
KR100221829B1 (en) Pattern data generating apparatus for stepping motor drive
US6839783B2 (en) Programmable state machine interface
US6003053A (en) Pulse signal generation circuit and pulse signal generation method
US5199052A (en) Reload timer circuit
US7536533B2 (en) MCU based motor controller with pre-load register and DMA controller
KR100737557B1 (en) Stepping motor control circuit, electronic camera, and stepping motor control method
JPH1141989A (en) Drive gear for stepping motor and monitor camera system using it
US5235682A (en) Port output controller for use in microcomputer
KR100304393B1 (en) Motor control apparatus
Astarloa et al. Reconfigurable microstepping control of stepper motors using FPGA embedded RAM
KR890006195Y1 (en) Paper transfer devices of printer
US5566632A (en) Control method for automatic sewing machine and apparatus thereof
US5590035A (en) Output control circuit
JP4054916B2 (en) Stepping motor control circuit, electronic camera, and stepping motor control method
KR100597736B1 (en) Pulse generating method and pulse generator, and motor control system using thereof
KR100290118B1 (en) Driving logic generating circuit of 3-phase step motor
KR0155870B1 (en) Pulse signal delay and pulse signal width variable apparatus
KR880003316Y1 (en) Arrangement for starting stepping motor
KR100214661B1 (en) Control circuit for four phase stepping motor
Okezie et al. Microcontroller-Based Universal Stepper Motor Controllers
KR940003007B1 (en) Arrangement for controlling brushless dc motor
RU1818674C (en) Three-phase induction motor control device
JP2823415B2 (en) Stepping motor control device
KR970008366B1 (en) Control circuit of stepping motor
JPS622896A (en) Stepping motor control system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee