https://embetronicx.com/tutorials/microcontrollers/pic16f877a/lcd-interfacing-with-pic16f877a/
PIC16F877A - LCD Interfacing Tutorial