propellor memory
Vertex78
Posts: 51
Does the propellor have internal memory of 64Kb (32Kb ram and 32Kb rom) in addition to having the external eeprom memory which you can have connected to it?
Comments
Once a program is running under control of the SPIN interpreter, it can do anything it wants including starting up one or more other cogs with programs from RAM. Any cog can reload itself or any other cog with a new program without affecting the rest of the chip. Pretty much the only global resource (other than RAM) that can affect all the cogs is the system clock control register.
along with the 32K of ROM. Each COG than has 512 4-byte registers, which is essentially another 2K of RAM
each, and this sums over the 8 COGs to another 32K of RAM.
When you are running a COG program, the SPIN interpreter is copied from a particular 2K chunk of the ROM
into one of the COGs and run from the COG.
It is not impossible to use the COG memory for interesting things. For instance, I'm considering using about
1K of a COG RAM as buffering for the FAT16 routines, so that buffering won't be required in main memory.
The problem with doing this is all access to that RAM needs to be through the COG, since COGs cannot
access the memory of another COG.