Reversing RS485 line


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    1,073

    Default Reversing RS485 line

    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?

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    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

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073

    Default

    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.

Similar Threads

  1. Darrel Taylor - Instant Interrupts-Problem 16F877A
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 31st December 2009, 13:19
  2. Replies: 0
    Last Post: - 2nd February 2009, 23:23
  3. Using input from Switch to control a loop
    By MrRoboto in forum mel PIC BASIC
    Replies: 9
    Last Post: - 2nd February 2009, 05:02
  4. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts