summaryrefslogtreecommitdiff
path: root/Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch12_1.ipynb
diff options
context:
space:
mode:
authorTrupti Kini2016-05-12 23:30:31 +0600
committerTrupti Kini2016-05-12 23:30:31 +0600
commit5218db5dbae9c0890958f57af323c8d296ac9b07 (patch)
tree23dfd4b8c171a9f4ca5e20525a4f92a216484ce3 /Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch12_1.ipynb
parentda40306957548bcc4a1a8d5e2cdc8928017fe5da (diff)
downloadPython-Textbook-Companions-5218db5dbae9c0890958f57af323c8d296ac9b07.tar.gz
Python-Textbook-Companions-5218db5dbae9c0890958f57af323c8d296ac9b07.tar.bz2
Python-Textbook-Companions-5218db5dbae9c0890958f57af323c8d296ac9b07.zip
Added(A)/Deleted(D) following books
A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter25_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter26_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter27_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter28_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter29_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter30_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter31_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter32_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter33_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter34_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter35_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter36_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter37_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter38_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/chapter39_2.ipynb A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example32_2.png A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter29example33_2.png A A_Textbook_of_Electrical_Technology_:_AC_and_DC_Machines_(Volume_-_2)_by_A._K._Theraja_B.L_Thereja/screenshots/chapter32example30_2.png A Advance_Semiconductor_Devices_by_K._C._Nandi/chapter1_1.ipynb A Advance_Semiconductor_Devices_by_K._C._Nandi/chapter2_1.ipynb A Advance_Semiconductor_Devices_by_K._C._Nandi/chapter5_1.ipynb A Advance_Semiconductor_Devices_by_K._C._Nandi/screenshots/KC_econ1_chapter1_1.png A Advance_Semiconductor_Devices_by_K._C._Nandi/screenshots/KC_econ_ch1_1.png A Advance_Semiconductor_Devices_by_K._C._Nandi/screenshots/KC_percentChangeinDiodeCurrent_chapter2_1.png D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch15_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch15_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch15_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch16_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch16_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch16_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch17_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch17_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch17_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch18_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch18_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch18_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch19_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch19_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch19_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch20_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch20_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch20_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch21_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch21_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch21_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch22_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch22_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch22_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch23_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch23_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch23_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch24_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch24_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch24_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch25_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch25_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch25_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch26_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch26_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch26_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch27_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch27_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch27_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch28_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch28_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch28_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch29_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch29_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch29_3.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch30_1.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch30_2.ipynb D College_Physics_(volume_2)_by_R._A._Serway_and_J._S._Faughn/Ch30_3.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch10_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch11_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch12_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch13_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch1_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch2_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch3_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch4_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch5_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch6_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch7_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch8_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/Ch9_1.ipynb A Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4CollCurr_1.png A Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4MaxNBasRes_1.png A Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4saturationMode_1.png D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch1_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch1_2.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch1_3.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch1_4.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch1_5.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch2.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch2_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch2_2.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch2_3.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch2_4.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch2_5.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch3.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch3_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch3_2.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch3_3.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch3_4.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch3_5.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch4.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch4_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch4_2.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch4_3.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch4_4.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch4_5.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch6.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch6_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch6_2.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch6_3.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch6_4.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch6_5.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch7.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch7_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch7_2.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch7_3.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch7_4.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch7_5.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch8.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch8_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch8_2.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch8_3.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch8_4.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/ch8_5.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/chapter1_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/chapter2_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/chapter3_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/chapter4_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/chapter6_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/chapter7_1.ipynb D Engineering_Physics_(volume_-_2)_by_B._K._Pandey_and_S._Chaturvedi/chapter8_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch11_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch12_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch13_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch14_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch3_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch4_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch5_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch6_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch7_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch8_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch9_1.ipynb A Linear_Integrated_Circuit_by_M._S._Sivakumar/screenshots/BiasingVoltage_1.png A Linear_Integrated_Circuit_by_M._S._Sivakumar/screenshots/InOutCrrnt_1.png A Linear_Integrated_Circuit_by_M._S._Sivakumar/screenshots/inAndOutCurrnt_1.png
Diffstat (limited to 'Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch12_1.ipynb')
-rw-r--r--Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch12_1.ipynb232
1 files changed, 232 insertions, 0 deletions
diff --git a/Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch12_1.ipynb b/Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch12_1.ipynb
new file mode 100644
index 00000000..33e95d2e
--- /dev/null
+++ b/Linear_Integrated_Circuit_by_M._S._Sivakumar/Ch12_1.ipynb
@@ -0,0 +1,232 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 12 Analog To Digital Converter(A/D Converter)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 12.2 Pg 350"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Normalized step size of A/D converter is = 0.00390625\n",
+ "Actual step size of A/D converter is = 0.046875\n",
+ "Normalized maximum quantization level of A/D converter is = 0.9961\n",
+ "Actual maximum quantization level of A/D converter is = 11.9531\n",
+ "Normalized peak quantization error of A/D converter is = 0.001953\n",
+ "Actual peak quantization error of A/D converter is = 0.023438 V \n",
+ "Percentage of quantization error of A/D converter is = 0.1953\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "# Determine the following parameter of 8-bit A/D converter a) Normalized step size b) Actual step size c) Normalized maximum quantization level d) Actual maximum quantization e) Normalized peak quantization error f) Actual peak quantization error g) Percentage of quantization error\n",
+ "N = 8 #\n",
+ "Vin = 12 #\n",
+ "\n",
+ "#a) Normalized step size of A/D converter\n",
+ "Ns = 2**-N #\n",
+ "print 'Normalized step size of A/D converter is = %0.8f'%Ns\n",
+ "\n",
+ "# b) Actual step size of A/D converter\n",
+ "As = Vin*Ns #\n",
+ "print 'Actual step size of A/D converter is = %0.6f'%As\n",
+ "\n",
+ "# c) Normalized maximum quantization level of A/D converter\n",
+ "Qmax = 1-2**-N #\n",
+ "print 'Normalized maximum quantization level of A/D converter is = %0.4f'%Qmax\n",
+ "\n",
+ "# d) Actual maximum quantization level of A/D converter\n",
+ "QAmax = Qmax*Vin #\n",
+ "print 'Actual maximum quantization level of A/D converter is = %0.4f'%QAmax\n",
+ "\n",
+ "# e) Normalized peak quantization error of A/D converter\n",
+ "Qp = 2**-(N+1)#\n",
+ "print 'Normalized peak quantization error of A/D converter is = %0.6f'%Qp\n",
+ "\n",
+ "# f) Actual peak quantization error of A/D converter\n",
+ "Qe = Qp*Vin #\n",
+ "print 'Actual peak quantization error of A/D converter is = %0.6f'%Qe,' V '#\n",
+ "\n",
+ "# g) Percentage of quantization error of A/D converter\n",
+ "per_Qp = 2**-(N+1)*100 #\n",
+ "print 'Percentage of quantization error of A/D converter is = %0.4f'%per_Qp"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 12.3 Pg 351"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "charging time of capacitor is = 128.00 u sec\n",
+ "the integrator output is = -5.44 V\n",
+ "the decimal output of a dual slope A/D converter is = 217.60 = 218\n",
+ "The binary output of a dual slope A/D converter is = 11011010\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "# to determine the binary output of the 8-bit dual slope A/D converter\n",
+ "Vin = 8.5 #\n",
+ "VR = 10 #\n",
+ "f = 2 # #MHz\n",
+ "N = 8 #\n",
+ "C = 0.1*10**-6 #\n",
+ "R = 2*10**3 #\n",
+ "\n",
+ "# the output of integrator is defined as \n",
+ "# Viao(T1) = -(Vin/R*C)*T1 #\n",
+ "\n",
+ "# charging time of capacitor \n",
+ "T1 = 2**N/f #\n",
+ "print 'charging time of capacitor is = %0.2f'%T1,' u sec'\n",
+ "\n",
+ "# the integrator output\n",
+ "T1 = T1*10**-6 #\n",
+ "Viao =-(Vin/(R*C))*T1#\n",
+ "print 'the integrator output is = %0.2f'%Viao,' V'\n",
+ "\n",
+ "# the binary output of a dual slope A/D converter\n",
+ "Bn = (2**N*Vin)/VR#\n",
+ "print 'the decimal output of a dual slope A/D converter is = %0.2f'%Bn,' = 218'#\n",
+ "\n",
+ "Bn=218#\n",
+ "Bn = bin(Bn) #\n",
+ "print 'The binary output of a dual slope A/D converter is =',Bn[2:]"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 12.4 Pg 352"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Resolution of an A/D converter is = 0.0037 V \n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "# to determine the resolution of 12-bit A/D converter\n",
+ "N =12 #\n",
+ "Vin = 15 #\n",
+ "\n",
+ "# Resolution of an A/D converter\n",
+ "Resolution = Vin/(2**N-1)#\n",
+ "print 'Resolution of an A/D converter is = %0.4f'%Resolution,' V '\n",
+ "#"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example 12.5 Pg 352"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The output time of a V/T converter is = 0.15 msec\n",
+ "The duty cycle of V?T converter is = 2.00\n",
+ "The output voltage of an integrator is is = -0.75 V\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "# to determine the output time and duty cycle of V/T converter\n",
+ "Vin = 5 #\n",
+ "C = 0.1*10**-6 # \n",
+ "R = 10*10**3 #\n",
+ "C1 = 100*10**-6 #\n",
+ "\n",
+ "# The output time of a V/T converter is given as\n",
+ "T = (7.5*C1)/(Vin) #\n",
+ "print 'The output time of a V/T converter is =',T*1000,' msec'\n",
+ "\n",
+ "TH = 0.075 #\n",
+ "TL=TH # # we consider\n",
+ "# The duty cycle of V?T converter\n",
+ "D = (TL+TH)/(TH) #\n",
+ "print 'The duty cycle of V?T converter is = %0.2f'%D\n",
+ "\n",
+ "# The output voltage of an integrator is define as\n",
+ "Vio = -(Vin)/(R*C)*T #\n",
+ "print 'The output voltage of an integrator is is = %0.2f'%Vio,' V'"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 2",
+ "language": "python",
+ "name": "python2"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}