Triangular wave generation circuit, motor driver circuit, positioning device and hard disk device using the same
The triangular wave generation circuit addresses inefficiencies in existing methods by using a capacitor, current sources, and controlled switches to produce adjustable triangular waves, enhancing precision and reducing circuit size in motor driver applications.
Patent Information
- Application Number
- JP2023024664
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing methods for generating analog triangular wave signals are inefficient and lack flexibility in adjusting current sources, leading to suboptimal performance in applications requiring precise control.
A triangular wave generation circuit comprising a capacitor, source and sink current sources, reference voltage generation, and switches controlled by a repeating controller to generate a triangular wave signal with adjustable current sources and complementary switching, allowing for precise voltage definition and simplified controller configuration.
Enables the generation of precise triangular waves with adjustable peaks and bottoms, facilitating improved control in motor driver circuits and positioning devices, reducing circuit area and enhancing accuracy.
Smart Images

Figure 2024118308000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a triangular wave generating circuit. [Background technology]
[0002] An analog triangular wave signal is used to generate a pulse width modulation (PWM) signal, which is typically generated by charging and discharging a capacitor with a constant current. Summary of the Invention [Problem to be solved by the invention]
[0003] The present disclosure has been made in such a situation, and it is an exemplary purpose of an embodiment thereof to provide a triangular wave generating circuit. [Means for solving the problem]
[0004] A triangular wave generating circuit according to an embodiment of the present disclosure includes a capacitor having one end grounded, a source current source that sources a source current from its output node, a sink current source that sinks a sink current from its output node, a reference voltage generating circuit that generates an upper reference voltage and a lower reference voltage, a first switch connected between the output node of the source current source and the capacitor, a second switch connected between the output node of the sink current source and the capacitor, a third switch having one end connected to the output node of the source current source and the other end receiving the lower reference voltage, and a reference voltage generating circuit having one end grounded. and a fourth switch connected to the first end and receiving an upper reference voltage at the other end; and a controller that repeats the operations of (i) turning on the first switch and the third switch and turning off the second switch in a first period, (ii) turning on the first switch and turning off the second switch and the third switch in a second period, (iii) turning on the second switch and the fourth switch and turning off the first switch in a third period, and (iv) turning on the second switch and turning off the first switch and the fourth switch in a fourth period, and is capable of outputting a triangular wave signal based on the voltage generated in the capacitor.
[0005] Any combination of the above components, or mutual substitution of components or expressions between methods, devices, systems, etc., are also effective as aspects of the present invention or the present disclosure. Furthermore, the description in this section (Means for Solving the Problems) does not explain all essential features of the present invention, and therefore, subcombinations of the described features may also constitute the present invention. Effect of the Invention
[0006] According to an aspect of the present disclosure, a triangular wave signal can be generated. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a circuit diagram of a triangular wave generating circuit according to an embodiment. [Diagram 2] FIG. 2 is an equivalent circuit diagram of the first period φ1 of the triangular wave generating circuit of FIG. [Diagram 3] FIG. 3 is an equivalent circuit diagram of the second period φ2 of the triangular wave generating circuit of FIG. [Figure 4] FIG. 4 is an equivalent circuit diagram of the third period φ3 of the triangular wave generating circuit of FIG. [Diagram 5] FIG. 5 is an equivalent circuit diagram of the fourth period φ4 of the triangular wave generating circuit of FIG. [Figure 6] FIG. 6 is an operational waveform diagram of the triangular wave generating circuit of FIG. [Figure 7] FIG. 7 is a circuit diagram of a triangular wave generating circuit according to an embodiment. [Figure 8] FIG. 8 is an operational waveform diagram of the triangular wave generating circuit in the trimming mode. [Figure 9] FIG. 9 is an operational waveform diagram of the triangular wave generating circuit in the trimming mode. [Figure 10] FIG. 10 is an operational waveform diagram of the triangular wave generating circuit in the trimming mode. [Figure 11] FIG. 11 is a circuit diagram showing an example of the configuration of the controller. [Figure 12]FIG. 12 is a circuit diagram showing an example of the configuration of the controller. [Figure 13] FIG. 13 is a diagram showing input / output characteristics of the motor driver circuit of FIG. [Figure 14] FIG. 14 is a block diagram of a positioning device according to a modified example. [Figure 15] FIG. 15 is an operation waveform diagram of the motor driver circuit of FIG. [Figure 16] FIG. 16 is a diagram showing a hard disk drive equipped with a motor driver circuit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] (Overview of the embodiment) A summary of some exemplary embodiments of the present disclosure will be described. This summary is intended to provide a simplified overview of some concepts of one or more embodiments for a basic understanding of the embodiments as a prelude to the detailed description that follows, and is not intended to limit the scope of the invention or disclosure. This summary is not intended to be a comprehensive overview of all possible embodiments, nor is it intended to identify key elements of all embodiments or to delineate the scope of some or all aspects. For convenience, the term "one embodiment" may be used to refer to one embodiment (example or variant) or multiple embodiments (examples or variants) disclosed in this specification.
[0009] A triangular wave generating circuit according to one embodiment includes a capacitor having one end grounded, a source current source that sources a source current from its output node, a sink current source that sinks a sink current from its output node, a reference voltage generating circuit that generates an upper reference voltage and a lower reference voltage, a first switch connected between the output node of the source current source and the capacitor, a second switch connected between the output node of the sink current source and the capacitor, a third switch having one end connected to the output node of the source current source and the other end receiving the lower reference voltage, and a second switch having one end connected to the output node of the sink current source. The capacitor is capable of outputting a triangular wave signal based on the voltage generated in the capacitor. The capacitor is also equipped with a fourth switch connected to the first terminal and receiving an upper reference voltage at the other terminal, and a controller that repeats the operations of (i) turning on the first switch and the third switch and turning off the second switch in a first period, (ii) turning on the first switch and turning off the second switch and the third switch in a second period, (iii) turning on the second switch and the fourth switch and turning off the first switch in a third period, and (iv) turning on the second switch and turning off the first switch and the fourth switch in a fourth period.
[0010] According to this configuration, it is possible to generate a triangular wave signal whose peak is defined by the upper reference voltage and whose bottom is defined by the lower reference voltage.
[0011] In one embodiment, the controller may (i) turn off the fourth switch in a first period, (ii) turn on the fourth switch in a second period, (iii) turn off the third switch in a third period, and (iv) turn on the third switch in a fourth period. This allows the pair of the first switch and the second switch to be switched in a complementary manner, and the pair of the third switch and the fourth switch to be switched in a complementary manner, thereby simplifying the configuration of the controller.
[0012] In one embodiment, the controller may use a clock signal to generate a first control pulse and a second control pulse that is delayed a predetermined time from the first control pulse, and control the first switch and the second switch in a complementary manner in response to the first control pulse, and control the third switch and the fourth switch in a complementary manner in response to the second control pulse.
[0013] In one embodiment, the source current source may be capable of adjusting the amount of source current, and the sink current source may be capable of adjusting the amount of sink current.
[0014] In one embodiment, the device may further include a first amplifier that non-invertingly amplifies the voltage generated in the capacitor based on a common voltage that is the midpoint voltage between the upper reference voltage and the lower reference voltage, and a second amplifier that inverts and amplifies the output voltage of the first amplifier with a gain of -1, and the output voltage of the second amplifier may be output as a first triangular wave signal, and the output voltage of the first amplifier may be output as a second triangular wave signal.
[0015] In one embodiment, the common voltage is half the voltage of the power supply voltage, and the reference voltage generating circuit may include a first resistor and a second resistor connected in series between a power supply line on which the power supply voltage is generated and a common voltage node on which the common voltage is generated, and a third resistor and a fourth resistor connected in series between the common voltage node and ground. The ratio of the first resistor to the second resistor may be equal to the ratio of the fourth resistor to the third resistor.
[0016] In one embodiment, the triangular wave generating circuit further includes a variable current source, a first comparator that compares the first triangular wave signal with the output voltage of the variable current source, a second comparator that compares the second triangular wave signal with the output voltage of the variable current source, a first latch that latches the output of the first comparator in response to a timing signal corresponding to the start of the first period or the start of the third period, and a second latch that latches the output of the second comparator in response to the timing signal, and may be capable of adjusting the source current source and the sink current source based on at least one of the output of the first latch and the output of the second latch.
[0017] A motor driver circuit according to one embodiment may include a first output terminal to be connected to a first end of a motor to be driven via a current sense resistor, a second output terminal to be connected to a second end of the motor, an error detector to generate an analog error signal based on an error between a current feedback signal and a reference signal based on a voltage drop across the current sense resistor, a feedback controller to generate a voltage command signal based on the analog error signal, a triangular wave generating circuit to output a first triangular wave signal and a second triangular wave signal which are in phase with each other, a first PWM comparator to compare the voltage command signal with the first triangular wave signal generated by the triangular wave generating circuit and output a first PWM (Pulse Width Modulation) signal, a second PWM comparator to compare the voltage command signal with the second triangular wave signal generated by the triangular wave generating circuit and output a second PWM signal, a first driver to generate a first output voltage corresponding to the first PWM signal at the first output terminal, and a second driver to generate a second output voltage corresponding to the second PWM signal at the second output terminal.
[0018] In one embodiment, the feedback controller includes an A / D converter that converts an analog error signal into a digital error signal, a compensator that generates a digital voltage command responsive to the digital error signal, and a D / A converter that converts the digital voltage command into a voltage command signal.
[0019] In one embodiment, the triangular wave generating circuit may be provided with a clock signal that is based on the system clock provided to the compensator.
[0020] In one embodiment, the motor may be a linear motor, which may be a voice coil motor.
[0021] In one embodiment, the motor driver circuit may be monolithically integrated on a single semiconductor substrate. "Monolithic integration" includes cases where all of the circuit components are formed on a semiconductor substrate, and cases where the main components of the circuit are integrated, and some resistors and capacitors for adjusting the circuit constants may be provided outside the semiconductor substrate. By integrating the circuit on a single chip, the circuit area can be reduced and the characteristics of the circuit elements can be kept uniform.
[0022] A positioning device according to one embodiment includes a linear motor and any of the above-described motor driver circuits that drive the linear motor.
[0023] A hard disk drive according to one embodiment includes the above-mentioned positioning device.
[0024] (Embodiment) Hereinafter, preferred embodiments will be described with reference to the drawings. The same or equivalent components, parts, and processes shown in each drawing will be given the same reference numerals, and duplicated descriptions will be omitted as appropriate. In addition, the embodiments are illustrative and do not limit the disclosure and invention, and all features and combinations thereof described in the embodiments are not necessarily essential to the disclosure and invention.
[0025] In this specification, "a state in which component A is connected to component B" includes a case in which component A and component B are directly physically connected to each other, and a case in which component A and component B are indirectly connected to each other via other components that do not substantially affect the electrical connection state between them or that do not impair the function or effect achieved by their combination.
[0026] Similarly, "a state in which component C is provided between components A and B" includes not only the case in which components A and C, or components B and C, are directly connected to each other, but also the case in which they are indirectly connected to each other via other components that do not substantially affect the electrical connection between them or that do not impair the functions or effects achieved by their combination.
[0027] In addition, the vertical and horizontal axes of the waveform diagrams and time charts shown in this specification have been appropriately enlarged or reduced to facilitate understanding, and each waveform shown has been simplified to facilitate understanding.
[0028] 1 is a circuit diagram of a triangular wave generating circuit 500 according to an embodiment. The triangular wave generating circuit 500 includes a capacitor C11, a source current source 502, a sink current source 504, a first switch SW1 to a fourth switch SW4, a reference voltage generating circuit 506, and a controller 510.
[0029] The first end of the capacitor C11 is grounded. The source current source 502 outputs a source current I SRC The sink current source 504 sources a sink current I SNK Sink.
[0030] The reference voltage generating circuit 506 generates an upper reference voltage V REFH and the lower reference voltage V REFL The first switch SW1 is connected between the output node of the source current source 502 and the second end of the capacitor C11. The second switch SW2 is connected between the output node of the sink current source 504 and the second end of the capacitor C11. The third switch SW3 has a first end connected to the output node of the source current source 502 and a second end connected to the lower reference voltage V REFL The fourth switch SW4 has a first terminal connected to the output node of the sink current source 504 and a second terminal connected to the upper reference voltage V REFH Receive.
[0031] The controller 510 generates the first control signal S1 to the fourth control signal S4 so as to repeat the first period φ1 to the fourth period φ4 in order. The first period φ1 to the fourth period φ4 are also referred to as the first state φ1 to the fourth state φ4. For example, the controller 510 is supplied with a clock signal CLK, and uses this clock signal to generate the control signals S1 to S4.
[0032] (i) First period φ1 First switch SW1 and third switch SW3 are on Second switch SW2 and fourth switch SW4 are off (ii) Second period φ2 First switch SW1 and fourth switch SW4 are on Second switch SW2 and third switch SW3 are off (iii) Third Period φ3 Second switch SW2 and fourth switch SW4 are on First switch SW1 and third switch SW3 are off (iv) 4th period φ4 Second switch SW2 and third switch SW3 are on First switch SW4 and fourth switch SW4 are off
[0033] The states of the fourth switch SW4 in the first period φ1, the fourth switch SW4 in the second period φ2, the third switch SW3 in the third period φ3, and the third switch SW3 in the fourth period φ4 are redundant (Don't Care) and do not matter whether they are on or off. However, by defining the states of the third switch SW3 and the fourth switch SW4 in the first period φ1 to the fourth period φ4 as described above, the pair of the first switch SW1 and the second switch SW2 switches complementarily, and the pair of the third switch and the fourth switch switches complementarily, which simplifies the configuration of the controller.
[0034] The length of the first period φ1 and the length of the third period φ3 are equal, and T 0 The second period φ2 and the fourth period φ4 are equal to T 1 and they are the length of the first period φ1 and the length of the third period φ3, T 0 is much shorter than
[0035] For example, the length T of the second period φ2 and the fourth period φ4 1 is several μs (for example, 5 μs), whereas the length of the first period φ1 and the length of the third period φ3 are T 0 is T 1The source current I SRC and the sink current I SNK The amount of current for each is (V REFH -V REFL )×C11 / (T 0 +T 1 ) is adjusted to satisfy
[0036] The triangular wave generating circuit 500 generates a voltage (called a capacitor voltage) V C11 Triangular wave signal V based on TRI It is possible to output
[0037] The above is the configuration of the triangular wave generating circuit 500. Next, the operation will be described.
[0038] 2 is an equivalent circuit diagram of the first period φ1 of the triangular wave generating circuit 500 in FIG. 1. In the first period φ1, the first switch SW1 and the third switch SW3 are on, so that the lower reference voltage V REFL is applied, and V C11 =V REFL It becomes.
[0039] 3 is an equivalent circuit diagram of the second period φ2 of the triangular wave generating circuit 500 in FIG. 1. In the second period φ2, the first switch SW1 is on and the third switch SW3 is off, so that the source current I generated by the source current source 502 is SRC But the charging current I CHG During the second period φ2, the capacitor voltage V C11 I SRC The capacitor voltage V C11 is expressed by the following formula: V C11 =V REFL +I SRC / C11×t t is the elapsed time after the transition to the second period φ2.
[0040] 4 is an equivalent circuit diagram of the third period φ3 of the triangular wave generating circuit 500 in FIG. 1. In the third period φ3, the second switch SW2 and the fourth switch SW4 are on, so that the upper reference voltage V REFH is applied, and V C11 =V REFH It becomes.
[0041] 5 is an equivalent circuit diagram of the triangular wave generating circuit 500 in FIG. 1 during the fourth period φ4. During the fourth period φ4, the second switch SW2 is on and the fourth switch SW4 is off, so that the sink current I generated by the sink current source 504 is SNK But the discharge current I DIS During the fourth period φ4, the capacitor voltage V C11 I SNK The capacitor voltage V C11 is expressed by the following formula: V C11 =V REFH -I SNK / C11×t t is the elapsed time after the transition to the fourth period φ4.
[0042] 6 is an operational waveform diagram of the triangular wave generating circuit 500 of FIG. 1. Note that the length T 0 is the length T of the second period φ2 and the fourth period φ4 1 However, in order to facilitate understanding, the length T 0 is shown with emphasis at length.
[0043] In the first period φ1, the capacitor voltage V C11 is the lower reference voltage V REFL During the third period φ3, the capacitor voltage V C11 is the upper reference voltage V REFH The triangular wave signal V generated by the triangular wave generating circuit 500 is TRI has a period of 2×(T 0 +T 1 ) and the peak voltage is V REFH , the bottom voltage is VREFL It becomes.
[0044] The present disclosure covers various devices and methods that can be understood as the block diagram or circuit diagram of Fig. 1 or derived from the above description, and is not limited to a specific configuration. Below, more specific configuration examples and examples will be described in order to aid in understanding and clarify the essence and operation of the invention, not to narrow the scope of the present invention.
[0045] 7 is a circuit diagram of a triangular wave generating circuit 500A according to an embodiment of the present invention. The triangular wave generating circuit 500A includes a first amplifier AMP1 and a second amplifier AMP2.
[0046] The first amplifier AMP1 detects the triangular wave signal V TRI , the common voltage V CMREF Here, the gain g of the first amplifier AMP1 is set to 2 times, and therefore the amplitude of the triangular wave signal TRIB is set to 1 / 1000 of the triangular wave signal V TRI is twice as much.
[0047] The second amplifier AMP2 outputs the triangular wave signal TRIB to the common voltage V CMREF The second amplifier AMP2 inverts and amplifies the triangular wave signal TRIA based on the reference signal TRIB to generate the triangular wave signal TRIA. The gain g of the second amplifier AMP2 is -1, so the triangular wave signals TRIA and TRIB are out of phase with each other.
[0048] The reference voltage generating circuit 506 includes a first resistor R11 to a fourth resistor R14. The first resistor R11 and the second resistor R12 are connected to a power supply voltage V CA The power line and common voltage V CMREF The common voltage V CMREF is the power supply voltage V CA The third resistor R13 and the fourth resistor R14 are connected in series between the common voltage node and the ground.
[0049] The ratio of the first resistor R11 to the second resistor R12 is equal to the ratio of the fourth resistor R14 to the third resistor R13. For example, V CA = 1.5V, R11:R12 = R14:R13 = 1:2, V CMREF =0.75V, V REFH =1.0V, V REFL = 0.5V. Also, the peak voltage V PEAK is 1.25V, bottom voltage V BOTTOM will be 0.25V.
[0050] In the triangular wave generating circuit 500A, a source current source 502 and a sink current source 504 generate a source current I SRC and the sink current I SNK For example, the source current source 502 includes a variable current source 502a and a current mirror circuit 502b. Similarly, the sink current source 504 includes a variable current source 504a and a current mirror circuit 504b.
[0051] A timing decision circuit 520 is provided to adjust the current amounts of the source current source 502 and the sink current source 504 .
[0052] The timing determination circuit 520 includes a variable voltage source 522, a first comparator COMP1, a second comparator COMP2, a first D latch 524, and a second D latch 526.
[0053] The variable voltage source 522 controls the peak voltage V PEAK Target level V PEAK(REF) and bottom V BOTTOM Target level V BOTTOM(REF) The threshold voltage V TH For example, the variable voltage source 522 may be a D / A converter.
[0054] The first comparator COMP1 compares the triangular wave signal TRIA with the threshold voltage V THThe second comparator COMP2 compares the triangular signal TRIB with a threshold voltage V TH Compare with.
[0055] The first D latch 524 latches the output COMPOUT1 of the first comparator COMP1 using the timing signal TIMING. Similarly, the second D latch 526 latches the output COMPOUT1 of the second comparator COMP2 using the timing signal TIMING.
[0056] The current amounts of the source current source 502 and the sink current source 504 are adjusted based on the output J 1 of the first D latch 524 and the output J 2 of the second D latch 526 .
[0057] Next, the operation of the triangular wave generating circuit 500A in the trimming mode will be described.
[0058] 8 is an operation waveform diagram of the triangular wave generating circuit 500A in the trimming mode. Specifically, FIG. 8 shows the source current I SRC The trimming process is shown at time t 0 Before this, the switches SW1 and SW3 are on, and the switches SW2 and SW4 are off. This causes the triangular wave signal TRIB to be equal to the lower reference voltage V REFL The output of the variable voltage source 522, the threshold voltage V TH is the target level of the peak voltage, V PEAK(REF) is set to
[0059] time t 0 When the third switch SW3 is turned off, the source current I SRC is supplied to the capacitor C11, and the capacitor voltage V C11 rises over time, and the triangular wave signal TRIB also rises at a constant slope.
[0060] time t 1 Then, the triangular signal TRIB is set to the peak voltage target level V PEAK(REF) The threshold voltage V THAt time t 0 From T 0 +T 1 At time t after a time equal to 2 At time t 1 is time t 2 Since the second D-latch 526 is ahead of the first D-latch 526, the output J2 of the second D-latch 526 goes high.
[0061] In FIG. 8, the ideal waveform of the rising slope of the triangular wave signal TRIB is shown by a dashed line. 2 When the triangular wave signal TRIB reaches the threshold voltage V TH In other words, the output J2 of the second D latch 526 being high means that the source current I SRC is too large, so in this case the source current I SRC Conversely, when the output J2 of the second D latch 526 is low, the source current I SRC Correction is applied to increase the value.
[0062] Conversely, when the output J2 of the second D latch 526 is low, that is, at time t 1 is time t 2 If it is ahead of the source current I SRC means that the source current I SRC Correction is applied to increase the value.
[0063] By repeating this process, the rising slope of the triangular wave signal TRIB can be made to approach an ideal waveform.
[0064] 9 is an operational waveform diagram of the trimming mode of the triangular wave generating circuit 500A. Specifically, FIG. 9 shows the operation of the sink current I SNK 1 shows a trimming process.
[0065] time t 0Before this, the switches SW2 and SW4 are on, and the switches SW1 and SW3 are off. This causes the triangular wave signal TRIB to be equal to or lower than the upper reference voltage V REFH The threshold voltage V TH is the target level of the bottom voltage V BOTTOM(REF) is set to
[0066] time t 0 When the fourth switch SW4 is turned off, the sink current I SNK is drawn from the capacitor C11, and the capacitor voltage V C11 decreases over time, and the triangular wave signal TRIB also decreases at a constant rate.
[0067] time t 1 Then, the triangular wave signal TRIB reaches the target level V BOTTOM(REF) The threshold voltage V TH At time t 0 From T 0 +T 1 At time t after a time equal to 2 At time t 1 is time t 2 Since the second D-latch 526 lags behind the first D-latch 526, the output J2 of the second D-latch 526 goes high.
[0068] In FIG. 9, the ideal waveform of the downward slope of the triangular wave signal TRIB is shown by a dashed line. 2 At this time, the triangular wave signal TRIB reaches the target level V BOTTOM(REF) In other words, the output J2 of the second D latch 526 being high means that the sink current I SNK is too small, so in this case the sink current I SNK Correction is applied to increase the value.
[0069] Conversely, when the output J2 of the second D latch 526 is low, that is, at time t 1 is time t2 If it is ahead of the sink current I SNK This means that the sink current I SNK Correction is applied to reduce
[0070] By repeating this process, the downward slope of the triangular wave signal TRIB can be made to approach an ideal waveform.
[0071] 10 is an operational waveform diagram of the triangular wave generating circuit 500A in the trimming mode. Specifically, FIG. 10 shows the offset adjustment process. The offset adjustment is performed by adjusting the source current I SRC and the sink current I SNK This is done after adjustment of
[0072] time t 0 Before this, the switches SW2 and SW4 are on and the switches SW1 and SW3 are off. This causes the triangular wave signal TRIA to be REFL The output of the variable voltage source 522, the threshold voltage V TH is the target level of the peak voltage, V PEAK(REF) is set to
[0073] time t 0 When the fourth switch SW4 is turned off, the sink current I SNK is drawn from the capacitor C11, and the capacitor voltage V C11 decreases over time, while the inverted and amplified triangular wave signal TRIA increases at a constant rate.
[0074] time t 1 Then, the triangular signal TRIA is set to the peak voltage target level V PEAK(REF) The threshold voltage V TH , and the output COMPOUTA of the first comparator COMP1 transitions to low. 0 From T 0 +T 1 At a time t after a period of time equal to 2 At time t1 is time t 2 Since the first D-latch 524 lags behind the first D-latch 524, the output J1 of the first D-latch 524 goes low.
[0075] In FIG. 10, the ideal waveform of the rising slope of the triangular wave signal TRIA is indicated by a dashed line. The offset is adjusted so that the triangular wave signal TRIA approaches the ideal waveform. 1 is time t 2 The current amount of the variable current source 502a is adjusted so that the current amount approaches
[0076] 11 is a circuit diagram showing an example of the configuration of the controller 510. The controller 510 includes a counter 512, a delay circuit 514, and inverters 516 and 518. The counter 512 counts the clock signal CLK and outputs T 0 +T 1 A delay circuit 514 delays the first control pulse S0 by one period of the clock signal CLK to generate a second control pulse S0d.
[0077] The first switch SW1 and the second switch SW2 are complementarily controlled in response to a first control pulse S0. Specifically, the first control pulse S0 is supplied to the first switch SW1 as a control signal S1, and the first control pulse S0 inverted by an inverter 516 is supplied to the second switch SW2 as a control signal S2.
[0078] Moreover, the third switch SW3 and the fourth switch SW4 are complementarily controlled in response to the second control pulse S0d. Specifically, the second control pulse S0d is supplied to the fourth switch SW4 as the control signal S4, and the second control pulse S0d inverted by the inverter 518 is supplied to the third switch SW3 as the control signal S3.
[0079] Next, the use of the triangular wave generating circuit 500 will be described.
[0080] The triangular wave generating circuit 500 can be used in a pulse width modulator.
[0081] 12 is a circuit diagram of a positioning device 100H. The positioning device 100 includes a linear motor 102, a host controller 104, a motor driver circuit 200H, and a current sense resistor (hereinafter also simply referred to as a sense resistor) Rs.
[0082] The upper controller 104 comprehensively controls the positioning device 100. The upper controller 104 generates position control data POS indicating a target position of the linear motor 102, and transmits the position control data POS to the motor driver circuit 200. The upper controller 104 is composed of, for example, a microcontroller, a field programmable gate array (FPGA), and an application specific integrated circuit (ASIC).
[0083] The motor driver circuit 200 receives the position control data POS and outputs a driving current I DRV The linear motor 102 is, for example, a voice coil motor, and the movable element of the linear motor 102 is driven by a driving current I DRV The displacement is determined by an amount corresponding to .
[0084] Next, the configuration of the motor driver circuit 200H will be described. The motor driver circuit 200H includes a current command generating unit 210, a feedback controller 220H, a pulse width modulator 240, a current detection circuit 250, a first driver 260, and a second driver 270, and is a functional IC (Integrated Circuit) integrated on a single semiconductor substrate.
[0085] The motor driver circuit 200H includes a first output terminal (A-phase output) AOUT, a second output terminal (B-phase output) BOUT, and a current detection terminal ISNS. One end of the linear motor 102 is connected to the AOUT terminal via a sense resistor Rs. The other end of the linear motor 102 is connected to the BOUT terminal. The ISNS terminal is connected to one end of the linear motor 102.
[0086] The current command generator 210 generates a driving current I DRV Analog command signal V indicating the target value DAC For example, the current command generating unit 210 includes an interface circuit 212, a logic circuit 214, and a D / A converter 216. The interface circuit 212 is connected to the upper controller 104 and receives various control data including the position control data POS. The interface circuit 212 generates, for example, I 2 The interface circuit 212 may be an Inter IC (IC) interface or a Serial Peripheral Interface (SPI). For example, the control data from the interface circuit 212 includes a code indicating a target position of the mover of the linear motor 102. The logic circuit 214 outputs a control code based on the received code to the D / A converter 216. The control code may be the same as the code received from the upper controller 104, or may be a different code obtained by performing an operation on the received code. The D / A converter 216 converts the control code generated by the logic circuit 214 into an analog command signal V DAC Convert to.
[0087] The configuration of the current command generating unit 210 is not limited to this, and an analog command signal V DAC The configuration may be such that the
[0088] The current detection circuit 250 is connected to the AOUT terminal and the ISNS terminal, and detects the drive current I DRV The current feedback signal V FB For example, the current feedback signal V FB is expressed by the following equation (1). CMREF is an arbitrary constant. V FB = k × I DRV +V CMREF …(1)
[0089] The feedback controller 220H is a servo controller and outputs a current feedback signal VFB is the reference signal, and V is the analog command signal. DAC The voltage command signal V CTRL The feedback controller 220H performs arithmetic processing using the clock signal CLK.
[0090] The feedback controller 220H includes an error detection amplifier 230, an A / D converter 222, a digital compensator 224, and a D / A converter 226. The error detection amplifier 230 receives the current feedback signal V FB and analog command signal V DAC The drive current I DRV and its target quantity I REF Analog error signal V indicating the error between ERR is an error detector that generates V ERR =(I REF -I DRV )×g g is a finite gain.
[0091] The A / D converter 222 outputs an analog error signal V ERR The digital error signal D ERR Convert the analog error signal V ERR is the drive current I DRV and a signal indicating the error between the target amount and the actual amount.
[0092] The digital compensator 224 converts the digital error signal D ERR Based on this, the digital control amount D CTRL The digital compensator 224 includes a PI (proportional integral) compensator and a PID (proportional integral derivative) compensator. The PI compensator generates a digital error signal D ERR Proportional gain K P and multiplying it to obtain the digital error signal D ERR The integral value of integral gain K I and add them together to get the digital control amount D CTRL Generate.
[0093] The PID compensator uses a digital error signal DERR Proportional gain K P and multiplying it to obtain the digital error signal D ERR The integral value of integral gain K I and multiplying it to obtain the digital error signal D ERR The differential value of D and add them together to get the digital control amount D CTRL The PI compensator and the PID compensator are also called PI controllers and PID controllers. The PI compensator and the PID compensator can be selected according to the characteristics of the controlled object.
[0094] The D / A converter 226 outputs the digital control variable D CTRL Analog control signal V CTRL Convert the analog control signal V CTRL is a command value for the voltage to be applied across the linear motor 102, and is also called a voltage command signal.
[0095] The pulse width modulator 240 generates a voltage command signal V CTRL The duty cycle of the PWMA signal is determined by the voltage command signal V CTRL The duty cycle of the PWM signal is positively correlated with the voltage command signal V CTRL It may have a negative correlation with
[0096] The pulse width modulator 240 includes PWM comparators 242 and 244, and a triangular wave generating circuit 246. The triangular wave generating circuit 246 is configured using the architecture of the above-mentioned triangular wave generating circuit 500, and generates triangular wave signals TRIA and TRIB that are in opposite phases and synchronized with the clock signal CLK.
[0097] The PWM comparator 242 receives the voltage command signal V CTRL The PWM comparator 244 compares the voltage command signal V CTRL It compares this with the triangular wave signal TRIB and generates the PWM pulse PWMB.
[0098] The PWM comparators 242 and 244 can be used as the comparators COMP1 and COMP2 in FIG. 7, and the D / A converter 226 can be used as the variable voltage source 522 in FIG.
[0099] The first driver 260 outputs a pulsed driving voltage V OUTA is generated at the AOUT terminal and supplied to one end of the linear motor 102 via the sense resistor Rs. The second driver 270 generates a pulsed driving voltage V OUTB is generated at the BOUT terminal and supplied to the other end of the linear motor 102.
[0100] The above is the configuration of the positioning device 100H.
[0101] 13 is a diagram showing the input / output characteristics of the motor driver circuit 200H of FIG. 12. The feedback signal V FB and analog command signal V DAC Feedback is applied so that the error approaches that of the input signal. Therefore, when the feedback is stable, equation (2) holds true. V FB = k × I DRV +V CMREF =V DAC …(2) In the steady state where equation (2) holds, the drive current I DRV is the target level I REF is stabilized to. I REF =(V DAC -V CMREF ) / k …(3)
[0102] The above is the operation of the motor driver circuit 200. The motor driver circuit 200 does not require an analog phase compensation circuit, making it easier to design than an analog system.
[0103] FIG. 14 is a block diagram of a positioning device 100I according to a modified example.
[0104] The motor driver circuit 200I further includes a mask generating circuit 280.
[0105] The mask generating circuit 280 detects the state of the AOUT terminal, i.e., the first output voltage V OUTA Based on this, the mask signal MSKB is generated and supplied to the sample-and-hold circuit 300 of the feedback controller 220. Specifically, the mask generating circuit 280 generates the mask signal MSKB based on the output voltage V OUTA The mask signal MSKB is asserted using the start of the transition as a trigger, and the mask signal MSKB is negated after the transition is completed. In this embodiment, the mask signal MSKB is asserted low and negated high.
[0106] The feedback controller 220I includes a sample and hold circuit 300 in addition to the feedback controller 220H.
[0107] The sample-and-hold circuit 300 is a track-and-hold circuit, and during the period when the mask signal MSKB is negated, the analog error signal V ERR When the mask signal MSKB is asserted, the sample-and-hold circuit 300 outputs the analog error signal V ERR During the assertion of the mask signal MSKB, the sampled analog error signal V ERR This allows the feedback controller 220 to hold the output voltage V OUTA The analog error signal V generated during the non-transition period of ERR Based on the voltage command signal V CTRL In other words, during the period when the mask signal MSKB is asserted, that is, the output voltage V OUTA The analog error signal V during the transition ERR is not used for feedback control.
[0108] 15 is an operation waveform diagram of the motor driver circuit 200I of FIG. 14. In the pulse width modulator 240, the voltage command signal V CTRL is compared with the triangular wave signals TRIA and TRIB to generate the PWMA and PWMB signals.
[0109] The first driver 260 generates a pulsed A-phase driving voltage V OUTA The delay of the first driver 260 generates the A-phase drive voltage V OUTA The second driver 270 generates a pulsed B-phase driving voltage V OUTB The delay of the second driver 270 generates the B-phase drive voltage V OUTB is delayed relative to the PWMB signal.
[0110] The mask signal MSKB is generated by the mask generating circuit 280. The mask signal MSKB is generated by the A-phase drive voltage V OUT It is asserted (high) during the transition period of A phase drive voltage V OUT is negated (low) while is stable.
[0111] The sample-and-hold circuit 300 operates in the track mode while the mask signal MSK is negated. Therefore, while the mask signal MSK is negated, the A / D converter 222 generates the analog error signal V based on the timing signal (sample-and-hold signal) S / H, which is an internal signal. ERR The digital error signal D ERR Convert to.
[0112] In the waveform diagram of Fig. 15, the S / H signal is synchronized with the triangular wave signals TRIA and TRIB. Specifically, the S / H signal is retimed (forced synchronized) at the peak and bottom timings of the triangular wave signals TRIA and TRIB, that is, at the timing of the clock signal CLK.
[0113] At the bottom of FIG. 15, the digital error signal D ERRThe digital compensator 224 converts the captured digital error signal D ERR Based on this, the digital control amount D CTRL This digital control amount D CTRL is converted by the D / A converter 226 into an analog voltage command signal V CTRL is converted to
[0114] Black filled digital error signal D ERR is the analog error signal V held by the sample and hold circuit 300 at the same voltage level. ERR are essentially equivalent.
[0115] The above is the operation of the motor driver circuit 200. As described above, the inventors have determined that the voltage (A-phase drive voltage) V OUTA We realized that the current detection accuracy decreases during the transition of the A-phase drive voltage V OUTA By masking the current sensing during the transition of
[0116] (Application) 16 is a diagram showing a hard disk drive 900 equipped with a motor driver circuit 200. The hard disk drive 900 is equipped with a platter 902, a swing arm 904, a head 906, a spindle motor 910, a seek motor 912, and a motor driver circuit 920. The motor driver circuit 920 drives the spindle motor 910 and the seek motor 912.
[0117] The seek motor 912 is a voice coil motor. The motor driver circuit 200 (or 200A) according to the embodiment is built into a motor driver circuit 920, and drives the seek motor 912. The seek motor 912 positions the head 906 via the swing arm 904.
[0118] In the present disclosure, the configuration and type of the linear motor to be driven are not particularly limited. For example, the present disclosure can be applied to driving a voice coil motor of a spring return type or other linear actuator. Alternatively, the motor to be driven may be a spindle motor.
[0119] The application of the positioning device 100 is not limited to hard disk drives, and it can also be used as a positioning mechanism for a camera lens, etc.
[0120] (Additional Note) The present specification discloses the following techniques:
[0121] (Item 1) A capacitor having one end grounded; a current source for sourcing a current from the output node; a sink current source that sinks a sink current from the output node; a reference voltage generating circuit for generating an upper reference voltage and a lower reference voltage; a first switch connected between the output node of the source current source and the capacitor; a second switch connected between the output node of the sink current source and the capacitor; a third switch having one end connected to the output node of the source current source and the other end receiving the lower reference voltage; a fourth switch having one end connected to the output node of the sink current source and the other end receiving the upper reference voltage; a controller that repeats the following operations: (i) turning on the first switch and the third switch and turning off the second switch in a first period; (ii) turning on the first switch and turning off the second switch and the third switch in a second period; (iii) turning on the second switch and the fourth switch and turning off the first switch in a third period; and (iv) turning on the second switch and turning off the first switch and the fourth switch in a fourth period; and capable of outputting a triangular wave signal based on a voltage generated in the capacitor.
[0122] (Item 2) 2. The triangular wave generating circuit according to item 1, wherein the controller (i) turns off the fourth switch in the first period, (ii) turns on the fourth switch in the second period, (iii) turns off the third switch in the third period, and (iv) turns on the third switch in the fourth period.
[0123] (Item 3) The controller uses a clock signal to generate a first control pulse and a second control pulse that is delayed a predetermined time from the first control pulse; controlling the first switch and the second switch in a complementary manner in response to the first control pulse; 3. The triangular wave generating circuit according to item 2, wherein the third switch and the fourth switch are complementarily controlled in response to the second control pulse.
[0124] (Item 4) the source current source is capable of adjusting the amount of the source current; 4. The triangular wave generating circuit according to any one of items 1 to 3, wherein the sink current source is capable of adjusting the amount of the sink current.
[0125] (Item 5) a first amplifier that non-inverts and amplifies the voltage generated in the capacitor with reference to a common voltage that is a midpoint voltage between the upper reference voltage and the lower reference voltage; a second amplifier that inverts and amplifies the output voltage of the first amplifier with a gain of −1; 5. The triangular wave generating circuit according to any one of items 1 to 4, further comprising: an output voltage of the second amplifier capable of being output as a first triangular wave signal; and an output voltage of the first amplifier capable of being output as a second triangular wave signal.
[0126] (Item 6) The common voltage is half the power supply voltage, The reference voltage generating circuit includes: a first resistor and a second resistor connected in series between a power supply line generating the power supply voltage and a common voltage node generating the common voltage; a third resistor and a fourth resistor connected in series between the common voltage node and ground; 6. The triangular wave generating circuit according to item 5, wherein a ratio of the first resistor to the second resistor is equal to a ratio of the fourth resistor to the third resistor.
[0127] (Item 7) A variable current source; a first comparator for comparing the first triangular wave signal with an output voltage of the variable current source; a second comparator for comparing the second triangular wave signal with the output voltage of the variable current source; a first latch that latches an output of the first comparator in response to a timing signal corresponding to a start point of the first period or a start point of the third period; a second latch that latches the output of the second comparator in response to the timing signal; 7. The triangular wave generating circuit of item 6, further comprising: a first latch circuit configured to adjust the source current source and the sink current source based on at least one of an output of the first latch and an output of the second latch.
[0128] (Item 8) a first output terminal to be connected to a first end of a motor to be driven via a current sense resistor; a second output terminal to be connected to a second end of the motor; an error detector for generating an analog error signal based on an error between a current feedback signal, the current feedback signal being based on a voltage drop across the current sense resistor, and a reference signal; a feedback controller that generates a voltage command signal based on the analog error signal; A triangular wave generating circuit according to any one of items 1 to 7, comprising: a triangular wave generating circuit that outputs a first triangular wave signal and a second triangular wave signal that are in opposite phase to each other and are based on the triangular wave signal; a first PWM comparator that compares the voltage command signal with the first triangular wave signal and outputs a first PWM (Pulse Width Modulation) signal; a second PWM comparator that compares the voltage command signal with the second triangular wave signal and outputs a second PWM signal; a first driver that generates a first output voltage at the first output terminal in response to the first PWM signal; a second driver that generates a second output voltage at the second output terminal in response to the second PWM signal; A motor driver circuit comprising:
[0129] (Item 9) The feedback controller: an A / D converter for converting the analog error signal into a digital error signal; a compensator that generates a digital voltage command in response to the digital error signal; a D / A converter for converting the digital voltage command into the voltage command signal; 9. The motor driver circuit of item 8, comprising:
[0130] (Item 10) 10. The motor driver circuit of claim 9, wherein the motor is a linear motor.
[0131] (Item 11) Item 11. The motor driver circuit of item 10, wherein the linear motor is a voice coil motor.
[0132] (Item 12) 9. The motor driver circuit according to item 8, which is monolithically integrated on a single semiconductor substrate.
[0133] (Item 13) A linear motor; A motor driver circuit according to item 12 for driving the linear motor; A positioning device comprising:
[0134] (Item 14) A hard disk drive comprising the positioning device according to item 13. [Explanation of symbols]
[0135] 100 Positioning device 102 Linear motor 104 Upper controller 200 Motor driver circuit 210 Current command generation section 212 Interface Circuit 214 Logic Circuits 216 D / A Converter 220 Feedback Controller 222 A / D Converter 224 Digital Compensator 226 D / A Converter 230 Error Detection Amplifier 240 Pulse Width Modulator 250 Current Detection Circuit 260 1st Driver 270 2nd Driver 280 Mask Generator 282 Edge detection circuit 300 Sample and hold circuit 500 Triangle wave generator circuit 502 Source current source 504 Sink Current Source 506 Reference voltage generation circuit SW1 First switch SW2 Second switch SW3 3rd switch SW4 4th switch 510 Controller 512 Counter 514 Delay Circuit 516 Inverter 518 Inverter 520 Timing Judgment Circuit S1 First control signal S2 Second control signal S3 3rd control signal S4 Fourth control signal C11 Capacitor TRIA 1st triangular wave signal TRIB 2nd triangular wave signal
Claims
1. A capacitor having one end grounded; a current source for sourcing a current from the output node; a sink current source that sinks a sink current from the output node; a reference voltage generating circuit for generating an upper reference voltage and a lower reference voltage; a first switch connected between the output node of the source current source and the capacitor; a second switch connected between the output node of the sink current source and the capacitor; a third switch having one end connected to the output node of the source current source and the other end receiving the lower reference voltage; a fourth switch having one end connected to the output node of the sink current source and the other end receiving the upper reference voltage; a controller that repeats the following operations: (i) turning on the first switch and the third switch and turning off the second switch during a first period; (ii) turning on the first switch and turning off the second switch and the third switch during a second period; (iii) turning on the second switch and the fourth switch and turning off the first switch during a third period; and (iv) turning on the second switch and turning off the first switch and the fourth switch during a fourth period; and capable of outputting a triangular wave signal based on a voltage generated in the capacitor.
2. 2. The triangular wave generating circuit of claim 1, wherein the controller (i) turns off the fourth switch in the first period, (ii) turns on the fourth switch in the second period, (iii) turns off the third switch in the third period, and (iv) turns on the third switch in the fourth period.
3. The controller uses a clock signal to generate a first control pulse and a second control pulse that is delayed a predetermined time from the first control pulse; controlling the first switch and the second switch in a complementary manner in response to the first control pulse; 3. The triangular wave generating circuit according to claim 2, wherein the third switch and the fourth switch are complementarily controlled in response to the second control pulse.
4. the source current source is capable of adjusting the amount of the source current; 4. The triangular wave generating circuit according to claim 1, wherein said sink current source is capable of adjusting the amount of said sink current.
5. a first amplifier that non-inverts and amplifies the voltage generated in the capacitor with reference to a common voltage that is a midpoint voltage between the upper reference voltage and the lower reference voltage; a second amplifier that inverts and amplifies the output voltage of the first amplifier with a gain of −1; 4. The triangular wave generating circuit according to claim 1, further comprising: an output voltage of the second amplifier capable of being output as a first triangular wave signal; and an output voltage of the first amplifier capable of being output as a second triangular wave signal.
6. The common voltage is half the power supply voltage, The reference voltage generating circuit includes: a first resistor and a second resistor connected in series between a power supply line generating the power supply voltage and a common voltage node generating the common voltage; a third resistor and a fourth resistor connected in series between the common voltage node and ground; 6. The triangular wave generating circuit according to claim 5, wherein a ratio of the first resistor to the second resistor is equal to a ratio of the fourth resistor to the third resistor.
7. A variable current source; a first comparator for comparing the first triangular wave signal with an output voltage of the variable current source; a second comparator for comparing the second triangular wave signal with the output voltage of the variable current source; a first latch that latches an output of the first comparator in response to a timing signal corresponding to a start point of the first period or a start point of the third period; a second latch that latches the output of the second comparator in response to the timing signal; 7. The triangular wave generating circuit according to claim 6, further comprising: an output of the first latch and an output of the second latch, and the source current source and the sink current source are adjustable based on at least one of the output of the first latch and the output of the second latch.
8. a first output terminal to be connected to a first end of a motor to be driven via a current sense resistor; a second output terminal to be connected to a second end of the motor; an error detector for generating an analog error signal based on an error between a current feedback signal, the current feedback signal being based on a voltage drop across the current sense resistor, and a reference signal; a feedback controller that generates a voltage command signal based on the analog error signal; 4. A triangular wave generating circuit according to claim 1, comprising: a triangular wave generating circuit that outputs a first triangular wave signal and a second triangular wave signal that are in opposite phases to each other and are based on the triangular wave signal; a first PWM comparator that compares the voltage command signal with the first triangular wave signal and outputs a first PWM (Pulse Width Modulation) signal; a second PWM comparator that compares the voltage command signal with the second triangular wave signal and outputs a second PWM signal; a first driver that generates a first output voltage at the first output terminal in response to the first PWM signal; a second driver that generates a second output voltage at the second output terminal in response to the second PWM signal; A motor driver circuit comprising:
9. The feedback controller: an A / D converter for converting the analog error signal into a digital error signal; a compensator that generates a digital voltage command in response to the digital error signal; a D / A converter for converting the digital voltage command into the voltage command signal; 9. The motor driver circuit of claim 8, comprising:
10. 10. The motor driver circuit of claim 9, wherein the motor is a linear motor.
11. The motor driver circuit of claim 10, wherein the linear motor is a voice coil motor.
12. The motor driver circuit according to claim 8 , which is monolithically integrated on a single semiconductor substrate.
13. A linear motor; A motor driver circuit according to claim 12 for driving the linear motor; A positioning device comprising:
14. A hard disk drive comprising the positioning device according to claim 13.
