| Chris Harte 03/12/10 09:58 Read: 595 times London Uk |
#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 |
| Topic | Author | Date |
| Controlling /EA with a port pin? | Chris Harte | 03/12/10 09:58 |
| Why would you want do this?? | Kai Klaas | 03/12/10 13:35 |
| Allowing system upgrades via MIDI sysex in the field | Chris Harte | 03/13/10 04:48 |
| So why on an 8051? | Andy Neil | 03/15/10 08:10 |
| Challenge?? | Michael Karas | 03/15/10 08:31 |
| Old fashioned 8031 dev boards | David Prentice | 03/15/10 10:35 |
| Helpful points | Chris Harte | 03/17/10 15:54 |
| Good match | Maarten Brock | 03/18/10 05:33 |
Budget | Steve M. Taylor | 03/19/10 10:04 |
| See value to an extent... | Michael Karas | 03/12/10 20:13 |
| Internal XDATA addresable as XCODE? | Chris Harte | 03/13/10 05:48 |
| Executing code from XRAM | Per Guldmann | 03/13/10 13:46 |
| Code in OnBoard XRAM | Michael Karas | 03/13/10 16:11 |
| Don't overlook other options ... | Richard Erlacher | 03/13/10 19:34 |
| FX2 | Maarten Brock | 03/15/10 05:34 |
| I bet you can't | Erik Malund | 03/13/10 07:19 |
| Ideally a single chip design | David Prentice | 03/15/10 07:56 |



