RS485 - How long should you keep the Driver enable pin HIGH?

I have always assumed using delay to be bad practice

And normally it is.

You can read the TXCn bit in the UCSRnA register to see when the byte has gone.

You can also get an interrupt on that event.


Rob