UART interrupt source

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

UART interrupt source

646 Views
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

Labels (1)
2 Replies

539 Views
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!
-----------------------------------------------------------------------------------------------------------------------

539 Views
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 Kudos
Reply