SNAS859A March 2024 – December 2025 LMK05318B-Q1
PRODUCTION DATA
デバイスごとのパッケージ図は、PDF版データシートをご参照ください。
When using the 1PPS phase validation monitor, the DPLL lock depends on the counter value of the monitor, the frequency accuracy of the XO input, and the frequency accuracy of the PRIREF input. The monitor is dependent on the frequency error between the XO input and the PRIREF input. Too much error between the two inputs can cause the monitor to never validate the 1PPS input clock.
Use the following pseudocode (Python-based) to validate if the DPLL can achieve lock.
# 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