Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Andy Neil
07/03/09 03:44
Read: 256 times
Basingstoke
Uk


 
#166688 - Basics: 8052 Memory Spaces
Responding to: Munish Kumar's previous message
Munish Kumar said:
1) How to allocate 504 Bytes in RAM? I tried unsigned char image_buffer[504] but it says error C249: 'DATA': SEGMENT TOO LARGE (for any array >128 Bytes)


You do realise, don't you, that the 8051 architecture has several different memory spaces, and the DATA space is only 128 bytes?

If you didn't realise that, you need to study the so-called "bible" for the 8051 before you go any further!

See: http://www.8052.com/faqs/120112

See also: http://www.8052.com/forum/reply/tutorial

For how to use these in Keil C51, you will need to study the C51 Manual; specifically: http://www.keil.com/support/m...mareas.htm

See also: http://www.keil.com/support/m...models.htm



List of 14 messages in thread
TopicAuthorDate
How to use on-chip RAM for array storage in Keil?      MUNISH KUMAR      07/03/09 03:34      
   Basics: 8052 Memory Spaces      Andy Neil      07/03/09 03:44      
      The message doesn't exist      MUNISH KUMAR      07/03/09 04:03      
   data, xdata      Juergen Christoph      07/03/09 03:44      
      Incorrect      Andy Neil      07/03/09 03:50      
         Getting it now....      MUNISH KUMAR      07/03/09 04:10      
            Not quite      Andy Neil      07/03/09 04:16      
               I got it completely now!      MUNISH KUMAR      07/03/09 04:48      
   Some possible answers..Munish      Kiran V. Sutar      07/03/09 04:25      
      Thanks!      MUNISH KUMAR      07/03/09 05:02      
      "RAM" and "Data Memory" are not synonymous      Andy Neil      07/03/09 05:48      
         Agreed      Kiran V. Sutar      07/03/09 08:55      
      NO WAY      Erik Malund      07/03/09 07:10      
         Thanks for correcting me      Kiran V. Sutar      07/03/09 09:04      

Back to Subject List