Receive multiple bytes of data using USART1_IRQHandler ().
Hello Community,
I am new to ST MCUs.
I want to receive multiple bytes of dat over UART. The size of the data can vary. So I want to use USART1_IRQHandler() when data is received by MCU over UART.
I am able to get the interrupt correctly, But I can get only 1 Byte data from the interrupt handler. and the interrupt handler is being called 1 time only.
What can be the issue?
Below is my ISR function.
void USART1_IRQHandler(void) //Serial port 1 interrupt service program
{
u8 Res;
if(USART_GetITStatus(USART1, USART_IT_RXNE) != RESET)
{
Res =USART_ReceiveData(USART1); //Read the received data
}
}
