generallaser
- 15th October 2007, 05:44
Hello all,
Using a 18F1330, my program serial outputs perfect with fixed vaules:
MyVariable1 var byte
MyVariable1 = 01
serout2 portb.6, speed, [$A1 , $A2, $03, $e8, $01,$34]
but... when I try a variable, the compiler errors on Token Error:
serout2 portb.6, speed, [$e1 , $e2, $03, $e8, $MyVariable1,$34]
Using HEX MyVariable1 does not provide the same output as $01.
Ideas... solutions?
Using a 18F1330, my program serial outputs perfect with fixed vaules:
MyVariable1 var byte
MyVariable1 = 01
serout2 portb.6, speed, [$A1 , $A2, $03, $e8, $01,$34]
but... when I try a variable, the compiler errors on Token Error:
serout2 portb.6, speed, [$e1 , $e2, $03, $e8, $MyVariable1,$34]
Using HEX MyVariable1 does not provide the same output as $01.
Ideas... solutions?