lew247,
Your problem is at PORTB config;
For 16F887, there are some registers controlling PORTB.
You have non of them configured.
If you use the LCD with PORTD, you need no setting for the port. I am sure it will work.
But I am not sure if you can switch to PORTD with your existing pcb.
------------
Bookmarks