UART interruption works 3 times per call

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

UART interruption works 3 times per call

Jump to solution
976 Views
electronica2pow
Contributor III

Hi to the community,

I created a project which is based on the LPUART example generating an interruption, but when it is called is run three times consecutively. I attached the code below.

Thanks,

Jorge

pastedImage_2.png

Tags (1)
1 Solution
854 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Jorge,
You enabled interrupts on an active edge on RX pin (BAUD_RXEDGIE). So, any active edge generates the interrupt.
Instead of that, you can enable STAT[RDRF] to generate interrupt requests (CTRL_RIE).

Regards,
Daniel

View solution in original post

1 Reply
855 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Jorge,
You enabled interrupts on an active edge on RX pin (BAUD_RXEDGIE). So, any active edge generates the interrupt.
Instead of that, you can enable STAT[RDRF] to generate interrupt requests (CTRL_RIE).

Regards,
Daniel