Hi,
I want to implement a function to disable the usart tx and at the same moment enable rx and vice versa.
But now when I do it like this:
void switch_to_rx()
{
UCSR0B |= (1 << RXEN0);
UCSR0B &= ~(1 << TXEN0);
}
it only turns off the register but doesn't enable the other register. Do I have to be careful with timings here?