| Electronic Components Datasheet Search |
|
AN3165 Datasheet(PDF) 24 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3165 Datasheet(HTML) 24 Page - STMicroelectronics |
|
24 / 31 page ![]() Integration principles and description AN3165 24/31 Doc ID 17180 Rev 1 TIM_SelectInputTrigger(TIM5, TIM_TS_ITR0); /* Selects the Trigger Mode as Slave Mode for TIM5 */ TIM_SelectSlaveMode(TIM5, TIM_SlaveMode_Trigger); } Note: TIM2 is used by the dual FOC MC part to synchronize all timers. In the "main.c" module: int main(void) { ... #ifdef PFC_ENABLE TIM5_Configuration(); #endif SVPWM_1ShuntInit(); ... } Note: TIM5_Configuration must be called before any initializations performed by SVPWM_1ShuntInit() . In the "stm32f10x_svpwm_1shunt.c" module: void SVPWMUpdateEvent_TIM8(void) { ... #ifdef PFC_ENABLE TIM5->CCMR2 &= 0xFF8F; TIM5->CCMR2 = (TIM8->CCMR2 >> 8); #endif ... #ifdef PFC_ENABLE TIM5->CCR3 = TIM8->CCR4; #endif ... #ifndef PFC_ENABLE ADC3->CR2 |= ADC_ExternalTrigInjecConv_T8_CC4; #else ADC3->CR2 |= ADC_ExternalTrigInjecConv_T5_TRGO; #endif ... } 4.3.3 Firmware modifications to set IRQ priorities The following is the code to resolve the conflicts outlined in Section 4.2.4. In the private define of the "stm32f10x_svpwm_1shunt.c" module: #ifndef PFC_ENABLE #define ADC3_PRE_EMPTION_PRIORITY 1 #else #define ADC3_PRE_EMPTION_PRIORITY 2 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |