Is the R/W grounded by the pic? why connect it to a pin unless your reading from the display? I assume the lcd is near enough same as the Hitachi controller ones? Final question why 20MHz when he is trying to save power? the 32.7KHz should be more than fast enough and save a fair bit of power for him.MrDEB,
I built a prototype of your project with a PIC18F2520 (sorry I don't have a PIC18F24K20 handy).
This is my schematic:
**broken link removed**
You can find my complete project on GitHub **broken link removed**.
The source code is done with the Microchip XC8 compiler. It will also compiler for the PIC18F24K20 but I do not have any to validate it. Every thing works with a PIC18F2520 so I believe that it will work for the PIC you selected.
Be warned that my circuit is similar to yours but not the same. I assigned the pins in a way to make In-Circuit-Debug possible.
I appreciate it isnt optimized for Mr Deb and its nice of you to do it, but not having read the entire thread, i am unsure why you have 2 crystals etc.