Keil™, An ARM® Company

Technical Support

C51: ARE RAM BIT-ADDRESSABLE REGISTERS SUPPORTED?


Information in this article applies to:

  • C51 All Versions

QUESTION

Are RAM bit-addressable registers supported in C51?

ANSWER

The 8051's SFR area from 0x80-0xFF and the bit-addressable range from 0x20-0x2F are both supported. Bit-addressable SFRs may be accessed both in C and assembly.

The C type sbit is designed specifically to assign a name to bits within SFRs.

The C type bit is designed to declare a bit variable in the bit-addressable area from 0x20 to 0x2F.

Last Reviewed: Monday, May 17, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure