Hi Tahir Mahmood
If you want to use them you have to load them by the OSC Control Register. They are distributed in 2, 4, 8 and 16 pF, in the less 4 bits of the registers (the most significant bits are to enable the external reference) and you can add them by setting the bit in 1. Hence, for example if you want to load 20 pF you can add the 16 pF and the 4 pF so you could use either:
/* OSC_CR: ERCLKEN=1,EREFSTEN=0,SC2P=0,SC4P=1,SC8P=0,SC16P=1 */
OSC0_CR = OSC_CR_ERCLKEN_MASK | OSC_CR_SC4P_MASK | OSC_CR_SC16P_MASK;
or
OSC0_CR = 0x85;
or in if you want to load the 30 pF then you have to add them all and you should do something like:
OSC0_CR = 0x8F;
Hope this information helps and please tell us if you have any question related.
Have a great day.
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------