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.

USCI Issue 2

I haveanother application using the 2419 and USCI A1. I continually receive an RX interrupt even though I already read the first byte out of the RX buff. I attached the reg settings after reading the RX Buf. Code for the Rx interrupt is below also. Any ideas?

 UCHAR comm_recv_intr (void)
{
 volatile UCHAR  dummy   = 0;
          UCHAR  ret_val = SYS_FALSE;
 
 // check status register for rx errors
 if (SYS_TRUE == COMM_RX_ERR())
    {
     // clear errors by reading from rx buffer
     dummy = COMM_RXBUF;
     
     ret_val = SYS_FALSE;
    }
    else
    {
     if(rx_count < RINGBUFFSIZE)
     {
         rx_count++;
 
         // Get the received byte.
         *(iInCharHead++) = COMM_RXBUF;
 
         // Need to wrap the input index back to the first element?
         if (iInCharHead >= (bInChar + RINGBUFFSIZE))
         {
             iInCharHead = bInChar;
         }
     }
    
     ret_val = SYS_TRUE;
    }
   
    return (ret_val);
}   // comm_recv_intr

**Attention** This is a public forum