#Given
f = 16*10**6
ppm = 200
frequency_variation = 200 *16
#Calculation
min_f = f - frequency_variation
max_f = f + frequency_variation
#Reslt
print"The minimum and maximum frequencies for the crystal of 16 Mhz with stability of 200 are ",min_f,"Hz and",max_f,"Hz respectively"
#Given
f =14.9*10**6
mul_factor = 2*3*3
stability_ppm =300
variation = 0.0003
#Calculation
total_variation = variation* mul_factor
fout = f * mul_factor
frequency_variation = fout*total_variation
f_lower = fout - frequency_variation
f_upper = fout + frequency_variation
#Result
print"(a) The output frequency of the transmitter is ",fout/10**6,"MHz"
print"(b) The maximum and minimum frequencies of the transmitter are ",round(f_lower/10**6,2),"Mhz and ",round(f_upper/10**6,2),"Mhz"
#given
f = 10*10**6
div_factor = 100.0
A =63
N = 285
M=32
#Calculation
ref = f/div_factor
R =M*N+A
fout= R*ref
#Result
print"The output frequency of the synthesizer is ",fout/10**6,"MHz"
#Given
f = 10*10**6
div_factor = 100.0
A =64
N = 285
M=32
#Calculation
ref = f/div_factor
R =M*N+A
fout= R*ref
#Result
print"The output frequency of the synthesizer is ",fout/10**6,"MHz"
print"The step change is ",fout/10**6-918.3,"MHz"