- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to send 200 bytes via UART. I am using internal flag
From document
UART done – UART transmitter done event: all data elements from the TX FIFO are sent. This interrupt source triggers later than TX FIFO empty by time it takes to transmit a single data element. The TX FIFO empty triggers when the last data element from the TX FIFO goes to the shifter register. However, UART done triggers after this data element has been transmitted.
Problem: Based on oscilloscope observation, it seems transmit is still happening after the interrupt has occurred. Based on oscilloscope it seems entire transmit is hapening after transmit done interrupt.
Please suggest.
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anish,
I cannot know your code. So, I just suggest example code.
My suggest is to use custom interrupt service routine. The below is my example code for UART internal flag.
The "uart_isr()" is custom interrupt service routine and the routine is set by "UART_SetCustomInterruptHandler()"
In the custom interrupt service routine, must clear the interrupt source.
If you cannot solve the issue by using the code, please share your code.
Thanks
Lucas Park.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anyone from Cypress ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anish,
I cannot know your code. So, I just suggest example code.
My suggest is to use custom interrupt service routine. The below is my example code for UART internal flag.
The "uart_isr()" is custom interrupt service routine and the routine is set by "UART_SetCustomInterruptHandler()"
In the custom interrupt service routine, must clear the interrupt source.
If you cannot solve the issue by using the code, please share your code.
Thanks
Lucas Park.