sorry for using capitals. i know spwm working i want how to know compare it and also invert the pulsesWelcome to ETO!
Please note that using all capitals is regarded as shouting.
Your Sine and Tri labels should be swapped.
Try googling "sine wave pwm" to see the standard ways to do this.
what comparator to use it?....To get sinusoidal PWM....you put the sine into the comparator, along with the repeating ramping wave.
So re-base the sine so its always positive........from 0 to 5V say....that being peak to peak...
Then you shove the ramp into the other comparator input.....ensure that the ramp's peak is slightly higher than the sine's peak.
Obviously the frequency of the ramp should be much much faster than the sines frequency.
here i Have attached the file with sine and triangle(ramp) signal in it.You could use the inverting input of an opamp or comparator. If the pulse voltage is a logic level one then instead you could use a digital inverter.
Could please show short image or drawing representation of your saying please?An LM339/393 is a common comparator that should work for your purposes.
Note that, since the output is an open collector, it requires an output pull-up resistor of a few kohm to the V+ supply for proper operation.
Reversing the two input signals to the comparator will reverse the output signal polarity.
You can also use another comparator to reverse the signal polarity.
could you please at least make short image or drawing representation on how to connect it opamp to compare it and invert the output signal?No, it's not my homework, it sounds like it's a homework question that you are doing.
Otherwise where did this problem come from?
could you please at least make short image or drawing representation on how to connect it opamp to compare it and invert the output signal?
No.could you please at least make short image or drawing representation on how to connect it opamp to compare it and invert the output signal?