AnsweredAssumed Answered

How can I separate RX/TX of the UART interrupt?

Question asked by SEUNGHYUN UM on Nov 15, 2017
Latest reply on Nov 20, 2017 by SEUNGHYUN UM


I'm testing the S32K144 chip in S32DS v2.0. There is one example, named lpuart_echo_s32k144. It takes the RX data using polling method.

I want to change this to interrupt method.

lpuart_echo_s32k144 example uses the SDK. I could add the api easily as below.


INT_SYS_InstallHandler(LPUART1_RxTx_IRQn, LPUART1_RxTx_IRQHandler, (isr_t *)0);


And I added ISR like below.

void LPUART1_RxTx_IRQHandler(void){




I think this ISR calls both RX and TX cases. When I checked CTRL register, TIE and RIE are enabled.

Then, how can I seperate RX and TX? Is there any state register?

Please give me a sample.



BR, Seunghyun Um