for loops for initialising transmit buffer2