Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

USIC/ASC - RXFIFO interrupt triggering

$
0
0
Hello Min Wei,

This works as it should, thank you! The only part that was different in my code is the following

Code:

XMC_USIC_CH_EnableEvent(XMC_UART0_CH0, XMC_USIC_CH_EVENT_RECEIVE_START);

/* Instead of... */

XMC_USIC_CH_RXFIFO_EnableEvent(XMC_UART0_CH0, XMC_USIC_CH_RXFIFO_EVENT_CONF_STANDARD);

Could you please point out my mistake? I am guessing that the "Receive start" event occurs earlier, and hence data is not available in the buffer yet. Indeed, adding a while-loop to the interrupt handler that stalls the code until data is available in the FIFO has fixed the problem in my code. Is this accurate?

One more question that I have regarding your code - it works even though you haven't configured the Node Pointer. Is it because it defaults to 0? But I thought that you had to call the function in order to make a "connection", otherwise the SR lines would be tristated in a sense.

Thank you in advance!

Best regards,
Andrey

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>