USB low-full-high speed peripherals Forum Discussions
Hi.
I trying to slave fifo in fx2lp 56pin.
And i now see the following example about slave fifo.
But i don't know what whether IOC used to output or input.
Could you please let me now about the direction of "IOC" ?
Also, what is different between "IOC & 0x02" and "IOC|=0x01"? i don't know what they have meaning.
Thanks.
void TD_Poll( void )
{
if(!(IOC & 0x02))
{
done_frm_fpga = 1;
}
if ((done_frm_fpga) && (IOC & 0x02))
{
IFCONFIG = 0x03;
SYNCDELAY;
IOC|=0x01; //output 1 on PC.0...SYNC signal is HIGH
SYNCDELAY;
done_frm_fpga = 0;
}
}
Show LessHi
In TD_poll() of slave.c of An61345 example firmware code,
The IOC used like this IOC |=0x01 But i dont understand.
As i know, The IOC 's i/o initial direction is used by input.
So IOC register can read on input direction, but example code show that IOC can write like this IOC |=0x01.
Is this something wrong what write data to input register ?
Show LessHi!
I face with some problem studying GPIF. When i initialize const char xdata WaveData[128] processor stops working.
Because of what it could be?
Regards,
Roman.
Show LessHello,
Is it possible to write data to Slave fifo using Endpoints from firmware of fx2lp directly without Host? If so please do post some sample code.
Or, is there anway through which we can write from 8051 interface to FIFO without host and USB interface?
Thanks and regards,
Paramesh
Hi,
I'm working on a USB-camera with an Aptina-sensor connected to the EZUSB on GPIF interface. After couple of issues at the begining, everything works quite fine sofar. There is however one more requirement I need to fullfil and after trying for some time now, I'm getting out of ideas...
I should maintain a sequence number, incremented with each frame sent to the host, and put the sequence number along each frame-data either as a header before or as a footer after the data.
I tried to put the sequence number to the FIFO before starting GPIF (starting wave once for each frame), which never succeeded. It always gets overwritten by the frame-data. I read in this forum, that GPIF normally starts filling the FIFO from the start. That would explain the behaviour... Is there any way to change this and prepend some header before the frame-data (make the GPIF to start filling the FIFO from some other position than the start) ?
As a second try, I'm trying to put the sequence number at the end of the frame-data (footer), before I call INPKTEND to commit the last packet of the pending frame after the GPIF finished. I'm not quite sure, how to find out the position, where to put the sequence number. I mean, where the FIFO pointer stands at the moment. I should add that the FIFO is in AutoIn mode.
Any ideas are greatly appreciated.
Regards,
Pavol.
Show LessDear sir/mam,
there is no utility given in the cyusb for linux to download the binary firmware file to RAM of the FX2LP.
need help any idea please let me know,
Regards,
rohaan
Show Less