Keil™, An ARM® Company

Cx51 User's Guide

bdata

The bdata memory type may be used to declare variables only. You may not declare bdata functions. This memory is directly accessed using 8-bit addresses and is the on-chip bit-addressable RAM of the 8051. Variables declared with the bdata type are bit-addressable and may be read and written using bit instructions.

Variables declared bdata are located in the BDATA memory class.

Declare bdata variables as follows:

unsigned char bdata bdata_var;

Refer to Bit-Addressable Objects for more information about the bdata type.

Related Knowledgebase Articles