Hi, I am using the ATtiny45 and I need to generate two complementary signals for a transistor drive. I am programming it using the Mega2560 board and the code is in AVR embedded C. I'm wondering how to generate a guard interval between the pulses of the two signals in the fastest possible way. I could do it with a conditional construct and check which of them is high, complement it, insert guard delay and then invert the other. But isn't there a faster way?
I cannot use the CTC mode of timerx that auto-inserts a guard space between updating OCxA and ~(OCxA), because I have both timers working out other things for me. I have to do it with the I/O port registers and very fast.