Initial code for interrupt-driven transmitting.