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.

AM6421: question about uart API UART_getIntrIdentityStatus

Part Number: AM6421

Tool/software:

Hello,

when I call function "UART_getIntrIdentityStatus" shown below

the status is 12 shown as below

but according to manual refrence, status is limitted in 0, 1, 2, 3, 6, 8, 10, shown below

so what is the meaning of 12?

thank you!

  • Hi,

    I understand your question.

    So, when you see a value of 12 or lets suppose you see a value x.

    This value x will be mapped to the register UART_IIR for sure.

    But we also need to keep in mind that we need to right shift the value of x by 1, so x >> 1 to get the exact value of the bits IT_TYPE.

    So suppose while write operation is happening then a value of 2 will be seen, but this 2 is 10b so we need to right shift, hence 1b corresponds to THR Interrupt.

    Hope this helps.

    Regards,

    Vaibhav