Looks like you used code from another PIC but didn't change the settings. You only have CMCOM, are you sure about this?

I'm not sure about how you use port A for the LCD. Does it work right?

Robert