Serial com PIC <> PC - what is best?


Results 1 to 8 of 8

Threaded View

  1. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Serial comm handling is an endless story, there's tons of different ways, with check sum or not, with header/footer or not, split packets, use FlowControl pins etc etc.

    First of all, you must have a reliable PIC frequency. So, if it's not already the case, forgive the idea to use the internal OSC.

    Your PIC have a USART indeed, so forget the SERIN/SEROUT stuff, use HSERIN/HSEROUT instead. It have few advantage over SERIN/SEROUT.

    Now, depending what else your PIC do, you may miss some incomming data or not if you spend too much time here and there before the HSERIN... be carefull.

    You may decide to use a lower baudrate first.

    Post the code you have, it will be easier to figure this out together.
    Last edited by mister_e; - 1st January 2007 at 23:57.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. PIC to serial with visual basic
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 31st March 2007, 17:06
  2. High Speed Serial Comm PC - PIC and PIC - PIC
    By manumenzella in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 16th January 2007, 22:55
  3. Serial Communication (PC to PIC)
    By Simon Brodeur in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th January 2006, 19:55
  4. Serial communication PIC to PIC help.
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2005, 16:45
  5. Serial + Pic To Pic
    By chrispol in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th January 2005, 18:57

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