Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Convert your .wav file to 8 bits mono. This will give you one byte per sample.
Open your .wav file in HEX EDITOR, byte 44 to the last byte in the file are the data. Bytes 0 to 43 are the file header. Copy the data bytes to your AVR flash.
Transfer with your code the data to the PWM at the rate of the PCM of the .wav file.
What are you saying is method to remove header from wav file and get RAW data but what I want to do is to convert wav file into hex file so that I can write eeprom with eeprom programmer with hex file. No doubt I have remove header in that case also by your method.
I manged to convert .wav file into hex file now I want to combine hex files and I have doubts regarding this:
1. While combining two hex files of same starting address the address of second hex file must be changed in order to avoid overlap, but what should be the value of starting address for second file is it okay if give it as number of data bytes in first hex files +1?
2. While combining hex files if size exceeds 64K then what should be starting address of next file and what should I use as extended segment address 02 0r 04?
It will be helpful to me if someone clears my doubts. :sad: