Budgeting power for an SD chip - Or... how to debug a crashing Propeller-based
ElectricAye
Posts: 4,561
Hi All,
I'm testing my Propeller-based data acquisition system, which I have tested in parts but just now integrated into a single system. It seems to run okay but after 20 seconds to about 2 minutes, the whole thing seems to crash. The TV output goes blank and the SD card stops writing data without closing its current file. The integrated program operates a DS1307 real time clock, two DS18B20 digital thermometers, the TV display, and writes to an SD card. The various components seemed to work without any such failure, so I'm guessing this might be a power budgeting problem, perhaps overwhelming the Propeller. Problem is, I don't know how to guess what sort of power the SD card is using. I suppose it could be that the SD card itself is somehow damaged: during debugging of other routines, I've crashed it and reformatted it so many times, it might just be plain worn out? I suppose it could also be some sort of hub memory problem, too, but that's beyond my comprehension at this point.
Anybody have any suggestions? ideas of power used by an SD during writing, etc.?
Thanks,
Mark
I'm testing my Propeller-based data acquisition system, which I have tested in parts but just now integrated into a single system. It seems to run okay but after 20 seconds to about 2 minutes, the whole thing seems to crash. The TV output goes blank and the SD card stops writing data without closing its current file. The integrated program operates a DS1307 real time clock, two DS18B20 digital thermometers, the TV display, and writes to an SD card. The various components seemed to work without any such failure, so I'm guessing this might be a power budgeting problem, perhaps overwhelming the Propeller. Problem is, I don't know how to guess what sort of power the SD card is using. I suppose it could be that the SD card itself is somehow damaged: during debugging of other routines, I've crashed it and reformatted it so many times, it might just be plain worn out? I suppose it could also be some sort of hub memory problem, too, but that's beyond my comprehension at this point.
Anybody have any suggestions? ideas of power used by an SD during writing, etc.?
Thanks,
Mark
Comments
There are a number of things that it could be...
What does the power supply look like that you are using?
Do you have a schematic that you can post?
The code itself could be a problem if there is a COG that does not terminate properly.·· Any code to post?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
The only way to know for sure is to get a datasheet for the SD card. Write power is normally higher than read.
Pyro, I'm at 80MHz for the clock speed. I'll have to get out my stopwatch and see just when this thing craps out.
One time it ran for a couple of hours without any problems, but most of the time it happens within a couple of minutes.
I've never had this kind of problem with the Propeller before, so I just assumed it was a power problem. On second thought, that's probably not the case.
I'll post some code and a schematic after I get my act together, which might take a while.
Thanks you guys,
Mark
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It might be the Information Age but the Eon of Ignorance has yet to end.
thanks, I'll get another wall wart and try that out.
Mark
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It might be the Information Age but the Eon of Ignorance has yet to end.