Connect with us

Pic micro External memory

Discussion in 'Microcontrollers, Programming and IoT' started by juantravel, Oct 16, 2010.

Scroll to continue with content
  1. juantravel


    May 14, 2010
    I have been playing with pic micros for quite some time now. I was thinking of writing a small OS. Im thinking of storing the OS kernal on a sd card and loading it to memory. How would i go bout loading it into memory?

    I googled a bit before work and found an article that some pic micro's support processor mode which allows external programming memory. That requires 19 pins tho... Is there a way to implement this function in software, sort of like the sram from pic micro.
    Thank you
    Last edited: Oct 16, 2010
  2. (*steve*)

    (*steve*) ¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd Moderator

    Jan 21, 2010
    And here it is that you discover a problem with Harvard architecture as opposed to von Neumann architecture.

    You should look at some of the various boot loaders available. It may be possible to load the code into the main program memory using fewer control lines by loading it from a serial eeprom. I'm not sure that there are any that are set up to dynamically load code using any of the serial bus interfaces, so you may have to roll your own.

    This method will be slower, and will use up rewrite cycles of your program memory too.

    I also can't vouch that it would work, however I can't see any particular reason why it would not.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day