Hi.
I recently set GPIO18 to be the external clock on device and set it to SYSCLK. I then soldered on an 18pF 10MHz crystal with a 470 ohm resistor and 4 15pF caps (two 15pF caps piggybacked so that they are in parallel per footprint). While I was seeing what looked like a 90MHz sine wave before soldering (pic follows),
I saw what looked more like a square wave after soldering and before calling XtalOscSel() (pic follows).
After calling XtalOscSel() I see a flat 3.29V coming from pin 7 on the header (GPIO18 or XCLKOUT--pic follows).
I tried modifying XtalOscSel() by renaming it and modifying the last line INTOSC1OFF =1 to turn INTOSC1 with no change. What could be the problem here?


