- use TC flag instead of TXE for TX interrupt - clear interrupt flags to prevent possible interrupt storm