summaryrefslogtreecommitdiff
path: root/339/CH10/EX10.2/ex10_2.sce
blob: 97543916eea0f0f5ba75aca5031f58beb68c90ad (plain)
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
stacksize("max");
//define crystal parameters
Lq=0.1;
Rq=25;
Cq=0.3*10^-12;
C0=1*10^-12;

//find series resonance frequency
ws0=1/sqrt(Lq*Cq);
disp(ws0);
ws=ws0*(1+Rq^2/2*C0/Lq);
fs=ws/2/%pi 

//find parallel resonance frequency
wp0=sqrt((Cq+C0)/(Lq*Cq*C0));
wp=wp0*(1-Rq^2/2*C0/Lq);
fp=wp/2/%pi

//define frequency range for this plot
f=(0.9:0.00001:1.1)*1e6;
w=2*%pi*f;

//find abmittance of the resonator
Y=%i.*w*C0+1./(Rq+%i*(w*Lq-1./(w*Cq)));

plot(f/1e6,abs(imag(Y)));
mtlb_axis([0.9 1.1 1e-10 1e-1]);
title('Admittance of the quartz crystal resonator');
xlabel('Frequency {\itf}, MHz');
ylabel('Susceptance |B|, \Omega');