Correct use of UIF flag for counting internal clock cycles
Posted on January 19, 2018 at 12:10I am writing a simple timer1 based counter derived from internal clockAs soon as TIMx->CR1 |= TIM_CR1_CEN; is executed the counter is overwritten to 0(irrespective of any value stored in CEN register, if it is writ...