LPC11E67: USART1_3 combined interrupt sources not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC11E67: USART1_3 combined interrupt sources not working

跳至解决方案
607 次查看
harshalamasurek
Contributor I

We are using LPC11E67JBD100 processor that has a combined interrupt slot for USART 2 & USART 3. When USART 2 is disabled and USART 3 is enabled, USART 3 works fine and vice versa. However since both have same the interrupt sources, they are not working simultaneously. I have tried keeping them at different baud rates. The breakpoint (in debugging mode) does not stop in the USART2_3 interrupt handler. Please suggest suitable line of action.

标签 (1)
0 项奖励
回复
1 解答
458 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Harshala

After running for a while, please stop the debugger and check these Registers:

1) USART Interrupt Enable read and set register: 0x4007 000C (USART2), 0x4007 400C (USART3)

Please check whether various USART interrupt sources have been enabled.

2) USART Status Register: 0x4007 0008 (USART2), 0x4007 4008(USART3).

Please check whether the data is ready to be read from receiver buffer, and whether there’s parity error, framing error, overrun and so on.

3) USART Receiver Data with Status register: 0x4007 0018 (USART2), 0x4007 4018 (USART3)

Please check whether the data is already received, and whether is any noise or error.

4) USART Interrupt Status register: 0x4007 0024 (USART2), 0x4007 4024 (USART3)

Please check whether any interrupt is currently enabled.

Best Regards

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
459 次查看
TICS_Fiona
NXP Employee
NXP Employee

Hello Harshala

After running for a while, please stop the debugger and check these Registers:

1) USART Interrupt Enable read and set register: 0x4007 000C (USART2), 0x4007 400C (USART3)

Please check whether various USART interrupt sources have been enabled.

2) USART Status Register: 0x4007 0008 (USART2), 0x4007 4008(USART3).

Please check whether the data is ready to be read from receiver buffer, and whether there’s parity error, framing error, overrun and so on.

3) USART Receiver Data with Status register: 0x4007 0018 (USART2), 0x4007 4018 (USART3)

Please check whether the data is already received, and whether is any noise or error.

4) USART Interrupt Status register: 0x4007 0024 (USART2), 0x4007 4024 (USART3)

Please check whether any interrupt is currently enabled.

Best Regards

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复