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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/28/05 16:20
Read: times


 
#98404 - Not necessarily...
Responding to: ???'s previous message
I can imagine this as a viable option e.g. for loading external code. You don't write one monolithic program that is >64K. You write several smaller ones. You don't jump between pages like crazy - changing a page should be a thought out and careful operation. Either only part of the memory (say, upper 32K) is swapped, or there exist large overlap areas of the program. This way switching the "memory banks" should look transparent from the program point of view. You disable interrupts, perform MOV P3,#2 and switch the first external memory chip off, the other on. Several NOPs to let things stabilize, reenable interrupts and then continue execution from memory which has changed "under your feet". Completely new program, maybe the same, maybe different interrupt routines. Compiled with the same compiler as usually, just containing pieces of unusual code.


List of 11 messages in thread
TopicAuthorDate
"Expand your 8051 memory"            01/01/70 00:00      
   Nice technique used            01/01/70 00:00      
      tour de force            01/01/70 00:00      
         Not necessarily...            01/01/70 00:00      
   reinventing a square wheel            01/01/70 00:00      
   Re: Expand your 8051 memory            01/01/70 00:00      
   Hmmm            01/01/70 00:00      
   Pranav!            01/01/70 00:00      
   Very nice dream            01/01/70 00:00      
   Seems kind of pointless            01/01/70 00:00      
      Only a mental exercise            01/01/70 00:00      

Back to Subject List