AnsweredAssumed Answered

clearing interrupt for UART_TX, and UART_RX in DMA mode

Question asked by Milos on Dec 17, 2009
Latest reply on Dec 17, 2009 by Milos

Hi everybody,

 

I've got a question about the clearing interrupts for UART_TX, and UART_RX in DMA mode.

 

Is is necessary read the DPI_IRPTL register to clear those interrupts?

Or, what is necessay to do?

 

My settings:

 

    *pPICR2 &= ~(0x1F); //Clear DAI2I interrupt from P12
    *pPICR2 |=  (0x15); //Sets the UART0 transmit interrupt to P12
     interrupt(SIG_P12,UART0_TX_Isr);

 

and

 

    *pPICR3 &= ~(0x1F); //Clear SPIB interrupt from P18
    *pPICR3 |= (0x14); //Sets the UART1 receive interrupt to P18
     interrupt(SIG_P18,UART1_RX_Isr);

 

 

Thanks for answer

 

Regards,

Milos

Outcomes