Memory Access
Discovery
Posts: 606
in Propeller 1
Hi,
I am working on a new application for the Propeller that will write to and read from an external memory.
Testing will be performed on the Propeller Activity board using the removable memory chip.
I cannot locate "C" code for writing to and reading from the memory. Can you supply a reference to some working code?
My application uses COG 4 to calculate a long file of numbers then stores this file in the Activity Board memory.
COG 5 and COG 6 use a synchronized clock to read numbers from the memory and send digital data from OUTPUT 10 and OUTPUT 11 using COG 5 and digital data from OUTPUT 12 and OUTPUT 13 using COG 6.
How do I use "C" code to write to and read from the Activity Board external memory?
Sincerely,
Discovery
I am working on a new application for the Propeller that will write to and read from an external memory.
Testing will be performed on the Propeller Activity board using the removable memory chip.
I cannot locate "C" code for writing to and reading from the memory. Can you supply a reference to some working code?
My application uses COG 4 to calculate a long file of numbers then stores this file in the Activity Board memory.
COG 5 and COG 6 use a synchronized clock to read numbers from the memory and send digital data from OUTPUT 10 and OUTPUT 11 using COG 5 and digital data from OUTPUT 12 and OUTPUT 13 using COG 6.
How do I use "C" code to write to and read from the Activity Board external memory?
Sincerely,
Discovery
Comments
Discovery
learn.parallax.com/tutorials/language/propeller-c/propeller-c-simple-devices/sd-card-data
Tom
This way, when I checkout the code on the Activity Board I am assured that it will operate properly on my PC board...when it is made.
I will checkout the link..thank you.
Just a thought...how much memory space is available in each COG? There might be a chance that the memory in each COG may do the job.
I figure to use about 1 GB per memory.
Sincerely,
Discovery
Nowhere near that much memory in the whole propeller. A cog has 512 x 32 bits (2K), of which 496 x 32 can be used.
Thank you,
Discovery
I performed the lesson and it worked fine.
However, in the first paragraph it states "Later, we'll look at... code that can run from an SD card".
That portion of the lesson is missing.
Do you know where it is?
I would like to write a small amount of code that resides in the SD card, reads the data stored in the SD card, then drives propeller outputs from the SD card.
Discovery
https://forums.parallax.com/discussion/138251/cluso-s-propeller-os-v1-14-now-with-spin-pasm-compiler-eeprom-read-write/p1