Which is the best way to connect..


Closed Thread
Results 1 to 5 of 5
  1. #1
    dtit's Avatar
    dtit Guest

    Default Which is the best way to connect..

    pi2pic when they are on same PCB and using two pins to communicate between them, and have one executing a task when reciving a message from the other pic.
    ex. 16F877->16F628
    message something like "do your B.0=1, B.1=1,value=168"
    which method should a use, there are so many, read so much that it just confusing me more and more.

  2. #2
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Connect two Basic Stamps together in a Master-Slave arrangement.

    Best regards,

    Luciano

    ====================================

    Nuts and Volts Magazine

    Column #81, January 2002 by Jon Williams:

    - - A Tale of Two Stamps - -

    PDF file:
    http://www.parallax.com/dl/docs/cols...3/col/nv81.pdf

    Project code:
    http://www.parallax.com/html_pages/d...wnloads_V3.asp

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


    Did you find this post helpful? Yes | No

    Default

    Both have internal USART. Connect TX from F628 to RX of F877, RX from F628 and TX of F877 together.

    After that you can send a kinda *formated message* . something like that.

    F628:
    -----
    HSEROUT [Var1,Var2,Var3]

    F877:
    -----
    HSERIN [Var1,Var2,Var3]

    Every VAR can be a specific task. You'll have to play with them with some IF THEN or SELECT CASE.
    Steve

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

  4. #4
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Works also without USARTs. See my post with the example for Basic Stamp 2.
    The Basic Stamp 2 commands "Serin" and "Serout" are similar to
    the PicBasic Pro "Serin2" and "Serout2" commands.
    (One optional pin is used for the flow control).

    Luciano

  5. #5
    dtit's Avatar
    dtit Guest


    Did you find this post helpful? Yes | No

    Default tanx a lot guys..

    I have some new things to test know

Similar Threads

  1. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 04:59
  2. Haw to connect two pic?
    By edysan in forum Serial
    Replies: 7
    Last Post: - 24th August 2007, 07:45
  3. how can i connect the speaker
    By pcbb in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th April 2007, 18:28
  4. How to connect PIC16F84A to mobile phone
    By PoTeToJB in forum Schematics
    Replies: 2
    Last Post: - 8th March 2006, 15:32
  5. XPort or Connect Me help???
    By ccsparky in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 26th November 2005, 16:37

Members who have read this thread : 1

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