Hi Everyone,
I'm currently using the single wire mode for the LPUART but i have some issues with it.
here is my own API to change the direction of the communication and the next one where the issue is happening.
the issue is that i can send a packet only once and then it stucks inside the SetListeningState function and i think it is because of the WHILE(TC != 1) line. The strange part is it only happens when i activate the RX pin (RE = 1). if RE = 0, my API is working perfectly and i can receive the data from my slave but of course i can't read because RX is disabled.
My pin config : TXpin has use internal pull up resistance and RXpin has standard config.
I've also try to put a blocking delay of 5ms before the while(TC != 1) inside the SetListening function and with that it works perfectly but i lose too much time.
I think the TC flag just take too much time to set when my RX is activated.
Is there a solution for it or did i forget to check something ?
Thx a lot for your answer
Hi,
First of all, sorry for the later reply.
I checked RT LPUART module is same with KL17 product.
I would recommend customer to refer below link about using 1 wire mode of LPUART.
Wish it helps.
Hi,
Sorry for the later reply.
The RAF bit is read only and would be auto clear when related condition happen.
Mike