Chip over-temperature protection method, main control chip, motor controller and motor system
By writing the temperature threshold into the write-only memory of the main control chip of the motor controller, chip over-temperature protection and temperature recovery are achieved, solving the problem of single shutdown protection and ensuring the normal operation of the motor.
Patent Information
- Application Number
- CN202411493231.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2025-01-14
AI Technical Summary
There is only a unique temperature inside the main control chip of the motor controller and only writes the memory, and the temperature data in the memory cannot be read. Once the temperature is overtempered, it can only provide a single shutdown protection, and there is no ability to restore the temperature.
Confirm whether it is over-temperature by writing the first temperature threshold into the write-only memory, perform over-temperature processing in response to the over-temperature, and write the second temperature threshold into the memory to wait for the temperature to recover. When the temperature recovers, write back the first temperature threshold to continue. Over temperature protection.
It is possible to effectively protect the chip and restore the normal operation of the motor without reading the memory temperature data, avoiding the interruption of motor operation caused by shutdown protection.
Smart Images

Figure CN119315489A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip protection, and in particular to an over-temperature protection method for a main control chip of a motor, a main control chip of the motor, a motor controller and a motor system. Background Art
[0002] With the continuous development of science and technology, the development of home appliance technology has become more and more mature. Motors in home appliances, such as permanent magnet synchronous motors, are becoming more and more popular with their advantages such as high efficiency and low noise. The stability and reliability of the overtemperature protection method are the key safety guarantees for the normal operation of the motor. The main protection objects of the motor overtemperature protection are the chip, metal-oxide semiconductor MOS and the motor itself. For low-voltage motors, if the heat dissipation conditions are not sufficient, the temperature rise of the chip will be higher than the MOS or module temperature, so it is necessary to protect the temperature of the controller chip.
[0003] For the chip, the temperature control in the program is actually an operation on the register. However, the registers are divided into readable and writable and write-only. For readable and writable registers, the temperature can be compared by reading the temperature, but for only one write-only register, protection can only be performed by setting an over-temperature point. In addition, some chips do not lead out the interface for external detection. There is only one parameter related to the temperature in the program, and generally a temperature is set. Once the protection is triggered, the chip's peripherals will be stopped directly and will not be restored. Only by re-powering on can the chip resume normal operation. This shutdown protection is not desirable for the motor, which needs to be able to resume work after the temperature is restored.
[0004] There is no effective solution to the above problems yet. Summary of the invention
[0005] In view of this, the present application proposes an over-temperature protection method for the main control chip of a motor, the main control chip of the motor, a motor controller and a motor system, wherein the main control chip has only one write-only memory for writing temperature data, and first writes a first temperature threshold to the write-only memory to confirm whether it is over-temperature, performs over-temperature processing in response to over-temperature, writes a second temperature threshold to the write-only memory after the over-temperature processing to wait for the temperature to be restored, and when it is confirmed that the temperature has been restored, writes the first temperature threshold back to the write-only memory to continue over-temperature protection. The solution of the present application solves the problem that when there is only a unique temperature write-only memory inside the main control chip of the motor controller, the temperature data in the memory cannot be read because the relevant interface is not brought out, and once over-temperature occurs, there is only a single shutdown protection and no ability to restore the temperature.
[0006] According to one aspect of the present application, there is provided an over-temperature protection method for a main control chip of a motor, wherein the chip has only one write-only memory for writing temperature data, and the method comprises:
[0007] Writing a first temperature threshold into the write-only memory, wherein when the temperature of the chip reaches or exceeds the first temperature threshold, it is determined that the chip is overheated;
[0008] In response to the chip being overheated, stopping or limiting the operation of the motor to reduce the temperature of the chip, and writing a second temperature threshold to the write-only memory, wherein the second temperature threshold is less than the first temperature threshold;
[0009] When the temperature of the chip drops to within the second temperature threshold, it is determined that the chip temperature has recovered;
[0010] In response to the chip temperature recovering, the normal operation of the motor is restored, and the first temperature threshold is written back to the write-only memory.
[0011] Optionally,
[0012] When the temperature of the chip reaches or exceeds the first temperature threshold, determining that the chip is over-temperature includes:
[0013] In response to the temperature of the chip reaching or exceeding the first temperature threshold, hardware triggers a first flag enable, and when the first flag enable is detected, it is determined that the chip is over-temperature;
[0014] When the temperature of the chip drops to within the second temperature threshold, determining that the chip temperature has recovered includes:
[0015] In response to the temperature of the chip decreasing to within the second temperature threshold, hardware triggers the first flag to be disabled, and when the first flag is detected to be disabled, it is determined that the chip temperature has recovered.
[0016] Optionally,
[0017] In response to the temperature of the chip reaching or exceeding the first temperature threshold, a second flag is also triggered to be enabled through hardware, and when the first flag and / or the second flag is detected to be enabled, it is determined that the chip is over-temperature;
[0018] When it is detected that the first flag is disabled, the second flag is modified to be disabled through the program.
[0019] Optionally,
[0020] When the temperature of the chip drops to within the second temperature threshold, determining that the chip temperature has recovered includes:
[0021] When the temperature of the chip drops to within the second temperature threshold, it is confirmed that the temperature remains within the second temperature threshold for a predetermined time, and then it is determined that the temperature of the chip has recovered.
[0022] Optionally,
[0023] When it is detected that the first flag and the second flag are both enabled, the third flag is modified to be disabled through a program;
[0024] After confirming that the temperature is maintained within the second temperature threshold for a predetermined time, the hardware triggers the third flag to be enabled. When the third flag is detected to be enabled, it is determined that the chip temperature has recovered.
[0025] Optionally,
[0026] If the first mark is continuously detected to be in a disabled state, or the first mark and the second mark are continuously detected to be in a disabled state within the predetermined time, it is confirmed that the temperature is maintained within the second temperature threshold for the predetermined time.
[0027] Optionally,
[0028] In response to the chip being overheated, the chip interrupts execution of a program, writes a second temperature threshold into a write-only memory, and waits for the chip temperature to recover;
[0029] and / or,
[0030] In response to the chip temperature recovering, an interrupt processing function is entered to write back the first temperature threshold to the write-only memory and then exit.
[0031] Optionally,
[0032] The hardware trigger is achieved by monitoring the internal temperature of the chip through a negative temperature coefficient thermistor (NTC) inside the chip.
[0033] Optionally,
[0034] The memory is a register;
[0035] and / or,
[0036] The motor is a permanent magnet synchronous motor.
[0037] According to another aspect of the present application, a main control chip of a motor is provided, wherein the chip has only one write-only memory for writing temperature data, and the chip executes the method as described above.
[0038] According to another aspect of the present application, a motor controller is provided, comprising:
[0039] The motor control module and the main control chip as described above, the main control chip instructs the motor control module to control the operation of the motor.
[0040] According to another aspect of the present application, there is provided a motor system, comprising:
[0041] A motor, and a motor controller as described above, wherein the motor controller controls the operation of the motor.
[0042] According to the over-temperature protection method of the main control chip of a motor, the main control chip of the motor, the motor controller and the motor system proposed in the present application, the main control chip has only one write-only memory for writing temperature data, and the first temperature threshold is first written to the write-only memory to confirm whether it is over-temperature, and the over-temperature treatment is performed in response to the over-temperature. After the over-temperature treatment, the second temperature threshold is written to the write-only memory to wait for the temperature to be restored. When it is confirmed that the temperature has been restored, the first temperature threshold is written back to the write-only memory to continue the over-temperature protection. Through the scheme of the present application, the problem that when there is only a unique temperature write-only memory inside the main control chip of the motor controller, the temperature data in the memory cannot be read because the relevant interface is not brought out, and once the temperature is over-temperature, there is only a single shutdown protection and no ability to restore the temperature is solved. The scheme of the present application avoids the problem of needing to read the temperature data in the memory or register, has the characteristics of low cost, high reliability, and simple implementation. It is an effective over-temperature protection and recovery design, which can effectively protect the chip while maintaining the normal operation of the motor, and can restore the normal operation of the chip / motor without re-powering on.
[0043] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present application in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0045] Figure 1 A schematic diagram of an embodiment of a motor system of the present application is shown;
[0046] Figure 2 A schematic diagram showing an embodiment of the position of the motor controller of the present application;
[0047] Figure 3 A schematic diagram showing an embodiment of the process of an over-temperature protection method for a main control chip of a motor of the present application;
[0048] Figure 4 A schematic diagram showing an embodiment of an over-temperature protection overall framework of the present application is shown;
[0049] Figure 5 A schematic diagram of an embodiment of the motor main control chip over-temperature protection process of the present application is shown. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0051] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0052] Figure 1 A schematic diagram of an embodiment of a motor system of the present application is shown.
[0053] As shown in the figure, the motor system includes a motor controller 1 and a motor 2, and the motor controller 1 controls the operation of the motor 2. The motor controller 1, for example, includes a main control chip 11 and a motor control module 12, and the main control chip 11 can instruct the motor control module 12 to control the operation of the motor. The motor control module 12 can include different modules, which have different functions, such as a power module responsible for power conversion and driving the motor, a position detection module responsible for detecting the position of the motor rotor, and a communication module responsible for communicating with external devices. The main control chip 11 organically combines these modules and coordinates their work so that the motor system can operate normally. In the present application, the main control chip 11 has only a write-only memory 111 for writing temperature data, and the memory can be a register inside the chip.
[0054] Figure 2 A schematic diagram showing an embodiment of the motor controller location of the present application.
[0055] As shown in the figure, the controller is located inside the motor. It can be clearly seen that the insulating ring 21 on the controller has a corresponding cut at the motor control module 22. The cut position is the position of the controller module. The controller module can dissipate heat through heat-conducting materials. The dotted line position is the position of the motor main control chip 23. The chip 23 is obviously covered by the insulating ring, which causes the chip to dissipate heat less than the module, and the chip needs to be protected from temperature.
[0056] Since there is only one write-only memory inside the main control chip for writing temperature data, and it has no related interface for reading temperature data, it is impossible to use the traditional over-temperature protection design method to read the temperature, set two temperatures T1 and T2, and compare the real-time temperature T of the chip with the relationship between T1 and T2 to achieve over-temperature protection of the chip. Based on this, the present application proposes an over-temperature protection method, which can be implemented through the internal program of the main control chip 11. The internal program can be part of the motor control program, or protect the motor control program, or it can be a program independent of the motor control program.
[0057] Figure 3 A schematic diagram of an embodiment of the process of an over-temperature protection method for a main control chip of a motor of the present application is shown. As shown in the figure, the method includes:
[0058] Step S1, writing a first temperature threshold into the write-only memory, wherein when the temperature of the chip reaches or exceeds the first temperature threshold, it is determined that the chip is overheated.
[0059] Step S2, in response to the chip being overheated, stopping or limiting the operation of the motor to reduce the temperature of the chip, and writing a second temperature threshold to the write-only memory, wherein the second temperature threshold is less than the first temperature threshold.
[0060] Step S3, when the temperature of the chip drops to within the second temperature threshold, it is determined that the chip temperature has recovered;
[0061] Step S4, in response to the chip temperature recovery, restoring the normal operation of the motor, and writing the first temperature threshold back to the write-only memory.
[0062] In step S1, the first temperature threshold written to the write-only memory is equivalent to the over-temperature point temperature, for example, 120°. When the temperature inside the main control chip reaches or exceeds the first temperature threshold, it means that it has reached the over-temperature point temperature, and it is determined that the main control chip temperature is over-temperature.
[0063] In step S3, the second temperature threshold written to the write-only memory is equivalent to the recovery point temperature, for example, 80°. When the temperature inside the main control chip drops to within the second temperature threshold, it means that the temperature has returned to the recovery point temperature, and it is determined that the temperature of the main control chip has recovered.
[0064] Preferably, since there is only one write-only memory inside the main control chip for writing temperature data, the present application attempts to implement over-temperature control by combining hardware and software programs. As an implementation method, in response to the temperature of the chip reaching or exceeding the first temperature threshold, the hardware triggers the first flag (such as TSDF) to be enabled (for example, set to 1), and when the first flag is detected to be enabled, it is determined that the chip is overheated; in response to the temperature of the chip dropping to within the second temperature threshold, the hardware triggers the first flag to be disabled (for example, cleared / set to 0), and when the first flag is detected to be disabled, it is determined that the chip temperature has recovered. Since it is triggered by hardware, there is no need to read the temperature from the memory, and the hardware can, for example, automatically generate a trigger signal according to the change in temperature.
[0065] As another implementation method, due to the influence of temperature, hardware triggering may also be falsely triggered, especially hardware false clearing. Therefore, the present application proposes a method of dual confirmation by hardware and software programs, hoping to use software clearing for some flag bits. In response to the temperature of the chip reaching or exceeding the first temperature threshold, the second flag (such as TSDIF) is also enabled by hardware triggering, and when the first flag and / or the second flag is detected to be enabled, it is determined that the chip is overheated; when the first flag is detected to be disabled, the second flag is modified to be disabled through the program, thereby avoiding the second flag from being cleared in time when the temperature drops to within the second temperature threshold. Through two flags, as well as dual confirmation by hardware and software programs, the probability of misjudgment is greatly reduced.
[0066] Furthermore, in order to ensure that the chip temperature has recovered stably (for example, for a period of time) and to implement delayed over-temperature protection for the motor, as an implementation method, when the temperature of the control chip drops to within the second temperature threshold, it is confirmed that it remains within the second temperature threshold for a predetermined time before the chip temperature is determined to have recovered.
[0067] Optionally, for the motor over-temperature delay protection process, a combination of hardware and software programs can be used to make the solution more reliable. For example, when it is detected that both the first flag and the second flag are enabled, the third flag (for example, TSDIE) is modified to be disabled through the program; after confirming that the temperature is maintained within the second temperature threshold for a predetermined time, the hardware triggers the third flag to enable, and when the third flag is detected to be enabled, it is determined that the chip temperature has recovered.
[0068] As an implementation method, continuous detection, such as multiple detections within a predetermined time, or re-detection after a predetermined time, can be used to confirm whether the temperature recovery has been maintained for a predetermined time. For example, within the predetermined time, if the first mark is continuously detected to be in a disabled state, or if both the first mark and the second mark are continuously detected to be in a disabled state, it is confirmed that the temperature is maintained within the second temperature threshold for a predetermined time. By multiple or repeated detections, the accuracy of the detection can be improved to avoid misjudgment caused by temperature fluctuations.
[0069] If the interrupt is automatically cleared (disabled) by hardware, it may be cleared at an inappropriate time or not cleared automatically in time, resulting in incomplete interrupt processing or loss of important interrupt information. Software clearing can accurately control the timing of clearing by the developer. Therefore, in the steps described above, hardware triggering is used to enable, and the software program is modified to disable to avoid the occurrence of improper hardware clearing. Of course, it is not limited to this, and it can also be implemented entirely by hardware triggering or entirely by software modification, or by various combinations of software enable, hardware disable, software disable, and hardware enable.
[0070] In step S2, in response to the chip overheating, the chip can be stopped, or the temperature of the chip can be reduced by limiting the operation of the motor. Limiting the operation of the motor includes, for example, changing the current limit to reduce the speed. In addition, the chip overheating can be dealt with by interruption. For example, by detecting the first flag, or the first flag and the second flag in the above text, it is determined whether the chip is overheated. When it is determined that the chip is overheated, the chip enters an interrupt, suspends the motor control task currently being executed, and executes the interrupt service function to handle the emergency. In response to the chip overheating, the chip executes a program interrupt, writes the second temperature threshold to the write-only memory, and waits for the chip temperature to recover; in response to the chip temperature recovery, enters the interrupt processing function to write back the first temperature threshold to the write-only memory and then exits. Dealing with chip overheating by interruption and interrupt processing function avoids the problem of needing to read the temperature data in the memory or register, and is low-cost, highly reliable and easy to implement. Not limited to this, writing the second temperature threshold to the write-only memory can also be performed by an interrupt processing function, or writing data to the write-only memory can be performed without calling the interrupt processing function, but by directly writing.
[0071] As an implementation method, a temperature sensor (such as a negative temperature coefficient thermistor NTC, but not limited thereto) can be integrated inside the chip to continuously monitor the temperature of the chip. When the temperature sensor detects that the chip temperature reaches or exceeds a preset over-temperature threshold, a signal is triggered, which can be transmitted to the interrupt control logic circuit to set an over-temperature flag, for example, the first flag is set to 1. By applying the internal NTC interrupt of the chip for protection instead of external interrupts, false triggering of external interrupts is avoided; in addition, since the hardware of the interrupt is set to 0 or 1 through the change of the level of the over-temperature itself inside the chip, the method is more stable and reliable.
[0072] Figure 4 A schematic diagram of an embodiment of an over-temperature protection overall framework of the present application is shown.
[0073] As shown in the figure, there is only one temperature memory in the main control chip, and the memory has only the function of writing, and cannot read the temperature. Step S41, initialize the over-temperature point (first temperature threshold); Step S42, respond to over-temperature and enter the interrupt; Step S43, through the relationship between the interrupt and the interrupt service function in the program, after the interrupt occurs, modify the set temperature to the recovery temperature point (second temperature threshold), wait for cooling, and enter the interrupt service function after cooling; Step S44, modify the temperature point, change it back to the over-temperature point, and enter the over-temperature monitoring again; Step S45, the motor resumes normal operation.
[0074] Figure 5 A schematic diagram of an embodiment of the motor main control chip over-temperature protection process of the present application is shown.
[0075] As shown in the figure, the process includes:
[0076] Step S51, completing the motor controller port function initialization, such as AD initialization, IO port initialization, temperature T initialization (assuming that the temperature T is initialized to 120° C.), etc.
[0077] Step S52, determining whether parameter initialization is completed.
[0078] Step S53, after initialization, the motor runs normally.
[0079] Step S54, during operation, detect whether the chip temperature exceeds the temperature point T, and sense whether the interrupt bit TSDIF is 1. For example, the TSDIF flag bit is set to 1 by hardware triggering and cleared by software.
[0080] Step S55: if TSDIF=1, interrupt is initiated.
[0081] Step S56, checking whether the over-temperature status bit TSDF is 1 (the TSDF flag bit 1 and 0 can be triggered by hardware, and is 1 as long as it is in the over-temperature state, otherwise it is automatically cleared).
[0082] Step S57, once in the over-temperature state, the program gives an over-temperature fault, the motor shuts down or changes to current limiting and speed reduction, and changes the temperature point T=80°C, so that the motor protection flag TSDIE is not enabled, that is, TSDIE=0.
[0083] Step S58, judging whether the temperature exceeds the temperature point T=80°C, where the judgment is made based on whether TSDF and / or TSDIF are 1.
[0084] At this time, the chip temperature is around 120℃, which is higher than the newly set temperature point of 80℃, so the TSDF flag will not be cleared, and the program will wait in the interruption for the temperature to drop below 80℃. When it drops below 80℃, the TSDF flag will be automatically cleared by the hardware, and when TSDF is zero, the TSDIF flag will also be automatically cleared by the hardware.
[0085] Step S59: Since the temperature is about 120°C at this time, which is higher than the newly set temperature point of 80°C, the interrupt service function is entered.
[0086] Step S60, after entering the interrupt service function, to avoid misjudgment, it is determined again whether the over-temperature status bit TSDF is 0, that is, it is confirmed again that the temperature is lower than 80°C.
[0087] Step S61, delaying for a period of time again by delaying the count TSDRecoverCnt to ensure that the temperature is lower than 80°C.
[0088] Step S62, determining whether the delay count TSDRecoverCnt is greater than the set time TSDRecoverTime.
[0089] Step S63, after the delay ends, the temperature point T is modified again to 120°C, TSDRecoverCnt is cleared to 0, the temperature sensing detection interrupt flag is enabled (TSDIE=1), and the over-temperature fault is turned off.
[0090] In this embodiment, the relationship between the interrupt and the interrupt service function is utilized. By waiting for the temperature to drop in the interrupt and then entering the interrupt service function to modify the unique set temperature, the problem of having only a unique temperature write-only memory inside the main control chip and being unable to read the temperature data in the memory, making it difficult to effectively protect the chip while maintaining the normal operation of the motor, is effectively solved.
[0091] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0092] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0093] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0094] It should be noted that the embodiments and features of the embodiments of the present invention can be combined with each other without conflict. Any simple modification, equivalent changes and modifications made to the above embodiments according to the technical essence of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. A method for over-temperature protection of a main control chip of a motor, wherein the chip has only one write-only memory for writing temperature data, the method comprising: Writing a first temperature threshold into the write-only memory, wherein when the temperature of the chip reaches or exceeds the first temperature threshold, it is determined that the chip is overheated; In response to the chip being overheated, stopping or limiting the operation of the motor to reduce the temperature of the chip, and writing a second temperature threshold to the write-only memory, wherein the second temperature threshold is less than the first temperature threshold; When the temperature of the chip drops to within the second temperature threshold, it is determined that the chip temperature has recovered; In response to the chip temperature recovering, the normal operation of the motor is restored, and the first temperature threshold is written back to the write-only memory.
2. The method of claim 1, wherein: When the temperature of the chip reaches or exceeds the first temperature threshold, determining that the chip is over-temperature includes: In response to the temperature of the chip reaching or exceeding the first temperature threshold, hardware triggers a first flag to be enabled, and when the first flag is detected to be enabled, it is determined that the chip is over-temperature; When the temperature of the chip drops to within the second temperature threshold, determining that the chip temperature has recovered includes: In response to the temperature of the chip decreasing to within the second temperature threshold, hardware triggers the first flag to be disabled, and when the first flag is detected to be disabled, it is determined that the chip temperature has recovered.
3. The method of claim 2, wherein: In response to the temperature of the chip reaching or exceeding the first temperature threshold, a second flag is also triggered to be enabled through hardware, and when the first flag and / or the second flag is detected to be enabled, it is determined that the chip is over-temperature; When it is detected that the first flag is disabled, the second flag is modified to be disabled through the program.
4. The method according to any one of claims 1 to 3, wherein: When the temperature of the chip drops to within the second temperature threshold, determining that the chip temperature has recovered includes: When the temperature of the chip drops to within the second temperature threshold, it is confirmed that the temperature remains within the second temperature threshold for a predetermined time, and then it is determined that the chip temperature has recovered.
5. The method of claim 4, wherein: When it is detected that both the first flag and the second flag are enabled, the third flag is modified to be disabled through a program; After confirming that the temperature is maintained within the second temperature threshold for a predetermined time, the hardware triggers the third flag to be enabled. When the third flag is detected to be enabled, it is determined that the chip temperature has recovered.
6. The method of claim 5, wherein: If the first mark is continuously detected to be in a disabled state, or the first mark and the second mark are continuously detected to be in a disabled state within the predetermined time, it is confirmed that the temperature is maintained within the second temperature threshold for the predetermined time.
7. The method according to any one of claims 1 to 3, wherein: In response to the chip being overheated, the chip interrupts execution of a program, writes a second temperature threshold into a write-only memory, and waits for the chip temperature to recover; and / or, In response to the chip temperature recovering, an interrupt processing function is entered to write back the first temperature threshold to the write-only memory and then exit.
8. The method of claim 2, 3 or 5, wherein: The hardware trigger is achieved by monitoring the internal temperature of the chip through a negative temperature coefficient thermistor (NTC) inside the chip.
9. The method of claim 1, wherein: The memory is a register; and / or, The motor is a permanent magnet synchronous motor.
10. A main control chip of a motor, the chip having only one write-only memory for writing temperature data, wherein: The chip executes the method according to any one of claims 1 to 9.
11. A motor controller, comprising: The motor control module and the main control chip as claimed in claim 10, wherein the main control chip instructs the motor control module to control the operation of the motor.
12. A motor system, comprising: A motor, and a motor controller as claimed in claim 11, wherein the motor controller controls the operation of the motor.