background image

  
 
 

 

 

THIS SPEC IS OBSOLETE 

 
 
 
 

Spec No

: 002-04392 

 

 

 

 

 

 
 
 
 

Spec Title

: MB9AF132K, S6E1A1 FM3/0+ FAMILY FAN 

MOTOR CONTROL USER MANUAL

 

 
 
 
 
Replaced by

:  NONE 

Содержание FM0+ S6E1A1 Series

Страница 1: ...THIS SPEC IS OBSOLETE Spec No 002 04392 Spec Title MB9AF132K S6E1A1 FM3 0 FAMILY FAN MOTOR CONTROL USER MANUAL Replaced by NONE...

Страница 2: ...32K S6E1A1 FM3 0 Family Fan Motor Control User Manual Doc No 002 04392 Rev B Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 1 408 943 2600 www cypre...

Страница 3: ...NTABILITY AND FITNESS FOR A PARTICULAR PURPOSE To the extent permitted by applicable law Cypress reserves the right to make changes to this document without further notice Cypress does not assume any...

Страница 4: ...Architecture 6 3 2 IAR Project File Architecture 6 3 3 Firmware Flow Chart 8 4 Event Function 9 4 1 Function List 9 4 2 Function Prototype 11 5 User Interface 23 5 1 Customer Interface Variable List...

Страница 5: ...elopment of new products 1 2 Definitions Acronyms and Abbreviations API Application Programming Interface FOC Field Oriented Control HW Hardware FW Firmware I O Input and output RAM Random Access Memo...

Страница 6: ...le 1 MCU Hardware Development Environment System Description MCU S6E1A1 Hardware FAN_Motor_SOLU V0 2 1 Emulator J Link V8 Motor type Fan motor 2 RS 80 Ke 120 Ls 620 2 2 Software Environment Table 2 MC...

Страница 7: ...fected the files in the lower layer can call the files in the upper layer In most cases the files in upper layer call the files in the lower layer 3 2 IAR Project File Architecture According to the fi...

Страница 8: ...laration and variables definition folder H04 Application Application function declaration and variables definition folder H05 User Hardware parameters and software parameters and MCU configuration hea...

Страница 9: ...Initial Timer Stop N Communication Set Target Speed Y Re start N Re start Function Y Start N Start Function Y If the function is selected please enable the macro Initial NVIC Stop Function End Runnin...

Страница 10: ...aken Field weaken algorithm function N A LogicRightShift Bit logic right shift function N A Sqrt Square root function N A Lpf One order low pass filter N A DifferParamsLpf Differ parameters low pass f...

Страница 11: ...tor judge algorithm function N A abcon_map Effective vector distribution function N A SVPWM_Calc SVPWM algorithm event function N A Write_Motor1_MFT_Register MFT register value assignment N A InitNVIC...

Страница 12: ...Return N A Description Park transform Remark N A 4 2 3 void InvertClackeTransform Prototype void InvertClackeTransform AlphaBetaS Input UVWAxiahS Output Parameter stator coordinate variables u v w sta...

Страница 13: ...n void Description Current sampling event function Remark N A 4 2 8 void DT_Compensation Prototype void DT_Compensation void Parameter void Return void Description Dead time compensation algorithm fun...

Страница 14: ...hift digits Return void Description Bit logic right shift function Remark N A 4 2 13 unsigned long Sqrt Prototype unsigned long Sqrt unsigned long Root Parameter Data input Data output Return void Des...

Страница 15: ...frequency Return Void Description Position Estimator function initialization Remark N A 4 2 18 void Initial_Motor1_RunPar Prototype static void Initial_Motor1_RunPar uint32_t sample_freq Parameter Car...

Страница 16: ...tion Motor speed regulate function Remark N A 4 2 23 void Motor1_Limit_Calc Prototype void Motor1_Limit_Calc void Parameter Void Return void Description Motor limit voltage and current function Remark...

Страница 17: ..._t pstcProtectParams Parameter Motor protection parameters Return Void Description Motor error status handler function Remark N A 4 2 28 void Motor1_Protect Prototype void Motor1_Protect stc_Protect_t...

Страница 18: ...speed target torque Return void Description Speed loop PI controller function Remark N A 4 2 33 uint32_t u32Q22_ArcTan Prototype uint32_t u32Q22_ArcTan int32_t i32Q8_Y int32_t i32Q8_X Parameter BEMF i...

Страница 19: ...id Comm_Duration_Calc Prototype void Comm_Duration_Calc SVPWM_CalculateS Motor_SVPWMPar Parameter SVPWM parameters Return void Description Vector time calculate function Remark N A 4 2 39 void Sector_...

Страница 20: ...tor1_MFT_Register SVPWM_CalculateS SVPWM_Par Parameter Effective Vector value Return void Description MFT register value assignment Remark N A 4 2 43 void InitNVIC Prototype void InitNVIC void Paramet...

Страница 21: ...ch dog mode initialization Remark N A 4 2 48 void Motor1_configPWM Prototype void Motor1_configPWM uint32_t parameter Parameter Current loop frequency Return void Description PWM carrier frequency con...

Страница 22: ...ermal_Protect Prototype void Thermal_Protect stc_thermalprotection_t pstcThermalParams Parameter Thermal sensor parameters Return void Description Disable SVPWM mode Remark N A 4 2 54 void RMS_Calc Pr...

Страница 23: ...22 4 2 56 void CAP_Charge Prototype void CAP_Charge stc_capparams_t charge Parameter CAP charge function parameters Return void Description Disable SVPWM mode Remark N A 4 2 57 void Main Prototype voi...

Страница 24: ...ion parameter Motor1_qki Q axis current loop integral parameter Motor1_qkp Q axis current loop proportion parameter Motor1_ski Speed loop integral parameter Motor1_skp Speed loop proportion parameter...

Страница 25: ...Motor1_Over_CurrentA Software over current point Motor1_max_dcvoltageV DC bus over voltage point Motor1_min_dcvoltageV DC bus under voltage point Motor1_Error_keep_timeS Fault maintain time Motor1 Ru...

Страница 26: ...1_Ld Data type float Description PMSM d axis phase inductance Unit mH Note This parameter can be obtained from motor parameters or testing manually 5 2 3 Motor1_Lq Data type float Description PMSM q a...

Страница 27: ..._pole_pairs Motor1_Ke 1000 Motor1_Res A0 2 T A 5 2 4 Motor1_Res Data type float Description PMSM line resistor Unit Measure method Test any two phases of resistance using multi meter record three test...

Страница 28: ...cription D axis current loop proportion parameter Unit none Range about 0 3 5 2 10 Motor1_qki Data type float Description Q axis current loop integral parameter Unit none Range about 0 3 5 2 11 Motor1...

Страница 29: ...Motor1_Force_Inc_Speed_Hz Data type float Description PMSM open loop acceleration According to motor inertia the greater inertia of the motor is the smaller the parameter value becomes Unit Hz 5 2 20...

Страница 30: ...s 5 2 25 Motor1_Pre_CloseLoop_Current_MinA Data type float Description Minimum current before closed loop Unit A 5 2 26 Motor1_Pre_CloseLoop_Current_MaxA Data type float Description Maximum current be...

Страница 31: ...cription DC bus over voltage point Unit V 5 2 33 Motor1_min_dcvoltageV Data type unsigned short Description DC bus under voltage point Unit V 5 2 34 Motor1_Error_keep_timeS Data type unsigned short De...

Страница 32: ...Min_RPM Data type unsigned short Description Minimum speed Unit RPM 5 2 43 Motor1_Rotor_direction Data type unsigned char Description Motor rotate direction Unit none Range 0 clockwise 1 anticlockwise...

Страница 33: ...3 VF_Diagnose 5 2 50 MOTOR1_PWM_POLAR_AVAILABLE Data type macro definition Description Motor1 control PWM output polarity Range 0 LOW_POLAR 1 HIGH_POLAR 5 2 51 SYS_CLOK Data type macro definition Des...

Страница 34: ...ro definition Description thermal protect function enable flag if the parameters are enabled when the temperature of the motor rises the speed will slow down if the temperature exceeds the max value m...

Страница 35: ...Data type macro definition Description AD converter resolution Unit bit Range 1 bit 12 bit 5 2 64 ADC_REF Data type macro definition Description ADC reference voltage Unit V Range 1 8 V 3 3 V 5 V 5 2...

Страница 36: ...tor1_Current_Amplifier_Multiple Data type macro definition Description Current amplifying circuit coefficient Unit none Calculation process as shown in Figure 8 Motor1_Current_Amplifier_Multiple R111...

Страница 37: ...pe macro definition Description the maximum of motor1 estimate filters K value Unit None Range according to motor characteristic hardware and sensor circuit performance 5 2 72 MOTOR1_BEMF_LPFK_MIN_HZ...

Страница 38: ...rrupt N A WdgSwCallback Soft watch dog interrupt N A ISR_MFT0_FRT FRT interrupt N A DtifIntCallback DTTI interrupt N A ISR_ADC_unit0 ADC0 interrupt N A RtUnderflowIntHandler Base timer interrupt N A 6...

Страница 39: ...ority List Table 6 Interrupt Priority Table Interrupt Vector Priority M3 M0 DtifIntCallback 0 0 WdgHwCallback Or WdgSwCallback 1 0 ISR_ADC_unit0 2 1 ISR_MFT0_FRT 3 2 RtUnderflowIntHandler 4 3 6 2 3 In...

Страница 40: ...System Debug Sample 7 1 System Build 7 1 1 Demo Board Connect When you get a Fan Motor board as shown in Figure 11 connect as follows Power supply interface Emulator debug interface Motor three phase...

Страница 41: ...e project name ArmInverterPlatform eww the opened project interface is shown in Figure 12 Figure 12 IAR Project Interface 7 1 3 Configure Hardware and Software 1 Configure Motor Interface Location Whe...

Страница 42: ...ion 3 Configure MCU Register Interrupt and motor parameters location as shown in Figure 15 Figure 15 Configure MCU Register Interrupt and Motor Parameters File Structure Configure MCU Frequency Interr...

Страница 43: ...xample define the motor name to Fan_Motor_Type_2 as shown in Figure 16 Figure 16 Define Motor Name 2 Copy and paste a data set as shown in Figure 17 Modify the motor pole reluctance inductance and ind...

Страница 44: ...Start up with orient and open loop set the orient duration and open loop current 2 According to motor inertia and motor minimum operation frequency set the acceleration and close loop frequency with...

Страница 45: ...on should depend on IPM or MOSFET hardware performance Theoretically the time should be as short as possible in order to eliminate harmonic and control error 3 Set the motor maximum current according...

Страница 46: ...ArmInverterPlantform and right click Then select Rebuild All or click Project Rebuild All as shown in Figure 22 and Figure 23 Figure 22 Code Rebuild 1 Figure 23 Code Rebuild 2 7 2 2 Download Code Whe...

Страница 47: ...s and data Figure 25 Run Button Right click View Live Watch to enter the interface type the global variable names in Live Watch window For example Motor1_RunPar as shown in Figure 26 Expand the struct...

Страница 48: ...Set the parameters as shown in Figure 27 Figure 27 Parameters Watch Window Figure 28 Start up Current Waveform 100 mA 1s scale 2 Start up with no orient and open loop mode Set the parameters as shown...

Страница 49: ...scale 7 2 4 2 Debug PI Parameters Adjust the PI controller parameters according to motor status and current waveform 1 Speed Loop a Set a group over large PI parameters as shown in Figure 33 the motor...

Страница 50: ...s PI parameters as shown in Figure 39 the motor current can t follow the reference current the system enter error the motor current waveform is shown in Figure 40 Figure 39 D and Q Axis PI Parameters...

Страница 51: ...the IAR workbench Step 3 Twist the resistance knob clockwise or anti clockwise slowly as shown in Figure 43 to record the motor speed Figure 43 Knob of Demo Board 7 2 6 Torque Control Mode To achieve...

Страница 52: ...x00 Motor initial state or status normal none 0x01 Over DC voltage none 0x02 Under DC voltage none 0x04 Soft over current none 0x08 Hardware over current none 0x10 Motor Loss phase none 0x20 No connec...

Страница 53: ...ur website http www cypress com applications home appliances inverter fan motor For more information on Software and Sample program visit our website http www cypress com products fm3 mb9bx10t series...

Страница 54: ...ory Document Title MB9AF132K S6E1A1 FM3 0 Family Fan Motor Control User Manual Document Number 002 04392 Revision Issue Date Origin of Change Description of Change 08 03 2015 ZHFA Initial release A 07...

Отзывы: