Hi,
I use Mega128L and I want to toggle COM1C0 in TCCR1A, and I wrote:
if ((TCCR1A & _BV(COM1C0)) == 0x00)
{
TCCR1A |= _BV(COM1C0);
}
else
{
TCCR1A &= ~(_BV(COM1C0));
}
but it just take too many clock cycles, so I want faster code.
anyone have good idea?