| ??? 10/31/07 16:55 Read: times |
#146425 - No, that won't work Responding to: ???'s previous message |
Bharat Prabhu said:
Try following code might work #define front P0^0 #define back1 P0^1 #define back2 P0^2 No, that won't work. Keil has "overloaded" the '^' (caret) operator so that it has a different meaning within an sbit definition - everywhere else it has the standard 'C' exclusive-or meaning And, of course, if you're not using Keil then it never has the Keil-specific meaning! please check logic of code if (P0^0==d4) if (back1==d5) if (back2==d6) The '^' (caret) here is always the exclusive-or operator |



