Zanuark

project code

Nov 5th, 2021
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. clear
  2. clc
  3. close all
  4. %%variables needed
  5. Beta=100;
  6. VCC=16;
  7. Rl=5000;
  8. RC=3000;
  9. R1=10000;
  10. R2=2500;
  11. RE=1000;
  12. Vt=.025;
  13. Gain=1;
  14. Swing=1;
  15. VCE=1;
  16. ICQ=1;
  17. VB=1;
  18. VC=1;
  19. VE=1;
  20. ib=1;
  21. ic=1;
  22. ie=1;
  23. VBE=.65;
  24.  
  25. %DC analysis
  26. VB=VCC*R2/(R1+R2);
  27. VE=VB-VBE;
  28. ie=(VE-0)/RE;
  29. ib=ie/(Beta+1);
  30. ic=ie*(Beta+1)/Beta;
  31. VC=16-RC*ic;
  32. VCE=VC-VE;
  33.  
  34. %DCLL and ACLL
  35. %(RC+RE)ic+VCE=16;
  36. icq = ic;
  37. VCEq = VCE;
  38. icdc = 16/(RC+RE)
  39. VCEdc = 16;
  40.  
  41. %(rc^-1+rl^-1)^(-1)*ict+vcet = (rc^-1+rl^-1)^(-1)*icq+Vceq;
  42. QQQ=(RC^-1+Rl^-1)^(-1)*icq+VCEq;
  43. ict=QQQ/(RC^-1+Rl^-1)^(-1);
  44. Vct = QQQ;
  45.  
  46. Swing = abs(Vct-VCEdc)*2;
  47.  
  48. %%%AC Analysis
  49. %%gain
  50. Rpi= 100*Vt/ic;
  51. Av = -Beta*(RC^-1+Rl^-1)^(-1)/Rpi
  52. Ri = (R1*R2)/(R1+R2);
  53. Ro = RC;
  54. %power
  55. Swing
  56. iccmax = .2/VCC
  57. icc = abs(ic)+abs((VCC-VB))/R1
Advertisement
Add Comment
Please, Sign In to add comment