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.

MSP430G2553: Need solution for MSP430G2553 to play .wav file using pwm

Part Number: MSP430G2553


I would like to inform u that i am currently working on the project where MSP430G2553(16 KB flash memory) controller is used to play .wav file. 

I have download .wav file directly form wav site of 3 seconds. I have to stored this .wav file into controller internal flash memory and than have to play this .wav file using pwm.

Here the audio i have to stored is at 8000 samples per second.

So for this i have following query mentioned below.

1) As I have to write this .wav file in controller internal flash memory. Can u please tell me how can i do this. Here did i have to convert .wav file into raw data format? If yes than which tool is required for this? As i am not getting so.

2) Can u also inform me how can i read this .wav file data repeatedly to send data via pwm and at what interval so that proper sound is able to listen properly. As i am new for this so can u please guide me properly so that i can understand well and able to do this project at my end.

Looking forward to hear from you as soon as possible.

Thanks and regards,


  • Hello RRJ,

    You will need to convert the .wav file to an array to read from it. Luckily, depending on how the .wav is encoded, you can just read that data raw after skipping some header information. Although, I think you will need some additional flash externally if you want to do anything significant from a sound quality and length perspective. 

    Please see the following TID on the subject: 

**Attention** This is a public forum