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 04:16
Read: 186 times
Basingstoke
Uk


 
#166695 - Not quite
Responding to: Munish Kumar's previous message
Munish Kumar said:
Data segment for a classic 8051 is 128 Bytes & for an 8052 is 256 Bytes

No. The Data segment is only ever 128 bytes;
The additional "internal" (sic) RAM of the 8052 is Idata.

I was able to increase the buffer size to 239 with:
idata unsigned char image_buffer[239];

Beware that the Stack requires idata...

But what about my 508 Byte array? Seems I would have to use external RAM!?

You would have to use Xdata - which may or may not be physically "external" to the chip...

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