Connect with us

read/write in memory card with microcontroller

Discussion in 'Electronic Design' started by Gregory, Feb 8, 2007.

Scroll to continue with content
  1. Gregory

    Gregory Guest

    I would like to use a memory card (SD for example) to exchange data between
    a PC and a microcontroller or cpld.
    I haven't yet choosen a specific type of card or microcontroller/cpld

    The size of memory needed is only 32K, there is no speed constraint.

    What could be the best type of memory card to do this easily?
    Where can I find samples of code and schematics for:
    read/write beetween card and microcontroller/cpld ?
    read/write beetween PC and card ?

  2. Use a CF/MMC card. These have about the simplest interface to implement
    (there are actually two interface modes, with one being like IDE, and the
    other a simpler but slower synchronous serial interface).
    Elector magazine, did an article, with a circuit, and software for this,
    and dozens of similar interfaces are available for other micros (8051,
    Atmel, PIC etc.). Remember that to 'exchange data beween a PC and a
    microcontroller', the microcontroller, is going to have to handle the FAT
    filesystem, not just write the card as if it was a lump of memory. This
    will involve a significant amount of software, even if you limit it to a
    'subset' file system, perhaps only supporting FAT12. With this in mid,
    there are small interfaces on the market, offering a serial interface to
    this, with the file system support already included, and there are similar
    modules to handle USB memory cards, which might well be a very 'easy'
    option. The Vinculum VDRIVE module for example, support async serial, or
    SPI interfacing, to a USB memory card.

    Best Wishes
  3. This link might give you some ideas:


    Adrian Jansen adrianjansen at internode dot on dot net
    Design Engineer J & K Micro Systems
    Microcomputer solutions for industrial control
    Note reply address is invalid, convert address above to machine form.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day