Writing to SD card


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Dec 2005
    Posts
    1,073

    Default Writing to SD card

    I have a need to write small amounts of data to an SD card. The data comes in discontinuous flurries of 4 byte chunks and I have about 7mS between chunks to write the 4 bytes to SD (and hopefully to RS232). A normal incident will have a total of 200-532 bytes but there may be incidents that have thousands of bytes.

    The examples I've found so far write 512 bytes at a time, using FRAM or RAM to accumulate a page prior to writing. I'd prefer to write each 4 byte chunk as it occurs.

    Is it possible to write smaller amounts than 512 bytes? Does anyone have a URL to an explanation of reading/writing to SD? Better yet, does anyone have an example of writing small amounts of data to SD?

  2. #2


    Did you find this post helpful? Yes | No

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by bbarney View Post
    I had already seen that and I interpreted it as requiring 512 byte writes. Am I misinterpreting it?

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Probably not I didn't really read it just thought you might not have seen the site before.this might help even though it's for proton
    Attached Files Attached Files

  5. #5
    Join Date
    Nov 2005
    Posts
    36


    Did you find this post helpful? Yes | No

    Default

    Yes you can!
    Anyway the block must be closed with exactly 512 bytes.
    Absolutely necessary the "ProdManualSDCardv1.9.pdf" from Sandisk
    Regards
    Gianni

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by GioppY View Post
    Absolutely necessary the "ProdManualSDCardv1.9.pdf" from Sandisk
    Thank you! That looks like a great resource.

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Dave here's a link to a newer manual
    http://www.digitalspirit.org/file/?a...dv2.2final.pdf

  8. #8
    Join Date
    Mar 2006
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Proton to PBP

    Quote Originally Posted by bbarney View Post
    Probably not I didn't really read it just thought you might not have seen the site before.this might help even though it's for proton

    Sir that code is cool!!! have you ever tried porting it to PBP? i would like to share it from you ifsoever

    Trully,
    Ryan

  9. #9
    Join Date
    Jul 2006
    Location
    USA
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by bbarney View Post
    Dave here's a link to a newer manual
    http://www.digitalspirit.org/file/?a...dv2.2final.pdf
    That link doesn't seem to be working. I did a google search and all links for that file are from
    that website. They must have moved the file.

  10. #10
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126


    Did you find this post helpful? Yes | No

  11. #11
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,810


    Did you find this post helpful? Yes | No

    Default

    That link is OK. Thanks!

    Ioannis

Similar Threads

  1. SD or MMC card as storage for logging
    By HYETİK in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 16th January 2012, 02:07
  2. Replies: 12
    Last Post: - 4th March 2010, 21:20
  3. SD Card file attributes with SDFS3 ?
    By Chris Barron in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th March 2009, 09:18
  4. 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
  5. Writing to an SD Card/PIC18F2480
    By divisionbyzorro in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 19th March 2007, 15:02

Members who have read this thread : 1

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