Save FemtoBASIC Program - No EEPROM?
Humanoido
Posts: 5,770
I am using one prop chip with 32K RAM and no EEPROM.
FemtoBASIC language is loaded in and a long BASIC
program is manually typed in. What is the best way to
save this long FemtoBASIC program for reloading after
power off?
humanoido
FemtoBASIC language is loaded in and a long BASIC
program is manually typed in. What is the best way to
save this long FemtoBASIC program for reloading after
power off?
humanoido
Comments
You need some kind of persistent memory attached to the Prop for storing the FemtoBasic program. What are you willing to use? If it's something other than a standard I2C EEPROM or SD card (or mini-SD card), you'll have to modify FemtoBasic to handle it.
An EEPROM doesn't have to be connected to I/O pins 28/29 (although that leaves other pins free). It could be connected to any unused pair of I/O pins (even and the next odd numbered I/O pin). The EEPROM size could be any multiple of 32K bytes and it can be a Ramtron FRAM.
into a section of the FemtoBASIC code (using the Editor),
both then download into the Prop chip's RAM - then both FemtoBASIC
and the program run from RAM. If the FemtoBASIC has
provisions only to save to EEPROM or SD, then modifying
it may prove difficult. Unless, someone knows a way to
modify FemtoBASIC to accomplish this?
It would give a method to load and save both FemtoBASIC and
a program into one prop chip, without eeprom, and keep both
the language and the program running by continual power.
humanoido
Post Edited (humanoido) : 10/2/2009 6:31:25 PM GMT