Forums - CSR1010 - Reminder alarm system

5 posts / 0 new
Last post
CSR1010 - Reminder alarm system
xavier
Join Date: 26 Jun 16
Posts: 2
Posted: Mon, 2016-07-04 00:01

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

  • Up0
  • Down0
cbs
Profile picture
Join Date: 4 Mar 15
Location: IoT consultant, Cambridgeshire, UK
Posts: 21
Posted: Fri, 2016-07-15 02:39

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

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Mon, 2016-07-18 22:32

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. 

  • Up0
  • Down0
cbs
Profile picture
Join Date: 4 Mar 15
Location: IoT consultant, Cambridgeshire, UK
Posts: 21
Posted: Tue, 2016-07-19 01:13

Hi NIssim, Yes you can get about 500kHz from the DAC flat-out (i.e. not doing any Bluetooth!)

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Tue, 2016-07-19 04:17

Thank you Chris. 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.