sample to show how uart interrupt preempts the current running process