Keil Logo Arm Logo

8051 Memory Write Example Program

This program is a simple demonstration of the DATA, IDATA, PDATA, and XDATA memory areas of the 8051. The program writes a short string into each of these memory areas. You may use the memory window (View - Memory Window) to view the contents of each memory area.

There are four user-configurable Memory Windows available. Each one can be configured to display a memory area and data type. So, you can watch HEX values from XDATA in one memory window and ASCII values from IDATA in another window.

The example program writes stuff into memory ONLY for demonstration purposes. You should not use this method of writing into memory in structured, high-level programming languages. This example is only intended to give you a feel for the memory organization of the 8051.

Note: This example was created using a Generic 8052 device. However, it will work with ANY 8051 that has DATA, IDATA, and XDATA memory.

GENERIC_MEMWRITE.ZIP (8.0K)
Friday, May 3, 2002

Keil logo

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.