USB low-full-high speed peripherals Forum Discussions
text.format{('custom.tabs.no.results')}
Hi.
i have test slavefifo stream test.
result data are like this.
2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 A A B B C C D D E E F F 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 1A 1A 1B 1B 1C 1C 1D 1D 1E 1E 1F 1F 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 2A 2A 2B 2B 2C 2C 2D 2D 2E 2E 2F 2F 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 3A 3A 3B 3B 3C 3C 3D 3D 3E 3E 3F 3F 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 4A 4A 4B 4B 4C 4C 4D 4D 4E 4E 4F 4F 50 50 51 51 52 52 53 53 54 54 55 55 56 56 57 57 58 58 59 59 5A 5A 5B 5B 5C 5C 5D 5D 5E 5E 5F 5F 60 60 61 61 62 62 63 63 64 64 65 65 66 66 67 67 68 68 69 69 6A 6A 6B 6B 6C 6C 6D 6D 6E 6E 6F 6F 70 70 71 71 72 72 73 73 74 74 75 75 76 76 77 77 78 78 79 79 7A 7A 7B 7B 7C 7C 7D 7D 7E 7E 7F 7F 80 80 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 8A 8A 8B 8B 8C 8C 8D 8D 8E 8E 8F 8F 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 99 99 9A 9A 9B 9B 9C 9C 9D 9D 9E 9E 9F 9F A0 A0 A1 A1 A2 A2 A3 A3 A4 A4 A5 A5 A6 A6 A7 A7 A8 A8 A9 A9 AA AA AB AB AC AC AD AD AE AE AF AF B0 B0 B1 B1 B2 B2 B3 B3 B4 B4 B5 B5 B6 B6 B7 B7 B8 B8 B9 B9 BA BA BB BB BC BC BD BD BE BE BF BF C0 C0 C1 C1 C2 C2 C3 C3 C4 C4 C5 C5 C6 C6 C7 C7 C8 C8 C9 C9 CA CA CB CB CC CC CD CD CE CE CF CF D0 D0 D1 D1 D2 D2 D3 D3 D4 D4 D5 D5 D6 D6 D7 D7 D8 D8 D9 D9 DA DA DB DB DC DC DD DD DE DE DF DF E0 E0 E1 E1 E2 E2 E3 E3 E4 E4 E5 E5 E6 E6 E7 E7 E8 E8 E9 E9 EA EA EB EB EC EC ED ED EE EE EF EF F0 F0 F1 F1 F2 F2 F3 F3 F4 F4 F5 F5 F6 F6 F7 F7 F8 F8 F9 F9 FA FA FB FB FC FC FD FD FE FE FF FF 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 A A B B C C D D E E F F 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 1A 1A 1B 1B 1C 1C 1D 1D 1E 1E 1F 1F 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 2A 2A 2B 2B 2C 2C 2D 2D 2E 2E 2F 2F 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 3A 3A 3B 3B 3C 3C 3D 3D 3E 3E 3F 3F 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 4A 4A 4B 4B 4C 4C 4D 4D 4E 4E 4F 4F 50 50 51 51 52 52 53 53 54 54 55 55 56 56 57 57 58 58 59 59 5A 5A 5B 5B 5C 5C 5D 5D 5E 5E 5F 5F 60 60 611 1
Origianlly, i was expected data is like this
0 1 2 3 4 5 6 ...
but i can't it. Why happend this result data?
Show LessHi
I am experimenting with FX2LP device, which is connected to an FPGA. I generate cca. 24MB/s data load. With streamer program (c#) it was great, the speed was excellent >30MB/s. Then I noticed that the load is not coherent, it is bursty. It depends on the settings of packet / transfer and transfer / queue. For example for 64 pac/xfer - 64 xfer/que i get 1 - 2ms when the queue is empty and the c# program refills it. The endpoints were configured as Bulk
The problem is that it is no additional RAM connected to FPGA, so it will be great if the load will be more coherent. (There won’t be the 1 - 2 ms gaps).
So I had an idea, but I don’t know if it is supported by the driver:
It is possible to double buffer the queue? So when the first is empty, the second is already started. Then there won’t be any gaps, and the transfer will be smooth.
Thank you
Show LessHi,
I would like to connect an I2C slave device to the CY7C68013A. The problem is that the slave device pins use 1.8v. The slave device pins are the following:
- SDA: 1.8v
- SCL: 1.8v
- INT: 1.8v (interrup control pin)
- RESET: 1.8v
I have been thinking to use a bidirectional voltage level translator ic for the 4 pins (i.e.: NXP NVT2004).
Is there are any alternative way to do it?
Is there any known problem using a bidirectional voltage level translator for this task?
Show LessHi,
I am working on Cy7C680-13A Cypress USB 2.0 deivce controller. The device controller is interfaced with cmos image scanner, which gives images with resolution 320x240, with approx. 4-5 frames per second. This entire system (Cypress controller + cmos image scanner) is to be connected to 32 bit ARM9 based controller, with USB1.1 host and running linux operating system.The system works in asynchronous mode, with the signals interfaced as mentioned below:
CMOS camera PCLK interfaced with SLWR
CMOS camera HSYNC interfaced with SLCS#
CMOS camera VSYNC interfaced to PA08bit
CMOS data lines interfaced with FD0-FD8
I use a windows based PC, with USB 2.0 high speed for the initial development, and the deployment is to be done on USB1.1 ARM system. Hence the following code is added in Cypress device firmware to enumerate the Cypress device as USB 1.1:
USBCS |= 0x08;
EZUSB_Delay(1500);
CT1 |= 0x02;EZUSB_Delay(1500);
USBCS &=0xF7;
With the above code segment added in TD_Init(), the Cypress USB device controller shows 64byte length in bulk endpoint, even when connected to USB 2.0 high speed, which means that Cypress controller is now enumerateda as a USB1.1 device.Now coming to the image display part from the cmos image sensor, I get a clean image when the controller, enumerated as USB 1.1 , is interfaced on the PC, but the image gets distorted when the same setup is interfaced with ARM device.On the PC, the image of size 75K is read every 300 ms and when in comes to ARM, it takes 320ms to read one frame. Is the time difference causing the distortion ?Is there any standard code for testing the throughput of Cypress controller when interfaced with any host. ?
Regarding the USB lines (DN, DP) connections, there are no termination resistors, or pull ups added as per the USB 1.1 specification. Does the Cyrpess controller require these termination resistors for impedence matching ? Are these factors serious enough to cause major data integrity issues. ?
Thank You
Show Lessproject on windows 7 (x64bit),first i complie CyAPI.lib(X64) on windows xp(32bit) error,but compile CyAPI.lib(x86) is OK
And the same error when i complie CyAPI.lib on windows 7(x64bit) is that CyAPI.lib(x64) error and CyAPI.lib(x86) is OK;
all compile in vs2010
why??
1>CyUsb.obj : error LNK2019: 无法解析的外部符号 "public: bool __thiscall CCyUSBEndPoint::XferData(unsigned char *,long &,class CCyIsoPktInfo *)" (?XferData@CCyUSBEndPoint@@QAE_NPAEAAJPAVCCyIsoPktInfo@@@Z),该符号在函数 "public: void __thiscall CCyUsb::WritePort(void)" (?WritePort@CCyUsb@@QAEXXZ) 中被引用
1>Omr2001Dlg.obj : error LNK2001: 无法解析的外部符号 "public: bool __thiscall CCyUSBEndPoint::XferData(unsigned char *,long &,class CCyIsoPktInfo *)" (?XferData@CCyUSBEndPoint@@QAE_NPAEAAJPAVCCyIsoPktInfo@@@Z)
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: bool __thiscall CCyUSBEndPoint::WaitForXfer(struct _OVERLAPPED *,unsigned long)" (?WaitForXfer@CCyUSBEndPoint@@QAE_NPAU_OVERLAPPED@@K@Z),该符号在函数 "public: int __thiscall COmr2001Dlg::read_buf(unsigned char * const)" (?read_buf@COmr2001Dlg@@QAEHQAE@Z) 中被引用
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: unsigned char __thiscall CCyUSBDevice::EndPointCount(void)" (?EndPointCount@CCyUSBDevice@@QAEEXZ),该符号在函数 "public: int __thiscall COmr2001Dlg::FindLoopDevice(void)" (?FindLoopDevice@COmr2001Dlg@@QAEHXZ) 中被引用
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: bool __thiscall CCyUSBDevice::Open(unsigned char)" (?Open@CCyUSBDevice@@QAE_NE@Z),该符号在函数 "public: int __thiscall COmr2001Dlg::FindLoopDevice(void)" (?FindLoopDevice@COmr2001Dlg@@QAEHXZ) 中被引用
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: unsigned char __thiscall CCyUSBDevice::DeviceCount(void)" (?DeviceCount@CCyUSBDevice@@QAEEXZ),该符号在函数 "public: int __thiscall COmr2001Dlg::FindLoopDevice(void)" (?FindLoopDevice@COmr2001Dlg@@QAEHXZ) 中被引用
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CCyUSBDevice::CCyUSBDevice(void *,struct _GUID,int)" (??0CCyUSBDevice@@QAE@PAXU_GUID@@H@Z),该符号在函数 "public: int __thiscall COmr2001Dlg::FindLoopDevice(void)" (?FindLoopDevice@COmr2001Dlg@@QAEHXZ) 中被引用
1>Omr2001Dlg.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CCyUSBDevice::~CCyUSBDevice(void)" (??1CCyUSBDevice@@QAE@XZ),该符号在函数 "public: void * __thiscall CCyUSBDevice::`scalar deleting destructor'(unsigned int)" (??_GCCyUSBDevice@@QAEPAXI@Z) 中被引用
Hi
I'm gonna connect i2c from fx2lp to image sensor.
But i'm not sure about that fx2lp's i2c signals is synchronized crystal oscillator.
So. Does anyone how to handle of fx2lp's i2c and clock?
P.S From fx2's i2c signals will use to other image sensor.
Show Less