2018-01-19 03:10 AM
I am writing a simple timer1 based counter derived from internal clock
As 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 written) and as soon as CEN == 0 the update interrupt flag UIF goes high.
For such functionality what is the use of UIF flag or how can we use the UIF flag?
Controller used - STM32F051R8T6(Discovery board)
IDE used - Attolic truestudio
Thanks for patient reading
Regards
Onkar
#stm32f0-counter2018-01-19 03:29 AM
Duplicate: