I am using a PIC18f25k80 microprocessor and I want to transfer data on an SD card over SPI. The compiler I am using is MPLAB X XC8. Could you please provide an example of how I can initialise the SD card and SPI and how I can create a file where I can store the data. Even a pseudo code would be really appreciated if the task is too complicated!
I have already tried to find examples, but I am really confused on how to put all these together.