Multiple PICs on usart network


+ Reply to Thread
Results 1 to 40 of 52

Hybrid View

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

    Default Re: Multiple PICs on usart network

    Quote Originally Posted by DaveP View Post
    This comm scheme sounds like ISO-9141. Been around for years.
    I saw a mention further up the thread about 1-wire comm.

    OBD-II signal protocols. ISO 9141-2. This protocol has an asynchronous serial data rate of 10.4 kbit/s. It is somewhat similar to RS-232; however, the signal levels are different, and communications happen on a single, bidirectional line without additional handshake signals.

    https://en.wikipedia.org/wiki/On-boa...hake%20signals.


    I'm planning on using standard 2-wire hardware USART.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115

    Default Re: Multiple PICs on usart network

    Quote Originally Posted by Demon View Post
    OBD-II signal protocols. ISO 9141-2. This protocol has an asynchronous serial data rate of 10.4 kbit/s. It is somewhat similar to RS-232; however, the signal levels are different, and communications happen on a single, bidirectional line without additional handshake signals.

    https://en.wikipedia.org/wiki/On-boa...hake%20signals.


    I'm planning on using standard 2-wire hardware USART.
    Car automakers had to do it with better electrical characteristics I guess.

    I'd also choose 2 wires USART classic setup. Tested and guarrateed to work just fine.

    Ioannis

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

    Default Re: Multiple PICs on usart network

    Quote Originally Posted by HenrikOlsson View Post
    ...The last byte (13) will not go thru properly because the tranceiver chip is switched from Tx to Rx mode in the middle of it....

    /Henrik.

    The original project was just a personal home alarm system.

    But now I'm designing a controller for flight sim that I plan on marketing. I'm considering using a combination of everything said in this thread, including your comment.

    - separate TX and RX lines.
    - tri-state busy line for slaves.
    - tri-state busy line for master (for future expansion).
    - enable/disable TX in slaves.
    - add an extra byte in transmission so no data is lost during transition between enable/disable (if I can't identify exactly how to avoid dropping that byte).
    - slaves only talk when spoken to by master.
    - prefix in communication identifies which slave is targeted.
    - slaves can "raise their hand" to speak using slave busy line.
    - basic checksum.
    - highest speed supported by 16F1455, 16F1937, 16F18855 and 16F18877.
    - two 4K7 pull-up resistors on master (or maybe 10K, remains to be determined).

    That's pretty much what I have identified to start.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

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

    Default Re: Multiple PICs on usart network

    For those that are curious about 1-wire communication, check out Dallas 1-wire:

    https://ww1.microchip.com/downloads/...S00002658B.pdf
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115

    Default Re: Multiple PICs on usart network

    Interesting article.

    Thanks for sharing.

    Ioannis

  6. #6
    Join Date
    Jun 2013
    Posts
    18

    Default Re: Multiple PICs on usart network

    Quote Originally Posted by Demon View Post
    For those that are curious about 1-wire communication, check out Dallas 1-wire:

    https://ww1.microchip.com/downloads/...S00002658B.pdf
    Thank you Demon
    Valuable data
    Appreciate.

Similar Threads

  1. PICs in a RS-485 network?
    By atomski in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 12th November 2011, 09:52
  2. Multiple PICS from Same Crystal?
    By WOZZY-2010 in forum General
    Replies: 2
    Last Post: - 6th February 2010, 15:18
  3. Problems controlling multiple pics
    By gandora in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 29th May 2007, 08:59
  4. Multiple Pics to One serial port
    By Rleonard in forum Serial
    Replies: 1
    Last Post: - 18th January 2007, 18:30
  5. Multiple Data on to USART RX pin
    By Squibcakes in forum Serial
    Replies: 2
    Last Post: - 20th July 2006, 00:37

Members who have read this thread : 13

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