How to improve the speed of writing data to SD card?
Susie
Posts: 4
I hope the SD card be capable of storing up to 100 records,,but it only stores up to 46 records currently.
The input terminal data get into PROPELLER up to 500 records.
The SD card its specification which I use is 30MB/second.
The attachment is my code and the CSV file.
code and csv file.rar The input terminal data get into PROPELLER up to 500 records.
The SD card its specification which I use is 30MB/second.
The attachment is my code and the CSV file.
Comments
I don't really understand why you are splitting up the functionality into two cogs. How about describing what you're trying to accomplish?
FSRW normally is able to use the entire SD card and files can be several GB in size. You won't see write speeds anywhere near 30MB/second. That specification is based on ideal conditions and uses a technique for reading and writing that's not available for use with the Propeller.
You may get more responses if you attach files in the standard format used by the Propellor Tool. This has an "archive" option on the file menu that wraps up everything neatly into a zip file.
Rar files are not normally used here so less people will be able to read them.
Regards
Richard
I am trying to increase the data storing rate,I need to store each input signal which are from another chip that get into propeller at 100 signal inputs per-second.
In other words,I need to store "100 inputs data" from another chip in "one" second.But now I just save only "46 inputs data" in a second and another problem is that there are some signals missed in those "46 inputs. data".
How could I store the "100 inputs data" completely in a second?
Because Propeller receive the data which are "character string" format and that is why I use .pputc.
May you give more information or suggestion for me?Maybe my viewpoint about using .pputc is wrong.
You want to use .pwrite instead of .pputc because there's less overhead per byte and you're concerned about throughput when writing to the SD card.