Writing to an SD Card/PIC18F2480
Hello all!
I'm an uber newbie here, so bear with me. For my senior design project at Texas A&M University, we're trying to build a circuit that will receive messages from a CAN network and write those messages to some sort of external device which can be interfaced with a PC. We're currently trying to write to an SD card, but we're having pretty much zero luck with it so far.
So I'm looking for any help I can with writing a program that will write files to an SD card in a FAT16 or FAT32 file system so that I can simply plug it into my SD card reader and get the information to my PC. I'd also like any information on how to build the circuit to do this; can I simply connect my PIC outputs to the SD card leads and use SPI to talk to the card? Or will I need some sort of external device to aid in this interface?
Thanks,
Sam
You can use an external serial EEPROM
Hi,
Interfacing to the CAN is not a newbie project. So you must concentrate on the CAN part.
When done with the CAN controller part then I suppose you are through with the learning curve. To make your task easier you can use a 128 bytes array on your PIC and periodically dump it to an external eeprom rather than using a SD Card. This would be an advantage using the page write funtion of the EEPROM say a 24C512. Then you can have a routine that formats (puts strings, linefeed, Bin2ASCII etc) and dump on the PC via serial port. However I am not discouraging the use of an SD card. It is only limited by the project timeline you have. As MisterE says "Learning Oppertunities". Hey Steve thanks this has always inspired me.