2008-08-29 07:42 AM
Variable PWM generation
2011-05-17 03:43 AM
Hi,
Also just to state the obvious are you enabling the clock and pointing to the right int handler. i.e. RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3 , ENABLE); NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0; NVIC_InitStructure.NVIC_IRQChannel = TIM3_IRQChannel; NVIC_Init(&NVIC_InitStructure);2011-05-17 03:43 AM
based on your code, looks like you used interrupt for TIM_ITConfig(TIM3, TIM_IT_Update, ENABLE);
and in Interrupt handler you are checking for if (TIM_GetITStatus(TIM3, TIM_IT_CC3)!= RESET) both should be same either you use CC3 or IT_Update