S32k146 LPUART IDLE line flag can not be set

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

S32k146 LPUART IDLE line flag can not be set

519 Views
turbozzg
Contributor II


if (LPUART_GetIntMode(base, LPUART_INT_IDLE_LINE))
{
          if (LPUART_GetStatusFlag(base, LPUART_IDLE_LINE_DETECT))
         {
                    LPUART_DRV_RxIdleLineIrqHandler(instance);
         }
}

IDLE  int  is ok,but Idle line flag is not be set.

 

 

0 Kudos
1 Reply

502 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

 

IDLE is set when the LPUART receive line becomes idle for a full character time after a period of activity. After IDLE has been cleared, it cannot be set again until after

a new character has been stored in the receive buffer. I suggest you put a small delay before reading the flag.

If you want to clear the flag I suggest you use the function LPUART_ClearStatusFlag.

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.

Best regards,

Omar

0 Kudos