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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/12/04 03:59
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#72407 - RE: Map 32K device to 8000H-0FFFFH
Responding to: ???'s previous message
Oleg has a good solution. I have done this a few times for prototyping. Especially in the days before ISP. The CPU contains the bootloader, monitor, debugger... The NVRAM (or EEPROM) is wired as Oleg described, with !RD and !PSEN ORed to the !RD pin on the NVRAM, and A15 inverted and wired to !CS.

Another trick is to use jumpers to select either
!EA = 1 and A15 ---|>0--- !CS (as described)

or

!EA = 0 and A15 = !CS (not inverted)

You can then use the CPU to load some code to the NVRAM, remove power, move the jumpers, and then the code you just loaded is live at address 0 when you power up.

This works best with code having only AJMPs and ACALLs. If you have to use Long jumps and calls, I compile (or assemble) at address 0, then use a hex file utility (or just a device programmer software) to add 8000H offset. The CPU loads the file to 8000H, but it is identical to if it was loaded to address 0 after the jumpers are moved.


List of 13 messages in thread
TopicAuthorDate
Rewrite Ext. Code memory.            01/01/70 00:00      
   RE: Rewrite Ext. Code memory.            01/01/70 00:00      
   RE: Rewrite Ext. Code memory.            01/01/70 00:00      
   RE: Rewrite Ext. Code memory.            01/01/70 00:00      
      More info. needed...            01/01/70 00:00      
         RE: More info. needed...            01/01/70 00:00      
            RE: More info. needed...            01/01/70 00:00      
               RE: More info. needed...            01/01/70 00:00      
                  RE: Map 32K device to 8000H-0FFFFH            01/01/70 00:00      
            RE: More info. needed...            01/01/70 00:00      
               RE: More info. needed...            01/01/70 00:00      
                  RE: More info. needed...            01/01/70 00:00      
                     RE: More info. needed...            01/01/70 00:00      

Back to Subject List