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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Kiran V. Sutar
07/03/09 08:55
Read: 152 times
Mumbai
India


 
#166709 - Agreed
Responding to: Andy Neil's previous message
Andy Neil said:
Kiran V. Sutar said:
When you specify any variable as char, int long, float, double it is in RAM

Not necessarily true - these are 'C' data types; they have nothing to do with what memory technology is used to provide the storage - RAM, ROM, etc...

I agree with you for 'C' data types. The OP asked specifically for Keil and 89S52.
Open a new project in Keil, and define a global variable: "char var1".
As far as Keil(Memory model:Small) and MCS51 is concerned: "var1" will be in RAM.
Looking at OP request, I assumed that OP is novice. Hence I assumed he is using "Small Model".


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