make sure the USART Tx is in critical section