S32k146 LPUART IDLE line flag can not be set

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32k146 LPUART IDLE line flag can not be set

665件の閲覧回数
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 返信

648件の閲覧回数
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 件の賞賛
返信