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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/20/04 07:13
Read: times


 
#83488 - volatile
Responding to: ???'s previous message
Since the 8052 doesn't have any real MMU hardware (it doesn't have a cache), then I think that this keyword doesn't actually do all that much for you

Not sure what the absence of an MMU has to do with it, but the main uses of 'volatile' on an 8051 would be:
  • A "shared" variable that is updated by an ISR and also used by other code;
  • A variable that is actually a memory-mapped peripheral in XDATA.
    (with Keil, I think 'sfr' automatically implies 'volatile')




  • List of 22 messages in thread
    TopicAuthorDate
    Help LCD--89C51 using KEIL            01/01/70 00:00      
       RE            01/01/70 00:00      
       Keil?            01/01/70 00:00      
          Keil App Notes            01/01/70 00:00      
       Assembler programmer learning C?            01/01/70 00:00      
       So what happened to the USB, then?            01/01/70 00:00      
       The wanted code...            01/01/70 00:00      
          code            01/01/70 00:00      
             Tips and Tricks.....Andy            01/01/70 00:00      
                volatile.            01/01/70 00:00      
                   Not so volatile ?            01/01/70 00:00      
                      optimiser            01/01/70 00:00      
                         Volatile warning?            01/01/70 00:00      
                            not here            01/01/70 00:00      
                            re: volatile            01/01/70 00:00      
                               volatile            01/01/70 00:00      
          Another comment - symbolic names            01/01/70 00:00      
       c code for lcd            01/01/70 00:00      
          code            01/01/70 00:00      
             symbolic Port names            01/01/70 00:00      
       There's Gratitude for you! :-(            01/01/70 00:00      
       A better method in C            01/01/70 00:00      

    Back to Subject List