Shop OBEX P1 Docs P2 Docs Learn Events
BS2p <--> MMCard communication — Parallax Forums

BS2p <--> MMCard communication

aridaiosaridaios Posts: 57
edited 2006-04-04 14:50 in BASIC Stamp
Hi all,

I just received a BSCB BASIC STAMP CARRIER BOARD + MMC-RTC-1 from http://www.bipom.com.
I am looking for sample code for BS2p. All I could find is http://www.bipom.com/files/bscbfiles/RTC.zip·and http://www.bipom.com/files/bscbfiles/MMC.zip·which·are more complicated to me BS2·code.
Could anyone help me·build some BS2P·code for MMC+RTC (I mean read and write to MMC and read from RTC?

Regards
Michael

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-04-03 20:12
    The code you linked to should work with the BS2P. Or you can replace the I2C routines with the I2C commands availible for the 2P. Refer to the Stamp manual on how to use them.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    6+6=10 (Long live the duodecimal system)
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-04-03 23:28
    That's going to be a bit tricky, even for the BS2p -- you're going to have to implement FAT12 or FAT16 or FAT32 so that you can write data to the card.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • aridaiosaridaios Posts: 57
    edited 2006-04-04 03:22
    Jon,

    Where could I find information about this?

    Regards
    Michael
  • ForrestForrest Posts: 1,341
    edited 2006-04-04 04:08
    Google

    Here's a similar setup for $39 that reads/writes MMC Cards AND includes support for FAT12, FAT16 and FAT32 www.ghielectronics.com/uALFAT.htm
  • aridaiosaridaios Posts: 57
    edited 2006-04-04 05:08
    Dear forrest,

    I think your·link is useless to me because I already have the hardware and searching software for this.
    Oh, Jon I forgot to tell that after data will be written to MMC, I intent to download them through a card reader to a PC.

    Michael
  • Tracy AllenTracy Allen Posts: 6,658
    edited 2006-04-04 06:09
    Hi Michael,

    Don't underestimate the work required to do a file system. I appreciate that you already have the device, but.... Here are a couple more references:

    barrymichels.com/ide/ for a CF card, but shows what is involved to make the Stamp manage FAT16.
    www.lvr.com/mass_storage.htm an education

    The ghi uALFAT device that Forrest mentioned would take care of managing the standard file system, so all the Stamp has to do is command it to open a file and write and read data, and the files will appear with no further effort on a PC or Mac desktop when you put the SD card in the reader. A similar, but less sophisticated uMMC is available from www.roguerobotics.com.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • aridaiosaridaios Posts: 57
    edited 2006-04-04 14:40
    Thank you Tracy,

    I already have http://www.roguerobotics.com/·uMMC too.

    My application has to do·with a 1-wire weather station , a BStamp and a MMCard for saving data which could be later downloaded on a PC.

    Is there anyone that could help me? Of course not for free!!

    Regards

    Michael
  • Mike GreenMike Green Posts: 23,101
    edited 2006-04-04 14:50
    There are some back issues of Circuit Cellar a few years ago that discuss microcomputer access to an MMC card. I think they dealt briefly with FAT12 format and had some references to more information. Go back through their archives for the articles.
Sign In or Register to comment.