Duty cycle modification/adjustment circuit/I.C.?

Thread Starter

ericdmurphy

Joined Dec 13, 2016
9
I'm looking for a way to take a external TTL signal, and adjust the duty cycle with out changing the freqeucny. Included is an image with a little better idea.PWM.jpg
 

dl324

Joined Mar 30, 2015
18,220
Welcome to AAC!

Off the top of my head, I'd integrate the input and use a comparator with an adjustable switching level to generate a variable pulse width at the same frequency as the input.
 

Thread Starter

ericdmurphy

Joined Dec 13, 2016
9
I'm not sure I'm understanding. Can you draw something down as an example?

Right now I've been defeated enough to use a 555 with an adjustable frequency and duty cycle in bi-stable mode to trigger two more 555 timers each in monostable mode. I'm currently wiring that up to see if that can give me the desired effect. Will post either more defeat or waveforms soon.

@AlbertHall, yeah, exactly. Thats what I'm trying to do now. I though there might have been some specific IC for this purpose, but as of yet I haven't been able to find it. So that is what I'm doing.
 

bertus

Joined Apr 5, 2008
22,885
Hello,

@dl324 : the output voltage of the integrator will vary quite a bit over the frequency range of 5 - 100 kHz.
@AlbertHall : A monostable will not be able to cover the input frequency range of 5 - 100 kHz.
@ericdmurphy : Your task is not easy due to this huge frequency range.

Bertus
 

Thread Starter

ericdmurphy

Joined Dec 13, 2016
9
Hello,

A monostable will not be able to cover the input frequency range of 5 - 100 kHz.
Your task is not easy due to this huge frequency range.

Bertus
The frequency can be limited a little. I really only need 10k, 20k, 50k. I was just hoping to get a little more range for adjustments within testing
 

Thread Starter

ericdmurphy

Joined Dec 13, 2016
9
New issue...I may need some filtering capacitor between the bistable and monostable stages..Pre-2ndstageBiStable.PNG Post-2ndstageBistable.PNG

This is also messing up the input signal enough to the second stage so that the output of stage 2 is attenuated by an order of magnitude.
 
Last edited:

dannyf

Joined Sep 13, 2015
2,197
I'm looking for a way to take a external TTL signal, and adjust the duty cycle with out changing the freqeucny.
use the external signal to charge a capacitor. and then discharge the capacitor and compare its value vs. a set value (DC control value) -> user controllable DC.
 

dl324

Joined Mar 30, 2015
18,220
I'm not sure I'm understanding. Can you draw something down as an example?
This is what I had in mind:
upload_2016-12-19_17-12-36.png

As @bertus mentioned, the amplitude of the triangle wave will be frequency dependent and the RC time constant (R1C1) needs to be adjusted so it resembles a triangle wave.

When the amplitude of the triangle wave is above Vref, the output pulse will be HIGH. By connecting R2 to 15V, you can get the 15V swing you desired.
 

AnalogKid

Joined Aug 1, 2013
12,045
a 555 has all the necessary components in it to give you a single chip solution.
Nope. For a constant frequency, if the input pulse width (the trigger signal) is wider than the output pulse width is supposed to be, the output pulse width will be incorrect unless you differentiate the input signal, and then you risk the differentiator time constant being too long. A 555 monostable circuit does not have positive feedback, so it is not a true monostable.

Even with a true monostable, having the input frequency vary over a 5:1 range (continuously or in steps, doesn't matter) is a problem for the classic circuit. If you really want one circuit to cover the whole range, this can be done with some extra gating to terminate a long output pulse. However, the adjustment pot will not have the same adjustment range at all freqs. For example, if the pot uses 100% of its mechanical range for 5% to 95% adjustment at 10 kHz, only 20% of its mechanical range will give the same adjustment range at 50 kHz. This might not be enough adjustability precision.

ak
 

Thread Starter

ericdmurphy

Joined Dec 13, 2016
9
Triangele-Amp-Comp.PNG
Channel 4 is the output of the second Amp (Comperator) rise to/fall time much to slow. Currently using a 741. I believe somewhere I have some OpAmps that have a rise/fall time of 100V/us or greater. Will keep you posted.
 

Thread Starter

ericdmurphy

Joined Dec 13, 2016
9
OpAmpComp-817.PNG
Ignore taht error message, didn't realize it would save with that. Either way, that is using an AD817 Op Amp, getting closer. I"ll adjust the bi-stable input and see if I can't get some cleaner signal and a shorter pulse width.
 

Thread Starter

ericdmurphy

Joined Dec 13, 2016
9
@dl324

I can see what your saying with your circuit. I"m having issues getting the triangle wave to be very...well "tringley".

Is that were matching the R and C values comes into play?

TEK00002.PNG

Also, it seems that when I get the comp ref level up towards the higher end, so the pulse will be very short it just skips the higher range, and rails the output.

Would a longer rise/fall time accommodate for that?
 

Thread Starter

ericdmurphy

Joined Dec 13, 2016
9
Update: Even with a straight triangle wave into the comperator, I can't get a clean enough pulse with enough amplitude at a fast enough frequency. When I adjust the ref pot the output just ends up railing. Its no better that just using the bi-stable 555 I have now .
 

dl324

Joined Mar 30, 2015
18,220
Even with a straight triangle wave into the comperator, I can't get a clean enough pulse with enough amplitude at a fast enough frequency. When I adjust the ref pot the output just ends up railing.
Post a schematic of your circuit.

741's are okay as long as you understand their limitations. The common mode input voltage is only guaranteed to be about 3V from the supplies. What supply voltages are you using?

While an opamp *can* be used as a comparator, that doesn't mean it should. A comparator will have a faster response time.

What R and C are you using for the integrator and what is the frequency of the input signal?
 
Top