Crystals, crystal oscillators and ceramic resonators are three different things.
  • Crystals needs load capacitors (whose value CAN sometimes be picky). The crystal uses the oscillator inside the PIC.
  • Crystal oscillators have the crystal, load capacitors and oscillator in one package and drives the CLKIn pin of the PIC at roughly TTL levels. The oscillator IN the PIC is not used.
  • Ceramic resonator, like crystal oscillators, does not need external capacitors but unlike crystal oscillator, they do use the oscillator inside the PIC.

The PLL is a block that is tacked on after the oscillator or CLKIn signal.

Apparently Peter is using a resonator and if that resonator works when the PIC is configured to NOT use the PLL, ie it's configured to run and does run at 20MHz then I'd say the external circuitry is OK. As we know, the PIC is specified to run at up to 64MHz so expecting it to run at 80MHz might be a bit of a stretch. The fact that it works on one device doesn't mean it works on all devices. Then again, I would expect it to either not run at all or start up and randomly crash - not run at the base frequency.

A) Get it to work at whatever frequency resonator you put at it's input.
B) Get the PLL to work while using an inout frequency that does nor overclock the PIC.
C) Now that you know the PLL is indeed working, try the overclocking thing.

/Henrik.