CN108321769B - A kind of electric machine control system failure protecting device and method based on CPLD and DSP - Google Patents

A kind of electric machine control system failure protecting device and method based on CPLD and DSP Download PDF

Info

Publication number
CN108321769B
CN108321769B CN201810123089.9A CN201810123089A CN108321769B CN 108321769 B CN108321769 B CN 108321769B CN 201810123089 A CN201810123089 A CN 201810123089A CN 108321769 B CN108321769 B CN 108321769B
Authority
CN
China
Prior art keywords
module
cpld
dsp
software
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810123089.9A
Other languages
Chinese (zh)
Other versions
CN108321769A (en
Inventor
施邹云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely Automobile Research Institute Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely Automobile Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Geely Holding Group Co Ltd, Zhejiang Geely Automobile Research Institute Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN201810123089.9A priority Critical patent/CN108321769B/en
Publication of CN108321769A publication Critical patent/CN108321769A/en
Application granted granted Critical
Publication of CN108321769B publication Critical patent/CN108321769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H7/00Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions
    • H02H7/08Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions for dynamo-electric motors
    • H02H7/0822Integrated protection, motor control centres
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H1/00Details of emergency protective circuit arrangements
    • H02H1/0092Details of emergency protective circuit arrangements concerning the data processing means, e.g. expert systems, neural networks
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H7/00Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions
    • H02H7/08Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions for dynamo-electric motors
    • H02H7/0833Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions for dynamo-electric motors for electric motors with control arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Control Of Electric Motors In General (AREA)
  • Control Of Ac Motors In General (AREA)

Abstract

The present invention provides a kind of electric machine control system failure protecting devices and method based on CPLD and DSP, belong to automobile technical field.It solves the problems, such as how to increase electric machine control system error protection processing reliability.The present apparatus includes data acquisition module, power module, CPLD module, DSP module and the level switch module for connecting CPLD module, data acquisition module is electrically connected level switch module, power module data line is bi-directionally connected level switch module, and data acquisition module is also electrically coupled to DSP module.Method includes when fault-signal value is greater than hardware threshold, and CPLD module carries out hardware lockout pwm pulse, and triggers DSP module and enter error protection interruption;DSP module receives detected signal value and is compared respectively with software threshold value one and software threshold value two, drop Power Processing is carried out when detected signal value is greater than when software threshold value one is less than software threshold value two, second carries out software blocked pwm pulse when detected signal value is greater than software threshold value.The present apparatus and method enhancing error protection processing are reliable and stable.

Description

A kind of electric machine control system failure protecting device and method based on CPLD and DSP
Technical field
The invention belongs to automobile technical fields, are related to a kind of electric machine control system error protection dress based on CPLD and DSP It sets and method.
Background technique
New-energy automobile is quickly grown at present, and wherein electric machine control system is the key components and parts in new-energy automobile.By Complicated in electric machine control system operating condition, the security reliability in automobilism requires height, therefore improves related automatically controlled system The troubleshooting of system and defencive function are of great significance to the safety of new-energy automobile.In the prior art to electric machine control system The method for carrying out error protection processing mainly has software protection, logic gate protection and CPLD module protection.
Chinese patent literature discloses a kind of electric car electricity based on CPLD module application No. is 201020638915 Machine system failure processing unit.Including CPLD module, DSP module, motor temperature sensor, temperature of power module sensor, mother Line direct current voltage sensor, multiple motor current sensors, multiple input conditioning circuits and multiple comparators.The event of CPLD module Barrier feedback register saves all fault-signals currently generated, and the DSP module of motor master control borad can use software and pass through Data line reads the information in the failure feedback register, once read a certain or certain several letter in these fault-signals Number, error protection event will be triggered, hardware circuit will quickly block PWM, while exporting error protection signal is low level, and And DSP module exports control instruction and gives control register, low level pulse is issued by the control logic of CPLD module, to master control The control bit of circuit intermediate relay is operated, to open main relay.The device is using CPLD module to electric car electricity The fault-signal of machine system carries out virtual protection and control, to realize the reliably protecting to electric automobile motor system.The failure Processing unit has the following deficiencies: 1, it is for institute faulty, regardless of whether failure is serious, all carry out this flow operations;2, from event Barrier occurs to final DSP module to execute the overlong time of error protection event, i.e. execution overlong time.3, when CPLD module chip It breaks down, then failure protection function is then entirely ineffective.It can be seen that the electric machine control system troubleshooting and protection of the device Reliability there are also to be strengthened.
Summary of the invention
The present invention in view of the above-mentioned problems existing in the prior art, proposes a kind of motor control system based on CPLD and DSP System failure protecting device and method.The devices and methods therefor solves how to realize that improving electric machine control system error protection is handled The problem of reliability.
The present invention is realized by following technical proposal: a kind of electric machine control system error protection based on CPLD and DSP Device, including data acquisition module, power module, CPLD module and DSP module, the CPLD module and DSP module data line Connection, which is characterized in that the device further includes the level switch module that data line is bi-directionally connected CPLD module, the data acquisition Module is electrically connected level switch module, and the power module data line is bi-directionally connected level switch module, the data acquisition module Block is also electrically coupled to DSP module, and the CPLD module is judged according to the fault data that data acquisition module detects, and works as reception Fault data be greater than hardware threshold, CPLD module carries out hardware lockout pwm pulse, is equipped in the DSP module and is less than hardware The software threshold value one of threshold value, DSP module are compared judgement according to the real time data that data acquisition module detects, when the reality of detection When data be greater than software threshold value one be less than hardware threshold when carry out drop Power Processing.
CPLD module and software fault processing DSP module are handled jointly to motor and electric machine control system using hardware fault All kinds of fault-signals carry out classification processing, are greater than software threshold values one to noncritical failure, that is, fault-signal value and are less than hardware threshold Drop Power Processing is carried out by DSP module, only belong to catastrophe failure when fault-signal value is greater than hardware threshold and just carry out Pwm pulse operation is blocked, avoids frequently carrying out block pwm pulse operation, while CPLD module and DSP module coordinated management are hard Part troubleshooting and software fault processing increase the stabilization of electrical fault protection processing and reliable with multichannel Preservation tactics Property.
In the above-mentioned electric machine control system failure protecting device based on CPLD and DSP, it is additionally provided in the DSP module Software threshold value two, above-mentioned software threshold value two are greater than hardware threshold, when the real time fail data of detection are greater than software threshold value two, DSP module carries out software blocked pwm pulse.Setting is greater than the software threshold values two of hardware threshold values in DSP module, according to number of faults It is judged that blocking pwm pulse processing when failure especially severe on hardware and software simultaneously, improve in especially severe failure problems Troubleshooting capability, while also avoiding also having when CPLD module hardware fault logic circuits failure software fault to handle energy Power.Multichannel process strategy makes electrical fault protection processing more reliable and more stable.
In the above-mentioned electric machine control system failure protecting device based on CPLD and DSP, during the CPLD module passes through Break signal line connects DSP module interrupt pin, and CPLD module connects DSP module by malfunction coding signal wire and reads and writes pin, DSP Module is separately connected CPLD module input control pin by pwm signal line and control signal wire, when CPLD module carries out hardware It when blocking pwm pulse, while triggering DSP module and entering error protection interruption, DSP module reads the malfunction coding in CPLD module Signal handles the relevant software protection of the failure.CPLD module is attached with DSP module by multiple signals line respectively, CPLD module triggers DSP module interruption and DSP module read failure encoded signal, at pwm signal line and control signal wire The relevant software protection of the failure is managed, multiple signals line ensure that the hardware and software failure processing of CPLD module and DSP module is protected Stablize cooperation and while occurring unreasonable and can independently realize the function that troubleshooting is protected again.
In the above-mentioned electric machine control system failure protecting device based on CPLD and DSP, the data acquisition module packet Current sensor, comparator one and signal conditioning circuit one are included, current sensor connects level switch module by comparator one, The current sensor connects DSP module by signal conditioning circuit one.It is detected on current sensor acquisition motor three-phase windings Current signal, current signal is input to DSP module by signal conditioning circuit one, handles for software failure signal, comparator One, by after current signal value and hardware overcurrent threshold value comparison, carries out level conversion by level switch module, is connected to CPLD mould The processing of block progress hardware over current fault.Guarantee that DSP module and CPLD module can independently and timely obtain overcurrent event Hinder signal.
In the above-mentioned electric machine control system failure protecting device based on CPLD and DSP, the data acquisition module is also Including DC bus-bar voltage sensor, comparator two and signal conditioning circuit two, the DC bus-bar voltage sensor passes through ratio Level switch module is connected compared with device two, the current sensor connects DSP module by signal conditioning circuit two.DC bus electricity Pressure sensor acquires the voltage signal in DC bus circuit, and voltage signal is input to DSP module, is used for by signal conditioning circuit two Software failure signal processing, comparator two by after voltage signal values and hardware overcurrent threshold value comparison, by level switch module into Line level conversion is connected to the processing that CPLD module carries out hardware over current fault.Guarantee that DSP module and CPLD module can be independent And timely obtain busbar voltage over-voltage fault signal.
In the above-mentioned electric machine control system failure protecting device based on CPLD and DSP, the data acquisition module is also Including motor temperature sensor, comparator three and signal conditioning circuit three, the motor temperature sensor is connected by comparator three Level switch module is connect, the motor temperature sensor connects DSP module by signal conditioning circuit three.Motor temperature sensor For acquiring motor temperature signal, voltage signal is input to DSP module by signal conditioning circuit three, at software failure signal Reason, comparator three carry out level conversion, connection by level switch module for after temperature signal value and motor excess temperature threshold value comparison The processing of motor excess temperature failure is carried out to CPLD module.Guarantee that DSP module and CPLD module can independently and timely obtain electricity Machine temperature excess temperature fault-signal.
In the above-mentioned electric machine control system failure protecting device based on CPLD and DSP, the data acquisition module is also Including temperature of power module sensor, comparator four and signal conditioning circuit four, the temperature of power module sensor pass through ratio Level switch module is connected compared with device four, the motor temperature sensor connects DSP module by signal conditioning circuit four.Power mould Deblocking temperature sensor acquires collected temperature of power module signal on power module, and signal conditioning circuit four is by power module temperature Degree signal is input to DSP module, handles for software failure signal, and comparator four is by temperature of power module signal value and hardware function After rate module excess temperature threshold value comparison, level conversion is carried out by level switch module, CPLD module is connected to and carries out power module The processing of excess temperature failure.Guarantee that DSP module and CPLD module can independently and timely obtain temperature of power module excess temperature failure Signal.
In the above-mentioned electric machine control system failure protecting device based on CPLD and DSP, the CPLD module is also connected with There is at least one malfunction indicator lamp, when CPLD module carries out hardware lockout pwm pulse, lighting circuit corresponding failure indicator light. CPLD module has fault indication function.
A kind of electric machine control system fault protecting method based on CPLD and DSP, which is characterized in that CPLD module receives inspection Fault-signal after signal value is surveyed compared with hardware threshold, when fault-signal value is greater than hardware threshold, CPLD module carries out hard Part blocks pwm pulse, and triggers DSP module and enter error protection interruption;The software threshold less than hardware threshold is equipped in DSP module Value one and software threshold value two greater than hardware threshold, DSP module receive detected signal value and with software threshold value one and software threshold value Two are compared respectively, carry out drop Power Processing when detected signal value is greater than when software threshold value one is less than software threshold value two, work as inspection It surveys signal value and second carries out software blocked pwm pulse greater than software threshold value.
CPLD module and software fault processing DSP module are handled jointly to motor and electric machine control system using hardware fault All kinds of fault-signals carry out classification processing, are greater than software threshold values one to noncritical failure, that is, fault-signal value and are less than hardware threshold Drop Power Processing is carried out by DSP module, only belong to catastrophe failure when fault-signal value is greater than hardware threshold and just carry out Block pwm pulse operation, avoid frequently carrying out block pwm pulse operation, at the same CPLD module and DSP module coordinated management from Hardware fault processing and software fault processing increase the stabilization of electrical fault protection processing and reliable with multichannel Preservation tactics Property.
In the above-mentioned electric machine control system fault protecting method based on CPLD and DSP, when fault-signal value is greater than firmly When part threshold value, CPLD module carries out fault logic coding and lighting circuit corresponding failure indicator light, and DSP module reads CPLD module The malfunction coding signal of upload.CPLD module triggers DSP module interruption and DSP module read failure encoded signal, CPLD module Communicated with DSP module multiple signals ensure that CPLD module and DSP module hardware and software failure processing protection stablize cooperation and The function of troubleshooting protection can be independently realized when occurring unreasonable again.
Compared with prior art, based in the electric machine control system failure protecting device and its system of CPLD and DSP.Tool It has the advantage that
1, fault-signal is carried out classification processing by the present invention, carries out drop Power Processing by DSP module to noncritical failure, Only fault-signal value be greater than hardware threshold when belong to catastrophe failure just carry out block pwm pulse operate, avoid frequently into Row block pwm pulse operation so that electrical fault protection processing is more reliable and more stable.
2, the present invention has multichannel error protection strategy, if CPLD module hardware locking pulse fails, when DSP module is examined When measuring the threshold value of failure greater than software threshold value two, DSP module can then carry out the operation of software blocked pwm pulse at once, guarantee The reliability of system.
3, the present invention is when needing CPLD module progress hardware directly to block the catastrophe failure of pwm pulse, CPLD mould Block can directly block pwm pulse, at the same the interrupt signal line that is connected with DSP module of CPLD module can trigger DSP module can not Shielding is interrupted, other failure protection functions are triggered: the error code that such as reading CPLD module uploads, number when storage failure occurs According to etc..Compared to the mode of DSP module inquiry CPLD module failure, the speed of DSP module handling failure is accelerated.
Detailed description of the invention
Fig. 1 is structural schematic diagram of the invention.
Fig. 2 is control flow chart of the invention.
In figure, 1, DSP module;2, CPLD module;3, level switch module;4, power module;5, current sensor;51, Comparator one;6, DC bus-bar voltage sensor;61, comparator two;7, motor temperature sensor;71, comparator three;8, power Module temperature sensor;81, comparator four;9, data acquisition module;91, signal conditioning circuit one;92, signal conditioning circuit Two;93, signal conditioning circuit three;94, signal conditioning circuit four;10, malfunction indicator lamp.
Specific embodiment
The following is specific embodiments of the present invention, and technical scheme of the present invention will be further described in conjunction with attached drawing, However, the present invention is not limited to these examples.
It as shown in Figs. 1-2, include data acquisition module based on the electric machine control system failure protecting device of CPLD and DSP 9, power module 4, CPLD module 2 and DSP module 1, CPLD module 2 are connected with 1 data line of DSP module, which further includes number The level switch module 3 of CPLD module 2 is bi-directionally connected according to line, data acquisition module 9 is electrically connected level switch module 3, power mould 4 data line of block is bi-directionally connected level switch module 3, and power module sends fault-signal to level switch module, level conversion mould Block 3 sends pwm pulse signal to power module according to 2 control instruction of CPLD module.Data acquisition module 9 is also electrically coupled to DSP Module 1, CPLD module 2 are judged according to the fault data that data acquisition module 9 detects, when received fault data is greater than firmly Part threshold value, CPLD module 2 carry out hardware lockout pwm pulse, the software threshold value one less than hardware threshold are equipped in DSP module 1, DSP module 1 is compared judgement according to the real time data that data acquisition module 9 detects, when the real time data of detection is greater than software Threshold value one carries out drop Power Processing when being less than hardware threshold.CPLD module 2 is also connected at least one malfunction indicator lamp 95, when When CPLD module 2 carries out hardware lockout pwm pulse, lighting circuit corresponding failure indicator light 95.Software is additionally provided in DSP module 1 Threshold value two, above-mentioned software threshold value two are greater than hardware threshold, when the real time fail data of detection are greater than software threshold value two, DSP mould Block 1 carries out software blocked pwm pulse.Setting is greater than the software threshold values two of hardware threshold values in DSP module 1, according to fault data Judge when failure especially severe on hardware and software while blocking pwm pulse processing, improves in especially severe failure problems Troubleshooting capability, while also avoiding that also there is software fault to handle energy when 2 hardware fault processing circuit failure of CPLD module Power.Multichannel process strategy makes electrical fault protection processing more reliable and more stable.
CPLD module 2 connects 1 interrupt pin of DSP module by interrupt signal line, and CPLD module 2 passes through malfunction coding signal Line connects DSP module 1 and reads and writes pin, and DSP module 1 is separately connected CPLD module 2 by pwm signal line and control signal wire and inputs Pin is controlled, when CPLD module 2 carries out hardware lockout pwm pulse, while DSP module 1 is triggered and entering error protection interruption, DSP module 1 reads the malfunction coding signal in CPLD module 2, handles the relevant software protection of the failure.CPLD module 2 and DSP Module 1 is attached respectively by multiple signals line, and CPLD module 2 triggers the interruption of DSP module 1 and 1 read failure of DSP module is compiled Code signal handles the relevant software protection of the failure by pwm signal line and control signal wire, and pwm signal is DSP as shown in figure 1 The pwm pulse that module 1 is sent to CPLD module 2 through pwm signal line controls signal, and it is DSP module 1 that CPLD module 2, which controls signal, The control signal of CPLD module 2 is sent to through control signal wire, interrupt signal is CPLD module 2 through interrupt signal line triggering DSP Module 1 enters outage and protects signal, and malfunction coding signal is DSP module 1 through malfunction coding signal-obtaining CPLD module 2 Fault-signal.Multiple signals line ensure that the hardware and software failure processing protection of CPLD module 2 and DSP module 1 stablize cooperation and The function of troubleshooting protection can be independently realized when occurring unreasonable again.
Data acquisition module 9 includes current sensor 5, comparator 1 and signal conditioning circuit 1, current sensor 5 Level switch module 3 is connected by comparator 1, current sensor 5 connects DSP module 1 by signal conditioning circuit 1. Current sensor 5 acquires the current signal detected on motor three-phase windings, and current signal is input to by signal conditioning circuit 1 DSP module 1 is handled for software failure signal, and comparator 1 passes through after current signal value and hardware overcurrent threshold value comparison Level switch module 3 carries out level conversion, is connected to the processing that CPLD module 2 carries out hardware over current fault.Data acquisition module 9 It further include DC bus-bar voltage sensor 6, comparator 2 61 and signal conditioning circuit 2 92, DC bus-bar voltage sensor 6 is logical It crosses comparator 2 61 and connects level switch module 3, current sensor 5 connects DSP module 1 by signal conditioning circuit 2 92.Directly The voltage signal that busbar voltage sensor 6 acquires DC bus circuit is flowed, voltage signal is input to by signal conditioning circuit 2 92 DSP module 1 is handled for software failure signal, and comparator 2 61 passes through after voltage signal values and hardware overcurrent threshold value comparison Level switch module 3 carries out level conversion, is connected to the processing that CPLD module 2 carries out hardware over current fault.
Data acquisition module 9 further includes motor temperature sensor 7, comparator 3 71 and signal conditioning circuit 3 93, motor Temperature sensor 7 connects level switch module 3 by comparator 3 71, and motor temperature sensor 7 passes through signal conditioning circuit three 93 connection DSP modules 1.For 7 device of motor temperature sensor for acquiring motor temperature signal, signal conditioning circuit 3 93 believes voltage Number it is input to DSP module 1, is handled for software failure signal, comparator 3 71 is by temperature signal value and hardware excess temperature threshold value ratio After relatively, level conversion is carried out by level switch module 3, is connected to the processing that CPLD module 2 carries out motor excess temperature failure.
Data acquisition module 9 further includes temperature of power module sensor 8, comparator 4 81 and signal conditioning circuit 4 94, Temperature of power module sensor 8 connects level switch module 3 by comparator 4 81, and motor temperature sensor 7 passes through signal tune It manages circuit 4 94 and connects DSP module 1.Temperature of power module sensor 8 acquires collected temperature of power module on power module 4 Temperature of power module signal is input to DSP module 1 by signal, signal conditioning circuit 4 94, is handled for software failure signal, than Compared with device 4 81 by after temperature of power module signal value and hardware power module excess temperature threshold value comparison, by level switch module 3 into Line level conversion is connected to the processing that CPLD module 2 carries out 4 excess temperature failure of power module.
Electric machine control system fault protecting method based on CPLD and DSP include CPLD module 2 receive detected signal value with Hardware threshold relatively after fault-signal, when fault-signal value be greater than hardware threshold when, CPLD module 2 carry out hardware lockout PWM Pulse, and trigger DSP module 1 and enter error protection interruption;One He of software threshold value less than hardware threshold is equipped in DSP module 1 Greater than the software threshold value two of hardware threshold, DSP module 1 receives detected signal value and distinguishes with software threshold value one and software threshold value two It is compared, drop Power Processing is carried out when detected signal value is greater than when software threshold value one is less than software threshold value two, when detection signal Value is greater than software threshold value and second carries out software blocked pwm pulse.When fault-signal value be greater than hardware threshold when, CPLD module 2 into Row fault logic coding and the corresponding malfunction indicator lamp 95 of lighting circuit, DSP module 1 read the failure that CPLD module 2 uploads and compile Code signal.CPLD module 2 triggers the interruption of DSP module 1 and 1 read failure encoded signal of DSP module, CPLD module 2 and DSP module The communication of 1 multiple signals ensure that the stable cooperation of the hardware and software failure processing protection of CPLD module 2 and DSP module 1 and occur not The function of troubleshooting protection can be independently realized when rationally again.
It is that the present invention is based on the electric machine control system failure protecting device of CPLD and DSP and the working principles of method below:
The voltage signal acquired in DC bus circuit is input in electric machine controller by DC bus-bar voltage sensor 6, Signal conditioning circuit 2 92 carries out software after DC bus-bar voltage signal is input to DSP module 1 and software overcurrent threshold value comparison The detection of over-voltage fault, when DC bus-bar voltage signal is between software overvoltage threshold one and software overvoltage threshold two, first Drop Power Processing is carried out, when DC bus-bar voltage signal is greater than software overvoltage threshold two, triggers software blocked PWM event;Than Compared with device 2 61 by after DC bus-bar voltage signal value and hardware over-voltage threshold value comparison, level is carried out by level switch module 3 and is turned It changes, connection is sent to the processing that CPLD module 2 carries out hardware over-voltage failure, when DC bus-bar voltage signal value is greater than hardware over-voltage When threshold value, CPLD module 2 directly blocks the output of pwm pulse, lights and accordingly represents the malfunction indicator lamp 95 of over-voltage, and by with The interrupt pin that DSP module 1 connects, triggering DSP module 1 enter error protection interrupt routine, handle the relevant protection of the failure Strategy, and the malfunction coding signal of the upload of CPLD module 2 is read simultaneously.
Motor temperature sensor 7 collected motor temperature signal will be input in electric machine controller on motor, signal Conditioning circuit 3 93 carries out software motor after motor temperature signal is input to DSP module 1 and software motor excess temperature threshold value comparison The detection of excess temperature failure, when motor temperature signal value is between software motor excess temperature threshold value one and software motor excess temperature threshold value two When, drop Power Processing is first carried out, when motor temperature signal value is greater than software motor temperature threshold value two, triggers software blocked PWM thing Part;Comparator 3 71 carries out electricity by level switch module 3 for after motor temperature signal value and hardware motor excess temperature threshold value comparison Flat turn is changed, and the processing that CPLD module 2 carries out hardware motor excess temperature failure is connected to, when motor temperature signal value is greater than hardware motor When excess temperature threshold value, CPLD module 2 directly blocks the output of pwm pulse, lights the malfunction indicator lamp 95 for accordingly representing motor excess temperature, And the interrupt pin by connecting with DSP module 1, triggering DSP module 1 enter error protection interrupt routine, handle the failure phase The Preservation tactics of pass, and the malfunction coding signal of the upload of CPLD module 2 is read simultaneously.
Multichannel temperature of power module sensor 8 acquires collected temperature of power module signal on power module 4 and is input to In electric machine controller, temperature of power module signal is input to DSP module 1 and software power module mistake by signal conditioning circuit 4 94 The detection that 4 excess temperature failure of software power module is carried out after warm threshold value comparison, when temperature of power module signal value is in software power When between excess temperature threshold value one and software power excess temperature threshold value two, drop volume processing is first carried out, when temperature of power module signal value is greater than When software power excess temperature threshold value two, software blocked PWM event is triggered;Comparator 4 81 is by temperature of power module signal value and hardware After power module excess temperature threshold value comparison, level conversion is carried out by level switch module 3, CPLD module 2 is connected to and carries out hardware The processing of 4 excess temperature failure of power module, when temperature of power module signal value is greater than hardware power module excess temperature threshold value, CPLD mould Block 2 directly blocks the output of pwm pulse, lights and accordingly represents the malfunction indicator lamp 95 of power excess temperature, and by with DSP module 1 The interrupt pin of connection, triggering DSP module 1 enter error protection interrupt routine, handle the relevant Preservation tactics of the failure, and same When read CPLD module 2 upload malfunction coding signal.
CPLD is Complex Programmable Logic Devices, and DSP is digital signal processing chip, and software mistake is provided in DSP module 1 Flow threshold values, software over-voltage threshold values, software motor excess temperature threshold value, software power module excess temperature threshold value.More specific software overcurrent threshold Value is software overcurrent threshold value one and software overcurrent threshold value two, and software over-voltage threshold values is software overvoltage threshold one and software overvoltage threshold Two, software motor excess temperature threshold value is software motor excess temperature threshold value one and software motor excess temperature threshold value two, software power module excess temperature Threshold value is software power excess temperature threshold value one and software power excess temperature threshold value two;
CPLD module 2 and software fault processing DSP module 1 are handled jointly to motor and motor control system using hardware fault All kinds of fault-signals of uniting carry out classification processing, are greater than software threshold values one to noncritical failure, that is, fault-signal value and are less than hardware threshold Value carries out drop Power Processing by DSP module 1, only fault-signal value be greater than hardware threshold when belong to catastrophe failure just into Row block pwm pulse operation avoids frequently carrying out block pwm pulse operation, while CPLD module 2 and the collaboration pipe of DSP module 1 Manage hardware fault processing and software fault processing, with multichannel Preservation tactics increase electrical fault protection processing stabilization and can By property.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.

Claims (9)

1. a kind of electric machine control system failure protecting device based on CPLD and DSP, including data acquisition module (9), power mould Block (4), CPLD module (2) and DSP module (1), the CPLD module (2) connect with DSP module (1) data line, and feature exists In the device further includes the level switch module (3) that data line is bi-directionally connected CPLD module (2), the data acquisition module (9) It is electrically connected level switch module (3), power module (4) data line is bi-directionally connected level switch module (3), and the data are adopted Collection module (9) is also electrically coupled to DSP module (1), the number of faults that the CPLD module (2) is detected according to data acquisition module (9) According to being judged, when received fault data is greater than hardware threshold, CPLD module (2) carries out hardware lockout pwm pulse, described The software threshold value one less than hardware threshold is equipped in DSP module (1), DSP module (1) is detected according to data acquisition module (9) Real time data is compared judgement, carries out at drop power when the real time data of detection is greater than when software threshold value one is less than hardware threshold Reason, DSP module (1) is interior to be additionally provided with software threshold value two, and above-mentioned software threshold value two is greater than hardware threshold, when the real time fail number of detection When according to being greater than software threshold value two, DSP module (1) carries out software blocked pwm pulse.
2. the electric machine control system failure protecting device according to claim 1 based on CPLD and DSP, which is characterized in that The CPLD module (2) connects DSP module (1) interrupt pin by interrupt signal line, and CPLD module (2) is believed by malfunction coding Pin is read and write in number line connection DSP module (1), and DSP module (1) is separately connected CPLD mould by pwm signal line and control signal wire Block (2) input control pin when CPLD module (2) carry out hardware lockout pwm pulse, while triggering DSP module (1) and entering event Barrier protection is interrupted, and DSP module (1) reads the malfunction coding signal on CPLD module (2), is handled the relevant software of the failure and is protected Shield.
3. the electric machine control system failure protecting device according to claim 1 or 2 based on CPLD and DSP, feature exist In the data acquisition module (9) includes current sensor (5), comparator one (51) and signal conditioning circuit one (91), electric current Sensor (5) passes through signal condition electricity by comparator one (51) connection level switch module (3), the current sensor (5) Road one (91) connects DSP module (1).
4. the electric machine control system failure protecting device according to claim 1 or 2 based on CPLD and DSP, feature exist In the data acquisition module (9) further includes DC bus-bar voltage sensor (6), comparator two (61) and signal conditioning circuit Two (92), the DC bus-bar voltage sensor (6) pass through comparator two (61) connection level switch module (3), the electric current Sensor (5) passes through signal conditioning circuit two (92) connection DSP module (1).
5. the electric machine control system failure protecting device according to claim 1 or 2 based on CPLD and DSP, feature exist In, the data acquisition module (9) further includes that motor temperature senses (7), comparator three (71) and signal conditioning circuit three (93), For the motor temperature sensing (7) by comparator three (71) connection level switch module (3), the motor temperature sensing (7) is logical Cross signal conditioning circuit three (93) connection DSP module (1).
6. the electric machine control system failure protecting device according to claim 1 or 2 based on CPLD and DSP, feature exist In the data acquisition module (9) further includes temperature of power module sensor (8), comparator four (81) and signal conditioning circuit Four (94), the temperature of power module sensor (8) pass through comparator four (81) connection level switch module (3), the motor Temperature sensing (7) passes through signal conditioning circuit four (94) connection DSP module (1).
7. the electric machine control system failure protecting device according to claim 1 or 2 based on CPLD and DSP, feature exist In the CPLD module (2) is also connected at least one malfunction indicator lamp (10), when CPLD module (2) carry out hardware lockout PWM When pulse, lighting circuit corresponding failure indicator light (10).
8. a kind of electric machine control system fault protecting method based on CPLD and DSP, which is characterized in that CPLD module (2) receives Detected signal value compared with hardware threshold after fault-signal, when fault-signal value be greater than hardware threshold when, CPLD module (2) into Row hardware lockout pwm pulse, and trigger DSP module (1) and interrupted into error protection;It is equipped in DSP module (1) and is less than hardware threshold The software threshold value one of value and software threshold value two greater than hardware threshold, DSP module (1) receive detected signal value and with software threshold value One and software threshold value two be compared respectively, when detected signal value be greater than software threshold value one be less than software threshold value two when carry out drop function Second rate processing carries out software blocked pwm pulse when detected signal value is greater than software threshold value.
9. the electric machine control system fault protecting method according to claim 8 based on CPLD and DSP, which is characterized in that When fault-signal value is greater than hardware threshold, CPLD module (2) carries out fault logic coding and lighting circuit corresponding failure indicates Lamp (10), DSP module (1) read the malfunction coding signal that CPLD module (2) upload.
CN201810123089.9A 2018-02-07 2018-02-07 A kind of electric machine control system failure protecting device and method based on CPLD and DSP Active CN108321769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810123089.9A CN108321769B (en) 2018-02-07 2018-02-07 A kind of electric machine control system failure protecting device and method based on CPLD and DSP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810123089.9A CN108321769B (en) 2018-02-07 2018-02-07 A kind of electric machine control system failure protecting device and method based on CPLD and DSP

Publications (2)

Publication Number Publication Date
CN108321769A CN108321769A (en) 2018-07-24
CN108321769B true CN108321769B (en) 2019-07-16

Family

ID=62902993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810123089.9A Active CN108321769B (en) 2018-02-07 2018-02-07 A kind of electric machine control system failure protecting device and method based on CPLD and DSP

Country Status (1)

Country Link
CN (1) CN108321769B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167553A (en) * 2018-09-30 2019-01-08 合肥巨动力***有限公司 A kind of electric machine control system security mechanism implementation method based on MCU+CPLD framework
CN112310945B (en) * 2019-07-31 2024-04-09 无锡飞翎电子有限公司 Anti-demagnetization protection method and device for motor, computer equipment and storage medium
CN114679102A (en) * 2020-12-24 2022-06-28 南京泉峰科技有限公司 Electric tool and control method thereof
CN116826667B (en) * 2023-06-01 2024-05-07 广州安捷制造有限公司 Overcurrent protection method, system, equipment and storage medium for motor
CN117360239B (en) * 2023-12-06 2024-03-01 小米汽车科技有限公司 Vehicle control method, double-electric drive system and vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201909983U (en) * 2010-11-30 2011-07-27 中国汽车技术研究中心 CPLD-based fault treatment device for motor system of electric automobile
CN102541113A (en) * 2012-02-03 2012-07-04 重庆长安汽车股份有限公司 Method and system for controlling temperature of motor
CN104852637A (en) * 2015-05-27 2015-08-19 中国海洋大学 Two-chip brushless DC motor drive control system and control method thereof
CN105207569A (en) * 2015-10-26 2015-12-30 重庆长安汽车股份有限公司 Over-temperature protection method and device for motor of electric vehicle and electric vehicle
CN107482582A (en) * 2017-10-09 2017-12-15 赵东顺 A kind of guard method of motor circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201909983U (en) * 2010-11-30 2011-07-27 中国汽车技术研究中心 CPLD-based fault treatment device for motor system of electric automobile
CN102541113A (en) * 2012-02-03 2012-07-04 重庆长安汽车股份有限公司 Method and system for controlling temperature of motor
CN104852637A (en) * 2015-05-27 2015-08-19 中国海洋大学 Two-chip brushless DC motor drive control system and control method thereof
CN105207569A (en) * 2015-10-26 2015-12-30 重庆长安汽车股份有限公司 Over-temperature protection method and device for motor of electric vehicle and electric vehicle
CN107482582A (en) * 2017-10-09 2017-12-15 赵东顺 A kind of guard method of motor circuit

Also Published As

Publication number Publication date
CN108321769A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CN108321769B (en) A kind of electric machine control system failure protecting device and method based on CPLD and DSP
CN102890870B (en) Self diagnosis method and device for faults of traffic signal control machine
CN102692598B (en) Electric cabinet logic tester device of railway vehicle
CN109541457A (en) Power battery high-voltage relay control circuit and method for diagnosing faults
CN110110856B (en) Power grid fault diagnosis method and system based on multi-source information deep reasoning
CN112631256B (en) Switching value output module with safe function and diagnosis processing method
CN102346478B (en) Circuit and method for detecting failures in data acquisition of overall controller of automobile
CN111831507B (en) TCMS-RIOM control unit with safety level design
CN108233347A (en) A kind of brushless motor controller Over Current Protection System and over-current protection method
CN108336828A (en) A kind of novel ocs isolating switch and its control method
CN212134837U (en) Subway shielded door monitoring system
CN103454543A (en) Method for diagnosing faults of bidirectional DC-DC converter
CN111917179B (en) Real-time online misoperation prevention system of transformer substation based on multimode internet of things
CN102841287B (en) Three-phase power circuit detection method and three-phase power circuit detection system
CN201975861U (en) Wireless-network-based intelligent management system for grounding wire of transformer station
CN201294152Y (en) Microcomputer monitoring and harmony-eliminating device for voltage transformator
CN215108294U (en) Platform door central control system
CN106707159B (en) BLDC Diagnostic system of motor fault
CN108569625A (en) A kind of safety protection circuit device of erecting equipment brake
CN201854085U (en) Bus coupler segmented monitoring protection and comprehensive self-automatic input device
CN107834524B (en) A kind of subway direct current protecting device based on pulse signal monitoring
CN209117846U (en) A kind of self-checking system for track signal monitoring sensor acquisition channel
CN2189791Y (en) Multi-function directional transverse difference protector for microcomputer
CN206074791U (en) A kind of faulty action preventing circuit and the normal station low-voltage protection device using the circuit
CN201341014Y (en) Self-diagnosis phase failure protector

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant