PIC to PIC serial comms


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Posts
    5

    Default PIC to PIC serial comms

    I have two PIC16F88's , one is connected to 20 Mhz crystal on OSC1 and OSC2, the other connects to the same crystal, only on OSC1.. both pic's are functioning normally, both use the DEFINE OSC 20 command and timing of a pause 1000 command results in one second, this is good!

    the portB pin 7 of both pic's are connected, just a direct connection. I send a command from one pic:

    Serout PortB.7, 2,[BUS_StartByte,State,DT0,DT1,DT2,DT3,DT4]

    and the other pic is waiting because it is instructed to:

    Serin PortB.7, 2, [BUS_StartByte],State,Pilot,DT0,DT1,DT2,DT3,DT4

    then there is a following command after serin to indicate to me that it has received this...such as printing out the values.

    However, there is no response.. this used to work under the old PicBasic, but I guess I may be missing something, either in circuit or program...

    Thanks for your time!

  2. #2
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Damiko,


    See this Thread:

    http://www.picbasic.co.uk/forum/showthread.php?t=579


    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Damiko,

    all we can do based on the two single lines of code you have posted with no context is telling you:

    The Syntax is correct!

    And:
    Hey, this should be discussed in the "Serial" Category of the Forum !!
    Last edited by NavMicroSystems; - 29th July 2005 at 17:43.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



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. Automatic VB6 to pic serial connection
    By arniepj in forum Code Examples
    Replies: 13
    Last Post: - 10th January 2008, 07:57
  3. Serial Comms with PIC micros
    By carlsnilsson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st September 2006, 01:00
  4. Serial Com Pic to Pic
    By uludere72 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 31st May 2005, 10:06
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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