We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
First, before posting code, please read the instructions on the form about using the 'pre' and '/pre' tags. Your question is answered in these threads (among others): http://www.keil.com/forum/docs/thread1132.asp http://www.keil.com/forum/docs/thread3164.asp