Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Faw questions about 68013

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



Faw questions about 68013
Moderator:
RSKV

Post Reply
Follow this topic



Faw questions about 68013

xiaoliangzhang posted on 18 Apr 2011 11:06 PM PST

1 Forum Post

my chip is 68013A ,ep 2 IN,bulk,512 * 4.

My code:

void TD_Init(void)             // Called once at startup
{
   // set the CPU clock to 48MHz
   CPUCS = ((CPUCS & ~bmCLKSPD) | bmCLKSPD1) ;
    // set the slave FIFO interface to 48MHz and work in the slave FIFO
    SYNCDELAY;
    IFCONFIG = 0xc3;

 SYNCDELAY;
 REVCTL |= 0x03; // REVCTL.0 and REVCTL.1 set to 1
 SYNCDELAY;                    // see TRM section 15.14
   EP2CFG = 0xe8;
// SYNCDELAY;
// FIFORESET = 0x80; // Reset the FIFO
    SYNCDELAY;
   EP2FIFOCFG |= 0x08;
 SYNCDELAY;
    FIFOPINPOLAR |= 0x04; //set valid active high
 SYNCDELAY;
   EP2FIFOCFG &= ~0x01;

 //init EP2 ram
   SYNCDELAY;                   
   EP2BCL = 0x80;                // arm EP2OUT by writing byte count w/skip.
   SYNCDELAY;                   
   EP2BCL = 0x80;                // arm EP2OUT by writing byte count w/skip.
 SYNCDELAY;                   
   EP2BCL = 0x80;                // arm EP2OUT by writing byte count w/skip.
 SYNCDELAY;                   
   EP2BCL = 0x80;                // arm EP2OUT by writing byte count w/skip.

   // enable dual autopointer feature
   AUTOPTRSETUP |= 0x01;
}


void TD_Poll(void)              // Called repeatedly while the device is idle
{
 IFCONFIG = 0x03;
}

 

questions as follows:

1,cann't set IFCONFIG = 0x03 in the TD_Init(); when I set it in the TD_Init(),68013 can work normal.

    so I set IFCONFIG in the TD_Poll(void)  .

   buf I want to know why it cann't work in the TD_Init();

2,68013 cann't set 1024 * 4.why?

3,when arm read 68013's FIFO ,sometimes drop packet.

   my logic is :    tuner -> 68013 -> arm.

  tuner data is 5M byte per second send to 68013,and arm read 68013  in usb high speed.

 but it alwayes drop,and Fullflag sometimes is low.

  how to do?

 and iso is more good then bulk?

 




Re: Faw questions about 68013

aasi posted on 25 Apr 2011 06:04 AM PST
Cypress Employee
1090 Forum Posts

Hi,

What is the exact error condition you are seeing when you set IFCONFIG to 0x03 in TD_Init()??
In the example posted above you've set it to 0xc3. Does it work fine with this??

You've posted quite a few questions. It would be a good idea to open a tech support case through MyAccount -> MyCases.

Regards,

Anand






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