| 전자부품 데이터시트 검색엔진 |
|
AN3165 데이터시트(PDF) 22 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3165 데이터시트(HTML) 22 Page - STMicroelectronics |
|
22 / 31 page ![]() Integration principles and description AN3165 22/31 Doc ID 17180 Rev 1 #define PFC_ENABLE When this function is enabled, the built firmware will be the integration between the dual FOC MC and the digital PFC. 4.3.1 Firmware modifications to resolve conflicts between peripherals The following is the code to resolve the conflicts outlined in Section 4.2.2, and demonstrates how the dual FOC MC part reads the bus voltages by means of the PFC part. In the "stm32f10x_svpwm_1shunt.c" module: void SVPWMGetBusSampling(void) { ... pMotor = _GET_MOTOR_POINTER(MAIN_MOTOR); #ifndef PFC_ENABLE pMotor->pPowerStage_Vars->h_ADCBusvolt = ADC_GetInjectedConversionValue(pMotor- >pBusVoltageADC,ADC_InjectedChannel_1); #else pMotor->pPowerStage_Vars->h_ADCBusvolt = (Get_Vdc_main() << 3); //to fit ADC injected configuration #endif ... pMotor = _GET_MOTOR_POINTER(SUB_MOTOR); #ifndef PFC_ENABLE pMotor->pPowerStage_Vars->h_ADCBusvolt = ADC_GetInjectedConversionValue(pMotor- >pBusVoltageADC,ADC_InjectedChannel_1); //pMotor->pPowerStage_Vars->h_ADCTemp = ADC_GetConversionValue(pMotor->pTemperatureADC)>>1; #else pMotor->pPowerStage_Vars->h_ADCBusvolt = (Get_Vdc_sub() << 3); //to fit ADC injected configuration #endif ... } Note: The function "Get_Vdc_main()" exports the converted VDC value, which is also the value of the main motor bus voltage. The function "Get_Vdc_sub()" exports the converted value of the sub-motor bus voltage. Both are managed through the PFC part. |
|
링크 URL |
| 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 |