Non-Volatile Memory Write?
RICoder
Posts: 91
Is there a way on the Prop to write some information to memory that will not be lost due to power-loss or reset? If so, how does one do this?
I promise, I searched the forums and google and the manual...but I just couldn't find anything, and I am hard pressed to believe this is not possible.
I promise, I searched the forums and google and the manual...but I just couldn't find anything, and I am hard pressed to believe this is not possible.
Comments
Re-programming the Prop will erase anything stored within the first 32Kb, so if you have a larger EEPROM, you can write values above the 32Kb mark and just read them in 'manually' when the Prop is started instead.
Jason
I remember having seen a thread recently about connecting larger memory with spare space. And if you still have free pins in your application you can connect another memory chip to the prop. Or two or thre...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Airspace V - international hangar flying!
www.airspace-v.com/ggadgets for tools & toys
The I2C Eeprom connected to the prop (normally) holds 32KBytes (or more). An AT24C256 holds 32KB, an AT24C512 holds 64KB, and an AT24C1024 holds 128KB. On the Prop Proto Boards (I belive both versions) come with an AT24C512. The upper 32KB is free for the user to program and read - see the OBEX or other threads about this.
Now, when the Prop boots, it checks the serial port and the I2C Eeprom (cannot remember which order). Anyway, if the I2C Eeprom exists, the first 32KB (B=Bytes) are loaded into hub ram and the code is executed. It may or may not load some of this hub memory into one or more cogs.
When you load a program into the prop by PropTool, your code is loaded into hub ram and anything not loaded is cleared. If you tell the PropTool to burn this into Eeprom, the whole 32KB just loaded into hub ram is burn (written) to the eeprom. So, effectively, anything you have coded into your software and loaded into the prop by PropTool and burnt to eeprom, will be loaded next time power is applied.
Now, you can also write to sections of the lower 32KB in eeprom, and it will be read into hub each time the prop is reset (or re-powered). Just make sure you don't overwrite any code in the eeprom.
I hope this helps
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps (SixBladeProp)
· Prop Tools under Development or Completed (Index)
· Emulators (Micros eg Altair, and Terminals eg VT100) - index
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz