Buy a 10mhz crystal with 2-22pF capacitors.
Use the 4xPLL to get 40mhz.
You can not run a 40mhz crystal or resonator from a PIC's oscillator.
P.S.
Use a crystal. Resonators have their uses, and you can figure out if it'll work in your application, after you have your application working.
Bookmarks