Pseudo eeprom possible with second prop?
P!-Ro
Posts: 1,189
I'm asking this out of curiosity, not because I think I'm the one to do it, but would it be possible for a second prop connected to a storage device such as an sd card transfer startup data to a second propeller at faster speeds? The first prop could then choose to load whatever code is needed to the second propeller at faster speeds allowing it to be loaded with only the data necessary at that time, such as a tv driver instead of a vga one, or set it up to play music instead of running games. This would seemingly allow more capabilities to be provided than what can fit on a 32k eeprom, and run time capabilities can change on the fly without the need for reprogramming.
So what do you think, is it possible? I'd certainly like to see it happen, seems like it could radically change how we use the propeller currently and open whole new programming windows.
So what do you think, is it possible? I'd certainly like to see it happen, seems like it could radically change how we use the propeller currently and open whole new programming windows.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
90 * 2 = Pi
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)·
· Prop OS: SphinxOS·, PropDos , PropCmd··· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBlade Props: www.cluso.bluemagic.biz
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
90 * 2 = Pi
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)·
· Prop OS: SphinxOS·, PropDos , PropCmd··· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBlade Props: www.cluso.bluemagic.biz
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
90 * 2 = Pi
Yes they can.
You may have heard of the BST Propeller tool clone from BradC. There is also a command line compiler from BradC called BSTC. That has the option to compile a Spin module and then write out only the binary obtained from the DAT section (The PASM code) to a file. All the Spin part is discarded.
So its:
bstc -c somesource.spin
Gives a file soumesource.dat which the PASM binary code for a COG.
I have used this in the Zog project where I am extracting the compiled PASM code form Spin modules an using it with the C++ language. So far I don't save the cog "blobs" to SD card but that is certainly possible.
You have to be careful though. If a PASM program or part of an object gets all its initialization information from a parameter block in PAR it's quite easy to fetch it from SD card to HUB, set up the required parameters and start it.
BUT many times PASM code in objects requires certain values to be set into LONGS in the DAT section which is loaded into COG when running it. This works OK when the Spin and PASM are linked together in an object but if you just fetch the binary from SD then you have to know where within that binary you should write the start up information before starting it.
I had to make a small change to FullDuplexSerial to remove this problem. Other objects might be harder to adapt to that usage.
http://forums.parallax.com/forums/default.aspx?f=25&m=423939
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.