AN Question for "word" variable read The serial port


+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    redfoen's Avatar
    redfoen Guest

    Question AN Question for "word" variable read The serial port

    ll friend;
    AN Question for "word" variable read The serial port

    'mcu=16f873a

    program:
    ....
    VCH1 VAR WORD
    .....
    OUTPUT PORTB.1 'SERIAL clock for {serget}
    INPUT PORTB.2 'SERIAL DATA
    .......
    SERGET:
    ...
    PORTB.1=1
    PAUSEUS 2
    VCH1.0=PORTB.2 'GET THE O BIT
    PORTB.1=0
    PAUSEUS 2
    '-----
    PORTB.1=1
    PAUSEUS 2
    VCH1.1=PORTB.2 'GET THE 1 BIT
    PORTB.1=0
    PAUSEUS 2
    '------
    PORTB.1=1
    PAUSEUS 2
    VCH1.2=PORTB.2 'GET THE 2 BIT
    PORTB.1=0
    PAUSEUS 2
    '------
    PORTB.1=1
    PAUSEUS 2
    VCH1.3=PORTB.2 'GET THE 3 BIT
    PORTB.1=0
    ..........
    ..........
    '------
    PORTB.1=1
    PAUSEUS 2
    VCH1.15=PORTB.2 'GET THE 15 BIT
    PORTB.1=0
    ......
    RETURN
    ...........

    QUESTION:
    When "COMPILE" it, THE "MicroCode Studio" Prompt: "VCH1.0=PORTB.2 " ERROR;

    Why?

    Help Me please! thanks!
    My english is so poor;

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

    Default

    mmm, with the snip above i don't have such error message. But sometimes the error message is not 100% spot on... Can you post your whole code?
    Help Me please! thanks!
    My english is so poor;
    bah... don't worry about that, i've made over 4,000 post here... all in bad english... 'till now maybe 1-2 comments on that... don't worry, do your best, and we will try to help you as much as we can.
    Steve

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

Similar Threads

  1. Send binary file to pic over pc serial port
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 3rd May 2011, 14:47
  2. Question Regarding Port A on 16F876A
    By jevert in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th February 2009, 15:00
  3. serial port control relay
    By win_832001 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th June 2006, 00:56
  4. How to read a SPI serial interface
    By Sharky in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd March 2005, 05:14
  5. Problem with 16F688 and Hserout
    By DWV in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 19th March 2005, 06:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts