MKE14F: Where's UART Error interrupt

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

MKE14F: Where's UART Error interrupt

762 次查看
michaelheidinge
Contributor III

Is it right, that there's no interrupt source assigned in the MKE14F to the UART1 communication error?

标签 (1)
0 项奖励
4 回复数

557 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hello Michael Heidinger,

    About the LPUART1 error interrupt, you can check the reference manual, LPCUART control register, there have these errors interrupt:

Noise Error Interrupt Enable

Framing Error Interrupt Enable

Parity Error Interrupt Enable

Overrun Interrupt Enable

pastedImage_1.png

Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励

557 次查看
michaelheidinge
Contributor III

But NVIC is missing interrupt error, or do i see it wrong?

0 项奖励

557 次查看
egoodii
Senior Contributor III

I see your point, in that while the LPUART has the 'error interrupt enable' bits, there is no independent vector for them --- but, as before, every error is again directly associated with an RDF indication --- all I can suppose is that the 'error interrupt' could give you an RX interrupt while your watermark has not yet been hit.

Since every error indication still involves reading from the DATA register, what are you hoping to gain from an independent interrupt vector (as opposed to just checking for any 'error indications' prior to data-register-offload in the RX interrupt handler)?

0 项奖励

557 次查看
egoodii
Senior Contributor III

Which is to say there are no errors that are not directly associated with receiving a character (RDRF set), so it is necessary and sufficient to read LPUARTx_STAT prior to LPUARTx_DATA to ascertain 'error' associated with the RX interrupt.

0 项奖励