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

Writing files with 8051

Hello,

I would like some assistance with storing information on a SD card in the format of a text file. This SD card is connected to a 8051 microcontroller. Communication with the card is done via the SPI. I'd really appreciate some sort of #include file or anything that lets me have access to functions such as fprintf and fscanf, fopen, fclose. Also if anyone can tell me weather FATfs (elm-chan.org/.../00index_e.html) files are ok to compile on a 8051.

Parents
  • The most logical approach for storing your data in case you do not want to use a memory card with a file system on it, is to use a SPI-connected EEPROM. They have much simpler SPI protocol than the SPI protocol used for SD memories.

    But if you have already fixed the required hw for interfacing with a SD card, please go ahead with the referenced library. SPI in itself is not complicated, and it is mainly the SPI that must be mapped from the original processor.

Reply
  • The most logical approach for storing your data in case you do not want to use a memory card with a file system on it, is to use a SPI-connected EEPROM. They have much simpler SPI protocol than the SPI protocol used for SD memories.

    But if you have already fixed the required hw for interfacing with a SD card, please go ahead with the referenced library. SPI in itself is not complicated, and it is mainly the SPI that must be mapped from the original processor.

Children