Design Tips: Use Peripherals where ever possible (Rotary encoder with STM32)
When it comes to embedded systems, the most important thing is the execution time required for your main loop. It determines your system's responsiveness and power consumption. To drive that point home, today, we will see how to interface a rotary encoder to an STM32. And shorten the time spent in the control loop by using peripherals. Tip: Use microcontroller's…