Nucleo-f401RE frequency measuring using timer
Hello, I am trying to create a simple frequency measuring device using 1 optical encoder and NUCLEO-F401RE board. I want to capture frequency (or period) of impulse, so I was thinking to use input capture mode and capture rising edge of impulses and see Counter value. I don't want to use interrupts or any other method to reset Counter. Ideally, it should be done on hardware and when I need, frequency could be retrieved and read. How I imagine this should works is liek this: Counter starts counting after start function somewhere on main, after impulse positive edge comes it saves the value and resets counter, when next impulse comes, it overwrites the value and again resets the counter. At any time I can read saved value and get current frequency. Is this possible to do without any interruptions in program?
