PDA

View Full Version : Reversing RS485 line



dhouston
- 8th July 2007, 18:41
I will be working on a master/slave RS485 network. On the master PIC I'll use DEBUG/DEBUGIN.

Can I assume that all bits have been transmitted and it's safe to reverse the line as soon as DEBUG returns?

Darrel Taylor
- 9th July 2007, 01:03
Well, looking at the macros for debug, it definately waits till the end of the Stop bit before continuing.

But that's probably not a definitive answer to "is it safe".
<br>

dhouston
- 9th July 2007, 02:08
Thanks Darrel - that's definitive enough. Most hardware solutions reverse the line 25-50µS after the trailing edge of the stop bit so inserting a short delay after DEBUG returns should do the trick.