Apparatus and method for rectifying rotary transformer output signal

文档序号:1523750 发布日期:2020-02-11 浏览:10次 中文

阅读说明:本技术 对旋转变压器输出信号进行整流的设备和方法 (Apparatus and method for rectifying rotary transformer output signal ) 是由 李明硕 于 2018-11-30 设计创作,主要内容包括:本发明涉及一种用于对旋转变压器输出信号进行整流的设备,其可以包括:旋转变压器,其被配置成接收激励信号并基于所述激励信号输出旋转变压器输出信号,所述激励信号指示电动机转子的位置;微处理器,其被配置成接收通过对所述激励信号的整流而产生的参考整流信号,并通过根据预设值延迟所述参考整流信号来输出延迟信号;以及延迟量检测电路,其被配置成接收通过对所述旋转变压器输出信号的整流而产生的参考激励信号,从所述微处理器接收所述延迟信号,将所述参考激励信号与所述延迟信号进行比较,并向所述微处理器输出相位差检测信号和延迟量过量/不足信号。(The invention relates to a device for rectifying a resolver output signal, which may comprise: a resolver configured to receive an excitation signal and output a resolver output signal based on the excitation signal, the excitation signal being indicative of a position of a rotor of the motor; a microprocessor configured to receive a reference rectified signal generated by rectifying the excitation signal and output a delayed signal by delaying the reference rectified signal according to a preset value; and a delay amount detection circuit configured to receive a reference excitation signal generated by rectification of the resolver output signal, receive the delay signal from the microprocessor, compare the reference excitation signal with the delay signal, and output a phase difference detection signal and a delay amount excess/deficiency signal to the microprocessor.)

1. An apparatus for rectifying a rotating transformer output signal, comprising:

a resolver configured to receive an excitation signal and output a resolver output signal based on the excitation signal, the excitation signal being indicative of a position of a rotor of the motor;

a microprocessor configured to receive a reference rectified signal generated by rectifying the excitation signal and output a delayed signal by delaying the reference rectified signal according to a preset value; and

a delay amount detection circuit configured to receive a reference excitation signal generated by rectification of the resolver output signal, receive the delay signal from the microprocessor, compare the reference excitation signal with the delay signal, and output a phase difference detection signal and a delay amount excess/deficiency signal to the microprocessor,

wherein the microprocessor includes a switching amplification circuit configured to detect a delay amount of the resolver output signal based on the phase difference detection signal, output a rectified signal based on the delay amount, receive the rectified signal, rectify the resolver output signal by performing a switching operation based on the rectified signal, and output a compensation signal.

2. The apparatus of claim 1, wherein:

the delay amount detection circuit includes:

an exclusive-or gate configured to receive the delayed signal and the reference excitation signal and output the phase difference detection signal indicative of a phase difference between the delayed signal and the reference excitation signal; and

a D-type flip-flop configured to receive the reference fire signal as an input signal, receive the delayed signal as a reference clock, and output the delay amount excess/deficiency signal indicating whether the delayed signal leads or lags relative to the reference fire signal.

3. The apparatus of claim 1, wherein:

the microprocessor is configured to detect the delay amount using an output comparison function.

4. The apparatus of claim 1, wherein:

the microprocessor is configured to detect the amount of delay using an input capture function.

5. The apparatus of claim 1, wherein:

the microprocessor includes:

a counter circuit configured to initialize a count when the reference rectification signal is input so that an interrupt is generated by increasing the count from an initial value;

a compare value register configured to store the delay amount;

a comparison circuit configured to detect whether the delay amount is equal to the count; and

an output circuit configured to output a preset output modulation value when it is detected that the delay amount is equal to the count.

6. The apparatus of claim 1, wherein:

when the polarity of the rectified signal is equal to the polarity of the resolver output signal, the switching amplification circuit operates as a buffer circuit when the resolver output signal has a positive polarity, and operates as an inverting amplifier when the resolver output signal has a negative polarity.

7. The apparatus of claim 1, wherein:

when the polarity of the rectified signal is opposite to the polarity of the resolver output signal, the switching amplification circuit operates as an inverting amplifier when the resolver output signal has a positive polarity, and operates as a buffer circuit when the resolver output signal has a negative polarity.

8. A method of rectifying a resolver output signal output by a resolver, the method comprising:

outputting a delay signal by delaying the excitation signal output by the excitation signal generator by a preset value by the microprocessor;

comparing, by a delay amount detection circuit, the delayed signal with a reference excitation signal generated by rectification of the excitation signal;

outputting, by the delay amount detection circuit, a phase difference detection signal and a delay amount excess/deficiency signal to the microprocessor;

detecting, by the microprocessor, a delay amount of the resolver output signal based on the phase difference detection signal;

outputting, by the microprocessor, a rectified signal generated by delaying a reference rectified signal by the delay amount;

receiving the rectified signal by a switching amplification circuit; and

outputting, by the switching amplification circuit, a compensation signal generated by rectifying the resolver output signal by a switching operation based on the rectified signal.

9. The method of claim 8, wherein:

the delay amount detection circuit includes an exclusive-or gate and a D-type flip-flop, and

outputting the phase difference detection signal and the delay amount excess/deficiency signal includes:

receiving, by the exclusive-or gate, the delayed signal and the reference excitation signal;

outputting, by the exclusive-or gate, the phase difference detection signal indicative of a phase difference between the delayed signal and the reference excitation signal;

receiving, by the D-flip flop, the reference excitation signal as an input signal;

receiving, by the D-flip flop, the delayed signal as a reference clock; and

outputting, by the D-flip flop, the delay amount excess/deficiency signal indicating whether the delayed signal leads or lags relative to the reference fire signal.

10. The method of claim 8, further comprising:

detecting, by the microprocessor, the delay amount using an output comparison function.

11. The method of claim 8, further comprising:

detecting, by the microprocessor, the delay amount using an input capture function.

12. The method of claim 8, further comprising:

initializing, by the microprocessor, a count upon input of the reference rectification signal such that an interrupt is generated by incrementing the count from an initial value;

storing, by the microprocessor, the delay amount in a compare value register;

detecting, by the microprocessor, whether the delay amount is equal to the count; and

outputting, by the microprocessor, a preset output modulation value upon detecting that the delay amount is equal to the count.

13. The method of claim 8, wherein:

when the polarity of the rectified signal is equal to the polarity of the resolver output signal, the switching amplification circuit operates as a buffer circuit when the resolver output signal has a positive polarity, and operates as an inverting amplifier when the resolver output signal has a negative polarity.

14. The method of claim 8, wherein:

when the polarity of the rectified signal is opposite to the polarity of the resolver output signal, the switching amplification circuit operates as an inverting amplifier when the resolver output signal has a positive polarity, and operates as a buffer circuit when the resolver output signal has a negative polarity.

Technical Field

The present disclosure relates to an apparatus and method for rectifying a resolver output signal, and more particularly, to an apparatus and method for rectifying a resolver output signal, which can calculate a delay amount of the resolver output signal and rectify the resolver output signal using a microprocessor.

Background

Accurate rotor position information is required to drive the permanent magnet synchronous motor. When a resolver is used, the absolute position of the rotor can be identified. However, if the resolver experiences differences in transformation ratio, unbalanced excitation signals, non-uniform inductive components, distortion in the signal processing circuitry, etc., it may cause signal magnitude imbalance. This may cause a periodic error component to occur in the position information, thereby deteriorating the motor control performance.

To address such errors, conventional techniques involve the use of a resolver-to-digital converter (RDC). In the case of using the RDC, a phase advance capacitor or a phase lag capacitor is used, but compensation cannot be performed depending on a state change of the resolver. Several other solutions for compensating the amount of delay of the resolver have been proposed, such as filters. However, they are mathematically complex, require a large load on the microprocessor, and are difficult to implement.

The above information disclosed in this background section is only for enhancement of understanding of the background of the disclosure and therefore it may contain information that does not form the relevant art.

Disclosure of Invention

The present invention seeks to provide an apparatus and method for rectifying a resolver output signal, which has the following advantages: the error of the resolver output signal is reduced by rectifying the resolver output signal in real time using a microprocessor without using a Resolver Digital Converter (RDC), the size of a rectifying circuit is reduced using an element such as an operational amplifier, the output linearity is improved, and a compensation circuit is simplified.

According to an embodiment of the present disclosure, an apparatus for rectifying a resolver output signal may include: a resolver configured to receive an excitation signal and output a resolver output signal based on the excitation signal, the excitation signal being indicative of a position of a rotor of the motor; a microprocessor configured to receive a reference rectified signal generated by rectifying the excitation signal and output a delayed signal by delaying the reference rectified signal according to a preset value; and a delay amount detection circuit configured to receive a reference excitation signal generated by rectification of the resolver output signal, receive the delay signal from the microprocessor, compare the reference excitation signal with the delay signal, and output a phase difference detection signal and a delay amount excess/deficiency signal to the microprocessor. The microprocessor may include a switching amplification circuit configured to detect a delay amount of the resolver output signal based on the phase difference detection signal, output a rectified signal based on the delay amount, receive the rectified signal, rectify the resolver output signal by performing a switching operation based on the rectified signal, and output a compensation signal.

The delay amount detection circuit may include: an exclusive-or gate configured to receive the delayed signal and the reference excitation signal and output the phase difference detection signal indicative of a phase difference between the delayed signal and the reference excitation signal; and a D-type flip-flop configured to receive the reference excitation signal as an input signal, receive the delayed signal as a reference clock, and output the delay amount excess/deficiency signal indicating whether the delayed signal leads or lags with respect to the reference excitation signal.

The microprocessor may detect the delay amount using an output comparison function.

The microprocessor may use an input capture function to detect the amount of delay.

The microprocessor may include: a counter circuit configured to initialize a count when the reference rectification signal is input so that an interrupt is generated by increasing the count from an initial value; a compare value register configured to store the delay amount; a comparison circuit configured to detect whether the delay amount is equal to the count; and an output circuit configured to output a preset output modulation value when it is detected that the delay amount is equal to the count.

When the polarity of the rectified signal is equal to the polarity of the resolver output signal, the switching amplification circuit may operate as a buffer circuit when the resolver output signal has a positive polarity, and may operate as an inverting amplifier when the resolver output signal has a negative polarity.

When the polarity of the rectified signal is opposite to the polarity of the resolver output signal, the switching amplification circuit may operate as an inverting amplifier when the resolver output signal has a positive polarity and as a buffer circuit when the resolver output signal has a negative polarity.

Further, according to an embodiment of the present invention, a method of rectifying a resolver output signal output by a resolver may include: outputting a delay signal by delaying the excitation signal output by the excitation signal generator by a preset value by the microprocessor; comparing, by a delay amount detection circuit, the delayed signal with a reference excitation signal generated by rectification of the excitation signal; outputting, by the delay amount detection circuit, a phase difference detection signal and a delay amount excess/deficiency signal to the microprocessor; detecting, by the microprocessor, a delay amount of the resolver output signal based on the phase difference detection signal; outputting, by the microprocessor, a rectified signal generated by delaying a reference rectified signal by the delay amount; receiving the rectified signal by a switching amplification circuit; and outputting, by the switching amplification circuit, a compensation signal generated by rectifying the resolver output signal by a switching operation based on the rectified signal.

The delay amount detection circuit comprises an exclusive-OR gate and a D-type flip-flop.

The outputting of the phase difference detection signal and the delay amount excess/deficiency signal may include: receiving, by the exclusive-or gate, the delayed signal and the reference excitation signal; outputting, by the exclusive-or gate, the phase difference detection signal indicative of a phase difference between the delayed signal and the reference excitation signal; receiving, by the D-flip flop, the reference excitation signal as an input signal; receiving, by the D-flip flop, the delayed signal as a reference clock; and outputting, by the D-flip flop, the delay amount excess/deficiency signal indicating whether the delayed signal leads or lags relative to the reference fire signal.

The method may further include detecting, by the microprocessor, the delay amount using an output comparison function.

The method may further include detecting, by the microprocessor, the delay amount using an input capture function.

The method may further comprise: initializing, by the microprocessor, a count upon input of the reference rectification signal such that an interrupt is generated by incrementing the count from an initial value; storing, by the microprocessor, the delay amount in a compare value register; detecting, by the microprocessor, whether the delay amount is equal to the count; and outputting, by the microprocessor, a preset output modulation value upon detecting that the delay amount is equal to the count.

When the polarity of the rectified signal is equal to the polarity of the resolver output signal, the switching amplification circuit may operate as a buffer circuit when the resolver output signal has a positive polarity, and may operate as an inverting amplifier when the resolver output signal has a negative polarity.

When the polarity of the rectified signal is opposite to the polarity of the resolver output signal, the switching amplification circuit may operate as an inverting amplifier when the resolver output signal has a positive polarity and as a buffer circuit when the resolver output signal has a negative polarity.

As described above, according to an embodiment of the present disclosure, a circuit may be configured using an element ensuring linearity, such as an operational amplifier (op-amp), to improve linearity. Unlike conventional resolver-to-digital converters (RDCs) that use multiple components, the circuit may be implemented with a small number of components including operational amplifiers and switching amplification circuits. This can therefore reduce the size of the circuit and compensate the resolver output signal in real time, so that measurement errors can be reduced.

Drawings

For a better understanding of the present disclosure, various forms will be described by way of example, and reference will be made to the drawings.

Fig. 1 is a block diagram illustrating a system for rectifying a resolver output signal, according to an embodiment of the disclosure.

Fig. 2 is a view illustrating a structure of a resolver and a waveform of a resolver signal according to an embodiment of the present disclosure.

Fig. 3 is a block diagram of a rectifier circuit according to an embodiment of the present disclosure.

Fig. 4 is a flow chart illustrating a method of rectifying a resolver output signal according to an embodiment of the disclosure.

Fig. 5 shows signal waveforms illustrating the output principle of the reference excitation signal according to an embodiment of the present disclosure.

Fig. 6 shows signal waveforms illustrating the output principle of a reference rectified signal and a delayed signal according to an embodiment of the present disclosure.

Fig. 7 shows an internal configuration of a delay amount detection circuit according to an embodiment of the present disclosure.

Fig. 8A and 8B illustrate a phase difference detection signal and a delay amount excess/deficiency signal according to an embodiment of the present disclosure.

Fig. 9 is a block diagram illustrating an output principle of an output signal using an output comparison function of a microprocessor according to an embodiment of the present disclosure.

Fig. 10 is a flow chart for outputting a rectified signal using an output comparison function according to an embodiment of the present disclosure.

Fig. 11 shows an output signal using an output comparison function according to an embodiment of the present disclosure.

Fig. 12 illustrates a switching amplification circuit according to an embodiment of the present disclosure.

Fig. 13 is a circuit diagram when the switching amplification circuit according to the embodiment of the present disclosure is a buffer circuit.

Fig. 14 is a circuit diagram when the switching amplification circuit according to the embodiment of the present disclosure is an inverting amplifier of an amplification factor-1.

Fig. 15 includes a graph illustrating a compensation signal when the polarity of the resolver output signal is equal to the polarity of the rectified signal, according to an embodiment of the disclosure.

Fig. 16 includes a graph illustrating a compensation signal when the polarity of the resolver output signal is different from the polarity of the rectified signal, according to an embodiment of the disclosure.

Fig. 17 is a block diagram illustrating an output principle of an output signal using an input capture function of a microprocessor according to an embodiment of the present disclosure.

Description of the reference numerals

10: excitation signal generator 11: excitation signal

12: resolver output signal 13: reference rectified signal

14: delay signal 15: reference excitation signal

16: rectified signal 17: compensating signal

20: the rotary transformer 21: primary side winding

22: l1 winding 23: l2 winding

24: the rotor 25: exciting an input signal

26: resolver signal 30: filter with a filter element having a plurality of filter elements

40: the amplifier 50: first comparator

60: second comparator 70: switch amplifying circuit

71: the counter circuit 72: comparison circuit

73: comparison value register 74: output circuit

80: delay amount detection circuit 81: exclusive-or gate

82: phase difference detection signal 83: d type trigger

84: delay amount excess/deficiency signal 90: microprocessor

91. 92, 93: resistor 94: switch with a switch body

100: the rectifier circuit 141: input capture register

142: the counter circuit 143: comparison circuit

144: comparison value register 145: output circuit

Detailed Description

In the following detailed description, only certain exemplary embodiments of the present disclosure have been shown and described, simply by way of illustration. As those skilled in the art will recognize, the described embodiments may be modified in various different ways, without departing from the spirit or scope of the present disclosure. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive. Like reference numerals refer to like elements throughout the specification.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. Throughout this specification, unless explicitly described to the contrary, the word "comprise" and variations such as "comprises" or "comprising", will be understood to imply the inclusion of stated elements but not the exclusion of any other elements. The singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

Additionally, it should be understood that one or more of the following methods or aspects thereof may be performed by at least one control unit. The term "control unit" may refer to a hardware device comprising a memory and a processor (or microprocessor). The memory is configured to store program instructions and the processor is specifically programmed to execute the program instructions to perform one or more processes described further below. As described herein, a control unit may control the operation of units, modules, components, devices, and the like. Further, it should be understood that the following method may be performed by a device comprising a control unit in combination with one or more other components, as would be understood by one of ordinary skill in the art.

Further, the control unit of the present disclosure may be embodied as a non-transitory computer readable medium containing executable program instructions executed by a processor. Examples of computer readable media include, but are not limited to, ROM, RAM, Compact Disc (CD) -ROM, magnetic tape, floppy disk, flash drive, smart card, and optical data storage. The computer readable recording medium CAN also be distributed throughout a computer network so that the program instructions are stored and executed in a distributed fashion, such as through a telematics server or Controller Area Network (CAN).

Fig. 1 is a block diagram illustrating a system for rectifying a resolver output signal, according to an embodiment of the disclosure.

As shown in fig. 1, the system for detecting a delay amount of a resolver output signal according to an embodiment of the present disclosure is used to detect and compensate for a delay amount of a signal output from a resolver 20. The resolver 20 is used to detect the position of the motor rotor, but the filter 30 or the like delays the resolver signals 26 and 26 ', resulting in the rotor's exact position not being measured.

The system for detecting the delay amount of the resolver output signal includes an excitation signal generator 10, a resolver 20, a filter 30, and a rectifier circuit 100.

The excitation signal generator 10 outputs an excitation signal 11, and inputs the excitation signal 11 into the resolver 20 and the rectifier circuit 100, the excitation signal 11 being a signal for each motor position. For example, the excitation signal generator 10 may be a Central Processing Unit (CPU), a motor, etc., but is not limited thereto. Further, the excitation input signal 25 generated by amplifying the excitation signal 11 by the amplifier 40 may be input to the resolver 20 (see fig. 2 and 3). The process of generating the excitation signal 11 by the excitation signal generator 10 will be apparent to those of ordinary skill in the art, and thus a description thereof is omitted herein.

The resolver 20, which is a device for detecting the rotor angle of the motor, receives the excitation signal 11 and outputs resolver signals 26 and 26'. The resolver 20 may receive an excitation input signal 25 generated by amplifying the excitation signal 11 by an amplifier 40.

The filter 30, which is a means for removing noise of the resolver signals 26 and 26 ', receives the resolver signals 26 and 26' from the resolver 20, removes noise of the resolver signals 26 and 26 ', and outputs the resolver output signals 12 and 12'.

The structure of the resolver 20 and the resolver signals 26 and 26' will be described with reference to fig. 2.

Fig. 2 is a view illustrating a structure of a resolver and a waveform of a resolver signal according to an embodiment of the present disclosure.

The resolver 20 includes a primary side winding 21, a secondary side L1 winding 22, a secondary side L2 winding 23, and a rotor 24.

An excitation input signal 25 is input to the primary side winding 21. In the secondary side L1 winding 22, the sine wave by flux linkage and the excitation input signal 25 are multiplied by each other, so that the resolver signal 26 is output. The excitation signal 11 may be input to the primary side winding 21.

In the secondary side L2 winding 23, the cosine wave by the flux linkage and the excitation input signal 25 are multiplied by each other, so that the resolver signal 26' is output.

The resolver signals 26 and 26' are signals having sine waves and cosine waves, respectively, and are periodically output.

The process of outputting the resolver signals 26 and 26' is apparent to those of ordinary skill in the art, and thus a description thereof is omitted.

When the resolver signals 26 and 26 ' pass through the filter 30, the noise of the resolver signals 26 and 26 ' is removed, respectively, the noise-removed resolver signals 26 and 26 ' are output as the resolver output signals 12 and 12 ', and the resolver output signals 12 and 12 ' are input in parallel to the corresponding rectifying circuits 100. Since the operation of the system of the rectifier circuit 100 is the same, a case where one resolver output signal 12 is rectified by the rectifier circuit 100 will be described.

The rectifier circuit 100 receives and rectifies the resolver output signal 12. The rectifier circuit 100 will be described in detail with reference to fig. 3.

Fig. 3 is a block diagram of a rectifier circuit of a resolver output signal according to an embodiment of the disclosure.

As shown in fig. 3, the rectifier circuit 100 according to the embodiment of the present disclosure includes a first comparator 50, a second comparator 60, a switching amplification circuit 70, a delay amount detection circuit 80, and a microprocessor 90.

The first comparator 50 receives and rectifies the resolver output signal 12 and outputs a reference excitation signal 15.

The second comparator 60 rectifies the excitation signal 11 output from the excitation signal generator 10, and outputs a reference rectified signal 13.

The first comparator 50 and the second comparator 60 may be operational amplifiers, but are not limited thereto.

The switching amplification circuit 70 rectifies the resolver output signal 12 based on the rectified signal 16, and outputs the compensation signal 17.

The delay amount detection circuit 80 compares the reference excitation signal 15 and the delay signal 14 with each other, and outputs a phase difference detection signal 82 and a delay amount excess/deficiency signal 84, which are signals of the delay amount for the resolver output signal 12.

The delay amount detection circuit 80 may be implemented by at least one processor operated by a setting program. The setting program may be programmed to perform each step of the method of outputting the phase difference detection signal 82 and the delay amount excess/deficiency signal 84, which are signals for the delay amount of the resolver output signal 12 according to the embodiment of the present disclosure.

The microprocessor 90 receives the reference rectified signal 13, arbitrarily delays the reference rectified signal 13 to output a delayed signal 14, calculates a delay amount using the phase difference detection signal 82 output from the delay amount detection circuit 80, and delays the reference rectified signal 13 based on the delay amount to output a rectified signal 16.

The microprocessor 90 may be implemented by at least one processor operated by a set program. According to an embodiment of the present disclosure, the setup program may be programmed to perform each step of the method of detecting the amount of delay of the resolver output signal 12.

The microprocessor 90 may use an output comparison function to delay the reference rectified signal 13. The output comparison function will be described below.

Here, the delayed signal 14 and the rectified signal 16 are both signals generated by delaying the reference rectified signal 13, but the delayed signal 14 is a signal generated by arbitrarily delaying the reference rectified signal 13 by a preset value so as to calculate a delay amount, and the rectified signal 16 is a signal generated by delaying the reference rectified signal 13 by the delay amount so as to generate the compensation signal 17. In addition, the reference excitation signal 15 is a signal whose phase and direction are equal to those of the resolver output signal 12.

Fig. 4 is a flow chart illustrating a method of rectifying a resolver output signal according to an embodiment of the disclosure.

As shown in fig. 4, the method of rectifying the resolver output signal according to the embodiment of the present disclosure starts when the excitation signal 11 is input to the second comparator 60 and the reference rectification signal 13 is output (S100).

The resolver output signal 12 is then input to each of the first comparator 50 and the switching amplification circuit 70. The first comparator 50 rectifies and amplifies the resolver output signal 12, and outputs the reference excitation signal 15 (S110).

Fig. 5 shows the output reference stimulus signal 15. When the resolver output signal 12 having a positive value is input to the first comparator 50, the first comparator 50 outputs 1 as the reference excitation signal 15, and when the resolver output signal 12 having a negative value is input to the first comparator 50, the first comparator 50 outputs 0 as the reference excitation signal 15. The reference excitation signal 15 is input to the delay amount detection circuit 80.

Fig. 6 shows the output reference rectified signal 13 and the delayed signal 14. When the stimulus signal 11 having a positive value is input to the second comparator 60, the second comparator 60 outputs 1 as the reference rectified signal 13, and when the stimulus signal 11 having a negative value is input to the second comparator 60, the second comparator 60 outputs 0 as the reference rectified signal 13. The reference rectified signal 13 is input to the microprocessor 90.

The microprocessor 90 arbitrarily delays the reference rectified signal 13 by a preset value to output a delayed signal 14 (S120). The delay signal 14 is input to the delay amount detection circuit 80.

Here, the preset value refers to a value for arbitrarily delaying the reference rectified signal 13 by the microprocessor 90 in order to compare the reference rectified signal 13 with the reference excitation signal 15. Further, in the case where the delayed signal 14 is output from the microprocessor 90, the output comparison function of the microprocessor may be used.

The delay amount detection circuit 80 compares the reference excitation signal 15 and the delay signal 14 with each other, and outputs the phase difference detection signal 82 for the phase difference of the resolver output signal 12 and the delay amount excess/insufficient signal 84 as a delay amount signal with respect to the direction, so as to input the phase difference detection signal 82 and the delay amount excess/insufficient signal 84 to the microprocessor 90 (S130). A process of outputting the phase difference detection signal 82 and the delay amount excess/insufficient signal 84 from the delay amount detection circuit 80 will be described with reference to fig. 7 and 8.

Fig. 7 shows an internal configuration of the delay amount detection circuit, and fig. 8A and 8B show a phase difference detection signal and a delay amount excess/deficiency signal output from the delay amount detection circuit.

The delay amount detection circuit 80 includes an exclusive or gate 81 and a D-type flip-flop 83.

The exclusive or gate 81 determines a case where the phases of the two input signals are equal to each other as "false" to output "0", and determines a case where the phases of the two input signals are different from each other as "true" to output "1". That is, when the delay signal 14 and the reference excitation signal 15 are input to the exclusive or gate 81, the exclusive or gate 81 compares the phases of the delay signal 14 and the reference excitation signal 15 with each other, and outputs the phase difference detection signal 82.

The D-type flip-flop 83 compares whether the phase of the input signal leads or lags with respect to the reference clock, and outputs the comparison result. The reference excitation signal 15 is input as an input signal to a D-type flip-flop 83 and the delayed signal 14 is input as a reference clock to the D-type flip-flop 83. In this case, the D-type flip-flop 83 outputs a signal that detects whether the delayed signal 14 leads or lags with respect to the reference excitation signal 15 as the delay amount excess/deficiency signal 84. The D-type flip-flop 83 outputs "0" as the delay amount excess/deficiency signal 84 in the case where the delayed signal 14 is advanced compared with the reference fire signal 15 as shown in fig. 8A, and the D-type flip-flop 83 outputs "1" as the delay amount excess/deficiency signal 84 in the case where the delayed signal 14 is delayed compared with the reference fire signal 15 as shown in fig. 8B. The phase difference detection signal 82 and the delay amount excess/deficiency signal 84 are input to the microprocessor 90, and the delay amount is detected using the output comparison function of the microprocessor 90.

The phase difference detection signal 82 is input to the microprocessor 90 so that an interrupt is generated. An interrupt is generated only in the case where the value of the phase difference detection signal 82 changes. That is, as shown in fig. 8A and 8B, the phase difference detection signal 82 changes from "0" to "1" (hereinafter referred to as "rising edge") or from "1" to "0" (hereinafter referred to as "falling edge"). Therefore, interrupts are generated at the rising edge and the falling edge. Further, the interrupt value becomes "1" on the rising edge and becomes "0" on the falling edge. An interrupt having an interrupt value of "1" generated at a rising edge is referred to as a rising interrupt, and an interrupt having an interrupt value of "0" generated at a falling edge is referred to as a falling interrupt.

Further, the rising interrupt and the falling interrupt are repeatedly generated as interrupts. When the phase difference detection signal 82 is input to the microprocessor 90 to generate a rising interrupt, the count is set to 0 and continues to increase until a falling interrupt is generated. In this case, the count and the delay amount of the delay signal 14 are added to each other to become the delay amount of the resolver output signal 12.

The microprocessor 90 delays the reference rectified signal 13 by the detected delay amount to output the rectified signal 16, and inputs the rectified signal 16 to the switching amplification circuit 70 (S140).

The output comparison function of the microprocessor 90 may be used to output the rectified signal 16. The output comparison function will be described with reference to fig. 9.

Fig. 9 is a block diagram illustrating the principle of the output comparison function of the microprocessor.

The microprocessor 90 implementing the output comparison function includes a counter circuit 71, a comparison circuit 72, a comparison value register 73, and an output circuit 74. The counter circuit 71 performs counting by the reference clock, and the comparison circuit 72 detects whether the count is equal to the count of the input comparison value register 73. When the count of the counter circuit 71 is equal to the count of the comparison value register 73, a preset output modulation value is output through the output circuit 74.

In the case of delaying a signal using the output comparison function of the microprocessor 90, the microprocessor 90 needs to set the output comparison function such that the output comparison function is initially operated, and set an external interrupt or pin level change interrupt (PCINT) such that the external interrupt or PCINT is generated at both a rising edge and a falling edge.

Fig. 10 and 11 show a process of outputting a rectified signal using an output comparison function of a microprocessor.

When the reference rectified signal 13 is input so that a rising interrupt is generated at a rising edge (a point at which the reference rectified signal 13 changes from 0 to 1) or a falling interrupt is generated at a falling edge (a point at which the reference rectified signal 13 changes from 1 to 0), the microprocessor 90 stores an interrupt value in a register (S210). An external interrupt or PCINT may be utilized in order to generate the interrupt, but the disclosure is not limited thereto. Further, a register refers to any register embedded in microprocessor 90.

When an up interrupt (whose interrupt value is 1) or a down interrupt (whose interrupt value is 0) is generated, the count of the counter circuit 71 is initialized to 0 and then incremented (S220). The increase speed of the count of the counter circuit 71 changes depending on the value of the reference clock. For example, in the case where the reference clock is set to 1MHz, the count is increased by 1 every 1 microsecond.

At the time of initializing the count of the counter circuit 71, the delay amount is stored in the comparison value register 73 (S230). The delay amount is a delay amount detected by using the output comparison function of the microprocessor 90 when the phase difference detection signal 82 is input to the microprocessor 90 and an up interrupt or a down interrupt is generated. The microprocessor 90 determines whether the value of the interrupt stored in the register is 1 (S240). When it is determined in S240 that the value of the interrupt stored in the register is 1, the microprocessor 90 schedules the output scheduling value of the output circuit 74 to 1 (S241). When it is determined in S240 that the value of the interrupt stored in the register is 0, the microprocessor 90 schedules the output scheduling value of the output circuit 74 to 0 (S242).

Then, the comparison circuit 72 compares the count incremented by the counter circuit 71 and the count stored in the comparison value register 73 with each other. When the count incremented by the counter circuit 71 is equal to the count stored in the comparison value register 73 (S250), the output circuit 74 outputs 1 or 0 as an output modulation value (S260).

The output dimming values 1 and 0 are repeatedly output to output the rectified signal 16. That is, as shown in fig. 11, the microprocessor 90 delays the reference rectified signal 13 based on the delay amount of the resolver output signal 12 to output the rectified signal 16. The microprocessor 90 inputs the rectified signal 16 to the switching amplification circuit 70 (S140).

The switching amplification circuit 70 rectifies the resolver output signal 12 based on the rectified signal 16, and outputs the compensation signal 17 (S150).

Hereinafter, the switching amplification circuit 70 will be described with reference to fig. 12 to 14, and a process of outputting the compensation signal 17 will be described with reference to fig. 15 and 16.

Hereinafter, in fig. 12 to 16, it is considered that the rectified signal 16 has a positive polarity in a portion where the value of the rectified signal 16 is "1", and has a negative polarity in a portion where the value of the rectified signal 16 is "0".

Fig. 12 is a circuit diagram illustrating a switching amplification circuit according to an embodiment of the present disclosure.

The switching amplification circuit 70 includes three resistors 91, 92, and 93. The resistance values R1, R2, and R3 of the three resistors 91, 92, and 93 are equal to each other. The switch 94 may be opened or closed depending on the polarity of the rectified signal 16. In detail, in the case where the rectified signal 16 input to the switch 94 of the switching amplification circuit 70 has a negative polarity, the switch 94 is closed to operate as an inverting amplifier having an amplification factor of-1, and in the case where the rectified signal 16 input to the switch 94 of the switching amplification circuit 70 has a positive polarity, the switch 94 is opened to operate as a buffer circuit. Further, the switch 94 may be an analog switch or a transistor, but is not limited thereto. A Microprocessor Control Unit (MCU) (not shown) embedded in the microprocessor 90 may control the opening and closing of the switch 94.

The operation of the switch amplification circuit 70 depending on the operation state of the switch 94 will be described with reference to fig. 13 and 14.

Fig. 13 is a circuit diagram when the switching amplification circuit according to the embodiment of the present disclosure is a buffer circuit. When the rectified signal 16 has a positive polarity, the switch 94 of the switching amplification circuit 70 is opened. In this case, the resistance values R1, R2, and R3 of the three resistors 91, 92, and 93 are equal to each other, and thus the switching amplification circuit 70 operates as a buffer circuit.

Fig. 14 is a circuit diagram when the switching amplification circuit according to the embodiment of the present disclosure is an inverting amplifier of an amplification factor-1. When the rectified signal 16 has a negative polarity, the switch 94 of the switching amplification circuit 70 is turned off. In this case, the resistance values R1, R2, and R3 of the three resistors 91, 92, and 93 are equal to each other, and therefore the switching amplification circuit 70 operates as an inverting amplifier with an amplification factor of-1.

The compensation signal output depending on the operation state of the switching amplification circuit 70 will be described with reference to fig. 15 and 16.

Fig. 15 and 16 show that when the resolver signals 26 and 26 'have a positive phase in one cycle of the resolver signals 26 and 26', the resolver output signal 12 is rectified based on the rectification signal 16 so that the compensation signal 17 is output. Also in case the resolver signals 26 and 26' have opposite phase, the resolver output signal 12 is rectified based on the rectified signal 16 such that the compensated signal 17 is output.

FIG. 15 includes a graph illustrating the compensation signal when the polarity of the resolver output signal is equal to the polarity of the rectified signal.

As shown in fig. 15, the switching amplification circuit 70 operates as a buffer circuit when both the resolver output signal 12 and the rectified signal 16 have positive polarities, and the switching amplification circuit 70 operates as an inverting amplifier with an amplification factor of-1 when both the resolver output signal 12 and the rectified signal 16 have negative polarities.

Therefore, when the resolver output signal 12 has a positive polarity, the resolver output signal 12 is rectified in a state where the magnitude and phase of the resolver output signal 12 are maintained so that the compensation signal 17 is output, and when the resolver output signal 12 has a negative polarity, the resolver output signal 12 is rectified in a state where the magnitude of the resolver output signal 12 is maintained and only the phase of the resolver output signal 12 is inverted so that the compensation signal 17 is output.

In this way, when the polarity of the resolver output signal 12 is equal to the polarity of the rectified signal 16, the resolver output signal 12 is rectified so that the compensation signal 17 having the positive polarity is output.

Fig. 16 is a graph showing a compensation signal when the polarity of the resolver output signal is different from the polarity of the rectified signal.

As shown in fig. 16, when the resolver output signal 12 has a negative polarity and the rectified signal 16 has a positive polarity, the switching amplification circuit 70 operates as a buffer circuit, and when the resolver output signal 12 has a positive polarity and the rectified signal 16 has a negative polarity, the switching amplification circuit 70 operates as an inverting amplifier having an amplification factor of-1.

Therefore, when the resolver output signal 12 has a positive polarity, the resolver output signal 12 is rectified in a state where the magnitude of the resolver output signal 12 is maintained and the phase of the resolver output signal 12 is reversed, so that the compensation signal 17 is output, and when the resolver output signal 12 has a negative polarity, the resolver output signal 12 is rectified in a state where the magnitude and the phase of the resolver output signal 12 are maintained, so that the compensation signal 17 is output.

In this way, when the polarities of the resolver output signal 12 and the rectified signal 16 are opposite to each other, the resolver output signal 12 is rectified so that the compensation signal 17 having the negative polarity is output.

Further, the compensation signals 17 are output from two circuits connected in parallel to each other, respectively. The output compensation signal 17 is sampled to obtain a sine wave and a cosine wave, and the sine wave and the cosine wave are input to two input terminals of an Angle Tracking Observer (ATO) (not shown), respectively.

The ATO may then be used to detect the azimuth angle of the rotor of the motor and may compensate for the amount of delay in the resolver output signal 12.

The method of sampling the compensation signal 17 or detecting the angle of the rotor of the motor using ATO, and the method of compensating for the delay amount of the resolver output signal 12 are apparent to those of ordinary skill in the art, and thus a description thereof is omitted herein.

In another example, the amount of delay of the resolver output signal 12 may be detected using an input capture function of the microprocessor 90. Fig. 17 is a block diagram illustrating an output principle of an output signal using an input capture function of a microprocessor according to an embodiment of the present disclosure.

The input capture function of the microprocessor is similar to the output comparison function described above, but is different from the output comparison function that initializes the count of the counter circuit to 0 and calculates the delay amount when an interrupt is generated due to the input of the phase difference detection signal 82 to the microprocessor 90 in that: when the interrupt is generated, the delay amount of the resolver output signal 12 is calculated without initializing the count of the counter circuit to 0.

The microprocessor 90 implementing the input capture function includes an input capture register 141, a counter circuit 142, a comparison circuit 143, a comparison value register 144, and an output circuit 145.

Similarly to the case of using the output comparison function of the microprocessor 90, the count of the counter circuit 142 is set to 0, the counter circuit 142 starts counting by the reference clock, the comparison circuit 143 detects whether the count is equal to the count of the input comparison value register 144, and when the count is equal to the count of the input comparison value register 144, a preset output modulation value is output as an output signal through the output circuit 145. The count input to the compare value register 144 corresponds to the amount of delay in the resolver output signal 12.

A method of detecting the delay amount of the resolver output signal 12 using the input capture function of the microprocessor 90 will be described.

When a rise interrupt is generated by the phase difference detection signal 82, a rise count, which is a count at a point of time when the rise interrupt is generated, is stored in the input capture register.

Then, when a falling interrupt is generated by the phase difference detection signal 82, a falling count, which is a count at a point of time when the falling interrupt is generated, is stored in the input capture register 141.

The microprocessor 90 calculates the difference between the down count and the up count to detect the amount of delay in the resolver output signal 12. The microprocessor 90 outputs the rectified signal 16 based on the detected delay amount to input the rectified signal 16 to the switching amplification circuit 70. The switching amplification circuit 70 rectifies the resolver output signal 12 based on the rectified signal 16, and outputs the compensation signal 17. The compensation signals 17 are output from the parallel-connected circuits, respectively, and using ATO based on the respective output compensation signals 17, the bit angle of the motor rotor can be detected and the delay amount of the resolver output signal 12 can be compensated.

While the disclosure has been described in connection with certain embodiments, it is to be understood that the disclosure is not limited to the disclosed embodiments, but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

26页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种霍尔信号采集装置及其工作方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!