Dear Sir / Madam,
I am trying to SD CARD interface in MSC1210 for data logger, SD CARD is SPI Protocol , can you help me?,
spi init and sample code for SPI and SD CARD interfacing in MSC1210. please send sd card sample code.
I am waiting for your valuable reply.
Thanks and Regards,
Ramesh k
Hi Ramesh,
There are two example programs for the SPI port of the MSC1210 on our FTP site here:
ftp://ftp.ti.com/pub/data_acquisition/MSC_CD-ROM/Example_Programs/MSC121X_Examples/
Those should be able to help you get the serial port of the MSC121x setup. We do not have any specific code examples for writing to/reading from an SD Ram card though. The card manufacturer should be able to provide you with details on the SPI clock phase/polarity settings needed to communicate with the host.
Regards,
Tom
Dear Tom Hendrick,
This example works or not? i am try to similitude SPIDATA and isr no response.
How can i so simulate it.
Thanks,
Ramesh,
Talking to an SD card is doable but you will have to create more code than what is shown in the SPI example for the MSC1210 to make it functional. A professor by the name of Foust from Michigan State University created an app note using the MSP430 that details the process and has some code along with it. You should be able to adapt that code to the MSC1210 by exchanging the appropriate setup and command functions. To find this app note conduct an internet search using Foust Secure Digital Card Interface MSP430 App Note. Hopefully you can find this document as it should be helpful to you.
Best regards,
Bob B
Dear Bob,
Thanks for your reply. i will follow this document.