how to set uart interrupt in arduino code example
Example: interrupt arduino
attachInterrupt(digitalPinToInterrupt(interruptPin), someFuntion, CHANGE);
attachInterrupt(digitalPinToInterrupt(interruptPin), someFuntion, CHANGE);