Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > A IO problem of the Cy7C68013A.

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



A IO problem of the Cy7C68013A.
Moderator:
RSKV

Post Reply
Follow this topic



A IO problem of the Cy7C68013A.

notwind posted on 13 Nov 2011 3:27 AM PST
Member
4 Forum Posts


Hi, I have a problem while using  Cy7c68013A(56SSOP). I make a project with frameworks ,  and set

     IFCONFIG = 0xC0;

     OEA = 0xFF;

then, if I set "IOA = 0;", but always get the result of IOA = 0x24 and PA2(pin 42) is always High.

if I set "IOA = 0xff;", but always get the result of IOA = 0xEF and PA4(pin 44) is always Low.

 

Next , a make a clean project. Whole code are:

#define ALLOCATE_EXTERN // Allocate explicit register addresses here
#include "..\Inc\Fx2.h"
#include "..\Inc\Fx2regs.h"

main()
{
 CPUCS = 0x10;
 
 OEA = 0xFF;

 IOA = 0x0;
 if(IOA == 0x24)
 {
  IOA = 0x08;  //Lighting the LED
 }
 
 while(1)
 {
 }
}

The Led is ON. So the IOA must equ 0x24.

Thanks for any suggestion in advance.




Re: A IO problem of the Cy7C68013A.

PRJI posted on 14 Nov 2011 09:34 AM PST
Cypress Employee
333 Forum Posts

 

Hi,

       I couldn’t reproduce error with your code, I got it to work as expected. From your post it seems this code is written inside fw.c. Please confirm.

Thanks,

Prajith



Re: A IO problem of the Cy7C68013A.

notwind posted on 14 Nov 2011 06:32 PM PST
Member
4 Forum Posts

Thanks for your replay.

I have not writed any code in the fw.c.

In the first project, I initialization in  "TD_Init()" , and get the IOA value in "DR_VendorCmnd()" by use of my own vendor command.

In the second project. I have not use Frameworks. The function "main()" is all. 

My IDE is Keil uvision3 v3.51. C51 ver 8.08.

 

 



Re: A IO problem of the Cy7C68013A.

PRJI posted on 15 Nov 2011 11:43 PM PST
Cypress Employee
333 Forum Posts

 Hi,

     Can you upload your project file???

Thanks,

Prajith



Re: A IO problem of the Cy7C68013A.

notwind posted on 15 Nov 2011 06:10 PM PST
Member
4 Forum Posts

Hi, the attach file include two projects and two script files for ReNumeration.



Re: A IO problem of the Cy7C68013A.

PRJI posted on 17 Nov 2011 12:58 AM PST
Cypress Employee
333 Forum Posts

 

Hi,

       Your first project (with frameworks) worked as expected. I tried with vendor command VR_PowerAD. Since your firmware works fine check your hardware.

The FrameWorks has got specific functions lke EZ-USB chip initialization,USB standard device request handling, and USB suspend power management services for the user. Since these requirements are kept unaddressed your second project won't work for sure.

Thanks,

Prajith

 



Re: A IO problem of the Cy7C68013A.

notwind posted on 17 Nov 2011 04:45 AM PST
Member
4 Forum Posts

Thanks for all.

I also think is hardware problem, and waiting new chips.






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