Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > about cy68013a code not run when download by EZ USB control pannel

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



about cy68013a code not run when download by EZ USB control pannel
Moderator:
RSKV

Post Reply
Follow this topic



about cy68013a code not run when download by EZ USB control pannel

sjh posted on 18 Sep 2012 11:42 PM PST

1 Forum Post

Hello

I now design a product use cy7c68013A. when the board is connect to PC, The PC can identify the USB device. And I also can download the Hex file. In my code,I need config two cmos sensor with I2C BUS.So I add the I2C code in TD_INIT function. But I can not find any wave in I2C BUS. So I doubt that the code maybe is not run. So I write a very small progran to test if the chipo is run. the program is :

#include "E:\cypress\usb\target\inc\fx2.h"
#include "E:\cypress\usb\target\inc\fx2regs.h"

//#define ALLOCATE_EXTERN

sbit SDA=IOC^7;            /*模拟I2C数据传送位*/
sbit SCL=IOC^6;            /*模拟I2C时钟控制位*/

void delay_1ms()
{
   unsigned int j ;
   for(j=150;j>0;j--);
}


void delay_ms(unsigned int i)
{
   for(;i>0;i--)delay_1ms();
}
main()
{

//PORTCCFG=0x00;
OEC=0xFF;
while(1)
{

   SDA=1;
   SCL=1;
   delay_ms(5);
   SDA=0;
   SCL=0;
    delay_ms(5);
}
}  

And I also can not measure any wave in I2C BUS.

So please help me ? Where I had made some mistake?

 

 




Re: about cy68013a code not run when download by EZ USB control pannel

Gayathri posted on 20 Sep 2012 10:48 PM PST
Cypress Employee
428 Forum Posts

 Hi,

 

After you download hex using CyConsole, does it renumerate with new VID/PID? What does it show up as in DEvice manager?

 

Regards,

Gayathri






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