Hello,
I have some problems about UART RX.
I use buffer mode and RX interrupt.if I send 2 Byte data to MCU from PC,UART can receive correct data.but if I send more than 2Byte data to MCU ,UART can receive the last two Byte data.the RX interrupt code show as follows:
void LIN1_rx_isr(void)
{
USART_RX_BUF[USART_RX_STA] = LINFlexD_1.BDRM.B.DATA4;
USART_RX_STA++;
LINFlexD_1.UARTSR.R = 0x00000204; // clear DRF flag and release message bufffer
}