CN1745335A - Stepping motor control circuit, electronic camera, and stepping motor control method - Google Patents

Stepping motor control circuit, electronic camera, and stepping motor control method Download PDF

Info

Publication number
CN1745335A
CN1745335A CNA2004800031451A CN200480003145A CN1745335A CN 1745335 A CN1745335 A CN 1745335A CN A2004800031451 A CNA2004800031451 A CN A2004800031451A CN 200480003145 A CN200480003145 A CN 200480003145A CN 1745335 A CN1745335 A CN 1745335A
Authority
CN
China
Prior art keywords
driving
stepping motor
pattern data
model data
excitation pattern
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.)
Granted
Application number
CNA2004800031451A
Other languages
Chinese (zh)
Other versions
CN100498495C (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
Publication of CN1745335A publication Critical patent/CN1745335A/en
Application granted granted Critical
Publication of CN100498495C publication Critical patent/CN100498495C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Stepping Motors (AREA)
  • Lens Barrels (AREA)

Abstract

At the start of driving a stepping motor, a CPU sets the switching widths of the first through eighth states in a pulse width setting register (15), sets the switching counts of the first through eighth states in a pulse switching count register (24), and sets the start of driving the stepping motor in a driving start register (34). A latch (23) then outputs an excitation pulse (P), and the stepping motor is accelerated, driven at a constant speed, decelerated, and stopped. By setting the switching widths and switching counts of the first through eighth states at the start of driving and setting the start of driving, the CPU (2) need not control the stepping motor, reducing the process burden on the CPU.

Description

Step-motor Control circuit, Electrofax and Step-motor Control method
Technical field
The present invention relates to drive Step-motor Control circuit, Electrofax and the Step-motor Control method of various objects.
Background technology
The stepping motor of the zoom lens of traditional Step-motor Control circuit controlling and driving Electrofax.The Step-motor Control circuit comprises system controller and zoom lens driving circuit.When the unblank zoom switched, system controller was operated based on program, enters zoom mode, and control zoom lens driving circuit is so that start the pulsed drive of stepping motor.Subsequently, system controller increases or deducts output driving pulse value P, stores final pulse value P, and calculates the zoom position data corresponding to the pulse value P that is stored.System controller based on the zoom position data of being calculated and in system controller in advance the storage zoom position data, the pulsed drive of control step motor.System controller with driving pulse value P with corresponding in system controller in advance the pulse value of initial zoom position data of storage compare.When these pulse values were not inconsistent each other, system controller was proofreaied and correct the zoom position data that is stored in advance in the system controller.
Step-motor driving method comprise sequentially four phase places of phase excitation one by one or similarly stator 1-1 phase driven method (motivational techniques), alternately repeat the 1-2 phase driven method of a phase driven (excitation) and two phase driven and the 2-2 phase driven method that is used for the driving stator of two phase places.In fact, because a phase driven method is seldom adopted in little torque.The advantage of 1-2 phase driven method is to realize level and smooth rotation, and the advantage of 2-2 phase driven method is to realize stable rotation.For utilize these advantages according to drive form, proposed to operate the step-motor driving method of stepping motor selectively by 1-2 phase driven method and 2-2 phase driven method.
In traditional Step-motor Control circuit, system controller is not only related to beginning to drive in the stepping motor, and be included in from driving and begin to the control of the stepping motor that finishes, such as increasing or reduce output driving pulse value P and calculating zoom position data corresponding to driving pulse value P.Because the burden of the processing on the CPU of system controller becomes heavy, another required control lag or limited the control that should realize.
In traditional Step-motor Control circuit, with driving pulse value P with compare corresponding to the pulse value that is stored in the initial zoom position data in the system controller in advance.If these pulse values are not inconsistent each other, system controller is carried out the process of proofreading and correct zoom position data.Yet, exist time lag till proofreading and correct zoom position data by this process.During time lag, stepping motor keeps operation.For this reason, stepping motor may not stop in the precalculated position, and may exceed this precalculated position, stops then.Drive in the zoom lens the excessive so-called camera lens stuck phenomenon that makes that level and smooth driving again becomes difficult that moves of generation camera lens in the opposite direction.Therefore, become and be difficult to drive once more camera lens.
For switching and the control step electric motor drive method, corresponding with the address usually, first and second tables are stored in the storer.The first table storage is used for driving stepping motor by 1-2 phase driven method corresponding to a plurality of excitation (pattern) data of the address in this table.The second table storage is used for by 2-2 phase driven method corresponding to a plurality of excitation pattern data of the address in the table, drives stepping motor.When pressing 1-2 phase driven method when driving stepping motor, specify first table by the address, and sequentially specify address in this first table so that sequentially read excitation pattern data and the output drive pulse.When pressing 2-2 phase driven method when driving stepping motor, specify second table by this address, and sequentially specify address in this second table so that sequentially read excitation pattern data and the output drive pulse.For this reason, storer must be stored the table corresponding to separately driving method, and the excitation pattern data that each table must each driving method of storage, requires big memory capacity.Driving method and drive stepping motor for a change by each driving method, the control that must the execution list assigned address and the specified control of internal table address, the address control complexity that becomes like this.
Made the present invention and overcome above-mentioned defective, with and purpose be to provide the Step-motor Control circuit of the burden that can reduce on the CPU.
Another object of the present invention provides the Step-motor Control circuit of the overexercise that can prevent the object that will be driven by stepping motor.
Another object of the present invention provides and can control down with the simple address of little memory capacity, by the different driving method, and the Step-motor Control circuit of operation stepping motor.
Summary of the invention
According to an aspect, a kind of Step-motor Control circuit has the width of switching memory storage, is used for the driving process of stepping motor is divided into a plurality of driving conditions, and is stored as the driving condition of being divided and the switching width of the driving pulse that is provided with; The toggle count memory storage is used to be stored as the driving condition of being divided and the toggle count of the driving pulse that is provided with; The model data store device, a plurality of model datas that are used to store driving pulse; Selecting arrangement is used for responding according in the driving sign on of switching switching width that the width memory storage stores and the toggle count of storing in the toggle count memory storage, sequentially is chosen in the model data of storing in the model data store device; And output unit, be used for driving pulse being outputed to stepping motor according to model data by the selecting arrangement selection.
According on the other hand, a kind of Step-motor Control circuit has the virtual value memory storage, is used to store maximal value and minimum value when providing the driving scope of the object that will be driven by stepping motor with virtual numerical value; Measurement mechanism is used for based on the control content that is used for driving pulse is outputed to stepping motor, measures the virtual location of the object that will drive; Comparison means, be used for measure by measurement mechanism, the virtual location of the object that drives is compared with the maximal value and the minimum value of storing at the virtual value memory storage; And the output stop device, be used for comparative result according to comparison means, stop the output drive pulse.
According on the other hand, a kind of Step-motor Control circuit has the model data store device, is used for stored energy by with different interval, selects excitation pattern data off and on, with a plurality of excitation pattern data of different driving method driving stepping motors; Selecting arrangement with corresponding to the interval of specifying driving method, is chosen in the excitation pattern data of storing in the model data store device off and on; Output unit is used for according to the excitation pattern data by the selecting arrangement selection driving pulse being outputed to stepping motor.
According on the other hand, a kind of Electrofax has lens system; Drive unit has the stepping motor that drives lens system; Image detection device is used to detect the image that is formed by lens system; Switch the width memory storage, be used for the driving process of stepping motor is divided into a plurality of driving conditions, and be stored as the driving condition of being divided and the switching width of the driving pulse that is provided with; The toggle count memory storage is used to be stored as the driving condition of being divided and the toggle count of the driving pulse that is provided with; The model data store device, a plurality of model datas that are used to store driving pulse; Selecting arrangement is used for responding according in the driving sign on of switching switching width that the width memory storage stores and the toggle count of storing in the toggle count memory storage, sequentially is chosen in the model data of storing in the model data store device; And output unit, be used for driving pulse being outputed to stepping motor according to model data by the selecting arrangement selection.
According on the other hand, a kind of Electrofax has lens system; Drive unit has the stepping motor that drives lens system; Image detection device is used to detect the image that is formed by lens system; Model data store device stored energy is selected excitation pattern data off and on by with different interval, drives a plurality of excitation pattern data of stepping motor with different driving methods; Selecting arrangement with corresponding to the interval of specifying driving method, is chosen in the excitation pattern data of storing in the model data store device off and on; Output unit is used for according to the excitation pattern data by the selecting arrangement selection driving pulse being outputed to stepping motor.
According on the other hand, a kind of Step-motor Control method is provided, comprise step: the driving process of stepping motor is divided into a plurality of driving conditions so that the switching width of the driving pulse that will be provided with for the driving condition of being divided is stored in the storer; The toggle count of the driving pulse that will be provided with for the driving condition of being divided is stored in the storer; Response has the model data of storing in the model data store device of a plurality of model datas that sequentially are chosen in the storage driving pulse according to the switching width of storing and the driving sign on of toggle count in storer; And, driving pulse is outputed to stepping motor according to selected model data.
According on the other hand, a kind of Step-motor Control method is provided, comprise step: pass through with different interval from stored energy, select excitation pattern data off and on, drive the model data store device of a plurality of excitation pattern data of stepping motor with the different driving method, with corresponding to the interval of specifying driving method, select excitation pattern data off and on; And, driving pulse is outputed to stepping motor according to selected excitation pattern data.
Description of drawings
Fig. 1 is the block diagram of the circuit structure of the expression digital camera of using embodiments of the invention;
Fig. 2 is the block diagram of the details of expression motor controller;
Fig. 3 is the view of the relation between the waveform of expression driving pulse figure and 1-2 phase driven;
Fig. 4 is the view of the relation between the waveform of expression driving pulse figure and 2-2 pulsed drive;
Fig. 5 is the figure of the relation between the driving condition of expression driving process of stepping motor and division;
Fig. 6 A and 6B are according to present embodiment, are illustrated respectively in pulse width is provided with value that is provided with in the register and the value that is provided with in pulse toggle count register view;
Fig. 7 represents according to present embodiment the sequential chart of the operation in quickening driving;
Fig. 8 A is that the indicating impulse width is provided with the view that register, pulse toggle count register and model are provided with the store status of register;
Fig. 8 B is the sequential chart that is illustrated in according to the operation in the constant-speed drive of present embodiment;
Fig. 9 is the sequential chart that is illustrated in according to the operation in the deceleration of present embodiment.
Embodiment
Below, will be with reference to the accompanying drawings, embodiments of the invention are described.Fig. 1 is the block diagram of the circuit structure of the expression digital camera of using embodiments of the invention.Digital camera 1 comprises CPU2, and CPU2 is connected to input equipment 3, display controller 4, image detection controller 5, lens driving controller 6, RAM12, flash memory 8, ROM9 and external memory storage 10.
CPU2 controls each unit based on the program that is stored among the ROM9.Input equipment 3 comprises various operating keys, such as the required shutter key of digital camera, and will send to CPU2 corresponding to the operation signal of key operation.Display controller 4 is controlled the operation of the display device 11 that is formed by LCD or the like under the control of CPU2.Image detection controller 5 is carried out the process that will become digital signal and generate view data from the image detection conversion of signals of image detecting apparatus 55 outputs.
Lens driving controller 6 comprises motor controller 13 (described after a while), and motor controller 13 output drive pulses.Lens driver 7 comprises the optical axis along camera lens, drives the stepping motor 14 of camera lens.To be input to stepping motor 14 from the driving pulse of motor controller 13, then, stepping motor 14 is used for driving camera lens along optical axis.In an embodiment, stepping motor 4 has the stator (0 to 3) (describing after a while) of four phase places.
RAM12 is stored in program stored and various data among the ROM9 temporarily, and with the workspace that acts on CPU2.Flash memory 8 storages are not when for example installing external memory storage 10, by the view data of image detection acquisition.The ROM9 storage is used to control required program and various data.External memory storage 10 can freely be dismantled, and storage is in company with the view data that operation obtained of shutter key.
Fig. 2 is the block diagram of the details of expression motor controller 13.In Fig. 2, CPU2 is provided with in the register 15 in pulse width, and the excitation pulse (the switching width of first to the 8th state) that drives the driving condition that stepping motor 14 divided is set.Selector switch 16 sequentially is chosen in the excitation pulse (switching width) that pulse width is provided with first to the 8th state that is provided with in the register 15.Latch 17 is temporary transient storage memory elements by the excitation pulse of selector switch 16 selections and output.Pulse width counter 18 is measured excitation pulse by using the clock of preset frequency.Overlap that (coincidence) circuit 19 makes the value of storage in latch 17 and the value of the excitation pulse measured by pulse width counter 18 overlaps each other.
Excitation pattern data (after a while describe) is set or is stored in model in advance by CPU2 and be provided with in the register 20.Pattern data address counter 21 generates each time of coincidence that is used at coincidence circuit 19, selects the address of excitation pattern data.CPU2 is provided with the address stepped form (hop count) of the pattern data address counter 21 of selecting excitation pattern data in dancing mode register 36.Selector switch 22, is provided with register 20 from model and selects excitation pattern data with the hop count that is provided with in dancing mode register 36 based on the address that is generated by pattern data address counter 21.Latch 23 is temporary transient storage memory elements by the excitation pattern data of selector switch 22 selections.
CPU2 is set in the driving pulse toggle count of driving condition (first to the 8th state) in the pulse switching number register 24.Selector switch 25 sequentially is chosen in the switching number that first to the 8th state that is provided with in the number register 24 is switched in pulse.Latch 26 is number is switched in temporary transient storage by the driving pulse of selector switch 25 selections and output memory elements.During each switch data, driving pulse toggle count device 27 is measured excitation pattern data.Coincidence circuit 28 makes the driving pulse toggle count of storage in latch 26 overlap each other with the toggle count of being measured by driving pulse toggle count device 27.
The driving condition of each time of coincidence of driving condition counter 29 counting coincidence circuits 28, and driving condition is counted N output to CPU2 as count value.From counting N by the driving condition of driving condition counter 29 outputs, CPU2 can identify state and switch to the N state.The switching of responsive state, CPU2 will be arranged in the dancing mode register 36 corresponding to the hop count of step-motor driving method (jump 1-2 phase driven=1, and jump 2-2 phase driven=3, described after a while).
The virtual location of the camera lens of each time of coincidence of virtual lens location counter 30 counting coincidence circuits 19.Maximal value when CPU2 will work as the lens driving scope that is provided by virtual numerical value (virtual lens MAX position) is arranged in the maximum value register 31.The minimum value (virtual lens MIN position) that CPU2 will work as when providing the lens driving scope by virtual numerical value is arranged in the minimum value register 32.The virtual lens MAX position that comparer 3 will be provided with in maximum value register 31, the virtual lens MIN position that in minimum value register 32, is provided with, and the value of being counted by virtual lens location counter 30 compares.Initial being arranged on that CPU2 will drive stepping motor 14 drives in the beginning register 34.Drive end signal generative circuit 35 under the direct motor drive termination condition, generate the driving end signal that is used for stepping motor 14.Driving end signal generative circuit 35 will drive extraneous look-at-me SO and drive end interrupt signal SE and output to CPU2.
Fig. 3 and 4 is illustrated in the structure that model is provided with the excitation pattern data of storage in the value register 20.Model is provided with register 20 storage and is used for excitation pattern data group 201 corresponding to a plurality of excitation pattern data " 6 ' h05 " to " 6 ' h05 " of the continuous pump model definition of address number.Forming excitation pattern data group 201 jumps when 1 data sense data with one with box lunch, output is used to have the driving pulse of 1-2 phase driven of stepping motor 14 of the stator 0 to 3 of four phase places, as shown in Figure 3, and when in per four data, skipping three and when reading data, output is used for the driving pulse of 2-2 phase driven.
In having the embodiment of said structure, for example, when energising, when move in the precalculated position and stop,, make camera lens be moved back into the precalculated position and when stopping on camera lens maybe when when outage, acceleration and driving stepping motor 14 → with constant-speed drive → deceleration and driving, stop then, as shown in Figure 5.At this moment, CPU2 will speed up to drive and is divided into first to the third state, constant-speed drive is arranged to four condition, and deceleration is divided into the 5th to the 7th state, as shown in Figure 5.In addition, CPU2 is arranged on switching width " 6 ", " 4 ", " 3 ", " 2 ", " 3 ", " 4 ", " 6 " and " 1 " of first to the 8th state pulse width and is provided with in the register 15, as shown in Figure 6A, CPU2 is arranged on switching number " 2 ", " 3 ", " 4 ", " 9 ", " 4 ", " 3 ", " 2 " and " 0 " of first to the 8th state in the pulse toggle count register 24, shown in Fig. 6 B.
After this, CPU2 will drive beginning to be arranged on and driving in the beginning register 34 of stepping motor 14.Shown in the sequential chart of Fig. 7, latch 17 latchs the switching width data " 6 " of the current state of being selected by selector switch 16.Latch 26 latchs the toggle count data " 2 " of the current state of being selected by selector switch 25.Pulse width counter 18 is measured excitation pulse by using the clock of predetermined period.Because the switching width of first state in this example is " 6 ", when each count value reaches " 6 ", the count value that pulse width counter 18 is removed in first state.Driving pulse toggle count device 27 expression initial values " 1 " are set in driving beginning register 34 when driving beginning.During count value in each reset pulse width counter 18, driving pulse toggle count device 27 counting end of a period count values.
When beginning to drive, CPU2 is arranged on model with excitation pattern data group 201 and is provided with in the register 20.CPU2 is arranged in the dancing mode register 36 " 1 " so that in quickening driving, according to the 1-2 phase driven, by level and smooth acceleration operation stepping motor 14.Pattern data address counter 21 generates each time of coincidence that is used at coincidence circuit 19, with an interval of jumping, selects the address (pattern definition number) of excitation pattern data.Therefore, as shown in Figure 7, pattern data address counter 21 generates from initial value " 0 " to " 2 ", " 4 ", " 6 " ... the pattern definition number of change.Selector switch 22 is provided with register 20 from model and is chosen in the excitation pattern data of storing corresponding to the address of pattern definition number based on the pattern definition number that is generated by pattern data address counter 21.As shown in Figure 7, when pattern definition number from " 0 ", " 2 ", " 4 ", " 6 " .... during change, from " 6 ' h05 ", " 6 ' h04 ", " 6 ' h06 ", " 6 ' h02 " ... sequentially select excitation pattern data.
As mentioned above, excitation pattern data group 201 is by being arranged in when with a jumping, and when data were read model data, a plurality of excitation pattern data group of exporting the driving pulse of the 1-2 phase driven that is used for stepping motor 14 became.Therefore, driving pulse 0 to 3 shown in Figure 3 is applied to the stator (0 to 3) of stepping motor 14, and as shown in Figure 3, stepping motor 14 is pressed the work of 1-2 phase driven, and wherein 1 phase driven and 2 phase driven alternately repeat.When quickening just smoothly, camera lens carries out work.
In the conversion corresponding to the four condition of next constant-speed drive, the value of driving condition counter 29 changes over " 4 " from " 3 ".Driving condition counter 29 is counted N=4 with driving condition and is outputed to CPU2.Four condition corresponding to constant-speed drive has switching width " 2 " and toggle count " 9 ", shown in Fig. 8 A.When the value of pulse width counter 18 reached " 2 ", shown in Fig. 8 B, driving pulse toggle count device 27 was from " 1 " → " 2 " → " 3 " ... " 9 " change.
When receiving driving conditions from driving condition counter 29 and count N=4, CPU2 identifies stepping motor 14 will be with constant-speed drive.CPU2 is arranged in the dancing mode register 36 " 3 " so that in constant-speed drive, by the 2-2 phase place, with steady state operation stepping motor 14.Pattern data address counter 21 with three intervals of jumping, generates the address (pattern definition number) that is used to select excitation pattern data in each time of coincidence of coincidence circuit 19.Therefore, shown in Fig. 8 B, pattern data address counter 21 generates from " 0 ", " 4 ", " 8 ", " 12 " ... the pattern definition number of change.Selector switch 22 is provided with register 20 from model and is chosen in the excitation pattern data of storing corresponding to the address of pattern definition number based on the graphical definition number that is generated by pattern data address counter 21.Shown in Fig. 8 B, when pattern definition number from " 0 ", " 4 ", " 8 ", " 12 " ... during change, sequentially from " 6 ' h05 ", " 6 ' h06 ", " 6 ' h0a ", " 6 ' h09 " ... select excitation pattern data.
As mentioned above, excitation pattern data group 201 is by being arranged in when with three jumpings, and when 4 data were read model data, a plurality of excitation pattern data group of exporting the driving pulse of the 2-2 phase driven that is used for stepping motor became.Therefore, driving pulse 0 to 3 shown in Figure 4 is applied to the stator (0 to 3) of stepping motor 14, as shown in Figure 4.Stepping motor 14 is by the 2-2 phase driven work that driving pulse is applied to the stator that is used for two phase places.Camera lens is with stabilized speed work.
In the 5th to the 7th state corresponding to deceleration, the 5th state that is used as initial state has switching width " 3 " and toggle count " 4 ".When the value of pulse width counter 18 arrived " 3 ", as shown in Figure 9, driving pulse toggle count device 27 changed from " 1 " → " 2 " → " 3 " → " 4 ".In deceleration, similar with the acceleration driving, CPU2 is arranged in the dancing mode register 36 " 1 " so that use 1-2 phase place by smooth deceleration, is operated stepping motor 14.Pattern data address counter 21 with 1 interval of jumping, generates the address (pattern definition number) that is used to select excitation pattern data in each time of coincidence of coincidence circuit 19.Therefore, as shown in Figure 9, pattern data address counter 21 generate from initial value " 0 " change over " 2 ", " 4 ", " 6 " ... pattern definition number.Selector switch 22 is provided with register 20 from model and is chosen in the excitation pattern data of storing corresponding to the address of pattern definition number based on the pattern definition number that is generated by pattern data address counter 21.As shown in Figure 9, when pattern definition number from " 0 ", " 2 ", " 4 ", " 6 " ... during change, sequentially from " 6 ' h05 ", " 6 ' h04 ", " 6 ' h06 ", " 6 ' h02 " ... select excitation pattern data.
As mentioned above, excitation pattern data group 201 is by being arranged in when with a jumping, and when data were read model data, a plurality of excitation pattern data group of exporting the driving pulse of the 1-2 phase driven that is used for stepping motor 14 became.Driving pulse 0 to 3 shown in Figure 3 is applied to the stator (0 to 3) of stepping motor 14, as shown in Figure 3.Stepping motor 14 carries out work by the 1-2 phase driven that alternately repeats the driving of 1 phase driven and two phase place.When slowing down smoothly, camera lens work.
In the conversion corresponding to the 5th state of next deceleration, the value of driving condition counter 29 changes over " 5 " from " 4 ".Driving condition counter 29 is counted N=5 with driving condition and is outputed to CPU2.When receiving driving conditions from driving condition counter 29 and count N=5, CPU2 identifies stepping motor 14 and will be decelerated and drive.CPU2 is arranged in the dancing mode register 36 " 1 " so that in deceleration, operates stepping motor 14 smoothly by the 1-2 phase place.
Simultaneously, in the 6th state and the 7th state with switching width " 4 " and toggle count " 3 ", stepping motor 14 is by the operation of 1-2 phase driven.The 8th state has switching width " 1 " and toggle count " 0 " behind the 7th state.Therefore, even the value of pulse width counter 18 changes over " 1 ", excitation pulse toggle count device 27 and pattern data address counter 21 do not change.Excitation output pulse P stops, and stepping motor 14 also stops.Drive end signal generative circuit 35 and generate the driving end interrupt signal, and it is outputed to CPU2.Respond this signal, CPU2 also stops motor controller 13.
As mentioned above, when beginning to drive stepping motor 14, CPU2 is provided with the switching width that first to the 8th state is set in the register 15 in pulse width, the toggle count of first to the 8th state is arranged in the pulse toggle count register 24, excitation pattern data is arranged on model is provided with in the register 20, and will drive beginning to be arranged on and driving in the beginning register 34 of stepping motor 14.By these settings, with acceleration, constant-speed drive, slow down and stop stepping motor 14.CPU2 is arranged on " 1 " in the dancing mode register 36, is used for quickening to drive and deceleration, and " 3 " that are provided for constant-speed drive.Stepping motor 14 is driven by the 1-2 phase driven in quickening driving and deceleration.And in constant-speed drive, be driven by the 2-2 phase driven.CPU2 controls motor controller 13 only to switch drive form, and need be after switching, control motor controller 13.Processing burden on the CPU2 can not increase.
The table that is used for 1-2 phase driven method and 2-2 phase driven method does not need to be stored in storer, be provided with in the register 20 such as model, and the excitation pattern data of each driving method does not need to be stored in the corresponding table.Only excitation pattern data group 201 is enough to storage, and can reduce required memory capacity.With corresponding to the hop count of specifying driving method, from model register 20 is set off and on and selects excitation pattern data as a memory storage.This simplifies the address change of selecting in the excitation pattern data, and by the control of simple address, can select excitation pattern data.
As mentioned above, in acceleration, the constant-speed drive of camera lens, and in slowing down, when providing the lens driving scope by virtual numerical value, CPU2 sets in advance maximal value (virtual lens MAX position) in maximum value register 31.The minimum value (virtual lens MIN position) that CPU2 will work as when providing the lens driving scope by virtual numerical value sets in advance in minimum value register 32.Virtual lens location counter 30 is counted the virtual location of camera lens in each time of coincidence of coincidence circuit 19, and count value is outputed to comparer 33.The virtual lens MAX position that comparer 33 relatively is provided with in maximum value register 31, the virtual lens MIN position that in minimum value register 32, is provided with, and by the value of virtual lens location counter 30 countings.When the value by virtual lens location counter 30 countings reaches the virtual lens MAX position that is provided with in maximum value register 31, or during the virtual lens MIN position that is provided with in minimum value register 32, comparer 332 outputs to signal and drives end signal generative circuit 35.Drive end signal generative circuit 35 and generate the outer look-at-me of driving scope and it is outputed to CPU2, and CPU2 stops motor controller 13.Because motor controller 13 stops, stepping motor 14 also stops, and the camera lens that driven by stepping motor 14 also stops in virtual lens MAX position or virtual lens MIN position.This can prevent that the overexercise of camera lens from making the so-called camera lens stuck phenomenon that drives the difficulty that becomes again.
In this embodiment, CPU2 is arranged on hop count in the dancing mode register 36, and selector switch 22 is selected excitation with the interval corresponding to hop count from excitation pattern data group 201.In addition, CPU2 can sequentially specify the address of the excitation that will select, and selector switch 22 can specify according to the address, selects excitation off and on.In this case, in the process of selecting excitation, stably take CPU2.Yet the table that is used for 1-2 phase driven method and 2-2 phase driven method can not be stored in storer, be provided with in the register 20 such as model, and the excitation pattern data of each driving method does not need to be stored in the corresponding table.For this reason, can reduce required memory capacity.From model register 20 is set and selects excitation pattern data as a memory storage.This has simplified the address change of selecting excitation pattern data, and by simple address control, can select excitation pattern data.
In this embodiment, driving condition counter 29 is counted N with driving condition and is outputed to CPU2.According to counting N from the driving condition of driving condition counter 29 outputs, CPU2 will be arranged in the dancing mode register 36 corresponding to the hop count (jump 1-2 phase driven=1, and jump 2-2 phase driven=3) of step-motor driving method.In addition, will count the circuit that the hop count of N is arranged in the dancing mode register 36 corresponding to driving condition can be configured in the motor controller 13.This configuration can be eliminated the intervention of the CPU2 in the switching of driving method fully, and can further reduce the processing burden on the CPU2.

Claims (18)

1. a Step-motor Control circuit is characterized in that, comprising:
Switch the width memory storage, be used for the driving process of stepping motor is divided into a plurality of driving conditions, and be stored as the driving condition of being divided and the switching width of the driving pulse that is provided with;
The toggle count memory storage is used to be stored as the driving condition of being divided and the toggle count of the driving pulse that is provided with;
The model data store device, the model data that is used to store a plurality of driving pulses;
Selecting arrangement, be used for responding driving sign on, sequentially be chosen in the model data of storing in the described model data store device according to switching width of storing at described switching width memory storage and the toggle count in described toggle count memory storage, stored; And
Output unit is used for according to the model data by described selecting arrangement selection driving pulse being outputed to described stepping motor.
2. Step-motor Control circuit as claimed in claim 1, it is characterized in that, further comprise switching device shifter, be used for responding driving sign on according to switching width of storing at described switching width memory storage and the toggle count in described toggle count memory storage, stored, carry out blocked operation
The blocked operation of described selecting arrangement and described switching device shifter is synchronous, sequentially is chosen in the model data of storing in the described model data store device.
3. Step-motor Control circuit as claimed in claim 2 is characterized in that described switching device shifter comprises counter, described counter is based on the clock signal of predetermined period, carry out counting operation, and this switching device shifter is carried out blocked operation based on the count value of described counter.
4. Step-motor Control circuit as claimed in claim 2 is characterized in that,
Described model data store device storage is corresponding to the model data of different addresses;
Described switching device shifter changes and the OPADD value in company with blocked operation; And
Described selecting arrangement is sequentially selected the model data corresponding to address value.
5. Step-motor Control circuit as claimed in claim 1 is characterized in that, further comprises:
The virtual value memory storage is used for storage maximal value and minimum value when providing the driving scope of the object that will drive by stepping motor with virtual numerical value;
Measurement mechanism is used for based on the control content that is used for driving pulse is outputed to described stepping motor, measures the virtual location of wanting driven object;
Comparison means, be used for measure by described measurement mechanism, the virtual location of wanting driven object and the maximal value and the minimum value of storing at described virtual value memory storage compare; And
The output stop device is used for the comparative result according to described comparison means, stops the output drive pulse.
6. Step-motor Control circuit as claimed in claim 1 is characterized in that,
Described model data store device stored energy is selected excitation pattern data off and on by with different interval, drives a plurality of excitation pattern data of described stepping motor; And
Selecting arrangement with corresponding to the interval of specifying driving method, is chosen in the excitation pattern data of storing in the described model data store device off and on.
7. a Step-motor Control circuit is characterized in that, comprising:
The virtual value memory storage is used for storage maximal value and minimum value when providing the driving scope of the object that will drive by stepping motor with virtual numerical value;
Measurement mechanism is used for based on the control content that is used for driving pulse is outputed to described stepping motor, measures the virtual location of wanting driven object;
Comparison means, be used for measure by described measurement mechanism, the virtual location of wanting driven object and the maximal value and the minimum value of storing at described virtual value memory storage compare; And
The output stop device is used for the comparative result according to described comparison means, stops the output drive pulse.
8. Step-motor Control circuit as claimed in claim 7 is characterized in that, driven object to comprise the camera lens that is connected to camera.
9. a Step-motor Control circuit is characterized in that, comprising:
The model data store device is used to store a plurality of excitation pattern data, and these a plurality of excitation pattern data are selected excitation pattern data off and on by with different interval, can drive described stepping motor with different driving methods;
Selecting arrangement is used for being chosen in the excitation pattern data of storing in the described model data store device off and on corresponding to the interval of specifying driving method; And
Output unit is used for according to the excitation pattern data by described selecting arrangement selection driving pulse being outputed to described stepping motor.
10. Step-motor Control circuit as claimed in claim 9 is characterized in that, further comprises setting device, is used to be provided with the value corresponding to this driving method,
Described selecting arrangement is chosen in the excitation pattern data of storing in the described model data store device with the interval of the value representation that is provided with in described setting device.
11. Step-motor Control circuit as claimed in claim 9 is characterized in that, described different driving method comprises 1-2 phase driven method and 2-2 phase driven method.
12. Step-motor Control circuit as claimed in claim 9 is characterized in that, further comprises:
Switch the width memory storage, be used for the driving process of stepping motor is divided into a plurality of driving conditions, and be stored as the driving condition of being divided and the switching width of the driving pulse that is provided with; And
The toggle count memory storage is used to be stored as the driving condition of being divided and the toggle count of the driving pulse that is provided with,
Selecting arrangement, the driving sign on of switching width that the response basis is stored in described switching width memory storage and the toggle count of in described toggle count memory storage, storing, with corresponding to the interval of specifying driving method, be chosen in the model data of storing in the described model data store device off and on.
13. Step-motor Control circuit as claimed in claim 9 is characterized in that, described selecting arrangement is with corresponding to the interval by the driving method of controller appointment, preference pattern data off and on.
14. Step-motor Control circuit as claimed in claim 9 is characterized in that, further comprises:
The virtual value memory storage is used for storage maximal value and minimum value when providing the driving scope of the object that will be driven by stepping motor with virtual numerical value;
Measurement mechanism is used for based on the control content that is used for driving pulse is outputed to described stepping motor, measures the virtual location of wanting driven object;
Comparison means, be used for measure by described measurement mechanism, the virtual location of wanting driven object and the maximal value and the minimum value of storing at described virtual value memory storage compare; And
The output stop device is used for the comparative result according to described comparison means, stops the output drive pulse.
15. an Electrofax is characterized in that comprising:
Lens system;
Drive unit has the stepping motor that drives described lens system;
Image detection device is used to detect the image that is formed by described lens system;
Switch the width memory storage, be used for the driving process of stepping motor is divided into a plurality of driving conditions, and be stored as the driving condition of being divided and the switching width of the driving pulse that is provided with;
The toggle count memory storage is used to be stored as the driving condition of being divided and the toggle count of the driving pulse that is provided with;
The model data store device, a plurality of model datas that are used to store driving pulse;
Selecting arrangement, be used for responding driving sign on, sequentially be chosen in the model data of storing in the described model data store device according to switching width of storing at described switching width memory storage and the toggle count in described toggle count memory storage, stored; And
Output unit is used for according to the model data by described selecting arrangement selection driving pulse being outputed to described stepping motor.
16. an Electrofax is characterized in that, comprising:
Lens system;
Drive unit has the stepping motor that drives described lens system;
Image detection device is used to detect the image that is formed by described lens system;
The model data store device is used to store a plurality of excitation pattern data, and these a plurality of excitation pattern data are selected excitation pattern data off and on by with different interval, can drive described stepping motor by enough different driving methods;
Selecting arrangement with corresponding to the interval of specifying driving method, is chosen in the excitation pattern data of storing in the described model data store device off and on;
Output unit is used for according to the excitation pattern data by described selecting arrangement selection driving pulse being outputed to described stepping motor.
17. a Step-motor Control method is characterized in that, comprises step:
The driving process of stepping motor is divided into a plurality of driving conditions so that the switching width of the driving pulse that will be provided with for the driving condition of being divided is stored in the storer;
The toggle count of the driving pulse that will be provided with for the driving condition of being divided is stored in the storer;
Response sequentially is chosen in the model data of storing in the model data store device of a plurality of model datas of storing described driving pulse according to the switching width of storing and the driving sign on of toggle count in described storer; And
According to selected model data, driving pulse is outputed to described stepping motor.
18. a Step-motor Control method is characterized in that, comprises step:
With interval corresponding to the appointment driving method, select excitation pattern data from the model data store device discontinuous ground of storing a plurality of excitation pattern data, these a plurality of excitation pattern data can enough different driving methods drive stepping motor by selecting excitation pattern data off and on different interval; And
According to selected excitation pattern data, driving pulse is outputed to described stepping motor.
CNB2004800031451A 2003-08-26 2004-08-05 Stepping motor control circuit, electronic camera, and stepping motor control method Expired - Fee Related CN100498495C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2003300704A JP4054915B2 (en) 2003-08-26 2003-08-26 Stepping motor control circuit, electronic camera, and stepping motor control method
JP300704/2003 2003-08-26
JP304088/2003 2003-08-28

Publications (2)

Publication Number Publication Date
CN1745335A true CN1745335A (en) 2006-03-08
CN100498495C CN100498495C (en) 2009-06-10

Family

ID=34405534

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004800031451A Expired - Fee Related CN100498495C (en) 2003-08-26 2004-08-05 Stepping motor control circuit, electronic camera, and stepping motor control method

Country Status (2)

Country Link
JP (1) JP4054915B2 (en)
CN (1) CN100498495C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271185B (en) * 2007-03-22 2010-05-26 亚洲光学股份有限公司 Lens opening method and its control system
CN101072008B (en) * 2006-05-11 2010-05-26 株式会社东芝 Stepping motor control device, image forming device sequence control device
CN107783065A (en) * 2016-08-26 2018-03-09 精工半导体有限公司 Sensor circuit
CN110927922A (en) * 2019-12-19 2020-03-27 中国科学院长春光学精密机械与物理研究所 Device and method for rapidly switching multiplying power of optical system
CN112946855A (en) * 2019-12-11 2021-06-11 余姚舜宇智能光学技术有限公司 Automatic focusing method and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726978B (en) * 2008-10-29 2012-09-12 精工爱普生株式会社 Projector and projector control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5899299A (en) * 1981-12-04 1983-06-13 Fuji Xerox Co Ltd Exciting system for step motor
JPS61240897A (en) * 1985-04-16 1986-10-27 Canon Inc Step motor drive device
US4920420A (en) * 1988-11-10 1990-04-24 Hitachi, Ltd. Automatic focusing system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072008B (en) * 2006-05-11 2010-05-26 株式会社东芝 Stepping motor control device, image forming device sequence control device
CN101271185B (en) * 2007-03-22 2010-05-26 亚洲光学股份有限公司 Lens opening method and its control system
CN107783065A (en) * 2016-08-26 2018-03-09 精工半导体有限公司 Sensor circuit
CN107783065B (en) * 2016-08-26 2020-12-08 艾普凌科有限公司 Sensor circuit
CN112946855A (en) * 2019-12-11 2021-06-11 余姚舜宇智能光学技术有限公司 Automatic focusing method and system
CN110927922A (en) * 2019-12-19 2020-03-27 中国科学院长春光学精密机械与物理研究所 Device and method for rapidly switching multiplying power of optical system

Also Published As

Publication number Publication date
CN100498495C (en) 2009-06-10
JP4054915B2 (en) 2008-03-05
JP2005073411A (en) 2005-03-17

Similar Documents

Publication Publication Date Title
US4648026A (en) Microprocessor stepper motor drive
CN1745335A (en) Stepping motor control circuit, electronic camera, and stepping motor control method
EP1658721B1 (en) Stepping motor control circuit, electronic camera, and stepping motor control method
CN115840402A (en) Control time sequence optimization method of double-shaft low-voltage motor driver and related equipment
JP4054916B2 (en) Stepping motor control circuit, electronic camera, and stepping motor control method
JP2009294199A (en) Speed measurement method and system
JP2575973B2 (en) Task scheduling method for measurement data processing system
KR100203063B1 (en) Speed detecting apparatus in encoder type motor
JP4071776B2 (en) Pulse generation method and pulse generation apparatus, and motor control system using the same
US6819074B2 (en) Apparatus and method of controlling a driving speed of a motor
JPH06138358A (en) Method and device for controlling motor of optical apparatus
JPH1141989A (en) Drive gear for stepping motor and monitor camera system using it
JP3152682B2 (en) Pulse motor control device for embroidery sewing machine
CN117270487B (en) Sampling control system, method and chip for analog signals
JPH064135A (en) Positioning device
JP2016080547A (en) Position controller
JP2587622B2 (en) High-speed origin detection circuit of numerical controller
CN1122990C (en) Apparatus for preventing picture fluctuation and correcting reverse pulse in video cassette recorder
JPH04304506A (en) Acceleration control method for pulse motor
JP3414055B2 (en) Stepping motor drive circuit
CN117833720A (en) Motor control method and device, motor driver and storage medium
CN115001325A (en) Timed interrupt control method and multi-step motor synchronous control system and method
CN115459671A (en) Motor speed regulation method and system based on encoder and cleaning equipment with motor speed regulation system
JPH08156328A (en) Timing control device
JPS61203898A (en) Pulse motor drive device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090610

Termination date: 20210805

CF01 Termination of patent right due to non-payment of annual fee