This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UART interrupt on DM6437

Thanks for TimHarron's help. My UART ISR work well on DM6437 now. But i found some other question, can any one help me again?

 1,How can i judge what kind of the interrupt when an UART INT occur?receive interrupt or transmit interrupt? More detail, when i running my UART ISR program, i find that it will occur interrupt and enter UART ISR whether sending data or receiving data. In my UART ISR, how can i jude the interrupt source?

2,How to configure the interrupt FIFO for DM6437? In my UART ISR, i set a counter for monitoring, i find that the program enter UART ISR when it receive 4 Bytes. Why 4 Bytes ? Could i configure it through some register? such as 16 Bytes one interrupt?

Thansk,

 Yongquan

  • Yongquan Chen said:
    1,How can i judge what kind of the interrupt when an UART INT occur?receive interrupt or transmit interrupt? More detail, when i running my UART ISR program, i find that it will occur interrupt and enter UART ISR whether sending data or receiving data. In my UART ISR, how can i jude the interrupt source?

    I think that you are looking for the IIR UART register which records the interrupt event. See section 2.9 of the UART User Guide for more information.

    Yongquan Chen said:
    2,How to configure the interrupt FIFO for DM6437? In my UART ISR, i set a counter for monitoring, i find that the program enter UART ISR when it receive 4 Bytes. Why 4 Bytes ? Could i configure it through some register? such as 16 Bytes one interrupt?
    See the FCR register in the User Guide.