Hi
We are using CSR1010 Bluetooth Smart IC.
1. In the project we have to implement small audio playback system(for using Alaram).
Audio data will be stored in the flash IC, I want to produce audio through a PWM pin.
PWM Output is connected to amplifier input pin(1W audio amplifier)
Is it supported for this application?
How to produce audio through a PWM pin in the CSR1010
Please give your Suggestion.
2. How much data will be Written to the flash at a time?
What is that time? micro second or milli second.
Thank you
Xavier
CSR1010 - Reminder alarm system
Posted: Mon, 2016-07-04 00:01
PWM would normally be used for something like LED or motor control. It is a digital output. I think you're confusing it with PCM which the CSR1010 doesn't support.
I would recommend using one of the analog output pins instead. Note that these operate in the analog power domain so 0-1.35v more or less.
You should get recognisable audio at 8k 8-bit samples/sec but you may well need a non-linear (a-law or u-law) mapping to your DAC output. I'd recommend downloading (open source) Audacity to generate the audio data from WAV or whatever your original format might be.
Chris
Chris,
Did you run the CSR1010 A2D that fast ? 8Khz per second ?
Xavier,
Regarding PWM,you can use CSR1010 PWM engine. But you can use the CSR1010 inner 8051 to follow the zero crossing of the wave data to make a sound.
zero crossing meaning when the sign bit of the data is "1" you send high to PIO. When it "0" you send low. In most cases it the 8th bit.
Call my Skype nissim.test and tell me if that work OK for you.
Hi NIssim, Yes you can get about 500kHz from the DAC flat-out (i.e. not doing any Bluetooth!)
Thank you Chris.