AnsweredAssumed Answered

Correct use of UIF flag for counting internal clock cycles

Question asked by Onkar Chincholkar on Jan 19, 2018
Latest reply on Jan 19, 2018 by Andrew Neil

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

Outcomes