I am using NXP micro-controller P89V51RD2. I need to detect HIGH or LOW from 2 single bits. How do I store input state to a pre-defined address so that my functions can detect it as data?
I need to use 2 transistors coupled emitter to base to detect change in resistance(indirectly by measuring current and voltage) in a load cell. The coupling is an attempt for a rudimentary type of switching. This I need to give to a bit in e.g. port P1 for detection. I have trouble getting the right code ( H/L bit identification) for this AND connection configuration (buffer or another signal conditioner needed?) for this.
The code compiling is done in Keil μVision v4.
The official website for Keil says it can be done by code : sbit b1 = P1^0. However, I don't know how to proceed afterwards as this code doesn't give required results.

b1 = P1^0equalsb1. It doesn't make sense to XOR anything with 0. – Lundin Nov 23 '12 at 7:51b1 = P1^0" ^ " assigns the bit 0 (LSB) of P1 to a variable b1. – VedVals Nov 23 '12 at 8:22b1 = P1 & 1;– Lundin Nov 23 '12 at 10:48