Keil Logo

Internal Data Memory

Internal data memory resides within the 251 MCU and is read/write. The data and idata memory areas reside within the 251 MCU and can be read and written. The data memory are the first 128 bytes of the on chip memory. The idata memory are the first 256 bytes of the on chip memory. There is also a 16 byte area starting at 20h that is bit addressable with short 8051 compatible instructions.

Access to internal data memory is very fast because it can be accessed using an 8-bit address. However, internal data memory is limited to a maximum of 256 bytes.

Internal data memory may be broken down into three distinct data types: data, bdata, and ebdata.

  • The data memory specifier always refers to the first 128 bytes of internal data memory. Variables stored here are accessed using direct addressing.
  • The bdata memory specifier refers to the 16 bytes of bit-addressable memory in the internal data area (20h to 2Fh). This memory type specifier allows you to declare data types that may also be accessed at the bit level.
  • The ebdata memory specifier refers to the extended 251 bit addressable memory in the internal data area (20H to 7FH). This memory type specifier allows you to declare data types that can also be accessed at the bit level. However compared to the bdata memory area, bit access to ebdata memory requires a longer opcode encoding.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.