From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2882/CH14/EX14.3/Ex14_3.sce | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 2882/CH14/EX14.3/Ex14_3.sce (limited to '2882/CH14/EX14.3') diff --git a/2882/CH14/EX14.3/Ex14_3.sce b/2882/CH14/EX14.3/Ex14_3.sce new file mode 100755 index 000000000..693d10b64 --- /dev/null +++ b/2882/CH14/EX14.3/Ex14_3.sce @@ -0,0 +1,27 @@ +//Tested on Windows 7 Ultimate 32-bit +//Chapter 14 Operational Amplifiers Pg no. 418 and 419 +clear; +clc; + +//Given + +vI1=0;//voltage at base of transistor Q1 in volts +vI2p=5D-3;//peak voltage at base of transistor Q2 in volts +vI2w=0.2;//frequency of vI2 in hertz +vICM_a=0;//input common mode voltage in volts +vOCM_a=5;//output common mode voltage in volts +vICM_b=-2D-3;//input common mode voltage in volts +vOCM_b=5.01;//output common mode voltage in volts +vICM_c=2D-3;//input common mode voltage in volts +vOCM_c=4.99;//output common mode voltage in volts + +//Solution + +dvICMp=vI2p/2;//peak input common mode voltage in volts +dvICMw=vI2w;//input common mode frequency in hertz +printf("vICM = %.1f sin(%.1f pi t) mV\n ",dvICMp*10^3,dvICMw*2); +dvOCMp=(vOCM_b-vOCM_a)/vICM_b*dvICMp;//peak output common mode voltage in volts +dvOCMw=dvICMw;//output common mode frequency in hertz +printf("vOCM =5 V %.f sin(%.1f pi t) mV",dvOCMp*10^3,dvOCMw*2); + +//error in calculation of vOCM in textbook -- cgit