USB superspeed peripherals Forum Discussions
I need to generate clock with frequency changing between 2MHz and 2.2MHz in every 10 periods. I could generate the clean PWM with
gpioComplexConfig.outValue = CyFalse;
gpioComplexConfig.inputEn = CyFalse;
gpioComplexConfig.driveLowEn = CyTrue;
gpioComplexConfig.driveHighEn = CyTrue;
gpioComplexConfig.pinMode = CY_U3P_GPIO_MODE_PWM;
gpioComplexConfig.intrMode = CY_U3P_GPIO_NO_INTR;
gpioComplexConfig.timerMode = CY_U3P_GPIO_TIMER_HIGH_FREQ;
gpioComplexConfig.timer = 0;
gpioComplexConfig.period = (93-1);
gpioComplexConfig.threshold = (47-1);status = CyU3PGpioSetComplexConfig(GPIO_42, &gpioComplexConfig);
But when I use the interrupt as:
gpioComplexConfig.intrMode = CY_U3P_GPIO_INTR_TIMER_ZERO;
I start to get jitters in the clock:
even when the callback function is empty.
I tried to use CyU3PGpioComplexUpdate() in the callback to change the period,
void onCallback(uint8_t gpio_id) {
g_timerIntrCount++;
if (g_timerIntrCount == 20){
CyU3PGpioComplexUpdate(gpio_id, 46, 92);
g_timerIntrCount = 0;
}
else if (g_timerIntrCount == 10){
CyU3PGpioComplexUpdate(gpio_id, 46, 93);
}
}
but the jitters still occur. How can I solve this issue?
Show LessHello
It is described about "CYUSB3012 and CYUSB3014 Pin List" in the FX3 datasheet.
However, the BGA pin numbers are blank in some places.I will attach the example with red frame part.
How should I understand the blank pins?
Best Regards
Arai
Show LessHi,
I am facing some unusual issues with my CX3. When I start streaming using the host app some of the frames in starting are not proper. After 15-20 frames it runs ok for quite some time. I have attached teraterm log for the same. I am attaching MIPI configuration and schematic of MIPI portion for the same. Let me know if I am unclear somewhere.
Thanks in advance.
Jayesh
Show LessI have a question.
when FX3 power is on, After loading ROM from I2C,GPIO[52] output signal signal behaves as follows.
___________
______| |__________________ <GPIO[52] signal condition>
↑
End of loading
Stable to low level after high level period of 1ms occurs.
I would like to fix the low period after loading. Can you give me advice on what to do?
Show Less
Hello All,
I'm supposed to be writing firmware for the FX3, but I'm having a hard time getting started. I've tried to pick out the parts of the example code that I need to get a minimal example that I can then build on, but whenever I call CyU3PConnectState(true, false), I get CY_U3P_ERROR_NOT_CONFIGURED.
Now, maybe I've missed a manual, but I have not found a list of things that have to be configured before I can call this function. From the example code, I've gathered that I have to do the following things in the application thread:
- Call CyU3PUsbStart()
- Register a setup callback with CyU3PUsbRegisterSetupCallback()
- For now, mine is called with fast enum, and just returns false
- Register an event callback with CyU3PUsbRegisterEventCallback()
- For now, mine does nothing
- Register an LPM callback with CyU3PUsbRegisterLPMRequestCallback()
- For now, mine denies all requests
- I'm not sure if this one's mandatory
- Set up an event log with CyU3PUsbInitEventLog()
- Set up descriptors with CyU3PUsbSetDesc()
- So far I've set up
- CY_U3P_USB_SET_HS_DEVICE_DESCR
- CY_U3P_USB_SET_DEVQUAL_DESCR
- CY_U3P_USB_SET_HS_CONFIG_DESCR
- CY_U3P_USB_SET_FS_CONFIG_DESCR
- Several CY_U3P_USB_SET_STRING_DESCR
- I'm not trying to run it in superspeed yet, so it should be fine that I don't have descriptors for CY_U3P_USB_SET_SS_DEVICE_DESCR, CY_U3P_USB_SET_SS_CONFIG_DESCR, CY_U3P_USB_SET_SS_BOS_DESCR, or CY_U3P_USB_SET_OTG_DESCR yet, right?
- So far I've set up
That's in addition to regular startup things like configuring the clock, setting up IO, and starting threads that happen before the threads are running.
I assume I've missed something because I'm getting CY_U3P_ERROR_NOT_CONFIGURED. Does anyone have an idea what that might be?
Show LessCan you give me a demo of cx3 image transmission without UVC(non-uvc) and sensor Raw image translate?
1、Cx3 driver Demo
2、cx3 fireware Demo
3、host display soft demo
thanks
Show LessIn the TRM, 4.2 Clock Management, it says that the master clock of up to 500 MHz can be generated. But I couldn't find how to do it anywhere. It seems the clock is fixed at 403.2 or 384 MHz. Is it possible to change this clock value?
Show LessHello,
I am streaming video from CMOS sensor to Windows 10 PC using CX3.
The firmware was obtained using the standard configuration tool, and I am able to stream correctly to standard host application (AMCap).
I want to be able to stop and restart the streaming from the host PC, so I use UVC extension unit to set a CX3_DMA_RESET_EVENT.
The event is set correctly and the streaming stops, but it does not restart.
To make it restart I have to put the sensor to sleep (so there is no MIPI data arriving to CX3): when I reactivate the sensor the UVC streaming resumes.
What can be the issue?
Thank you,
Riccardo
Show LessCan you please let me know if the cyucb3_win10_x64 driver is Microsoft certified? If you, can you please send a link to the certified version?
Thank You and Best Regards,
Balint
Show Less