hithesh123
Full Member level 6
I am using C8051F120 MCU with Keil IDE.
The MCU has some bit addressable registers.
How do I store a variable in one of these registers? is it bdata?
How do I access the bits?
I tried unsigned int bdata mydata;
and then tried using mydata^x , where x is the bit field(0-7). But this doesn't work.
The MCU has some bit addressable registers.
How do I store a variable in one of these registers? is it bdata?
How do I access the bits?
I tried unsigned int bdata mydata;
and then tried using mydata^x , where x is the bit field(0-7). But this doesn't work.