i have a motor control circuit producing PWM signals at 2.5kHz. The duty cycle can be controlled. I need to connect an LED to show presence of the PWM signal (when duty cycle is not zero), but I need the LED to be of constant brightness, so connecting directly to the PWM output is not the way.
Anyone has any idea how this can be done?
I'm thinking of using D flip flop with the PWM as the clock and data fixed at '1'. But I won't be able to detect 100% and 0% duty cycle