Resolved! Count number of pulses on TIM1 input on STM32G031
Hello,I have STM32G031 and I want to use PA8 pin (TIM1_CH1) to count pulses. My idea is to read number of counted pulses every 1 second and reset counter to 0. void TIM1_Init(void) { // Enable TIM1 clock RCC->APBENR2 |= RCC_APBENR2_TIM1EN; ...