Quote Originally Posted by Dj tempo View Post
one question i must ask is: should the crystal be making a square wave?
(im running a 4 MHZ with 2x33pf caps) the signal measured between the 2 crystal legs pin 15-16 is more like a saw tooth waveform but with about 5 ms of flat at 0v, im assuming the problem is within my code.
That's roughly about the normal for a crystal output. The 'amplifiers' inside the PIC take care of squaring off the edges and generating the clock signal. But are you sure it's 5ms of flat around 0v? and not possibly 5ns?
If you've got that 'rounded off sawtooth' looking waveform, you're in good shape....get it....good shape....Ha! Ok, I'm done...