Resolved! Solution to avoid immediate TIM IRQ in CMSIS.
Hi,I 'm trying to code TIM to count 5s for me using CMSIS. Using the code snippet provided below I got IRQ immediately.RCC->APBENR2 |= RCC_APBENR2_TIM16EN ; // Enable TIM16 clock TIM16->PSC = 16000 - 1 ; // 1 ms TIM16->ARR = 10000 - 1 ; // 10 s = 100...