Serial communication between PIC and Atmega controileer trough RS485


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

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

    Just a thought, if you have accidently crossed the rs485 wires, then the signal will be inverted at the receiving end, so your serial data would be inverted.

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

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

    With fragment of code and no schematic, I personally think you cannot get much more help. Please post the whole code you are using, along with some reference to the data sheet of the slaves you have installed in your network. Naturaly complete the info with a schematic on the setup.
    With a more complete picture you will have a better chance to get the corrected advice.

    Cheers

    Al.
    All progress began with an idea

  3. #3
    Join Date
    Nov 2011
    Posts
    12


    Did you find this post helpful? Yes | No

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

    Hello aratti,

    The network is only one master, the pic controller, on there i use serout2 and a 7segment display as slave, that use a Atmega88P. Both with baud 2400
    The display works fine on other project as slave too on baud 38400, all with Atmega controllers. The display is not a problem, the protocol is the same,
    only on this project with the pic i have change the baud to 2400. With software uart it not possible to work on baud 38400. Why i have change the baud on the
    display to 2400.

    I can draw a schematic tomorrow, but like i said the display is working on the other project. On the board with the pic i have connect PORTE.0 to pin 4 and PORTE.2 to pin 1
    of the max487. The pin 2 and 3 of the max487 connect together to PORTE.1. On startup make the PORTE.1 as output and high for transmit mode. A is connected to A and B to B of the max487 on the display.

    Best regards
    visitac

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