Hi,
Since you want to basically complement the 2 outputs, the timing part is easy; assuming you are on 50 Hz, your circuit should see a zero crossing every 10 ms. Therefore, if the delay for one output is X, the other would be (10000-X) us.
Now, the difficult part is that at times X will be less than (10000-X), and more than (10000-X) the other times.
You'll need to therefore determine the sequence of servicing the 2 outputs.
E.g., IF X < (10000-X) THEN PAUSEUS X, SWITCH ON TRIAC1, PAUSEUS (10000-X), SWITCH ON TRIAC2.
IF X > (10000-X) THEN PAUSEUS (10000-X), SWITCH ON TRIAC1, PAUSEUS X, SWITCH ON TRIAC2.
Take care of the situation when X = (10000-X) !
Also allow for the time taken for the actual execution, or else you'll miss the subsequent zero crossing. This you could do by taling the half cycle width to be, say, 9000 us seconds instead of 10000.
Hope this helps!
Regards,
Anand Dhuru
Bookmarks