- #include "SVPWM.h"
- #include "math.h"
- int Taa,Tbb,Tcc;
- #include "stm32f10x_it.h"
- #include "SVPWM.h"
- #include "IPARK.h"
- extern int Taa,Tbb,Tcc;
- void TIM2_IRQHandler (void)
- {
- if (TIM_GetITStatus(TIM2, TIM_IT_Update)!=RESET)
- {
-
- TIM_ClearITPendingBit(TIM2, TIM_IT_Update);
- TIM1->CCR1 =3598;
- // TIM1->CCR2 =(0.0004/0.0001)*3599;
- TIM1->CCR3 =(Tcc)*99;
- }
- }
|