This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR2355: Advice on interfacing a MicroSD R/W with an MSP-EXP430FR2355

Part Number: MSP430FR2355

Tool/software:

I'm doing a prototyping project involving logging ADC readings and was hoping to use a MicroSD card for external memory. I'm planning to use one connected by SPI from the eUSCI_A1 peripheral, but need a little help figuring out the settings and how to send commands because I've only ever used UART before.

Current SPI setting code:

    // SPI config
    UCA1CTLW0 |= UCSWRST;       // enable software reset
    UCA1CTLW0 |= UCSSEL__SMCLK; // clock speed = 1 MHz
    UCA1BRW = 0;                // baud rate = 115.2 kbaud
    UCA1CTLW0 |= UCSYNC;        // eUSCI in SPI mode
    UCA1CTLW0 |= UCMST;         // SPI master mode
    
    // SPI port pins
    P4SEL1 &= ~BIT1;            // SPI SCLK
    P4SEL0 |= BIT1;             
    P4SEL1 &= ~BIT2;            // SOMI
    P4SEL0 |= BIT2;
    P4SEL1 &= ~BIT3;            // SIMO
    P4SEL0 |= BIT3;
    
    PM5CTL0 &= ~LOCKLPM5;
    
    UCA1CTLW0 &= ~UCSWRST;      // disable software reset

I did find this previous question, but the mentioned demo for the FR5994 doesn't appear to be available in Resource Explorer anymore.

Using CCS 12.8.

**Attention** This is a public forum