1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter-10 : Phase-Locked Loops (PLL)"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example : 10.1 - Page No 310"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"from math import sqrt\n",
"from numpy import pi\n",
"from fractions import Fraction \n",
"# Given data\n",
"V_pos= 12 # in volt\n",
"V_Neg= -12 # in volt\n",
"V=V_pos-V_Neg \n",
"R1=15 # in k ohm\n",
"R1=R1*10**3 # in ohm\n",
"C1=0.01 # in micro F\n",
"C1=C1*10**-6 # in F\n",
"C2=10 # in micro F\n",
"C2=C2*10**-6 # in F\n",
"# (i)\n",
"f_out= 1.2/(4*R1*C1) # in Hz\n",
"print \"Free running frequency = %0.f kHz\" %(f_out*10**-3)\n",
"# (ii)\n",
"f_L= (8*f_out)/V # in Hz\n",
"print \"Lock range = \u00b1\" ,Fraction(f_L*10**-3).limit_denominator(100),\"kHz\"\n",
"f_C= sqrt(f_L/(2*pi*3.6*10**3*C2)) # in Hz\n",
"print \"Capture range =\u00b1 %0.2f Hz\" %f_C"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Free running frequency = 2 kHz\n",
"Lock range = \u00b1 2/3 kHz\n",
"Capture range =\u00b1 54.29 Hz\n"
]
}
],
"prompt_number": 4
}
],
"metadata": {}
}
]
}
|