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
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:
The LQRUG.pdf describe how to use the UART module.
Hope that's help.
Best Regard
Robin
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.