hithesh123
Full Member level 6
- Joined
- Nov 21, 2009
- Messages
- 324
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,298
- Location
- lax
- Activity points
- 3,548
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.