UART interrupt source

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

UART interrupt source

740件の閲覧回数
marekvysocky
Contributor II

Hello friends,

On i.MX6UL I need to create one unique class for more UARTs. One RX ISR and one TX ISR should serve for all UARTs. However a need to recognise a source of interrupt inside of ISR to be able to forward data into/from relevant buffer. Question is: How can I recognise the source of invoked interrupt inside of ISR in this case?
Thanks for answer in advance.

Best regards Marek

ラベル(1)
2 返答(返信)

633件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Marek

in ISR one can check uart interrupt flags described in sect.53.15.8 UART Status

Register 1 (UARTx_USR1) i.MX6UL Reference Manual 

http://www.nxp.com/docs/en/reference-manual/IMX6ULRM.pdf 

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

633件の閲覧回数
marekvysocky
Contributor II

Hi Igor,

this is possible solution, thanks for your answer, but originaly I was aimed to NVIC. Never mind. Make me clear pls in another matter. What if I set in UARTx_UFCR RXTL fiels for instance value of 8 and rest of my recieved packet takes only 7 bytes. Does it mean that for thouse 7 bytes there will be no interrupt at all?

Best regards

Marek

0 件の賞賛
返信