I'm using a kit at89s8252 with only 8K of FLASH memory, 2K of EEPROM and 256 bytes of RAM. I'm begginer in this area so I would like to know if I can use the EEPROM to store the variables of my program. If this can be done, how can I specify this? I'm having problem to make my code fit in 8K and I guess that maybe if I store the variables in another place it can fit. Thank you.
"I'm having problem to make my code fit in 8K and I guess that maybe if I store the variables in another place it can fit" The 8051 has separate data and code memory spaces - so variables never use up code space! I think you need to do some basic, foundational reading on the 8051 architecture. You need to start with the basics: read the followig documents - commonly referred to as "the bible" for the 8051: Chapter 1 - 80C51 Family Architecture: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf Chapter 3 - 80C51 Family Hardware Description: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf