I am asking for clarification. Do you see a signal on the oscilloscope? If so, then you are doing well so far. Are you asking how to connect to a speaker? If that is your question, then you will have to supply an external amplifier to handle the 8-ohm load. Do I understand your question?
His issue I think is streaming the audio thru USB >> DMA >> DFB >> VDAC8.
Getting that to work. There are example projects that handle the DMA >> DFB >> VDAC8
part of it, but he needs help getting DMA to capture the USB stream and forward that to the
Hi Dana and 78RPM.
As Dana I mean to " streaming the audio thru USB >> DMA >> DFB >> VDAC8."
If you can help me at that, I thank you.
I try USB>>DMA>>AUDIO and work well on that.
USB >> DMA >> DFB >> VDAC8 I will thank you
Your project works. Check and remove J43 on the KIT-050.
Maybe you forgot to make it active:
Right click --> Set as active project.
Hi and thank you All,
I am using psoc creator 3.0 and Psoc 5lp - cy8c5868axi-LP035 and the develeponet kit is cy8ckit-001
and it doesnt work for me...
I tried to get the data from the DMA to the filter(peripherial) and then to output it but i get on the osciloscope a square wave nor correct and it doesn't react to the frequencies as it should react with the flter :(
I added the code lines in order to connect the components in the main.c file (//ADDED appears on the commetns)
attached the project with docomuntation
Please let me know what did I miss in the main file or schematic
Besr tregards and Happy Holiday :)
1.I found that somtimes psoc has an issue with the names
so change VDACoutDMA to DMA in main.c and in the schematic
2.check the NUMof BUF to 128
3.you left a comment on the line comment on this line
//while (Filter_IsInterruptChannelA() == 0) ;
You need to active it, to give the filter option to intterupt the dma and start the streaming
4. When You finish, try to change the intttreput options of filter, this can help you.
If you have any question, feel free to ask me in this post and I happy to help
Thanks on your reply
I read it now.
I have a meeting, and start to work on it immeditaly after the meeting and fix my project accoring to what you said
Can you be avaible in the next two hours?
Reduce the filter gain from 10 to 1 (one) and project will compile.
I didn't explain myself well.
The project compile, but the result of the filter (the output) is not curreclatad to the filter and to assign wave as expceted
I mean, that maybe I don't know how to pass the infromation from the filter to DAC.
Did I need another DMA?
This is any problem in the code?
Maybe you can send me link to another example project that work with usb and filter?
If not, what do I miss in my code?
the input is sin and the output look like a squre wave plus sin I don't understand why?
IMG-20150101-WA0002.zip 176.7 K
One observation, you cannot tie speaker to a pin. Two reasons, VDAC
output at 4V range is 16 K ohms, not buffered unless you use an OpAmp
afetr VDAC8 set as follower. The other is speaker, if voice coil, is very low
Z and needs a power stage.
Here is a discussion on driving voice coil speakers -
Hi Dana and thanks a lot
the input is sin(generator) and the output(osciloscope) look like a squre wave plus sin I don't understand why?
I geuess the indormation dont pass as it should
how can I fix this?
I do not remember the reason (I think the filter has a different byte order), but I had to swap bytes for the filter after replacing PSoC3 on PSoC5
like this: ADC_LF = (int16)(*(LP_Filter_HOLDA_PTR+1)<<8) + *(LP_Filter_HOLDA_PTR+0);
I have already pointed to the Project Project#102 – USB Audio using the PSoC 5LP
it uses Droop_Filter using DFB. Maybe it will help.
PSoC3 and 5 have different endianess. On PSoC5 there is no need to swap bytes, but the DAC only accepts positive values while the filter will deliver +-integers. Can be cured by CPU intervention (No DMA) or a self-made component.