Hello
I would like to use RX FIFO implementation inside other interruupt. The algortithm is like below
How can I do this ? I dont want to break my ADC reading with UART interrupt. I only want to send ADC data after preparing to other device for monitoring. Thanks in advance
void External_ADC_Interrupt()
{
ADC_Data_Read();
ADC_Data_Send_Prepare();
if(RX_FIFO_STATUS == 4) { ReceiveData[1] = RXBUF; ReceiveData[2] = RXBUF; ReceiveData[3] = RXBUF; ReceiveData[4] = RXBUF; send_flag = 1; RXFIFORESET; } Timeout() { RXFIFORESET; } if(ReceivaData[1] == condition1 && send_flag == 1) { SendData[1] = ADC1_CH1; SendData[2] = ADC1_CH2; . . . }