CN113992072A - Internal circuit control and regulation process of permanent magnet synchronous motor and protection system thereof - Google Patents

Internal circuit control and regulation process of permanent magnet synchronous motor and protection system thereof Download PDF

Info

Publication number
CN113992072A
CN113992072A CN202111287762.0A CN202111287762A CN113992072A CN 113992072 A CN113992072 A CN 113992072A CN 202111287762 A CN202111287762 A CN 202111287762A CN 113992072 A CN113992072 A CN 113992072A
Authority
CN
China
Prior art keywords
interruption
module
adc
permanent magnet
output
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.)
Pending
Application number
CN202111287762.0A
Other languages
Chinese (zh)
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.)
Lishui University
Original Assignee
Lishui University
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 Lishui University filed Critical Lishui University
Priority to CN202111287762.0A priority Critical patent/CN113992072A/en
Publication of CN113992072A publication Critical patent/CN113992072A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/08Arrangements for controlling the speed or torque of a single motor
    • 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/085Emergency 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 against excessive load
    • 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/09Emergency 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 against over-voltage; against reduction of voltage; against phase interruption
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P25/00Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details
    • H02P25/02Arrangements or methods for the control of AC motors characterised by the kind of AC motor or by structural details characterised by the kind of motor
    • H02P25/022Synchronous motors
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P29/00Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors
    • H02P29/02Providing protection against overload without automatic interruption of supply
    • H02P29/024Detecting a fault condition, e.g. short circuit, locked rotor, open circuit or loss of load
    • H02P29/0241Detecting a fault condition, e.g. short circuit, locked rotor, open circuit or loss of load the fault being an overvoltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P29/00Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors
    • H02P29/02Providing protection against overload without automatic interruption of supply
    • H02P29/024Detecting a fault condition, e.g. short circuit, locked rotor, open circuit or loss of load
    • H02P29/027Detecting a fault condition, e.g. short circuit, locked rotor, open circuit or loss of load the fault being an over-current
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P29/00Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors
    • H02P29/02Providing protection against overload without automatic interruption of supply
    • H02P29/024Detecting a fault condition, e.g. short circuit, locked rotor, open circuit or loss of load
    • H02P29/028Detecting a fault condition, e.g. short circuit, locked rotor, open circuit or loss of load the motor continuing operation despite the fault condition, e.g. eliminating, compensating for or remedying the fault
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P29/00Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors
    • H02P29/02Providing protection against overload without automatic interruption of supply
    • H02P29/032Preventing damage to the motor, e.g. setting individual current limits for different drive conditions
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/14Electronic commutators
    • H02P6/16Circuit arrangements for detecting position
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P6/00Arrangements for controlling synchronous motors or other dynamo-electric motors using electronic commutation dependent on the rotor position; Electronic commutators therefor
    • H02P6/28Arrangements for controlling current

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)

Abstract

The invention discloses an internal circuit protection system of a permanent magnet synchronous motor, which comprises a main circulation module, overcurrent interruption, CPA interruption, ADC interruption and TO interruption, wherein the main circulation module is in bidirectional connection with the TO interruption, the main circulation module is in bidirectional connection with the ADC interruption and the overcurrent interruption respectively, the ADC interruption is in bidirectional connection with the TO interruption, the TO interruption is in bidirectional connection with the overcurrent interruption, and the TO interruption is in bidirectional connection with the CPA interruption. The internal circuit of the permanent magnet synchronous motor controls the regulation process and the protection system thereof, the circuit adopts a non-isolated current type driving circuit, and the circuit is characterized in that no photoelectric coupling isolation device is arranged, so that a lot of cost is saved, even when a controller chip is reset or started, the IO port of the chip is in a tri-state, no current exists, and the driving circuit is in a closed state.

Description

Internal circuit control and regulation process of permanent magnet synchronous motor and protection system thereof
Technical Field
The invention relates to the technical field of permanent magnet synchronous motors, in particular to an internal circuit control and regulation process and a protection system of a permanent magnet synchronous motor.
Background
The permanent magnet synchronous brushless direct current motor consists of a motor main body and a driver, and is a typical electromechanical integrated product. A brushless motor refers to a motor without a brush and a commutator (or a slip ring), which is also called a commutator-less motor. In the design of the brushless direct current motor, a control circuit carries out logic conversion on a signal detected by a rotor position sensor to generate a pulse width modulation signal (PWM), the PWM is amplified by a driving circuit and is transmitted to each power switch tube of an inverter circuit so as to control a motor and each phase winding to work in a certain sequence, a jump type rotating magnetic field is generated in an air gap of the motor, and the motor is enabled to run in a certain direction under the action of the magnetic field. The core and key of the current position sensorless control research of the permanent magnet brushless motor are that a rotor position signal detection circuit is constructed, and reliable rotor position signals are indirectly obtained from software and hardware to trigger and conduct corresponding power devices to drive the motor to operate. In recent years, many position signal detection methods have appeared at home and abroad, and the mature methods mainly include a back electromotive force method, a stator third harmonic method, a freewheeling diode method, an inductance method and the like.
However, the actual position detection signal of the existing electronically commutated dc motor is obtained after resistance-capacitance filtering, and the zero-crossing point of the existing electronically commutated dc motor inevitably generates a phase shift, so that the position detection is inaccurate, which is a disadvantage. Appropriate phase correction must be carried out in application, and meanwhile although a hardware detection circuit required by a software implementation method is simple, a control chip is required to carry out AD conversion in real time to calculate the counter electromotive force zero crossing point, so that the method is long in occupied time and not beneficial to system development.
Disclosure of Invention
The invention aims to provide an internal circuit control and regulation process of a permanent magnet synchronous motor and a protection system thereof, so as to solve the defects that in the prior art, the actual position detection signal of the electronic commutation type direct current motor is obtained after resistance-capacitance filtering, the zero crossing point of the actual position detection signal inevitably generates phase shift, and the position detection is inaccurate. Appropriate phase correction must be carried out in application, and meanwhile although a hardware detection circuit required by a software implementation method is simple, a control chip is required to carry out AD conversion in real time to calculate the counter electromotive force zero crossing point, so that the method is long in occupied time and not beneficial to system development.
In order to achieve the purpose, the invention provides the following technical scheme: an internal circuit protection system of a permanent magnet synchronous motor comprises a main circulation module, an overcurrent interrupt, a CPA interrupt, an ADC interrupt and a TO interrupt, wherein the main circulation module is in bidirectional connection with the TO interrupt, the main circulation module is in bidirectional connection with the ADC interrupt and the overcurrent interrupt respectively, the ADC interrupt is in bidirectional connection with the TO interrupt, the TO interrupt is in bidirectional connection with the overcurrent interrupt, and the TO interrupt is in bidirectional connection with the CPA interrupt;
the device also comprises a reset circuit, an initialization chip, an initialization variable module, a throttle valve detection module and an overvoltage protection module.
Preferably, the overcurrent interrupt, CPA interrupt and ADC interrupt are all high priority, and the TO interrupt is low priority:
preferably, the output end of the initialization variable module is connected with the input end of the throttle valve detection module, and the output end of the throttle valve detection module is connected with the input end of the overvoltage protection module.
Preferably, the output end of the overvoltage protection module is connected with the input end of the main circulation module, and the main circulation module internally comprises a hall starting unit and a motor phase change unit.
Preferably, the output end of the reset circuit is connected with the input end of an initialization chip, and the output end of the initialization chip is connected with the input end of an initialization variable module.
Preferably, the initialization variable module internally includes an initialization ADC module and an initialization PWM module.
An internal circuit control and regulation process of a permanent magnet synchronous motor comprises the following steps:
the method comprises the following steps: interrupting the overcurrent in the current, serving a subroutine, then ensuring that the permanent magnet synchronous motor delays for 150ms before detecting the current, waiting for the current to be stable, prohibiting one part from synchronizing ADC conversion with PWM, acquiring a bus current from an ADC channel by the other part, obtaining a bus current sampling value I, if the bus current sampling value is greater than amplitude limiting, forcing PWM0, PWM2 and PWM4 to output high, forcing PWM1, PWM3 and PWM5 to output low, closing an MOS (metal oxide semiconductor) transistor, and immediately entering a system protection mode;
step two: if the bus current sampling value is not more than the amplitude limit, forcing the PWM0, PWM2 and PWM4 to output high, forcing the PWM1, PWM3 and PWM5 to output high, acquiring the sampling current from an ADC channel, obtaining the bus current sampling value two again, if the bus current sampling value is more than the amplitude limit, forcing the PWM0, PWM2 and PWM4 to output high, forcing the PWM1, PWM3 and PWM5 to output low, closing the MOS transistor, and immediately entering a system protection mode;
step three: if the bus current sampling value II is less than or equal to the amplitude limit, the output of PWM0, PWM2 and PWM4 is forced to be high, the output of PWM1, PWM3 and PWM5 are forced to be low, the MOS tube is closed, the bus current sampling value III is obtained immediately, if the bus current sampling value II is greater than the amplitude limit, the output of PWM0, PWM2 and PWM4 is forced to be high, the output of PWM1, PWM3 and PWM5 are forced to be low, the MOS tube is closed, and the system protection mode is entered;
step four: if the third bus current sampling value is less than or equal to the amplitude limit, judging whether the system recovers from the instantaneous overcurrent, if not, repeating the step, recovering and enabling the PWM function, enabling the ADC conversion to be synchronous with the PWM, and finally finishing the interruption of the instantaneous overcurrent.
Compared with the prior art, the invention has the beneficial effects that: the internal circuit of the permanent magnet synchronous motor controls the regulating process and the protection system thereof, the circuit adopts a non-isolated current type driving circuit, and is characterized in that no photoelectric coupling isolation device is arranged, and a lot of cost is saved. Even when the controller chip is reset or started, the IO port of the chip is in a tri-state, no current exists, and the driving circuit is in a closed state. The drive logic is positive logic, protects the overvoltage in the main program flow, and the choke valve can further be examined simultaneously, and the helper program lasts and constantly operates to the interrupt condition of difference has been designed and a plurality of programs are operated, is favorable to further improving the practicality of system itself.
And meanwhile, the system corrects the phase of the detected position, and performs AD conversion in real time through a chip, so that the occupied time is reduced.
Drawings
FIG. 1 is a schematic diagram of the overall internal circuit program architecture of a permanent magnet synchronous motor according to the present invention;
FIG. 2 is a schematic diagram of a circuit transmission flow according to the present invention;
FIG. 3 is a schematic diagram of the TO interrupt flow of the present invention;
FIG. 4 is a schematic diagram of an ADC interrupt flow according to the present invention;
FIG. 5 is a schematic diagram illustrating a transient overcurrent interrupt process according to the present invention;
FIG. 6 is a schematic diagram of commutation detection according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-6, the present invention provides a technical solution: an internal circuit protection system of a permanent magnet synchronous motor comprises a main circulation module, an overcurrent interruption module, a CPA interruption module, an ADC interruption module and a TO interruption module, wherein the main circulation module is in bidirectional connection with the TO interruption module, the main circulation module is respectively in bidirectional connection with the ADC interruption module and the overcurrent interruption module, the ADC interruption module is in bidirectional connection with the TO interruption module, the TO interruption module is in bidirectional connection with the overcurrent interruption module, and the TO interruption module is in bidirectional connection with the CPA interruption module;
the device also comprises a reset circuit, an initialization chip, an initialization variable module, a throttle valve detection module and an overvoltage protection module.
In the invention: the output end of the reset circuit is connected with the input end of the initialization chip, and the output end of the initialization chip is connected with the input end of the initialization variable module.
In the invention: the initialization variable module internally comprises an initialization ADC module and an initialization PWM module. The operation steps of initializing the ADC module are as follows:
Function: void InitADC(void)
desrbe initializing ADC
Return, none
date:20170801
**********************************************************************
void InitADC(void)
{
ADCPWM = ADCSyncPWM_Position2;
ADCFG = ADC_8Bit | ADCSampleHold_8T | ADC_Ch1 | ADCClock_By8;
//choose 8bit ADC use P0_1 with 24.5MHz/8=3.0625MHz ADC //operation clock and 16T sample hold
ADAEN = P00Analog_Enable | P01Analog_Enable | P06Analog_Enable;
// P00 as a supply voltage test. P01 and P06: as overcurrent detection
ADCON |= ADC_Start;
}。
The operation steps of initializing the PWM module are as follows:
Function: void InitPWM(void)
Describe: Initial PWM block
return, none
Date:20170801
**********************************************************************
void InitPWM(void)
{
PWMCON1 = PWMFunc_Enable | PWMCK_SYSDiv1 | EagedAlignedWaveForm | Timer5_Enable;
//CenterAlignedWaveForm EagedAlignedWaveForm
// PWMFunc _ Enable =0x80, pwm function is enabled
// PWMCK _ SYSDiv1=0x00, PWM clock division, using sysclk clock
//EagedAlignedWaveForm=0x00
// Timer5_ Enable =0x20, Enable Timer5
PWMCON2 = PWMSyncADC_Enable | (PWM01_Enable | PWM23_Enable | PWM45_Enable)。
An internal circuit control and regulation process of a permanent magnet synchronous motor comprises the following steps:
the method comprises the following steps: interrupting the overcurrent in the current, serving a subroutine, then ensuring that the permanent magnet synchronous motor delays for 150ms before detecting the current, waiting for the current to be stable, prohibiting one part from synchronizing ADC conversion with PWM, acquiring a bus current from an ADC channel by the other part, obtaining a bus current sampling value I, if the bus current sampling value is greater than amplitude limiting, forcing PWM0, PWM2 and PWM4 to output high, forcing PWM1, PWM3 and PWM5 to output low, closing an MOS (metal oxide semiconductor) transistor, and immediately entering a system protection mode;
step two: if the bus current sampling value is not more than the amplitude limit, forcing the PWM0, PWM2 and PWM4 to output high, forcing the PWM1, PWM3 and PWM5 to output high, acquiring the sampling current from an ADC channel, obtaining the bus current sampling value two again, if the bus current sampling value is more than the amplitude limit, forcing the PWM0, PWM2 and PWM4 to output high, forcing the PWM1, PWM3 and PWM5 to output low, closing the MOS transistor, and immediately entering a system protection mode;
step three: if the bus current sampling value II is less than or equal to the amplitude limit, the output of PWM0, PWM2 and PWM4 is forced to be high, the output of PWM1, PWM3 and PWM5 are forced to be low, the MOS tube is closed, the bus current sampling value III is obtained immediately, if the bus current sampling value II is greater than the amplitude limit, the output of PWM0, PWM2 and PWM4 is forced to be high, the output of PWM1, PWM3 and PWM5 are forced to be low, the MOS tube is closed, and the system protection mode is entered;
step four: if the third bus current sampling value is less than or equal to the amplitude limit, judging whether the system recovers from the instantaneous overcurrent, if not, repeating the step, recovering and enabling the PWM function, enabling the ADC conversion to be synchronous with the PWM, and finally finishing the interruption of the instantaneous overcurrent.
The ADC interrupt service flow comprises the following steps:
the method comprises the following steps: the ADC finishes the interrupt service subprogram, transmits the interrupt service subprogram to a semiconductor ReadHall () in the motor for reading, then sets a result of-bMotorFlag, and three result intervals, -bBernt, -bVoltage and Handler are required to be set before the result interval;
step two: the results divided into three times are respectively the sampling results and are sent to-bCurrents, and the ADC channel is switched to-bVoltage next time; sending the sampling result to-bVoltage, and switching the ADC channel to a Handler next time; sending the sampling result to a Handler, and switching the ADC channel to-bBerrrent next time;
step three: the appropriate result is then transferred inside MotorControl () and finally the ADC interrupt ends.
The procedure of the ADC interrupt is as follows:
Function: void ADC_INT(void)
descriptbe ADC interrupt service subroutine
Return, none
Date:20170801
************************************************************
void ADC_INT(void) interrupt K_ADC using RegBank_2
{
bit idata fgPolar;
WORD idata wDuty;
BIF |= ADCF;
ADCON |= ADCReadyINT_Flag;
_fgMotorIsStop = (CAP0CON & Timer5_OverFlow_Flag);
ReadHall();
/***** Update ADC result *****/
switch (_bMotorFlag & 0x07)
{
case 0x 01:// overcurrent section
_bCurrent = ADOH; //P06: Update motor wilding current
ADCFG = (ADCFG & 0x8F) | ADC_Ch0;
_fgADVoltage = 1;
_fgADCurrent = 0;
_bCurrentLPF = CURRENT_LPF100;
_bCurrentRMS = (((WORD)_bCurrentLPF * (CMP0 >> _bMDPRDTrimBit) / (MDPRD >> _bMDPRDTrimBit)) * 100) >> 8;
break;
case 0x 02:// Power supply Voltage protection section
_bVoltage = ADOH; //P00: Update battery voltage
_bVADCTemp=ADOH;
ADCFG = (ADCFG & 0x8F) | ADC_Ch1; _fgADHandler = 1;
_fgADVoltage = 0;
case 0x04:// handle Voltage portion
_bHandler = ADOH; //P01: Update Handler
_bSpeedADTemp=ADOH;
ADCFG = (ADCFG & 0x8F) | ADC_Ch6;
_fgADCurrent = 1;
_fgADHandler = 0;
break;
}
MotorControl();
}。
And the specific procedure for the TO interrupt is as follows:
Function: void TIMER0_INT(void)
Describe: Timer0 interrupt service routine
1ms time interrupt period to check routine work.
Parameter:
Return:
************************************************************
void TIMER0_INT(void) interrupt K_T0 using RegBank_1
{
TL0 = 0x03;
TH0 = 0xFc;
switch(_bTimeSlot)
{
case 0:
_bSpeedADBuf=bSpeedADProcess();
if yes, the AD value is calculated for 4 times and then averaged.
if(P2_0==0) _wMotorPWMCmdInside=0x0490;
else _wMotorPWMCmdInside=wMotoSpeedSet(); break;
case 1:
_bVADCBuf = bVADProcess();
If yes, the voltage AD value is calculated for 4 times and then averaged.
BatteryVoltageProtect();
ClearWatchDog();
break;
case 2:
//ComplementalChk();
CurrentOVRatingProtect();
BrakeControl();
break;
case 3:
HandlebarModeRun();
MotorStoplHalllessMode();
break;
default:
_bTimeSlot = 0;
break;
}
_bTimeSlot++;
_bTimeSlot &= 0x03;
HallLessChangeDeal();
MotoSpeedControl();
}。
As shown in fig. 6, the motor commutation unit operates as follows:
Function: void ChangePos(void) using RegBank_0
desrbe Motor commutation
Return, none
Date:20170801
************************************************************void ChangePos(void)
{
_bTmpHallStates =_bHallPos;
if (_fgCurrentOVRating)
_wDuty = _wCurrentDuty;
else
_wDuty = _wMotoPWMNow;
if (_wDuty < DTR)
_wDuty = DTR + 1;
if (_wDuty > (C_MasterPeriod - DTR))
_wDuty = C_MasterPeriod - DTR;
CMP0 = _wDuty;
CMP1 = CMP0;
CMP2 = CMP0;
PWMCON3 = T_PWMCON3Normal[_bTmpHallStates];
PWMOVRD = T_PWMOVRDNormal[_bTmpHallStates];
}。
In the invention: overcurrent interruption, CPA interruption and ADC interruption are all high priorities, TO interruption is low priority, and the main cycle module internally comprises a Hall starting unit and a motor phase change unit.
In the invention: the output end of the initialization variable module is connected with the input end of the throttle valve detection module, and the output end of the throttle valve detection module is connected with the input end of the overvoltage protection module.
In the invention: the output end of the overvoltage protection module is connected with the input end of the main circulation module, and the output end of the main circulation module is connected with the input end of the main circulation module.
The working principle is as follows: when the invention is used, the normal reset of an internal circuit needs to be maintained, then a chip module and an initialization variable module are initialized, the specific steps are shown in a specific implementation mode, and meanwhile, when the PWM module is initialized, ADC conversion needs to be enabled to be synchronous with a PWM mode, wherein PWMOVRD = PWM0_ OutputLow | PWM1_ OutputLow | PWM2_ OutputLow | PWM3_ OutputLow | PWM4_ OutputLow | PWM5_ OutputLow;
// PWM0_ OutputLow =0x00, PWM0 forces output low level
PWMCON6 |= (HS_P1 | CAP_SEL0);//select P12, P13, P14 as hall sensor source
PWMCON5 |= Timer5CLK_SYSDiv128;//hlp
PWMCON9 = PWM0_POL | PWM2_POL | PWM4_POL;
/(00010101) the upper arm is high then low, the lower arm is high then low, and the lower arm is set high then low, the PWMOVRD values are also reversed
//inverse PWM pattern in PWM0, PWM2, PWM4 because of low level //enabled input pin 3 of IR2103
DTR = 100; //set a suitable dead time according to MOSFET
CMP0 = 0;
CMP1 = 0;
CMP2 = 0;}。
In the running process of the system, the problem of excessive current is easily caused in the processes of the throttle valve detection module and the overvoltage protection module, through current detection, if the current is excessive, a sampling result is rapidly transmitted downwards to help an ADC (analog to digital converter) channel to obtain sampling current, the sampling current is normally used when the current is not higher than the amplitude limit, and the system enters a protection mode and simultaneously closes an MOS (metal oxide semiconductor) tube when the current is higher than the amplitude limit, so that instantaneous overcurrent interruption is finished.
In summary, the following steps: the internal circuit of the permanent magnet synchronous motor controls the regulating process and the protection system thereof, the circuit adopts a non-isolated current type driving circuit, and the permanent magnet synchronous motor is characterized in that no photoelectric coupling isolation device is arranged, and a lot of cost is saved. Even when the controller chip is reset or started, the IO port of the chip is in a tri-state, no current exists, and the driving circuit is in a closed state. The drive logic is positive logic, protects the overvoltage in the main program flow, and the choke valve can further be examined simultaneously, and the helper program lasts and constantly operates to the interrupt condition of difference has been designed and a plurality of programs are operated, is favorable to further improving the practicality of system itself.
And meanwhile, the system corrects the phase of the detected position, and performs AD conversion in real time through a chip, so that the occupied time is reduced.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The related modules involved in the system are all hardware system modules or functional modules combining computer software programs or protocols with hardware in the prior art, and the computer software programs or the protocols involved in the functional modules are all known in the technology of persons skilled in the art, and are not improvements of the system; the improvement of the system is the interaction relation or the connection relation among all the modules, namely the integral structure of the system is improved, so as to solve the corresponding technical problems to be solved by the system.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (7)

1. An internal circuit protection system of a permanent magnet synchronous motor, comprising a main cycle module, an overcurrent interrupt, a CPA interrupt, an ADC interrupt and a TO interrupt, characterized in that: the main circulation module is in bidirectional connection with TO interruption, the main circulation module is in bidirectional connection with ADC interruption and overcurrent interruption respectively, the ADC interruption is in bidirectional connection with the TO interruption, the TO interruption is in bidirectional connection with the overcurrent interruption, and the TO interruption is in bidirectional connection with the CPA interruption;
the device also comprises a reset circuit, an initialization chip, an initialization variable module, a throttle valve detection module and an overvoltage protection module.
2. The internal circuit protection system of a permanent magnet synchronous motor according to claim 1, characterized in that: the overcurrent interrupt, CPA interrupt and ADC interrupt are all high priority, and the TO interrupt is low priority.
3. The internal circuit protection system of a permanent magnet synchronous motor according to claim 1, characterized in that: the output end of the initialization variable module is connected with the input end of the throttle valve detection module, and the output end of the throttle valve detection module is connected with the input end of the overvoltage protection module.
4. The internal circuit protection system of a permanent magnet synchronous motor according to claim 1, characterized in that: the output end of the overvoltage protection module is connected with the input end of the main circulation module, and the main circulation module internally comprises a Hall starting unit and a motor phase change unit.
5. The internal circuit protection system of a permanent magnet synchronous motor according to claim 1, characterized in that: the output end of the reset circuit is connected with the input end of the initialization chip, and the output end of the initialization chip is connected with the input end of the initialization variable module.
6. The internal circuit protection system of a permanent magnet synchronous motor according to claim 1, characterized in that: the initialization variable module comprises an initialization ADC module and an initialization PWM module.
7. The internal circuit control and regulation process of the permanent magnet synchronous motor is characterized in that: the method comprises the following steps:
the method comprises the following steps: interrupting overcurrent in current, delaying for 150ms before ensuring that the permanent magnet synchronous motor detects the current, waiting for the current to be stable, prohibiting one part from ADC conversion to be synchronous with PWM, acquiring bus current from an ADC channel by the other part to obtain a bus current sampling value I, if the bus current sampling value is greater than amplitude limit, forcing PWM0, PWM2 and PWM4 to output high, forcing PWM1, PWM3 and PWM5 to output low, closing an MOS (metal oxide semiconductor) tube, and immediately entering a system protection mode;
step two: if the bus current sampling value is not more than the amplitude limit, forcing the PWM0, PWM2 and PWM4 to output high, forcing the PWM1, PWM3 and PWM5 to output high, acquiring the sampling current from an ADC channel, obtaining the bus current sampling value two again, if the bus current sampling value is more than the amplitude limit, forcing the PWM0, PWM2 and PWM4 to output high, forcing the PWM1, PWM3 and PWM5 to output low, closing the MOS transistor, and immediately entering a system protection mode;
step three: if the bus current sampling value II is less than or equal to the amplitude limit, the output of PWM0, PWM2 and PWM4 is forced to be high, the output of PWM1, PWM3 and PWM5 are forced to be low, the MOS tube is closed, the bus current sampling value III is obtained immediately, if the bus current sampling value II is greater than the amplitude limit, the output of PWM0, PWM2 and PWM4 is forced to be high, the output of PWM1, PWM3 and PWM5 are forced to be low, the MOS tube is closed, and the system protection mode is entered;
step four: if the third bus current sampling value is less than or equal to the amplitude limit, judging whether the system recovers from the instantaneous overcurrent, if not, repeating the step, recovering and enabling the PWM function, enabling the ADC conversion to be synchronous with the PWM, and finally finishing the interruption of the instantaneous overcurrent.
CN202111287762.0A 2021-11-02 2021-11-02 Internal circuit control and regulation process of permanent magnet synchronous motor and protection system thereof Pending CN113992072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111287762.0A CN113992072A (en) 2021-11-02 2021-11-02 Internal circuit control and regulation process of permanent magnet synchronous motor and protection system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111287762.0A CN113992072A (en) 2021-11-02 2021-11-02 Internal circuit control and regulation process of permanent magnet synchronous motor and protection system thereof

Publications (1)

Publication Number Publication Date
CN113992072A true CN113992072A (en) 2022-01-28

Family

ID=79745745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111287762.0A Pending CN113992072A (en) 2021-11-02 2021-11-02 Internal circuit control and regulation process of permanent magnet synchronous motor and protection system thereof

Country Status (1)

Country Link
CN (1) CN113992072A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248294A (en) * 2013-04-28 2013-08-14 天津大学 Position sensor-free double closed-loop speed regulation control method for brushless DC motor
CN204258690U (en) * 2014-12-04 2015-04-08 无锡科技职业学院 A kind of photovoltaic water-raising system
CN104699078A (en) * 2015-02-27 2015-06-10 北京精密机电控制设备研究所 Protection and failure recovery control method of electromechanical servo system
CN105846730A (en) * 2015-01-15 2016-08-10 深圳市索阳新能源科技有限公司 Specialized direct-current variable-frequency motor control system for hybrid electric vehicles and control method thereof
CN106655978A (en) * 2016-11-02 2017-05-10 深圳市道通智能航空技术有限公司 Permanent magnet synchronous motor over-current protection method, over-current protection system and unmanned aircraft
CN107482970A (en) * 2017-08-21 2017-12-15 合肥力正新能源科技有限公司 A kind of dynamic Over Current Protection System of engine controller
CN108599110A (en) * 2018-01-31 2018-09-28 广东美的制冷设备有限公司 Over-current protection method, circuit and the electrical equipment of intelligent power module
CN111510029A (en) * 2020-04-24 2020-08-07 合肥工业大学 ADRC-based brushless direct current motor servo system software design method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248294A (en) * 2013-04-28 2013-08-14 天津大学 Position sensor-free double closed-loop speed regulation control method for brushless DC motor
CN204258690U (en) * 2014-12-04 2015-04-08 无锡科技职业学院 A kind of photovoltaic water-raising system
CN105846730A (en) * 2015-01-15 2016-08-10 深圳市索阳新能源科技有限公司 Specialized direct-current variable-frequency motor control system for hybrid electric vehicles and control method thereof
CN104699078A (en) * 2015-02-27 2015-06-10 北京精密机电控制设备研究所 Protection and failure recovery control method of electromechanical servo system
CN106655978A (en) * 2016-11-02 2017-05-10 深圳市道通智能航空技术有限公司 Permanent magnet synchronous motor over-current protection method, over-current protection system and unmanned aircraft
CN107482970A (en) * 2017-08-21 2017-12-15 合肥力正新能源科技有限公司 A kind of dynamic Over Current Protection System of engine controller
CN108599110A (en) * 2018-01-31 2018-09-28 广东美的制冷设备有限公司 Over-current protection method, circuit and the electrical equipment of intelligent power module
CN111510029A (en) * 2020-04-24 2020-08-07 合肥工业大学 ADRC-based brushless direct current motor servo system software design method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何瑞金: "飞轮储能控制***及能量回馈技术的研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》, no. 3, pages 042 - 481 *

Similar Documents

Publication Publication Date Title
CN101557187B (en) Control device for brushless direct current motor sensorless and method thereof
US8093845B2 (en) Controller and MCU chip for controlling 3-phase brushless DC motor
JP2007037275A (en) Motor driving device also serving as charge control device
CN102790568B (en) Soft start control system for high-speed brushless DC motor
CN101545497B (en) Automobile engine cooling fan control system based on four-phase double-wire winding brushless DC motor
CN104467551B (en) One kind is without hall electric machine smooth starting method
CN102545749A (en) Wide-speed-regulation-range brushless direct current motor position sensorless control device and method
CN203675020U (en) Hand dryer brushless motor controller without position sensor
CN110535378B (en) High-precision phase change control method and system for brushless direct current motor
CN102931894A (en) Method and device for dynamically adjusting dead time of brushless DC motor during phase change
CN105763109A (en) Brushless DC motor phase conversion control method and brushless DC motor control system
CN101364781A (en) Position-sensorless control device for wide speed regulating range brushless DC motor without filter
CN113089259A (en) Three-in-one full-direct-current variable frequency drive integrated control system in washing machine and control method thereof
CN101420198A (en) Five phase DC brushless motor controller
CN201315560Y (en) Direct current brushless motor driving device
CN113992072A (en) Internal circuit control and regulation process of permanent magnet synchronous motor and protection system thereof
CN210273878U (en) Control device for high-power motor control mechanism
CN101958678B (en) Starting method and starting device of high-voltage permanent-magnetism direct-current brushless no-hall motor
CN111934588A (en) Rotor position detection system and method under static state of brushless direct current motor without position sensor
CN205647310U (en) Brushless DC motor&#39;s DSP controlling means
JP2020025435A (en) Integrated circuit and motor device
CN103633901A (en) Control method of high-voltage brushless direct-current motor for aviation pump
WO2022247040A1 (en) Intelligent synchronous rectification system of electronic speed controller, and control method for intelligent synchronous rectification system
CN1787355A (en) Monolithic apparatus PWM Controller for brushless DC motor of sensor-free electrical vehicle
CN110635727B (en) Non-inductive three-phase motor control device and ice chiseling machine

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