S32k146 LPUART IDLE line flag can not be set

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32k146 LPUART IDLE line flag can not be set

703 次查看
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 项奖励
回复
1 回复

686 次查看
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 项奖励
回复