Control device and communication method for the same

The control device and method address noise oscillation in motor drive systems by timing communication to avoid interference and optimizing communication volume, reducing electromagnetic interference and enhancing system reliability.

JP2024126969AActive Publication Date: 2024-09-20MITSUBA CORP +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023035770
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-20
Estimated Expiration
2043-03-08

AI Technical Summary

Technical Problem

Noise oscillation during communication in motor drive systems causes electromagnetic interference, leading to malfunctions, reduced functionality, and safety risks.

Method used

A control device and method that determine optimal communication timing to avoid noise overlap, limit unnecessary communication, and verify communication amounts to reduce electromagnetic interference.

Benefits of technology

Reduces noise oscillation and electromagnetic interference, minimizing adverse effects on electronic equipment by ensuring communication occurs at noise-free times and optimizing communication volume.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024126969000001
    Figure 2024126969000001
Patent Text Reader

Abstract

To reduce noise oscillation caused by communication on the same system.SOLUTION: A motor control device 10 includes an MCU 12 and a pre-driver 13 that form at least part of the circuit for controlling the drive of a motor, and the MCU 12 includes a communication timing determination unit 121 that outputs a communication execution command when it is determined that it is a timing for executing communication between the MCU 12 and the pre-driver 13 by determining whether it is the timing for executing the communication between the MCU12 and the pre-driver 13 and a communication unit 122 for executing the communication between the MCU12 and the pre-driver 13 when the communication execution command is input. The communication timing determination unit 121 determines that a timing that does not overlap with a timing at which noise is generated due to a factor other than the communication between the MCU 12 and the pre-driver 13 is a timing at which the communication between the MCU 12 and the pre-driver 13 is executed.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a control device and a communication method in a control device. [Background technology]

[0002] In a motor drive system having an MCU (Micro Controller Unit) and an IC (Integrated Circuit) on the same system, the MCU and the IC periodically communicate (specifically, for example, SPI (Serial Peripheral Interface) communication) for, for example, writing settings to the IC and reading failure information from the IC (for example, see Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2014-89672 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, noise occurs during communication, and depending on the frequency and conditions of noise oscillation, the noise oscillation associated with communication may cause electromagnetic interference, which may result in many harmful consequences for electronic devices, such as malfunctions, performance degradation, data loss, and safety risks.

[0005] Therefore, in one aspect, the present invention has an object to provide a technique capable of reducing noise generation due to communication on the same system. [Means for solving the problem]

[0006] In order to solve the above problems, the control device of the present invention includes an MCU and an IC, and the MCU is equipped with a communication timing determination unit that determines whether it is the timing to execute communication between the MCU and the IC and outputs a communication execution command when it determines that it is the timing to execute communication between the MCU and the IC, and a communication unit that executes communication between the MCU and the IC when the communication execution command is input, and the communication timing determination unit may determine that it is the timing to execute communication between the MCU and the IC that is a timing that does not overlap with a timing when noise occurs due to a factor other than communication between the MCU and the IC.

[0007] In the control device of the present invention, the MCU and the IC constitute at least a part of a circuit for controlling the driving of a motor, and the timing that does not overlap with the timing at which noise occurs due to a factor other than communication between the MCU and the IC may be the timing at which a command to stop the motor is input from an ECU, which is a higher-level control device of the MCU and the IC, to the communication timing determination unit of the MCU.

[0008] The control device of the present invention may include an MCU and an IC, and the MCU may be equipped with a communication volume comparison unit that compares the amount of communication required to write the settings of the IC (referred to as the "write communication volume") with the amount of communication required to read the current settings of the IC (referred to as the "read communication volume"), and outputs a communication execution command if the read communication volume is greater than the write communication volume, and outputs a read execution command to read the contents of the current settings of the IC if the read communication volume is less than the write communication volume; a setting content determination unit that determines whether the read contents of the current settings of the IC are normal or not, and outputs a communication execution command if the contents of the current settings of the IC are abnormal; and a communication unit that executes communication between the MCU and the IC to read the current settings of the IC when the read execution command is input, and executes communication between the MCU and the IC to write the settings of the IC when the communication execution command is input.

[0009] In the control device according to the present invention, the MCU and the IC may form at least a part of a circuit for controlling driving of a motor.

[0010] The communication method in a control device of the present invention is a method executed in a control device including an MCU and an IC, and includes the steps of determining whether it is the timing to execute communication between the MCU and the IC, and executing communication between the MCU and the IC when it is determined that it is the timing to execute communication between the MCU and the IC, and may determine that it is the timing to execute communication between the MCU and the IC to be a timing that does not overlap with a timing when noise is generated due to a factor other than the communication between the MCU and the IC.

[0011] A communication method in a control device according to the present invention may be such that the MCU and the IC constitute at least a part of a circuit for controlling the driving of a motor, and the timing that does not overlap with a timing at which noise occurs due to a factor other than the communication between the MCU and the IC is a timing at which a command to stop the motor is input to the MCU from an ECU, which is a higher-level control device of the MCU and the IC.

[0012] The communication method in the control device of the present invention may be a method executed in a control device including an MCU and an IC, and may include the steps of: comparing the amount of communication required to write the settings of the IC (referred to as the "write communication amount") with the amount of communication required to read the current settings of the IC (referred to as the "read communication amount"); executing communication between the MCU and the IC to write the settings of the IC when the read communication amount is greater than the write communication amount; executing communication between the MCU and the IC to read the current settings of the IC when the read communication amount is less than the write communication amount; determining whether the contents of the current settings of the IC that have been read are normal; and executing communication between the MCU and the IC to write the settings of the IC when the contents of the current settings of the IC that have been read are abnormal.

[0013] In the communication method in a control device according to the present invention, the MCU and the IC may constitute at least a part of a circuit for controlling driving of a motor. Effect of the Invention

[0014] According to one aspect of the present invention, it is possible to reduce noise generation due to communication on the same system. [Brief description of the drawings]

[0015] [Figure 1] 1 is a block diagram showing an example of a configuration of a motor control device according to an embodiment of the present invention, in which a communication method in a motor control device according to an embodiment of the present invention is executed. [Diagram 2] 2 is a diagram illustrating a functional configuration of an MCU of the motor control device according to the first embodiment. FIG. [Diagram 3] 2 is a diagram illustrating the motor control device according to the first embodiment and the processing content of a communication method in the motor control device. FIG. [Figure 4] FIG. 11 is a diagram illustrating the functional configuration of an MCU of a motor control device according to a second embodiment. [Diagram 5] 10 is a diagram illustrating the motor control device according to the second embodiment and the processing content of a communication method in the motor control device. FIG. [Figure 6] 11 is a flow diagram illustrating a processing procedure of a motor control device and a communication method in the motor control device according to a second embodiment. [Figure 7] FIG. 11 is a diagram illustrating the functional configuration of an MCU of a motor control device according to a third embodiment. [Figure 8A] 13 is a diagram illustrating the motor control device and the processing content of a communication method in the motor control device according to the third embodiment. FIG. [Figure 8B] 13 is a diagram illustrating the motor control device and the processing content of a communication method in the motor control device according to the third embodiment. FIG. [Figure 9] 13 is a flow diagram illustrating a processing procedure of a motor control device and a communication method in the motor control device according to a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the following embodiments (specifically, embodiments 1 to 3), a communication method in a control device according to the present invention will be described by taking as an example a case where the communication method is executed in an example of a control device according to the present invention shown in FIG.

[0017] (Device Configuration) FIG. 1 is a block diagram showing an example of the configuration of a motor control device 10 according to an embodiment, in which a communication method in a motor control device according to an embodiment (specifically, embodiments 1 to 3) is executed, as an example of a specific configuration aspect of a control device and a communication method in a control device according to the present invention.

[0018] The motor control device 10 according to the embodiment is a mechanism for controlling the drive of a three-phase AC motor 20 (three phases: U phase, V phase, and W phase) mounted on a vehicle. Specifically, the three-phase AC motor 20 is a motor that drives an electric oil pump that circulates oil. Here, devices and circuits to which the communication method in a control device according to the present invention can be applied (i.e., the control device according to the present invention) are not limited to devices and circuits for controlling the drive of a motor, and the motor control device 10 shown in FIG. 1 is merely one example of the configuration of a device and circuit to which the communication method in a control device according to the present invention can be applied, so a detailed description will be omitted, but the outline is as follows.

[0019] The motor control device 10 includes a power supply circuit 11, an MCU (Micro Controller Unit) 12, a pre-driver 13, and a FET (Field Effect Transistor) bridge 14.

[0020] The power supply circuit 11 generates DC power supply voltages VCC and VDC. The DC power supply voltage VCC is a power supply voltage (power supply potential) for the MCU 12, and is supplied to a terminal VCC of the MCU 12. The DC power supply voltage VDC is a power supply voltage (drive voltage) for inverter driving the three-phase AC motor 20, and is supplied to a terminal VDC of the pre-driver 13.

[0021] The MCU 12 is configured, for example, as a chip including a CPU (Central Processing Unit), a memory, etc. The CPU of the MCU 12 is configured to read out programs and data stored in the memory and perform predetermined processing.

[0022] The MCU 12 generates control signals UT, UB, VT, VB, WT, and WB and supplies them to the pre-driver 13. The control signals UT and UB are signals for controlling the on / off of a switching element associated with a U phase in the FET bridge 14. The control signals VT and VB are signals for controlling the on / off of a switching element associated with a V phase in the FET bridge 14. The control signals WT and WB are signals for controlling the on / off of a switching element associated with a W phase in the FET bridge 14.

[0023] The pre-driver 13 corresponds to a drive circuit for driving the switching elements in the FET bridge 14, and is configured by an IC (Integrated Circuit). The pre-driver 13 supplies signals for controlling each switching element, which are generated according to control signals UT, UB, VT, VB, WT, and WB supplied from the MCU 12, to control terminals of each switching element of the FET bridge 14 via six output terminals. In other words, the pre-driver 13 controls the switching operation (i.e., on / off) of the six switching elements in the FET bridge 14 based on the control signals UT, UB, VT, VB, WT, and WB supplied from the MCU 12.

[0024] The FET bridge 14 inverter-drives the three-phase AC motor 20 in accordance with signals for controlling the switching operations (i.e., on / off) of the six switching elements, which are supplied from the pre-driver 13 via six input terminals. The FET bridge 14 includes six switching elements for inverter-driving the three-phase AC motor 20, specifically, three upper arm (high side) switching elements located on the upper side of the bridge circuit, and three lower arm (low side) switching elements located on the lower side of the bridge circuit. Each switching element is configured by a field effect transistor (FET). Three output terminals of the FET bridge 14 are connected to three coils (i.e., U-phase coil, V-phase coil, and W-phase coil; not shown) of the three-phase AC motor 20, respectively.

[0025] The MCU 12 and the pre-driver 13 execute communication, specifically, for example, SPI (Serial Peripheral Interface) communication. In the example shown in Fig. 1, the MCU 12 is an SPI main (or an SPI master) and the pre-driver 13 is an SPI subnode (or an SPI slave), and four-wire SPI communication is executed.

[0026] In this case, the MCU 12 as the SPI main transmits, as communication signals, a chip select signal / CS (note that / is placed above CS to represent --), a main output-subnode input signal SDI, and a clock signal SCLK generated by the MCU 12 for synchronizing communication to the pre-driver 13 as the SPI subnode. Also, the pre-driver 13 as the SPI subnode transmits a main input-subnode output signal SDO to the MCU 12 as the SPI main.

[0027] The main output-subnode input signal SDI is data from the MCU 12 (SPI main) to the pre-driver 13 (SPI sub-node) for controlling the switching operations of six switching elements in the FET bridge 14 in the pre-driver 13. The main input-subnode output signal SDO is data from the pre-driver 13 (SPI sub-node) to the MCU 12 (SPI main).

[0028] Also, a diagnostic signal DIAG is transmitted from the pre-driver 13 to a diagnostic terminal DIAG of the MCU 12. The diagnostic signal DIAG is an electrical signal equivalent to information indicating, for example, an abnormality of the three-phase AC motor 20 (also referred to as "fail information" or "diagnosis information"). When the diagnostic signal DIAG is output, an ECU (Electronic Control Unit; not shown in FIG. 1), which is a higher-level control device of the MCU 12 and the pre-driver 13, checks the contents of the diagnostic signal DIAG and executes fail-safe processing or other processing or control depending on, for example, whether the diagnostic signal DIAG is a diagnostic signal (fail information) indicating a minor abnormality or a diagnostic signal (fail information) indicating an abnormality requiring immediate protection.

[0029] Also, the MCU 12 transmits a reset signal / RESET (note that / is placed above RESET to indicate --) to the enable terminal ENA of the pre-driver 13. For example, when the pre-driver 13 or the three-phase AC motor 20 is to be restored to its original state, the MCU 12 applies the reset signal / RESET to the enable terminal ENA of the pre-driver 13.

[0030] Here, the MCU 12 writes the settings of the pre-driver 13 (for example, the settings of the energization method, the fault settings related to the abnormality detection function (enable / disable settings of overheating, low voltage, gate drive, watchdog, etc.), the detection threshold of an overcurrent (Vds) abnormality, the notification method, and the sensing disable time) once when the system (specifically, the motor control device 10) is turned on or before the operation starts. After that, for example, if the pre-driver 13 is reset due to a power supply voltage fluctuation during the operation of the system, it is necessary to perform the initialization settings (specifically, the same settings as when the power supply is turned on) again. However, it is not known when the power supply voltage fluctuation will occur. Therefore, in order to quickly respond to (specifically, perform the initialization settings) the reset of the pre-driver 13 due to, for example, a power supply voltage fluctuation that may occur, it is conceivable to perform the writing of the settings of the pre-driver 13 by periodically executing communication between the MCU 12 and the pre-driver 13.

[0031] Furthermore, by configuring the MCU 12 and the IC (i.e., the IC corresponding to the pre-driver 13 in this embodiment) to be able to communicate with each other, it becomes possible to rewrite and change the settings of the IC as appropriate, for example, in accordance with the specifications of the mechanism and equipment controlled by the motor control device 10, the specifications of the mechanism and equipment related to the motor control device 10, and the situation during system operation.

[0032] However, noise occurs during communication, and the noise generated during communication while the system is running may cause electromagnetic interference. Therefore, in order to reduce noise generated by communication, the present invention limits the timing for executing communication (embodiment 1), prohibits unnecessary communication with a large amount of communication (embodiment 2), or limits the timing for executing communication and prohibits unnecessary communication with a large amount of communication (embodiment 3).

[0033] (Embodiment 1) Fig. 2 is a diagram illustrating the functional configuration of MCU 12 of motor control device 10 according to embodiment 1, as an example of a specific configuration of a control device according to the present invention. Fig. 3 is a diagram illustrating the processing contents of motor control device 10 according to embodiment 1 and the communication method in the motor control device, as an example of a specific configuration of a control device and a communication method in the control device according to the present invention.

[0034] The motor control device 10 of embodiment 1 includes an MCU 12 and a pre-driver 13 that constitute at least a part of a circuit for controlling the driving of a motor, and the MCU 12 is equipped with a communication timing determination unit 121 that determines whether it is the timing to execute communication between the MCU 12 and the pre-driver 13 and outputs a communication execution command when it determines that it is the timing to execute communication between the MCU 12 and the pre-driver 13, and a communication unit 122 that executes communication between the MCU 12 and the pre-driver 13 when the communication execution command is input, and the communication timing determination unit 121 determines that it is the timing to execute communication between the MCU 12 and the pre-driver 13, that is, a timing that does not overlap with a timing at which noise occurs due to a factor other than the communication between the MCU 12 and the pre-driver 13.

[0035] Furthermore, the communication method in the motor control device of embodiment 1 is a method executed in a motor control device including an MCU 12 and a pre-driver 13, and includes a step of determining whether it is the timing to execute communication between the MCU 12 and the pre-driver 13, and a step of executing communication between the MCU 12 and the pre-driver 13 when it is determined that it is the timing to execute communication between the MCU 12 and the pre-driver 13, and determines that it is the timing to execute communication between the MCU 12 and the pre-driver 13 to be a timing that does not overlap with a timing at which noise occurs due to a factor other than the communication between the MCU 12 and the pre-driver 13.

[0036] In this embodiment, at the timing when a stop command (specifically, an electrical signal equivalent to a stop command) for the three-phase AC motor 20 is input from the ECU 30, which is a higher-level control device of the MCU 12 and the pre-driver 13, to the communication timing determination unit 121 of the MCU 12, a communication execution command is output from the communication timing determination unit 121 and input to the communication unit 122 of the MCU 12, and the communication unit 122 executes communication between the MCU 12 and the pre-driver 13, and the MCU 12 writes the setting to the pre-driver 13. After the communication is executed at the timing when the stop command for the three-phase AC motor 20 is issued from the ECU 30, communication related to the writing of the setting for the pre-driver 13 is not executed between the MCU 12 and the pre-driver 13 until the next stop command for the three-phase AC motor 20 is issued from the ECU 30 (after the ECU 30 issues a drive command for the three-phase AC motor 20).

[0037] In addition, if an abnormality occurs, for example, the three-phase AC motor 20 is rotating too much or not rotating at all and the ECU 30 detects the abnormality, the ECU 30 issues a stop command, and at that timing, communication between the MCU 12 and the pre-driver 13 is executed and settings are written from the MCU 12 to the pre-driver 13.

[0038] The timing (in other words, a trigger) for executing communication between the MCU 12 and the pre-driver 13 is not limited to the timing when the ECU 30 issues a stop command for the three-phase AC motor 20, and may be any timing that does not cause a problem even if electromagnetic noise associated with the communication is emitted. Specifically, the communication between the MCU 12 and the pre-driver 13 may be executed at a timing that avoids the noise caused by the communication between the MCU 12 and the pre-driver 13 from competing with the noise caused by another factor. In other words, the communication between the MCU 12 and the pre-driver 13 is executed at a timing that does not overlap with the timing when noise occurs due to a factor other than the communication. That is, the communication timing determination unit 121 of the MCU 12 determines that the timing for executing communication between the MCU 12 and the pre-driver 13 is the timing that does not overlap with the timing when noise occurs due to a factor other than the communication between the MCU 12 and the pre-driver 13.

[0039] In this embodiment, since noise caused by the pre-driver 13 occurs while the three-phase AC motor 20 is being driven, communication between the MCU 12 and the pre-driver 13 is not executed to avoid conflict with the noise, and since there is no noise caused by the pre-driver 13 while the three-phase AC motor 20 is stopped, communication is executed. Then, the communication timing determination unit 121 of the MCU 12 determines the timing when the ECU 30 issues a stop command for the three-phase AC motor 20 as the timing to execute communication between the MCU 12 and the pre-driver 13 (and thus outputs a communication execution command).

[0040] Furthermore, when the circuit (particularly the combination of MCU 12 and an IC (i.e., an IC corresponding to pre-driver 13 in this embodiment) that communicates with MCU 12) controls other mechanisms or devices, the communication between MCU 12 and the IC is executed at a timing that does not cause any problems even if electromagnetic noise associated with the communication is emitted, depending on each mechanism or device to be controlled, that is, at a timing that avoids noise caused by communication between MCU 12 and the IC competing with noise caused by other factors, in other words, at a timing that does not overlap with the timing when noise is generated due to factors other than the communication between MCU 12 and the IC.

[0041] For example, in the case of a system in which the combination of an MCU and an IC is responsible for display functions such as a clock displayed on a display unit (display) installed in a vehicle's instrument panel and display switching and rest (note that this is not a sleep function) are repeated alternately, communication between the MCU and the IC may be performed during the rest period when the display function such as the clock is not operating (i.e., the period between one display switching and the next display switching).

[0042] In addition, in the case of a system in which a sleep function is implemented in the MCU, there is a period before and after sleep during which functions related to the MCU are not operating, so communication between the MCU and the IC may be performed between the ignition (i.e., MCU power) being turned off and the sleep period, or between the ignition (MCU power) being turned on and the wake-up period.

[0043] (Embodiment 2) Fig. 4 is a diagram illustrating the functional configuration of MCU 12 of motor control device 10 according to embodiment 2, as an example of a specific configuration of a control device according to the present invention. Fig. 5 is a diagram illustrating the processing contents of motor control device 10 and the communication method in the motor control device according to embodiment 2, as an example of a specific configuration of a control device and a communication method in the control device according to the present invention. Fig. 6 is a flow diagram illustrating the processing procedure of motor control device 10 and the communication method in the motor control device according to embodiment 2.

[0044] The motor control device 10 according to the second embodiment includes an MCU 12 and a pre-driver 13 that constitute at least a part of a circuit for controlling the driving of a motor. The MCU 12 compares the communication amount required for writing the settings of the pre-driver 13 (referred to as a "write communication amount") with the communication amount required for reading the current settings of the pre-driver 13 (referred to as a "read communication amount"), and outputs a communication execution command when the read communication amount is greater than the write communication amount, and reads the contents of the current settings of the pre-driver 13 when the read communication amount is less than the write communication amount. the communication execution command between the MCU 12 and the pre-driver 13 when the read execution command is input, and a communication execution command between the MCU 12 and the pre-driver 13 when the communication execution command is input.

[0045] Moreover, the communication method in the motor control device according to the second embodiment is a method executed in the motor control device including the MCU 12 and the pre-driver 13, and includes steps S1 and S2 of comparing the amount of communication required for writing the setting of the pre-driver 13 (i.e., the amount of write communication) with the amount of communication required for reading the current setting of the pre-driver 13 (i.e., the amount of read communication), step S3 of executing communication between the MCU 12 and the pre-driver 13 to write the setting of the pre-driver 13 when the amount of read communication is greater than the amount of write communication (step S2: No), step S4 of executing communication between the MCU 12 and the pre-driver 13 to read the current setting of the pre-driver 13 when the amount of read communication is less than the amount of write communication (step S2: Yes), step S5 of determining whether the contents of the current setting of the pre-driver 13 that has been read out are normal, and step S6 of executing communication between the MCU 12 and the pre-driver 13 to write the setting of the pre-driver 13 when the contents of the current setting of the pre-driver 13 that has been read out are abnormal (step S5: No).

[0046] In this embodiment, verification is performed as to whether or not to execute communication between the MCU 12 and the pre-driver 13, and based on the result of the verification, communication between the MCU 12 and the pre-driver 13 is executed as necessary, and settings are written from the MCU 12 to the pre-driver 13.

[0047] Specifically, first, the communication volume comparison unit 123 of the MCU 12 acquires the communication volume required to write the settings of the pre-driver 13 (i.e., the write communication volume) and the communication volume required to read the current settings (register) of the pre-driver 13 (i.e., the read communication volume) (step S1).

[0048] The write communication amount and the read communication amount may be grasped, for example, at the design stage of the motor control device 10. That is, when the setting of the pre-driver 13 is written, communication is executed between the register of the pre-driver 13 and a signal is transmitted from the MCU 12, but writing is executed to a plurality of registers according to the setting items. Then, communication (specifically, for example, SPI communication) is transmitted to each register one by one. Therefore, the number of registers to be set is the write communication amount (i.e., the number of communications), so the write communication amount is determined by designing the number of registers to be set. Similarly, the read communication amount is determined by designing the number of registers to be read. Note that, if it is possible to determine which of the write communication amount and the read communication amount is larger from the write communication amount and the read communication amount estimated at the design stage, instead of the process of step S1, communication for writing the setting of the pre-driver 13 is executed if the read communication amount is smaller than the write communication amount, and communication for reading the current setting of the pre-driver 13 is executed if the write communication amount is larger than the read communication amount. In addition, the write communication volume and read communication volume in the communication between the MCU 12 and the pre-driver 13, which are determined and understood during the design stage of the motor control device 10, may be stored in advance, for example, in a memory within the MCU 12, and these stored write communication volumes and read communication volumes may be read as the processing of step S1.

[0049] Here, the timing for acquiring the write communication volume and the read communication volume (and thus the timing for executing communication between the MCU 12 and the pre-driver 13 as necessary) may be performed at a predetermined interval, or may be performed in accordance with a predetermined trigger or occasion.

[0050] Next, the communication traffic comparison unit 123 of the MCU 12 compares the write communication traffic and the read communication traffic acquired in step S1, and determines whether the read communication traffic is smaller than the write communication traffic (step S2).

[0051] As described above, the write communication amount and the read communication amount are determined and understood at the design stage of the motor control device 10, so the magnitude relationship between the write communication amount and the read communication amount in the communication between the MCU 12 and the pre-driver 13 determined and understood at the design stage of the motor control device 10 may be stored in advance, for example, in a memory in the MCU 12, and this stored magnitude relationship may be read as the processing of step S2. In light of this, the processing of step S1 above and the processing of step S2 may be executed substantially as a single process.

[0052] Then, when the read communication amount is greater than the write communication amount (step S2: No), a communication execution command is output from the communication amount comparison unit 123 of the MCU 12 and input to the communication unit 122 of the MCU 12, and the communication unit 122 executes communication between the MCU 12 and the pre-driver 13 to write the setting of the pre-driver 13 (step S3). This ends the communication between the MCU 12 and the pre-driver 13 corresponding to the timing according to the predetermined interval, trigger, or occasion (step S1).

[0053] On the other hand, if the read communication amount is less than the write communication amount (step S2: Yes), a read execution command is output from the communication amount comparison unit 123 of the MCU 12 and input to the communication unit 122 of the MCU 12, and the communication unit 122 executes communication between the MCU 12 and the pre-driver 13 to read the current setting of the pre-driver 13 (step S4). Then, the read content of the current setting of the pre-driver 13 is transmitted to the setting content determination unit 124 of the MCU 12.

[0054] Then, the setting content determination unit 124 of the MCU 12 determines whether the read setting content is normal or not (step S5). For example, when the register value (specifically, 1 or 0) matches the value that should be set in the current state, the setting content determination unit 124 determines that the read setting content is normal, and when the register value does not match the value that should be set in the current state, the setting content determination unit 124 determines that the read setting content is abnormal.

[0055] Specifically, for example, the setting content determination unit 124 may determine whether the read setting content is normal based on whether the content set for the pre-driver 13 at the time of power-on is retained as is. Note that if a malfunction or error occurs in the pre-driver 13, the content set for the pre-driver 13 at the time of power-on changes. For example, if there is no abnormality in the power supply voltage of the MCU 12 but the power supply voltage of the pre-driver 13 fluctuates, the pre-driver 13 is reset, and the content set for the pre-driver 13 at the time of power-on is reset and changed.

[0056] In addition, it may be possible to determine whether the contents of the settings that have been read out are normal or not based on a comparison with appropriate contents (in other words, contents that should be set) at each point in time when the system is in operation.

[0057] If the read setting contents are abnormal (step S5: No), a communication execution command is output from the setting content determination unit 124 of the MCU 12 and input to the communication unit 122 of the MCU 12, and the communication unit 122 executes communication between the MCU 12 and the pre-driver 13 to write the setting of the pre-driver 13 (step S6). This ends the communication between the MCU 12 and the pre-driver 13 corresponding to the timing according to the predetermined interval, trigger, or occasion (step S1).

[0058] On the other hand, if the contents of the read settings are normal (step S5: Yes), communication between the MCU 12 and the pre-driver 13 to write the settings of the pre-driver 13 is not performed, and communication between the MCU 12 and the pre-driver 13 corresponding to the timing in accordance with the specified interval, trigger, or opportunity (step S1) is terminated.

[0059] (Embodiment 3) Fig. 7 is a diagram illustrating the functional configuration of the MCU 12 of the motor control device 10 according to embodiment 3, as an example of a specific configuration of the control device according to the present invention. Figs. 8A and 8B are diagrams illustrating the processing contents of the motor control device 10 and the communication method in the motor control device according to embodiment 3, as an example of a specific configuration of the control device and the communication method in the control device according to the present invention. Fig. 9 is a flow diagram illustrating the processing procedure of the motor control device 10 and the communication method in the motor control device according to embodiment 3.

[0060] The motor control device 10 according to the third embodiment includes an MCU 12 and a pre-driver 13 that constitute at least a part of a circuit for controlling the driving of a motor. The MCU 12 includes a communication timing determination unit 121 that determines whether it is the timing to execute communication between the MCU 12 and the pre-driver 13 and outputs a communication verification command when it is determined that it is the timing to execute communication between the MCU 12 and the pre-driver 13. When the communication verification command is input, the communication amount required for writing the settings of the pre-driver 13 (referred to as a "write communication amount") is compared with the communication amount required for reading the current settings of the pre-driver 13 (referred to as a "read communication amount"), and determines that the read communication amount is greater than the write communication amount. the communication volume comparison unit 123 which outputs a communication execution command when the read communication volume is less than the write communication volume, and outputs a read execution command to read out the current setting contents of the pre-driver 13 when the read communication volume is less than the write communication volume; a setting content determination unit 124 which determines whether the current setting contents of the pre-driver 13 are normal or not, and outputs a communication execution command when the current setting contents of the pre-driver 13 are abnormal; and a communication unit 122 which executes communication between the MCU 12 and the pre-driver 13 to read out the current setting of the pre-driver 13 when the read execution command is input, and executes communication between the MCU 12 and the pre-driver 13 to write the setting of the pre-driver 13 when the communication execution command is input.

[0061] Further, the communication method in the motor control device according to the third embodiment is a method executed in the motor control device including the MCU 12 and the pre-driver 13, and includes a step of judging whether it is the timing to execute communication between the MCU 12 and the pre-driver 13, steps S2 and S3 of comparing the amount of communication required to write the settings of the pre-driver 13 (i.e., the write communication amount) with the amount of communication required to read the current settings of the pre-driver 13 (i.e., the read communication amount) when it is judged that it is the timing to execute communication between the MCU 12 and the pre-driver 13 (step S1), and steps S2 and S3 of comparing the amount of communication required to read the current settings of the pre-driver 13 (i.e., the read communication amount) when the read communication amount is greater than the write communication amount (step S3: No). The method includes step S4 of executing communication between the MCU 12 and the pre-driver 13 to write the settings of the pre-driver 13, step S5 of executing communication between the MCU 12 and the pre-driver 13 to read out the current settings of the pre-driver 13 if the amount of read communication is less than the amount of write communication (step S3: Yes), step S6 of determining whether the contents of the read out current settings of the pre-driver 13 are normal or not, and step S7 of executing communication between the MCU 12 and the pre-driver 13 to write the settings of the pre-driver 13 if the contents of the read out current settings of the pre-driver 13 are abnormal (step S6: No).

[0062] In this embodiment, the timing for executing communication is limited as in the above embodiment 1, and unnecessary communication with a large amount of communication is prohibited as in the above embodiment 2. The configuration and concepts related to limiting the timing for executing communication are common to embodiment 1, and the configuration and concepts related to prohibiting unnecessary communication with a large amount of communication are common to embodiment 2. Therefore, explanations of configurations and concepts common to and equivalent to embodiment 1 and embodiment 2 will be omitted as appropriate.

[0063] In this embodiment, when a stop command for the three-phase AC motor 20 (specifically, an electrical signal equivalent to a stop command) is input from the ECU 30, which is a higher-level control device of the MCU 12 and the pre-driver 13, to the MCU 12, a verification is performed as to whether or not to execute communication between the MCU 12 and the pre-driver 13, and based on the result of the verification, communication between the MCU 12 and the pre-driver 13 is executed as necessary, and settings are written from the MCU 12 to the pre-driver 13.

[0064] Specifically, first, a command to stop the three-phase AC motor 20 is input from the ECU 30 to the communication timing judgment unit 121 of the MCU 12 (step S1), and then a communication verification command is output from the communication timing judgment unit 121 and input to the communication amount comparison unit 123 of the MCU 12. The communication amount comparison unit 123 acquires the communication amount required to write the settings of the pre-driver 13 (i.e., the write communication amount) and the communication amount required to read the current settings (register) of the pre-driver 13 (i.e., the read communication amount) (step S2).

[0065] Regarding the process of step S1, the timing at which the communication verification command is output (in other words, the trigger, the timing at which the communication between the MCU 12 and the pre-driver 13 is executed as necessary) is not limited to the timing at which the stop command for the three-phase AC motor 20 is issued from the ECU 30, and may be any timing at which electromagnetic noise accompanying the communication is not disturbed even if it is emitted. Specifically, the output of the communication verification command may be executed at a timing that avoids the noise caused by the communication between the MCU 12 and the pre-driver 13 competing with the noise caused by another factor. In other words, the output of the communication verification command is executed at a timing that does not overlap with the timing at which noise occurs due to a factor other than the communication between the MCU 12 and the pre-driver 13. That is, the communication timing determination unit 121 of the MCU 12 determines that the timing at which the communication between the MCU 12 and the pre-driver 13 is executed is the timing at which the communication between the MCU 12 and the pre-driver 13 is executed, which does not overlap with the timing at which noise occurs due to a factor other than the communication between the MCU 12 and the pre-driver 13.

[0066] In this embodiment, since noise caused by the pre-driver 13 occurs while the three-phase AC motor 20 is being driven, output of a communication verification command (and thus communication between the MCU 12 and the pre-driver 13) is not executed to avoid conflict with the noise, and since there is no noise caused by the pre-driver 13 while the three-phase AC motor 20 is stopped, output of the communication verification command is executed. Then, the communication timing determination unit 121 of the MCU 12 determines the timing when the ECU 30 issues a stop command for the three-phase AC motor 20 as the timing to output a verification command (and thus execute communication between the MCU 12 and the pre-driver 13 as necessary).

[0067] Furthermore, when the circuit (particularly, the combination of MCU 12 and an IC (i.e., an IC corresponding to pre-driver 13 in this embodiment) that communicates with the MCU 12) controls other mechanisms or devices, the output of the communication verification command (and thus the communication between MCU 12 and the IC) is executed at a timing that does not cause any problems even if electromagnetic noise associated with the communication is emitted, depending on each mechanism or device to be controlled, that is, at a timing that avoids noise caused by communication between MCU 12 and the IC competing with noise caused by other factors, in other words, at a timing that does not overlap with the timing when noise is generated due to factors other than the communication between MCU 12 and the IC.

[0068] Furthermore, with regard to the processing of step S2, similar to the configuration described in relation to the above-mentioned embodiment 2, the write communication volume and read communication volume in the communication between the MCU 12 and the pre-driver 13, which are determined and understood during the design stage of the motor control device 10, may be pre-stored, for example, in a memory within the MCU 12, and the stored write communication volume and read communication volume may be read as the processing of step S2.

[0069] Next, the communication traffic comparison unit 123 of the MCU 12 compares the write communication traffic and the read communication traffic acquired in step S2, and determines whether the read communication traffic is smaller than the write communication traffic (step S3).

[0070] With regard to the processing of step S3, similarly to the configuration described in relation to the above-mentioned embodiment 2, the magnitude relationship between the write communication amount and the read communication amount in the communication between the MCU 12 and the pre-driver 13, which is determined and understood in the design stage of the motor control device 10, may be stored in advance, for example, in a memory in the MCU 12, and this stored magnitude relationship may be read in as the processing of step S3. Taking this into consideration, the processing of the above-mentioned step S2 and the processing of this step S3 may be executed substantially as a single processing.

[0071] Then, when the read communication amount is larger than the write communication amount (step S3: No), a communication execution command is output from the communication amount comparison unit 123 of the MCU 12 and input to the communication unit 122 of the MCU 12, and the communication unit 122 executes communication between the MCU 12 and the pre-driver 13 to write the setting of the pre-driver 13 (step S4). This ends the communication between the MCU 12 and the pre-driver 13 corresponding to the input of one stop command (step S1). Then, until the ECU 30 next issues a stop command for the three-phase AC motor 20 (after the ECU 30 issues a drive command for the three-phase AC motor 20), communication related to writing the setting of the pre-driver 13 is not executed between the MCU 12 and the pre-driver 13 (see FIG. 8A).

[0072] On the other hand, if the read communication amount is less than the write communication amount (step S3: Yes), a read execution command is output from the communication amount comparison unit 123 of the MCU 12 and input to the communication unit 122 of the MCU 12, and the communication unit 122 executes communication between the MCU 12 and the pre-driver 13 to read the current setting of the pre-driver 13 (step S5). Then, the read content of the current setting of the pre-driver 13 is transmitted to the setting content determination unit 124 of the MCU 12.

[0073] Then, the setting content determination unit 124 of the MCU 12 determines whether the read setting content is normal or not (step S6). For example, when the register value (specifically, 1 or 0) matches the value that should be set in the current state, the setting content determination unit 124 determines that the read setting content is normal, and when the register value does not match the value that should be set in the current state, the setting content determination unit 124 determines that the read setting content is abnormal.

[0074] Specifically, for example, the setting content determination unit 124 may determine whether the read setting content is normal based on whether the content set for the pre-driver 13 at the time of power-on is retained as is. Note that if a malfunction or error occurs in the pre-driver 13, the content set for the pre-driver 13 at the time of power-on changes. For example, if there is no abnormality in the power supply voltage of the MCU 12 but the power supply voltage of the pre-driver 13 fluctuates, the pre-driver 13 is reset, and the content set for the pre-driver 13 at the time of power-on is reset and changed.

[0075] In addition, it may be possible to determine whether the contents of the settings that have been read out are normal or not based on a comparison with appropriate contents (in other words, contents that should be set) at each point in time when the system is in operation.

[0076] If the read setting contents are abnormal (step S6: No), a communication execution command is output from the setting content determination unit 124 of the MCU 12 and input to the communication unit 122 of the MCU 12, and the communication unit 122 executes communication between the MCU 12 and the pre-driver 13 to write the setting of the pre-driver 13 (step S7). This ends the communication between the MCU 12 and the pre-driver 13 corresponding to the input of one stop command (step S1). Then, until the ECU 30 next issues a stop command for the three-phase AC motor 20 (after the ECU 30 issues a drive command for the three-phase AC motor 20), communication related to writing the setting of the pre-driver 13 is not executed between the MCU 12 and the pre-driver 13 (see FIG. 8B).

[0077] On the other hand, if the contents of the read setting are normal (step S6: Yes), communication between the MCU 12 and the pre-driver 13 for writing the setting of the pre-driver 13 is not executed, and the communication between the MCU 12 and the pre-driver 13 corresponding to the input of one stop command (step S1) ends. Then, until the ECU 30 next issues a stop command for the three-phase AC motor 20 (after the ECU 30 issues a drive command for the three-phase AC motor 20), communication related to writing the setting of the pre-driver 13 is not executed between the MCU 12 and the pre-driver 13 (see FIG. 8B).

[0078] (Action and effect) According to the motor control device 10 and the communication method in the motor control device relating to the embodiments (specifically, embodiments 1 to 3), the timing for executing communication is limited and unnecessary communication with a large amount of communication is prohibited, thereby reducing the frequency of noise oscillation and limiting the circumstances in which noise oscillation occurs, making it possible to reduce noise oscillation due to communication on the same system, and ultimately reducing the occurrence of adverse effects on electronic devices due to electromagnetic interference.

[0079] The above describes an embodiment of the present invention, but the specific configuration of the present invention is not limited to the above embodiment, and the present invention also includes embodiments in which modifications and changes are made to the above embodiment without departing from the gist of the present invention.

[0080] For example, in the above embodiment, the motor control device 10 is configured as a mechanism for controlling the drive of the three-phase AC motor 20 mounted on a vehicle (in other words, the MCU 12 and the pre-driver 13 configure at least a part of a circuit for controlling the drive of the motor), and communication is performed between the MCU 12 and the pre-driver 13, but the control target of the device according to the present invention is not limited to a motor, and the communication partner of the MCU 12 is not limited to the pre-driver 13. In other words, the communication partner with the MCU 12 may be any IC.

[0081] In the above embodiment, the MCU 12 and the pre-driver 13 (i.e., one IC) communicate with each other, but the number of ICs communicating with the MCU 12 is not limited to one, and may be two or more. When the number of ICs communicating with the MCU 12 is two or more, in the process of steps S1 and S2 in the second embodiment and the process of steps S2 and S3 in the third embodiment, the communication amount is acquired for each IC with which the MCU 12 communicates (note that the write communication amount and the read communication amount stored in the memory in the MCU 12 may be read) and the communication amounts are compared (note that the magnitude relationship between the write communication amount and the read communication amount stored in the memory in the MCU 12 may be read).

[0082] In addition, in the above embodiment, SPI communication is performed between the MCU 12 and the pre-driver 13, but the type and standard of communication performed between the MCU 12 and the pre-driver 13 is not limited to SPI communication, and other types and standards of communication may be performed between the MCU 12 and the pre-driver 13. [Explanation of symbols]

[0083] 10 Motor control device 11 Power circuit 12 MCU 121 Communication timing judgment unit 122 Communications Department 123 Communication volume comparison section 124 Setting content judgment section 13 Pre-driver 14 FET bridge 20 Three-phase AC motor 30 ECU

Claims

1. Including an MCU and an IC, The MCU includes: a communication timing determination unit that determines whether or not it is time to execute communication between the MCU and the IC, and outputs a communication execution command when it is determined that it is time to execute communication between the MCU and the IC; a communication unit that executes communication between the MCU and the IC when the communication execution command is input, The communication timing determination unit determines, as a timing for executing communication between the MCU and the IC, a timing that does not overlap with a timing when noise occurs due to a factor other than the communication between the MCU and the IC. A control device comprising:

2. The MCU and the IC constitute at least a part of a circuit for controlling the driving of a motor, The timing that does not overlap with the timing at which noise occurs due to a factor other than the communication between the MCU and the IC is the timing at which a stop command for the motor is input from an ECU, which is a host control device for the MCU and the IC, to the communication timing determination unit of the MCU. The control device according to claim 1 .

3. Including an MCU and an IC, The MCU includes: a communication volume comparison unit which compares the volume of communication required to write the settings of the IC (referred to as the "write communication volume") with the volume of communication required to read the current settings of the IC (referred to as the "read communication volume"), and outputs a communication execution command if the read communication volume is greater than the write communication volume, and outputs a read execution command to read the contents of the current settings of the IC if the read communication volume is less than the write communication volume; a setting content determination unit that determines whether the read current setting content of the IC is normal or not, and outputs a communication execution command when the current setting content of the IC is abnormal; a communication unit which, when the read execution command is input, executes communication between the MCU and the IC to read the current settings of the IC, and, when the communication execution command is input, executes communication between the MCU and the IC to write the settings of the IC. A control device comprising:

4. The MCU and the IC constitute at least a part of a circuit for controlling the driving of a motor.

4. The control device according to claim 3.

5. A method carried out in a control device including an MCU and an IC, comprising: determining whether it is time to execute communication between the MCU and the IC; and executing communication between the MCU and the IC when it is determined that it is time to execute communication between the MCU and the IC; determining a timing that does not overlap with a timing at which noise occurs due to a factor other than the communication between the MCU and the IC as a timing for executing the communication between the MCU and the IC; A communication method in a control device.

6. The MCU and the IC constitute at least a part of a circuit for controlling the driving of a motor, The timing that does not overlap with the timing at which noise occurs due to a factor other than the communication between the MCU and the IC is the timing at which a stop command for the motor is input to the MCU from an ECU, which is a host control device for the MCU and the IC.

6. The communication method in the control device according to claim 5.

7. A method carried out in a control device including an MCU and an IC, comprising: comparing the amount of communication required to write the settings of the IC (referred to as "write communication amount") with the amount of communication required to read the current settings of the IC (referred to as "read communication amount"); executing communication between the MCU and the IC for writing settings of the IC when the read traffic is greater than the write traffic; executing communication between the MCU and the IC to read a current setting of the IC when the read communication amount is less than the write communication amount; A step of determining whether the contents of the current settings of the IC that have been read out are normal or not; and executing communication between the MCU and the IC to write the settings of the IC when the contents of the current settings of the IC that have been read out are abnormal. A communication method in a control device.

8. The MCU and the IC constitute at least a part of a circuit for controlling the driving of a motor.

8. The communication method in the control device according to claim 7.

Citation Information

Patent Citations

  • Communication controller and washing machine

    JP1999027984A

  • Data transmission device

    JP2008028641A

  • Power tool and its management system

    JP2008213068A

  • Failure notification system, electric tool, and communication terminal

    WO2015118900A1

  • Electronic control device for vehicle

    JP2014089672A