| 数据搜索系统,热门电子元器件搜索 |
|
UM0580 数据表(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0580 数据表(HTML) 21 Page - STMicroelectronics |
|
21 / 24 page ![]() UM0580 Using the STEVAL-IHM021V1 with the STM32 FOC firmware library 21/24 9.2 Hardware requirements The following items are required to run the STEVAL-IHM021V1 together with the "STM32 FOC firmware library ". ● The STEVAL-IHM021V1 board and MB525 board (STM32 evaluation board with MC connector). ● A high-voltage insulated AC power supply up to 230 Vac. ● A J-link programmer (not included in the package). ● A J-link insulating board (not included in the package). ● A 3-phase brushless motor with permanent magnet rotor (not included in the package). ● An insulated oscilloscope (as necessary). ● An insulated multimeter (as necessary). 9.3 Software requirements To customize, compile and download the "STM32 FOC firmware library v2.0" motor control firmware, the IAR tool "EWARM v5.20 (or v5.11)" must be installed. The free 32-k limited version (referenced as the "KickStart" version) is available for downloading at: http://supp.iar.com/Download/SW/?item=EWARM-KS32-442A . 9.4 Software modifications The "STM32 FOC firmware library v2.0" is compatible with the L6386 high-side driver. To make the firmware compatible with the L6390, you must change the polarity of the PWM driving the low-side transistors. To do so, Follow these steps. 1. In "stm32f10x_svpwm_3shunt.c" substitute line 177 with: TIM1_OCInitStructure.TIM_OCNPolarity = TIM_OCNPolarity_Low; 2. In "stm32f10x_svpwm_3shunt.c" substitute line 88 with: #define IDLE_LOW_SIDE_POLARITY_L6390 TIM_OCIdleState_Set #define LOW_SIDE_POLARITY IDLE_LOW_SIDE_POLARITY_L6390 3. In "MC_MotorControl_Layer.c" substitute lines 49 and 50 with: #define NTC_THRESHOLD (u16) ((225 * (NTC_THRESHOLD_C - 25)) + 10477) #define NTC_HYSTERIS (u16) ((225 * (NTC_THRESHOLD_C - NTC_HYSTERIS_C - 25)) + 10477) 4. In "MC_MotorControl_Layer.c" substitute line 382 with: return ((u8)(((s16)w_Temp_Average - 10477)/225 + 25)); 5. In "MC_Control_Param.h" set the required temperature threshold and hysteresis with: #define NTC_THRESHOLD_C 60 // (°C) #define NTC_HYSTERIS_C 5 // Temperature hysteresis (°C) |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |