hi i have square wave start 5 then 0 picture 1with variable duty cycle i want to convert it to the signal in picture2i did integration in picture 3 but didnt invert the signal .

you want to convert a square wave to a triangle wave.

RC filter

This will change with frequency on the output put a resistor to a capacitor that goes to ground where the cap and resistor meet you get a triangle wave.

yes but i need it to be zero on negative square cycle and half triangle at positive edge i did like you said but i need to make it zero at negative square cycle i thought i can do it using scr ?

active| newest | oldestRC filter

This will change with frequency on the output put a resistor to a capacitor that goes to ground where the cap and resistor meet you get a triangle wave.

Joe

Joe

generate the signal 2 from signal 1