LPC11E67: USART1_3 combined interrupt sources not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC11E67: USART1_3 combined interrupt sources not working

Jump to solution
554 Views
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.

Labels (1)
0 Kudos
Reply
1 Solution
405 Views
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!

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

View solution in original post

0 Kudos
Reply
1 Reply
406 Views
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 Kudos
Reply