- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I use cyfxuartlpregmode.c to test UART send and receive, I found if I do not use "CyU3PUartSetTimeout (1, 50000);" :
1. the SuperSpeed Explorer Kit still works but slower (ok to me)
2. the program should send "VRS" and receive "20181114" about two times a second, but sometimes, it loses "1114" (about 200 - 3000 times, it will happen once)
So, my question is, why did this happen? and more importantly, how to choose the readLoopCnt and writeLoopCnt value?
-------------------------------------------------
uartConfig.baudRate = CY_U3P_UART_BAUDRATE_9600;
uartConfig.isDma = CyFalse;
io_cfg.isDQ32Bit = CyTrue;
io_cfg.lppMode = CY_U3P_IO_MATRIX_LPP_DEFAULT;
-------------------------------------------------
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You can refer to the FX3 API guide in the FX3 SDK, to understand the working of this API. We suggest keeping the timeout value low.
Rashi