Using TIM1 To Count External Pulses On STM32H563
I am playing with the TIM_InputCapture example (calculates frequency of external pulse) for the NUCLEO-H563ZI dev board. The example works OK except:
- Frequency is not updated for no edges (signal generator off)
- Minimum frequency is about 3KHz. I need to measure 0 - 2KHz
There should be a way to trigger the latching of the count reg in SW rather than the timer. The pulse frequency is low enough that I can look at the pulse count in non-ISR code.
How do I (a) trigger the latching of the count reg, and (b) disable the timer event?
