【Close】关于串口中断的问题

www220
Posts: 2
Joined: Mon Apr 04, 2016 9:19 pm

【Close】关于串口中断的问题

Postby www220 » Mon Apr 04, 2016 9:42 pm

sdk文档中有关于串口中断的如下描述,在实际测试时发现在串口1产生中断的时候读取 0x3ff20020 数值为0 ,并没有bit0置位
请问如果要同时处理串口0和串口1中断时,应该如何处理

/* uart0 and uart1 intr combine togther, when interrupt occur, see reg 0x3ff20020, bit2, bit0 represents
* uart1 and uart0 respectively

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: 关于串口中断的问题

Postby ESP_Faye » Tue Apr 05, 2016 5:11 pm

您好,

请注意,UART1 的 RX 是被 Flash 占用的。

请问,您希望实现什么样的功能和应用场景?

或者您可以直接查看 UART1 的中断状态寄存器:UART_INT_ST(UART1)

www220
Posts: 2
Joined: Mon Apr 04, 2016 9:19 pm

Re: 关于串口中断的问题

Postby www220 » Wed Apr 06, 2016 3:59 pm

看的时候太高兴了,没有发现和flash数据线冲突了,太可惜了,本来有两个串口用的
但是你们这个代码里面的注释也太误导了

Who is online

Users browsing this forum: No registered users and 5 guests