Here is some code I wrote for a 4 digit display and a PIC16F914. There
is no cut and paste solution using these on chip LCD modules. Each LCD
has different number of segments, commons and duty. The best way
to get going is the worksheet located in the LCD section of the data
sheet. Using the LCD data sheet you assign each segment to an LCD register. I can probably help some if you supply the LCD data sheet.