avihai
Newbie level 6
Hi!
I have a supply voltage of 3V-15V and a 100kHz PWM.
I'd like to generate a sawtooth that goes up from 0V to the supply voltage when the PWM is at "high" and falls very fast to zero when the PWM is "low".
The important thing is that it will be linear and the "ramp" will vary linearly according to the supply voltage and the falling PWM will cut immediately the sawtooth to zero.
So for example a simple diode and capacitor charging circuit is not good for me because of the diode's forward voltage and the capacitor charging shape exponentially.
I'd like also to do exactly the same on the inverted PWM but the sawtooth goes up to the supply voltage when PWM is "low" and falls very fast to zero when the PWM is "high. In this case, I also need that when the PWM finishes, the sawtooth will stop.
The limitation here is that I must do this in pure hardware, without MCU and coding.
Thank you for the ideas!
I have a supply voltage of 3V-15V and a 100kHz PWM.
I'd like to generate a sawtooth that goes up from 0V to the supply voltage when the PWM is at "high" and falls very fast to zero when the PWM is "low".
The important thing is that it will be linear and the "ramp" will vary linearly according to the supply voltage and the falling PWM will cut immediately the sawtooth to zero.
So for example a simple diode and capacitor charging circuit is not good for me because of the diode's forward voltage and the capacitor charging shape exponentially.
I'd like also to do exactly the same on the inverted PWM but the sawtooth goes up to the supply voltage when PWM is "low" and falls very fast to zero when the PWM is "high. In this case, I also need that when the PWM finishes, the sawtooth will stop.
The limitation here is that I must do this in pure hardware, without MCU and coding.
Thank you for the ideas!