Looking for Basic Pic-to-Pic Serial Example


Results 1 to 17 of 17

Threaded View

  1. #7
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Correct your code as per Bruce indication, than if you modify your code as below, the leds will go off when you release the push-button.
    If delay too high or too low adjust timeout (500) to fit your need.

    Al.


    Code:
    Loop:
    SERIN PORTB.0,T1200,500,OffLed,[9],NET  
    IF NET = 1 THEN HIGH led1  
    IF NET = 2 THEN HIGH led2
    IF NET = 3 THEN HIGH led3
    IF NET = 4 THEN HIGH led4
    GOTO LOOP
    
    OffLed:
    low led1
    low led2
    low led3
    low led4
    GOTO LOOP
    
    End
    Last edited by aratti; - 12th November 2008 at 16:46.
    All progress began with an idea

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 Com Pic to Pic
    By uludere72 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 31st May 2005, 10:06
  4. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14
  5. Serial communication PIC to PIC help.
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2005, 15:45

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