[go: up one dir, main page]

CN103744756B - The volatile storage module fault detection method of microprocessor in electric machine control system - Google Patents

The volatile storage module fault detection method of microprocessor in electric machine control system Download PDF

Info

Publication number
CN103744756B
CN103744756B CN201310586811.XA CN201310586811A CN103744756B CN 103744756 B CN103744756 B CN 103744756B CN 201310586811 A CN201310586811 A CN 201310586811A CN 103744756 B CN103744756 B CN 103744756B
Authority
CN
China
Prior art keywords
measured
memory element
pwm
time
submodule
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
CN201310586811.XA
Other languages
Chinese (zh)
Other versions
CN103744756A (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.)
Guangdong Welling Motor Manufacturing Co Ltd
Original Assignee
Guangdong Welling Motor Manufacturing 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 Guangdong Welling Motor Manufacturing Co Ltd filed Critical Guangdong Welling Motor Manufacturing Co Ltd
Priority to CN201310586811.XA priority Critical patent/CN103744756B/en
Publication of CN103744756A publication Critical patent/CN103744756A/en
Application granted granted Critical
Publication of CN103744756B publication Critical patent/CN103744756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Electric Motors In General (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

The invention belongs to drive and control of electric machine technical field, it is provided that the volatile storage module fault detection method of microprocessor and system in a kind of electric machine control system.The method and system be within the time that PWM interrupts, the storage content of memory element to be measured is backed up after; utilize Test Algorithms for Memory that memory element to be measured is carried out direct-current short circuit fault detect; to judge whether volatile storage module lost efficacy; achieve the cyclic breakdown detection under certain PWM interruption frequency, to volatile storage module; it is thus possible to find the failure condition of volatile storage module in time and motor is taked protection, improve electric machine control system reliability of operation.Further, after fault detect starts, first the storage content of memory element to be measured is backed up, and after fault detect completes, will backup content recovery to memory element to be measured, thus do not result in the impact on volatile storage module, detect process safety and reliable.

Description

The volatile storage module fault detection method of microprocessor in electric machine control system
Technical field
The invention belongs to drive and control of electric machine technical field, particularly relate to the easy of microprocessor in a kind of electric machine control system The property lost memory module fault detection method.
Background technology
Along with the progress of technology electronic technology, at electro-mechanical arts, commonly used Controlled by micro computer technology realizes motor Control and drive.As a example by Fig. 1 three phase electric machine control system, it is shown that existing employing magnetic field steering control (Field Oriented Control, FOC) structural principle of electric machine control system of technology.
Specifically, existing electric machine control system includes the three-phase for direct current input is converted into three-phase alternating current output Inverter and the microprocessor worked to drive three-phase inverter for output pwm signal.Wherein, position and velocity estimation The rotational speed omega of module estimation motor;The deviation output T axle ginseng that speed PI adjustment module obtains according to position and velocity estimation module Examination mark amount Isq_req;ADC sampling module is sampled from the output of three-phase inverter and is obtained threephase stator coil current, and turns through A./D Change with coordinate transform after, obtain DC component I in rotating coordinate systemsdAnd Isq;By T axle reference component Isq_reqWith M axle reference Component Isd_reqRespectively with DC component IsqAnd IsdComparing, the deviation obtained regulates mould through corresponding torque current PI respectively Block and the regulation of exciting current PI adjustment module, obtain the phase voltage component U of rotating coordinate systemqAnd Ud, become by coordinate the most again Change, obtain the component U of the stator phase voltage vector of alpha-beta rectangular coordinate systemαAnd Uβ;Pulse width modulation module is according to two component UαWith UβCalculating the dutycycle of the pwm signal of reality output, generate and export the pwm signal with corresponding dutycycle, meanwhile, ADC adopts Original mold tuber, according to the output of pulse width modulation module, carries out ADC sampling in next cycle of pwm signal.
In the microprocessor, volatile storage module for as run to system relevant data storage medium, with And the storage medium of temporary variable in application services running.In the practical work process of electric machine control system, easily The property lost memory module there will be microelectronics fault, such as, direct-current short circuit fault occur, cause volatile storage module to lose efficacy.And show Technology is had not provide the fault detection method of volatile storage module, it is impossible to find the fault feelings of volatile storage module in time Condition is also protected so that the operation of electric machine control system exists hidden danger, poor reliability, even causes the damage of motor.
Summary of the invention
The purpose of the embodiment of the present invention is to provide the volatile storage module of microprocessor in a kind of electric machine control system Fault detection method, it is intended to the problem solving electric machine control system operational reliability difference.
The embodiment of the present invention is achieved in that the volatile storage module event of microprocessor in a kind of electric machine control system Barrier detection method, said method comprising the steps of:
Within the time that this PWM interrupts, storage to be measured at least one continuous print in volatile storage module to be measured is single The storage content of unit backs up;
Within the time that this PWM described interrupts, utilize the Test Algorithms for Memory direct current to described memory element to be measured Short trouble detects;
Within the time that this PWM described interrupts, if having detected, then by the described storage content recovery of backup to corresponding Memory element described to be measured in.
The another object of the embodiment of the present invention is to provide the volatile storage of microprocessor in a kind of electric machine control system Module failure detection system, described system includes:
Backup module, within the time that this PWM interrupts, in volatile storage module to be measured, at least one is continuous The storage content of memory element to be measured back up;
Fault detection module, within the time that this PWM described interrupts, after described backup module is finished, Utilize Test Algorithms for Memory that the direct-current short circuit fault of described memory element to be measured is detected;
Backup and Restore module, is used for after described fault detection module has detected, the institute backed up by described backup module State storage content recovery in corresponding described memory element to be measured.
The another object of the embodiment of the present invention is to provide the microprocessor of a kind of electric machine control system, deposits including volatibility Storage module, described microprocessor also includes the fault detection system connecting described volatile storage module, described fault detect system System is the volatile storage module fault detection system of microprocessor in electric machine control system as above.
The volatile storage module fault detection method of microprocessor and system in the electric machine control system that the present invention provides Be within the time that PWM interrupts, the storage content of memory element to be measured is backed up after, utilize Test Algorithms for Memory Memory element to be measured is carried out direct-current short circuit fault detect, to judge whether volatile storage module lost efficacy, it is achieved that necessarily Cyclic breakdown detection under PWM interruption frequency, to volatile storage module, it is thus possible to find volatile storage module in time Motor is also taked protection by failure condition, improves electric machine control system reliability of operation.Further, owing to memory test is calculated Method is destructive testing, can the storage content of script in memory element to be measured be override, therefore, after fault detect starts, First the storage content of memory element to be measured is backed up, and after fault detect completes, content recovery will be backed up to be measured Memory element, thus do not result in the impact on volatile storage module, detection process safety and reliable.
Accompanying drawing explanation
Fig. 1 is the structure principle chart of the three phase electric machine control system that prior art provides;
Fig. 2 is the volatile storage module fault inspection of microprocessor in the electric machine control system that the embodiment of the present invention one provides The flow chart of survey method;
Fig. 3 is the detail flowchart backing up storage content of the embodiment of the present invention one;
Fig. 4 is the detailed process that the direct-current short circuit fault to memory element to be measured of the embodiment of the present invention one detects Figure;
Fig. 5 is the volatile storage module fault inspection of microprocessor in the electric machine control system that the embodiment of the present invention two provides The flow chart of survey method;
Fig. 6 is the volatile storage module fault inspection of microprocessor in the electric machine control system that the embodiment of the present invention three provides The structure chart of examining system;
Fig. 7 is the structure chart of backup module in Fig. 6;
Fig. 8 is the structure chart of fault detection module in Fig. 6;
Fig. 9 is the volatile storage module fault inspection of microprocessor in the electric machine control system that the embodiment of the present invention four provides The structure chart of examining system.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, right The present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, and It is not used in the restriction present invention.
The problem existed for prior art, the present invention proposes the volatibility of microprocessor in a kind of electric machine control system Memory module fault detection method and system.The method and system are by memory element to be measured within the time of a PWM interruption Storage content back up after, utilize Test Algorithms for Memory that memory element to be measured is carried out direct-current short circuit fault detect, with Judge whether volatile storage module lost efficacy.Implementation below with reference to the embodiment detailed description present invention:
Embodiment one
The embodiment of the present invention one proposes the volatile storage module fault inspection of microprocessor in a kind of electric machine control system Survey method, as in figure 2 it is shown, include:
Step S1: within the time that this PWM interrupts, to be measured at least one continuous print in volatile storage module to be measured The storage content of memory element backs up.
In the embodiment of the present invention one, microprocessor need the volatile storage module carrying out fault detect at least include moving State random access memory (Dynamic Random Access Memory, DRAM) and RAM start for storage system The memory module (i.e. BOOTRSVD memory module) of information, storehouse memory module and for storing the ground of interrupt service routine The PIE of location interrupts memory module;Each of which memory module all includes some memory element.
In the embodiment of the present invention one, microprocessor often produces the pwm signal waveform in a cycle and triggers a PWM interruption, The time that PWM interrupts refers to a cycle duration (i.e. the inverse of the frequency of pwm signal) of pwm signal.
Further, as it is shown on figure 3, step S1 can comprise the following steps that
S11: within the time that this PWM interrupts, arranges the internal memory of memory element to be measured in volatile storage module to be measured Address realm.
S12: close the global interrupt of microprocessor, to start the fault detect to memory element to be measured.
In the embodiment of the present invention one, close global interrupt i other words, in the process fault detection of memory element to be measured, no Respond other any interruption, to ensure that the process fault detection of memory element to be measured is not interrupted by possible interruption.
S13: the memory address range according to arranging jumps to corresponding memory element to be measured.
S14: judge that the memory address of memory element to be measured, whether in prescribed limit, is then to perform step S15, otherwise holds Row step S19.
In the embodiment of the present invention one, it is stipulated that scope refers to set in advance, for the storage data relevant to system operation Rather than the address realm of temporary variable in application services running.Such as, for RAM, if being 65535 in initial address Memory space start to store temporary variable in application services running, then prescribed limit is that address is less than 65535.
S15: preserve length and the initial address of memory element to be measured of memory element to be measured.
S16: read first address and the address, end of back up memory space set in advance.Wherein, back up memory space is permissible It it is any memory space idle in microprocessor.
S17: judge whether back up memory space belongs to random access memory, is then to perform step S18, otherwise performs step S19。
S18: according to length and the initial address of memory element to be measured, by the storage content backup of memory element to be measured to standby Part memory space.
The fault detect of S19: memory element to be measured was lost efficacy.
Step S2: within the time that this PWM interrupts, utilizes Test Algorithms for Memory short to the direct current of memory element to be measured Road fault detects.
Wherein, Test Algorithms for Memory refers to that any one memorizer developed for the various fault models in memorizer is surveyed Trial and error procedure, such as March algorithm, Walking algorithm, Galloping algorithm etc..March algorithm therein is better simply storage One of device testing algorithm, has higher fault coverage and less time complexity, is that the most frequently used memory test is calculated Method.In the embodiment of the present invention one, the March C algorithm that Test Algorithms for Memory employing is come by March algorithm mutation, now, As shown in Figure 4, step S2 can further include steps of
S21: within the time that this PWM interrupts, writes full 0 data to memory element to be measured.
S22: read the storage content of memory element to be measured.
S23: judge to store whether content is full 0, is then to perform step S24, otherwise performs step S28.
S24: write complete 1 data to memory element to be measured.
S25: read the storage content of memory element to be measured.
S26: judge to store whether content is complete 1, is then to perform step S27, otherwise performs step S28.
S27: the fault detect of memory element to be measured is passed through.
The fault detect of S28: memory element to be measured was lost efficacy.
Step S3: within the time that this PWM interrupts, if having detected, then by the storage content recovery of backup to corresponding Memory element to be measured in.
The volatile storage module fault detect side of microprocessor in the electric machine control system that the embodiment of the present invention one provides Method be within the time that PWM interrupts, the storage content of memory element to be measured is backed up after, utilize memory test to calculate Method carries out direct-current short circuit fault detect to memory element to be measured, to judge whether volatile storage module lost efficacy, it is achieved that one Determine the cyclic breakdown detection under PWM interruption frequency, to volatile storage module, it is thus possible to find volatile storage module in time Failure condition and motor is taked protection, improve electric machine control system reliability of operation.Further, due to memory test Algorithm is destructive testing, the storage content of script in memory element to be measured can be override, therefore, start in fault detect After, first the storage content of memory element to be measured is backed up, and after fault detect completes, by backup content recovery to treating Survey memory element, thus do not result in the impact on volatile storage module, detection process safety and reliable.
Embodiment two
The embodiment of the present invention two proposes the volatile storage module fault inspection of microprocessor in a kind of electric machine control system Survey method, as shown in Figure 5.Different from embodiment one, in embodiment two, also included before step S1:
Step S4: trigger this PWM and interrupt, and interrupt according to this PWM, utilizes ADC sampling module in PWM interruption last time Time in gather coil of stator of motor electric current, the dutycycle and the ADC sampling module that calculate next cycle pwm signal exist Sampling instant in the time that next time, PWM interrupted, i.e. interrupts algorithm routine is first carried out according to this PWM, such as, perform FOC and calculate Method.
The most different from embodiment one, in embodiment two, the most also include:
Step S5: within the time that this PWM interrupts, opens the global interrupt of microprocessor, last time PWM interrupt time When interior calculated sampling instant arrives, trigger ADC and interrupt, so that ADC sampling module is to coil of stator of motor electric current Carry out normal acquisition and conversion.
In the embodiment of the present invention two, the sampling instant of coil of stator of motor electric current is occurred at this PWM by ADC sampling module In last 1/4th cycles interrupted.
Different from embodiment one, the volatile storage of microprocessor in the electric machine control system that the embodiment of the present invention two provides Module failure detection method, after a PWM interrupts starting, is first carried out algorithm routine, performs afterwards described in example one performed as described above The fault detect of volatile storage module, after opening global interrupt, ADC sampling module performs coil of stator of motor afterwards The sampling of electric current and conversion, thus do not affect the properly functioning of motor.Now, it is ensured that the execution time of algorithm routine and ADC Time interval between the normal current sampling of sampling module is more than the time of the fault detect of volatile storage module, such as, When the frequency that PWM interrupts is 8KHz, in the time that each PWM interrupts, two memory element to be measured are carried out fault detect, and The time of fault detect can be 11 μ s, afterwards within the time that next PWM interrupts, sequentially carries out lower two memory element to be measured Fault detect, by that analogy, until each memory module in volatile storage module to be measured all detects complete.
Embodiment three
The embodiment of the present invention three proposes the volatile storage module fault inspection of microprocessor in a kind of electric machine control system Examining system, as shown in Figure 6, for convenience of description, illustrate only the part relevant to the embodiment of the present invention three.
Specifically, the volatile storage module event of microprocessor in the electric machine control system that the embodiment of the present invention three proposes Barrier detecting system includes: backup module 1, within the time that this PWM interrupts, in volatile storage module to be measured at least The storage content of one continuous print memory element to be measured backs up;Fault detection module 2, for when this PWM interrupts In, after backup module 1 is finished, utilize Test Algorithms for Memory that the direct-current short circuit fault of memory element to be measured is carried out Detection;Backup and Restore module 3, for after fault detection module 2 has detected, the storage content backed up by backup module 1 is extensive Answer in corresponding memory element to be measured.
Further, as it is shown in fig. 7, backup module 1 comprises the steps that arranges submodule 11, for when this PWM interrupts In, the memory address range of memory element to be measured in volatile storage module to be measured is set;Interrupt arranging submodule 12, be used for Arranging after submodule 11 is finished, closing the global interrupt of microprocessor, examining starting the fault to memory element to be measured Survey;Redirect submodule 13, for interrupting arranging after submodule 12 is finished, according to arranging the internal memory ground that submodule 11 is arranged Location scope jumps to corresponding memory element to be measured;First judges submodule 14, for redirecting after submodule 13 is finished, Judge the memory address of memory element to be measured whether in prescribed limit, if judging, the memory address of memory element to be measured is not or not rule In the range of Ding, then it is assumed that the fault detect of memory element to be measured was lost efficacy;Preserve submodule 15, judge submodule 14 for working as first When judging that the memory address of memory element to be measured is in prescribed limit, preserve the length of memory element to be measured and memory element to be measured Initial address;Reading submodule 16, for reading first address and the address, end of back up memory space set in advance;Second sentences Disconnected submodule 17, for after reading submodule 16 is finished, it is judged that whether back up memory space belongs to random access memory, if Judge that back up memory space is not belonging to random access memory, then it is assumed that the fault detect of memory element to be measured was lost efficacy;Backup submodule 18, for when second judges that submodule 17 judges that back up memory space belongs to random access memory, protect according to preserving submodule 15 The length of the memory element to be measured deposited and initial address, by the storage content backup of memory element to be measured to back up memory space.
Further, when Test Algorithms for Memory uses March C algorithm, as shown in Figure 8, fault detection module 2 can be wrapped Include: the first write submodule 21, within the time that this PWM interrupts, write full 0 data to memory element to be measured;First Reading submodule 22, writes the storage content of memory element to be measured for reading the first write submodule 21;3rd judges submodule Whether block 23, be full 0 for judging the storage content that the first reading submodule 22 reads, if judging, the first reading submodule 22 is read The storage content taken is not for full 0, then it is assumed that the fault detect of memory element to be measured was lost efficacy;Second write submodule 24, for working as 3rd judges, when the storage content that submodule 23 judges that the first reading submodule 22 reads is full 0, to write to memory element to be measured Complete 1 data;Second reading submodule 25, writes the storage content of memory element to be measured for reading the second write submodule 24; Whether the 4th judges submodule 26, be complete 1 for judging the storage content that the second reading submodule 25 reads, be to think to be measured The fault detect of memory element is passed through, otherwise it is assumed that the fault detect of memory element to be measured was lost efficacy.
The volatile storage module fault detect system of microprocessor in the electric machine control system that the embodiment of the present invention three provides System be within the time that PWM interrupts, the storage content of memory element to be measured is backed up after, utilize memory test to calculate Method carries out direct-current short circuit fault detect to memory element to be measured, to judge whether volatile storage module lost efficacy, it is achieved that one Determine the cyclic breakdown detection under PWM interruption frequency, to volatile storage module, it is thus possible to find volatile storage module in time Failure condition and motor is taked protection, improve electric machine control system reliability of operation.Further, due to memory test Algorithm is destructive testing, the storage content of script in memory element to be measured can be override, therefore, start in fault detect After, first the storage content of memory element to be measured is backed up, and after fault detect completes, by backup content recovery to treating Survey memory element, thus do not result in the impact on volatile storage module, detection process safety and reliable.
Embodiment four
The embodiment of the present invention four proposes the volatile storage module fault inspection of microprocessor in a kind of electric machine control system Examining system, as it is shown in figure 9, for convenience of description, illustrate only the part relevant to the embodiment of the present invention four.
Different from embodiment three, the volatile storage module event of microprocessor in the electric machine control system that embodiment four proposes Barrier detecting system may also include that computing module 4, before performing at backup module 1, receives this PWM and interrupts, and according to this PWM interrupts, the coil of stator of motor electric current utilizing ADC sampling module to gather within the time that last time, PWM interrupted, and calculates next week The dutycycle of phase pwm signal and the sampling instant within the time that next time, PWM interrupted of the ADC sampling module, i.e. according to this PWM interrupts algorithm routine is first carried out, such as, perform FOC algorithm;Sampling trigger module 5, for performing in Backup and Restore module 3 After, within the time that this PWM interrupts, open the global interrupt of microprocessor, calculate within the time that last time, PWM interrupted When the sampling instant obtained arrives, trigger ADC and interrupt, so that coil of stator of motor electric current is carried out normally by ADC sampling module Gather and conversion.
In the embodiment of the present invention four, the sampling instant of coil of stator of motor electric current is occurred at this PWM by ADC sampling module In last 1/4th cycles interrupted.
Different from embodiment three, the volatile storage of microprocessor in the electric machine control system that the embodiment of the present invention four provides Module failure detection system, after a PWM interrupts starting, is first carried out algorithm routine, performs afterwards described in example one performed as described above The fault detect of volatile storage module, after opening global interrupt, ADC sampling module performs coil of stator of motor afterwards The sampling of electric current and conversion, thus do not affect the properly functioning of motor.Now, it is ensured that the execution time of algorithm routine and ADC Time interval between the normal current sampling of sampling module is more than the failure detection time of volatile storage module.
Embodiment five
The embodiment of the present invention five proposes the microprocessor of a kind of electric machine control system, including volatile storage module, with And connect the fault detection system of volatile storage module.This fault detection system is described in example three performed as described above or embodiment four Electric machine control system in the volatile storage module fault detection system of microprocessor, be not repeated herein.
In sum, the volatile storage module fault detect side of microprocessor in the electric machine control system that the present invention provides Method and system be within the time that PWM interrupts, the storage content of memory element to be measured is backed up after, utilize memorizer Testing algorithm carries out direct-current short circuit fault detect to memory element to be measured, to judge whether volatile storage module lost efficacy, it is achieved Under certain PWM interruption frequency, the cyclic breakdown of volatile storage module is detected, it is thus possible to find that volatibility is deposited in time Store up the failure condition of module and motor is taked protection, improve electric machine control system reliability of operation.Further, due to storage Device testing algorithm is destructive testing, can override, the storage content of script in memory element to be measured therefore, in fault detect After beginning, first the storage content of memory element to be measured is backed up, and after fault detect completes, content recovery will be backed up To memory element to be measured, thus do not result in the impact on volatile storage module, detection process safety and reliable.It addition, After PWM interrupts starting, algorithm routine is first carried out, performs the fault detect of volatile storage module afterwards, beating afterwards After opening global interrupt, ADC sampling module performs the sampling to coil of stator of motor electric current and conversion, thus does not just affect motor Often run.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is permissible The hardware controlling to be correlated with by program completes, described program can in being stored in a computer read/write memory medium, Described storage medium, such as ROM/RAM, disk, CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention Any amendment, equivalent and the improvement etc. made within god and principle, should be included within the scope of the present invention.

Claims (10)

1. the volatile storage module fault detection method of microprocessor in an electric machine control system, it is characterised in that described Method comprises the following steps:
Within the time that this PWM interrupts, at least one continuous print memory element to be measured in volatile storage module to be measured Storage content backs up;
Within the time that this PWM described interrupts, utilize the Test Algorithms for Memory direct-current short circuit to described memory element to be measured Fault detects;
Within the time that this PWM described interrupts, if having detected, then by the described storage content recovery of backup to corresponding institute State in memory element to be measured.
2. the volatile storage module fault detection method of microprocessor in electric machine control system as claimed in claim 1, its It is characterised by, described within the time that this PWM interrupts, deposit in volatile storage module to be measured, at least one continuous print is to be measured The step that the storage content of storage unit carries out backing up comprises the following steps:
Within the time that this PWM interrupts, the memory address of memory element to be measured in described volatile storage module to be measured is set Scope;
Close the global interrupt of microprocessor, to start the fault detect to described memory element to be measured;
Described memory address range according to arranging jumps to corresponding described memory element to be measured;
Judge that the memory address of described memory element to be measured is whether in prescribed limit;
If judging, the memory address of described memory element to be measured in described prescribed limit, then preserves described memory element to be measured Length and the initial address of described memory element to be measured;
Read first address and the address, end of back up memory space set in advance;
Judge whether described back up memory space belongs to random access memory;
If judging, described back up memory space belongs to random access memory, then according to length and the starting point of described memory element to be measured Location, by the storage content backup of described memory element to be measured to described back up memory space.
3. the volatile storage module fault detection method of microprocessor in electric machine control system as claimed in claim 1, its It is characterised by, described within the time that this PWM described interrupts, utilize Test Algorithms for Memory to described memory element to be measured The step that direct-current short circuit fault carries out detecting comprises the following steps:
Within the time that this PWM described interrupts, write full 0 data to described memory element to be measured;
Read the storage content of described memory element to be measured;
Judge to store whether content is full 0;
If judging, storage content is full 0, then write complete 1 data to described memory element to be measured;
Read the storage content of described memory element to be measured;
Judge to store whether content is complete 1;
If judging, storage content is complete 1, and the fault detect of the most described memory element to be measured is passed through.
4. the volatile storage module fault detection method of microprocessor in electric machine control system as claimed in claim 1, its It is characterised by, described within the time that this PWM interrupts, to be measured at least one continuous print in volatile storage module to be measured Before the storage content of memory element carries out the step backed up, described method is further comprising the steps of: triggers this PWM and interrupts, And interrupt according to this PWM described, utilize the coil of stator of motor that ADC sampling module gathered within the time that last time, PWM interrupted Electric current, calculates the sampling instant within the time that next time, PWM interrupted of the described ADC sampling module;
Described within the time that this PWM described interrupts, if having detected, then by the described storage content recovery of backup to corresponding Memory element described to be measured in step after, described method is further comprising the steps of: this PWM described interrupt time In, open the global interrupt of described microprocessor, within the time that described last time, PWM interrupted, calculated sampling instant arrives Time, trigger ADC and interrupt, so that described ADC sampling module carries out normal acquisition and conversion to described coil of stator of motor electric current.
5. the volatile storage module fault detection method of microprocessor in electric machine control system as claimed in claim 4, its Being characterised by, the frequency that described PWM interrupts is 8KHz, the sampling to described coil of stator of motor electric current of the described ADC sampling module Moment occurs, within last 1/4th cycles that this PWM described interrupts, to treat described in two in the time that described PWM interrupts Survey memory element and carry out fault detect, and the time of described fault detect is 11 μ s.
6. the volatile storage module fault detection system of microprocessor in an electric machine control system, it is characterised in that described System includes:
Backup module, within the time that this PWM interrupts, treats at least one continuous print in volatile storage module to be measured The storage content surveying memory element backs up;
Fault detection module, within the time that this PWM described interrupts, after described backup module is finished, utilizes The direct-current short circuit fault of described memory element to be measured is detected by Test Algorithms for Memory;
Backup and Restore module, for after described fault detection module has detected, described backup module is backed up described in deposit Storage content recovery is in corresponding described memory element to be measured.
7. the volatile storage module fault detection system of microprocessor in electric machine control system as claimed in claim 6, its Being characterised by, described backup module includes:
Submodule is set, for, within the time that this PWM described interrupts, arranging in described volatile storage module to be measured to be measured The memory address range of memory element;
Interrupt arranging submodule, for arranging after submodule is finished described, close the global interrupt of microprocessor, to open The dynamic fault detect to described memory element to be measured;
Redirect submodule, for arranging after submodule is finished in described interruption, the institute that submodule is arranged is set according to described State memory address range and jump to corresponding memory element to be measured;
First judges submodule, for redirecting after submodule is finished described, it is judged that the internal memory of described memory element to be measured Whether address is in prescribed limit;
Preserve submodule, be used for when described first judges that submodule judges that the memory address of described memory element to be measured is on described rule Time in the range of Ding, preserve length and the initial address of memory element to be measured of described memory element to be measured;
Reading submodule, for reading first address and the address, end of back up memory space set in advance;
Second judges submodule, for after described reading submodule is finished, it is judged that whether described back up memory space belongs to In random access memory;
Backup submodule, is used for when described second judges that submodule judges that described back up memory space belongs to random access memory, The length of the memory element described to be measured according to the preservation of described preservation submodule and initial address, by described memory element to be measured Storage content backup is to described back up memory space.
8. the volatile storage module fault detection system of microprocessor in electric machine control system as claimed in claim 6, its Being characterised by, described fault detection module includes:
First write submodule, within the time that this PWM described interrupts, writes full 0 number to described memory element to be measured According to;
First reading submodule, writes the storage content of described memory element to be measured for reading described first write submodule;
Whether the 3rd judges submodule, be full 0 for judging the described storage content that described first reading submodule reads;
Second write submodule, is used for when the described 3rd judges that submodule judges that described first reading submodule is deposited described in reading When storage content is full 0, write complete 1 data to described memory element to be measured;
Second reading submodule, writes the storage content of described memory element to be measured for reading described second write submodule;
Whether the 4th judges submodule, be complete 1 for judging the storage content that described second reading submodule reads, if judging institute The storage content stating the second reading submodule reading is complete 1, then it is assumed that the fault detect of described memory element to be measured is passed through.
9. the volatile storage module fault detection system of microprocessor in electric machine control system as claimed in claim 6, its Being characterised by, described system also includes:
Computing module, before performing at described backup module, triggers this PWM and interrupts, and interrupt according to this PWM described, The coil of stator of motor electric current utilizing ADC sampling module to gather within the time that last time, PWM interrupted, calculates described ADC sampling mould Block sampling instant within the time that next time, PWM interrupted;
Sampling trigger module, for after described Backup and Restore module is finished, within the time that this PWM described interrupts, Open the global interrupt of microprocessor, when calculated sampling instant arrives within the time that described last time, PWM interrupted, trigger ADC interrupts, so that described ADC sampling module carries out normal acquisition and conversion to described coil of stator of motor electric current.
10. a microprocessor for electric machine control system, including volatile storage module, it is characterised in that described microprocessor Also including the fault detection system connecting described volatile storage module, described fault detection system is such as claim 6 to 9 times The volatile storage module fault detection system of microprocessor in one described electric machine control system.
CN201310586811.XA 2013-11-19 2013-11-19 The volatile storage module fault detection method of microprocessor in electric machine control system Active CN103744756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310586811.XA CN103744756B (en) 2013-11-19 2013-11-19 The volatile storage module fault detection method of microprocessor in electric machine control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310586811.XA CN103744756B (en) 2013-11-19 2013-11-19 The volatile storage module fault detection method of microprocessor in electric machine control system

Publications (2)

Publication Number Publication Date
CN103744756A CN103744756A (en) 2014-04-23
CN103744756B true CN103744756B (en) 2016-12-07

Family

ID=50501776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310586811.XA Active CN103744756B (en) 2013-11-19 2013-11-19 The volatile storage module fault detection method of microprocessor in electric machine control system

Country Status (1)

Country Link
CN (1) CN103744756B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116434378A (en) * 2023-03-22 2023-07-14 岚图汽车科技有限公司 A fault recording method, storage medium, system, motor controller and automobile

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5383192A (en) * 1992-12-23 1995-01-17 Intel Corporation Minimizing the likelihood of slip between the instant a candidate for a break event is generated and the instant a microprocessor is instructed to perform a break, without missing breakpoints
DE4418231C2 (en) * 1994-05-25 1997-02-27 Siemens Ag Modularly structured service personal computer

Also Published As

Publication number Publication date
CN103744756A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
Salehifar et al. Observer‐based open transistor fault diagnosis and fault‐tolerant control of five‐phase permanent magnet motor drive for application in electric vehicles
JP5409678B2 (en) Electric motor control device
US7969103B2 (en) Block switching transient minimization for linear motors and inductive loads
US12255565B2 (en) Online monitoring and compensation of stator inter-turn short circuit fault in permanent magnet synchronous machines
CN106953559A (en) The method and apparatus detected for motor-locking or stall
CN109507516A (en) Earth-fault detecting method, system and storage medium based on steady state fault amount
US8810188B2 (en) Position estimation at starting and lower speeds in three-phase switched reluctance machines
Izadi et al. Supervisory algorithm based on reaction wheel modelling and spectrum analysis for detection and classification of electromechanical faults
Combastel et al. Model-based and wavelet approaches to induction motor on-line fault detection
JPWO2010109520A1 (en) Control device and control method for rotating electrical machine
KR20180115552A (en) Inverter system using a single current sensor and methdo of controlling an ac motor using a current prediction technique in the same
CA2961620A1 (en) Motor drive, harness, and motor fault detection for a multi-channel electric brake actuator controller
Bourogaoui et al. Real-time encoder faults detection and rotor position estimation for permanent magnet synchronous motor drives fault tolerant sensorless control using digital signal controller
CN103744756B (en) The volatile storage module fault detection method of microprocessor in electric machine control system
Dybkowski et al. Speed and current sensor fault-tolerant-control of the induction motor drive
Klimkowski et al. Neural network approach for stator current sensor fault detection and isolation for vector controlled induction motor drive
Zhang et al. Fault reconstruction based on sliding mode observer for current sensors of PMSM
CN103746625B (en) The system clock fault detection method of microprocessor in electric machine control system
CN104506105B (en) The discrimination method and device for identifying of rotor polarity
CN101897094A (en) Fault direction determination
KR102152695B1 (en) Apparatus and method of detecting field winding short circuits in 3-phase wound-field synchronous motors
KR101654826B1 (en) System and method for driving multi-core architecture based AC motor position sensorless
CN103744413B (en) The core register fault detection method of microprocessor in electric machine control system
CN103745754B (en) Microprocessor non-volatile memory failure detection method in electric machine control system
JP2010148158A (en) Method of detecting output current of pwm inverter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant