summaryrefslogtreecommitdiff
path: root/3754/CH22/EX22.10/22_10.sce
blob: f7563f3be1ef0602d4605436a5bd659a79d5a657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear//

//Variables

VCC = 5.0                        //Source voltage (in volts)
RE = 100.0                       //Emitter resistance (in kilo-ohm)
VBE = 0.7                        //Emitter-base Voltage (in volts)

//Calculation

//Case 1 : when VBB = 0.2 V ->OFF
//Case 2: when VBB = 3 V ->ON

//Result

printf("\n When VBB = 0 V , LED is in OFF condition.\nWhen VBB = 3 V , LED is in ON condition.")