serial communication speed


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    12

    Question serial communication speed

    Hi you all out there!

    I want for structural simplicity reasons and caused by the fact that I´m a bad programmer ease my solution by following structure:

    a single high speed PIC , maybe a 18F1320 gives the commands via output to my coils etc...

    but to get all the correct inputs I will use small PICs up to four which get the data (engine speed, temperature, manifold pressure, throttle position)put it into a word variable and send it to the main pic which makes the right decision.

    the small 12F629 could handle that only serial, so I need to know how long it takes for the main Pic to read three serial words and how they communicate so not to interfere. Do the Pics need the same oscillator frequency? could they be synchronized by using only one crystal?

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    You could try using RS485 communications if the boards are far apart. a master slave topology will help with the 18F1320 being the master.

    As for speed, you have to spell out your requirement and then check if the processor goes fast enough. Another thing, if you send the data as binary, it will need time for just 3 words + protocol overhead. If the same data is sent as ASCII formatted data, you will spend longer sending it since 1 word will become 4 Hex digits.

    You do not need to synchronize to the same crystal, except the baud rate should match

    Jerson

  3. #3
    Join Date
    Sep 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Cool speed

    Thanks, but I don´t know how fast that means.....how many crystal tics or how many micrseconds. The thing is I try look how fast the processor is and determine how much i could pack into the software.....i try to do so...
    the pics are all on one small board max 2 inches apart. dream clock speed is 20 Mhz for the master Pic, the small 12F629 just need 4 Mhz.

    If the speed is very fast, say 200 microseconds for one complete "Master-slave-Info-cycle" I could use a 36 teeth inductor wheel which gives me fantastic acurracy. Otherwise i have to use the 4-tic per engine cycle wheel and have to interpolate.

Similar Threads

  1. PIC to PIC "wired" serial one-way communication - SERIN2/SEROUT2
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th April 2008, 20:02
  2. Replies: 14
    Last Post: - 26th September 2007, 05:41
  3. Bootloader,MCSP and Serial communication
    By surfer0815 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd March 2006, 10:52
  4. Serial communication PIC to PIC help.
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2005, 15:45
  5. Replies: 8
    Last Post: - 11th November 2004, 20:08

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