Question
How can I count TIM1 overflow when TIM1 was external clock mode 1
Hi I am the new for stm32
I use perih. library for stm32f0. Could you show using register not hal library
My code is like below
void TIM1_BRK_UP_TRG_COM_IRQHandler(){
if(TIM_GetITStatus(TIM1,TIM_IT_Trigger) != RESET){
if((TIM1->CR1 &TIM_CR1_URS )== RESET ){
tut++ ;}
}
TIM_ClearITPendingBit(TIM1, TIM_IT_Trigger);
}