% test


Closed Thread
Results 1 to 2 of 2

Thread: % test

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default % test

    Code:
    ANSEL=%00000000         ' ADC SET FOR DIGITAL 
    CMCON=7                 ' COMPARATOR SET FOR DIGITAL
    SWITCH_OFF  VAR GPIO.1  ' PUSH BUTTON FOR PUMP OFF
    SWITCH_RUN    VAR    GPIO.2  ' PUSH BUTTON FOR PUMP ON  
    LED_RUN     VAR GPIO.0  ' INDICATE RUN SIGNAL SENT  
    LED_OFF     VAR GPIO.5  ' INDICAT STOP SIGNAL SENT
    TX          VAR GPIO.4  ' DATA SEND PIN
    BAUD        CON 18030    ' 18030 = 600 BAUD
    A % will sometimes be stripped and upper case is turned to lower case. When I code in PBP I have caps lock on so it is not a MCS thing.

    EDIT--- in preview the format was all wrong but the post is not so bad??
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default Re: % test

    doing my own playing here
    Code:
    ansel = % 01001100
    ansel = %01001100
    ansel =%01001100
    ansel=%01001100
    ANSEL=%01001100
    ANSEL =%01001100
    ANSEL = %01001100
    ANSEL = % 01001100
    should be:
    ansel = % 01001100
    ansel = %01001100
    ansel =%01001100
    ansel=%01001100
    ANSEL=%01001100
    ANSEL =%01001100
    ANSEL = %01001100
    ANSEL = % 01001100

    advanced editor

    Code:
    ansel = % 01001100
    ansel = %01001100
    ansel =%01001100
    ansel=%01001100
    ANSEL=%01001100
    ANSEL =%01001100
    ANSEL = %01001100
    ANSEL = % 01001100
    Last edited by cncmachineguy; - 1st October 2011 at 12:43. Reason: tested in advanced
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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