i have to playback a wave file using a psoc 5 pl. Have someone an idea how to do?
You have to use DAC or iDAC for this purpose.
If your wave format greater than 8bit, should be truncate into 8bit.
Or, You want to get more HiFi sounds, you can use PWM module for D/A conversion.
Or, You want more and more, Use I2S module and external D/A converter.
Take a look at bit rates used for wav files -
If you are doing telephone speech bit rate quality, 6 Kb/s, then VDAC
PWM has an issue, the worst case latency from a period update to PWM
at new duty cycle. Even if stopped, then updated, latency still an issue.
This results in a form of distortion at minimum. This is also complicated
by settling time of PWM output filter, eg. tradeoff between sampling noise
filtering and settling time of filter.
Correct "period update" to duty cycle update in my last post.
This might be useful on PWM method -
here are app notes to increase the DAC resolutions. For audio usage that should be fast enough
no. it isnot a telephone speech. i will send y the file
The start of your design is to determine the bit rate (BR) you want to
reproduce the audio at. Usually that would be the 2 X the BR the file
was created. You can always under or over sample the BR the audio
was created, with various design / distortion impacts.
This then drives the speed the DAC must have. In turn that will lead you
to the class of architecture the DAC will have to have.
Note the DAC resolution additionally controls S/N and dynamic range in
the output audio stream.