⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
dhirajp15
Offline
Last seen:2 years 1 month ago
加入:2016-06-08 15:26
水晶装饰

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:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi dhirajp,

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