Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?
Moderator:
RSKV

Post Reply
Follow this topic



Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

deskmate9999 posted on 03 Aug 2009 4:38 AM PST
Member
5 Forum Posts
Hi,

I am working on a new design which will use the CY7C68013A together with a FPGA to convert a USB Audio signal into SPDIF signal.

Details:

1. The CY7C68013A will act as the USB controller and convert the USB Audio signal into parallel data.

2. The FPGA will then covert the parallel data into SPDIF format.

3. Both (USB input and SPDIF output) of the above needs to support 24bit/192kHz audio data.

A few questions:

1. Is there any sample code for the CY7C68013A to act as an USB audio device and accept 24bit/192kHz audio data?

2. Can the CY7C68013A be programmed to act as a native USB Audio 2.0 device? Hence no custom USB driver is needed, user can use the generic USB audio driver comes with Windows.

Many thanks,

DM


Re: Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

aasi posted on 03 Aug 2009 05:32 AM PST
Cypress Employee
1090 Forum Posts
What you are trying to achieve can definitely be done... modifying the device descriptor should help you bind fx2lp to native audio driver...

Re: Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

deskmate9999 posted on 03 Aug 2009 06:42 AM PST
Member
5 Forum Posts
thank for the reply.

Is there any sample code for the CY7C68013A to act as an USB audio device and accept 24bit/192kHz audio data?




Re: Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

aasi posted on 03 Aug 2009 06:52 AM PST
Cypress Employee
1090 Forum Posts
I don't think there is an sample code like that....

Re: Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

deskmate9999 posted on 03 Aug 2009 08:53 AM PST
Member
5 Forum Posts
Seems that the native usbaudio.sys driver from MS will not work at 192kHz. Only the newer hdaudio.sys can. How difficult is to program the CY7C68013A, so that is will work under hdaudio.sys with 192kHz ability?

Re: Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

aasi posted on 03 Aug 2009 09:06 AM PST
Cypress Employee
1090 Forum Posts
Still the datarate is less than 1MB/s right??? i don't think FX2LP will have a problem managing that... Since you are using the FPGA to do the work the easiest way to go is to put FX2LP in slave fifo mode and keep pumping the received packet to FPGA...

Re: Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

deskmate9999 posted on 03 Aug 2009 09:34 AM PST
Member
5 Forum Posts
yes, the data rate is ~9Mb/s, plus 20% overhead, still less than 12Mb/s. I don't think FX2LP is the problem, it is the native usbaudio.sys in Windows OS that is the problem.

One way to fix it is to use the native hdaudio.sys, anyone tried to program the FX2LP to work with hdaudio.sys?

Re: Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

aasi posted on 03 Aug 2009 10:47 AM PST
Cypress Employee
1090 Forum Posts
That part i'm not sure dude...

Re: Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

deskmate9999 posted on 04 Aug 2009 07:05 AM PST
Member
5 Forum Posts
Also I need to to implement the USB-Audio protocol in the firmware of the FX2LP , any sample code which I can refer to?

Re: Can CY7C68013A be programmed to act as an USB Audio 2.0 device? USB->SPDIF?

aasi posted on 04 Aug 2009 09:59 AM PST
Cypress Employee
1090 Forum Posts
Your earlier description seemed like you were planning to shift the audio protocol overhead processing to the FPGA side... if you are gonna use FX2LP to do that you are actually using a 8051 to process data coming in at USB speed so you better calculate the speed before proceeding....




ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20