Hi,
is it possible to share schematic design?
Moreover, check (standard mistakes):
- Test pin connected to GND.
- \XCLKS connected to GND for pierce oscillator.
- Load capacitors should be calculated in simplified consideration follows:
The maximal frequency for Pierce oscillator is 40MHz.
The accurate values depend on the features of the crystal presented in the manufacturer's data sheet.
For example - crystal CA-301 has load capacitance = CL >10pF
S12C, S12GC : input pin capacitance for pins XTAL, EXTAL C1i = C2i = 7pF = Ci
Let C3=C4 = Ce
CL = (Ci + Ce)/2 and it has to be >= CL = 10 pF
Then:
(Ci + Ce)/2 >= CL => Ce >= CL*2 - Ci
Ce >= 10pF * 2 - 7pF
Ce >= 13 pF
Rb value is from the interval 100kohm ~ 20Mohm. For low frequency circuits is crystal impedance relatively high and Rb should be high Rb = 10Mohm. For high frequencies (>20Mhz) Rb = 100 kohm.
Rs for high frequencies (>4MHz) can be omitted.
- Test the MCU without setting PLL. Only set PEAR_NECLK=0 and you should se busclk=OSCCLK/2 at the pin PE4.
If it does not help do not hesitate to contact me again.
Best regards,
Ladislav