Advertisement
thomazrb

Questão 2

Aug 5th, 2022
899
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clc; clear all; close all;
  2. Vbe = 0.7;
  3. b = 100;
  4. Vcc = 15;
  5. Rb1 = 80e3;
  6. Rb2 = 50e3;
  7. Rc = 500;
  8. Re = 200;
  9.  
  10. printf("a -> I_b = ?\n");
  11. Vbb = Vcc * (Rb2) / (Rb1 + Rb2);
  12. printf("Vbb = %.1f V\n", Vbb);
  13. Rbb = (Rb1 * Rb2) / (Rb1 + Rb2);
  14. printf("Rbb = %.1f Ohms\n", Rbb);
  15.  
  16. Ib =  (Vbb - Vbe)/(Rbb + Re * b);
  17. Ib = 10e-5;
  18. printf("Ib = %.2e A (%f A) \n", Ib, Ib);
  19. printf("---\n");
  20. printf("b -> Ic = ?\n");
  21. Ic = b * Ib;
  22. printf("Ic = %.2e A (%f A) \n", Ic, Ic);
  23. printf("---\n");
  24. printf("c -> Vce = ?\n");
  25. Vrc = Rc * Ic;
  26. printf("Vrc = %.1f V\n", Vrc);
  27. Vre = Re * Ic;
  28. printf("Vre = %.1f V\n", Vre);
  29. Vce = Vcc - Vrc - Vre;
  30. printf("Vce = %.1f V\n", Vce);
  31.  
Advertisement
RAW Paste Data Copied
Advertisement