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.
Solved! Go to Solution.
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------