reset code for uart