Multiple PICs on usart network


Closed Thread
Results 1 to 40 of 52

Hybrid View

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

    Default Re: Multiple PICs on usart network

    Robert,
    I've done quite a bit of work with half duplex RS485 where you have a pin telling the tranceiver chip if it should operate in TX or RX mode.
    If I do
    Code:
    TxRx = Tx   ' Switch tranceiver to TX mode
    HSEROUT["Test",10,13]   ' Send data
    TxRx = Rx  'Sitch tranceiver to RX mode
    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. I'm pretty sure you'll get the same thing when disabling the USART. It's possible though that a low oscillator frequency in combination with high baudrate "masks" the problem.

    Tumbleweed,
    TRMT is the correct bit, thanks for pointing that out!

    /Henrik.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,653

    Default Re: Multiple PICs on usart network

    they might get away with it because the last chr is 13 , so that means the last 4 bit and the stop bit all leave the tx line high anyway

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

    Default Re: Multiple PICs on usart network

    It was 64MHz at 115,200 with a checksum that always balanced.

    I can't explain it but it worked. But I'm going to do intensive testing soonday and report back here.

    Robert

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 : 3

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