A IO problem of the Cy7C68013A.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable


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.

0 Likes
1 Solution
Anonymous
Not applicable

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

   

      

View solution in original post

0 Likes
6 Replies
Anonymous
Not applicable

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

   

      

0 Likes
Anonymous
Not applicable

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.

0 Likes
Anonymous
Not applicable

 Hi,

   

     Can you upload your project file???

   

Thanks,

   

Prajith

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

Thanks for all.

   

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

0 Likes