UART interruption works 3 times per call

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

UART interruption works 3 times per call

ソリューションへジャンプ
998件の閲覧回数
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

タグ(1)
1 解決策
876件の閲覧回数
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

元の投稿で解決策を見る

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