update TX interrupt logic
refactoring TX interrupt logic