ARM Technical Support Knowledge Articles

USING MEMORY FROM 00H TO 1FH

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I'm using an 8051 derivative with only 128 bytes of DATA memory. My program uses several register banks. I want to use the RAM from 00h ro 1Fh in my program. How can I do that?

ANSWER

On the 8051, the memory area from 00h to 1Fh is used as the registers R0-R7 for Register banks 0, 1, 2, and 3.

Since you must use registers to write useful 8051 code, you can't use all of this memory. If you use only register bank 0, the C compiler will automatically use the memory from address 08h and up.

Article last edited on: 2000-08-10 00:00:00

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential