If i go for values of C1 and C2 anything above 18pF. It does not work. It only works if I go lower.
This was a very good question. It looks like your oscillator does not have enough gain. You can try different oscillator settings to see if the oscillator will start. If I remember correctly, the HS setting has the highest gain.What are your configuration bits?
And, quite possibly, a series resistor Rs (to prevent overdriving). Are the crystals physically failing (i.e. cooked), or are they intermittently failing to oscillate?According to the 16F88 datasheet that I have handy you need higher capacitance for such a low frequency crystal. Also, are you using XT mode?
Another good point. You should verify the loading specification of the crystal you are actually using.According to the 16F88 datasheet that I have handy you need higher capacitance for such a low frequency crystal.