CLK_PCKENR2 |= 0x08; // Enable LCD clock
CLK_CRTCR = 0x22; // Set HSI as LCD clock and it is divided by 2
// Initialize the LCD
LCD_FRQ = LCD_Prescaler_64; // Set the prescaler as ClKinput/2
LCD_FRQ |= LCD_Divider_18; // Set the divider as CLKprescaler/18
LCD_CR1 = LCD_Duty_1_4; // Set the duty as 1/4 duty
LCD_CR1 |= LCD_Bias_1_3; // Set the bias as 1/3 bias
LCD_CR2 = LCD_VoltageSource_Internal;// Set Internal voltage source for LCD