Pic To Pic


Closed Thread
Results 1 to 2 of 2

Thread: Pic To Pic

  1. #1
    Tomexx's Avatar
    Tomexx Guest

    Default Pic To Pic

    Hi,
    I'd like to send a word from one pic and receive it on another using Serin & Serout ...I guess. Could anyone provide an example, please?


    Thanks,
    Tom

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


    Did you find this post helpful? Yes | No

    Default

    Transmitter ...
    Code:
    SerPinOut   VAR PORTB.0
    Serdata     VAR WORD
    MSB         VAR BYTE
    LSB         VAR BYTE
    
    SerData=65000
    MSB=SerData.HighByte
    LSB=SerData.LowByte
    SerPinOut=1
    pause 20
    
    start:
         serout SerPinOut,4,["ok",MSB,LSB]
         pause 1000
    goto start
    receiver...
    Code:
    SerPinInput   VAR PORTB.0
    Led           VAR PORTB.1
    SerData       VAR WORD
    MSB           VAR BYTE
    LSB           VAR BYTE
    Led=0
    
    Start:
    
         Serin SerPinInput,4,["ok"],MSB,LSB
         Serdata.HighByte=MSB
         SerData.LowByte=LSB
         If Serdata=6500 then 
              Led=1
              Pause 200
              led=0
         endif
    
         Goto Start
    Last edited by mister_e; - 15th November 2004 at 03:51.
    Steve

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

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  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 : 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