UART0 Interrupt missing.

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

UART0 Interrupt missing.

624 Views
boriszviagin
Contributor I

Hello.

I working with KL15 - 48pin Kinetis.

I want to using the UATRT0 in interrupt mode.

I have problem with interrupt RX: after first interrupt i am not get interrupt on RX.

why it happens?

Thanks

0 Kudos
2 Replies

387 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

You can refer to the sample code "LQRUG_uart_ex1" and "LQRUG_uart_ex2" in KL25-SC.

You can find them at :E:\kl25_sc_rev10\klxx-sc-baremetal\build\iar folder after you download the KL25-SC.exe at below web link:

http://cache.freescale.com/files/32bit/software/KL25_SC.exe?fpsp=1&WT_TYPE=Lab%20and%20Test%20Softwa...

The LQRUG.pdf describe how to use the UART module.

Hope that's help.

Best Regard

Robin

0 Kudos

387 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Please to check the UART Status Register 1 (UARTx_S1) [RDRF] bit is set or not. In the UART0 interrupt service routine, it need to read the UART data register ( UART _D) to clear the UART0_S1 [RDRG] bit. And you also need to check if there with higher priority interrupt happens and related interrupt service routine has big size code to execute.

Wish it helps.

0 Kudos