Week 1 Status -phil

Week 1 mostly consisted of figuring out the steps needed to interface with an SD card from the PIC. Multiple sources were found that discussed and gave example code about SPI transfer and the inner workings of the file system on the card (FAT32). Initially a C++ library was going to be used for interfacing with the SD card peripheral, but this was dropped in favor of a simpler C library. The C library is currently being adapted to work with the PIC32 and the SDHC card being used. The SPI module was the first area looked at and was successfully modified to work with our devices. There was a troublesome reading issue with the PIC where the SD card would send a signal and the PIC would not accept it into the SPI receiver buffer. This was due to an overflow flag, which prevented new information from entering the buffer. The overflow register was reset before every read event in order to fix the error.

One thought on “Week 1 Status -phil

Leave a Reply

Your email address will not be published. Required fields are marked *