NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Project Help and Ideas » Assembly
November 16, 2010 by Master_Programmer |
Hey, i read in the atmega168 datasheet, and noticed the "Direct Program adressing".... i'm still trying to figure out what that does....would it allow me to rwrite a program that rewrites itself? and if so,wouldn't i be able to use eeprom as kind of a cartrage for my game system i made? |
---|---|
November 16, 2010 by mrobbins (NerdKits Staff) |
Hi Master_Programmer, I don't believe that there's any way to load instructions directly from memory other than the Flash Program Memory space. I think you have two options:
Mike |
November 18, 2010 by Master_Programmer |
i know, i just need some way of loading a program onto an EEPROM chip, and then loading the program from that, onto the chip itself somehow....and even then, i'll probably need help with the programming part too..... but thanks for the answer Mister Mike. :) |
November 18, 2010 by mrobbins (NerdKits Staff) |
Just a thought: Another approach might be to have one microcontroller that's part of the "cartridge" which contains the game, which communicates over the SPI bus (pretty fast!) to a second microcontroller that's responsible for handling all of the I/O with the rest of the "game system". The "cartridge" microcontroller would actually be running the game and maintaining the state of the game world, while the "game system" microcontroller might maintain the state of a display, etc. Mike |
February 22, 2011 by Master_Programmer |
I know....i just thought of that design. XD |
Please log in to post a reply.
Did you know that you can control 120 LEDs with just 17 microcontroller pins? Learn more...
|