MOTOR CONTROL DEVICE, MOTOR UNIT, AND VEHICLE
The motor control device ensures fail-safe operation by integrating an alternative circuit and mode switching mechanism to manage switching elements, addressing the failure of fail-safe control in abnormal conditions.
Patent Information
- Application Number
- JP2020154505
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-15
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-09-15
AI Technical Summary
Existing motor control devices fail to execute fail-safe control when an abnormality occurs in the arithmetic processing device, such as an MCU or CPU, which controls the switching elements of the inverter.
The motor control device incorporates an alternative circuit that replaces the arithmetic processing device, a mode switching unit to switch control modes based on the state of the processing unit, and overvoltage detection circuits to ensure fail-safe control is maintained even in abnormal conditions.
Enables fail-safe control to be performed when an abnormality occurs in the arithmetic processing device, effectively preventing damage to the inverter and motor by managing the switching elements and maintaining safety.
Smart Images

Figure 0007575174000001 
Figure 0007575174000002 
Figure 0007575174000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a motor control device, a motor unit, and a vehicle. [Background technology]
[0002] Known technologies for protecting the inverter and the motor when an abnormality occurs in the inverter that drives the motor include active short circuit control (ASC control), which controls all switching elements included in the upper arm or lower arm of the inverter to the on state, and shutdown control (SD control), which controls all switching elements of the inverter to the off state. Hereinafter, ASC control and SD control are collectively referred to as fail-safe control.
[0003] For example, Patent Document 1 discloses a technique for changing the overcurrent threshold from a normal threshold to a short circuit control threshold that is greater than the normal threshold when ASC control is being performed, in order to prevent the ASC control from being canceled due to the inverter output current momentarily exceeding the overcurrent threshold when the ASC control is being performed.
[0004] Furthermore, for example, Patent Document 2 discloses a technique for preventing an excessive surge voltage from being applied to the switching elements when SD control is being performed, in which all switching elements included in the upper arm are controlled to the off state when SD control is being performed, and after a predetermined time has elapsed, all switching elements included in the lower arm are controlled to the off state. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2017-225236 A [Patent Document 2] JP 2014-217151 A Summary of the Invention [Problem to be solved by the invention]
[0006] The motor control device includes a processor such as an MCU (Micro Controller Unit) or a CPU (Central Processing Unit) that controls the switching elements of the inverter. In general, the fail-safe control including the ASC control and SD control is executed by the processor. Therefore, if an abnormality occurs in the processor, there is a possibility that the fail-safe control will not be executed.
[0007] In view of the above circumstances, an object of the present invention is to provide a motor control device, a motor unit, and a vehicle that are capable of executing fail-safe control when an abnormality occurs in an arithmetic processing device. [Means for solving the problem]
[0008] One aspect of the motor control device of the present invention includes a motor drive circuit having an upper arm and a lower arm, a calculation processing device that controls the motor drive circuit, an alternative circuit that substitutes for the calculation processing device, and a mode switching unit that switches a control mode between a first control mode in which the calculation processing device controls the motor drive circuit and a second control mode in which the alternative circuit controls the motor drive circuit based on a state of the calculation processing device. a first overvoltage detection circuit that outputs a first overvoltage detection signal whose state changes depending on the magnitude of an input voltage to the motor drive circuit; The mode switching unit switches the control mode from the first control mode to the second control mode when a state of the arithmetic processing device changes from a normal state to an abnormal state. In the second control mode, the alternative circuit controls switching of switching elements included in the upper arm and the lower arm based on states of the upper arm and the lower arm. The arithmetic processing device compares an input voltage of the motor drive circuit with a first threshold and executes fail-safe control when the input voltage exceeds the first threshold, the first overvoltage detection circuit compares an input voltage of the motor drive circuit with a second threshold higher than the first threshold and changes a state of the first overvoltage detection signal from a first state to a second state when the input voltage exceeds the second threshold, and the mode switching unit switches the control mode from the first control mode to the second control mode even when the state of the first overvoltage detection signal changes from the first state to the second state. .
[0009] One aspect of the motor control device of the present invention includes a motor drive circuit having an upper arm and a lower arm, a calculation processing device that controls the motor drive circuit, an alternative circuit that replaces the calculation processing device, a first overvoltage detection circuit that outputs a first overvoltage detection signal whose state changes depending on the magnitude of an input voltage to the motor drive circuit, and a mode switching unit that switches control modes between a first control mode in which the calculation processing device controls the motor drive circuit and a second control mode in which the alternative circuit controls the motor drive circuit based on the state of the first overvoltage detection signal. a first isolation circuit interposed between the motor drive circuit and the first overvoltage detection circuit; The arithmetic processing device compares an input voltage of the motor drive circuit with a first threshold, and executes fail-safe control when the input voltage exceeds the first threshold. The first overvoltage detection circuit compares an input voltage of the motor drive circuit with a second threshold higher than the first threshold, and changes a state of the first overvoltage detection signal from a first state to a second state when the input voltage exceeds the second threshold. The mode switching unit switches the control mode from the first control mode to the second control mode when the state of the first overvoltage detection signal changes from the first state to the second state. In the second control mode, the alternative circuit controls switching of the switching elements included in the upper arm and the lower arm based on states of the upper arm and the lower arm.
[0010] A motor unit according to one aspect of the present invention includes a motor and the motor control device according to the above aspect that controls the motor.
[0011] A vehicle according to one aspect of the present invention includes the motor unit according to the above aspect. Effect of the Invention
[0012] According to the above aspects of the present invention, it is possible to provide a motor control device, a motor unit, and a vehicle that are capable of executing fail-safe control when an abnormality occurs in the arithmetic processing device. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram showing a schematic configuration of a vehicle according to the present embodiment. [Diagram 2] FIG. 2 is a diagram showing a schematic configuration of an internal circuit of the motor control device according to the present embodiment. [Diagram 3] FIG. 3 is a flowchart showing a motor control process that the MCU normally executes according to a program stored in the non-volatile memory. [Figure 4] FIG. 4 is a flowchart showing vector control executed by the MCU as normal motor control. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. 1 is a diagram showing a schematic configuration of a vehicle 1 in this embodiment. For example, the vehicle 1 is an electric vehicle that runs on four wheels including two drive wheels 2 and two steered wheels (not shown). The vehicle 1 in this embodiment includes a vehicle speed sensor 3, an accelerator position sensor (APS) 4, an electronic control unit (ECU) 5, a motor unit 6, a high-voltage battery 7, and a low-voltage battery 8.
[0015] The vehicle speed sensor 3 detects the speed of the vehicle 1 and outputs the detection result as vehicle speed data to the electronic control unit 5. The accelerator position sensor 4 detects the depression amount of the accelerator pedal and outputs the detection result to the electronic control unit 5 as accelerator position data.
[0016] The electronic control device 5 controls the driving force transmitted to the driving wheels 2 by a motor unit 6 described below, based on vehicle speed data input from the vehicle speed sensor 3 and accelerator position data input from the accelerator position sensor 4. Specifically, the electronic control device 5 determines a torque command value Tm* at which the driving force requested by the driver is transmitted to the driving wheels 2, based on the vehicle speed data and the accelerator position data, and outputs a motor control signal CS indicating the torque command value Tm* to the motor unit 6.
[0017] The motor unit 6 drives the drive wheels 2 based on a motor control signal CS input from the electronic control device 5. Specifically, the motor unit 6 controls the torque of the motor 10 based on a torque command value Tm* indicated by the motor control signal CS, thereby transmitting a driving force requested by the driver to the drive wheels 2. The motor unit 6 includes the motor 10, a reduction gear 20, a differential gear 30, and a motor control device 40.
[0018] The motor 10 is a high-power motor used as a drive source for the vehicle 1. For example, the motor 10 is an inner rotor type three-phase synchronous motor. The motor 10 has a rotor shaft 11, a U-phase terminal 12u, a V-phase terminal 12v, a W-phase terminal 12w, a U-phase coil 13u, a V-phase coil 13v, and a W-phase coil 13w.
[0019] Although not shown in Fig. 1, the motor 10 has a motor housing, and a rotor and a stator housed in the motor housing. The rotor is a rotating body rotatably supported by bearing parts inside the motor housing. The stator is fixed inside the motor housing in a state where it surrounds the outer circumferential surface of the rotor, and generates the electromagnetic force required to rotate the rotor.
[0020] The rotor shaft 11 is an axial body that is coaxially joined to the rotor. The U-phase terminal 12u, the V-phase terminal 12v, and the W-phase terminal 12w are metal terminals that are exposed from the surface of the motor housing. The U-phase terminal 12u, the V-phase terminal 12v, and the W-phase terminal 12w are electrically connected to the motor control device 40. The U-phase coil 13u, the V-phase coil 13v, and the W-phase coil 13w are excitation coils provided in the stator. The U-phase coil 13u, the V-phase coil 13v, and the W-phase coil 13w are star-connected inside the motor 10.
[0021] The U-phase coil 13u is electrically connected between the U-phase terminal 12u and the neutral point N. The V-phase coil 13v is electrically connected between the V-phase terminal 12v and the neutral point N. The W-phase coil 13w is electrically connected between the W-phase terminal 12w and the neutral point N. The three-phase currents flowing through the U-phase coil 13u, the V-phase coil 13v, and the W-phase coil 13w are controlled by the motor control device 40, thereby generating electromagnetic forces required to rotate the rotor. As the rotor rotates, the rotor shaft 11 also rotates in synchronization with the rotor. The rotational force of the rotor shaft 11 is transmitted to the drive wheels 2 via a power transmission mechanism including the reducer 20 and the differential gear 30.
[0022] The motor control device 40 controls the motor 10 based on a motor control signal CS input from the electronic control device 5. Specifically, the motor control device 40 controls the three-phase currents flowing through the U-phase coil 13u, the V-phase coil 13v, and the W-phase coil 13w based on a torque command value Tm* indicated by the motor control signal CS, thereby controlling the torque of the motor 10 to a value corresponding to the torque command value Tm*.
[0023] The motor control device 40 has a high voltage positive terminal 41, a high voltage negative terminal 42, a low voltage positive terminal 43, and a low voltage negative terminal 44 as power supply terminals. The high voltage positive terminal 41 is electrically connected to the positive terminal of the high voltage battery 7. The high voltage negative terminal 42 is electrically connected to the negative terminal of the high voltage battery 7. The low voltage positive terminal 43 is electrically connected to the positive terminal of the low voltage battery 8. The low voltage negative terminal 44 is electrically connected to the negative terminal of the low voltage battery 8.
[0024] The high-voltage battery 7 and the low-voltage battery 8 are secondary batteries such as lithium-ion batteries or nickel-metal hydride batteries. The high-voltage battery 7 outputs a high DC voltage HV of, for example, 470V. The low-voltage battery 8 outputs a low DC voltage LV of, for example, 12V. Although details will be described later, the internal circuitry of the motor control device 40 is divided into a high-voltage circuit and a low-voltage circuit. The high DC voltage HV output from the high-voltage battery 7 to the motor control device 40 is used as a power supply voltage for operating the high-voltage circuit, and the low DC voltage LV output from the low-voltage battery 8 to the motor control device 40 is used as a power supply voltage for operating the low-voltage circuit.
[0025] The motor control device 40 has a U-phase output terminal 45u, a V-phase output terminal 45v, and a W-phase output terminal 45w as output terminals. The U-phase output terminal 45u is electrically connected to the U-phase terminal 12u of the motor 10. The V-phase output terminal 45v is electrically connected to the V-phase terminal 12v of the motor 10. The W-phase output terminal 45w is electrically connected to the W-phase terminal 12w of the motor 10. A three-phase current is supplied from the motor control device 40 to the motor 10 via the U-phase output terminal 45u, the V-phase output terminal 45v, and the W-phase output terminal 45w, causing the motor 10 to rotate with a torque determined by the torque command value Tm*.
[0026] Fig. 2 is a diagram showing a schematic configuration of an internal circuit of the motor control device 40. As shown in Fig. 2, the motor control device 40 includes a motor drive circuit 100, a first isolation circuit 210, a second isolation circuit 220, an MCU 300, a PMIC (Power Management Integrated Circuit) 400, a substitute circuit 500, a first overvoltage detection circuit 610, a second overvoltage detection circuit 620, a logical OR circuit 700, and a multiplexer 800.
[0027] The motor drive circuit 100 is a three-phase inverter that converts DC power supplied from a high-voltage battery 7 into three-phase power and outputs it to a motor 10. The motor drive circuit 100 has an upper arm 110 including three upper switching elements, and a lower arm 120 including three lower switching elements. The upper arm 110 includes a U-phase upper switching element Q UH and the V-phase upper switching element Q VH and W-phase upper switching element Q WH The lower arm 120 includes a U-phase lower switching element Q UL and the V-phase lower switching element Q VL and the W-phase lower switching element Q WL In this embodiment, each switching element is, for example, an N-channel IGBT. Each switching element includes a freewheel diode connected in antiparallel to the switching element.
[0028] U-phase upper switching element Q UH Collector terminal of V-phase upper switching element Q VH The collector terminal of the W-phase upper switching element Q WH The collector terminals of the U-phase lower switching element Q are electrically connected to the high voltage positive terminal 41. UL Emitter terminal of V-phase lower switching element Q VL The emitter terminal of the W-phase lower switching element Q WL The emitter terminals of these terminals are each electrically connected to high-voltage negative terminal 42. As described above, high-voltage positive terminal 41 is electrically connected to the positive terminal of high-voltage battery 7, and high-voltage negative terminal 42 is electrically connected to the negative terminal of high-voltage battery 7.
[0029] U-phase upper switching element Q UH The emitter terminal of the U-phase output terminal 45u and the U-phase lower switching element Q UL That is, the U-phase upper switching element Q UH The emitter terminal of this is electrically connected to the U-phase terminal 12u of the motor 10 via a U-phase output terminal 45u.
[0030] V-phase upper switching element Q VH The emitter terminal of the V-phase output terminal 45v and the V-phase lower switching element Q VL That is, the V-phase upper switching element Q VH The emitter terminal of is electrically connected to the V-phase terminal 12v of the motor 10 via the V-phase output terminal 45v.
[0031] W-phase upper switching element Q WH The emitter terminal of the W-phase output terminal 45w and the W-phase lower switching element Q WL That is, the W-phase upper switching element Q WH The emitter terminal of is electrically connected to the W-phase terminal 12w of the motor 10 via a W-phase output terminal 45w.
[0032] The motor drive circuit 100 has a U-phase upper gate driver 111, a V-phase upper gate driver 112, a W-phase upper gate driver 113, a U-phase lower gate driver 121, a V-phase lower gate driver 122, and a W-phase lower gate driver 123 as gate drivers that drive the above-mentioned switching elements.
[0033] The U-phase high-side gate driver 111 is a U-phase high-side switching element Q UH The U-phase high-side gate driver 111 is electrically connected to the gate terminal, collector terminal, and emitter terminal of the U-phase high-side switching element Q based on the U-phase high-side gate control signal UHG output from the multiplexer 800. UH The gate voltage is the voltage between the gate terminal and the emitter terminal. Specifically, for example, when the U-phase high-side gate control signal UHG is at a high level, the U-phase high-side gate driver 111 changes the gate voltage of the U-phase high-side switching element Q UH On the other hand, when the U-phase high-side gate control signal UHG is at a low level, the U-phase high-side gate driver 111 changes the gate voltage to a value that turns on the U-phase high-side switching element Q UHThe gate voltage is changed to a value where the transistor is in the off state.
[0034] In addition, the U-phase high-side gate driver 111 outputs a fault signal FLT1, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. The U-phase high-side gate driver 111 outputs a fault signal FLT1, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. UH On the other hand, the U-phase high-side gate driver 111 outputs a high-level fault signal FLT1 when the U-phase high-side switching element Q UH When the upper switching element Q of the U phase is in an abnormal state, the low-level fault signal FLT1 is output. UH When an excessive collector current flows through the U-phase upper switching element Q, the collector-emitter voltage exceeds the saturation voltage. UH For example, the U-phase high-side gate driver 111 determines that the U-phase high-side switching element Q UH It monitors the collector-emitter voltage of the transistor and outputs a low-level fault signal FLT1 when the collector-emitter voltage exceeds the saturation voltage.
[0035] In addition, the U-phase upper switching element Q UH The events that are judged to be abnormal are when the U-phase upper switching element Q UH For example, the U-phase upper switching element Q UH The temperature of the U-phase upper switching element Q UH Therefore, for example, the U-phase high-side gate driver 111 determines that the U-phase high-side switching element Q UH The temperature of the U-phase high-side gate driver 111 may be monitored by a thermistor or the like, and a low-level fault signal FLT1 may be output when the temperature exceeds a threshold value. Furthermore, the U-phase high-side gate driver 111 may output a low-level fault signal FLT1 even when the U-phase high-side gate driver 111 does not operate due to a reason such as a power supply voltage not being input to the U-phase high-side gate driver 111.
[0036] The V-phase high-side gate driver 112 is a V-phase high-side switching element Q VHSimilar to the U-phase high-side gate driver 111, the V-phase high-side gate driver 112 controls the V-phase high-side switching element Q VH The gate voltage of is changed.
[0037] Similarly to the U-phase high-side gate driver 111, the V-phase high-side gate driver 112 outputs a fault signal FLT2, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. That is, the V-phase high-side gate driver 112 outputs a fault signal FLT2, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. VH On the other hand, the V-phase high-side gate driver 112 outputs a high-level fault signal FLT2 when the V-phase high-side switching element Q VH When the inverter is in an abnormal state, it outputs a low-level fault signal FLT2.
[0038] The W-phase high-side gate driver 113 is a W-phase high-side switching element Q WH Similar to the U-phase high-side gate driver 111, the W-phase high-side gate driver 113 controls the W-phase high-side switching element Q based on the W-phase high-side gate control signal WHG output from the multiplexer 800. WH The gate voltage of is changed.
[0039] Similarly to the U-phase high-side gate driver 111, the W-phase high-side gate driver 113 outputs a fault signal FLT3, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. That is, the W-phase high-side gate driver 113 outputs a fault signal FLT3, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. WH On the other hand, the W-phase upper gate driver 113 outputs a high-level fault signal FLT3 when the W-phase upper switching element Q WH When the inverter is in an abnormal state, it outputs a low-level fault signal FLT3.
[0040] The U-phase low-side gate driver 121 is a U-phase low-side switching element QUL Similar to the U-phase high-side gate driver 111, the U-phase low-side gate driver 121 controls the U-phase low-side switching element Q based on the U-phase low-side gate control signal ULG output from the multiplexer 800. UL The gate voltage of is changed.
[0041] Similarly to the U-phase high-side gate driver 111, the U-phase low-side gate driver 121 outputs a fault signal FLT4, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. That is, the U-phase low-side gate driver 121 outputs the fault signal FLT4, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. UL On the other hand, the U-phase low-side gate driver 121 outputs a high-level fault signal FLT4 when the U-phase low-side switching element Q UL When the inverter is in an abnormal state, it outputs a low-level fault signal FLT4.
[0042] The V-phase low-side gate driver 122 is a V-phase low-side switching element Q VL Similar to the U-phase upper gate driver 111, the V-phase lower gate driver 122 controls the V-phase lower switching element Q based on the V-phase lower gate control signal VLG output from the multiplexer 800. VL The gate voltage of is changed.
[0043] Similarly to the U-phase high-side gate driver 111, the V-phase low-side gate driver 122 outputs a fault signal FLT5, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. That is, the V-phase low-side gate driver 122 outputs a fault signal FLT5, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. VL On the other hand, the V-phase low-side gate driver 122 outputs a high-level fault signal FLT5 when the V-phase low-side switching element Q VL When the inverter is in an abnormal state, it outputs a low-level fault signal FLT5.
[0044] The W-phase low-side gate driver 123 is a W-phase low-side switching element Q WL Similar to the U-phase upper gate driver 111, the W-phase lower gate driver 123 controls the W-phase lower switching element Q based on the W-phase lower gate control signal WLG output from the multiplexer 800. WL The gate voltage of is changed.
[0045] Similarly to the U-phase high-side gate driver 111, the W-phase low-side gate driver 123 outputs a fault signal FLT6, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. That is, the W-phase low-side gate driver 123 outputs a fault signal FLT6, which is an abnormality detection signal, to the MCU 300 and the alternative circuit 500. WL On the other hand, the W-phase low-side gate driver 123 outputs a high-level fault signal FLT6 when the W-phase low-side switching element Q WL When the inverter is in an abnormal state, it outputs a low-level fault signal FLT6.
[0046] The first separation circuit 210 and the second separation circuit 220 are circuits that separate the internal circuits of the motor control device 40 into a high-voltage circuit and a low-voltage circuit. The high-voltage circuit includes the motor drive circuit 100. The low-voltage circuit includes the MCU 300, the PMIC 400, the alternative circuit 500, a first overvoltage detection circuit 610, a second overvoltage detection circuit 620, a logical OR circuit 700, and a multiplexer 800.
[0047] An input terminal of the first separation circuit 210 is electrically connected to the high voltage positive terminal 41. An output terminal of the first separation circuit 210 is electrically connected to an input terminal of the first overvoltage detection circuit 610 and an overvoltage detection port 310 of the MCU 300. The first separation circuit 210 electrically separates the high voltage circuit from the low voltage circuit, and converts the high DC voltage HV input from the high voltage battery 7 into a low voltage that can be input to the first overvoltage detection circuit 610, and outputs the low voltage.
[0048] An input terminal of the second isolation circuit 220 is electrically connected to the high voltage positive terminal 41. An output terminal of the second isolation circuit 220 is electrically connected to an input terminal of the second overvoltage detection circuit 620. The second isolation circuit 220 electrically isolates the high voltage circuit from the low voltage circuit, and converts the high DC voltage HV input from the high voltage battery 7 into a low voltage that can be input to the second overvoltage detection circuit 620, and outputs the converted voltage. The first isolation circuit 210 and the second isolation circuit 220 are each formed of a circuit including, for example, an isolator and a resistive voltage divider circuit.
[0049] The output voltage of the first separation circuit 210 is equal to the output voltage of the second separation circuit 220. The output voltages of the first separation circuit 210 and the second separation circuit 220 are proportional to the high DC voltage HV input from the high voltage battery 7, i.e., the input voltage of the motor drive circuit 100. In other words, the output voltages of the first separation circuit 210 and the second separation circuit 220 represent the input voltage of the motor drive circuit 100. Therefore, hereinafter, the output voltages of the first separation circuit 210 and the second separation circuit 220 are referred to as the inverter input voltage V INV It is called.
[0050] The MCU 300 is an arithmetic processing device that controls the motor drive circuit 100. The MCU 300 is, for example, a dual-core type MCU equipped with two processor cores. In addition to the two processor cores, the MCU 300 has a non-volatile memory such as a flash memory that stores programs executed by the processor cores, a volatile memory such as a RAM (Random Access Memory), an input / output port, a communication port, and an internal bus that connects these together.
[0051] The MCU300 has, as communication ports, a CAN communication port for performing CAN (Controller Area Network) communication with the electronic control device 5, and an SPI communication port for performing SPI (Serial Peripheral Interface) communication with the PMIC400. The CAN communication port of the MCU300 is electrically connected to the electronic control device 5 via a CAN communication cable (not shown). A motor control signal CS output from the electronic control device 5 is input to the MCU300 via the CAN communication cable and the CAN communication port. The SPI communication port of the MCU300 is electrically connected to the PMIC400 via a four-wire SPI communication bus 320.
[0052] The MCU 300 performs switching control of each switching element included in the motor drive circuit 100 based on the motor control signal CS input from the electronic control device 5. Specifically, the MCU 300 generates a timing signal indicating the switching timing of each switching element based on the torque command value Tm* indicated by the motor control signal CS, and outputs the timing signal from the output port to the multiplexer 800. The switching timing is the timing at which the state of each switching element switches from an off state to an on state, and the timing at which the state switches from an on state to an off state. The timing signal is, for example, a pulse-width modulated rectangular wave signal.
[0053] Specifically, the MCU 300 controls the U-phase upper switching element Q UH The U-phase upper timing signal HPU, which indicates the switching timing of the U-phase lower switching element Q, is output to the multiplexer 800. UL The U-phase lower timing signal LPU representing the switching timing of the U-phase lower timing signal LPU is output to the multiplexer 800. In addition, the MCU 300 controls the V-phase upper switching element Q VH The V-phase upper timing signal HPV, which indicates the switching timing of the V-phase lower switching element Q, is output to the multiplexer 800. VL The V-phase lower timing signal LPV representing the switching timing of the V-phase lower timing signal LPV is output to the multiplexer 800. Furthermore, the MCU 300 controls the W-phase upper switching element Q WH The W-phase upper timing signal HPW, which indicates the switching timing of the W-phase lower switching element Q, is output to the multiplexer 800. WL The W-phase low-side timing signal LPW, which indicates the switching timing of the W-phase low-side timing signal LPW, is output to the multiplexer 800.
[0054] The MCU 300 has an overvoltage detection port 310 as an input port that is electrically connected to the output terminal of the first isolation circuit 210. As will be described in detail later, the MCU 300 detects the inverter input voltage V INV and the first threshold V TH1 Compare with the inverter input voltage V INV is the first threshold V TH1 When the first threshold value V exceeds the first threshold value V, the fail-safe control is executed. The fail-safe control is a control (ASC control) in which all switching elements included in one of the upper arm 110 and the lower arm 120 are turned on and all switching elements included in the other arm are turned off, or a control (SD control) in which all switching elements included in both the upper arm 110 and the lower arm 120 are turned off. TH1 is digital data stored in advance in the non-volatile memory of the MCU 300. In addition, the inverter input voltage V INV is converted into digital data by an AD converter built into the MCU 300.
[0055] The MCU 300 outputs a first error signal ER1 and a second error signal ER2 to the PMIC 400 as signals informing of an abnormality in the two processor cores. Specifically, when the two processor cores are in a normal state, the MCU 300 sets both the first error signal ER1 and the second error signal ER2 to a high level. On the other hand, when at least one of the two processor cores is in an abnormal state, the MCU 300 sets at least one of the first error signal ER1 and the second error signal ER2 to a low level.
[0056] The PMIC 400 manages the power supply of the MCU 300 and also functions as a monitoring unit that monitors the state of the MCU 300. The PMIC 400 is provided separately from the MCU 300. The PMIC 400 is communicably connected to the MCU 300 via an SPI communication bus 320. The PMIC 400 communicates with the MCU 300 via the SPI communication bus 320 to perform processing required for power supply management of the MCU 300.
[0057] The PMIC 400 is electrically connected to the low-voltage battery 8 via a low-voltage positive terminal 43 and a low-voltage negative terminal 44. The PMIC 400 generates a power supply voltage required for the operation of the low-voltage system circuits based on the low DC voltage LV output from the low-voltage battery 8, and supplies the power supply voltage to the MCU 300, the alternative circuit 500, the first overvoltage detection circuit 610, the second overvoltage detection circuit 620, the logical sum circuit 700, the multiplexer 800, etc.
[0058] The PMIC 400 outputs a restart signal RST, a first abnormality detection signal FOT, and a second abnormality detection signal IOT to the OR circuit 700 as signals notifying an abnormality in the MCU 300. Specifically, when the MCU 300 is in a normal state, the PMIC 400 sets all of the restart signal RST, the first abnormality detection signal FOT, and the second abnormality detection signal IOT to a high level.
[0059] When the MCU 300 is in an abnormal state, the PMIC 400 sets at least one of the restart signal RST, the first abnormality detection signal FOT, and the second abnormality detection signal IOT to a low level. For example, when at least one of the first error signal ER1 and the second error signal ER2 input from the MCU 300 is at a low level, the PMIC 400 sets the first abnormality detection signal FOT to a low level. Furthermore, when an abnormality occurs that requires the MCU 300 to be restarted, the PMIC 400 sets the restart signal RST to a low level. Furthermore, when another abnormality occurs in the MCU 300, the PMIC 400 sets the second abnormality detection signal IOT to a low level.
[0060] The alternative circuit 500 is a circuit that substitutes for the MCU 300. The alternative circuit 500 has a first OR circuit 510, a second OR circuit 520, a matrix circuit 530, a first switch 540, and a second switch 550.
[0061] The first OR circuit 510 receives as input a fault signal FLT1 output from the U-phase upper gate driver 111, a fault signal FLT2 output from the V-phase upper gate driver 112, and a fault signal FLT3 output from the W-phase upper gate driver 113. The first OR circuit 510 calculates the logical sum of the fault signals FLT1, FLT2, and FLT3, and outputs an upper arm fault signal FLTH indicating the calculation result to the matrix circuit 530.
[0062] The first OR circuit 510 is a negative logic OR circuit. Therefore, when at least one of the fault signals FLT1, FLT2, and FLT3 is at a low level, the first OR circuit 510 outputs a low-level upper arm fault signal FLTH. When all of the fault signals FLT1, FLT2, and FLT3 are at a high level, the first OR circuit 510 outputs a high-level upper arm fault signal FLTH. In other words, the U-phase upper switching element Q included in the upper arm 110 UH , V-phase upper switching element Q VH , and W-phase upper switching element Q WH When at least one of the U-phase upper switching element Q included in the upper arm 110 is in an abnormal state, the first OR circuit 510 outputs a low-level upper arm fault signal FLTH. UH , V-phase upper switching element Q VH , and W-phase upper switching element Q WH When all of these are in a normal state, the first OR circuit 510 outputs a high-level upper arm fault signal FLTH.
[0063] In the following, the U-phase upper switching element Q UH , V-phase upper switching element Q VH, and W-phase upper switching element Q WH When at least one of the U-phase upper switching element Q included in the upper arm 110 is in an abnormal state, it is described as "the upper arm 110 is in an abnormal state." UH , V-phase upper switching element Q VH , and W-phase upper switching element Q WH is normal. That is, when the upper arm 110 is in an abnormal state, the first OR circuit 510 outputs a low-level upper-arm fault signal FLTH. When the upper arm 110 is in a normal state, the first OR circuit 510 outputs a high-level upper-arm fault signal FLTH.
[0064] The second OR circuit 520 receives the fault signal FLT4 output from the U-phase lower gate driver 121, the fault signal FLT5 output from the V-phase lower gate driver 122, and the fault signal FLT6 output from the W-phase lower gate driver 123. The second OR circuit 520 calculates the logical sum of the fault signals FLT4, FLT5, and FLT6, and outputs a lower arm fault signal FLTL indicating the calculation result to the matrix circuit 530.
[0065] The second OR circuit 520 is a negative logic OR circuit. Therefore, when at least one of the fault signals FLT4, FLT5, and FLT6 is at a low level, a low-level lower arm fault signal FLTL is output from the second OR circuit 520. When all of the fault signals FLT4, FLT5, and FLT6 are at a high level, a high-level lower arm fault signal FLTL is output from the second OR circuit 520. In other words, the U-phase lower switching element Q included in the lower arm 120 UL , V-phase lower switching element Q VL , and W-phase lower switching element Q WLWhen at least one of the U-phase lower switching element Q included in the lower arm 120 is in an abnormal state, the second OR circuit 520 outputs a low-level lower arm fault signal FLTL. UL , V-phase lower switching element Q VL , and W-phase lower switching element Q WL When all of these are in a normal state, the second OR circuit 520 outputs a high-level lower arm fault signal FLTL.
[0066] In the following, the U-phase lower switching element Q included in the lower arm 120 will be UL , V-phase lower switching element Q VL , and W-phase lower switching element Q WL When at least one of the U-phase lower switching element Q included in the lower arm 120 is in an abnormal state, it is described as "the lower arm 120 is in an abnormal state." UL , V-phase lower switching element Q VL , and W-phase lower switching element Q WL is normal. That is, when the lower arm 120 is in an abnormal state, the second OR circuit 520 outputs a low-level lower-arm fault signal FLTL. When the lower arm 120 is in a normal state, the second OR circuit 520 outputs a high-level lower-arm fault signal FLTL.
[0067] The matrix circuit 530 outputs a first output signal OUT1 to a first switch 540 and outputs a second output signal OUT2 to a second switch 550 based on the upper arm fault signal FLTH input from the first logical OR circuit 510 and the lower arm fault signal FLTL input from the second logical OR circuit 520.
[0068] When both the upper arm fault signal FLTH and the lower arm fault signal FLTL are at a high level, the matrix circuit 530 outputs a first output signal OUT1 of a low level to the first switch 540 and outputs a second output signal OUT2 of a high level to the second switch 550. In other words, when both the upper arm 110 and the lower arm 120 are in a normal state, the matrix circuit 530 outputs a first output signal OUT1 of a low level to the first switch 540 and outputs a second output signal OUT2 of a high level to the second switch 550.
[0069] When the upper arm fault signal FLTH is at a low level and the lower arm fault signal FLTL is at a high level, the matrix circuit 530 outputs a first output signal OUT1 of a low level to the first switch 540 and outputs a second output signal OUT2 of a high level to the second switch 550. In other words, when the upper arm 110 of the upper arm 110 and the lower arm 120 is in an abnormal state, the matrix circuit 530 outputs a first output signal OUT1 of a low level to the first switch 540 and outputs a second output signal OUT2 of a high level to the second switch 550.
[0070] When the upper arm fault signal FLTH is at a high level and the lower arm fault signal FLTL is at a low level, the matrix circuit 530 outputs a high level first output signal OUT1 to the first switch 540 and outputs a low level second output signal OUT2 to the second switch 550. In other words, when the lower arm 120 of the upper arm 110 and the lower arm 120 is in an abnormal state, the matrix circuit 530 outputs a high level first output signal OUT1 to the first switch 540 and outputs a low level second output signal OUT2 to the second switch 550.
[0071] When both the upper arm fault signal FLTH and the lower arm fault signal FLTL are at a low level, the matrix circuit 530 outputs a first output signal OUT1 of a low level to the first switch 540 and outputs a second output signal OUT2 of a low level to the second switch 550. In other words, when both the upper arm 110 and the lower arm 120 are in an abnormal state, the matrix circuit 530 outputs a first output signal OUT1 of a low level to the first switch 540 and outputs a second output signal OUT2 of a low level to the second switch 550.
[0072] The first switch 540 has three contacts 541, 542, and 543. The contact 541 is electrically connected to a high-level voltage line 561. A high-level voltage VHi is supplied to the high-level voltage line 561 from the PMIC 400. The contact 542 is electrically connected to a low-level voltage line 562. A low-level voltage VLo is supplied to the low-level voltage line 562 from the PMIC 400. In other words, the low-level voltage line 562 is electrically connected to the low-voltage negative terminal 44, which is a ground terminal of the low-voltage circuit.
[0073] The contact 543 is electrically connected to the multiplexer 800. Hereinafter, the signal output from the contact 543 to the multiplexer 800 is referred to as the upper arm control signal HG. When the first output signal OUT1 input from the matrix circuit 530 to the first switch 540 is at a low level, the contact 542 and the contact 543 are electrically connected to each other, so that the upper arm control signal HG having a low level voltage VLo is output from the contact 543 to the multiplexer 800. When the first output signal OUT1 input from the matrix circuit 530 to the first switch 540 is at a high level, the contact 541 and the contact 543 are electrically connected to each other, so that the upper arm control signal HG having a high level voltage VHi is output from the contact 543 to the multiplexer 800.
[0074] The second switch 550 has three contacts 551, 552, and 553. The contact 551 is electrically connected to a high-level voltage line 561. The contact 552 is electrically connected to a low-level voltage line 562. The contact 553 is electrically connected to the multiplexer 800. Hereinafter, the signal output from the contact 553 to the multiplexer 800 is referred to as a lower arm control signal LG.
[0075] When the second output signal OUT2 input from the matrix circuit 530 to the second switch 550 is at a low level, the contact 552 and the contact 553 are electrically connected, and a lower arm control signal LG having a low-level voltage VLo is output from the contact 553 to the multiplexer 800. When the second output signal OUT2 input from the matrix circuit 530 to the second switch 550 is at a high level, the contact 551 and the contact 553 are electrically connected, and a lower arm control signal LG having a high-level voltage VHi is output from the contact 553 to the multiplexer 800.
[0076] As described above, when both the upper arm 110 and the lower arm 120 are in a normal state, the alternative circuit 500 outputs an upper arm control signal HG having a low-level voltage VLo to the multiplexer 800, and outputs a lower arm control signal LG having a high-level voltage VHi to the multiplexer 800.
[0077] In addition, when the upper arm 110 of the upper arm 110 and the lower arm 120 is in an abnormal state, the alternative circuit 500 outputs an upper arm control signal HG having a low-level voltage VLo to the multiplexer 800, and outputs a lower arm control signal LG having a high-level voltage VHi to the multiplexer 800.
[0078] In addition, when the lower arm 120 of the upper arm 110 and the lower arm 120 is in an abnormal state, the alternative circuit 500 outputs an upper arm control signal HG having a high-level voltage VHi to the multiplexer 800, and outputs a lower arm control signal LG having a low-level voltage VLo to the multiplexer 800.
[0079] Furthermore, when both the upper arm 110 and the lower arm 120 are in an abnormal state, the alternative circuit 500 outputs an upper arm control signal HG having a low-level voltage VLo to the multiplexer 800, and outputs a lower arm control signal LG having a low-level voltage VLo to the multiplexer 800.
[0080] The first overvoltage detection circuit 610 detects the inverter input voltage V INV The first overvoltage detection circuit 610 outputs a first overvoltage detection signal DV1, the state of which changes depending on the magnitude of the inverter input voltage V INV and the first threshold V TH1 A second threshold V TH2 Compare with the inverter input voltage V INV is the second threshold V TH2 When the first overvoltage detection signal DV1 exceeds the first overvoltage detection signal DV2, the state of the first overvoltage detection signal DV1 is changed from the first state to the second state. In this embodiment, the first state is a high level, and the second state is a low level.
[0081] The second overvoltage detection circuit 620 detects the inverter input voltage V INV The second overvoltage detection circuit 620 outputs a second overvoltage detection signal DV2, the state of which changes depending on the magnitude of the inverter input voltage V INV and the second threshold V TH2 A third threshold V TH3 Compare with the inverter input voltage V INV is the third threshold V TH3 When the first overvoltage detection signal DV2 exceeds the first overvoltage detection signal DV1, the second overvoltage detection signal DV2 is changed from the first state to the second state.
[0082] The first overvoltage detection circuit 610 and the second overvoltage detection circuit 620 are each configured by an analog comparison circuit including a comparator. TH2 and the third threshold V TH3is the first threshold V TH1 In the first overvoltage detection circuit 610, the inverter input voltage V INV and the second threshold V TH2 and are input to a comparator, and the output signal of the comparator is output as a first overvoltage detection signal DV1 to the OR circuit 700. Similarly, in the second overvoltage detection circuit 620, the inverter input voltage V INV and the third threshold V TH3 and are input to a comparator, and the output signal of the comparator is output to the OR circuit 700 as a second overvoltage detection signal DV2.
[0083] First threshold V TH1 , the second threshold V TH2 and the third threshold V TH3 is determined within the range from 470V, which is the rated voltage of the high-voltage battery 7, to 700V, which is the withstand voltage of the motor drive circuit 100. TH1 is higher than 470V and the second threshold V TH2 The second threshold value V TH2 is the first threshold V TH1 and a third threshold V TH3 The third threshold V TH3 is the second threshold V TH2 and lower than 700V.
[0084] The OR circuit 700 is a negative logic OR circuit. The OR circuit 700 receives the restart signal RST, the first abnormality detection signal FOT, and the second abnormality detection signal IOT output from the PMIC 400, the first overvoltage detection signal DV1 output from the first overvoltage detection circuit 610, and the second overvoltage detection signal DV2 output from the second overvoltage detection circuit 620. The OR circuit 700 calculates the logical sum of the restart signal RST, the first abnormality detection signal FOT, the second abnormality detection signal IOT, the first overvoltage detection signal DV1, and the second overvoltage detection signal DV2, and outputs a signal indicating the calculation result to the multiplexer 800 as a mode switching signal MS.
[0085] When at least one of the restart signal RST, the first abnormality detection signal FOT, the second abnormality detection signal IOT, the first overvoltage detection signal DV1, and the second overvoltage detection signal DV2 is at a low level, a low-level mode switching signal MS is output from the logical sum circuit 700. When all of the restart signal RST, the first abnormality detection signal FOT, the second abnormality detection signal IOT, the first overvoltage detection signal DV1, and the second overvoltage detection signal DV2 are at a high level, a high-level mode switching signal MS is output from the logical sum circuit 700.
[0086] That is, when all of the following conditions 1 to 3 are satisfied, the OR circuit 700 outputs a high-level mode switching signal MS. (Condition 1) PMIC 400 detects that MCU 300 is in a normal state. (Condition 2) The first overvoltage detection circuit 610 detects the inverter input voltage V INV is the second threshold V TH2 The following is detected: (Condition 3) The inverter input voltage V INV is the third threshold V TH3 The following is detected:
[0087] Furthermore, when at least one of the following conditions 4 to 6 is satisfied, the OR circuit 700 outputs a low-level mode switching signal MS. (Condition 4) The PMIC 400 detects that the MCU 300 is in an abnormal state. (Condition 5) The first overvoltage detection circuit 610 detects the inverter input voltage V INV is the second threshold V TH2 is detected as being exceeded. (Condition 6) The inverter input voltage V INV is the third threshold V TH3 is detected as being exceeded.
[0088] The multiplexer 800 receives as input the mode switching signal MS output from the OR circuit 700, the various timing signals output from the MCU 300, and the upper arm control signal HG and the lower arm control signal LG output from the alternative circuit 500. As described above, the timing signals output from the MCU 300 include a U-phase upper timing signal HPU, a U-phase lower timing signal LPU, a V-phase upper timing signal HPV, a V-phase lower timing signal LPV, a W-phase upper timing signal HPW, and a W-phase lower timing signal LPW.
[0089] When the mode switching signal MS is at a high level, the multiplexer 800 outputs the U-phase upper timing signal HPU as the U-phase upper gate control signal UHG to the U-phase upper gate driver 111, outputs the V-phase upper timing signal HPV as the V-phase upper gate control signal VHG to the V-phase upper gate driver 112, and outputs the W-phase upper timing signal HPW as the W-phase upper gate control signal WHG to the W-phase upper gate driver 113. Furthermore, when the mode switching signal MS is at a high level, the multiplexer 800 outputs the U-phase lower timing signal LPU as a U-phase lower gate control signal ULG to the U-phase lower gate driver 121, outputs the V-phase lower timing signal LPV as a V-phase lower gate control signal VLG to the V-phase lower gate driver 122, and outputs the W-phase lower timing signal LPW as a W-phase lower gate control signal WLG to the W-phase lower gate driver 123.
[0090] When the mode switching signal MS is at a low level, the multiplexer 800 outputs the upper arm control signal HG as a U-phase upper gate control signal UHG to the U-phase upper gate driver 111, outputs the upper arm control signal HG as a V-phase upper gate control signal VHG to the V-phase upper gate driver 112, and outputs the upper arm control signal HG as a W-phase upper gate control signal WHG to the W-phase upper gate driver 113. In addition, when the mode switching signal MS is at a low level, the multiplexer 800 outputs the lower arm control signal LG as a U-phase lower gate control signal ULG to the U-phase lower gate driver 121, outputs the lower arm control signal LG as a V-phase lower gate control signal VLG to the V-phase lower gate driver 122, and outputs the lower arm control signal LG as a W-phase lower gate control signal WLG to the W-phase lower gate driver 123.
[0091] As described above, when the mode switching signal MS is at a high level, the motor drive circuit 100 is controlled by each timing signal output from the MCU 300. Hereinafter, this state in which the MCU 300 controls the motor drive circuit 100 is referred to as a first control mode. When the mode switching signal MS is at a low level, the motor drive circuit 100 is controlled by the upper arm control signal HG and the lower arm control signal LG output from the alternative circuit 500. Hereinafter, this state in which the alternative circuit 500 controls the motor drive circuit 100 is referred to as a second control mode.
[0092] That is, the multiplexer 800 functions as a mode switching unit that switches the control mode between a first control mode in which the MCU 300 controls the motor drive circuit 100 and a second control mode in which the alternative circuit 500 controls the motor drive circuit 100 based on the state of the MCU 300, in other words, the state of the mode switching signal MS. The multiplexer 800 switches the control mode from the first control mode to the second control mode when the mode switching signal MS changes from a high level to a low level. In the second control mode, the alternative circuit 500 controls switching of the switching elements included in the upper arm 110 and the lower arm 120 based on the states of the upper arm 110 and the lower arm 120, as will be described in detail later. Specifically, based on the states of the upper arm 110 and the lower arm 120, the alternative circuit 500 performs either a control (ASC control) of turning on all of the switching elements included in one of the upper arm 110 and the lower arm 120 and turning off all of the switching elements included in the other arm, or a control (SD control) of turning off all of the switching elements included in both the upper arm 110 and the lower arm 120.
[0093] Next, the operation of motor control device 40 configured as above will be described. First, the operation of motor control device 40 in normal operation will be described. Normal operation refers to a state in which all of the following conditions 1 to 3 are satisfied. (Condition 1) PMIC 400 detects that MCU 300 is in a normal state. (Condition 2) The first overvoltage detection circuit 610 detects the inverter input voltage V INV is the second threshold V TH2 The following is detected: (Condition 3) The inverter input voltage V INV is the third threshold V TH3 The following is detected:
[0094] When condition 1 is satisfied, the restart signal RST, the first abnormality detection signal FOT, and the second abnormality detection signal IOT output from the PMIC 400 to the OR circuit 700 are all at high level. When condition 2 is satisfied, the first overvoltage detection signal DV1 output from the first overvoltage detection circuit 610 to the OR circuit 700 is at high level. When condition 3 is satisfied, the second overvoltage detection signal DV2 output from the second overvoltage detection circuit 620 to the OR circuit 700 is at high level. Therefore, when all of the conditions from condition 1 to condition 3 are satisfied, the OR circuit 700 outputs a high-level mode switching signal MS to the multiplexer 800. When the mode switching signal MS is at high level, the control mode of the motor control device 40 becomes the first control mode in which the MCU 300 controls the motor drive circuit 100.
[0095] 3 is a flowchart showing a motor control process that is normally executed by the MCU 300 in accordance with a program stored in a non-volatile memory. The MCU 300 repeatedly executes the motor control process shown in FIG. 3 at a predetermined control period.
[0096] As shown in FIG. 3, first, the MCU 300 detects the inverter input voltage V INV and the first threshold V TH1 Compare with the inverter input voltage V INV is the first threshold V TH1 Specifically, in step S1, the MCU 300 determines whether the inverter input voltage V INV and the first threshold value V read from the non-volatile memory. TH1 By comparing with the inverter input voltage V INV is the first threshold V TH1 As already mentioned, it is determined whether the first threshold value V TH1 is higher than 470V which is the rated voltage of the high voltage battery 7 and is equal to or lower than the second threshold value V TH2 Lower than.
[0097] If the answer is "No" in step S1, that is, the inverter input voltage V INV is the first threshold V TH1 In the following cases, the MCU 300 performs normal motor control based on the motor control signal CS input from the electronic control device 5 (step S2). In this embodiment, as normal motor control, the MCU 300 performs vector control of the three-phase current supplied to the motor 10 from the motor drive circuit 100 based on the torque command value Tm* indicated by the motor control signal CS input from the electronic control device 5, thereby rotating the motor 10 with a torque determined by the torque command value Tm*. Since vector control is generally known as a control method for the motor 10, which is a three-phase synchronous motor, in this embodiment, vector control will be briefly described with reference to FIG. 4.
[0098] Fig. 4 is a flowchart showing vector control executed as normal motor control by the MCU 300 in step S2. As shown in Fig. 4, the MCU 300 acquires detection values of three-phase currents including a U-phase current Iu, a V-phase current Iv, and a W-phase current Iw from a current sensor (not shown) such as a shunt resistor provided in the motor drive circuit 100 (step S21).
[0099] Next, the MCU 300 calculates two-phase currents Iα and Iβ in the fixed coordinate system by performing Clarke transformation on the detected values of the U-phase current Iu, the V-phase current Iv, and the W-phase current Iw (step S22).
[0100] Next, the MCU 300 converts the two-phase currents Iα and Iβ in the fixed coordinate system into a d-axis current Id and a q-axis current Iq in the rotating coordinate system by Park transformation based on the equations (1) and (2) (step S23). R ", a rotation angle θ of the motor 10 is detected from a position detection device (not shown) such as a resolver attached to the motor 10. R Obtain the detection value. Id = Iα cosθ R +Iβ sinθ R …(1) Iq=-Iα sinθ R +Iβ cosθ R …(2)
[0101] Next, the MCU 300 calculates the target d-axis current Id based on the torque command value Tm*. REF and the target q-axis current Iq REF The non-volatile memory of the MCU 300 stores the target d-axis current Id corresponding to the torque command value Tm* (step S24). REF and the target q-axis current Iq REF In step S24, the MCU 300 preliminarily stores table data indicating the target d-axis current Id corresponding to the torque command value Tm* indicated by the motor control signal CS from the table data stored in the nonvolatile memory. REF and the target q-axis current Iq REF By reading out the target d-axis current Id REF and the target q-axis current Iq REF It is decided that:
[0102] Next, the MCU 300 calculates the d-axis current Id and the target d-axis current Id REF The d-axis voltage Vd at which the deviation from the target q-axis current Iq is zero is calculated by PI calculation. REF The q-axis voltage Vq at which the deviation from the q-axis voltage Vq becomes zero is calculated by the PI calculation (step S25).
[0103] Next, the MCU 300 inversely transforms the d-axis voltage Vd and the q-axis voltage Vq in the rotating coordinate system into two-phase voltages Vα and Vβ in the fixed coordinate system by inverse Park transformation based on the equations (3) and (4) (step S26). R " and a rotation angle θ obtained from a position detection device (not shown) such as a resolver. R The detected value is used. Vα=Vd cosθ R -Vq sinθ R …(3) Vβ=Vd sinθ R +Vq cosθ R …(4)
[0104] Next, the MCU 300 inversely converts the two-phase voltage values Vα and Vβ into three-phase voltages by space vector conversion (step S27). The three-phase voltages include a U-phase voltage Vu, a V-phase voltage Vv, and a W-phase voltage Vw. Finally, the MCU 300 generates a U-phase upper timing signal HPU, a V-phase upper timing signal HPV, a W-phase upper timing signal HPW, a U-phase lower timing signal LPU, a V-phase lower timing signal LPV, and a W-phase lower timing signal LPW to be applied to the motor 10 from the three-phase voltages obtained by the above space vector conversion, and outputs them to the multiplexer 800 (step S28).
[0105] When the mode switching signal MS is at a high level, the multiplexer 800 outputs the U-phase upper timing signal HPU input from the MCU 300 to the U-phase upper gate driver 111 as the U-phase upper gate control signal UHG, outputs the V-phase upper timing signal HPV input from the MCU 300 to the V-phase upper gate driver 112 as the V-phase upper gate control signal VHG, and outputs the W-phase upper timing signal HPW input from the MCU 300 to the W-phase upper gate driver 113 as the W-phase upper gate control signal WHG. Furthermore, when the mode switching signal MS is at a high level, the multiplexer 800 outputs the U-phase lower timing signal LPU input from the MCU 300 to the U-phase lower gate driver 121 as the U-phase lower gate control signal ULG, outputs the V-phase lower timing signal LPV input from the MCU 300 to the V-phase lower gate driver 122 as the V-phase lower gate control signal VLG, and outputs the W-phase lower timing signal LPW input from the MCU 300 to the W-phase lower gate driver 123 as the W-phase lower gate control signal WLG.
[0106] As shown above, the inverter input voltage V INV is the first threshold V TH1In the following cases, the MCU 300 executes vector control as normal motor control based on the motor control signal CS input from the electronic control device 5, thereby controlling the switching of each switching element included in the motor drive circuit 100 at appropriate timing. As a result, the U-phase current Iu, V-phase current Iv, and W-phase current Iw supplied to the motor 10 from the motor drive circuit 1100 are appropriately controlled, so that the motor 10 rotates with a torque determined by the torque command value Tm*, and the driving force requested by the driver is transmitted from the motor unit 6 to the drive wheels 2.
[0107] Hereinafter, the explanation will be continued by returning to FIG. 3. If the answer is "Yes" in step S1 of FIG. 3, that is, the inverter input voltage V INV is the first threshold V TH1 If the inverter input voltage V INV Since an increase in the current may lead to failure of switching elements, etc., the MCU 300 executes fail-safe control based on the states of the upper arm 110 and the lower arm 120 (step S3).
[0108] First, in step S3, the MCU 300 judges whether the upper arm 110 and the lower arm 120 are in a normal state or an abnormal state. Specifically, the MCU 300 judges that the upper arm 110 is in a normal state when the fault signal FLT1 input from the U-phase upper gate driver 111, the fault signal FLT2 input from the V-phase upper gate driver 112, and the fault signal FLT3 input from the W-phase upper gate driver 113 are all at a high level. The MCU 300 also judges that the upper arm 110 is in an abnormal state when at least one of the fault signals FLT1, FLT2, and FLT3 is at a low level.
[0109] Furthermore, the MCU 300 determines that the lower arm 120 is in a normal state when the fault signal FLT4 input from the U-phase lower gate driver 121, the fault signal FLT5 input from the V-phase lower gate driver 122, and the fault signal FLT6 input from the W-phase lower gate driver 123 are all at a high level. Furthermore, the MCU 300 determines that the lower arm 120 is in an abnormal state when at least one of the fault signals FLT4, FLT5, and FLT6 is at a low level.
[0110] Then, when the MCU 300 determines that both the upper arm 110 and the lower arm 120 are in a normal state, it sets all of the U-phase upper timing signal HPU, the V-phase upper timing signal HPV, and the W-phase upper timing signal HPW to a low level and outputs them to the multiplexer 800. As a result, the U-phase upper gate control signal UHG, the V-phase upper gate control signal VHG, and the W-phase upper gate control signal WHG output from the multiplexer 800 to the motor drive circuit 100 all become a low level. Furthermore, when the MCU 300 determines that both the upper arm 110 and the lower arm 120 are in a normal state, it sets all of the U-phase lower timing signal LPU, the V-phase lower timing signal LPV, and the W-phase lower timing signal LPW to a high level and outputs them to the multiplexer 800. As a result, the U-phase lower gate control signal ULG, the V-phase lower gate control signal VLG, and the W-phase lower gate control signal WLG output from the multiplexer 800 to the motor drive circuit 100 all become a high level.
[0111] As a result, when both the upper arm 110 and the lower arm 120 are in a normal state, all of the switching elements included in the upper arm 110 are controlled to an OFF state, and all of the switching elements included in the lower arm 120 are controlled to an ON state. In other words, when the MCU 300 determines that both the upper arm 110 and the lower arm 120 are in a normal state, the MCU 300 executes ASC control to control all of the switching elements included in the upper arm 110 to an OFF state, and control all of the switching elements included in the lower arm 120 to an ON state. As a result, the current passing through all of the switching elements included in the upper arm 110 is cut off, and the back electromotive force generated in the motor 10 flows back in a closed circuit formed by the lower arm 120. As a result, the inverter input voltage V INV This can prevent a further increase in the current and a further acceleration of the motor 10, and can prevent damage to the switching elements and the high-voltage battery 7.
[0112] When the MCU 300 determines that the upper arm 110 of the upper arm 110 and the lower arm 120 is in an abnormal state, it sets all of the U-phase upper timing signal HPU, the V-phase upper timing signal HPV, and the W-phase upper timing signal HPW to low level and outputs them to the multiplexer 800. As a result, the U-phase upper gate control signal UHG, the V-phase upper gate control signal VHG, and the W-phase upper gate control signal WHG output from the multiplexer 800 to the motor drive circuit 100 all become low level. Furthermore, when the MCU 300 determines that the upper arm 110 out of the upper arm 110 and the lower arm 120 is in an abnormal state, it sets all of the U-phase lower timing signal LPU, the V-phase lower timing signal LPV, and the W-phase lower timing signal LPW to a high level and outputs them to the multiplexer 800. As a result, the U-phase lower gate control signal ULG, the V-phase lower gate control signal VLG, and the W-phase lower gate control signal WLG output from the multiplexer 800 to the motor drive circuit 100 all become a high level.
[0113] As a result, when the upper arm 110 of the upper arm 110 and the lower arm 120 is in an abnormal state, all of the switching elements included in the upper arm 110 are controlled to be in an OFF state, and all of the switching elements included in the lower arm 120 are controlled to be in an ON state. In other words, when the MCU 300 determines that the upper arm 110 of the upper arm 110 and the lower arm 120 is in an abnormal state, it executes ASC control to control all of the switching elements included in the upper arm 110 to be in an OFF state, and control all of the switching elements included in the lower arm 120 to be in an ON state. As a result, the current passing through all of the switching elements included in the upper arm 110 is cut off, and the back electromotive force generated in the motor 10 flows back in a closed circuit formed by the lower arm 120. As a result, the inverter input voltage V INV This can prevent a further increase in the current and a further acceleration of the motor 10, and can prevent damage to the switching elements and the high-voltage battery 7.
[0114] When the MCU 300 determines that the lower arm 120 of the upper arm 110 and the lower arm 120 is in an abnormal state, it sets all of the U-phase upper timing signal HPU, the V-phase upper timing signal HPV, and the W-phase upper timing signal HPW to a high level and outputs them to the multiplexer 800. As a result, the U-phase upper gate control signal UHG, the V-phase upper gate control signal VHG, and the W-phase upper gate control signal WHG output from the multiplexer 800 to the motor drive circuit 100 all become a high level. Furthermore, when the MCU 300 determines that the lower arm 120 of the upper arm 110 and the lower arm 120 is in an abnormal state, it sets all of the U-phase lower timing signal LPU, the V-phase lower timing signal LPV, and the W-phase lower timing signal LPW to a low level and outputs them to the multiplexer 800. As a result, the U-phase lower gate control signal ULG, the V-phase lower gate control signal VLG, and the W-phase lower gate control signal WLG output from the multiplexer 800 to the motor drive circuit 100 all become a low level.
[0115] As a result, when the lower arm 120 of the upper arm 110 and the lower arm 120 is in an abnormal state, all of the switching elements included in the upper arm 110 are controlled to be in an ON state, and all of the switching elements included in the lower arm 120 are controlled to be in an OFF state. In other words, when the MCU 300 determines that the lower arm 120 of the upper arm 110 and the lower arm 120 is in an abnormal state, the MCU 300 executes ASC control to control all of the switching elements included in the upper arm 110 to be in an ON state, and all of the switching elements included in the lower arm 120 to be in an OFF state. As a result, the current passing through all of the switching elements included in the lower arm 120 is cut off, and the back electromotive force generated in the motor 10 flows back in a closed circuit formed by the upper arm 110. As a result, the inverter input voltage V INV This can prevent a further increase in the current and a further acceleration of the motor 10, and can prevent damage to the switching elements and the high-voltage battery 7.
[0116] When the MCU 300 determines that both the upper arm 110 and the lower arm 120 are in an abnormal state, it sets all of the U-phase upper timing signal HPU, the V-phase upper timing signal HPV, and the W-phase upper timing signal HPW to a low level and outputs them to the multiplexer 800. As a result, the U-phase upper gate control signal UHG, the V-phase upper gate control signal VHG, and the W-phase upper gate control signal WHG output from the multiplexer 800 to the motor drive circuit 100 all become a low level. Furthermore, when the MCU 300 determines that both the upper arm 110 and the lower arm 120 are in an abnormal state, it sets all of the U-phase lower timing signal LPU, the V-phase lower timing signal LPV, and the W-phase lower timing signal LPW to a low level and outputs them to the multiplexer 800. As a result, the U-phase lower gate control signal ULG, the V-phase lower gate control signal VLG, and the W-phase lower gate control signal WLG output from the multiplexer 800 to the motor drive circuit 100 all become a low level.
[0117] As a result, when both the upper arm 110 and the lower arm 120 are in an abnormal state, all of the switching elements included in the upper arm 110 are controlled to the off state, and all of the switching elements included in the lower arm 120 are controlled to the off state. In other words, when the MCU 300 determines that both the upper arm 110 and the lower arm 120 are in an abnormal state, the MCU 300 executes SD control to control all of the switching elements included in the upper arm 110 to the off state, and control all of the switching elements included in the lower arm 120 to the off state. As a result, the back electromotive force generated by the rotation of the motor 10 flows to the high-voltage battery 7 via the freewheel diode of each switching element, so that the switching elements can be protected.
[0118] The above is a description of the operation of the motor control device 40 under normal circumstances. Next, a description will be given of the operation of the motor control device 40 under abnormal circumstances. An abnormal situation occurs when at least one of the following conditions 4 to 6 is satisfied. (Condition 4) The PMIC 400 detects that the MCU 300 is in an abnormal state. (Condition 5) The first overvoltage detection circuit 610 detects the inverter input voltage V INV is the second threshold V TH2 is detected as being exceeded. (Condition 6) The inverter input voltage V INV is the third threshold V TH3 is detected as being exceeded.
[0119] When condition 4 is satisfied, at least one of the restart signal RST, the first abnormality detection signal FOT, and the second abnormality detection signal IOT output from the PMIC 400 to the OR circuit 700 becomes low level. When condition 5 is satisfied, the first overvoltage detection signal DV1 output from the first overvoltage detection circuit 610 to the OR circuit 700 becomes low level. When condition 6 is satisfied, the second overvoltage detection signal DV2 output from the second overvoltage detection circuit 620 to the OR circuit 700 becomes low level. Therefore, when at least one of conditions 4 to 6 is satisfied, the OR circuit 700 outputs a low level mode switching signal MS to the multiplexer 800. When the mode switching signal MS is low level, the control mode of the motor control device 40 becomes the second control mode in which the alternative circuit 500 controls the motor drive circuit 100.
[0120] In the second control mode, the alternative circuit 500 executes fail-safe control based on the states of the upper arm 110 and the lower arm 120. As already described, when both the upper arm 110 and the lower arm 120 are in a normal state, the alternative circuit 500 outputs an upper arm control signal HG having a low-level voltage VLo to the multiplexer 800, and outputs a lower arm control signal LG having a high-level voltage VHi to the multiplexer 800.
[0121] When the mode switching signal MS is at a low level, the multiplexer 800 outputs the upper arm control signal HG as a U-phase upper gate control signal UHG to the U-phase upper gate driver 111, outputs the upper arm control signal HG as a V-phase upper gate control signal VHG to the V-phase upper gate driver 112, and outputs the upper arm control signal HG as a W-phase upper gate control signal WHG to the W-phase upper gate driver 113. In addition, when the mode switching signal MS is at a low level, the multiplexer 800 outputs the lower arm control signal LG as a U-phase lower gate control signal ULG to the U-phase lower gate driver 121, outputs the lower arm control signal LG as a V-phase lower gate control signal VLG to the V-phase lower gate driver 122, and outputs the lower arm control signal LG as a W-phase lower gate control signal WLG to the W-phase lower gate driver 123.
[0122] Therefore, when both the upper arm 110 and the lower arm 120 are in a normal state, the U-phase upper gate control signal UHG, the V-phase upper gate control signal VHG, and the W-phase upper gate control signal WHG output from the multiplexer 800 to the motor drive circuit 100 are all at a low level, and the U-phase lower gate control signal ULG, the V-phase lower gate control signal VLG, and the W-phase lower gate control signal WLG output from the multiplexer 800 to the motor drive circuit 100 are all at a high level.
[0123] As a result, when both the upper arm 110 and the lower arm 120 are in a normal state, all of the switching elements included in the upper arm 110 are controlled to an OFF state, and all of the switching elements included in the lower arm 120 are controlled to an ON state. In other words, when both the upper arm 110 and the lower arm 120 are in a normal state, the alternative circuit 500 executes ASC control to control all of the switching elements included in the upper arm 110 to an OFF state, and control all of the switching elements included in the lower arm 120 to an ON state. As a result, the current passing through all of the switching elements included in the upper arm 110 is cut off, and the back electromotive force generated in the motor 10 flows back in a closed circuit formed by the lower arm 120. As a result, the inverter input voltage V INV This can prevent a further increase in the current and a further acceleration of the motor 10, and can prevent damage to the switching elements and the high-voltage battery 7.
[0124] When the upper arm 110 of the upper arm 110 and the lower arm 120 is in an abnormal state, the alternative circuit 500 outputs an upper arm control signal HG having a low level voltage VLo to the multiplexer 800, and outputs a lower arm control signal LG having a high level voltage VHi to the multiplexer 800. As a result, the U-phase upper gate control signal UHG, the V-phase upper gate control signal VHG, and the W-phase upper gate control signal WHG output from the multiplexer 800 to the motor drive circuit 100 all become low level, and the U-phase lower gate control signal ULG, the V-phase lower gate control signal VLG, and the W-phase lower gate control signal WLG output from the multiplexer 800 to the motor drive circuit 100 all become high level.
[0125] As a result, when the upper arm 110 of the upper arm 110 and the lower arm 120 is in an abnormal state, all of the switching elements included in the upper arm 110 are controlled to the OFF state, and all of the switching elements included in the lower arm 120 are controlled to the ON state. In other words, when the upper arm 110 of the upper arm 110 and the lower arm 120 is in an abnormal state, the alternative circuit 500 executes ASC control to control all of the switching elements included in the upper arm 110 to the OFF state, and control all of the switching elements included in the lower arm 120 to the ON state. As a result, the current passing through all of the switching elements included in the upper arm 110 is cut off, and the back electromotive force generated in the motor 10 flows back in a closed circuit consisting of the lower arm 120. As a result, the inverter input voltage V INV This can prevent a further increase in the current and a further acceleration of the motor 10, and can prevent damage to the switching elements and the high-voltage battery 7.
[0126] When the lower arm 120 of the upper arm 110 and the lower arm 120 is in an abnormal state, the alternative circuit 500 outputs an upper arm control signal HG having a high level voltage VHi to the multiplexer 800, and outputs a lower arm control signal LG having a low level voltage VLo to the multiplexer 800. As a result, the U-phase upper gate control signal UHG, the V-phase upper gate control signal VHG, and the W-phase upper gate control signal WHG output from the multiplexer 800 to the motor drive circuit 100 all become high level, and the U-phase lower gate control signal ULG, the V-phase lower gate control signal VLG, and the W-phase lower gate control signal WLG output from the multiplexer 800 to the motor drive circuit 100 all become low level.
[0127] As a result, when the lower arm 120 of the upper arm 110 and the lower arm 120 is in an abnormal state, all of the switching elements included in the upper arm 110 are controlled to be in the ON state, and all of the switching elements included in the lower arm 120 are controlled to be in the OFF state. In other words, when the lower arm 120 of the upper arm 110 and the lower arm 120 is in an abnormal state, the alternative circuit 500 executes ASC control to control all of the switching elements included in the upper arm 110 to be in the ON state, and all of the switching elements included in the lower arm 120 to be in the OFF state. As a result, the current passing through all of the switching elements included in the lower arm 120 is cut off, and the back electromotive force generated in the motor 10 flows back in the closed circuit formed by the upper arm 110. As a result, the inverter input voltage V INV This can prevent a further increase in the current and a further acceleration of the motor 10, and can prevent damage to the switching elements and the high-voltage battery 7.
[0128] When both the upper arm 110 and the lower arm 120 are in an abnormal state, the alternative circuit 500 outputs an upper arm control signal HG having a low-level voltage VLo to the multiplexer 800, and outputs a lower arm control signal LG having a low-level voltage VLo to the multiplexer 800. As a result, the U-phase upper gate control signal UHG, the V-phase upper gate control signal VHG, and the W-phase upper gate control signal WHG output from the multiplexer 800 to the motor drive circuit 100 all become low level, and the U-phase lower gate control signal ULG, the V-phase lower gate control signal VLG, and the W-phase lower gate control signal WLG output from the multiplexer 800 to the motor drive circuit 100 all become low level.
[0129] As a result, when both the upper arm 110 and the lower arm 120 are in an abnormal state, all of the switching elements included in the upper arm 110 are controlled to the off state, and all of the switching elements included in the lower arm 120 are controlled to the off state. In other words, when both the upper arm 110 and the lower arm 120 are in an abnormal state, the alternative circuit 500 executes SD control to control all of the switching elements included in the upper arm 110 to the off state, and control all of the switching elements included in the lower arm 120 to the off state. As a result, the back electromotive force generated by the rotation of the motor 10 flows to the high-voltage battery 7 via the freewheel diode of each switching element, so that the switching elements can be protected.
[0130] As described above, the motor control device 40 in this embodiment includes the motor drive circuit 100 having the upper arm 110 and the lower arm 120, the MCU 300 that controls the motor drive circuit 100, the alternative circuit 500 that substitutes for the MCU 300, and the multiplexer 800 that switches the control mode between the first control mode and the second control mode based on the state of the MCU 300. When the state of the MCU 300 changes from a normal state to an abnormal state, the multiplexer 800 switches the control mode from the first control mode to the second control mode. In the second control mode, the alternative circuit 500 performs fail-safe control based on the states of the upper arm 110 and the lower arm 120. According to this embodiment, it is possible to execute fail-safe control by the alternative circuit 500 when an abnormality occurs in the MCU 300. Also, it is possible to execute appropriate fail-safe control based on the states of the upper arm 110 and the lower arm 120.
[0131] The motor control device 40 in this embodiment further includes a monitoring unit (PMIC 400) that monitors the state of the MCU 300. When the monitoring unit detects that the state of the MCU 300 has changed from a normal state to an abnormal state, the multiplexer 800 switches the control mode from the first control mode to the second control mode. In control devices that use a processor such as MCU300, it is common to provide a monitoring circuit that monitors the status of the processor. Therefore, by using an existing monitoring circuit as the monitoring unit of the present invention, there is no need to add new components for the monitoring unit, and the present invention can be realized at low cost.
[0132] In this embodiment, the monitoring unit (PMIC 400) is provided separately from the MCU 300. This makes it possible to prevent the monitoring unit from being affected even if an abnormality occurs in the MCU 300, which is a calculation processing device.
[0133] In this embodiment, the monitoring unit is a PMIC 400 that manages the power supply of the MCU 300 . By using the PMIC 400, which is a power management IC for the MCU 300, as the monitoring section, it is possible to realize the present invention at low cost without providing a new circuit corresponding to the monitoring section.
[0134] The motor control device 40 in this embodiment controls the input voltage (inverter input voltage V INV The MCU 300 further includes a first overvoltage detection circuit 610 that outputs a first overvoltage detection signal DV1 whose state changes depending on the magnitude of the inverter input voltage V INV and the first threshold V TH1 Compare with the inverter input voltage V INV is the first threshold V TH1 When the inverter input voltage V INV and the first threshold V TH1 A second threshold V TH2 Compare with the inverter input voltage V INV is the second threshold V TH2 When the first overvoltage detection signal DV1 exceeds the first overvoltage detection signal DV2, the multiplexer 800 changes the state of the first overvoltage detection signal DV1 from a high level to a low level. The multiplexer 800 also switches the control mode from the first control mode to the second control mode when the state of the first overvoltage detection signal DV1 changes from a high level to a low level. As usual, when an overvoltage exceeding the first threshold occurs, the MCU 300 performs fail-safe control to suppress an increase in the inverter input voltage, but when a large overvoltage exceeding the second threshold occurs, it is highly likely that the fail-safe control by the MCU 300 is not functioning properly, and in such a case, by switching to the second control mode and performing fail-safe control by the alternative circuit 500, it is possible to continue the fail-safe control regardless of the state of the MCU 300. Furthermore, even when the alternative circuit 500 is used, it is possible to execute appropriate fail-safe control based on the states of the upper arm 110 and the lower arm 120.
[0135] The motor control device 40 in this embodiment controls the input voltage (inverter input voltage V INVThe second overvoltage detection circuit 620 outputs a second overvoltage detection signal DV2 whose state changes depending on the magnitude of the inverter input voltage V INV and the second threshold V TH2 A third threshold V TH3 Compare with the inverter input voltage V INV is the third threshold V TH3 exceeds the threshold voltage Vcc, the multiplexer 800 changes the state of the second overvoltage detection signal DV2 from a high level to a low level. When at least one of the first overvoltage detection signal DV1 and the second overvoltage detection signal DV2 changes from a high level to a low level, the multiplexer 800 switches the control mode from the first control mode to the second control mode. Usually, when the first or second threshold is detected, the increase in the inverter input voltage is suppressed by the fail-safe control by the MCU 300 or the first overvoltage detection circuit 610. However, when a large overvoltage that exceeds the third threshold occurs, it is highly likely that the fail-safe control by the MCU 300 or the first overvoltage detection circuit 610 is not functioning properly. In such a case, the fail-safe control can be continued regardless of the state of the MCU 300 or the first overvoltage detection circuit 610 by switching to the second control mode and performing the fail-safe control by the alternative circuit 500. That is, compared to the case where only the first overvoltage detection circuit 610 is provided, the provision of the second overvoltage detection circuit 620 further increases the possibility of performing the fail-safe control, improving safety. Also, even when the alternative circuit 500 is used, appropriate fail-safe control based on the state of the upper arm 110 and the lower arm 120 can be performed.
[0136] In this embodiment, when both the upper arm 110 and the lower arm 120 are in a normal state, the alternative circuit 500 controls all of the switching elements included in the upper arm 110 to an off state, and controls all of the switching elements included in the lower arm 120 to an on state. This allows the alternative circuit 500 to perform appropriate fail-safe control when both the upper arm 110 and the lower arm 120 are in a normal state.
[0137] In this embodiment, when the upper arm 110 of the upper arm 110 and the lower arm 120 is in an abnormal state, the alternative circuit 500 controls all of the switching elements included in the upper arm 110 to an off state, and controls all of the switching elements included in the lower arm 120 to an on state. As a result, when the upper arm 110 out of the upper arm 110 and the lower arm 120 is in an abnormal state, appropriate fail-safe control can be performed by the alternative circuit 500.
[0138] In this embodiment, when the lower arm 120 of the upper arm 110 and the lower arm 120 is in an abnormal state, the alternative circuit 500 controls all of the switching elements included in the upper arm 110 to an on state, and controls all of the switching elements included in the lower arm 120 to an off state. As a result, when the lower arm 120 out of the upper arm 110 and the lower arm 120 is in an abnormal state, the alternative circuit 500 can perform appropriate fail-safe control.
[0139] In this embodiment, when both the upper arm 110 and the lower arm 120 are in an abnormal state, the alternative circuit 500 controls all of the switching elements included in the upper arm 110 to an off state, and controls all of the switching elements included in the lower arm 120 to an off state. This allows the alternative circuit 500 to perform appropriate fail-safe control when both the upper arm 110 and the lower arm 120 are in an abnormal state.
[0140] In this embodiment, the alternative circuit 500 determines whether the upper arm 110 and the lower arm 120 are in a normal state or an abnormal state based on the abnormality detection signal (fault signal) output from each gate driver of the motor drive circuit 100. This makes it possible to determine whether the upper arm 110 and the lower arm 120 are in a normal state or an abnormal state more accurately than in a case where the fault signal of the gate driver is not used.
[0141] [Modifications] The present invention is not limited to the above-described embodiment, and the configurations described in this specification can be appropriately combined within a range not mutually contradictory. For example, in the above embodiment, an example was given of a case in which the monitoring unit, PMIC400, is provided separately from the arithmetic processing device, MCU300, but the present invention is not limited to this, and the monitoring unit may be provided in the arithmetic processing device, or the present invention may include both an arithmetic processing device that includes a monitoring unit and a monitoring unit that is provided separately from the arithmetic processing device. Furthermore, when the monitoring unit is disposed inside the arithmetic processing unit, the control mode may be switched by operating the mode switching unit (multiplexer 800) using as a trigger a signal output from the arithmetic processing unit notifying an abnormality. In addition, in the above embodiment, PMIC400 is used as an example of a monitoring unit that is provided separately from the arithmetic processing unit, but the present invention is not limited to this, and any electronic device that has the function of monitoring the status of the arithmetic processing unit may be used as the monitoring unit.
[0142] In the above embodiment, a motor unit 6 that provides driving force to the drive wheels 2 of a vehicle 1, which is an electric vehicle, is exemplified as a motor unit equipped with a motor control device 40. However, the present invention is not limited to this, and other motor units may be equipped with the motor control device of the present invention. In addition, in the above embodiment, an example was given of a case in which the motor unit 6 equipped with the motor control device 40 is mounted on a vehicle 1 that is an electric vehicle, but the motor unit of the present invention can be applied to vehicles other than electric vehicles, or to devices that require the rotational force of a motor, etc.
[0143] In the above embodiment, the motor unit 6 includes one motor 10 and the motor drive circuit 100, and the motor drive circuit 100 includes six switching elements in total for the upper and lower arms, but the present invention is not limited to this. The motor unit 6 may include a generator motor in addition to the motor 10, and the motor drive circuit 100 may have six switching elements for driving the generator motor in addition to the six switching elements for driving the motor 10. Furthermore, the fail-safe control of the present invention may be performed on the switching elements for driving the generator motor.
[0144] In the above embodiment, the MCU 300 is configured to start fail-safe control when it detects an overvoltage of the inverter input voltage in the normal operation of the motor control device 40, but the present invention is not limited to this. A rotation speed detection unit that detects the rotation speed of the motor 10 may be provided, and the fail-safe control may be started when the rotation speed detection unit detects a rotation speed exceeding an arbitrary threshold value.
[0145] In the above embodiment, a configuration has been exemplified in which the operation of the motor control device 40 when an abnormality occurs in the MCU 300 is such that a low-level mode switching signal MS is output to the multiplexer 800 when an overvoltage of the inverter input voltage or an abnormality in the MCU 300 is detected, thereby switching the control mode from the first control mode to the second control mode and performing fail-safe control, but the present invention is not limited to this. A rotation speed detection unit that detects the rotation speed of the motor 10 may be provided, and when the rotation speed detection unit detects a rotation speed exceeding an arbitrary threshold, a low-level mode switching signal MS is output to the multiplexer 800, thereby switching the control mode from the first control mode to the second control mode and performing fail-safe control.
[0146] In the above embodiment, the motor unit 6 inputs power to the motor drive circuit 100 without stepping up or stepping down the voltage of the high-voltage battery 7, but the present invention is not limited to this. The motor unit 6 may include a DC-DC converter that steps up or steps down the voltage of the high-voltage battery 7.
[0147] In the above embodiment, the inverter input voltage, the rotation speed of the motor 10, the state of the MCU 300, and the like after the fail-safe control is executed may be detected. For example, when the inverter device changes from a low-safety state to a high-safety state after the fail-safe control, such as when the inverter input voltage or the motor rotation speed returns to a predetermined threshold value or lower, or when the MCU 300 detects that it has returned from an abnormal state to a normal state, the fail-safe control may be terminated and the switching control may be returned to normal even if the rotation of the motor 10 has not stopped.
[0148] In the above embodiment, the gate control signal output from the multiplexer 800 may be monitored to prevent a short circuit state of the motor drive circuit 100. For example, when both the U-phase high-side gate control signal UHG and the U-phase low-side gate control signal ULG are at a high level, the U-phase high-side switching element Q UH and the U-phase lower switching element Q UH and are both turned on, causing a short circuit in the motor drive circuit 100. When it is detected that the gate control signals are output at high levels in the same phase for both the upper and lower arms, the supply of the gate control signals to the motor drive circuit 100 may be stopped, or all switching elements may be turned off.
[0149] In the above embodiment, the OR circuit 700, the first OR circuit 510, and the second OR circuit 520 are all negative logic OR circuits, but they may be positive logic OR circuits. Furthermore, the logic of each signal may be reversed, and for example, the following operation may be performed. When at least one high level signal is input to the positive logic OR circuit 700, the first control mode is switched to the second control mode by outputting a high level mode switching signal MS to the multiplexer 800. When an abnormality occurs in a switching element included in the upper arm 110, at least one of the three upper gate drivers outputs a high level FLT signal to the positive logic first OR circuit 510. The positive logic first logic circuit 510 outputs a high level upper arm fault signal FLTH to the matrix circuit 530. The matrix circuit 530 outputs a high level first output signal OUT1 to the first switch 540. In the first switch 540, the contact 541 and the contact 543 are electrically connected, and thus the upper arm control signal HG having a high-level voltage VHi is output from the contact 543 to the multiplexer 800. The multiplexer 800 outputs the U-phase upper gate control signal UHG, the V-phase upper gate control signal VHG, and the W-phase upper gate control signal WHG as all at high level to the three upper gate drivers. [Explanation of symbols]
[0150] 1...vehicle, 2...driving wheel, 3...vehicle sensor, 4...accelerator position sensor, 5...electronic control device, 6...motor unit, 7...high voltage battery, 8...low voltage battery, 10...motor, 20...reduction gear, 30...differential gear, 40...motor control device, 100...motor drive circuit, 210...first separation circuit, 220...second separation circuit, 300...MCU (arithmetic processing unit), 400...PMIC (monitoring unit), 500...alternative circuit, 610...first overvoltage detection circuit, 620...second overvoltage detection circuit, 700...logical OR circuit, 800...multiplexer (mode switching unit)
Claims
1. a motor drive circuit having an upper arm and a lower arm; A processor that controls the motor drive circuit; a replacement circuit for replacing the arithmetic processing device; a first control mode in which the arithmetic processing device controls the motor drive circuit based on a state of the arithmetic processing device; a mode switching unit that switches a control mode between a first control mode in which the alternative circuit controls the motor drive circuit and a second control mode in which the alternative circuit controls the motor drive circuit; a first overvoltage detection circuit that outputs a first overvoltage detection signal whose state changes depending on the magnitude of an input voltage to the motor drive circuit; Equipped with the mode switching unit switches the control mode from the first control mode to the second control mode when a state of the arithmetic processing device changes from a normal state to an abnormal state, In the second control mode, the alternative circuit controls switching of switching elements included in the upper arm and the lower arm based on states of the upper arm and the lower arm; the arithmetic processing device compares an input voltage of the motor drive circuit with a first threshold, and executes a fail-safe control when the input voltage exceeds the first threshold; the first overvoltage detection circuit compares an input voltage of the motor drive circuit with a second threshold value higher than the first threshold value, and when the input voltage exceeds the second threshold value, changes a state of the first overvoltage detection signal from a first state to a second state; the mode switching unit switches the control mode from the first control mode to the second control mode even when a state of the first overvoltage detection signal changes from the first state to the second state. Motor control device.
2. A monitoring unit that monitors a state of the arithmetic processing device is further provided, The mode switching unit switches the control mode from the first control mode to the second control mode when the monitoring unit detects that the state of the arithmetic processing device has changed from a normal state to an abnormal state. The motor control device according to claim 1 .
3. The monitoring unit is provided separately from the arithmetic processing unit. The motor control device according to claim 2 .
4. The monitoring unit is a PMIC that manages the power supply of the arithmetic processing unit. The motor control device according to claim 2 or 3.
5. a second overvoltage detection circuit that outputs a second overvoltage detection signal whose state changes depending on the magnitude of the input voltage of the motor drive circuit; the second overvoltage detection circuit compares an input voltage of the motor drive circuit with a third threshold value higher than the second threshold value, and when the input voltage exceeds the third threshold value, changes a state of the second overvoltage detection signal from a first state to a second state; The mode switching unit switches the control mode from the first control mode to the second control mode when at least one of the first overvoltage detection signal and the second overvoltage detection signal changes from the first state to the second state.
5. The motor control device according to claim 1.
6. a motor drive circuit having an upper arm and a lower arm; A processor that controls the motor drive circuit; a replacement circuit for replacing the arithmetic processing device; a first overvoltage detection circuit that outputs a first overvoltage detection signal whose state changes depending on the magnitude of an input voltage to the motor drive circuit; a mode switching unit that switches a control mode between a first control mode in which the arithmetic processing device controls the motor drive circuit and a second control mode in which the alternative circuit controls the motor drive circuit based on a state of the first overvoltage detection signal; a first isolation circuit interposed between the motor drive circuit and the first overvoltage detection circuit; Equipped with the arithmetic processing device compares an input voltage of the motor drive circuit with a first threshold, and executes a fail-safe control when the input voltage exceeds the first threshold; the first overvoltage detection circuit compares an input voltage of the motor drive circuit with a second threshold value higher than the first threshold value, and when the input voltage exceeds the second threshold value, changes a state of the first overvoltage detection signal from a first state to a second state; the mode switching unit switches the control mode from the first control mode to the second control mode when a state of the first overvoltage detection signal changes from the first state to the second state, In the second control mode, the alternative circuit controls switching of the switching elements included in the upper arm and the lower arm based on states of the upper arm and the lower arm. Motor control device.
7. a second overvoltage detection circuit that outputs a second overvoltage detection signal whose state changes depending on the magnitude of the input voltage of the motor drive circuit; a second isolation circuit interposed between the motor drive circuit and the second overvoltage detection circuit; Further equipped with the second overvoltage detection circuit compares an input voltage of the motor drive circuit with a third threshold value higher than the second threshold value, and when the input voltage exceeds the third threshold value, changes a state of the second overvoltage detection signal from a first state to a second state; The mode switching unit switches the control mode from the first control mode to the second control mode when at least one of the first overvoltage detection signal and the second overvoltage detection signal changes from the first state to the second state. The motor control device according to claim 6.
8. The mode switching unit switches the control mode from the first control mode to the second control mode even when the state of the arithmetic processing device changes from a normal state to an abnormal state. The motor control device according to claim 6 or 7.
9. A monitoring unit that monitors a state of the arithmetic processing device is further provided, The mode switching unit switches the control mode from the first control mode to the second control mode when the monitoring unit detects that the state of the arithmetic processing device has changed from a normal state to an abnormal state. The motor control device according to claim 8.
10. The monitoring unit is provided separately from the arithmetic processing unit. The motor control device according to claim 9.
11. The monitoring unit is a PMIC that manages the power supply of the arithmetic processing unit. The motor control device according to claim 9 or 10.
12. When both the upper arm and the lower arm are in a normal state, the alternative circuit controls all of the switching elements included in the upper arm to an off state and controls all of the switching elements included in the lower arm to an on state. The motor control device according to any one of claims 1 to 11.
13. When the upper arm of the upper arm and the lower arm is in an abnormal state, the alternative circuit controls all of the switching elements included in the upper arm to an off state and controls all of the switching elements included in the lower arm to an on state. The motor control device according to any one of claims 1 to 11.
14. When the lower arm of the upper arm and the lower arm is in an abnormal state, the alternative circuit controls all of the switching elements included in the upper arm to an ON state and controls all of the switching elements included in the lower arm to an OFF state. The motor control device according to any one of claims 1 to 11.
15. When both the upper arm and the lower arm are in an abnormal state, the alternative circuit controls all of the switching elements included in the upper arm to an off state, and controls all of the switching elements included in the lower arm to an off state. The motor control device according to any one of claims 1 to 11.
16. The alternative circuit determines whether the upper arm and the lower arm are in a normal state or an abnormal state based on an abnormality detection signal output from a gate driver of the motor drive circuit. The motor control device according to any one of claims 12 to 15.
17. A motor; A motor control device according to any one of claims 1 to 16, which controls the motor; A motor unit comprising:
18. A vehicle comprising the motor unit according to claim 17.
Citation Information
Patent Citations
Overvoltage protecting circuit of inverter
JP1985219996A
Device for controlling power converter for vehicle
JP2011078216A
Power converter
JP2012186871A
Power conversion device and overcurrent protection method for the same
JP2014217151A
Motor drive device
JP2017225236A
