- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you upload your project file???
Thanks,
Prajith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for all.
I also think is hardware problem, and waiting new chips.