BL51 User's Guide

Classic 8051 Devices

Classic 8051 devices provides three different memory areas your application may use:

  • On-Chip RAM that is used for BIT, DATA, and IDATA memory.
  • CODE memory (that may be off-chip or on-chip).
  • XDATA memory (that may be off-chip or on-chip).

The device selected and your hardware configuration dictate the memory map for your project. The linker needs to know about the constraints of your memory map so it can locate program segments accordingly.

You may use the RAMSIZE, CODE, and XDATA linker directives to specify the size of on-chip RAM, CODE, and XDATA memory areas.

Code banking applications require the BANKAREA directive to specify the area of CODE that contains the banks and the BANKx directive to specify the banks in which modules are located.

Note

  • When you use the µVision IDE, the RAMSIZE is set automatically based on the device you select.