Hi,
Considering the formula mentioned in documentation:
INTCAP = (((CAPACITANCE-5.5)*(FICR->XOSC32MTRIM.SLOPE+791)) + FICR->XOSC32MTRIM.OFFSET*4)/256
Formula uses (SLOPE + 791) in the calculation. This means that even for chips with a small SLOPE value, the dominant term 791 keeps the resolution relatively stable for the HFXO case. Not sure where is the problem. You just set you desired CAPACITANCE in the formula. Or better way is to set it in device tree:
&hfxo{
load-capacitors = "internal";
load-capacitance-femtofarad = <15000>; /* 15 pF expressed in femtofarads */
};
Have you encountered issue with a specific crystal ? can you share crystal datasheet ?
Best regards,
Ressa
Have you considered using an external capacitor in parallel with INTCAP to increase the effective tuning range and improve resolution? puka shell necklace
Hi,
For example, when SLOPE = 88 and OFFSET = 520, the same setting value is obtained for capacitance values of 6.5 pF and 6.75 pF. My understanding is that this happens because the INTCAP setting value can only be an integer.
Hi,
Is it possible to use an external capacitor together with INTCAP?
You can use external caps together with INTCAP if you want, just you need to be aware of the calculation, and make sure considering them together.