AnsweredAssumed Answered

LPUART1 RX Interrupt

Question asked by Andre marcus on Jan 28, 2020
Latest reply on Jan 29, 2020 by Mark Butcher

I configured an RX interrupt for LPUART1 as below. However, I am seeing that interrupt occurs only once even though data keeps coming to the every seconds. It appears the interrupt is disabled once the my buffer is full? but I tried to enable it after every read and still could not have it trigger again. Any comments please!


void LPUART1_IRQHandler(void)
    uint8_t data;


    /* If new data arrived. */
    if ((kLPUART_RxDataRegFullFlag)&LPUART_GetStatusFlags(LPUART1))
        data = LPUART_ReadByte(LPUART1);


        BarCodeRxBuff[rxIndex] = data;
        if(rxIndex==BUFFER_SIZE)  //buff size is 9