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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/12/10 15:58
Read: times


 
#174067 - Controlling /EA with a port pin?
Hi everyone,

I have searched through the forum for previous threads about this question but none have addressed exactly what I would like to know.

I am wondering if it is a safe idea to connect a port pin to the /EA pin on an 89S52 in order that the MCU can control which program address space it uses on the fly.

I would like to put a simple boot program in the internal program space and use an external RAM device for combined xcode and xdata (by anding /RD and /PSEN) to achieve a von-neumann model after the boot program is complete.

Let's say I connect P1.0 to /EA. My assumption is that at power on, because the port pins on an 8x52 initialise to 1, the internal code memory will be used to start with. The boot program will then copy program data from a serial EEPROM into the xdata space before clearing P1.0 to 0 in order to start using the external RAM as the code space. If necessary, the code that clears the port pin could actually be put in the xdata space at an address above the end of the 8k internal code and the boot program can jump there so it would already be running code from the external space when it switches /EA.

I am planning to use an AT89S52 and having looked through the data sheet, from what I can see, as long as none of the lock bits are set I think this idea *should* work.

I wonder if anyone has tried this sort of thing before and can offer some advice before I try it - or rather before I get one of my undergraduate students to try it in their final year project...

Best wishes

Chris


List of 17 messages in thread
TopicAuthorDate
Controlling /EA with a port pin?            01/01/70 00:00      
   Why would you want do this??            01/01/70 00:00      
      Allowing system upgrades via MIDI sysex in the field            01/01/70 00:00      
         So why on an 8051?            01/01/70 00:00      
            Challenge??            01/01/70 00:00      
               Old fashioned 8031 dev boards            01/01/70 00:00      
                  Helpful points            01/01/70 00:00      
                     Good match            01/01/70 00:00      
                     Budget            01/01/70 00:00      
   See value to an extent...            01/01/70 00:00      
      Internal XDATA addresable as XCODE?            01/01/70 00:00      
         Executing code from XRAM            01/01/70 00:00      
         Code in OnBoard XRAM            01/01/70 00:00      
         Don't overlook other options ...            01/01/70 00:00      
         FX2            01/01/70 00:00      
   I bet you can't            01/01/70 00:00      
   Ideally a single chip design            01/01/70 00:00      

Back to Subject List