- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
How could manage "TX FIFO empty" and "RX FIFO not empty" interrupt sources, for example, if I only have one external interrupt output ?
Must it be checked any flag inside "CY_ISR(MyUart_ISR){}" for determining which interrupt was who produced interrupt ?
Thanks,
Asier.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are quite right. Checking the UART state will also clear (some) interrupt causes.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are quite right. Checking the UART state will also clear (some) interrupt causes.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Bob.
Which are the flags I could polling to catch "TX FIFO empty" and "RX FIFO not empty" events ?
I want to be able to distinguish between the two events and so do the corresponding task. I mean, U1_UartGetChar(); if "RX FIFO not empty" interrupt happens and U1_UartPutChar(); if it catches "TX FIFO empty".
Asier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Look into datasheet for uint32 SCB_GetTxInterruptSource(void) starting at page 189.
Bob