Help guys...communication issue, I think?


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Help guys...communication issue, I think?

    Check the code for slaves in this post:

    http://www.picbasic.co.uk/forum/show...809#post116809

    That's all I needed to do. Master TX to slave RXs, slave TXs to master RX, I think I had pull-ups at master.

    I'm having a hard time with your code (sick, not feeling right).

    I'd suggest making a copy of your program and strip everything except USART logic. Then post that stripped code if you have problems.

    Keep it simple; talk to slave 1, wait for reply, talk to slave 2, wait for reply.

    You can also use a MAX232 and listen in with your PC and see exactly what is sent. That helped me a lot.

    Robert
    Last edited by Demon; - 14th October 2013 at 01:04.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Help guys...communication issue, I think?

    Chris,
    You can't use Roberts aproach since you DO have the tranceiver chip in between the PIC and the bus. It doesn't matter if you turn of the USART TX in the PIC, the driver in the tranceiver chip will still be enabled and will still "hold" the line.

    Since Robert does NOT have any tranceiver chip in between the PIC and the "bus" turning of the USART TX (ie making its pin high impendence) is effectively the same as what you need to do with your tranceiver chip (turning off the transmitter that is).

    If your application invloves any sort of distances and/or deployement in the "real world" I'd definitely stick with some kind of bus like you have now. I wouldn't want to expose the PICs inputs/outputs directly to tens or hundreds of metres wires acting as antennas. Of course YMMV.

    /Henrik.

  3. #3
    Join Date
    Dec 2005
    Location
    Salt Lake City, Ut, USA
    Posts
    108


    Did you find this post helpful? Yes | No

    Default Re: Help guys...communication issue, I think?

    Thanks guys,

    I have succumbed to the fact of the board rework. Bummer for sure. 1 more question...I have looked at so many datasheets for transceivers that I have lost track. On some datasheets it shows the termination resistor on both the Tx and Rx endpoints, and on others it shows it only on the Rx endpoints? I suppose that was more of a statement rather than a question, but you guys get where I'm going with it... I've got my Rx endpoints terminated now...Am I good with that? Don't want to rework twice.

    Thanks guys,
    Chris

    ***Little deja vu here http://www.plcforum.it/f/topic/79753...422-multidrop/

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Help guys...communication issue, I think?

    Hi Chris,
    There's a section specifically covering bus termination in the .pdf linked to earlier, it covers the differences.

    /Henrik.

Similar Threads

  1. Replies: 5
    Last Post: - 25th May 2013, 16:33
  2. Replies: 16
    Last Post: - 1st March 2013, 08:22
  3. Hey guys, will this work?
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 15th May 2009, 13:48
  4. guys pls help me in mp lab
    By darylbrown2005 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 9th March 2009, 16:58
  5. Guys pls let me know
    By darylbrown2005 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 8th March 2009, 19:49

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