See the attached image. I am getting square waves at the 8 pins of PORTD.
How to solve the inverted issue. In proteus oscilloscopr seetings I inverted ch B and tried, but then I got ch C inverted. maybe it is a bug in proteus.
I am using a 8 bit 8000 Hz Uncompressed Wav file. It means 1 sec of wav data will have 8000 bytes and each byte has to be played for 125us i.e., (1/8000).
So If I have to play a music of 10 sec then I have to play 8000 * 10 = 80000 bytes. Am I right BradtheRad?
I used an array to store 25600 samples of 8 bit 11025 Hz uncompressed pcm wav file data
For 1 sec it is 11025 bytes so for around 2 sec = 25600 bytes. I am getting some sound for 1 sec. please check it BradtheRad. I have used a different R2R network. Is is 10K and 20K ladder network.
for value 0xFF at the dac i/p I am getting some 4.87v as o/p
It was better than the previous one. I got some music. The problem is If I read data 512 bytes at a time and feed the DAC I am not getting music but only noise.
I want to know if I read the data of wav file used in my example from 44th byte i.e., after the header is the data which I get is equal to the data I get after converting it to .c or .h file using wav2c or pcm2h?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?