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.