Shop OBEX P1 Docs P2 Docs Learn Events
SD interface and software help ??? — Parallax Forums

SD interface and software help ???

mikedivmikediv Posts: 825
edited 2009-01-23 00:00 in Propeller 1
Guys I dont mean to ask repeat questions but I tried to do a serach and could not find anyhting that would help me
is there a shcematic and software expamples for installing an Sd card socket to the propstickusb· or hydra
I have a socket and I want to see if I could interface it to the propstick with say a 1 gig card for storing example programs from the education kit that I write and then reading them back when I need them??? so instead of pulling them off PC could I put them on the sd card and using the IDE open a file from the sd card instead of the PC??? Thaks for all the help
I read through these forums and have to say it seems most of the people here are very advanced to me anyway so I hope no one minds all the noob questions but I love this stuff and want to know everything I can about the prop and the boebot
not to wander but I see they are already coning out with a prop2 it will be hard to catch up but a lot of fun beside the educational kit for the prop I have that is there any more educational stuff I could buy to learn more faster
I am almost done with the propclass series is there another link with more clasees?
·

Comments

  • ElectricAyeElectricAye Posts: 4,561
    edited 2008-12-16 19:04
    Mike,

    did you look through the Object Exchange for SD card materials?


    obex.parallax.com/

    I think the SD card options are limited to 2 Megabytes, though.

    Oops, I meant Gigabytes. Sorry.

    Post Edited (ElectricAye) : 12/16/2008 8:29:33 PM GMT
  • Invent-O-DocInvent-O-Doc Posts: 768
    edited 2008-12-16 19:04
    Hi Mike,

    Although I'm not one of those advanced guys, I'm probably more like you; I've started a project using SD (just waiting on some parts) so I can retrieve data to play WAV sound files. I found pretty good documentation in the code that can be found on the propeller object exchange. First the SD reader object source code has info on how to hook up the SPI interface and use it. The WAV players on object exchange include examples of accessing the SD Reader/Writer object. You are limited to FAT16 filenamse (8 + .3)

    Forgive me if you have already checked these. I hope this helps.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Thomas Talbot, MD
    Gunpowder, MD, USA
  • Invent-O-DocInvent-O-Doc Posts: 768
    edited 2008-12-16 19:10
    I checked the FAT 16 SD reader on obex, it supports 512MB-2G cards if they are formatted correctly, the readme has instructions on this.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Thomas Talbot, MD
    Gunpowder, MD, USA
  • parts-man73parts-man73 Posts: 830
    edited 2008-12-16 19:57
    ucontroller.com/documentation/SDCardDoc.html This is the documentation for my SD card adapter. It gives a diagram of the necessary pull up resistors and the connections to the SD socket.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Brian

    uController.com - home of SpinStudio - the modular Development system for the Propeller

    PropNIC - Add ethernet ability to your Propeller! PropJoy - Plug in a joystick and play some games!

    SD card Adapter - mass storage for the masses Audio/Video adapter add composite video and sound to your Proto Board
  • mikedivmikediv Posts: 825
    edited 2008-12-16 20:22
    wow what can I say thank you all very much I love this place
  • JerryNJerryN Posts: 32
    edited 2008-12-17 03:28
  • Andrew E MileskiAndrew E Mileski Posts: 77
    edited 2008-12-17 19:55
    Is there some reason SPI mode is being pushed rather than native SD mode?
  • BradCBradC Posts: 2,601
    edited 2008-12-17 20:27
    Andrew E Mileski said...
    Is there some reason SPI mode is being pushed rather than native SD mode?
    Licensing fees ?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cardinal Fang! Fetch the comfy chair.
  • rokickirokicki Posts: 1,000
    edited 2008-12-17 23:22
    Right, I do not believe there is any legally usable specification, or rights to use the protocol, for the
    native SD protocol itself.

    Luckily, the fsrw package is extremely modular, so if you want to change the low-level protocol, that's
    easy to do. Or perhaps make it drive a floppy disk rather than a SD card. Or use ext3 on SD instead
    of FAT16. Just replace the corresponding part.

    Note that even if you use native four-bit format, you probably wouldn't get as much speed increase
    as you might think; there is still a lot of overhead in the Spin interpretation of the higher levels
    (especially if you use the one-char-at-a-time routines, but even if you use the pread/pwrite
    routines).

    When the prop2 comes out and we make slight changes to the assembly to support it (so the
    timing works, so it doesn't drive the SD faster than 25MHz) I anticipate you'll see a significant
    speed bump even at simple 25MHz SPI bit-banging. (Although the fact that writes sometimes take
    *much* longer won't go away; that's a device-specific thing.)
  • Cluso99Cluso99 Posts: 18,069
    edited 2009-01-22 11:34
    I presume by the above reply to the D0-D3 interface instead of using the SPI interface on SD cards means noone has done it?

    BTW: In my searching I dug up the following thread...
    Secure digital read/write code released http://forums.parallax.com/forums/default.aspx?f=25&m=162235

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Links to other interesting threads:

    · Prop Tools under Development or Completed (Index)
    · Emulators (Micros eg Altair, and Terminals eg VT100) - index
    · Search the Propeller forums (via Google)

    My cruising website is: ·www.bluemagic.biz
  • Fred HawkinsFred Hawkins Posts: 997
    edited 2009-01-22 15:25
    It's my two cents and I'm sticking with it: the prop ii ought to be sd card aware. If an sd card is correctly hooked up, the prop ii ought to boot from it. Also nice to have, a parallax provided interface.
  • Andrew E MileskiAndrew E Mileski Posts: 77
    edited 2009-01-22 23:57
    Invent-O-Doc said...
    I checked the FAT 16 SD reader on obex, it supports 512MB-2G cards if they are formatted correctly, the readme has instructions on this.
    I'm playing with 16 GB SDHC cards. SDHC cards require a different initialization, making them incompatible, but are otherwise pretty much the same.

    One doesn't have to use FAT12 / FAT16 / FAT32 / exFAT either, unless you want the card to be portable. Note that using long names in FAT is patented by Microsoft; it's a horrible kludge anyways. If you don't need random file offset updates, and don't mind fragmenting and wasting space, a pretty trivial file system can be used instead.
  • Andrew E MileskiAndrew E Mileski Posts: 77
    edited 2009-01-23 00:00
    rokicki said...
    Right, I do not believe there is any legally usable specification, or rights to use the protocol, for the
    native SD protocol itself.
    The Content Rights Management (CRM) stuff is licensed, otherwise accessing the cards doesn't appear to be; one can download the spec free from their site. It has all the CRM sections removed. I expect that if put to non-commercial use, they aren't going to waste a lawyer's cost.

    Guess I'll keep my code to myself, now that you've made me paranoid.

    Post Edited (Andrew E Mileski) : 1/23/2009 12:14:05 AM GMT
Sign In or Register to comment.