summaryrefslogtreecommitdiff
path: root/2885/CH6/EX6.9/ex6_9.sce
blob: 0a81225a7e66a849b9b85e46bfec2e766a821023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Determine the value of base resistance
clear;
clc;
//soltion
//given

B=100;            //dc beta
Rc=200;//ohm      //resistor connected to collector
Re=500;//ohm      //resistor connected to emitter
Vcc=9;//V         //Voltage supply across the collector as it is PNP so taking positive
Vce=4.5;//V       //Collector to emitter voltage
Ic=(Vcc-Vce)/(Rc+Re);
Ib=Ic/B;
Rb=(Vcc-B*Re*Ib)/Ib;
printf("The value of base resistance is %.0f kΩ",Rb/1000);