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:关于将 microSD R/W 与 MSP-EXP430FR2355连接的建议

Guru**** 2315160 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1521253/msp430fr2355-advice-on-interfacing-a-microsd-r-w-with-an-msp-exp430fr2355

器件型号:MSP430FR2355

工具/软件:

我正在执行一个原型设计项目、其中涉及记录 ADC 读数、并希望将 microSD 卡用于外部存储器。 我计划使用 eUSCI_A1外设的 SPI 连接的命令、但需要借助一些帮助了解设置以及如何发送命令、因为我之前仅使用过 UART。

当前 SPI 设置代码:

    // 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

我找到 了之前的问题、但 Resource Explorer 中似乎不再提供所述的 FR5994演示。

使用 CCS 12.8。