UART idle line interrupt taking more character before setting IDLE flag

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

UART idle line interrupt taking more character before setting IDLE flag

936 Views
madhavaishriram
Contributor II

Hi All,

I am using MIMXRT1052xxx6B EVKB board and trying to capture idle line character.

I have enabled idle line interrupt in the code and trying to capture the idle line characters before IDLE flag set.

If i set 4 character in configuration,

pUart->CTRL |= pUartCfg->parity | LPUART_CTRL_IDLECFG(IDLE_FLAG_CHARACTER) | LPUART_CTRL_ILT(IDLE_FLAG_TYPE);

and toggling a pin in callback functions after generating interrupt and captured data on logic analyzer.

So i am getting more characters before IDLE flag set. ideally it should come 4 characters but getting more.

madhavaishriram_0-1636525198155.png

 

Is any one know why this is happening in case of Idle line interrupt for UART 3.

Please let me know if there any thing i am missing.

 

Thanks in advanced

Tags (1)
0 Kudos
Reply
1 Reply

920 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi,

I recommend you to check our SDK example, we have several demos using LPUART and interrupts that you can use for reference.

Best regards,

Felipe

0 Kudos
Reply