Maybe two direct port manipulations in full speed is too fast for the OP. If you need the 1.2us, you can use assembler commands to let the processor wait:
__asm__("nop\n\t");
Such a simple nop uses a bit more than 60ns.
Maybe two direct port manipulations in full speed is too fast for the OP. If you need the 1.2us, you can use assembler commands to let the processor wait:
__asm__("nop\n\t");
Such a simple nop uses a bit more than 60ns.