2013-10-01 09:42 AM
2013-10-01 10:22 AM
/**
* @brief Enables or disables the TIM peripheral Main Outputs.
* @param TIMx: where x can be 1, 8, 15, 16 or 17 to select the TIMx peripheral.
* @param NewState: new state of the TIM peripheral Main Outputs.
* This parameter can be: ENABLE or DISABLE.
* @retval None
*/
void TIM_CtrlPWMOutputs(TIM_TypeDef* TIMx, FunctionalState NewState)
2013-10-01 10:41 AM
Still, while debugging I get every other peripheral registers updated, including TIM2, DMA, DAC and others just intead of TIM8. Just like passing throught this statement:
TIMx->ARR=TIM_TimeBaseInitStruct->TIM_Period ;no value is stored in TIMx->ARR, even the TIM_Period register is filled with 120.2013-10-01 10:51 AM
If you have a sample program made for STM32F303 TIMER 8 with PLL send it to me please.
2013-10-01 11:17 AM
And you've enabled the APB clock for TIM8?
/* TIM1 clock enable */ RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM1, ENABLE); /* TIM8 clock enable */ RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM8, ENABLE);2013-10-01 11:18 AM
OK the problem is solved, but I am still confused about which clock source I am using either APB2 or SYSCLK*2.
I have added RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM8,ENABLE);before this RCC_TIMCLKConfig(RCC_TIM8CLK_PLLCLK);2013-10-01 11:28 AM
Yay!, :)
I get it confirmed with my DSO NANO.2013-10-01 01:02 PM
The F3 is different in that it can provide a different clock to the counting elements of the timer, the bus side interface of the TIM unit (registers) still runs synchronously with the APB clock.
2013-10-02 07:30 AM
Thanks a lot sir!