Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMOS
- ```import math
- R2 = 10**3 * (float(input("Enter R2 (kOhms): ")))
- C1 = 10**-6 * (float(input("Enter C1 (uFarads): ")))
- VCC = int(input("Enter VCC: "))
- ton = math.log(3)*R2*C1
- toff = ton
- f = 1 / (ton+toff)
- dc = (ton / (ton+toff)) * 100
- vmax = VCC
- vmin = 0
- print(f"Ton = Toff = {ton * 1000:.4f} msec")
- print(f"F = {f:.4f} Hz, D.C. = {dc}%")
- print(f"Vmax = {vmax}V, Vmin = {vmin}V")
- ```
- מקור זרם
- ```RL = float(input("Enter RL (Ohms): "))
- Beta = 200
- VCEsat = 0.3
- R3, R4, R1 = 4700, 4700, 1000
- VCC, VEE = 15, -15
- VE = (VCC * R4) / (R3 + R4)
- IE = VE / R1
- IB = IE / (Beta + 1)
- IC = Beta * IB
- VL = VCC - (IC * RL)
- if VL > VE + VCEsat:
- print("Transistor in active area")
- IL = IC # זרם העומס שווה ל-IC באזור הפעיל
- else:
- print("Transistor in sat. area")
- IL = (VCC - VCEsat) / RL # חישוב זרם העומס ברוויה
- print(f"VE = {VE:.2f} V")
- print(f"IB = {IB * 1e6:.2f} µA")
- print(f"IC = {IC * 1e3:.2f} mA")
- print(f"VL = {VL:.2f} V")
- print(f"IL = {IL * 1e3:.2f} mA")
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement