Motor driver chip and motor driver device

By designing a motor driver chip and reusing clock and data signal buses, the number of output ports of the microcontroller is reduced, solving the problems of high system complexity and cost in existing technologies, and achieving the effects of simplified wiring and cost reduction.

CN117879398BActive Publication Date: 2024-09-27SHENZHEN LICHUANG MICROELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410054160.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-13
Publication Date
2024-09-27
Estimated Expiration
2044-01-13

AI Technical Summary

Technical Problem

In the existing technology, when the main control chip drives multiple motors, multiple output ports and signal lines need to be set up, which leads to complex system design, increased cost, and complex circuit board wiring.

Method used

By employing a motor driver chip and multiplexing the clock signal bus and data signal bus, the number of output ports of the microcontroller is reduced. Multiple motors are driven through a decoder and a logic controller, and protection is provided by an exception handling module and a temperature detection module.

Benefits of technology

It reduces the complexity and production cost of microcontrollers, simplifies circuit board wiring, and improves the reliability and security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117879398B
    Figure CN117879398B
Patent Text Reader

Abstract

This application provides a motor drive chip and device, relating to the field of control technology, including a signal input port, a decoder, a driver, and a drive signal output port. The signal input port receives a serial data signal from the microcontroller's data signal output based on the clock signal output from the microcontroller's clock signal output terminal, and provides the received serial data signal to the decoder. The decoder extracts address data from the address field of the serial data signal, compares the address bits of the driver chip with the address data, and when the address bits match, extracts function data from the function field of the serial data signal and provides the function data to the driver. Based on the function data, the driver sends a drive signal to at least one motor through the drive signal output port to drive at least one motor to operate. Implementing the technical solution provided in this application can reduce the complexity of the microcontroller, thereby reducing the cost of the motor drive device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of control technology, and in particular to a motor drive chip and a motor drive device. Background Art

[0002] With the development of electronic industry technology and the widespread popularity of various automated electronic products (such as electric toys, small household appliances, etc.), various motor applications are becoming more and more widespread, and the corresponding driver chips are also diverse.

[0003] In the prior art, in order to control the forward and reverse rotation of a motor, the main control chip used to drive the motor usually needs two control signal lines to connect to the motor. However, some electric products usually have multiple motors. When a main control chip drives multiple motors, for example, N motors, 2N control signal lines need to be set between the active chip and the N motors. This requires more ports to be set on the main control chip, which makes the system design of the main control chip complicated and increases the cost of the main control chip; in addition, too many signal lines make the signal lines between the main control chip and multiple drive motors complicated, which increases the complexity of the circuit board layout and wiring, thereby increasing production costs. Summary of the invention

[0004] The motor driving chip and the motor driving device provided in the embodiments of the present application can reduce the complexity of the microcontroller, thereby reducing the cost of the motor driving device.

[0005] In the first aspect, an embodiment of the present application provides a motor driver chip, comprising: a signal input port, a decoder, a logic controller and a drive signal output port; the signal input port is connected to a clock signal output terminal and a data signal output terminal in a microcontroller, and the drive signal output port is connected to at least one motor; the signal input port is used to receive a serial data signal from the data signal output terminal based on a clock signal output by the clock signal output terminal, and provide the received serial data signal to the decoder; the decoder extracts address data from the address field of the serial data signal, compares the address bit of the driver chip with the address data, and when the address bit is the same as the address data, extracts function data from the function field of the serial data signal, and provides the function data to the logic controller; the logic controller sends a drive signal to at least one motor through the drive signal output port based on the function data to drive at least one motor to work.

[0006] The motor driver chip provided in the embodiment of the present application can be connected to multiple motors; when the motor driver chip includes multiple motors, the multiple motor driver chips reuse the same clock signal bus and data signal bus to receive the clock signal and serial data signal from the microcontroller. That is to say, the motor driver chip provided in the embodiment of the present application can make the microcontroller only need to set the two output ports of the clock signal output end and the data signal output end, and only need to set the two signal buses of the clock signal bus and the data signal bus on the circuit board to realize the driving of multiple (for example, 6) motors. In the prior art, when it is necessary to drive multiple motors, the main control chip needs to set multiple output ports, and the circuit board needs to set multiple signal lines. The number of output ports of the main control chip and the number of signal lines on the circuit board are both twice the number of motors to be driven; for example, when it is necessary to drive 6 motors, the main control chip in the prior art needs to set 12 output ports, and the main control chip needs to be connected to the motor through 12 signal lines, thereby greatly increasing the number of ports of the main control chip and the number of signal lines on the circuit board. Therefore, compared with the prior art, the motor driver chip provided in the embodiment of the present application can reduce the number of output ports of the microcontroller, thereby reducing the complexity of the microcontroller, and further reducing the design cost and production cost of the microcontroller. In addition, the motor driver chip provided in the embodiment of the present application can also reduce the number of signal lines between the microcontroller and the motor on the circuit board, and can also reduce the complexity of wiring.

[0007] In one possible implementation, the decoder is specifically used to: check the frame format of the serial data signal, wherein the frame format includes a start field, an address field, a function field and an end field, and the check includes at least one of the following: checking whether the number of bits included in each field in the frame format is a preset number; checking whether the value corresponding to the valid bit in each field in the frame format is a preset value; when the frame format check of the serial data signal is successful, comparing the address bit with the address data in the serial data signal.

[0008] In a possible implementation, the decoder is further configured to discard the serial data signal when it is detected that the address bit is different from the address data in the serial data signal.

[0009] In one possible implementation, the drive signal output port includes a first drive signal output port and a second drive signal output port, at least one motor includes a first motor, and the first drive signal output port and the second drive signal output port are both connected to the first motor; the functional data is used to indicate a signal output by the first drive signal output port and a signal output by the second drive signal output port.

[0010] In one possible implementation, the drive signal output port also includes a third drive signal output port and a fourth drive signal output port, at least one motor also includes a second motor, and the third drive signal output port and the fourth drive signal output port are both connected to the second motor; the functional data is also used to indicate the signal output by the third drive signal output port and the signal output by the fourth drive signal output port.

[0011] In one possible implementation, the motor driver chip also includes an exception handling module, which is used to: detect whether the signal input port receives data within a preset period; when the signal input port does not receive data within the preset period, control at least one motor to stop working by driving the signal output port.

[0012] By setting an exception handling module, the embodiment of the present application can promptly control the motor to stop moving when an abnormality occurs in the microcontroller (such as power failure or program execution abnormality), so as to prevent the motor from continuing to move based on the signal transmitted by the logic controller 13. In a possible implementation, the exception handling module may include a numerical comparator and a counter.

[0013] In one possible implementation, the motor driver chip also includes a temperature detection module, which is used to: detect whether the temperature of the motor driver chip is greater than or equal to a preset temperature; when the temperature of the motor driver chip is greater than or equal to the preset temperature, control at least one motor to stop working through the drive signal output port.

[0014] Since the motor generates heat when it is running, by setting a temperature detection module, the heat generated by the motor can be monitored in real time, so as to prevent the motor temperature from being too high and burning the motor driver chip, thereby protecting the motor driver chip from overheating. In a possible implementation, the temperature detection module may include a comparator and an amplifier.

[0015] In a possible implementation, the motor driver chip further includes an address port, and the address port is used to set the address bit of the driver chip.

[0016] In one possible implementation, the signal input port includes multiple signal input ports; the motor driving chip includes a first side and a second side that are relatively arranged, the driving signal output port is arranged on a side close to the first side, and multiple signal input ports and address ports are arranged on a side close to the second side; wherein the multiple signal input ports and address ports are arranged alternately at intervals.

[0017] In a second aspect, an embodiment of the present application provides a motor drive device, which includes: a microcontroller and a motor drive chip as described in the first aspect; wherein the signal input port of the motor drive chip includes a clock signal input port and a data signal input port; the clock signal input port is connected to the clock signal output terminal of the microcontroller through a clock signal bus; the data signal input port is connected to the data signal output terminal of the microcontroller through a data signal bus. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a schematic diagram of an application scenario of the motor drive device provided in an embodiment of the present application;

[0019] Figure 2 is a schematic diagram of a chip architecture of a motor driver chip provided in an embodiment of the present application;

[0020] Figure 3 is another chip architecture schematic diagram of the motor driver chip provided in the embodiment of the present application;

[0021] Figure 4 It is a schematic diagram of a port arrangement structure of a motor driver chip provided in an embodiment of the present application;

[0022] Figure 5 is a schematic diagram of a packaging structure of a motor driver chip provided in an embodiment of the present application;

[0023] Figure 6 It is a schematic diagram of a packaging structure of a motor driver chip provided in an embodiment of the present application that is compatible with a common control mode. DETAILED DESCRIPTION

[0024] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0025] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0026] In the description of the embodiments of the present application, the term "plurality" means two or more. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0027] Please refer to Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an application scenario of the motor drive device 100 provided in an embodiment of the present application. Figure 1 The scene shown includes a motor driving device 100 and a motor, and the motor driving device 100 drives the motor to operate. Figure 1 As shown, the motor drive device 100 includes a motor drive chip and a microcontroller (MCU, Micro Control Unit) C. The microcontroller can also be called a main control chip. In the embodiment of the present application, the number of motor drive chips included in the motor drive device 100 is not specifically limited, and can include one, two or more, according to the needs of the actual scene. Figure 1 The figure schematically shows four motor driver chips, namely, motor driver chip 1, motor driver chip 2, motor driver chip 3 and motor driver chip 4. In addition, in the embodiment of the present application, one motor driver chip can drive one or more motors, and the number of motors driven by each motor driver chip is not specifically limited, and can be set according to the needs of the actual scene. Figure 1 The figure schematically shows that the motor driver chip 1 drives two motors, motor M1 and motor M2, the motor driver chip 2 drives one motor, motor M3, the motor driver chip 3 drives one motor, motor M4, and the motor driver chip 4 drives two motors, motor M5 and motor M6. In the embodiment of the present application, when the motor driver device 100 includes multiple motor driver chips, the multiple motor driver chips may have the same structure.

[0028] In an embodiment of the present application, the microcontroller C may include a clock signal output terminal co and a data signal output terminal do. The motor driver chip includes a signal input port and a drive signal output port, wherein the signal input port includes a clock signal input port ci and a data signal input port di. The clock signal input port ci of each motor driver chip is connected to the clock signal output terminal co in the microcontroller C through a clock signal bus, and the data signal input port di of each motor driver chip is connected to the data signal output terminal do in the microcontroller C through a data signal bus. The drive signal output port of each motor driver chip is connected to the motor. The microcontroller C may include, but is not limited to, various control devices such as PLC (Programmable Logic Controller), FPGA (Field-Programmable Gate Array), and single-chip microcomputer.

[0029] In the embodiment of the present application, the motor driver chip receives the serial data signal through the data signal input port di based on the clock signal received by the clock signal input port ci. Then, the motor driver chip compares the address bits pre-set in the motor driver chip with the address data of the address field in the serial data signal. When the address bits in the motor driver chip are the same as the address data of the address field in the serial data signal, the motor driver chip sends the drive signal to the connected motor through the drive signal output port based on the function data of the function field in the serial data signal.

[0030] from Figure 1 It can be seen that the motor drive device 100 provided in the embodiment of the present application, by setting the motor drive chip, allows each motor drive chip to be connected to multiple motors; when the motor drive chip includes multiple, the multiple motor drive chips reuse the same clock signal bus and data signal bus to receive the clock signal and serial data signal from the microcontroller. That is to say, in the motor drive device 100 provided in the embodiment of the present application, the microcontroller C only needs to set the two output ports of the clock signal output terminal co and the data signal output terminal do, and only the two signal buses of the clock signal bus and the data signal bus need to be set on the circuit board, so as to realize the control of multiple (for example Figure 1 When multiple motors need to be driven in the prior art, the main control chip needs to be provided with multiple output ports, and multiple signal lines need to be provided on the circuit board. The number of output ports of the main control chip and the number of signal lines on the circuit board are both twice the number of motors to be driven. For example, when six motors need to be driven, the main control chip in the prior art needs to be provided with 12 output ports, and the main control chip needs to be connected to the motors through 12 signal lines, thereby greatly increasing the number of ports of the main control chip and the number of signal lines on the circuit board. For another example Figure 6 In the ordinary motor driving mode shown, the motor driving chip is provided with four input ports INA~IND, and the microcontroller C needs to be provided with four output ports. The microcontroller C is connected to the motor driving chip through four data signal lines to drive two motors; while in the embodiment of the present application, when driving two motors, the microcontroller C only needs to be provided with two output terminals, and the two signal lines, a data signal line and a clock signal line, are connected to the motor driving chip to drive two motors. Therefore, compared with the prior art, the motor driving device 100 provided in the embodiment of the present application can reduce the number of output ports of the microcontroller C, thereby reducing the complexity of the microcontroller C, and further reducing the design cost and production cost of the microcontroller C. In addition, the motor driving device 100 provided in the embodiment of the present application can also reduce the number of signal lines between the microcontroller C and the motor on the circuit board, and can also reduce the complexity of wiring.

[0031] based on Figure 1 The motor drive device 100 shown below is Figure 1 As an example, the motor driver chip 1 shown in FIG. Figure 1 and Figure 2 , which describes the structure and working principle of the motor driver chip in more detail. Please continue to refer to Figure 2 , Figure 2 FIG. 2 is a schematic diagram of a chip architecture of a motor driver chip 200 provided in an embodiment of the present application. Figure 2 As shown, the motor driver chip 200 includes a signal input port 10, the signal input port 10 includes a clock signal input port ci and a data signal input port di, and the signal input port 10 is connected to the clock signal output terminal co and the data signal output terminal do of the microcontroller C. In addition, the motor driver chip 200 also includes an interface buffer 11, a decoder 12, a logic controller 13 and a drive signal output port 14. The interface buffer 11 is arranged between the signal input port 10 and the decoder 12, and the logic controller 13 is arranged between the decoder 12 and the drive signal output port 14. The signal input port 10 receives a serial data signal from the microcontroller C based on the clock signal sent by the microcontroller C. The signal input port 10 stores the received serial data signal in the interface buffer 11 to buffer the received serial data signal.

[0032] The decoder 12 decodes the serial data signal buffered by the interface buffer 11 according to the preset frame format. Specifically, the frame format of the serial data signal may include a start field, an address field, a function field, and an end field. The decoder 12 may check the frame format of the serial data signal, and perform subsequent actions after the check is successful. If the check is unsuccessful, the serial data signal is discarded. The check of the frame format may include at least one of the following: checking whether the number of bits included in each field is a preset number; checking whether the value corresponding to the valid bit (also referred to as the check bit) in each field is a preset value. For example, assuming that the number of bits of the pre-agreed start field is six bits, the second and third bits of the six bits are agreed to be check bits, and the values ​​of the second and third bits are agreed to be "00". When the decoder 12 checks the address field, it may check whether the bits included in the address field are six bits, and whether the second and third bits of the six bits are "00". It should be noted that the decoder 12 needs to check each field. When all fields are correct, it indicates that the frame format check is successful, that is, the serial data signal is a valid signal. When the decoder 12 successfully checks the frame format, the address data in the address field can be further compared with the address bit of the motor driver chip 200 set in advance to determine whether the address data in the address field is the same as the address bit of the motor driver chip 200. When the address data in the address field is different from the address bit of the motor driver chip 200, the serial data signal can be discarded; when the address data in the address field is the same as the address bit of the motor driver chip 200, the function data corresponding to the function field is extracted, and the function data is provided to the logic controller 13.

[0033] The logic controller 13 generates a control signal based on the function data corresponding to the function field in the serial data signal and sends it to the motor through the drive signal output port 14 to control the motor. The function data is used to indicate the signal output by the drive signal output port, that is, the function data is used to indicate which motor connected to the motor driver chip 200 is controlled to work and the working direction of the motor. Assume that the function data includes four bits in addition to the check bit. Among the four bits, two are used to indicate the control of motor M1, and the other two are used to control the operation of motor M2; the two-bit control is: 00 corresponds to motor stop, 10 corresponds to motor forward rotation, 01 corresponds to motor reverse rotation, and 11 corresponds to motor braking.

[0034] In addition, in the embodiment of the present application, the number of ports of the drive signal output port 14 may include four, of which two output ports o1 and o2 are connected to the motor M1 through two signal lines respectively, and the other two output ports o3 and o4 are connected to the motor M2 through two signal lines. Then the function data is used to indicate the signal outputted by o1~o4 in the drive signal output port 14. Assuming that the function data indicates to control the motor M2 to work in the forward direction, the signal outputted by the logic controller 13 through o1~o4 in the drive signal output port 14 may be, for example, "0010".

[0035] Please continue to refer to Figure 3 , Figure 3 is another chip architecture diagram of the motor driver chip provided in the embodiment of the present application. Figure 2 The motor driver chip 200 shown is different in that Figure 3 The motor driver chip 300 shown includes Figure 2 In addition to the structure of the motor driver chip 200 shown, it also includes an exception handling module 15, an internal reference module 16, an internal clock module 17 and a temperature detection module 18. Among them, the exception handling module 15 is connected to the signal input port 10 and the drive signal output port 14. The exception handling module 15 is used to detect whether the signal input port 10 receives data within a preset period. When the signal input port 10 does not receive data within the preset period, the motor connected to the motor driver chip 300 can be controlled to stop working through the drive signal output port 14. Assume that "00" represents the control of motor M1 and motor M2 to stop working. When the signal input port 10 does not receive a serial data signal within a preset time period, the exception handling module 15 can output "0000" through o1~o4 in the drive signal output port 14 to control motor M1 and motor M2 to stop working. By setting the exception handling module 15, the embodiment of the present application can timely control the motor to stop moving when an abnormality occurs in the microcontroller C (such as power failure or program execution abnormality), so as to avoid the motor from continuing to move based on the signal transmitted by the logic controller 13. In a possible implementation, the exception handling module 15 may include a numerical comparator and a counter.

[0036] The internal reference module 16 is connected to the internal clock module 17 and the temperature detection module 18 respectively. The internal clock module 17 is arranged between the signal input port 10 and the internal reference module 16; the temperature detection module 18 is arranged between the internal reference module 16 and the drive signal output port 14. The internal reference module 16 can provide reference data and reference signals inside the motor driver chip 300. For example, the internal reference module 16 can provide a reference clock signal. In addition, the internal reference module 16 can also store a preset temperature threshold. The internal reference module 16 can provide a reference clock signal to the internal clock module 17, and the internal clock module 17 calibrates the reference clock signal based on the clock signal sent by the microcontroller C, so that the clock signal of the motor driver chip 300 and the clock signal between the microcontroller C are synchronized, so as to accurately decode the serial data signal based on the clock cycle. In addition, the temperature detection module 18 detects the temperature of the motor driver chip 300 in real time, and compares the detected temperature of the motor driver chip 300 with the preset temperature threshold stored in the internal reference module 16. When the temperature of the motor driver chip 300 is greater than or equal to the preset temperature threshold, the temperature detection module 18 can control the motor connected to the motor driver chip 300 to stop working through the drive signal output port 14. Since the operation of the motor generates heat, by setting the temperature detection module 18, the heat generated by the operation of the motor can be monitored in real time, thereby preventing the motor driver chip 300 from being burned due to excessive motor temperature, and thus overheating protection can be performed on the motor driver chip 300. In a possible implementation, the temperature detection module 18 may include a comparator and an amplifier.

[0037] It should be noted that Figure 3 Schematically shows the case where the motor driver chip 300 includes both the exception handling module 15 and the temperature detection module 18. In other possible implementations, the motor driver chip 300 may include any one of the exception handling module 15 and the temperature detection module 18. For example, the motor driver chip 300 may include only the exception handling module 15 but not the temperature detection module 18; or, the motor driver chip 300 may include only the temperature detection module 18 but not the exception handling module 15.

[0038] Based on the structure of the motor driver chip shown in any of the above embodiments, the motor driver chip described in the embodiment of the present application may further include an address port, which is used to set the address bit of the motor driver chip. Figure 4 , Figure 4 A schematic diagram of a port arrangement structure 400 of a motor driver chip provided in an embodiment of the present application is shown in FIG. Figure 4 .like Figure 4As shown, the motor driver chip also includes an address port a1 and an address port a2, which together determine the address bit of the motor driver chip. The address port a1 can be connected to the power supply terminal or the common ground of the motor driver chip, or the address port a1 can be left floating; similarly, the address port a2 can be connected to the power supply terminal or the common ground of the motor driver chip, or the address port a2 can be left floating. For example, assuming Figure 1 The address bit of the motor driver chip 1 shown is "00" and the address bit of the motor driver chip 2 is "01", then the address port a1 and the address port a2 of the motor driver chip 1 are both connected to the common ground of the motor driver chip; the address port a1 of the motor driver chip 2 is connected to the common ground of the motor driver chip, and the address port a2 of the motor driver chip 2 is connected to the power supply terminal of the motor driver chip. It should be noted that in other possible implementations, the motor driver chip may not be provided with an address port, but may be provided with a register, which is used to store the address bit of the motor driver chip. In addition, Figure 4 The number of ports of the motor driving chip shown is for illustration only and is set based on the number of motor driving chips included in the motor driving device. For example, when the motor driving device includes two motor driving chips, the motor driving chip may be provided with one address port.

[0039] In the motor driver chip shown in the embodiment of the present application, the drive signal output port can be set on one side of the motor driver chip, the address port and the signal input port can be set on the other side of the motor driver chip, and the address port and the signal input port can be set alternately. Figure 4 ,like Figure 4 As shown, the motor driver chip includes a first side S1 and a second side S2 that are arranged opposite to each other. The drive signal output ports o1~o4 on the motor driver chip are arranged on a side close to the first side S1; the clock signal input port ci and the data signal input port di in the signal input port 10 of the motor driver chip are both arranged on a side close to the second side S2; the address port a1 and the address port a2 are also arranged on a side close to the second side S2. In addition, the signal input ports and the address ports are arranged alternately; Figure 4 As can be seen from the figure, the address port a1 is arranged between the clock signal input port ci and the data signal input port di; the clock signal input port ci is arranged between the address port a1 and the address port a2. Figure 4The port arrangement structure shown also includes a power supply terminal vdd and a common ground gnd, wherein the drive signal output ports o1-o4 are arranged between the power supply terminal vdd and the common ground gnd; the power supply terminal vdd is arranged between the drive signal output ports o1-o4 and the signal input port 10. The port arrangement structure of the motor driver chip provided in the embodiment of the present application can realize the integration of the motor driver chip on a common single-sided PCB board, and no jumper is required on the single-sided PCB board, thereby simplifying the design and process of the PCB board.

[0040] based on Figure 4 The port arrangement structure 400 of the motor driver chip shown in the figure, the embodiment of the present application further provides a packaging structure based on the motor driver chip. Figure 5 As shown, Figure 5 This is a schematic diagram of a packaging structure of a motor driver chip provided in an embodiment of the present application. Figure 4 and Figure 5 Describe. Figure 5 In the lead frame of the PCB board for packaging the motor driver chip shown, the common ground GND on the PCB board surrounds the first side, the second side and the third side of the motor driver chip, and the power supply terminal VDD on the PCB board is set on the fourth side of the motor driver chip, and the fourth side is not set with an input and output port and is not surrounded by the common ground GND. The power supply terminal VDD on the PCB board is connected to the power supply terminal vdd on the motor driver chip, and the common ground GND on the PCB board is connected to the common ground gnd on the motor driver chip. The input and output ports and the address port on the PCB board are all set on the periphery of the common ground GND. Among them, the output ports OUTA~OUTD are arranged on the side close to the first side S1, and are respectively connected to the drive signal output ports o1~o4 on the motor driver chip in a one-to-one correspondence; the input ports DATA, A1, CLK, and A2 are arranged on the side close to the second side S2, the input port DATA is connected to the data signal input port di of the motor driver chip, the input port A1 is connected to the address port a1 of the motor driver chip, the input port CLK is connected to the clock signal input port ci of the motor driver chip, and the input port A2 is connected to the address port a2 of the motor driver chip.

[0041] It should be noted that the PCB lead frame for packaging the motor driver chip provided in the embodiment of the present application can also be compatible with the motor driving method in the prior art, such as Figure 6 As shown, Figure 6 Schematic diagram of a packaging structure of a compatible universal motor driver chip provided in an embodiment of the present application. Figure 5 The package structure shown is different from Figure 6In the package structure diagram shown, the PCB lead frame includes four input ports INA~IND. When the motor driver chip provided in the embodiment of the present application is used to drive the motor, the input port INA is connected to the data signal input port di of the motor driver chip, the input port INB is connected to the address port a1 of the motor driver chip, the input port INC is connected to the clock signal input port ci of the motor driver chip, and the input port IND is connected to the address port a2 of the motor driver chip; when the motor driver chip in the general technology is used to drive the motor, the microcontroller C needs to set four output ports, and the main control chip is connected to the input ports INA~IND respectively through four data signal lines. Specifically, when compatible with the motor driving method in the prior art, a selector can be set on the motor driver chip. The selector can be set as follows Figure 2 Between the interface buffer 11 and the decoder 12 shown, the output end of the selector is connected to the decoder 12 and the logic controller 13 respectively. When it is necessary to use a traditional four-output port microcontroller to drive two motors, the selector provides the signal transmitted by the signal input port 10 to the logic controller 13, and the logic controller 13 provides the output signal to the motor through the drive signal output port; when it is necessary to use the serial data transmission method provided in the embodiment of the present application to drive the motor, the selector provides the signal transmitted by the signal input port 10 to the decoder 12.

[0042] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.

[0043] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A motor drive device, characterized in that: The invention comprises a microcontroller C and a plurality of motor drive chips connected in parallel to the microcontroller C; wherein each motor drive chip comprises a signal input port, a decoder, a logic controller and a drive signal output port; the drive signal output port of each motor drive chip corresponds to driving and connecting at least one motor, and an address bit is pre-set in each motor drive chip; The signal input port of each motor driving chip includes a clock signal input port ci and a data signal input port di; The clock signal input ports ci of all the motor drive chips are connected to the clock signal output terminal co of the microcontroller C through a clock signal bus, and are used to receive a clock signal based on the output of the clock signal output terminal co; the data signal input ports di of all the motor drive chips are connected to the data signal output terminal do of the microcontroller C through a data signal bus, and are used to receive a serial data signal from the data signal output terminal do of the microcontroller C based on the clock signal sent by the microcontroller C, and store the received serial data signal in an interface buffer, so as to buffer the serial data signal, so as to provide the serial data signal to the decoder; The decoder decodes the serial data signal buffered by the interface buffer according to a preset frame format, extracts address data from the address field of the serial data signal, compares the address bit preset in the driver chip with the extracted address data, and when the address bit is the same as the address data, extracts function data from the function field of the serial data signal, and provides the function data to the logic controller; The logic controller sends a drive signal to the motor of the corresponding drive connection through the drive signal output port based on the function data, so as to drive the motor of the corresponding drive connection to work; When all the motor driver chips receive the serial data signal through the corresponding data signal input port di based on the clock signal received by the corresponding clock signal input port ci; then, the motor driver chip compares the address bit pre-set in the corresponding motor driver chip with the address data of the address field in the serial data signal, and when the address bit in one of the motor driver chips is the same as the address data of the address field in the serial data signal, based on the function data of the function field in one of the serial data signal, one of the motor driver chips sends a drive signal to the corresponding motor connected through its drive signal output port; The microcontroller C is only provided with two output ports, namely, a clock signal output terminal co and a data signal output terminal do, and only two signal buses, namely, the clock signal bus and the data signal bus, are provided on the circuit board, so as to realize driving of multiple motors; The motor driving chip further includes an exception handling module connected to the signal input port and the driving signal output port, and the exception handling module is used to: Detecting whether the signal input port receives the serial data signal within a preset period; When the signal input port does not receive the serial data signal within the preset period, the motor connected to the drive signal output port is controlled to stop working; The decoder is specifically used for: Checking the frame format of the serial data signal, wherein the frame format includes a start field, an address field, a function field, and an end field, and the checking includes: checking whether the number of bits included in each field in the frame format is a preset number; checking whether the value corresponding to the valid bit in each field in the frame format is a preset value; When the frame format check of the serial data signal succeeds, comparing the address bit with the address data; The motor driving chip further includes an internal reference module, an internal clock module and a temperature detection module, wherein the temperature detection module is arranged between the internal reference module and the driving signal output port; the internal reference module provides reference data and reference signals inside the motor driving chip, the internal reference module provides a reference clock signal, the internal reference module stores a preset temperature threshold, the internal reference module provides the reference clock signal to the internal clock module, and the internal clock module calibrates the reference clock signal based on the clock signal sent by the microcontroller C, so that the clock signal of the motor driving chip is synchronized with the clock signal between the microcontroller C; The temperature detection module is used for: Detecting whether the temperature of the motor drive chip is greater than or equal to a preset temperature; When the temperature of the motor driving chip is greater than or equal to a preset temperature, the motor connected to the corresponding drive is controlled to stop working through the driving signal output port.

2. The motor drive device according to claim 1, characterized in that: The decoder is further configured to discard the serial data signal when it is detected that the address bit is different from the address data in the serial data signal.

3. The motor drive device according to claim 1, characterized in that: The drive signal output port includes a first drive signal output port and a second drive signal output port, and the corresponding drive-connected motor includes a first motor, and the first drive signal output port and the second drive signal output port are both connected to the first motor; the functional data is used to indicate the signal output by the first drive signal output port and the signal output by the second drive signal output port.

4. The motor drive device according to claim 3, characterized in that: The drive signal output port also includes a third drive signal output port and a fourth drive signal output port, and the corresponding drive-connected motor also includes a second motor, and the third drive signal output port and the fourth drive signal output port are both connected to the second motor; the functional data is also used to indicate the signal output by the third drive signal output port and the signal output by the fourth drive signal output port.

5. The motor drive device according to claim 1, characterized in that: The motor driving chip further includes an address port, and the address port is used to set the address bit of the driving chip.

6. The motor drive device according to claim 5, characterized in that: The signal input port includes multiple ones; the motor driving chip includes a first side and a second side arranged opposite to each other, the driving signal output port is arranged on a side close to the first side, and the multiple signal input ports and the address ports are arranged on a side close to the second side; wherein the multiple signal input ports and the address ports are arranged alternately at intervals.