This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

bit adressable data

hai !
I am having a problem in using bit adressable object in Keil C for 89c52 microC.I would be grateful if someone can help me out.
I am trying to do the following

char bdata temp; // temp is allotted a
// byte in the bit
// adressable space

Can I access the bits corresponding to temp
by using temp^0;
for instance are these valid.
temp^0=1; // set the first bit of temp

P0_0 = temp^0;

if not, then what's the alternative?

Thanks
-Adnan

0