Not sure whats wrong here
This is being with 2.6A for 16F1947
here is the error message:
Quote:
ERROR: Macro NAND?TTL not found in macro file.Halting build on first failure as requested.
BUILD FAILED: Sun Feb 06 12:43:14 2011
and the offending code:
Code:
IF (LSH1 &/ HSP1) THEN LIMITHIT
I tried it with and without the (), still no joy.
LSH1 and HSP1 are both bits, so I thought this should work?
Any insight would be great here, thanks!!
Re: Not sure whats wrong here
Looks like a compiler parser "feature"
try
Code:
IF (LSH1 &/ HSP1)=1 THEN LIMITHIT
And then
Code:
IF (LSH1 &/ HSP1) THEN GOTO LIMITHIT
BTW, you should use "Logical Operator" not "Bitwise operator", unless I miss something.
Code:
IF (LSH1 ANDNOT HSP1) THEN LIMITHIT
Re: Not sure whats wrong here
Thank you both! Turns out I finally get the difference now. I have read it in the manual and somehow kept not being able to make the distinction.
As a side not, I really needed ORnot instead of ANDnot. but thats a different story.