It seems that an un-programmed PIC will not oscillate; the OSC pins are at ground in the "raw" state, and 10Megs between them obviously will not get them to logic (linear) level.
So, ASS-u-ME that the PIC is minimally programmed for an external
20Mhz crystal and one would like it to oscillate at that frequency and not higher, what changes would be needed, based on my old Semi-universal oscillator:Copied from "Semi-universal CMOS Xtal OSC" 11/11/2008 4:55 AM
Plug crystal into appropiate socket; each has its specified load. The drive resistor shown is the maximum value that allows all frequencies of a given type to oscillate; some frequencies work with higher R values (less drive). NOTE: in *all* cases the frequency is higher than marked ( expected) value. Made using a 74AC02 which oscillates near 140Mhz with no Xtal plugged in (amplitude about 1V pk-pk at 5V supply).
Xlo (Khz) 10M Marking | Measured +-----/\/\----+ --------+----------- | | 32 | 32.7711 | |\ | | 32.7710 +-----| >o----+---+ | 32.7721 | |/ | | --------+----------- | \ | 100 | 100.0033 | 680K / | | 100.0042 | \ | --------+----------- | Xlo | | 200 | 200.0951 +-----o o----+ \ --------+----------- | | / 6.8K 1000 | 1000.386 --- 10p --- \ --- 22p --- | Xhi (Mhz) | | | Marking | Measured | V | ----------+----------- | Xhi | 2.000 | 2.000188 +-----o o----+---+ | 2.000179 | | ----------+----------- --- --- 3.579545 | 3.580152 --- 18p --- 18p ----------+----------- | | 10.000 | 10.003115 V GND V ----------+----------- 12.000 | 12.007229