HI,

i am geting error in compiling my program. I think its because I am doing a subtracion with a binary number and a decimal number

C:\PBP>pbp -p16f876a lcd3
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.
PM Assembler 4.07, Copyright (c) 1995, 2004 microEngineering Labs, Inc.
Error PBPPIC14.LIB 2048 : [202] Illegal Character 'æ'
Error PBPPIC14.LIB 2064 : [202] Illegal Character 'æ'
*** 2 Errors ***

here is the code:

if right > left Then 'left and right are from sensor reading
temp =right-left
temp= temp/right
temp= temp * 254
HPWM 1,255-temp,1000
HPWM 2,255,1000

k