LCRA_bit.DUTY = 0x02; // 1/2 duty cycle LCFG_bit.PCF = 0x0F; // Ports 0..3 for SEG lines, Port 4 is GPIO LCRA_bit.LCCS = 0; // 32kHz oscillator LCRA_bit.FRM = 3; // Frame frequency = 64Hz LCRA_bit.LRIG = 0; // VADJ is disconnected from ground. LCRA_bit.LRA = 3; // 16k resistance LCFG_bit.SMO = 1; // Continue operating in stop mode LCFG_bit.OPM = 1; // Normal operating mode LCFG_bit.DPE = 1; // Enable the LCD