PDA

View Full Version : % test



mackrackit
- 1st October 2011, 08:08
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??

cncmachineguy
- 1st October 2011, 12:41
doing my own playing here


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



ansel = % 01001100
ansel = %01001100
ansel =%01001100
ansel=%01001100
ANSEL=%01001100
ANSEL =%01001100
ANSEL = %01001100
ANSEL = % 01001100