/* Sends 3+3 bytes of data to the LCD using the format specified by the LCD Guide.  */
void halLcdSendCommand(unsigned char Data[])
/* Sends 3+3 bytes of data to the LCD using the format specified by the LCD Guide.  */
void halLcdSendCommand(unsigned char Data[])
{
  unsigned char i;
  LCD_CS_RST_OUT &= ~LCD_CS_PIN;
  for ( i = 0; i < 6; i++ )
  {
    while (!(UCB2IFG & UCTXIFG));
    UCB2TXBUF = Data[i];
    if (i == 2)
    {
      while (UCB2STAT & UCBUSY);          LCD_CS_RST_OUT |= LCD_CS_PIN;
      LCD_CS_RST_OUT &= ~LCD_CS_PIN;
    }
  }
  while (UCB2STAT & UCBUSY);      LCD_CS_RST_OUT |= LCD_CS_PIN;
}