2010-09-22 06:07 AM
timer synchronization - cascade
2011-05-17 05:08 AM
This code below seems to work. (You'll have to translate the mnemonics to suite your own tool chain.)
g_pRCC->APB1ENR |= TIM2EN; g_pTIM2->ARR = 0XFFFF; g_pTIM2->CR1 = TIM_ARPE; g_pTIM2->CR2 = TIM_MMS1; g_pTIM2->CR1 |= TIM_CEN; g_pRCC->APB1ENR |= TIM3EN; g_pTIM3->ARR = 0XFFFF; g_pTIM3->CR1 = TIM_ARPE; g_pTIM3->SMCR = TIM_TS0 | TIM_SMS2 | TIM_SMS1 | TIM_SMS0; g_pTIM3->CR1 |= TIM_CEN;