Menu

sd.h example code wanted

Help
PMJ
2014-05-17
2014-05-17
  • PMJ

    PMJ - 2014-05-17

    Hello,
    I whant to build a simple logger that can store data (singel bytes) on a sd card.
    I dont need a formated fat system i just whant to read it whith a pickit device
    I see that there is a sd.h library, but i dont know hos to use it.
    Is there any out there ho have a small simple code for a pic 16f1788 or 16f877 (any pic16)

     
  • Anobium

    Anobium - 2014-05-17

    Lets see if we can help.

    I guess you are referring to the sd.h in the SF Code\Trunk?

    Can you confirm this is that this is the case?

     
  • Hugh Considine

    Hugh Considine - 2014-05-17

    Unfortunately, the code in sd.h is not yet finished and doesn't really do anything useful. How much data do you need to log? If you're reading data back with a PICkit 2 and only need to store a few entries (up to 256 bytes), then using the memory (either EEPROM or Flash) built in to the PIC may be an easier option.

     
  • Anobium

    Anobium - 2014-05-17

    Hugh, the sd.h. I never validated, or, documented it. Should we removed from trunk? and, just post in the forum until someone has time to complete the header?

     
  • Hugh Considine

    Hugh Considine - 2014-05-17

    I think we should keep everything in SVN, finished or not. It helps to keep everything safe. Perhaps we need a disclaimer that anything in SVN that isn't documented is probably not usable. (Or, a comment at the top of any files that aren't yet finished.)

     

    Last edit: Hugh Considine 2014-05-17
  • PMJ

    PMJ - 2014-05-17

    Thank you for the awnsers,
    Well i guess there is a Way to use sd card using spi mode, so mabye it would work to write to it even if the sd.h is not finished. I dont Care if i have to write some rubbish zeros to compleate the 512byte sektor isssue (i probably Will use it to log voltade and current with 1sec simple for a week or so)
    I would like to use sd card becaurse it is almost endless in matter of storage.
    I havs tested to use e2 memory but i whant mode storage.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.