How to detect interrupt during UART Communication

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
Jun-ichi Tobe
Offline
Last seen:6 months 2 weeks ago
加入:2016-04-01 10:39
How to detect interrupt during UART Communication

Hello support team!

Would you please tell me about interrupt handling during UART communication?

File: demo_uart_os.c
Function: ad_uart_read

Now I use it as follows. (Loop processing)

{
cnt = ad_uart_read (dev, buf, 10, 5000);
if (cnt> 0) {

}
}

Q1) How can I handle notification for receiving interrupts when data is received in the buffer
instead of continuing to read in the loop (polling process) as described above??

Q2)Is it possible to get both interrupts of UART1 and UART2?
Would you please let me know the setting if possible.

Regards,

Jun-ichi

Keywords:
Device:
LC_Dialog
Offline
Last seen:3 weeks 2 days ago
工作人员
加入:2016-09-19 23:20
Hi Jun-ichi,

Hi Jun-ichi,

我是铜rrently working on a solution for your query. I will update as soon as I have a working implementation.

Best,
LC

Jun-ichi Tobe
Offline
Last seen:6 months 2 weeks ago
加入:2016-04-01 10:39
Hi Dialog support.

Hi Dialog support.

Regarding this question, I got an answer from your local FAE.
Would you please close this question?
Thank you very much.

Jun-ichi

LC_Dialog
Offline
Last seen:3 weeks 2 days ago
工作人员
加入:2016-09-19 23:20
Hi Jun-ichi,

Hi Jun-ichi,

That is good to hear that the issue is resolved.

Please can you post the solution to this thread so it can be referred by users facing the same issue in the future.

Best,
LC