SERIN2 Syntax


Closed Thread
Results 1 to 7 of 7

Thread: SERIN2 Syntax

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by Filbert View Post
    Thanks again for your help.
    Since it works perfectly with the BS2 and the two languages are similar, I thought it would be an easy transition from one to the other.
    I suppose it's all easy...in theory...until you figure out it ain't so easy
    The main thing is the manual. Most, if not all, of your differences are spelled out there in one way or another.

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

    Default

    When your PIC have an internal USART/EUSART... don't mess with DEBUG/DEBUGIN/SERIN/SERIN2... use HSERIN and that's it.


    If you still want to use a specific pin.. use it's PORT name.. not PIN number...it's just unreadable and mix-up everybody for nothing

    Code:
    SERIN2 PORTA.7...........
    SERIN PORTA.7............
    
    or better
    
    MySerialInput VAR PORTA.7
    '
    '
    '
    '
    SERIN MySerialInput..............
    Don't forget PIC have more interesting stuff than those stupid useless Stamps.. you MAY need to disable some feature to a specific pin prior to use it as Digital i/o. Few things like ADCs, comparators can cause some strange behaviours.

    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Last edited by mister_e; - 16th April 2008 at 20:43.
    Steve

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

Similar Threads

  1. GPS $GPRMC to PIC16F684. Need help with SERIN2
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th November 2009, 09:47
  2. Getting SERIN2 to work?
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 22nd July 2009, 20:10
  3. SERIN2 digit parsing
    By skimask in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th January 2007, 23:15
  4. SERIN2 Command Syntax
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th November 2005, 01:42
  5. Syntax SEROUT2 and SERIN2 commands
    By crocodilebobbie in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th October 2005, 15:35

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