SLAU678C March 2016 – November 2022
The MSP430FR5994 LaunchPad development kit features an onboard microSD card. With an SD card, there is another method of cheap data logging available for users. The Out-Of-Box experience comes with an SD Card Library that helps users interface the MSP430FR5994 with the SD card. The library lets users store data in files with a name of their choice, so that the data can be used later in conjunction with a PC.
The slot can detect if a card is present. If a card is inserted while the MSP430FR5994 is on, an interrupt for the MCU is generated. Table 2-3 lists the SD Card Detect pin and the rest of the pin assignments that are used to communicate with the SD card.
microSD Card Function | MSP430FR5994 Pin |
---|---|
SD Card Detect | P7.2 |
SD SPI MOSI | P1.6 |
SD SPI MISO | P1.7 |
SD SPI CS | P4.0 |
SD SPI CLK | P2.2 |
R7 on the MSP430FR5994 LaunchPad development kit is not populated on the board to ensure accurate LPM current measurements. Use the internal MSP pullup resistor in software, or populate R7.
R5 is also not populated. In the SD Card library, the SPI CS line is driven high or low. Often why a pullup resistor like R5 is included is for during system startup. Before the MSP430FR5994 fully starts and outputs a high signal on the CS line, it is possible that CS may be floating, and the SD card may interpret other floating SPI lines as communication. It is a good practice to populate this resistor in an application where the exact startup conditions are not controlled. For the LaunchPad development kit, this resistor is removed for precise current measurements when all GPIO are set low.