The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL

ACCESSING CODE ROMRAM Data Space Usage by 8051 C Compiler


‰The 8051 C compiler allocates RAM locations


¾Bank 0


– addresses 0


–^7


¾Individual variables


– addresses 08 and


beyond¾Array elements


– addresses right after


variablesƒArray elements need contiguous RAM locations and that limits the size of the array due to the fact that we have only 128 bytes of RAM for everything¾Stack


– addresses right after array


elements

Free download pdf