| поискавой системы для электроныых деталей |
|
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 |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |