veiner.eu
SD CARDDISK PARTITIONS AND FAT32WIRING AND COMMUNCATIONINIT, READ AND WRITETHE CARD READINGHOW TO USE THE CARD
SOURCE CODES

SD card - the source codes

9.6.2018

The source codes below contain the simple functions for initialization, reading, writing to the card. The code is intended to demonstrate the card operation and thus does not deal with error states. The program reads the sectors number 0, 2048, 2080, 17249, 32418 and sends their contents over the serial line.

The code is written in C language in the MPLAB X IDE.

common.h

common.c

main.c

sd.h

sd.c