2 diffrent audio streaming to 2 output

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi

   

I wonder if I can stream 2 diffrent audio via 2 diffrent output?

   

Thanks

   

Yoni

0 Likes
6 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum!

   

"Streaming Audio" consists of several different processes that depend on the wanted / required environment

   

Where does the audio come from, what is the desired sample rate, are you planning any manipulation of the stream(s)

   

What interface is the audio going out the PSoC.

   

And lastly: What (which) development kit have you got or which do you plan to get?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thanks Bob

   

I am enthusisatic using the psoc -5, and happy to your fast reply to my first post on forum.

   

I try to stream audio from microphone, the sample rate -10ks/second , I want to seperate to 2 speaker, one for bass (low frequencies) and one for (high frequencies)

   

What interface is the audio going out the PSoC: Microphone

   

    

   

               The kit is cy8ckit-001

   

Thanks

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

This you can solve straightforward:

   

Condition the micro-input to a range of 0V..Vdd as a maximum or to Vref as an optimum. No negative voltages!!!

   

Use the ADC to convert to digital. First approach: transfer values to a memory area with DMA.

   

Use the Filter component as a high-pass and a low-pass. Feed ADC to Filter with two DMAs

   

First approach again: Data into memory, then one channel into DAC with DMA, the 2 channels...

   

Output of DAC goes into OpAmp configured as follower (Gain = 1)  to output pin.

   

 

   

Happy coding

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

To handle ground referenced signals (eg. offset them so they

   

meet input CM range of PSOC) see attached approaches.

   

 

   

The VDAC output Z is 16 K ohms nominal at 4 V range. If your load is hi Z

   

to the VDAC, you will not need output buffer OpAmp, But if you have significant

   

loading do as Bob suggested, add the OpAmp configed as a buffer.

   

 

   

   

 

   

Regards, Dana.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Don't forget because you have OpAmps in PSOC you can consider

   

using Sallen Key approach for HP and LP filtering. Has the advantage

   

over DFB / VDAC8 lesser distortion, noise. If you needed DFB for

   

something else.

   

 

   

   

 

   

   

 

   

Use the filter designer at TI for either filter.

   

 

   

    

   

          

   

http://www.ti.com/lsds/ti/analog/webench/webench-filters.page

   

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

A good discussion of DAC distortion and measurment here -

   

 

   

    

   

          http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CCcQFjAB&url=http%3A%2F%2Fwww.an...

   

 

   

And attached (though DDS has discussion of DAC resolution vs distortion).

   

 

   

Regards, Dana.

0 Likes