void uart_transmit
  (unsigned char value)
{
  while(mtxbusy);

  mtxbusy = 1;
  SBUF = value;
}