Hi Dialog,
I am able to find Crystal trimming value using a frequency counter using following commands.
prodtest -p 5 xtrim en
prodtest -p 5 xtrim inc 700
prodtest -p 5 xtrim inc 50
protest -p 5 xtrim rd
I referred to AN-B-020 , this Xtrim Value is flashed in OTP and on next reboot the device trims the crystal with specified value. I want to know If I store the xtrim value in spi flash , is there a method to use that value and trim crystal dynamically ?
Thanks,
Regards,
Dhiraj.
Device:
Hi dhirajp,
I am not sure if i get the question, the trimming value of the 58x is obtained from the OTP, there is no function in the SDK that one can use and obtain the CrystalTrimming value from the flash. When your burn the Crystal Trimming value in the OTP header the SDK reads this value from the specified field of the OTP and applies it to the XTAL16 as soon as the device boots during the booting sequence (by the boot rom code). In the SDK there is an option to use some default values as calibration values for testing that are not enabled by default (check the xtal16_calibration_check() in the system_init() function), so i suppose that you can have a header in your SPI that the device can read the XTAL trimming value and use it.
Thanks MT_dialog