i want to read/write bytes on SD card in simple way (fat format is optional).
Anybody who successfully interfaced SD card with 8051 architecture please share his code or any useful related link (if any).
their are several example based on AVR and PIC microcontroller on internet but they are not useful for me. i required running code for 8051 architecture.
I have a lightweight and running code for SD Card r/w using SPI with FAT32 but that's on ATmega. You can modify registers and vavlues in SPI related functions or you could provide your own SPI read/write byte function to the code.
I didn't search for ready-to-run 8051 code, I still suppose it exists. But either if you did find it or not, I don't understand the meaning of the word "useless" in this relation. Does it mean, you don't consider the option of making small changes to an existing code or write a few line of "glue" code, e.g. for the SPI handling on your own?
interfacing SD card is complex matter.
it is better you can use someones tested ready to run code to reduce development time.
if you try to do amendments on someones code to make it your compiler or processor compatible..... it is better to write your own .... THAT'S WHAT I THINK, THAT WHAT I PREFER.
"life is not that simple" you do some simple changes with someones code and it start running on your microcontoller specially in projects like SD card interfacing.
If you're using your own SPI routines then you should be good to use dhrmanitech's FAT32 code, download the example and use it.
I used it in the past and got it working on PIC and AVR both. 8051 shouldn't therefore be a big deal. You just need to change some register names and values and something extra if required depending on your particular MCU's specs. And then you can see it's usage in main.c and create your own main.c file and use that library.