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.

Audio storage on SD card`

Other Parts Discussed in Thread: MSP430G2553, MSP430F5529

Hello, I'm using msp-exp430g2 development kit. And I want to basically store the audio (the heartbeat sound) that is coming from my analog circuitry and the output of this block is provided to msp430 where adc conversion is done.Now I searched for how to interface SD card with msp430 and also how to store audio in it , but I can't find much relevant information including tutorials (specifically for msp430g2553) that can help me in understanding.I'm really confused and I have few questions.

Firstly of how will I interface SD card with msp430? Which module do I need to use SPI or USCI or any other preferred module ?

(any reference guide,tutorials may help) 

Secondly, while purchasing SD card which option should I prefer either the single chip or the chip with the development board?

Thanks.

  • You can interface to an SDcard using SPI. How do you intend to format the data on the SDcard? If you intend to then later put the SDcard into a PC and read the data, you will need a file system driver and code to format the audio data into some standard media format.

    I'm not sure that the 2553 is up to that task. Most of the examples I've seen are on the F5xx series devices.

    As to your second question - prefer whichever works best for you. That's like asking us which color car you should buy. We don't know.
  • How will I pick the audio signal (it is analog in nature) using SPI interface ?
  • How will I pick the audio signal (it is analog in nature) using SPI interface ?

    That doesn't go together. Either with the internal ADC, or use an external ADC with SPI interface.

    But honestly, I would suggest to start smaller. To manage the audio sampling, processing, formatting (WAV ?) and file system operations in a concurrent manner under real-time conditions is guaranteed to overwhelm and frustrate a beginner.

    Not to mention that I agree with Brian - the selected MCU seems not quite up to the task.

  • Kindly suggest some other alternatives for this as I don't have much time to order any other mcu?
  • Assuming you are looking for a launchpad environment, and with the caveat that I am not doing an in-depth analysis of this, my thought is that the MSP430F5529 Launchpad or EVM board would be the least-risk approach.

    This part is capable of doing flash file system with an SD card and has an ADC12 that you can use to digitize the audio signal. CPU speed up to 25 MHz and USB capability as well.

    Fatima Abdul Ghaffar said:
    How will I pick the audio signal (it is analog in nature) using SPI interface ?


    My reply was in context to the SD card interface, specifically:

    Brian Boorman said:
    You can interface to an SDcard using SPI.
  • Kindly suggest some other alternatives for this as I don't have much time to order any other mcu?

    Sounds suspiciously like it's not entirely your idea - rather a kind of "homework" ...

    I have seen very similar application on Cortex M controllers. With the MSP432 and the TM4C, TI has a decent portfolio in this area as well. Performance is not an issue - only the MSP432 still seems to be in a Beta phase.

    A DSP seems predestined for audio applications, and, incidentally, TI offers those as well. However, DSPs tend to be a bit more complex.

    And there are other MCU architectures (Renesas, Microchip, Atmel) around that can do the job as well.

    I had implemented similar requirements on another platform (Cortex M) in the past, only real-time audio sampling and file access (FatFS) in different projects. Thus I believe I can estimate the required effort to some degree.

    I would go for a Cortex M, since it seems the most generic, ubiquitous MCU architecture, with lots of examples to draw from, and plenty of performance for your task.

    ...as I don't have much time to order any other mcu

    However, since you are finally responsible for the results, you will need to make the decision.

  • Fatima Abdul Ghaffar said:
    Kindly suggest some other alternatives for this as I don't have much time to order any other mcu?

    One of possible alternatives - keep mcu but change project/application/plan to one which you comprehend better than audio storage on SD card.

  • Dear Fatima,

    You can store it on the SD Card using the schematic connections and code referred to here: www.ti.com/.../litabsmultiplefilelist.tsp

    However, this does not store the data with a file system. This means that the raw binary samples will not be viewed as a 'file' if you remove the SD Card and plug it into card holder/PC to read it. But the MSP430 can read them back and send them to the digital to analog converter to playback your audio (assuming there is a speaker or headphones connected to the DAC output).

    Kevin

**Attention** This is a public forum