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.

Staterware Uart Example

Hi, I am new in Starterware development.

I am working on the UART example (Starterware_1_20_03_03) with CCS5, Bios_5_41_10_36 and target C6748.

In file "uartEcho.c",  I noticed the "IntEventClear(SYS_INT_UART2_INT)" in UARTIsr(). I use DSP BIOS in my project, I found that the it also works as expected if I removed "IntEventClear(SYS_INT_UART2_INT)" in UARTIsr().

Can anybody explain me  why we need "IntEventClear(SYS_INT_UART2_INT)" here? Thanks

  • Hi Jian,

    IntEventClear - This api clears status of interrupt.


    The purpose of clearing the interrupt to avoid endless response from ISR routine.

    For eg. If the Interrupt request did not cease,

     As soon as the ISR finished, then interrupt request might cause the ISR to be re-enetered and 

    this will cause the code in an endless interrupt response to a single interrupt request.