i set my pins to digital using cmcon=7 , but I think that only sets Port A to digital. By default, is port B digital? Do I need a command to do that?
the code I posted sets up everything necessary to use the lcd. only porta has analogue attributes and plays no part in this exercise
cmcon=7 will disable the comparator module and set porta pins to digital mode on that chip

I do realise there are two sockets - i am using socket B, and I can flash an LED so I think it is set up correctly
but can you set each and every portb pin needed for lcd to flash a led and do they flash at the set rate,

the problem is not the lcd code