16Mhz xtal output via a PORT PIN

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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
Shashk
Offline
Last seen:3 years 7 months ago
加入:2015-01-05 19:07
16Mhz xtal output via a PORT PIN

Hi,
I would like to have the 16Mhz xtal output via a PORT PIN for accurate measurement of crystal frequency without loading using a oscilloscope probe. Is there a way to do that in software?

Part : DA14585

Thanks
Shashi

Device:
MT_dialog
Offline
Last seen:1 week 2 days ago
工作人员
加入:2015-06-08 11:34
Hi Shashk,

Hi Shashk,

There is the possibility to output the XTAL16 on the P05 of the when the device is in test mode, just use the below commands:

SetWord32 (TEST_CTRL_REG, 1);/ /这will put the device is test mode
SetWord32(P05_MODE_REG, 0x300); // This will configure the mode of the P05 as output

Usually for trimming the XTAL 16 the prod_test fw is used that communicates via UART with the Smart Snippets and the RF master tool and through a frequency counter connected to the P05 pin the trimming value is calculated. Regarding doing this via sw the PLT tool has a method of calibrating the XTAL16 automatically but without using the XTAL pulse on a pin, just by applying a 500msec pulse and checking a counter.

Regarding calculating the trimming value by sw, as i ve mentioned the PLT tool applies a special algorithm in order to aquire the trimming value of the XTAL, you will be able to check the code in the prod_test project in the dialog_commands.c file, check the dialog_commands_xtal_trim_handler() function.

Thanks MT_dialog