Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > firmware

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



firmware
Moderator:
RSKV

Post Reply
Follow this topic



firmware

chenqiang posted on 07 May 2013 5:19 PM PST

1 Forum Post

 hi,everyone.

I have a question want to solve,I use the CY7C68013A-100 to transfer data from the FPGA to host. The CY7C68013A works in the SlaveFIFO auto in and auto out mode,the datawide is 8 bits. But when I download the .hex file to the hardware,the CY7C68013cannot bulk out transfer,can sonmeone give me some help,thaks a lot.

CPUCS = 0x10; // CLKSPD[1:0]=10, for 48MHz operation, output CLKOUT

  IFCONFIG = 0x03; //

 SYNCDELAY;                    // see TRM section 15.14

  EP2CFG = 0xA2;                // BUF[1:0]=10 for 2x buffering

  //EP6 512 BULK IN 2x

  SYNCDELAY;                    // 

  EP6CFG = 0xE2;                // BUF[1:0]=10 for 2x buffering

  // EP4 and EP8 are not used in this implementation...

  SYNCDELAY;                    // 

  EP4CFG = 0x20;                // clear valid bit

  SYNCDELAY;                    // 

  EP8CFG = 0x60;  

SYNCDELAY;

  FIFORESET = 0x80;             // activate NAK-ALL to avoid race conditions

  SYNCDELAY;                    // see TRM section 15.14

  FIFORESET = 0x02;             // reset, FIFO 2

  SYNCDELAY;                    // 

  FIFORESET = 0x04;             // reset, FIFO 4

  SYNCDELAY;                    // 

  FIFORESET = 0x06;             // reset, FIFO 6

  SYNCDELAY;                    // 

  FIFORESET = 0x08;             // reset, FIFO 8

  SYNCDELAY;                    // 

  FIFORESET = 0x00;             // deactivate NAK-ALL

  // handle the case where we were already in AUTO mode...

  // ...for example: back to back firmware downloads...

  SYNCDELAY;                    // 

  EP2FIFOCFG = 0x00;            // AUTOOUT=0, 8 bit data bus

  SYNCDELAY;                    // 

  EP2FIFOCFG = 0x10;            // AUTOOUT=1, 8 bit data bus

  SYNCDELAY;                    // 

  EP6FIFOCFG = 0x0C;            // AUTOIN=1, ZEROLENIN=1, WORDWIDE=1

  SYNCDELAY;

  PINFLAGSAB = 0xE0; // FLAGA - indexed, FLAGB - EP6FF

  SYNCDELAY;

  PINFLAGSCD = 0x08; // FLAGC - EP2EF, FLAGD - indexed

  SYNCDELAY;

 

 




Re: firmware

PRJI posted on 07 May 2013 09:29 PM PST
Cypress Employee
333 Forum Posts

 Hi,

 Could you please try with the firmware comes with  AN61345 - Designing with EZ-USB FX2LP™ Slave FIFO Interface using FPGA

-PRJI






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: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20