Serial communication between PIC and Atmega controileer trough RS485


Results 1 to 13 of 13

Threaded View

  1. #12
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Serial communication between PIC and Atmega controileer trough RS485

    Pullup and Pulldown resistors are mearly safeguards for disconnect conditions. I do not hear of any bus termination resistors in place? There should be a termination resistor on each END of the bus between bus+ and bus-. I would a quick verification of the IDLE state of the bus by allowing it to go IDLE (with no traffic) and look at the RX output pin of the MAX487 to make sure it is in the correct IDLE state. This will infact tell you if the bus connections are reversed. SERIN statements do not act very well when they are in the reversed states. The program tends to hang. I would also place a pullup resistor on the RX pin of the PIC to ensure it's state during the time the TX enable of the MAX487 as the RX output line will go tristate.
    Last edited by Dave; - 5th October 2012 at 12:44.
    Dave Purola,
    N8NTA
    EN82fn

Similar Threads

  1. USB / RS485 communication
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th May 2009, 20:36
  2. rs485 communication
    By dreamman in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th June 2007, 22:47
  3. RS485 serial communication
    By mipie in forum Serial
    Replies: 5
    Last Post: - 10th February 2007, 14:15
  4. PIC to PIC RS485 with users the communication
    By x0914667 in forum Serial
    Replies: 2
    Last Post: - 21st July 2005, 01:20
  5. put an id adress on one pic for rs485 communication
    By ON4XAV in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th June 2005, 13:54

Members who have read this thread : 0

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