/* Function to send the data to GLCD */
void Glcd_DataWrite(char dat)
{
    sendByte(dat);                     //Send the data
    GlcdControlBusPort |= (1<<GLCD_RS);  // Send HIGH pulse on RS pin for selecting data register
    GlcdControlBusPort &= ~(1<<GLCD_RW); // Send LOW pulse on RW pin for Write operation
    LcdControlBusPort |= (1<<GLCD_EN);  // Generate a High-to-low pulse on EN pin
    delay(1000);
    GlcdControlBusPort &= ~(1<<GLCD_EN);

     delay(10000);
}