ZHCSLM0B May 2020 – December 2025 LMK5B12204
PRODUCTION DATA
使用 1PPS 相位驗(yàn)證監(jiān)控器時(shí),DPLL 鎖定取決于監(jiān)控器的計(jì)數(shù)器值、XO 輸入的頻率精度和 PRIREF 輸入的頻率精度。該監(jiān)測(cè)器取決于 XO 輸入和 PRIREF 輸入之間的頻率誤差。兩個(gè)輸入之間的誤差過(guò)大可能會(huì)導(dǎo)致監(jiān)控器永遠(yuǎn)不會(huì)驗(yàn)證 1PPS 輸入時(shí)鐘。
使用以下偽代碼(基于 Python)來(lái)驗(yàn)證 DPLL 是否能夠?qū)崿F(xiàn)鎖定。
# Input Variables
XO_input_frequency (Hz) = # Based on the specifications of the XO input clock
XO_input_frequency_accuracy (ppm) = # Based on the specfications of the XO input clock
XO_doubler_is_enabled = # True or False, recommendation is to disable the XO to allow more error
REF_input_frequency (Hz) = 1Hz
REF_input_frequency_accuracy (ppm) = # Based on the specifications of the REF IN device
Threshold_Value (count) = # 0 to 63, recommendation is to use max 63 to allow more error
# Calculated Values:
int XO_frequency_post_doubler
if XO_doubler_is_enabled == True:
XO_frequency_post_doubler = XO_input_frequency x 2
elif XO_doubler_is_enabled == False:
XO_frequency_post_doubler = XO_input_frequency
Ref_input_period = 1 / REF_input_frequency
Error_time_allowed = Threhsold_Value / XO_frequency_post_doubler
Allowed_period_error = Ref_input_period + Error_time_allowed
Allowed_frequency_error = 1 / Allowed_period_error
Required_ppm_threshold = XO_input_frequency_accuracy + REF_input_frequency_accuracy
Allowed_ppm_error = (REF_input_frequency - Allowed_frequency_error) / REF_input_frequency
boolean configuration_status
def check_for_valid_1pps_lock():
if Allowed_error_as_ppm > Required_ppm_threshold_allowance:
configuration_status = True #Config and setup can achieve 1PPS lock
else:
configuration_status = False #Config and setup may not achieve 1PPS lock