- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I have been trying to understand the UART call back mechanism. (RX_DATA , RX_DONE , TX_DONE events). I couldn't completely get an idea about when the call back function gets triggered and when which event will be triggered. I could find any data explaining this uart call back. If someone provide me a detailed explanation about the UART callback working it would be helpful.
Thanks in advance,
Regards,
Ashlin Surey. A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please find the explanation of various events below:
CY_U3P_UART_EVENT_RX_DONE | UART data receive operation is complete | |
CY_U3P_UART_EVENT_TX_DONE | UART data transmit operation is complete | |
CY_U3P_UART_EVENT_ERROR | An error has been detected. | |
CY_U3P_UART_EVENT_RX_DATA | Data is available in receive FIFO. |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for your explanation. I tried to find the callback triggering mechanism by using GPIOs. I have attached my code here. I found that,
1. The RX_DONE and TX_DONE events occur only during DMA mode that too only when the value given in the CyU3PUartRxSetBlockXfer CyU3PUartTxSetBlockXfer APIs is not equal to 0xFFFFFFFF.
2. The RX_DATA event occurs only in the register mode.
These are my findings. Correct me if I am wrong.
Regards,
Ashlin Surey. A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It seems correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> The RX_DATA event occurs only in the register mode.
How did you figure this out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
This can be found in the Page 575 (UART_STATUS register description) of FX3 TRM. The snapshot of the same is given below:
Jayakrishna