Hello Min Wei,
This works as it should, thank you! The only part that was different in my code is the following
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
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);
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