KR930000259B1 - Source supplying method for stepping motor - Google Patents

Source supplying method for stepping motor Download PDF

Info

Publication number
KR930000259B1
KR930000259B1 KR1019890017198A KR890017198A KR930000259B1 KR 930000259 B1 KR930000259 B1 KR 930000259B1 KR 1019890017198 A KR1019890017198 A KR 1019890017198A KR 890017198 A KR890017198 A KR 890017198A KR 930000259 B1 KR930000259 B1 KR 930000259B1
Authority
KR
South Korea
Prior art keywords
power
stepping motor
voltage
power source
data
Prior art date
Application number
KR1019890017198A
Other languages
Korean (ko)
Other versions
KR910010813A (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 KR1019890017198A priority Critical patent/KR930000259B1/en
Publication of KR910010813A publication Critical patent/KR910010813A/en
Application granted granted Critical
Publication of KR930000259B1 publication Critical patent/KR930000259B1/en

Links

Images

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
    • H02P1/00Arrangements for starting electric motors or dynamo-electric converters
    • 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
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation

Abstract

The method is for providing uniform power to a stepping motor regardless of input power variation. The method comprises: (A) starting count action of period of oscillated frequency when oscillated frequency is generated; (B) stopping the count action when oscillated frequency generation is stopped, and analyzing counter data; (C) calculating variation interval of a first power by comparing counter data and reference data; (D) setting output period of power control signal to provide uniform power to a stepping motor; (E) transmitting power control signal to a power selection unit and phase signal of step driving data to a motor driving unit.

Description

스텝핑 모터의 균일 전원 공급 방법Uniform power supply method of stepping motor

제1도는 종래의 스테핑 모터 구동회로도.1 is a conventional stepping motor driving circuit diagram.

제2도는 종래의 스테핑 모터 구동 회로도.2 is a conventional stepping motor driving circuit diagram.

제3도는 스텝구동 데이타에 따른 스텝모터의 구동 전원 파형도.3 is a driving power waveform diagram of the step motor according to the step drive data.

제4도는 제1전원의 상태에 따른 균일 전원 공급 파형도.4 is a uniform power supply waveform diagram according to the state of the first power supply.

제5도는 본 발명을 수행하기 위한 스테핑 모터의 구동회로도.5 is a drive circuit diagram of a stepping motor for carrying out the present invention.

제6도는 제2도의 동작 파형도.6 is an operational waveform diagram of FIG.

제7도는 본 발명의 흐름도.7 is a flow chart of the present invention.

제8도는 인터럽트 처리 흐름도.8 is an interrupt processing flow diagram.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

10 : CPU 20 : 전압 검출기10: CPU 20: voltage detector

30 : 전압제어발진기 40 : 앤드게이트30: voltage controlled oscillator 40: end gate

50 : 전원선택부 60 : 모터구동부50: power selector 60: motor drive

본 발명은 스테핑 모터의 구동방법에 관한 것으로. 특히 전원의 변화에 관계없이 스테핑 모터로 균일한 구동 전압을 공급할 수 있는 방법에 관한 것이다.The present invention relates to a method of driving a stepping motor. In particular, the present invention relates to a method for supplying a uniform driving voltage to a stepping motor regardless of a change in power supply.

일반적으로 스테핑 모터(stepping motor)는 2중 전원(dua1 vo1tage)를 사용하게 되는데, 지역적인 차이나 주변 전원 환경의 변화로 인해 전원 전압의 변동이 생기면, 그 변동에 따라 스테핑 모터에 공급되는 전력(power)이 따라서 변하게 되어 스테핑 모터의 수명 및 성능에 미치는 영향이 매우 크게 된다. 따라서 상기와 같은 전원 전압의 변화에 무관하게 스테핑 모터로 전원을 공급해야 하는데, 종래에는 이를 제1도와 같은 구성에 의해 제2도와 같은 방법으로 구현하여 왔었다.In general, a stepping motor uses a dual power supply (dua1 vo1tage). When a change in power supply voltage occurs due to a regional difference or a change in the surrounding power environment, the power supplied to the stepping motor according to the change ) Changes accordingly, which greatly affects the life and performance of the stepping motor. Therefore, power must be supplied to the stepping motor regardless of the change in the power supply voltage as described above. Conventionally, this has been implemented in the same manner as in FIG.

먼저 제1도를 참조하여 제1전윈(VH) 및 제2전원(V1)으로 스테핑 모터를 구동하는 과정을 살펴보면, CPU(1)에서 포트 PA,PB,

Figure kpo00001
를 통해 스텝구동데이타(A, B,
Figure kpo00002
)를 출력할시, 포트 P15로 제1전원(VH) 및 제2전원(V1)을 선택하기 위한 전원제어신호를 반생한다. 이때 상기 스텝구동데이타(A,B,
Figure kpo00003
)출력시점에서 상기 CPU(1)은 상기 전원제어신호를 “하이”상태로 하여 P15포트로 출력하고, 소정시간 (TW)이 지난 뒤에 상기 전원제어신호를 “로우”상태로 천이시킨다. 이때 상기 CPU(1)로부터 발생되는 전원제어신호에 의해 전원선택부(2)의 트렌지스터(Q5,Q6)가 스위칭되며, 이로인해 상기 전원선택부(2)는 제3도에 도시된 바와 같이 상기 전원제어신호의 논리에 따라 연결되어 있는 제1전원(VH) 또는 제2전원(V1)을 선택하여 코일(11-14)로 인가한다. 또한 상기 CPU(1) 포트 PA, PB, P,
Figure kpo00004
를 통해 출력되는 스텝구동데이타(A, B,
Figure kpo00005
)의 상태에 따라 모터구동부(3)의 트랜지스터(Q1-Q4)가 스위칭되어 상기 코일(11-14)의 전류통로를 형성한다. 따라시 스테핑 모터는 상기 트렌지스터(Q1-Q4)의 스위칭 상태 및 코일(L1-L4)의 전류 흐름 상태에 따라 스텝 단위로 구동되는 것이다.First, referring to FIG. 1, a process of driving a stepping motor with the first power VH and the second power V1 is described. In the CPU 1, the ports PA, PB,
Figure kpo00001
Step drive data (A, B,
Figure kpo00002
) Outputs a power control signal for selecting the first power supply VH and the second power supply V1 to the port P15. At this time, the step driving data (A, B,
Figure kpo00003
At the time of outputting, the CPU 1 outputs the power control signal to the P15 port in a "high" state, and transitions the power control signal to a "low" state after a predetermined time (TW). At this time, the transistors Q5 and Q6 of the power selector 2 are switched by the power control signal generated from the CPU 1, which causes the power selector 2 to operate as shown in FIG. The first power source VH or the second power source V1 connected to the coil 11-14 is selected according to the logic of the power control signal. In addition, the CPU (1) port PA, PB, P,
Figure kpo00004
Step driving data (A, B,
Figure kpo00005
The transistors Q1-Q4 of the motor driver 3 are switched to form the current path of the coils 11-14 according to the state of. Accordingly, the stepping motor is driven in step units according to the switching state of the transistors Q1-Q4 and the current flow state of the coils L1-L4.

이때 상기 제1전원(VH)은 통상 제2전원(V1)의 4-5배의 전원으로 스텝 구동 데이타 발생시점에 코일(11-14)로 인가되어 스테핑 모터로 고속 구동하게 되는데, 제1전원(VH)의 주변환경의 영향에 따라 변화되면 스테핑 모터로 공급되는 전윈에 이상이 발생되는 경우에는 상기 스테핑 모터의 성능을 저하시키게 된다. 그러므로 제4도에 도시된 바와 같이 제1 전원( VH)의 변화에 따라 VH1전압으로 상승되면, 펄스폭을 줄여주고, VH2전압으로 하강되면 필스폭을 늘여서 스텝핑 모터로 인가되는 전력을 균일하게 하여 줘야 한다.At this time, the first power source VH is a power of 4-5 times that of the second power source V1 and is applied to the coil 11-14 at the time of step driving data generation, and is driven at a high speed by a stepping motor. If a change occurs according to the influence of the surrounding environment of (VH), when an error occurs in the power supplied to the stepping motor, the performance of the stepping motor is reduced. Therefore, as shown in FIG. 4, when the voltage rises to the VH1 voltage according to the change of the first power supply VH, the pulse width is reduced, and when the voltage falls to the VH2 voltage, the fill width is increased to equalize the power applied to the stepping motor. Should give

상기와 같은 문제점을 해결하기 위하여 종래에는 제1전원(VH)을 비교기 (CM11-CM4)의 비교단자에 입력시키고, 기준단자에는 저항(R1--R5)에 의해 레벨 쉬프트(1eve1 shift)되는 4개의 기준전압을 각각 입력시켜, 제1전원(VH)의 변화상태를 감지한다. 즉, CPU(1)는(A1)단계에서 포트 P11-P14를 통해 수신되는 비교기 (CMI-CM4)의 출력을 리드한 후, (A2)단계에서 우선순위 엔코더(Priority encoder)처리를 수행한다. 상기(A2)단계에서 우선순위 엔코더 처리를 행하는 이유는 비교기 (CM1-CM4)로 구성되는 병렬 A/D변환기(Para11ed A/D Converter)의 출력데이타가 우선순위 엔코더와 일치하여 디지탈 변환하여야 하기 때문이다.In order to solve the above problem, conventionally, the first power supply VH is input to the comparison terminal of the comparators CM11-CM4, and the reference terminal has a level shifted by the resistors R1--R5. Two reference voltages are input to sense a change state of the first power supply VH. That is, the CPU 1 reads the output of the comparator CMI-CM4 received through the ports P11-P14 in step A1, and then performs a priority encoder process in step A2. The reason why priority encoder processing is performed in step (A2) is that the output data of a parallel A / D converter composed of comparators (CM1-CM4) must be digitally converted in accordance with the priority encoder. to be.

이후 CPU(1)는(A3)단계에서 비교기(CM1-CM4)를 통해 수신한 데이타와 기준데이타(TW)와의 차이를 계산하며, (A4)단계에서 그 차에 따른 제1전원(VH)의 인에이블 시간을 계산한다. 즉, 제4도에서 알 수 있듯이 정상적인 값을 갖는 제1전원 (VH)인 경우에는 정상적인 시간(TW)동안 제1전원(VH)를 공급하면 되지만, 상기 제1전윈이 VH1전압의 레벨로 상승한 경우로 판단된 때에는 TW에서 상승분에 해당하는 시간인 △TW를 감한 전원제어신호를 발생해야 한다. 그리고 상기 제1전압이 VH2전압의 레벨로 하강한 경우로 판단된 때에는 TW에서 하강분에 해당하는 △TW를 더한 전원제어신호를 발생해야 한다. 따라서(A4)단계에서는 제1전원(VH)의 상태에서 TW에서 D TW시간을 감하거나 더하여 전원제어신호의 펄스폭을 결정한다.After that, the CPU 1 calculates a difference between the data received through the comparators CM1-CM4 and the reference data TW in step (A3), and in step (A4) the first power source VH according to the difference. Calculate the enable time. That is, as shown in FIG. 4, in the case of the first power supply VH having a normal value, the first power supply VH may be supplied during the normal time TW. However, the first power supply rises to the level of the VH1 voltage. If it is determined that the case, the power control signal should be generated by subtracting ΔTW, which is the time corresponding to the rise in TW. When it is determined that the first voltage falls to the level of the VH2 voltage, a power control signal must be generated by adding ΔTW corresponding to the falling portion in TW. Therefore, in step (A4), the pulse width of the power supply control signal is determined by subtracting or adding the D TW time from TW in the state of the first power source VH.

이후(A5)단게에서 CPU(1)는 스텝구동데이타(A, B,

Figure kpo00006
)를 처리하여, (6)단계에서 상기(A4)단계에서 구한 전원제어신호와(A5)단계에서 구한 스텝 구동 데이타를 출력한다. 따라서 상기 제1전원(VH)이 설정된 전압 레벨보다 크면 상기 전압제어신호의 TW펄스폭을 감소시커 진압레벨을 일정하게 하고, 상기 설정된 전압 래벨보다 작으면 상기 전압제어신호의 TW펄스폭을 증가시켜 역시 상기 제1전원(VH)의 레벨을 설정한 레벨로 유지될 수 있도록 한다.In the subsequent step (A5), the CPU 1 performs step driving data (A, B,
Figure kpo00006
), And outputs the power control signal obtained in step (A4) and the step driving data obtained in step (A5) in step (6). Therefore, when the first power supply voltage VH is greater than the set voltage level, the TW pulse width of the voltage control signal is decreased, and the suppressor suppression level is constant, and when it is smaller than the set voltage level, the TW pulse width of the voltage control signal is increased. Also, it is possible to maintain the level of the first power source VH at a set level.

그러나 상기와 같이 2중 전원을 사용하는 스텝핑 모티를 구동하는 경우, 상기 제1전원(VH)은 제2전원(V1)의 4-5배로서 정전압이 아닌 상태이므로, 전원 레벨의 변화가 대단히 심하다. 따라서 지역적인 차이 및 주위의 전원 환경으로 인하여 입력 전원 전압의 번동이 있을 경우 제1전원(VH)의 변화도 따라서 일어난다. 이때 입력 AC전압의 정격 허용범위가 +15%, -15%라고 가정하면, 상기 제1전원(VH)의 변동폭은 30%가 되므로 이런 전원의 변도에 의해 스테핑 모터의 성능이 저하된다. 따라서 종래의 방법에서 사용하는 병렬 A/D변환기는 A/D변환시 디지탈로 변환된 데이타의 양자화에러(Quantiying error)가 상당히 커지게 된다. 즉, 제1도에서 제1전원(VH)의 변동폭이 12V라고 가정하면, 비교기를 4개 사용하고 있으므로 제1전원 (VH)의 분해능이 4V가 되어 제1전원(V1I)의 변화에 무관하게 스테핑 모터로 규정된 전력을 공급 할 수 없었다. 그리고 상기 비교기(CM1-CM4)의 기준전압을 반생하는 저항(R1-R5)의 값에 따라 제1전원(VH)의 감지전압이 다르므로 일정한 범위내의 전압만 감지할 수 있게 된다. 또한 양자화 에러를 줄이기 위해 비교기의 수를 증가시켜야 하므로 분해능의 향상이 어려웠다. 예를들면 2배의 분해능을 향상시키고자 하는 경우 비교기의 수를 현재의 두배로 증가시켜야 한다. 상기의 사항에서 알 수 있듯이 종래의 스테핑 모터 구동회로에서는 A/D변환시 양자화 에러가 상당히 컸기 때문에 A/D 전원의 상태에 무관하게 안정된 균일 전력을 스테핑 모터로 공급할 수 없었으며, 이를 보완하기 위해 분해능을 높이고자 할시 다수개의 비교기를 추가하여야 했으므로 회로가 커지는 동시에 제이가 복잡해지는 문제점이 있었다.However, when driving the stepping Morty using a double power source as described above, since the first power source (VH) is 4-5 times the second power source (V1) is not a constant voltage state, the change in power supply level is very severe. . Therefore, when there is a fluctuation of the input power voltage due to regional differences and the surrounding power environment, the change of the first power supply VH also occurs. At this time, if the rated allowable range of the input AC voltage is + 15%, -15%, since the fluctuation range of the first power source (VH) is 30%, the performance of the stepping motor is degraded by the variation of the power source. Therefore, in the parallel A / D converter used in the conventional method, the quantization error of the digitally converted data during the A / D conversion becomes quite large. In other words, assuming that the fluctuation range of the first power supply VH is 12V in FIG. 1, since four comparators are used, the resolution of the first power supply VH becomes 4V, regardless of the change of the first power supply V1I. The power specified by the stepping motor could not be supplied. In addition, since the detection voltage of the first power source VH varies according to the values of the resistors R1-R5 that repeat the reference voltages of the comparators CM1-CM4, only a voltage within a predetermined range can be detected. Also, it is difficult to improve the resolution because the number of comparators must be increased to reduce the quantization error. For example, if you want to improve the resolution twice, you need to double the number of comparators. As can be seen from the above, in the conventional stepping motor driving circuit, since the quantization error during the A / D conversion was large, it was not possible to supply stable uniform power to the stepping motor regardless of the state of the A / D power supply. In order to increase the number of comparators, a number of comparators had to be added.

따라서 본 발명의 목적은 고전압인 제1 전윈 및 또 다른 레벨의 제2전원으로 이루어지는 2중 전원을 사용하는 스탭핑 모터의 구동회로에서 상기 제1전원의 변화상태에 따라 주파수를 발진시키고, 이 신호주기의 주기를 카운트하여 전원 선택을 위한 제이신호의 펄스을 결정함으로서, 상기 제1전원의 변화에 적응적으로 대처하여 상기 스템핑 모터로 균일한 레벨의 전력을 공급할 수 있는 방법을 제공함에 있다.Accordingly, an object of the present invention is to oscillate a frequency in accordance with a change state of the first power source in a driving circuit of a stepping motor using a dual power source consisting of a first power source having a high voltage and a second power source of another level, and this signal The method of the present invention provides a method of supplying a uniform level of power to the stamping motor by adaptively coping with a change in the first power by counting a period of a cycle to determine a pulse of a second signal for power selection.

이하 본 발명을 도면을 참조하여 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the drawings.

제5도는 본 발명을 수행하기 위한 구성도로서, 주기적으로 인터럽트 요구신호를 발생하며, 인터럽트신호 발생시 그 주기를 카운트하여 전원제어신호를 발생하는 CPU (10)와, 저항(R12, R13)으로 구성되며 상기 제1전원(VH)을 수신하고, 수신되는 상기 제1전원(VH)를 저항(R12,R13)으로 분압하여 상기 제1전원(VH)의 전압 레벨신호를 발생하는 전압검출기(20)와, 저항(R13), 캐패시터(C11) 및 비교기(CM1)로 구성되며, 상기 전압검출기(20)의 출력단과 연결되어 수신되는 제1전압(VH1)의 레벨과 소정의 기준 전압 Vref를 비교함으로서 상기 제1전압(VH) 검출값에 비례하는 주파수를 발생하는 전압제어발진기(30)와, 상기 전압제이발진기(30)의 출력 및 인터럽트 요구신호를 수신하며, 수신되는 두 신호를 논리 곱하여 상기 인터럽트요구신호 발생시 상기 전압 제어발진기(30)를 출력하는 발진주파수에 동기시켜 상기 CPU(10)로 인터터럽트 신호를 인가하는 앤드게이트(40)와, 저항(R6. R7), 트랜지스터(Q5, Q6) 및 다이오드 (D5)로 구성되며, 상기 제1전원(VH) 및 제2전원(VL)과 연결되며, 상기 CPU (10)로부터 수신되는 상기 전원제어신호의 논리 상태에 따라 상기 스위칭 소자인 트랜지스터 (Q5,06)가 스위칭되어 제1전원(VH) 또는 제2전원(VL)을 선택 출력하는 전원선택부 (50)와 코일(L1-L4), 다이오드(D1-D4,ZDI), 트랜지스터(Q1-Q4) 및 저항(R8-R11)로 구성되며, 상기 전원선택부(50)의 출력을 전원으로 수신하고 상기 CPU(10)의 데이타 출력단을 제어신호로 수신하여, 상기 CPU(10)로 부터 출력되는 스텝 구동데이타(A, B,

Figure kpo00007
)의 논리에 따라 트랜지스터(Q1-Q4) 스위칭되어 상기 전원선택부(50 )지 출력으로 스테핑 모터를 구동하는 모터 구동부(60)로 구성된다.5 is a block diagram for carrying out the present invention, which comprises a CPU 10 that generates an interrupt request signal periodically and generates a power control signal by counting the period when an interrupt signal is generated, and resistors R12 and R13. And a voltage detector 20 which receives the first power VH and divides the received first power VH into resistors R12 and R13 to generate a voltage level signal of the first power VH. And a resistor R13, a capacitor C11, and a comparator CM1, which are connected to an output terminal of the voltage detector 20 to compare the level of the received first voltage VH1 with a predetermined reference voltage Vref. A voltage controlled oscillator 30 generating a frequency proportional to the detected value of the first voltage VH, an output and an interrupt request signal of the voltage J oscillator 30 are received, and the received two signals are logically multiplied to receive the interrupt. Outputs the voltage controlled oscillator 30 when a request signal is generated And an AND gate 40 for applying an interrupt signal to the CPU 10 in synchronization with the oscillation frequency, a resistor R6, R7, transistors Q5, Q6, and a diode D5. It is connected to the first power source (VH) and the second power source (VL), according to the logic state of the power control signal received from the CPU 10 transistors (Q5, 06) of the switching element is switched to the first power source ( VH) or the power supply selector 50 for selectively outputting the second power supply VL, the coils L1-L4, diodes D1-D4, ZDI, transistors Q1-Q4, and resistors R8-R11. And receiving the output of the power selector 50 as a power source and receiving the data output terminal of the CPU 10 as a control signal, and outputting the step driving data A, B, which are output from the CPU 10.
Figure kpo00007
The transistor Q1-Q4 is switched in accordance with the logic of FIG. 2 to constitute a motor driver 60 for driving a stepping motor to the output of the power selector 50.

상기 구성에서 전원선택부(50) 및 모터구동부(60)는 상기 제1도의 전원선택부 (2) 및 모터구동부(3)와 동일한 기능을 수행하며, 참조부호도 동일하다.In the above configuration, the power selector 50 and the motor driver 60 perform the same functions as the power selector 2 and the motor driver 3 of FIG. 1, and the same reference numerals are used.

제6도는 제5도 각부의 동작 파형도로서, (6A)는 상기 CPU(10)로부터 출력되는 인터럽트요구신호이고, (6B)는 전압제어발진기(30)로부터 출력되는 빌진주파수의 파형도이며, (6C)는 상기 인터럽트요구신호와 발진주파수를 수신하여 논리곱하는 앤드게이트(40)의 출력이고, (6D)는 상기 CPU(10)에 내장되며 카운터 클럭으로 사용하는 티이머(11)의 출력이다.6 is an operational waveform diagram of each part of FIG. 5, where 6A is an interrupt request signal output from the CPU 10, 6B is a waveform diagram of the borrowed frequency output from the voltage controlled oscillator 30, and FIG. 6C is an output of the AND gate 40 which receives and interrupts the interrupt request signal and the oscillation frequency, and 6D is an output of the timer 11 that is embedded in the CPU 10 and used as a counter clock. .

제7도는 본 발명의 흐름도로서, 인터럽트를 인에이블시키는 과정과, 인터럽트를 수행하여 저장된 타이머 버퍼의 내용을 리드하는 과정과, 타이머 버퍼의 내용(#TW)과 기준데이타(#TW)와의 자리를 계산하여 전압제어신호의 펄스폭(TW)을 구하는 과정과, 상기 전압제어신호를 출력하여 제1전원(VH)를 선택하는 동시에 스텝구동데이타를 출력하는 과정으로 이루어진다.7 is a flow chart of the present invention, the process of enabling the interrupt, the process of reading the contents of the stored timer buffer by performing the interrupt, and the position of the contents of the timer buffer (#TW) and the reference data (#TW) Calculating the pulse width TW of the voltage control signal, and outputting the voltage control signal to select the first power source VH and outputting step driving data.

제8도는 인터럽트 인에이블 구간중에 발생하는 인터럽트 주기를 카운트하는 흐름도로서, 상기 인터럽트의 주기는 전압제어발진기(30)의 1주기 구간이 된다.8 is a flowchart for counting interrupt cycles occurring during the interrupt enable interval, wherein the interrupt cycle is one cycle interval of the voltage controlled oscillator 30.

상술한 구성에 의거 본 발명을 제3,4,5,6,7,8도를 참조하여 상세히 설명한다.Based on the above configuration, the present invention will be described in detail with reference to the third, fourth, fifth, sixth, seventh and eighth degrees.

먼저 CPU(10)는 (b1)단계에서 포트 P1로(6A)와 같은 “하이”논리를 갖는 인터럽트 요구신호를 출력함으로서 외부에서 발생되는 인터럽트 신호를 처리한 수 있도록 인터럽트를 인에이블 시키는 동시에 플래그 FO를 리세트시켜 인터럽트신호 발생에 대비한다. 상기 CPU(10)가 포트 P1으로 “하이”신호를 출력하게 되면, 상기 전압제어발진기(30)의 출력인 발진주파수가 “하이”논리에서 “로우”논리 상태로 천이될때마다 인터럽트 신호가 발생되며, 이때 상기 CPU(10)는 인터럽트 신호발생시 현재 수행하던 명령을 중단하고 인터럽트 서비스루틴을 실행한 후 다시 메인루틴으로 되돌아가 중단한 명령을 계속하게 된다 .First, in step (b1), the CPU 10 outputs an interrupt request signal having the same "high" logic as the port P1 (6A) to enable the interrupt so that an externally generated interrupt signal can be processed and at the same time the flag FO Reset to prepare for interrupt signal generation. When the CPU 10 outputs a "high" signal to the port P1, an interrupt signal is generated whenever the oscillation frequency of the voltage controlled oscillator 30 transitions from "high" logic to "low" logic. In this case, when the interrupt signal is generated, the CPU 10 interrupts the current command, executes the interrupt service routine, and then returns to the main routine to continue the interrupted command.

이때 전압제어발진기(30)의 출력주파수는 제1전원(VH)의 크기에 비례한다. 즉, 상기 전압검출기(20)으로 수신되는 상기 제1전원(VH)는 저항(R12, R13)에 의해 분압되어 전압제어발진기(30)으로 인가하는데, 이는 상기 진압제어발진기(30)의 입력전압 레벨을 맞추기 위한 전압 레벨 쉬프터(vo1tage 1eve1 shifter)작용을 하는 것이다. 이 경우 상기 전압제어발진기(30)으로 인가되는 전압을 Vvco라 할때 다음과 같이 전압검출기(20)에서 전압값을 결정한다.At this time, the output frequency of the voltage controlled oscillator 30 is proportional to the magnitude of the first power source VH. That is, the first power source VH received by the voltage detector 20 is divided by the resistors R12 and R13 and applied to the voltage controlled oscillator 30, which is an input voltage of the suppressor controlled oscillator 30. It acts as a voltage level shifter (vo1tage 1eve1 shifter) to match the level. In this case, when the voltage applied to the voltage controlled oscillator 30 is Vvco, the voltage value is determined by the voltage detector 20 as follows.

Vvco=VH * R13/(R12+K13)Vvco = VH * R13 / (R12 + K13)

즉, 상기 전압검출기(20)는 수신되는 제1전윈(VH)를 분압하는 기능을 수행하는데, 이는 스텝핑 모터 구동시 상기 제1전원(VH)는 30Vdc의 비안정화 전원이며, 전입제어발진기(30)의 입력 전압은 10Vdc미만인 경우에 대비하여 전압 레벨을 쉬프트하는 기능을 수행한다.That is, the voltage detector 20 performs a function of dividing the received first power VH. The first power VH is a 30 Vdc unstabilized power supply when the stepping motor is driven. ) Input voltage shifts the voltage level in case it is less than 10Vdc.

그러면 상기 전압검출기(20)의 출력을 수신하는 전압제어발진기(30)은 상기 수신되는 전압의 번화에 따라 출력신호의 주파수를 변화시키는 기능을 수행한다. 상기 전압제어발진기(30)은 적분기능을 수행하는 저항 (R14) 및 캐패시터(C11)와, 비교기 (CM11)로 구성된다. 이때 상기 전압제어발진기(30)의 출력 전압을 Vo 라 하먼, 충전시 상기 Vo는 하기와 같이 표현할 수 있다.Then, the voltage controlled oscillator 30 receiving the output of the voltage detector 20 performs a function of changing the frequency of the output signal according to the plurality of the received voltage. The voltage controlled oscillator 30 includes a resistor R14 and a capacitor C11 that perform an integration function, and a comparator CM11. In this case, the output voltage of the voltage controlled oscillator 30 is Vo Harman, and when charging, Vo may be expressed as follows.

Vo : Vth(1-e-t/s.)Vo: Vth (1-e -t / s .)

Vth= [(R13)f(R12+H13)] * VHVth = [(R13) f (R12 + H13)] * VH

S=C11 * [R14+(R12 * R13)/(R12+R13)]S = C11 * [R14 + (R12 * R13) / (R12 + R13)]

그러므로 상기와 같이 상기 진압제어발진기(30)에서 상기 적분기의 충전시 상기 비교기(CM11)의 반전단자로 인가되는 전압이 상승되는 시간은 상기 수신되는 제1전원(VH)에 비례하므로, 출력주파수 신호인 Vo도 상기 제1전윈(VH)에 비례함을 알 수 있다. 예를들어 상기 전압검출기(20)을 출력하는 전압이 5Vdc인 겅우 상기 전압제어발진기(30)이 50KHz로 발진한다면 상기 전압이 4Vdc인 경우에는 60KHz로 발진하고 상기 전압이 6Vdc이면 30KHz로 발진한다. 곁국 상기 전압제어발진기(30)의 출력 주파수(주기)가 입력 전압에 비례(반비례)하기 때문에 상기 CPU(10)로 이 신호의 주파수를 읽으면 제1전원(VH)의 전압 레벨에 대응한 디지탈 데이타 정보를 파악 가능하므로 이 데이타를 처리하여 스테핑 모터 구동시 일정한 전력을 공급할 수 있게 된다.Therefore, as described above, the time when the voltage applied to the inverting terminal of the comparator CM11 increases during charging of the integrator in the suppression-controlled oscillator 30 is proportional to the received first power source VH, and thus an output frequency signal It can be seen that the Vo is proportional to the first power VH. For example, if the voltage outputting the voltage detector 20 is 5Vdc, when the voltage controlled oscillator 30 oscillates at 50KHz, the voltage oscillates at 60KHz when the voltage is 4Vdc, and at 30KHz when the voltage is 6Vdc. Since the output frequency (period) of the voltage controlled oscillator 30 is proportional (inversely proportional to) the input voltage, when the frequency of this signal is read by the CPU 10, the digital data corresponding to the voltage level of the first power source VH is read. Since the information can be grasped, this data can be processed to provide a constant power when driving the stepping motor.

그러므로 상기 제1전원(VH)의 출력 전압이 커지면 상기 전압제어발진기(30)의 출력은 증가되고, 제1전원(VH)의 출력이 작아지면 상기 전압제어발진기(30)의 출력은 감소된다. 따라서 상기 제1전원(VH)의 변화는 전압제어밭진기(30)의 출력 주파수 듀티(주기)를 변화시키고, 이는 인터립트 신호의 주기가 상기 제1전원(VH)의 변화에 따라 결정됨을 알 수 있다 즉, 제6도에서 상기 전압제어발진기(30)의 출력이(6B)와 같이 발생되었다면, 앤드게이트(40)는(6A)와 같은 인터럽트 인에이블 신호에 의해(6C)와 같이 전압제어발진기(30)의 출력이“하이”에서“로우”상태로 천이될시마다 CPU (10)로 인터럽트 신호를 발생하게 된다. 따라서 인터럽트신호의 발생주기는 전압제어발진기(30)의 출력 주파수에 의해 결정되고, 상기 전압제어 발진기(30)의 출력주파수는 제1전원(VH)의 크기에 따라 결정된다.Therefore, when the output voltage of the first power source VH increases, the output of the voltage controlled oscillator 30 increases, and when the output of the first power source VH decreases, the output of the voltage controlled oscillator 30 decreases. Therefore, the change of the first power source VH changes the output frequency duty (period) of the voltage controlled field oscillator 30, which indicates that the period of the intercept signal is determined by the change of the first power source VH. That is, if the output of the voltage-controlled oscillator 30 is generated as 6B in FIG. 6, the AND gate 40 is controlled by the interrupt enable signal such as 6A by 6C. Whenever the output of the oscillator 30 transitions from "high" to "low" state, an interrupt signal is generated to the CPU 10. Therefore, the generation period of the interrupt signal is determined by the output frequency of the voltage controlled oscillator 30, and the output frequency of the voltage controlled oscillator 30 is determined according to the magnitude of the first power source VH.

상기와 같이 인터럽트신호가 발생되면, CPV(10)는 제8도와 같은 인터럽트 루틴을 수행하는데, 먼저(C1)단계에서 수행중이던 명령을 중단하기 위하여 어큐물레이터 (ACC) 및 프로그램 상태어(Program Status Word PSW)를 저장한다. 이후(C2)단계에서 플래그 FO의 상태를 검사하는데, 사기 플래그 PO가 리세트 상태이면(C3)단계에서 타이머 레지스터를 플리어시킨 후, (C4)단계에서 내부의 타이머(11)를 “온”시켜 상기 전암제어발진기(30)의 주기를 카운트하기 시작한다. 이후(C5)단계에서 상기 플래그 FO를 세트 시키고(C6)단계에서 인터럽트 루틴에 빠져나와 중단한 명령을 재수행한다. 이때 상기 타이머(11)는(6D)와 같이 계속 구동상태에 있게 되므로, 상기 전압제어발진기(30)의 출력 주파수에 대한 주기가 카운트되고 있음을 알 수 있다.When the interrupt signal is generated as described above, the CPV 10 executes the interrupt routine as shown in FIG. 8. First, the accumulator (ACC) and the program status word (Program Status) in order to stop the command being executed in step (C1). Save the Word PSW). In the next step (C2), the state of the flag FO is checked. If the fraud flag PO is in the reset state (F), the timer register is flipped in step (C3), and then in step (C4), the internal timer 11 is turned on. To start counting the cycles of the pre-cancer controlled oscillator 30. Thereafter, in step (C5), the flag FO is set, and in step (C6), the instruction exits the interrupt routine and resumes the interrupted instruction. At this time, since the timer 11 continues to be driven as shown in 6D, it can be seen that the period for the output frequency of the voltage controlled oscillator 30 is being counted.

이때 상기 전압제어발진기(30)의 출력이 다시 “하이”상태에 “로우”상태로 천이되면(6C)와 같이 앤드게이트(40)는 CPU(10)로 인터럽트 신호를 발생하게 되며, 이로인해 상기 CPU(10)는(C1)단계에서 수행중이던 프로그램을 중단하고(C2)단계에서 플래그 FO의 상태를 검사한다. 이때 상기 플래그 FO는 이전 과정의(C5)단계에서 이미 세트된 상태이므로, 상기 CPU(10)은(C7)단계에서는 타이머(11)의 구동을 중지시키고, (6A)와 같은 포트 P1을 통해 출력중이던 인터럽트 인에이블 신호를 “로우”상태로 천이시켜 이후의 인터럽트 발생을 중지시킨다. 상기(C7)단계 수행후(C8)단계에서 상기 플래그 FO를 리세트시키며, (C9)단계에서는 현재까지 카운트한 카운트 데이타를 타이머 버퍼에 저장하고 인터럽트 루틴을 종료한다.At this time, if the output of the voltage-controlled oscillator 30 transitions from the "high" state to the "low" state again (6C), the AND gate 40 generates an interrupt signal to the CPU 10, and thus The CPU 10 stops the program being executed in step (C1) and checks the state of the flag FO in step (C2). At this time, since the flag FO is already set in the previous step (C5), the CPU 10 stops driving the timer 11 in the step (C7), and outputs through the port P1 such as (6A) Transmits the interrupt enable signal that was in use to a "low" state to stop subsequent interrupts. After performing step (C7), the flag FO is reset in step (C8). In step (C9), the count data counted so far is stored in a timer buffer and the interrupt routine is terminated.

상기 제8도와 갈이 수행되는 인터럽트 루틴에서는 상기 수신되는 제1전원 (VH)의 레벨에 비례하는 값 만큼 타이머(11)의 클럭을 카운팅한다. 그러므로 상기 카운트값은 결국 제1전원(VH)에 따라 변화되므로,상기 진압검출기(20)를 통해 전압제어 발진기(30)로 공급되는 제1전압값(VH)을 조절하면, 발진주파수외 주기를 조정할 수 있게 되어 카운트값은 적당한 선에서 조정할 수 있음을 알 수 있다. 즉, 상기 전압제어발진기(30)외 1주기 동안 0에시 255까지 타이머(11)클럭을 가운트할 수 있도록 조정하면, 양자화 에러는 △VH/256로 분해능이 상당히 높게 된다. 따라서 분해능은 상기 전압제이발진기(30)의 출력 주기를 조정하면 더욱 크게 할 수 있다.In the interrupt routine of FIG. 8, the clock of the timer 11 is counted by a value proportional to the level of the received first power supply VH. Therefore, since the count value eventually changes according to the first power source VH, when the first voltage value VH supplied to the voltage controlled oscillator 30 is adjusted through the suppression detector 20, an out-of-oscillation frequency period is generated. It can be seen that the count value can be adjusted at an appropriate line. In other words, if the timer 11 clock is adjusted to 0 o'clock 255 for one cycle other than the voltage controlled oscillator 30, the quantization error becomes ΔVH / 256, and the resolution becomes considerably high. Therefore, the resolution can be made larger by adjusting the output period of the voltage generator.

상기와 같이 제1전원(VH)의 변화에 다른 전압제어발진기(30)의 출력주파수 주기를 카운트한 타이머 레지스터 내용을 이용하여 전원 제어신호를 발생하는 과정을 살펴본다.As described above, a process of generating a power control signal using the contents of a timer register which counts an output frequency period of another voltage controlled oscillator 30 in response to a change in the first power source VH will be described.

먼저 CPU(10)는 (b2)단계에서 타이머 레지스터에 저장되어 있는 카운트 데이타 #C 폐치하며, (b3)단계에서는 상기 페치한 카운트 데이타 U를 어큐물레이터 (ACC)에 저장한다. 이후 CPU(10)는(b4)단계에서 상기 어큐물레이터에 저장하고 있는 카운트 데이타 #C인 주파수를 데이타로 변환한다(Frepuecy to Data Conversion) . 이는 타이머 레지스터에 저장한 카운트 데이타 #C가 제1전원(VH)에 비례하는 전압제어발진기(30)의 한주기 신호를 카운트한 주파수 성분을 나타내므로, 상기 CPU(10)는 내부에서 처리하기 적합한 데이타 #N으로 변환하는 과정이다. 상기(b4)단계에서 데이타 #N을 구한 후, (b5)단계에서는 상기 데이타 #N과 정상적인 상태에서 제1전원 (VH)에 대응하는 전원제어신호의 주기 #TW와의 차이를 계산한다. 따라서 상기(b5)단계를 수행하면 제1전원(VH)에 따른 전압제어신호의 TW가 결정된다. 상기와 같이 제1전원(VH)의 레벨에 따라 상기 스텝핑 모터로 균일한 전력을 공급하기 위한 전원제어신호의 TW의 주기를 설정화한다.First, the CPU 10 closes the count data #C stored in the timer register in step (b2), and stores the fetched count data U in the accumulator (ACC) in step (b3). Thereafter, the CPU 10 converts the frequency, which is the count data #C stored in the accumulator, to data in step (b4) (Frepuecy to Data Conversion). This indicates a frequency component in which the count data #C stored in the timer register counts one cycle signal of the voltage controlled oscillator 30 proportional to the first power source VH, so that the CPU 10 is suitable for internal processing. This is the process of converting data to #N. After the data #N is obtained in step (b4), the difference between the data #N and the period #TW of the power control signal corresponding to the first power source VH in the normal state is calculated in the step (b5). Therefore, when the step (b5) is performed, the TW of the voltage control signal according to the first power source VH is determined. As described above, the period of the TW of the power control signal for supplying uniform power to the stepping motor is set according to the level of the first power source VH.

이후 상기 CPU(10)는 (b7)단계에서는 상기 스테핑 모터를 구동하기 위한 스텝구동데이타(A,B,

Figure kpo00008
)의 위상을 결정한 후, (b8)단계에서 P2포트를 전원제어신호 TW른 출력하고, 포트 PA,PB,
Figure kpo00009
를 통해 스텝구동데이타(A, B,
Figure kpo00010
)를 출력한다. 이때 상기 전원제이신호 TW가 “하이”상태일시에는 트랜지스티(Q5-Q6)가 턴온되어 제1전원(VH)이 코일(11-14)에 인가되므로, 스텝구동데이타(A,B,
Figure kpo00011
)의 상태에 따라 트랜지스터(Q1-Q4)가 제어되어 스테핑 모터가 구동된다. 또한 상기 전원제어신호 TW가 “로우”상태 일시에는 상기 트랜지스터(Q5,Q6)이 턴오프 상태이므로 다이오드(D5)를 통해 제2전원(V1)이 코일(11-14)로 인가된다.Afterwards, in step (b7), the CPU 10 performs step driving data A, B, and D for driving the stepping motor.
Figure kpo00008
After determining the phase of), in step (b8), the P2 port is outputted with the power control signal TW, and the ports PA, PB,
Figure kpo00009
Step drive data (A, B,
Figure kpo00010
) At this time, when the power supply J signal TW is in the "high" state, the transistors Q5-Q6 are turned on and the first power source VH is applied to the coils 11-14, so that the step driving data A, B,
Figure kpo00011
The transistors Q1-Q4 are controlled according to the state of) to drive the stepping motor. In addition, since the transistors Q5 and Q6 are turned off when the power control signal TW is in the "low" state, the second power source V1 is applied to the coils 11-14 through the diode D5.

상술한 바와 같이 2중 전원을 사용하는 스테핑 모터 구동회로에서 고전압인 제1전원의 변화에도 적응적으로 모터를 균일한 전력으로 구동할 수 있어 상기 스테핑 모터의 구동을 안정되게 할 수 있으며, 상기 제1전원의 변화에 따른 대응되는 카운트 주기를 가변적으로 운용할 수 있어 양자화 에러를 감소시킬 수 있어 분해능을 향상시킬 수 있고, 상기 스테핑 모터로 외부전원의 변화에 무관하게 균일한 전력을 공급할 수 있어 상기 스테핑 모터의 수명 및 성능을 향상시킬 수 있는 이점이 있다.As described above, the stepping motor driving circuit using the double power source can adaptively drive the motor with uniform power even when the first power source having high voltage is changed, thereby making it possible to stabilize the driving of the stepping motor. Corresponding count period according to the change of one power source can be operated variably, quantization error can be reduced, resolution can be improved, and uniform power can be supplied to the stepping motor regardless of the change of external power source. There is an advantage to improve the life and performance of the stepping motor.

Claims (1)

제1전원에 비례하는 주파수를 발진하는 전압제어발신기와, 전원제어신호의 상태에 따라 제1전원 또는 제2전원을 선택하는 전원선터부와, 수신되는 스텝구동데이타에 따라 전원선택부의 출력 전원을 상기 스테핑 모터로 출력하여 모터를 구동하는 모터구동부를 구비한 스테핑 모터 구동방법에 있어서, 싱기 발진주파수를 발생을 감지할 시 상기 발진주파수의 주기를 카운트 개시하는 과정과, 상기 발진주파수의 종료를 감지할 시 카운트 동작을 중지하며, 상기 카운트 데이타를 분석하는 과정과, 상기 분석과정에서 상기 카운트 데이타와 기준데이타의 차이를 계산하여 상기 제1전원의 변화 폭을 인지하고, 상기 제1전원의 번화에 따라 상기 스테핑 모터로 균일한 전력을 공급하기 위하여 상기 전원제어신호의 출력주기를 설정하는 과정과, 상기 전원제어신호를 상기 전원선택부로 출력하는 동시에 스텝구동데이타의 위상을 걸정하여 모터구동부로 출력하여 제1전원의 변화에 관계없이 균일한 전력으로 상기 스테핑 모터를 구동하는 과정으로 이루어짐을 특징으로 하는 스테핑 모터의 균일 전력 공급방법.A voltage control transmitter for oscillating a frequency proportional to the first power source, a power supply unit for selecting the first power source or the second power source according to the state of the power control signal, and the output power of the power source selection unit according to the received step driving data. In a stepping motor driving method comprising a motor driving unit for outputting the stepping motor to drive a motor, the step of counting the period of the oscillation frequency when detecting the generation of a sigma oscillation frequency, and detecting the end of the oscillation frequency Stops the count operation, analyzes the count data, calculates a difference between the count data and the reference data in the analysis process, recognizes a change in the first power supply, and detects the change in the first power supply. Setting an output period of the power control signal to supply uniform power to the stepping motor according to the And outputting a signal to the power selection unit and determining the phase of the step driving data and outputting the signal to the motor driving unit to drive the stepping motor with a uniform power regardless of the change of the first power source. Uniform power supply method.
KR1019890017198A 1989-11-25 1989-11-25 Source supplying method for stepping motor KR930000259B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019890017198A KR930000259B1 (en) 1989-11-25 1989-11-25 Source supplying method for stepping motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019890017198A KR930000259B1 (en) 1989-11-25 1989-11-25 Source supplying method for stepping motor

Publications (2)

Publication Number Publication Date
KR910010813A KR910010813A (en) 1991-06-29
KR930000259B1 true KR930000259B1 (en) 1993-01-14

Family

ID=19292078

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019890017198A KR930000259B1 (en) 1989-11-25 1989-11-25 Source supplying method for stepping motor

Country Status (1)

Country Link
KR (1) KR930000259B1 (en)

Also Published As

Publication number Publication date
KR910010813A (en) 1991-06-29

Similar Documents

Publication Publication Date Title
US7183691B2 (en) Control apparatus for vibration type actuator and control method thereof
US6624619B2 (en) Stabilized power unit
JPH03212799A (en) Two-wire type gauge
US8174302B2 (en) Pulse signal generator, and method of generating pulse signal
CN100492831C (en) Pulse width modulating switch adjustor and electronic device
JPH06113596A (en) Step motor
US6100654A (en) Driving device for a vibration type motor
JPS6327909A (en) Driving circuit
US9255950B2 (en) Method and arrangement for frequency determination
KR960010031A (en) Actuator Movement Detection Circuit and Method
JP4701898B2 (en) External signal detection circuit and real-time clock
KR930000259B1 (en) Source supplying method for stepping motor
JP3446103B2 (en) Regulator circuit for adjusting output voltage of alternator in automobile
US4626621A (en) Circuit for generating a position in digital form
JP2002058239A (en) Drive signal supply circuit
US4716535A (en) Speed detection apparatus
JP2987824B2 (en) Ultrasonic motor drive circuit
US5933036A (en) Power-on reset signal generating circuit
JP3458602B2 (en) Electric load energization control device
US6963194B2 (en) Analog signal measuring device and method
US6285148B1 (en) Energization control device for electric motor
KR100228766B1 (en) Internal voltage generator
JP2637543B2 (en) Engine idle speed control device
JPH0535303A (en) Linear solenoid driver
US10520311B2 (en) Gyro sensor apparatus

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20021230

Year of fee payment: 11

LAPS Lapse due to unpaid annual fee