May or may not help...
I have been playing with an 18F87J50. This chip was giving me trouble.
For me, I had to place the same voltage on VDD and AVDD, and have the typical capacitors across all VDDs and VSSs, also placed a capacitor from AVDD to VSS. Now the chip has smoothed out.
Bookmarks