This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC2378/MMC driver

Hi all

I want to interface the MMC card with the LPC 2378 controller ...i have downloded the code bundle from the net where they have given the example program for the MMC interface ,but i am unable to fine a write and read function in the program they have declared the function but not defined it ...

int MCI_ReadFifo(unsigned int * dest);
int MCI_WriteFifo(unsigned int * src);

they have writen in mci.c file .

can anyone tel how to write data and read the data from the MMC and at wt address we start writing the data .

i have went through the code but stil not getting it .

Regards
Suresh

Parents
  • yes i tried coping a text file and reading it with the controller but only hex values were coming ,

    ok fine ur telling to make a link between MMC and PC via a controller so that wht ever data is typed on the hyperterminal is sent to controller and then fed to the MMC so that its simple to load data and read the data at fields ,

    fine this is a good idea to do it without any extra code .
    Thanks

    Regards
    Suresh

Reply
  • yes i tried coping a text file and reading it with the controller but only hex values were coming ,

    ok fine ur telling to make a link between MMC and PC via a controller so that wht ever data is typed on the hyperterminal is sent to controller and then fed to the MMC so that its simple to load data and read the data at fields ,

    fine this is a good idea to do it without any extra code .
    Thanks

    Regards
    Suresh

Children
  • if in future i want to expand it to read a file systems wt should i do ,wt changes i should make to read the file systems ....if any notes is there it wil be helpful for me to do it latter since the technology is expanding our customer wil demand it one day so can u help me to find out wt to do ....

  • Only got hex data???

    Hexadecimal or binary - that is just a question of how the information is presented. The MMC (or the sample driver code) does not care about actual contents. Sample source code likes to dump the information in hex format, to make sure that any (!) information will be possible to present without any problems with character sets etc.

    How to use a file system? Buy one from Keil, or surf for free sample code and figure out if it works - or write your own and then figure out if it works :)

    But don't limit yourself to asking for all information. Search for it. Searching allows you access to much more data, and a lot faster. You can't spend your life asking for everything.