Hi, I am completely new to STM32 MCU programming. I am trying to make a simple variable frequency complementary square wave generator with my STM32F103C8T6 blue pill to drive an inductive load. I'd like to use a potentiometer to vary the frequency.
Frequency range I'm looking for is from 60 kHz to 200 Khz. Here's the code I generated with Cube IDE. It initializes the GPIOs, ADC, and PWMs but I don't know how to integrate a potentiometer in this code and be able to vary the frequency of the comp...