blob: 7735fb0a56af1523b45b36abd1738cb9ab7697f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Find Id when Vgs=4V
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 6-15 in page 288
clear; clc; close;
// Given data
K=0.15*10^-3; // Constant in mA/V^2
Vt=2; // Given voltgae in V
Vdd=12; // Drain voltage in V
Vgs=4; // Gate-source voltage in V
// Calculation
Vgg=sqrt(5.4/0.15)+2;
Id=K*(Vgs-Vt)^2;
printf("(a)Vgg = %0.0f V,\n(b)Id = %0.1e A",Vgg,Id);
// Result
// (a) Vgg = 8 V
// (b) Id = 0.6 mA
|