Let's say i have a clock signal which i control its frequency making it going from 10Hz to 1000Hz.
And i want to convert this to PWM signal, so that 10Hz gives 0% duty cycle and 1000Hz gives 100% duty cycle.
How can i make such conversion?
Note: What i'm trying to do in reality is control a DC motor with a Stepper motor driver, The stepper motor driver output Dir and Pulsation signals, and i want to take the pulsation signal (that varies in frequency according to speed) and use it to control the DC motor.