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?
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?
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".
DT
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.
Bookmarks