Driver Device

JP7549000B2Active Publication Date: 2024-09-10ROHM CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2022510030
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-03-27
Filing Date
2021-03-18
Publication Date
2024-09-10
Estimated Expiration
2041-03-18

AI Technical Summary

Benefits of technology

【0009】 本開示によれば、可動部への外力の付与有無を検出可能とするドライバ装置を提供することが可能となる。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000024_0000
    Figure 00000024_0000
  • Figure 00000024_0001
    Figure 00000024_0001
  • Figure 00000024_0002
    Figure 00000024_0002
Patent Text Reader

Abstract

This driver device comprises a control circuit which controls an output stage circuit that supplies an output current to a coil, and moves a movable portion by using a magnetic force generated by the supply of the output current. The control circuit can execute a holding control for stopping the movement of the movable portion and maintains the state of the movable portion unchanged. When the holding control is performed by the control circuit, the presence or absence of external force that resists the holding control and changes the state of the movable portion is detected, on the basis of the state of power supply to the coil by the output stage circuit, the output current, or the current flowing in the output stage circuit.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a driver device. [Background technology]

[0002] Stepping motors are used in a variety of applications, such as the paper feed section of a copy machine or printer, or the reading section of a scanner. A type of driver device (motor driver) for a stepping motor is provided with a full-bridge circuit (H-bridge circuit) for supplying an output current (coil current) to each motor coil of each phase of the stepping motor. The polarity and magnitude of the output current to the motor coil of each phase is changed in steps to rotate the rotor in steps.

[0003] In driver devices for stepping motors, PWM constant current control is generally used to control the output current. With PWM constant current control, the output current value to the motor coil of each phase is kept close to the target current value for a desired period of time. If the target current value is fixed, the rotor angle is kept constant. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2002-17099 A Summary of the Invention [Problem to be solved by the invention]

[0005] When a holding control is performed to hold the rotor angle constant, if an external force is applied to the rotor, the rotor may rotate against the holding control. For example, in a case where a stepping motor is used to drive the paper feed section, the force of a user of a copy machine or printer pulling paper caught in the paper feed section by hand is a type of external force. When the rotor rotates due to the application of an external force, a mismatch occurs between the electrical angle of the rotor recognized by the system and the actual mechanical angle of the rotor, which may cause subsequent control to become unstable. Furthermore, the application of an external force may cause mechanical failure or deterioration.

[0006] If it were possible to detect the presence or absence of such an external force, it would be possible to take necessary measures, which would increase convenience. If an encoder is provided separately, it would be possible to detect the presence or absence of an external force, but providing an encoder separately would increase costs. Although the circumstances surrounding the driver device have been explained with a focus on stepping motors, the same circumstances may also apply to driver devices that drive and control solenoid actuators, etc.

[0007] An object of the present disclosure is to provide a driver device capable of detecting whether or not an external force is being applied to a movable part. [Means for solving the problem]

[0008] The driver device of the present disclosure is a driver device that moves a movable part using a magnetic force generated by supplying an output current to a coil, and includes an output stage circuit that supplies the output current to the coil by applying a voltage to the coil, and a control circuit that controls the output stage circuit, wherein the control circuit is capable of executing holding control that stops the movement of the movable part through control of the output stage circuit and holds the state of the movable part unchanged, and the driver device further includes an external force detection unit that detects whether or not an external force is being applied that changes the state of the movable part against the holding control, based on the state of power supply to the coil by the output stage circuit, the output current, or the current flowing through the output stage circuit when the holding control is being performed by the control circuit. Effect of the Invention

[0009] According to the present disclosure, it is possible to provide a driver device capable of detecting whether or not an external force is being applied to a movable part. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is an overall configuration diagram of a motor drive system according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is an external perspective view of the motor driver according to the embodiment of the present disclosure. [Diagram 3] FIG. 3 is an explanatory diagram of the full-step excitation mode according to an embodiment of the present disclosure. [Figure 4] FIG. 4 is a torque vector diagram for a full-step excitation mode according to an embodiment of the present disclosure. [Diagram 5] FIG. 5 is an explanatory diagram of PWM constant current control according to an embodiment of the present disclosure. [Figure 6] FIG. 6 is a diagram illustrating a transition from the power supply mode to the slow power supply mode according to an embodiment of the present disclosure. [Figure 7] FIG. 7 is a diagram illustrating a transition from a power supply mode to a fast power supply mode according to an embodiment of the present disclosure. [Figure 8] FIG. 8 is a diagram for explaining a phenomenon in which a current surge occurs in an output current waveform to a motor coil due to application of an external force according to an embodiment of the present disclosure. [Figure 9] FIG. 9 is a diagram illustrating how the output current increases beyond the target current value according to an embodiment of the present disclosure. [Figure 10] FIG. 10 is a schematic diagram for explaining a first detection method for a specific current waveform corresponding to a current rise phenomenon according to a first example belonging to an embodiment of the present disclosure. [Figure 11] FIG. 11 is a diagram showing the relationship between a detection target period, a reference period, and an evaluation period according to a first example of the embodiment of the present disclosure. [Figure 12]FIG. 12 is a schematic diagram for explaining a second detection method of a specific current waveform corresponding to a current rise phenomenon according to a second example belonging to an embodiment of the present disclosure. [Figure 13] FIG. 13 is a schematic diagram for explaining a third detection method for a specific current waveform corresponding to a current rise phenomenon, according to a third example belonging to an embodiment of the present disclosure. [Figure 14] FIG. 14 is a configuration diagram for detecting a current flowing through each output transistor according to a fourth example belonging to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, examples of the embodiments of the present disclosure will be specifically described with reference to the drawings. In each of the drawings, the same parts are given the same reference numerals, and duplicated descriptions of the same parts are omitted as a rule. In this specification, for the sake of simplifying the description, a symbol or a code referring to information, a signal, a physical quantity, an element, a part, or the like may be written, and the name of the information, signal, physical quantity, element, part, or the like corresponding to the symbol or code may be omitted or abbreviated. For example, the external force detection unit referred to by "160" described later (see FIG. 1) may be written as the external force detection unit 160 or may be abbreviated as the detection unit 160, but they all refer to the same thing.

[0012] First, some terms used in the description of the embodiments of the present disclosure will be explained. Ground refers to a reference conductive part having a reference potential of 0V (zero volts) or refers to the potential of 0V itself. The reference conductive part is formed of a conductor such as a metal. The potential of 0V may also be called ground potential. In the embodiments of the present disclosure, a voltage shown without a particular reference represents a potential seen from the ground. A level refers to a level of potential, and a high level of any signal or voltage has a higher potential than a low level. For any signal or voltage, a signal or voltage at a high level means that the level of the signal or voltage is at a high level, and a signal or voltage at a low level means that the level of the signal or voltage is at a low level. A level for a signal may be expressed as a signal level, and a level for a voltage may be expressed as a voltage level.

[0013] For any transistor configured as a FET (field effect transistor) including a MOSFET, the on state refers to a state in which the drain and source of the transistor are conductive, and the off state refers to a state in which the drain and source of the transistor are non-conductive (cut-off state). The same applies to transistors not classified as FETs. Unless otherwise specified, MOSFETs are understood to be enhancement-type MOSFETs. MOSFET is an abbreviation for "metal-oxide-semiconductor field-effect transistor." Hereinafter, the on state and off state of any transistor may be expressed simply as on and off.

[0014] 1 shows an overall configuration diagram of a motor drive system SYS according to an embodiment of the present disclosure. The motor drive system SYS includes a motor driver 100 as a drive device, a stepping motor 200, an MPU (Micro Processing Unit) 300, and current detection resistors R[1] and R[2].

[0015] FIG. 2 is an external perspective view of the motor driver 100. The motor driver 100 is an electronic component (semiconductor device) formed by sealing a semiconductor integrated circuit in a housing (package) made of resin. A plurality of external terminals are provided and exposed on the housing of the motor driver 100. In the configuration example of FIG. 1, the plurality of external terminals provided on the motor driver 100 include power supply terminals VCC[1] and VCC[2] and an output terminal A OUT [1], B OUT [1], A OUT [2] and B OUT [2], resistor connection terminals RNF[1] and RNF[2], and a ground terminal GND, as well as a reference voltage input terminal TM REF and control terminal group TM CNT The external terminals include terminals constituting the above-mentioned multiple external terminals. Terminals other than these may also be included in the multiple external terminals. Note that the number of external terminals of the motor driver 100 and the appearance of the motor driver 100 shown in FIG. 2 are merely examples.

[0016] The stepping motor 200 includes motor coils (armature windings) for multiple phases and a rotor 210. In this embodiment, it is assumed that the stepping motor 200 is a two-phase stepping motor, and motor coils L[1] and L[2] are provided in the stepping motor 200 as motor coils for two phases. However, as the stepping motor 200, a three-phase stepping motor having three motor coils or a five-phase stepping motor having five motor coils can also be used.

[0017] The MPU 300 controls the operation of the motor driver 100 by transmitting a control signal CNT to the motor driver 100. The motor driver 100 drives and controls the stepping motor 200 based on the control signal CNT. In other words, the MPU 300 is an example of a processing device that controls the rotation of the rotor 210 by controlling the motor driver 100. The control signal CNT is transmitted to a control terminal group TM CNTThe control signal CNT is composed of a plurality of control signals, and one or more of the plurality of control signals may not be supplied from the MPU 300. That is, for example, one or more of the plurality of control signals constituting the control signal CNT may be fixed to a low level or a high level by pull-down or pull-up.

[0018] The motor driver 100 includes an input buffer 111, a translator 112, a DAC 113 which is a digital / analog converter, a plurality of channel circuits, and an external force detection unit 160. The motor driver 100 includes channel circuits equal to the number of motor coils provided in the stepping motor 200. That is, if the stepping motor 200 is provided with N motor coils, a total of N channel circuits are provided in the motor driver 100 in association with the respective motor coils (N is an arbitrary integer equal to or greater than 2). Here, it is assumed that the stepping motor 200 is provided with two motor coils L[1] and L[2], and therefore a channel circuit CH[1] corresponding to the motor coil L[1] and a channel circuit CH[2] corresponding to the motor coil L[2] are provided in the motor driver 100. In addition, although not shown, an oscillator, a regulator, various protection circuits, and the like are provided in the motor driver 100.

[0019] In the motor driver 100, each channel circuit is provided with a control circuit and an output stage circuit. The control circuit and the output stage circuit provided in the channel circuit CH[i] are referred to as the control circuit 120[i] and the output stage circuit 130[i], respectively. i is an arbitrary integer, and the control circuit 120[i] represents the control circuit 120[1] when "i=1" and the control circuit 120[2] when "i=2". The same is true for the output stage circuit 130[i], etc. In each channel circuit, the control circuit 120[i] is provided with a comparator 121[i] and a control logic 122[i]. In each channel circuit, the output stage circuit 130[i] is provided with a pre-driver 131[i] and a full bridge circuit 132[i] (H-bridge circuit).

[0020] A motor coil and a current detection resistor are connected to each channel circuit. The motor coil and current detection resistor corresponding to channel circuit CH[i] are motor coil L[i] and current detection resistor R[i]. Hereinafter, a circuit including a channel circuit and the motor coil and current detection resistor corresponding to that channel circuit may be referred to as a channel. The channel consisting of channel circuit CH[1], motor coil L[1], and current detection resistor R[1] is referred to as the first channel, and the channel consisting of channel circuit CH[2], motor coil L[2], and current detection resistor R[2] is referred to as the second channel. Terminal A OUT [i], B OUT [i], RNF[i], and VCC[i] are terminals belonging to the i-th channel (terminals corresponding to the i-th channel). A common power supply voltage VCC is supplied to power supply terminals VCC[1] and VCC[2] from a power supply circuit (not shown) provided outside the motor driver 100. The power supply voltage VCC is a positive DC voltage (e.g., 24 V). Each circuit in the motor driver 100 is driven based on the power supply voltage VCC. The ground terminal GND is connected to ground.

[0021] The circuit configurations of the channel circuits CH[1] and CH[2] are the same, and the connections between the channel circuits, the motor coils, and the current detection resistors are common to multiple channels. Therefore, in this embodiment, the configuration of the i-th channel and the voltage and current in the i-th channel are described using the symbol i representing an arbitrary integer as appropriate.

[0022] Output terminal A OUT [i] is connected to one end of the motor coil L[i], and the output terminal B OUT [i] is connected to the other end of the motor coil L[i]. Output terminal A OUT [i] and B OUT The current flowing between the motor coils L[i] and L[i] (and therefore the current flowing through the motor coil L[i]) is the output current I OUT [i]. The output current I OUT [i] is output terminal A OUT [i] through coil L[i] to output terminal B OUT When the current flows toward [i], the output current IOUT The polarity of [i] is positive, and the output current I OUT The polarity of [i] is negative. The output current I OUT [1] and I OUT [2] by changing the polarity, or by changing the output current I OUT [1] and I OUT By changing the magnitude and polarity of coils L[1] and L[2], the rotor 210 rotates in steps based on the magnetic force generated in coils L[1] and L[2].

[0023] The current detection resistor R[i] is provided outside the motor driver 100. The current detection resistor R[i] is connected between the resistor connection terminal RNF[i] and ground. The current detection resistor R[i] detects the current flowing through the motor coil[i] and converts the detected current into a voltage. The voltage at the resistor connection terminal RNF[i] is expressed as a detection voltage V RNF The resistors R[1] and R[2] have the same resistance (for example, 0.1Ω to 0.3Ω) (however, there may be some error). The current detection resistor R[i] constitutes the current detection section. The current detection section detects the output current I OUT [i] is detected and the output current I OUT A current detection signal is generated that indicates the detection result of [i]. The output current I OUT During the period when current [i] flows through resistor R[i], the detection voltage V RNF [i] is the output current I OUT Since it has a voltage value proportional to [i], it functions as a current detection signal. The current detection resistor R[i] may be built into the motor driver 100. In this case, the current detection unit is built into the motor driver 100.

[0024] The input buffer 111, the translator 112, and the DAC 113 are circuits shared by the first and second channels.

[0025] The input buffer 111 is a voltage follower using an operational amplifier, and is connected to a reference voltage input terminal TM REFThe reference voltage Vref supplied to the DAC 113 is output with low impedance to the DAC 113. The reference voltage Vref is a positive DC voltage. As will be apparent from the following description, the reference voltage Vref controls the output current I OUT [1] and I OUT [2] The maximum value of the magnitude is determined.

[0026] The translator 112 is a control terminal group TM CNT The control signal CNT determines the driving method and excitation mode of the motor 200 and the direction of rotation of the rotor 210. The translator 112 outputs an internal control signal CNT based on the control signal CNT. V [1], CNT V [2], CNTs P [1] and CNTs P [2]. In each channel, the internal control signal CNT V Output current I according to [i] OUT The magnitude of [i] is controlled by the internal control signal CNT P Output current I according to [i] OUT The polarity (output logic) of [i] is controlled.

[0027] The DAC 113 outputs the reference voltage Vref supplied through the input buffer 111 as a REF [1]=k DAC [1] ×Vref” and “V REF [2]=k DAC [2] × Vref” is the reference voltage V REF [1] and V REF [2] is generated, where the coefficient k DAC [i] is the internal control signal CNT V [i]. For example, the internal control signal CNT V [i] is a 2-bit digital signal with coefficient k DAC [i] is the internal control signal CNT V Depending on [i], it selectively takes one of the values ​​"0", "1 / 3", "2 / 3", and "1". In this case, the DAC 113 can be configured by a 2-bit digital / analog converter. However, the number of bits of the DAC 113 is not limited to this.

[0028] The control circuit 120[1] receives a reference voltage V REF [1] Detection voltage V RNF [1] and the internal control signal CNT P The control circuit 120[2] receives the reference voltage V REF [2] Detection voltage V RNF [2] and the internal control signal CNT P [2] is entered.

[0029] The control circuit 120[i] controls the reference voltage V REF [i], detection voltage V RNF [i] and the internal control signal CNT P Based on [i], the output current I OUT [i] is the reference voltage V REF [i] and has an output current I OUT The polarity of [i] is the internal control signal CNT P The output stage circuit 130[i] is controlled so as to have a polarity according to [i].

[0030] Specifically, in the control circuit 120[i], a reference voltage V REF [i] is input, and the detection voltage V is applied to the inverting input terminal of comparator 121[i]. RNF [i] is input to comparator 121[i]. REF [i] and V RNF [i] and a comparison result signal S CMP [i] to the control logic 122[i]. CMP [i] is the reference voltage V REF [i] is the detection voltage V RNF If it is higher than [i], it will be at high level, and the reference voltage V REF [i] is the detection voltage V RNF If it is lower than [i], it will be low level. REF [i]=V RNF [1]” When the comparison result signal S CMP [i] is either high or low level.

[0031] The control logic 122[i] outputs a comparison result signal S CMP [i] and the internal control signal CNT P Based on the motor drive signal, the control logic 122[i] generates a motor drive signal that specifies the on / off state of each output transistor of the full-bridge circuit 132[i], and outputs the generated motor drive signal to the pre-driver 131[i]. The pre-driver 131[i] individually turns on or off the multiple output transistors that form the full-bridge circuit 132[i] in accordance with the motor drive signal. At this time, the control logic 122[i] controls the output current I OUT The comparison result signal S during the period when [i] flows from terminal RNF[i] through resistor R[i] to ground. CMP Based on [i], the detected voltage V RNF [i] is the reference voltage V REF [i] (ideally substantially equal to it), and the output current I OUT The polarity of [i] is the internal control signal CNT P Generates a motor drive signal to match the polarity specified in [i].

[0032] Thus, the reference voltage V REF [i] and the internal control signal CNT P [i], the output current I to be supplied to the motor coil L[i] OUT A current setting signal (in other words, a current command signal) is formed to set the target of the detected voltage V RNF [i] is the reference voltage V REF Since it is controlled to approach (ideally essentially match) [i], the output current I OUT [i] is the reference voltage V REF [i] (however, if for some reason the magnitude of the output current I OUT [i] may have it; see below for details). That is, the reference voltage V REF [i] outputs the output current I OUT A target value for the magnitude of [i] is set. In addition, the internal control signal CNT P [i] outputs the output current I OUTA polarity target of [i] is set.

[0033] The full bridge circuit 132[1] is composed of output transistors M1[1] and M2[1] configured as P-channel MOSFETs, and output transistors M3[1] and M4[1] configured as N-channel MOSFETs. The full bridge circuit 132[2] is composed of output transistors M1[2] and M2[2] configured as P-channel MOSFETs, and output transistors M3[2] and M4[2] configured as N-channel MOSFETs. A parasitic diode is added to the P-channel MOSFET with the forward direction being from the drain to the source, and a parasitic diode is added to the N-channel MOSFET with the forward direction being from the source to the drain, but the parasitic diodes are not shown in FIG. 1.

[0034] In the full-bridge circuit 132[i], the sources of the output transistors M1[i] and M2[i] are commonly connected to a power supply terminal VCC[i], and the power supply voltage VCC is applied to the sources of the output transistors M1[i] and M2[i]. In the full-bridge circuit 132[i], the drains of the output transistors M1[i] and M3[i] are commonly connected to the output terminal A OUT The drains of the output transistors M2[i] and M4[i] are connected in common to the output terminal B OUT The sources of the output transistors M3[i] and M4[i] are commonly connected to a resistor connection terminal RNF[i]. The pre-driver 131[i] controls the gate potentials of the output transistors M1[i]-M4[i] in accordance with a motor drive signal from the control logic 122[i] to turn the output transistors M1[i]-M4[i] on or off individually.

[0035] In this example, the full bridge circuit 132[i] is configured using P-channel MOSFETs and N-channel MOSFETs, but all of the output transistors that configure the full bridge circuit 132[i] may be N-channel MOSFETs. In this case, necessary circuit modifications are made. Also, the full bridge circuit 132[i] may be configured using bipolar transistors instead of MOSFETs.

[0036] The motor driver 100 can drive the stepping motor 200 in any one of a plurality of excitation modes in response to the control signal CNT. The plurality of excitation modes include a full-step excitation mode in which the rotor 210 rotates in steps of 90° electrical angle, a half-step excitation mode in which the rotor 210 rotates in steps of 45° electrical angle, and a quarter-step excitation mode in which the rotor 210 rotates in steps of 22.5° electrical angle.

[0037] The full-step excitation mode will be described with reference to Fig. 3. In one aspect of the full-step excitation mode, as shown in Fig. 3, states ST1, ST2, ST3, and ST4 are realized in this order. Furthermore, a set of states ST1, ST2, ST3, and ST4 is repeatedly realized. Therefore, considering state ST1 as a starting point, states ST1, ST2, ST3, and ST4 are realized in this order, and after state ST4, state ST1 is realized, and again states ST1, ST2, ST3, and ST4 are realized in this order.

[0038] Output current I OUT The target value of [i] is called the target current value. Output current I OUT The target current value for [1] is symbolized as “I TG [1]” and the output current I OUT The target current for [2] is expressed as “I TG [2]” The target current value I TG The magnitude (absolute value) of [i] is the output current I OUT [i] corresponds to a target magnitude (hereinafter referred to as the target magnitude), and the reference voltage V REF [i] is determined. Target current value I TGThe polarity of [i] represents the output current I OUT [i] corresponds to the target polarity (hereinafter referred to as the target polarity), and the internal control signal CNT P [i] is determined by the output current I OUT As with [i], the target current value I TG [i] has polarity. If the resistance value of resistor R[i] is expressed as the symbol “R[i]”, then “|I TG [i]|=V REF [i] / R[i]”. In full-step excitation mode, the target current value I TG [1] and I TG The magnitude (absolute value) of [2] is the predetermined current value I REF and is constant (I REF >0). Therefore, in full-step excitation mode, the reference voltage V REF [1] and V REF [2] is fixed to a constant voltage (for example, the same voltage as the reference voltage Vref). The current value I REF has a positive value proportional to the reference voltage Vref.

[0039] in particular, In state ST1 (I TG [1],I TG [2])=(I REF ,I REF ), In state ST2 (I TG [1],I TG [2])=(-I REF ,I REF ), In state ST3 (I TG [1],I TG [2])=(-I REF ,-I REF ),and, In state ST4 (I TG [1],I TG [2])=(I REF ,-I REF ),. Therefore, the control circuits 120[1] and 120[2] In state ST1 (I OUT [1],I OUT [2])=(I REF ,IREF ), In state ST2 (I OUT [1],I OUT [2])=(-I REF ,I REF ), In state ST3 (I OUT [1],I OUT [2])=(-I REF ,-I REF ),and, In state ST4 (I OUT [1],I OUT [2])=(I REF ,-I REF ) so that the reference voltage V REF [1] and V REF [2] Detection voltage V RNF [1] and V RNF [2] and the internal control signal CNT P [1] and CNTs P [2] controls the output stage circuits 130[1] and 130[2].

[0040] FIG. 4 is a torque vector diagram of the stepping motor 200 in the full-step excitation mode in units of electrical angle. Vectors VEC1, VEC2, VEC3, and VEC4 are torque vectors in states ST1, ST2, ST3, and ST4, respectively. As shown in FIG. 3, by repeatedly realizing a set of states ST1, ST2, ST3, and ST4, the rotor 210 rotates in a first rotation direction in steps of 90° in electrical angle, and at this time, the mechanical angle of the rotor 210 rotates in the first rotation direction in steps of an angle corresponding to the amount of change in the electrical angle. Conversely to FIG. 3, each state can be realized in the order of states ST4, ST3, ST2, and ST1, and in that case, the rotor 210 rotates in a second rotation direction opposite to the first rotation direction in steps of 90° in electrical angle, and at this time, the mechanical angle of the rotor 210 rotates in the second rotation direction in steps of an angle corresponding to the amount of change in the electrical angle.

[0041] In the full-step excitation mode, as described above, the target current value I TG [i] is "I REF " and "-I REFThe output current I OUT [1] and I OUT The control method of [2] is well known, as is the full-step excitation mode, so a detailed explanation will be omitted. In the half-step excitation mode, the target current value I TG [i] is "I REF ", "0" and "-I REF In quarter-step excitation mode, the target current value I TG [i] is "I REF ", "(2 / 3)I REF ", "(1 / 3)I REF "," "0" "-(1 / 3)I REF "," "-(2 / 3)I REF " and "-I REF " The current can be switched between a total of seven values.

[0042] The motor driver 100 controls the output current I OUT The value of [i] is the target current value I TG Keep it close to [i]. PWM stands for “pulse width modulation.”

[0043] The PWM constant current control will be described with reference to FIG. 5. For the sake of concreteness, TG [i]>0” and the positive output current I OUT Assume that [i] is flowing.

[0044] In the PWM constant current control, the control circuit 120[i] controls the output current I OUT The detected voltage V when [i] flows through resistor R[i] RNF [i], “V REF [i]>V RNF [i]” if the detection voltage V RNF [i] is the reference voltage V REF [i] (i.e., until the output current I OUT The value of [i] is the target current value I TG[i]), the operation mode of the i-th channel is the power supply mode, and the detection voltage V RNF [i] is the reference voltage V REF When the output current I OUT The value of [i] is the target current value I TG [i]) the operation mode of the i-th channel is switched from the power supply mode to the decay mode. After the switching to the decay mode, the predetermined decay time T DECAY After the elapse of time, the operation mode of the i-th channel is returned from the attenuation mode to the power supply mode.

[0045] The control circuit 120[i] operates in the power supply mode by setting the output stage circuit 130[i] to the power supply state during a period when the operation mode of the i-th channel is the power supply mode, and operates in the power supply mode by setting the output stage circuit 130[i] to the attenuation state during a period when the operation mode of the i-th channel is the attenuation mode. The power supply state and power supply mode operation are OUT [i]. The decay state and decay mode operation are states and operations for increasing the magnitude of the output current I OUT [i]. A set of one power supply mode operation and one attenuation mode operation that are executed adjacent to each other is called a unit operation. In PWM constant current control, the unit operations are repeated to attenuate the magnitude of the output current I OUT The magnitude of [i] is the absolute value |I TG [i]| or less (i.e., the target current value |I TG [i]|) target current value I TG [i] It is kept close.

[0046] There are two decay modes: slow decay mode and fast decay mode. Figure 6 shows how the power supply mode switches to the slow decay mode. Figure 7 shows how the power supply mode switches to the fast decay mode. However, in Figures 6 and 7, TG [i]>0”. Refer to Figs. 6 and 7. TG The power supply mode, the slow decay mode, and the fast decay mode when [i]>0” will be described.

[0047] In the i-th channel, in the power supply mode, the output stage circuit 130[i] is in a power supply state. When the output stage circuit 130[i] is in a power supply state, it means that the full bridge circuit 132[i] is in a power supply state. In Figs. 6 and 7, the broken line 621 with an arrow indicates the output current I OUT In the power supply state of the output stage circuit 130[i], the output transistors M1[i] and M4[i] are turned on and the output transistors M2[i] and M3[i] are turned off. Therefore, in the power supply mode of the i-th channel, a positive output current I flows from the terminal to which the power supply voltage VCC is applied through the output transistor M1[i], the motor coil L[i], the output transistor M4[i], and the resistor R[i] to the ground. OUT [i] flows, and the output current I OUT The magnitude of [i] increases over time. The operation achieved by putting the output stage circuit 130[i] in the power supply state corresponds to the power supply mode operation.

[0048] In the i-th channel, in the slow decay mode, the output stage circuit 130[i] is in a slow decay state, which is one type of attenuation state. When the output stage circuit 130[i] is in the slow decay state, it means that the full bridge circuit 132[i] is in the slow decay state. In FIG. 6, the broken line 622 with an arrow indicates the output current I OUT In the slow decay state of the output stage circuit 130[i], the output transistors M3[i] and M4[i] are turned on and the output transistors M1[i] and M2[i] are turned off. Therefore, in the slow decay mode of the i-th channel, a positive output current I OUT [i] flows, and the output current I OUT The magnitude of the decay current [i] decreases over time. The operation achieved by putting the output stage circuit 130[i] into the slow decay state is a type of decay mode operation. Note that in the slow decay mode of the i-th channel, the output transistor M3[i] may be in the off state.

[0049] In the i-th channel, in the fast decay mode, the output stage circuit 130[i] is in a fast decay state, which is one type of attenuation state. When the output stage circuit 130[i] is in the fast decay state, it means that the full bridge circuit 132[i] is in the fast decay state. In FIG. 7, the broken line 623 with an arrow indicates the output current I OUT In the fast decay state of the output stage circuit 130[i], the output transistor M3[i] is turned on and the output transistors M1[i], M2[i], and M4[i] are turned off. Therefore, in the fast decay mode of the i-th channel, a positive output current I flows from ground through the resistor R[i], the output transistor M3[i], the motor coil L[i], and the output transistor M2[i] (the parasitic diode of the output transistor M2[i]) to the terminal to which the power supply voltage VCC is applied. OUT [i] flows, and the output current I OUT The magnitude of [i] decreases over time. The operation realized by putting the output stage circuit 130[i] into the fast decay state is a type of decay mode operation. In the fast decay mode of the i-th channel, the output transistor M2[i] may be turned on, and the output transistor M3[i] may be turned off. In the fast decay mode of the i-th channel, all of the output transistors M1[i] to M4[i] may be turned off. Although not shown in particular, when transitioning from the power supply state to the slow decay state or the fast decay state, and in the reverse transition, a dead time is appropriately inserted to reliably prevent the series-connected output transistors from being turned on at the same time.

[0050] Comparing slow decay mode with fast decay mode, the output current I OUT The decay rate of [i] is the output current I OUT[i] is smaller than the decay rate of the output stage circuit 130[i]. As is well known, the slow decay mode and the fast decay mode each have their own advantages and disadvantages. In the decay mode operation of each unit operation, a mixed decay mode operation may be performed in which a period in which the state of the output stage circuit 130[i] is in the slow decay state and a period in which the state of the output stage circuit 130[i] is in the fast decay state are mixed. Based on a decay mode setting signal included in the control signal CNT, it is set as the decay mode operation whether to use a slow decay mode operation using only the slow decay state, a fast decay mode operation using only the fast decay state, or a mixed decay mode operation. "I TG We have explained the operation of each mode when “I [i]>0”. TG The same is true when [i]<0”.

[0051] In any case, in the power supply mode operation of the i-th channel, the output stage circuit 130[i] outputs an output current I OUT In the attenuation mode operation of the i-th channel, the output stage circuit 130[i] supplies power to the motor coil L[i] to increase the magnitude of the output current I OUT The power supply (output current I OUT [i] is put into a damping state in which the power supply to increase the magnitude of [i] is stopped.

[0052] The stepping motor 200 can perform control (hereinafter referred to as holding control) to stop the rotation of the rotor 210 and hold the angle of the rotor 210 unchanged. The angle of the rotor 210 refers to the electrical angle or mechanical angle of the rotor 210 as viewed from a predetermined fixed axis. When the electrical angle of the rotor 210 is held unchanged, the mechanical angle of the rotor 210 is also held unchanged. Holding control is performed by controlling the target current value I TG [1] and I TG[2] is constant while performing PWM constant current control on each channel, and the control circuits 120[1] and 120[2] are responsible for performing the holding control. However, even if the holding control is being performed, if an external force of a certain magnitude or more is applied to the rotor 210, the rotor 210 will rotate. In this embodiment, the external force refers to a force that rotates the rotor 210 against the holding control (i.e., changes the electrical angle and mechanical angle of the rotor 210) when the holding control is being performed by the control circuits 120[1] and 120[2], and is applied from outside the stepping motor 200 (outside the motor drive system SYS). For example, when the stepping motor 200 is used to drive a paper feed section in a copy machine or printer, the force of a user of the copy machine or printer pulling a paper caught in the paper feed section by hand is a type of external force.

[0053] When the rotor 210 rotates due to the application of an external force, a mismatch occurs between the electrical angle of the rotor 210 recognized by the motor drive system SYS and the actual mechanical angle of the rotor 210, which may cause subsequent control to become unstable. In addition, the application of an external force may cause mechanical failure or deterioration. If it were possible to detect the application of such an external force, it would be possible to take necessary measures, which would increase convenience. In consideration of this, the motor driver 100 is provided with an external force detection unit 160 for detecting the application of the external force.

[0054] The behavior of the output current when an external force is applied will be described with reference to FIG. 8. In FIG. 8, the first channel is focused on, and the output current I OUT [1] shows the waveform. As time progresses, the timing t A1 , t A2 , t A3 But they come in this order. At least at timing t A1 and t A3 In between, “I TG [1]=I REF " and "I TG [2]=I CONST " is used for retention control. CONST is a constant current value (e.g. IREF or (-I REF )) that is, at least the timing t A1 and t A3 During this time, the target current value I TG [1] is the current value I REF and maintain the target current value I TG [2] is the current value I CONST In the example of FIG. 8, the angle of the rotor 210 is held constant at timing t A1 and t A3 In principle, no external force is applied during the time t A2 The external force is applied to the rotor 210 only during a period during which a small external force is applied centered on the axis θ, and the rotor 210 rotates due to the external force.

[0055] By using PWM constant current control to realize the holding control, the output current I OUT [1] is the target current value I TG [1]. However, during the external force application period, the stepping motor 200 functions as a generator due to the rotation of the rotor 210 based on the external force, and energy is generated in the stepping motor 200. The generated energy generates the output current I OUT [1] increases. In addition, in FIG. 8, the output current I OUT [1] shows an example of a waveform having one peak, but multiple peaks may occur depending on how the rotor 210 rotates due to the application of an external force.

[0056] Figure 9 shows a part of the above external force application period (t A21 Output current I during the period from OUT [1] shows the waveform. Generally, when the state of each output transistor that constitutes the full bridge circuit switches between on and off, spike noise occurs. In order to suppress the effect of this spike noise in the PWM constant current control, a certain forced power supply time T FORCE The output stage circuit is forcibly put into a power supply state for (the minimum on-time). The forcible power supply state is called a forced power supply.

[0057] The operation related to forced power supply will be described by focusing on the i-th channel. In the i-th channel, the detection voltage V RNF Regardless of [i] (i.e., the reference voltage V REF [i] and the detection voltage V RNF The output stage circuit 130[i] is put into a power supply state and the above-mentioned power supply mode operation is executed (regardless of the high / low relationship between the output stage circuit 130[i] and the output stage circuit 130[i]). Then, in the i-th channel, the forced power supply time T FORCE After the output current I OUT The magnitude of [i] is the target current value I TG When the comparator 121[i] detects that the magnitude of the comparison result signal S[i] is equal to or larger than the magnitude of the comparison result signal S[i], CMP When [i] is at a low level, the power supply mode is switched to the attenuation mode, and the attenuation time T DECAY The decay mode operation is performed for the decay time T DECAY When the attenuation mode operation is performed for at least the forced power supply time T FORCE At timing t A22 and t A23 The period between and timing t A24 and t A25 During the forced power supply, the output current I OUT The magnitude of [i] is the target current value I TG [i] so that the forced power supply time T FORCE is set to a small time.

[0058] However, “I TG [1]=I REF In FIG. 9, which focuses on the first channel when A22 After that, the output current I OUT [1] is raised to the target current value I TG [1] (Here I REF In the example of Figure 9, the voltage rises above the time t A22 During the subsequent decay mode, the output current IOUT [1] is decreasing, but depending on the state of rotation of the rotor 210 based on the external force, the output current I OUT [1] may also increase. Thus, the output current I OUT The magnitude of [1] is the target current value I TG The size of [1] (here I REF ) is referred to as a current swell phenomenon. The current swell phenomenon of interest in this embodiment occurs due to the application of an external force when holding control is being performed. The current swell phenomenon due to an external force can occur regardless of whether the slow decay mode, the fast decay mode, or the mixed decay mode is used as the decay mode.

[0059] Target current value I TG [1] is positive, the current rise phenomenon occurs when the target current value I TG [1] can also occur when the output current I OUT [1] is the magnitude of the target current value I TG [1] size (target size is |I REF Although we focused on the first channel, the current rise phenomenon can occur in both the first and second channels.

[0060] The external force detection unit 160 shown in FIG. OUT In the waveform [i], the external force detection unit 160 can detect the occurrence of a specific current waveform that satisfies a predetermined current rise judgment condition. OUT The size of [i] is the target size (e.g. I REF ) and rises (at timing t A2The specific current waveform here is a current waveform due to a current swell phenomenon based on an external force, and the external force detection unit 160 determines that an external force is applied when the occurrence of the specific current waveform is detected. In other words, the external force detection unit 160 can detect the presence or absence of an external force being applied by detecting the presence or absence of the occurrence of a specific current waveform. It may be considered that the detection of the occurrence of a specific current waveform and the detection that an external force is being applied (in other words, the determination that an external force is being applied) are equivalent. In order to prevent a current waveform due to a minute swell from being detected as a specific current waveform, a current swell determination condition is set. In any of the embodiments described later, a current waveform determined to be a specific current waveform (i.e. a current waveform determined to be the presence of an external force) satisfies the current swell determination condition. The external force detection unit 160 detects the output current I OUT [1] and I OUT When the occurrence of a specific current waveform is detected in at least one of the waveforms in [2], it is determined that an external force is being applied, and a flag FLG (not shown) that it manages is set to "1." The initial value of the flag FLG is "0," and the value of the flag FLG is maintained at "0" unless it is determined that a specific current waveform is being generated (i.e., unless it is determined that an external force is being applied).

[0061] When "1" is assigned to the flag FLG, the external force detection unit 160 can transmit a predetermined detection signal indicating that application of an external force has been detected to the MPU 300. The external force detection unit 160 may transmit the detection signal in response to receiving a predetermined request signal from the MPU 300 when "1" is assigned to the flag FLG, or may transmit the detection signal when "1" is assigned to the flag FLG without the need for receiving a request signal or the like. After transmitting the detection signal, "0" may be assigned to the flag FLG, or the value of the flag FLG may be latched to "1".

[0062] By providing the external force detection unit 160, it becomes possible for the motor driver 100 and the motor drive system SYS to recognize the rotation of the rotor 210 caused by an external force that is not intended by the system side, and to take the necessary measures. For example, it becomes possible to issue a warning to the user or perform a predetermined error processing in response to the application of an external force to the paper feed unit as described above. This leads to the stability of the device in which the motor drive system SYS is incorporated.

[0063] It is also possible that when the application of an external force is detected, the control circuits 120[1] and 120[2] execute a predetermined initialization process at any timing thereafter. This ensures stable driving of the stepping motor 200 after the application of an external force. The initialization process is a process for setting the electrical angle of the rotor 210 to a predetermined initial angle, and may be the same as the process executed when the motor driver 100 is started up.

[0064] Below, specific operation examples, application techniques, modified techniques, etc. of the motor driver 100 (particularly the external force detection unit 160) will be described in multiple embodiments. The matters described above in this embodiment are applied to each of the following embodiments unless otherwise specified and unless there is a contradiction, and in each embodiment, the description in the embodiment may take precedence over any matter that contradicts the matters described above. Furthermore, unless there is a contradiction, the matters described in any of the multiple embodiments shown below can also be applied to any other embodiment (i.e., any two or more of the multiple embodiments can be combined).

[0065] <<First Example>> A first embodiment will be described. An external force detection unit 160 according to the first embodiment detects the presence or absence of an external force being applied (the presence or absence of a specific current waveform) using a first detection method. Fig. 10 is a schematic diagram for explaining the first detection method.

[0066] For the sake of clarity, TG [1]=I REF " and "I TG [2]=I CONSTThe first detection method will be described with a focus on the first channel, assuming that the holding control is performed at “I OUT [1]=I REF " and "I OUT [2]=I CONST The above unit operations are repeatedly executed with the goal of achieving ".

[0067] The external force detection unit 160 detects, for each unit operation during the detection period, the time during which the output stage circuit 130[1] is in a power supply state as the output on time. Among the multiple unit operations belonging to the detection period, the output on time of the j-th unit operation is denoted by the symbol “T ON It is represented as "[j]", where j represents any integer.

[0068] For example, the external force detection unit 160 determines the output on time T ON [j] may be detected. In this case, the external force detection unit 160 detects the length of time during which the gate voltage of the output transistor M1[1] is at a low level and the gate voltage of the output transistor M4[1] is at a high level in each unit operation as the output on time. For each of the output transistors M1[1] and M2[1] configured as a P-channel MOSFET, the output transistor is turned on when the gate voltage of the output transistor is at a low level, and turned off when the gate voltage of the output transistor is at a high level. For each of the output transistors M3[1] and M4[1] configured as an N-channel MOSFET, the output transistor is turned on when the gate voltage of the output transistor is at a high level, and turned off when the gate voltage of the output transistor is at a low level.

[0069] Alternatively, for example, the external force detection unit 160 determines the output on time T ON Alternatively, for example, the external force detection unit 160 may detect the external force [j] via the output terminal A OUT [1] Based on the voltage, the output on time T ON [j] may also be detected.

[0070] The external force detection unit 160 calculates a reference on-time T based on one or more detected output on-times during the detection period. ONREF For example, set the latest output on time as output on time T ON When [j] is obtained, the output on time T ON [j] Refer to itself On time T ONREF or set the total q output on times T ON [j-q+1], T ON [j-q+2] , T ON [j-1] and T ON [j] simple or weighted moving average of on time T ONREF where q is an arbitrary integer equal to or greater than 2.

[0071] 11, the detection target period includes a reference period (first period) and an evaluation period (second period) following the reference period. The external force detection unit 160 calculates a reference on-time T ONREF is set. Thereafter, the presence or absence of application of an external force during the evaluation period is detected. The external force detection unit 160 can set any period during the period during which the retention control is being performed as the reference period, and can also set any period after the reference period as the evaluation period. Here, it is assumed that no external force is applied during the reference period.

[0072] The external force detection unit 160 according to the first detection method detects the presence or absence of an external force being applied (the presence or absence of a specific current waveform being generated) based on the state of power supply to the motor coil L[1] by the output stage circuit 130[1] during the detection period. At this time, the time during which power is supplied from the output stage circuit 130[1] to the motor coil L[1] as a result of the output stage circuit 130[1] being in a power supply state, i.e., the output on time, is used as an index showing the state of power supply to the motor coil L[1]. In other words, the external force detection unit 160 according to the first detection method detects the presence or absence of an external force being applied based on a change in the output on time during the detection period. More specifically, the external force detection unit 160 according to the first detection method uses the output on times detected sequentially during the evaluation period as a reference on time T ONREF By comparing this with the actual value, it is possible to detect whether or not an external force has been applied during the evaluation period.

[0073] For example, the following can be done. Now, one output on-time during the evaluation period is called an evaluation on-time. The reference on-time T ONREF The prerequisite is that the evaluation on time is shorter than the CND 1A As above, the following conditions CND 1B or condition CND 1C If the condition CND is satisfied, the external force detection unit 160 determines that an external force has been applied during the evaluation period. 1B is the reference on-time T ONREF The absolute difference between the evaluation on-time and the predetermined difference threshold DIF TH1 The condition is that the number is equal to or greater than the number of units. 1C is the reference on-time T ONREF The ratio of the evaluation on-time to the predetermined ratio threshold RATIO TH1 The condition is that it is equal to or less than the above.

[0074] Therefore, the evaluation on time is the output on time T ON [n], where n is any integer, "T ONREF >T ON [n]” if the prerequisite is CND 1A is fulfilled, “|T ONREF -T ON [n]|≧DIF TH1 "If condition CND1B is fulfilled, "T ON [n] / T ONREF ≦RATIO TH1 " Then condition CND 1C is satisfied. Difference threshold DIF TH1 has a predetermined positive value in units of time. TH1 is a dimensionless quantity having a predetermined positive value less than 1 (e.g., 0.5).

[0075] The external force detection unit 160 treats a plurality of consecutive output on-times during the evaluation period as a plurality of evaluation on-times, and each of the plurality of evaluation on-times satisfies the prerequisite CND 1A Satisfies condition CND 1B or condition CND 1C It is also possible to determine that an external force has been applied during the evaluation period only when the above condition is satisfied.

[0076] If the rotor 210 rotates due to the application of an external force during the evaluation period, the output on time during the evaluation period is expected to be shorter than the output on time during the reference period. Therefore, it is possible to accurately detect whether an external force is being applied by determining whether each of the above conditions is met.

[0077] Regarding the first channel, TG [1]=I REF The first detection method has been described with a focus on the hold control of "I TG [1]=-I REF The first detection method can be similarly applied to the first channel (holding control referred to as "hold control"), and the first detection method can be similarly applied to the second channel.

[0078] <<Second Example>> A second embodiment will be described. The external force detection unit 160 according to the second embodiment detects whether or not an external force is applied (whether or not a specific current waveform is generated) by using a second detection method. In the second embodiment, for the sake of concreteness of the description, TG [1]=I REF " and "I TG [2]=ICONST It is assumed that the hold control is performed in "." Then, attention is paid to the detection target period (see FIG. 10) described in the first embodiment. FIG. 12 is a schematic diagram for explaining the second detection method.

[0079] The external force detection unit 160 according to the second detection method detects the output current I OUT A current threshold I that is greater than the target magnitude in [1] TH2 Set the current threshold I TH2 and the output current I OUT Based on a comparison with the magnitude of [1], the presence or absence of an external force (the occurrence or absence of a specific current waveform) is detected.

[0080] As mentioned above, the output current I OUT The target magnitude of [1] is the output current I OUT [1] is a target of the magnitude of the target current value I TG It refers to the magnitude of [1] (absolute value |ITG[1]|). TG [1]>0” is assumed, so the target current value I TG [i] is a current threshold I TH2 The target current value I TG Considering that [1] can be negative, the current threshold I TH2 may be set according to the following formula (2A) or formula (2B): where Δ2 has a positive predetermined value, and k2 has a predetermined value greater than 1 (for example, 1.1). I TH2 =|I TG [1]|+Δ2···(2A) I TH2 =|I TG [1]|×k2···(2B)

[0081] The external force detection unit 160 according to the second detection method detects a current threshold I TH2 Output current I OUT When [1] is detected, it is determined that an external force is applied. The external force detection unit 160 detects the output current I OUT[1] may be detected. For example, the output current I OUT [1] is sampled and detected, and the detected output current I OUT [1] is the current threshold I TH2 When the output current I OUT [1] is sampled, and multiple output currents I sampled at multiple unit operations are OUT [1] is the current threshold I TH2 Only when the above condition is satisfied, it may be determined that an external force has been applied.

[0082] The external force detection unit 160 outputs a current I OUT Receives a signal indicating the detection result of [1]. Output current I OUT The signal indicating the detection result of [1] is the detection voltage V obtained using resistor R[1]. RNF [1], or a signal obtained using a current sensor other than the resistor R[1]. The current sensor other than the resistor R[1] is a signal obtained by detecting the output current I OUT [1] is the point where the output current I OUT [1] is installed at a point where a current flows proportional to the current, and the output current I OUT [1] is detected (output current I OUT [1] (including detection of the size of the object).

[0083] Regarding the first channel, TG [1]=I REF The second detection method has been described with a focus on the retention control of "I TG [1]=-I REF The second detection method can be similarly applied to the second channel (holding control referred to as "hold control").

[0084] <<Third Example>> A third embodiment will be described. The external force detection unit 160 according to the third embodiment detects whether or not an external force is applied (whether or not a specific current waveform is generated) by using a third detection method. In the third embodiment, for the sake of concreteness of the description, the term “I TG [1]=I REF " and "I TG [2]=I CONST It is assumed that the hold control is performed at "." Then, attention is paid to the detection target period (see FIG. 10) described in the first embodiment. FIG. 13 is a schematic diagram for explaining the third detection method.

[0085] The external force detection unit 160 according to the third detection method detects the output current I OUT Based on the slope of the increase in the magnitude of [1], the presence or absence of an external force (the occurrence or absence of a specific current waveform) is detected. OUT [1]>0”, the output current I OUT The increase in the magnitude of [1] is the output current I OUT This is equivalent to an increase in the output current I OUT The slope of the increase in the magnitude of [1] is called the current slope SLP.

[0086] The external force detection unit 160 detects, for each unit operation during the detection period, an output current I OUT [1] Detect the current gradient SLP of the jth unit operation among the multiple unit operations belonging to the detection period. OUT The current slope SLP in [1] is specifically represented by the symbol “SLP[j]”, where j represents an arbitrary integer.

[0087] The external force detection unit 160 detects the current gradient SLP by outputting the output current I OUT Receives a signal indicating the detection result of [1]. Output current I OUT The signal indicating the detection result of [1] is the detection voltage V obtained using resistor R[1] as shown in the second embodiment. RNF[1] or a signal obtained using a current sensor other than the resistor R[1]. For the j-th unit operation, the output current I OUT [1] Detection value and output current I at the end of power supply mode operation OUT The current slope SLP[j] is calculated by dividing the absolute value of the difference with the detection value [1] by the execution time of the power supply mode operation.

[0088] The external force detection unit 160 according to the third detection method detects a predetermined slope threshold SLP TH3 When a current gradient SLP[j] equal to or greater than the predetermined gradient threshold SLP is detected, it is determined that an external force is applied. TH3 If the current slopes detected consecutively (for example, current slopes SLP[n], SLP[n+1], and SLP[n+2]) are all equal to or greater than the slope threshold SLP TH3 Only when the above condition is satisfied, it may be determined that an external force has been applied.

[0089] If the rotor 210 rotates due to the application of an external force during the detection period, the current gradient SLP is expected to become large, and therefore it is possible to detect whether or not an external force is being applied using the above-mentioned method.

[0090] Alternatively, in the third detection method, a reference period and an evaluation period may be set as shown in Fig. 11, and the current gradient SLP during the reference period may be compared with the current gradient SLP during the evaluation period to detect whether an external force is applied (whether a specific current waveform is generated). This will be described as a modified third detection method. The significance of the reference period and the evaluation period is as described in the first embodiment.

[0091] The external force detection unit 160 calculates a reference slope SLP based on one or more current slopes SLP detected in a reference period. REF For example, when the current slope SLP[j] is obtained as the latest current slope SLP, the current slope SLP[j] itself is set as the reference slope SLPREF Set as, or refer to the simple moving average or weighted moving average of q current slopes SLP[j - q + 1], SLP[j - q + 2], ···, SLP[j - 1] and SLP[j] as the reference slope SLP REF Set as. Here, q is an arbitrary integer greater than or equal to 2.

[0092] The external force detection unit 160 according to the modified third detection method detects the presence or absence of an external force (the presence or absence of a specific current waveform) based on the change in the current slope SLP during the detection target period. More specifically, the external force detection unit 160 according to the modified third detection method uses the current slope SLP sequentially detected during the evaluation period as the reference slope SLP REF By comparing with, it detects the presence or absence of an external force (the presence or absence of a specific current waveform) during the evaluation period.

[0093] For example, it can be done as follows. Now, one current slope SLP during the evaluation period is referred to as the evaluation slope. The reference slope SLP REF On the premise that the evaluation slope is greater than the reference slope SLP, the precondition CND 3A is satisfied, and then the following condition CND 3B or condition CND 3C When satisfied, the external force detection unit 160 determines that an external force is applied during the evaluation period. Condition CND 3B is that the absolute value of the difference between the reference slope SLP REF and the evaluation slope is greater than or equal to a predetermined difference threshold DIF TH3 . Condition CND 3C is that the ratio of the evaluation slope to the reference slope SLP REF is greater than or equal to a predetermined ratio threshold RATIO TH3 .

[0094] Therefore, when the evaluation slope is the current slope SLP[n] (n is an arbitrary integer), “SLP REF <SLP[n]” then the precondition CND 3A is satisfied, “|SLP[n] - SLP REF | ≧ DIF TH3 ” then condition CND 3B is satisfied, "SLP[n] / SLP REF ≧RATIO TH3 " Then condition CND 3C is satisfied. Difference threshold DIF TH3 has a predetermined positive value. TH3 has a certain positive value greater than 1 (e.g., 2).

[0095] The external force detection unit 160 treats a plurality of successive current gradients SLP during the evaluation period as a plurality of evaluation gradients, and determines whether each of the plurality of evaluation gradients satisfies the prerequisite CND 3A Satisfies condition CND 3B or condition CND 3C It is also possible to determine that an external force has been applied during the evaluation period only when the above condition is satisfied.

[0096] Regarding the first channel, TG [1]=I REF Although the third detection method has been described with a focus on the retention control of ", the retention control of other conditions (e.g., "I TG [1]=-I REF The third detection method can be similarly applied to the first channel (holding control referred to as "hold control"), and the third detection method can be similarly applied to the second channel.

[0097] <<Fourth Example>> A fourth embodiment will be described. The motor driver 100 is provided with a TR current detection unit for individually detecting the current flowing through the multiple output transistors constituting the half-bridge circuits 132[1] and 132[2]. Fig. 14 shows the TR current detection unit provided for the half-bridge circuit 132[i] of the i-th channel together with the half-bridge circuit 132[i]. Note that the parasitic diodes of each transistor are not shown in Fig. 14.

[0098] The TR current detection unit for the half-bridge circuit 132[i] includes a sense transistor SM1[i] and a sense resistor R1[i] corresponding to the output transistor M1[i], a sense transistor SM2[i] and a sense resistor R2[i] corresponding to the output transistor M2[i], a sense transistor SM3[i] and a sense resistor R3[i] corresponding to the output transistor M3[i], and a sense transistor SM4[i] and a sense resistor R4[i] corresponding to the output transistor M4[i]. The sense transistors SM1[i] and SM2[i] are configured as P-channel MOSFETs in accordance with the output transistors M1[i] and M2[i], and the sense transistors SM3[i] and SM4[i] are configured as N-channel MOSFETs in accordance with the output transistors M3[i] and M4[i].

[0099] In the transistors SM1[i] and M1[i], the sources are connected together and the gates are connected together. Similarly, in the transistors SM2[i] and M2[i], the sources are connected together and the gates are connected together. Similarly, in the transistors SM3[i] and M3[i], the sources are connected together and the gates are connected together. Similarly, in the transistors SM4[i] and M4[i], the sources are connected together and the gates are connected together.

[0100] The drain of the sense transistor SM1[i] is connected to the drain of the output transistor M1[i] via a sense resistor R1[i]. The drain of the sense transistor SM2[i] is connected to the drain of the output transistor M2[i] via a sense resistor R2[i]. The drain of the sense transistor SM3[i] is connected to the drain of the output transistor M3[i] via a sense resistor R3[i]. The drain of the sense transistor SM4[i] is connected to the drain of the output transistor M4[i] via a sense resistor R4[i].

[0101] The source area ratio between the output transistor and the sense transistor is set so that the ratio between the drain current flowing through a certain output transistor and the drain current flowing through the sense transistor corresponding to the output transistor is a predetermined ratio (for example, 100:1). Therefore, the TR current detection unit can detect the current flowing through the output transistors M1[i], M2[i], M3[i], and M4[i] by detecting the voltage drop of the sense resistors R1[i], R2[i], R3[i], and R4[i]. The currents flowing through the output transistors M1[i], M2[i], M3[i], and M4[i] are represented by currents I1[i], I2[i], I3[i], and I4[i], respectively.

[0102] The TR current detection unit for the first channel is an example of a current sensor other than the resistor R[1] described in the second and third embodiments. The same applies to the second channel.

[0103] Output current I OUT Since the current I[i] flows through any two of the output transistors M1[i] to M4[i], the external force detection unit 160 calculates the output current I based on the gate voltages of the output transistors M1[i] to M4[i] (i.e., the on / off states of the output transistors M1[i] to M4[i]) and the currents I1[i] to I4[i]. OUT In addition, based on the detection result of the current flowing through the output transistors M1[i] to M4[i] (i.e., the voltage drop across the sense resistors R1[i] to R4[i]), the external force detection unit 160 can detect the output current I OUT It is possible to obtain the current waveforms of the output transistors M1[i] to M4[i] according to [i]. The current waveforms of the output transistors M1[i] to M4[i] correspond to the waveforms of the currents I1[i] to I4[i].

[0104] On the other hand, although detailed waveforms are not shown, when an external force is applied, a characteristic current waveform that is not seen when no external force is applied appears in the current waveforms of the output transistors M1[i]-M4[i]. Therefore, in the fourth detection method according to the fourth embodiment, it is possible to detect whether an external force is applied (whether a specific current waveform is generated) as follows.

[0105] For example, “I TG [1]=I REF The current waveforms of the output transistors M1[1] to M4[1] that would be observed when the rotor 210 rotates due to the application of an external force while holding control is being executed at "ON" are obtained during the design stage of the motor driver 100 through appropriate experiments, etc. The current waveforms obtained here are set as reference current waveforms (predetermined current waveforms), and waveform information indicating the reference current waveforms is stored in a non-volatile memory (not shown) in the external force detection unit 160. Thereafter, when the motor driver 100 is incorporated into the motor drive system SYS and put into operation, the external force detection unit 160 detects the above-mentioned target During the detection period (see FIG. 10), the current waveforms of the output transistors M1[1]-M4[1] (detection results of currents I1[1]-I4[1]) are compared with a reference current waveform based on waveform information in a non-volatile memory, and the presence or absence of an external force (the occurrence or absence of a specific current waveform) can be detected based on the similarity between the two waveforms. Any known method can be used as a method for evaluating the similarity between waveforms. When the similarity between the current waveforms of the output transistors M1[1]-M4[1] acquired during the target detection period and the reference current waveform is equal to or greater than a predetermined threshold, it can be determined that an external force is applied.

[0106] Regarding the first channel, TG [1]=I REF The fourth detection method has been described with a focus on the retention control of "I TG [1]=-I REF The fourth detection method can be similarly applied to the first channel (holding control referred to as "hold control"), and the fourth detection method can be similarly applied to the second channel.

[0107] The motor driver 100 is provided with an overcurrent protection circuit (not shown). The overcurrent protection circuit detects an output current I OUTWhen it detects that current I1[i] is flowing, it determines that the i-th channel is in an overcurrent state. When it determines that the i-th channel is in an overcurrent state, the overcurrent protection circuit turns off all output transistors (M1[i] to M4[i]) of the i-th channel and latches (holds) these off states, or turns off all output transistors (M1[1] to M4[1] and M1[2] to M4[2]) of the first and second channels and latches (holds) these off states. The overcurrent protection circuit determines the output current I to be compared with the overcurrent protection threshold based on the detection result of currents I1[i] to I4[i] by the TR current detection unit. OUT That is, the overcurrent protection circuit detects the magnitude of the current I1[i] to I4[i] detected based on the voltage drops of the sense resistors R1[i] to R4[i] as the output current I OUT [i] as the magnitude of the reference output current I OUT The magnitude of [i] can be compared with the overcurrent protection threshold, which is the current threshold I TH2 (see FIG. 12). In other words, the external force detection unit 160 detects an output current I OUT The application of external force is detected by detecting the rise of [i].

[0108] <<Fifth Example>> A fifth embodiment will now be described.

[0109] The motor drive system SYS and motor driver 100 according to the present embodiment can be applied to, for example, a paper feed section in a copy machine or printer, or a reading section in a scanner, and can also be applied to any device that uses a stepping motor.

[0110] Regarding any signal or voltage, the relationship between the high level and the low level may be reversed without departing from the spirit of the above.

[0111] The driver device according to the present disclosure includes an output stage circuit that supplies an output current to a coil by applying a voltage to the coil, and a control circuit that controls the output stage circuit, and moves a movable part using a magnetic force generated by the supply of the output current, and the control circuit has a configuration that can execute a holding control that stops the movement of the movable part through control of the output stage circuit and holds the state of the movable part unchanged. Although the above-mentioned example applies the present disclosure to a stepping motor having a motor coil and a rotor as a coil and a movable part, the device to which the above-mentioned configuration can be applied is not limited to a stepping motor. For example, the present disclosure may be applied to a solenoid actuator. A type of solenoid actuator has a coil and a movable magnetic pole. In a solenoid actuator, a magnetic field is generated by supplying a current (output current) to the coil by applying a voltage to the coil, and the movable magnetic pole moves (linear movement or rotational movement) due to the generated magnetic field. When the driver device according to the present disclosure is applied to a solenoid actuator, the coil and the movable part of the driver device according to the present disclosure correspond to the coil and the movable magnetic pole of the solenoid actuator.

[0112] The embodiments of the present disclosure can be modified in various ways as appropriate within the scope of the technical ideas set forth in the claims. The above embodiments are merely examples of the embodiments of the present disclosure, and the meanings of the terms of the present disclosure or each component are not limited to those described in the above embodiments. The specific numerical values ​​shown in the above description are merely examples, and can be changed to various numerical values ​​as a matter of course.

[0113] <<Additional Notes>> An addendum will be provided for the present disclosure, specific examples of which have been given in the above-described embodiments.

[0114] A driver device according to an aspect of the present disclosure is a driver for driving an output current (I OUTa control circuit (120[i]) for controlling the output stage circuit, the control circuit being capable of executing hold control for stopping the movement of the movable part and holding the state of the movable part unchanged (for example, holding the angle of the rotor unchanged) through control of the output stage circuit, and the driver device being configured (first configuration) to further include an external force detection unit (160) for detecting the presence or absence of an external force that changes the state of the movable part against the hold control, based on the state of power supplied to the coil by the output stage circuit (see first embodiment; FIG. 10), based on the output current (see second and third embodiments; FIGS. 12 and 13), or based on the current flowing in the output stage circuit (see fourth embodiment; FIG. 14) when the hold control is being performed by the control circuit.

[0115] In the driver device according to the first configuration (see Figs. 5 to 7), the control circuit outputs a current setting signal (CNT P [i], V REF [i]) and a current detection signal (V RNF [i]), and the control circuit controls the magnitude of the output current to a target magnitude (I TG [i]), a unit operation which is a set of a power supply mode operation and a decay mode operation is repeatedly executed, and the output stage circuit is set to a power supply state in which power is supplied to the coil to increase the magnitude of the output current in the power supply mode operation, and is set to a decay state in which the power supply is stopped to decay the magnitude of the output current in the decay mode operation (second configuration).

[0116] In the driver device according to the second configuration, in each unit operation, the control circuit may be configured to execute the power supply mode operation for at least a predetermined forced power supply time, and when it is detected that the magnitude of the output current is equal to or greater than the target magnitude after the forced power supply time has elapsed since the start of the power supply mode operation, terminate the power supply mode operation and execute the decay mode operation for a predetermined decay time (third configuration).

[0117] In the driver device according to the second or third configuration (first embodiment, see FIG. 10), the external force detection unit determines the time during which the output stage circuit is in the power supply state in each unit operation as an output on time (T ON [j]), and during a detection period in which the control circuit performs the holding control, the application of the external force is detected based on a change in the output on-time (fourth configuration).

[0118] In the driver device of the above fourth configuration, the detection target period may include a first period and a second period after the first period, and the external force detection unit may set a reference on-time based on one or more output on-times detected in the first period, and then detect whether or not the external force is applied during the second period based on a comparison between the reference on-time and the output on-time during the second period (fifth configuration).

[0119] In the driver device according to the fifth configuration, the external force detection unit may be configured (sixth configuration) to determine that the external force has been applied during the second period when an evaluation on-time, which is the output on-time during the second period, is shorter than the reference on-time, and an absolute value of a difference between the reference on-time and the evaluation on-time is equal to or greater than a predetermined difference threshold, or when a ratio of the evaluation on-time to the reference on-time is equal to or less than a predetermined ratio threshold.

[0120] In the driver device according to the second or third configuration (second embodiment, see FIG. 12), the external force detection unit detects the target magnitude (I REF) greater than the current threshold (I TH2 ) and detects whether or not the external force is being applied based on a comparison between the current threshold and the magnitude of the output current (seventh configuration).

[0121] In the driver device according to the seventh configuration, the external force detection unit may be configured (eighth configuration) to determine that the external force is applied when the output current having a magnitude equal to or greater than the current threshold is detected during the detection period.

[0122] In a driver device according to the second or third configuration (third embodiment, see FIG. 13), the external force detection unit may be configured (ninth configuration) to detect the presence or absence of the external force based on the slope (SLP[j]) of the increase in the magnitude of the output current when the output stage circuit is in the power supply state during a detection period in which the holding control is performed by the control circuit.

[0123] In the driver device according to the ninth configuration, the external force detection unit may be configured to detect, for each unit operation during the detection period, the slope of the increase in the magnitude of the output current when the output stage circuit is in the power supply state, and determine that the external force is being applied when the slope is detected to be equal to or greater than a predetermined slope threshold (tenth configuration).

[0124] In the driver device of the 9th configuration, the detection target period may include a first period and a second period after the first period, and the external force detection unit may set a reference tilt based on one or more of the tilts detected in the first period, and then detect whether or not the external force is applied during the second period based on a comparison between the reference tilt and the tilt during the second period (11th configuration).

[0125] In the driver device of the 11th configuration, the external force detection unit may be configured (12th configuration) to determine that the external force has been applied during the second period when the evaluation slope, which is the slope during the second period, is greater than the reference slope, and when the absolute value of the difference between the reference slope and the evaluation slope is greater than or equal to a predetermined difference threshold, or when the ratio of the evaluation slope to the reference slope is greater than or equal to a predetermined ratio threshold.

[0126] In a driver device according to any one of the first to third configurations (fourth embodiment, see FIG. 14), the output stage circuit may have a full bridge circuit composed of four output transistors, a current corresponding to the output current flows to each output transistor, and the external force detection unit acquires a current waveform of each output transistor from a detection result of the current flowing to each output transistor (corresponding to a voltage drop at R1[i] to R4[i]), and detects whether or not the external force is being applied based on a comparison between the current waveform of each output transistor and a predetermined current waveform (reference current waveform) during a detection period in which the holding control is performed by the control circuit (thirteenth configuration).

[0127] In the driver device of any of the above-mentioned configurations 1 to 13, the external force detection unit may be configured (configuration 14) to transmit a predetermined detection signal to an external device of the driver device when the application of the external force is detected.

[0128] With respect to a driver device according to any one of the above first to fourteenth configurations, the driver device may be a driver device for a stepping motor, the coil is provided on a stepping motor, the movable part is a rotor of the stepping motor, the movement of the movable part is rotation of the rotor, the holding control holds the angle of the rotor unchanged, and the external force is an external force that rotates the rotor against the holding control (fifteenth configuration).

[0129] In the driver device of the above-mentioned 15th configuration, a plurality of coils may be provided in the stepping motor as the coil, a plurality of channel circuits may be assigned to the plurality of coils in the driver device, the output stage circuit and the control circuit may be provided for each of the channel circuits, and the rotor may be rotated by controlling the output current in each channel circuit (16th configuration). [Explanation of symbols]

[0130] SYS Motor drive system 100 Motor Driver CH[1], CH[2] channel circuit 120[1], 120[2] Control circuit 130[1], 130[2] Output stage circuit 160 External force detection unit 200 Stepping Motor 210 Rotor L[1], L[2] Motor coil 300 MPU

Claims

1. A driver device for moving a movable part using a magnetic force generated by supplying an output current to a coil, the driver device comprising: an output stage circuit for supplying the output current to the coil by applying a voltage to the coil; and a control circuit for controlling the output stage circuit, the control circuit being capable of executing a holding control for stopping the movement of the movable part through control of the output stage circuit and holding the state of the movable part unchanged; The driver device The control circuit further includes an external force detection unit that detects whether or not an external force that changes the state of the movable part against the holding control is applied based on the state of power supply to the coil by the output stage circuit, the output current, or the current flowing through the output stage circuit when the holding control is being performed by the control circuit. , driver device.

2. the control circuit controls the output stage circuit based on a current setting signal that sets a target of the output current to be supplied to the coil and a current detection signal that indicates a detection result of the output current; the control circuit repeatedly executes a unit operation, which is a set of a power supply mode operation and an attenuation mode operation, in order to cause a magnitude of the output current to approximate a target magnitude set by the current setting signal, during the holding control; The output stage circuit is in a power supply state in which power is supplied to the coil in order to increase the magnitude of the output current in the power supply mode operation, and is in a decay state in which the power supply is stopped in order to decay the magnitude of the output current in the decay mode operation.

2. The driver device according to claim 1.

3. In each unit operation, the control circuit executes the power supply mode operation for at least a predetermined forced power supply time, and when it is detected that the magnitude of the output current is equal to or greater than the target magnitude after the forced power supply time has elapsed since the start of the power supply mode operation, the control circuit terminates the power supply mode operation and executes the decay mode operation for a predetermined decay time.

3. The driver device according to claim 2.

4. The external force detection unit detects a time during which the output stage circuit is in the power supply state in each unit operation as an output on time, and detects the presence or absence of the application of the external force based on a change in the output on time during a detection target period during which the holding control is performed by the control circuit.

4. A driver device according to claim 2 or 3.

5. the detection target period includes a first period and a second period that is subsequent to the first period, The external force detection unit sets a reference on-time based on one or more output on-times detected in the first period, and then detects whether or not the external force is applied during the second period based on a comparison between the reference on-time and the output on-time during the second period.

5. The driver device according to claim 4.

6. The external force detection unit determines that the external force is applied in the second period when an evaluation on-time, which is the output on-time during the second period, is shorter than the reference on-time, and an absolute value of a difference between the reference on-time and the evaluation on-time is equal to or greater than a predetermined difference threshold, or when a ratio of the evaluation on-time to the reference on-time is equal to or less than a predetermined ratio threshold.

6. The driver device according to claim 5.

7. The external force detection unit detects the presence or absence of the application of the external force based on a comparison between a current threshold value and a magnitude of the output current, using a current threshold value greater than the target magnitude during a detection period in which the holding control is performed by the control circuit.

4. A driver device according to claim 2 or 3.

8. The external force detection unit determines that the external force is applied when the output current having a magnitude equal to or greater than the current threshold is detected during the detection period.

8. The driver device according to claim 7.

9. The external force detection unit detects the presence or absence of the application of the external force based on a gradient of an increase in the magnitude of the output current when the output stage circuit is in the power supply state during a detection period in which the control circuit performs the holding control.

4. A driver device according to claim 2 or 3.

10. The external force detection unit detects, for each unit operation during the detection period, a gradient of an increase in the magnitude of the output current when the output stage circuit is in the power supply state, and determines that the external force is being applied when the gradient is equal to or greater than a predetermined gradient threshold.

10. The driver device according to claim 9.

11. the detection target period includes a first period and a second period that is subsequent to the first period, The external force detection unit sets a reference tilt based on one or more of the tilts detected in the first period, and then detects whether or not the external force is applied during the second period based on a comparison between the reference tilt and the tilt during the second period.

10. The driver device according to claim 9.

12. The external force detection unit determines that the external force has been applied in the second period when an evaluation slope, which is the slope during the second period, is greater than the reference slope, and an absolute value of a difference between the reference slope and the evaluation slope is equal to or greater than a predetermined difference threshold, or when a ratio of the evaluation slope to the reference slope is equal to or greater than a predetermined ratio threshold.

12. A driver device as claimed in claim 11.

13. the output stage circuit has a full bridge circuit configured with four output transistors, A current corresponding to the output current flows through each output transistor; The external force detection unit acquires a current waveform of each output transistor from a detection result of a current flowing through each output transistor, and detects the presence or absence of the application of the external force based on a comparison between the current waveform of each output transistor and a predetermined current waveform during a detection period in which the control circuit performs the holding control.

4. A driver device according to claim 1.

14. When the application of the external force is detected, the external force detection unit transmits a predetermined detection signal to an external device of the driver device. A driver device according to any one of claims 1 to 13.

15. The driver device is a driver device for a stepping motor, The coil is provided in a stepping motor, the movable part is a rotor of the stepping motor, and the movement of the movable part is rotation of the rotor, In the holding control, the angle of the rotor is held constant, The external force is an external force that rotates the rotor against the holding control. A driver device according to any one of claims 1 to 14.

16. A plurality of coils are provided in the stepping motor as the coil, and in the driver device, a plurality of channel circuits are assigned to the plurality of coils, and the output stage circuit and the control circuit are provided for each of the channel circuits, and the rotor rotates by controlling the output current in each channel circuit.

16. A driver device as claimed in claim 15.

Citation Information

Patent Citations

  • Stepout detector for stepping motor

    JP1985046798A

  • Stepping-motor controller

    JP1998285995A

  • Method and equipment for controlling rotation of stepping motor and control of rotation of wind-direction member in air spit hole device for vehicle using the method and the equipment

    JP1999262295A

  • Drive device for motor, controlling method for motor drive device, and computer-readable storage medium with recorded motor drive control program for motor drive

    JP2002017099A

  • Electric motor

    JP2008022639A