USB send and receive

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB send and receive

424 Views
aniketmarkande
Contributor III

Hello,

I am working on a K22 series controller and using latest USB stack. I have connected 2 MSD & 1 speaker on USB and trying to read the .wav file from MSD and playing it on speaker.

For playing sound, reading data in buffer1(1152bytes) &sending 64 bytes every 1ms and while sending audio data trying to read in buffer2(1152bytes). 

I observed on analyzer that traffic on USB bus which is coming as follows,

https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210812_pastedImage_2.png

since data is not getting sent every 1ms, sound played is distorted. (Why data is not being read from MSD after sending audio data in 1ms time frame?)

and i want to achieve something like as follows

https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210805_pastedImage_1.png

i was not able to do this although i am using the usb stack APIs.

Please let me know how i can implement this.

Thanks & Regards,

Aniket

Labels (2)
0 Kudos
0 Replies