Bitwise and Logical are two different things. All versions do support them.

You will use Logical AND or &&, OR or ||, XOR or ^^, ANDNOT, ORNOT, XORNOT in TRUE/FALSE case. If value is 0 then it is treated as FALSE. Any other value is treated as TRU. So, in IF-THEN statement you can check if the values are or are not zero.

Example:

A=2:B=0

IF A AND B THEN C=1

C will be set to 1 if both A and B variables are not zero.

But Bitwise Operators act on each and every bit of the variable using boolean maths.

If you want to isolate bits a variables you want to use the & operand.

If you want to set a bit then | is your operand to use.

Example (from the Book):

B0=B0 & %00000001 'Isolate bit 0 of B0

B0=B0 | %00000001 'Set bit 0 of B0

B0=B0 ^ %00000001 'Reverse state of bit 0 of B0

So Hank, you want to use & in your case.

ADCON0 = ADCON & %00011101

Ioannis