Hello all,
-We want to communicate SD card with MSP430F5438. We are using the slaa281b example code on TI website, that we also modified it for F5438. In this source code, it uses Card Detect (CD) that we want to cancel, can CS be used on behalf of CD? Should we directly neglect the CD pin configuration?
-Besides, if we want to send data to SD card, do we need to create a text file? Does this code generates a file or just sending bytes? How can we test to send/receive data with SD card?
-Lastly, are these codes work for MSP430F5438? It should not work as UCTL0 register, that is equivalent to UCA0CTL0 in our MCU. However, it does not give any compiling error in IAR. What can be the reason of this?
UCTL0 = CHAR + SYNC + MM + SWRST; // 8-bit SPI Master **SWRST**
UTCTL0 = CKPL + SSEL1 + SSEL0 + STC; // SMCLK, 3-pin mode