## Example 8.1 Page no 249¶

In [1]:
#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"

The minimum and maximum frequencies for the crystal of 16 Mhz with stability of 200 are  15996800 Hz and 16003200 Hz respectively


## Example 8.2 Page no 250¶

In [2]:
#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"

(a) The output frequency of the transmitter is  268.2 MHz
(b) The maximum and minimum frequencies of the transmitter are  266.75 Mhz and  269.65 Mhz


## Example 8.3 Page no 259¶

In [3]:
#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"

The output frequency of the synthesizer is  918.3 MHz


## Example 8.4 Page no 259¶

In [4]:
#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"

The output frequency of the synthesizer is  918.4 MHz
The step change is  0.1 MHz