2

I'm using pic18 with external oscillator 16MHZ 16M HZ HC-49S Crystal Oscillator with two 30PF capacitors

configuration OSC = HS

using breadboard, when wiring the capacitors to ground the pic stop working, but when letting them in open circuit (just wire one side to PIC, other side stay open) the PIC work again.

but when removing the capacitors from the circuit, the PIC also not working

what explanation for this

Lkaf Temravet
  • 583
  • 10
  • 27

1 Answers1

1

30pF seems a bit high. The datasheet states that for 20MHz (which is near your 16MHz) capacitors of 15pF are advised. Furthermore the (paracitic) capacitance of your breadboard is probably also pretty large (in the order of some pF).

So I suggest to try 15pF, or maybe even 12pF or so.

Douwe66
  • 1,726
  • 10
  • 14