SD or MMC card as storage for logging


Closed Thread
Results 1 to 18 of 18
  1. #1
    Join Date
    Jan 2009
    Location
    Ankara,TURKEY
    Posts
    45

    Default SD or MMC card as storage for logging

    I want to use 16,32 or 64 mb mmc or sd card to save log file and some constant and glcd image codes.

    Do you help me about this problem.
    I searched on internet but I only find MMC/SD card reader with RS-232 inteface. I dont want to use rs-232, I only use it as storage device for pic micro.

    Another question:
    can I change code inside the Pic, without programming it again. I heard that 18f series can do it but how??

    Thanks for your helps

    Hasan...
    Electrical & Electronic Engineering
    Undergraduate Student

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I want to use 16,32 or 64 mb mmc or sd card to save log file and some constant and glcd image codes.
    sdfs3.zip
    http://melabs.com/resources/samples.htm

    Requires an 18F PIC, PBP 2.50b using PBPL.

    See the sdreadme.txt, and SDschem.pdf files in the zip.
    <br>
    DT

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    sdfs3.zip
    http://melabs.com/resources/samples.htm

    Requires an 18F PIC, PBP 2.50b using PBPL.

    See the sdreadme.txt, and SDschem.pdf files in the zip.
    <br>
    I'll vouch for that !

    I downloaded it, fully expecting to have to make some changes(other than pin assignments). I compiled the code and it worked the very first time .

    What I would say in all seriousness though, is to check the pinout ever so carefully. Although in the schematic diagram the pic pins (via buffers) are wired to the correct SD card 'pins' you mut take care to note that the indented pin on the edge connector of the SD Card is pin number 9. You might then assume that next to it is pin 8, but no , the next pin along is pin 1

    I took the indented pin to be pin 1 and the next pin to be 2, etc, and blew my first test SD card because there was a power reversal. (Pic was undamaged)

    In summary, from the underside of the SD card with the pads exposed and the indent to the bottom, the pinout is like this..

    8
    7
    6
    5
    4
    3
    2
    1
    ~9


    Other than that, the supporting code simply works as it should, many thanks to the author for that !

  4. #4
    Join Date
    Jan 2009
    Location
    Ankara,TURKEY
    Posts
    45


    Did you find this post helpful? Yes | No

    Default thanks:)

    thanks for it I wil try
    I will report the result
    Electrical & Electronic Engineering
    Undergraduate Student

  5. #5
    Join Date
    Dec 2006
    Location
    WADSWORTH OHIO USA
    Posts
    37


    Did you find this post helpful? Yes | No

    Wink SD or MMC card as storage for logging

    Hey there...
    have been working on similar project,
    check out

    http://www.parallax.com/Store/Microc...me,ProductName

    really cool device...

    cheers
    Thanks !
    SOMRU
    TWE/TFP/EE

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by SOMRU View Post
    Hey there...
    have been working on similar project,
    check out

    http://www.parallax.com/Store/Microc...me,ProductName

    really cool device...

    cheers
    Tell me how you are going to stick an SD card into that?
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Dec 2006
    Location
    WADSWORTH OHIO USA
    Posts
    37


    Did you find this post helpful? Yes | No

    Smile SD or MMC card as storage for logging

    Thanks !
    SOMRU
    TWE/TFP/EE

  8. #8


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by SOMRU View Post
    Yep thats neat , especially if you are pushed for space.

    The SDFS software in picbasic doesn't require any other hardware though, apart from a socket for the card In my case I recovered one from a broken SD card reader (New ones cost less than £1 !), so it cost me nothing to get basic SD functionality

  9. #9
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Chris Barron View Post
    Yep thats neat , especially if you are pushed for space.

    The SDFS software in picbasic doesn't require any other hardware though, apart from a socket for the card In my case I recovered one from a broken SD card reader (New ones cost less than £1 !), so it cost me nothing to get basic SD functionality
    And the support from MeLabs can not be beat. A month or so ago I found a problem with APPEND. I am not good enough with FAT16 to fix it myself, so I told Jeff about it and now it is fixed. That is why it is now SDFS3. Where else can you get support like that?

    I have tested SDFS more ways than I can count, even wore a SD card out reading and writing over and over.

    SDFS just plain works.
    Dave
    Always wear safety glasses while programming.

  10. #10
    Join Date
    Feb 2009
    Location
    Southern California
    Posts
    86


    Did you find this post helpful? Yes | No

    Default

    Out of curiosity how many read/writes do you think you got out of that card. I'm always curious as to how accurate data sheets are for things like that, which I can't actually measure practically.

    David

  11. #11
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    Could anyone using the SFS3 please enlighten me on the amount of flash/ram it consumes? I cannot check it since I do not have PBPL yet.

    thanks

  12. #12
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Jerson View Post
    Could anyone using the SFS3 please enlighten me on the amount of flash/ram it consumes? I cannot check it since I do not have PBPL yet.

    thanks
    Here is what I have on a basic setup.
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=3295&stc=1&d=123865124 3">
    Quote Originally Posted by Luckyborg View Post
    Out of curiosity how many read/writes do you think you got out of that card. I'm always curious as to how accurate data sheets are for things like that, which I can't actually measure practically.

    David
    That is a hard question.

    The card that failed was an old 64 MB. Well used to begin with.
    When I first started playing with SDFS I was using a 1 GB card, that is when there was an append problem. I tried several cards as not all manufactures sizes are the same. The append problem was SDFS would not append a file past the sector the file originated in. It would write multiple file though. I got to testing with the 64MB card. The first sector took a beating. Fill the sector, erase or format, bang on the keyboard some more...

    I do not have any idea how many times I did this.

    After Jeff fixed the problem, skimask and I was doing some write speed test. I set up a loop to write 8 bytes, read, append 8 more, read... This particular card was running that loop at 3.55Hz.

    The way I understand it, the MBR is in the first sector, more abuse.

    I think I was about 4 hours into that test before failure.
    Dave
    Always wear safety glasses while programming.

  13. #13
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    In theory it has to be something like 10K writes cycles, and it depends of the brand. But how 10K is 10K... that's another story
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  14. #14
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Jerson View Post
    Could anyone using the SFS3 please enlighten me on the amount of flash/ram it consumes? I cannot check it since I do not have PBPL yet.

    thanks
    The attachment did not attach the last time??
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=3297&stc=1&d=123868043 6">
    Attached Images Attached Images  
    Dave
    Always wear safety glasses while programming.

  15. #15
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    thank you Dave

  16. #16
    Join Date
    Nov 2011
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: SD or MMC card as storage for logging

    sdfs3.zip
    http://melabs.com/resources/samples.htm

    I searched for the ZIP file but all I found was the PICBasic program. Just wondering if anyone might still have the ZIP version with schematics, text files, etc.Or, is there a newer version available?Can a Caveman really do it?

  17. #17
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: SD or MMC card as storage for logging

    Looks like a bad link. Here's one I found from Dave: http://www.picbasic.co.uk/forum/show...632#post108632
    http://www.scalerobotics.com

  18. #18
    Join Date
    Nov 2011
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: SD or MMC card as storage for logging

    Thanks, I'll download this and see what I can learn. I appreciate your help.

    Mike

Similar Threads

  1. Replies: 12
    Last Post: - 4th March 2010, 21:20
  2. Picbasic MMC SD : sdfs3.bas
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 27th April 2009, 15:03
  3. SD Card Filesystem like AVRDOS for Atmel
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 28th December 2007, 14:00
  4. Writing to SD card
    By dhouston in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th November 2007, 11:23
  5. Read and write to sd card
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th October 2007, 19:47

Members who have read this thread : 3

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts