Posted on June 19, 2018 at 18:29
I am trying to configure the TIM2 to act as an up/down counter as describe in Encoder mode 1 or 2. I have the circuit set up to connect PB8 to a count signal and PB9 as a direction signal. I have am having an iss...
Posted on July 03, 2018 at 21:42 Sorry for the delay in response. The waveforms look like you would expect: The code above works consistently but at some point the counter starts countingin a random direction at boot.