Showing posts with label Electronics. Show all posts
Showing posts with label Electronics. Show all posts
For Example:
To Find r's complement:
Use this formula to find complement of any Number system: ( r^n- N )
Where n = No. of Integer
The 10's complement of (23450)10 is 10^n – 23450 = 76550
Here n = no. of digits in the no. 23450 = 5
The 10's complement of (0.3245)10 is (10^0 – 0.3245) = 0.6755
Here no. of digits in the integer part of the no. 0.3245 is n = 0.
The 2's complement of (10110)2 is (2^5)10 – (10110)2 = 01010
Here n = no. of digits in the no. 10110 = 5
To Find (r - 1)'s Complement:
Use this formula to find complement of any Number system: (r^n – r^-m – N)
Where n = no of integer
m = no of fraction
Example:
9's complement of (23450)10 is (10^5 – 10^0 – 23450) = 76549
1's complement of (0.1011)2 is (2^0 – 2^-4)10 – (0.1011)2 = 0.0100
Note: 2's complement of (2's complement of x) = x
Decimal-to-Octal Conversion
The process of decimal-to-octal conversion is similar to that of decimal-to-binary conversion. The
progressive division in the case of the integer part and the progressive multiplication while working
on the fractional part here are by ‘8’ which is the radix of the octal number system. Again, the integer
and fractional parts of the decimal number are treated separately. The process can be best illustrated
with the help of an example.
Example
We will find the octal equivalent of (73.75)10
Solution
- The integer part = 73
| Divisor | Dividend | Remainder |
| 8 | 73 | ----- |
| 8 | 9 | 1 |
| 8 | 1 | 1 |
| ----- | 0 | 1 |
- The octal equivalent of (73)10 = (111)8
- The fractional part = 0.75
- 0.75 × 8 = 0 with a carry of 6
- The octal equivalent of (0.75)10 = (.6)8
- Therefore, the octal equivalent of (73.75)10 = (111.6)8
- Number System Conversion Calculator
Conversion between two Number systems:
Decimal-to-binary Conversion
Now to convert a number in decimal to a number in binary we have to divide the decimal number by 2 repeatedly, until the quotient of zero is obtained. This method of repeated division by 2 is called the ‘double-dabble’ method. The remainders are noted down for each of the division steps. Then the column of the remainder is read in reverse order i.e., from bottom to top order.
Short division by two with remainder
This method is much easier to understand when visualized on paper. It relies only on division by two.
- For this example, let's convert the decimal number 15610 to binary. Write the decimal number as the dividend inside an upside-down "long division" symbol. Write the base of the destination system (in our case, "2" for binary) as the divisor outside the curve of the division symbol.1
2)156 - Write the integer answer (quotient) under the long division symbol, and write the remainder (0 or 1) to the right of the dividend.2
2)156 0
78 - Continue downwards, dividing each new quotient by two and writing the remainders to the right of each dividend. Stop when the quotient is 0.3
2)156 0
2)78 0
2)39 1
2)19 1
2)9 1
2)4 0
2)2 0
2)1 1
0 - Starting with the bottom remainder, read the sequence of remainders upwards to the top. You should have 10011100. This is the binary equivalent of the decimal number 156. Or, written with base subscripts: 15610 = 1001110024
Example
We will find the binary equivalent of (13.375)10.
Solution:
- The integer part = 13
| Divisor | Dividend | Remainder |
| 2 | 13 | ----- |
| 2 | 6 | 1 |
| 2 | 3 | 0 |
| 2 | 1 | 1 |
| ----- | 0 | 1 |
- The binary equivalent of (13)10 is therefore (1101)2
- The fractional part = .375
- 0.375 × 2 = 0.75 with a carry of 0
- 0.75 × 2 = 0.5 with a carry of 1
- 0.5 × 2 = 0 with a carry of 1
- The binary equivalent of (0.375)10 = (.011)2
- Therefore, the binary equivalent of (13.375)10 = (1101.011)2
Binary to Decimal Conversion
Since the binary system is the internal language of electronic computers, serious computer programmers should understand how to convert from binary to decimal.
Positional notation method
- For this example, let's convert the binary number 110112 to decimal. List the powers of two from right to left. Start at 20, evaluating it as "1". Increment the exponent by one for each power. Stop when the amount of elements in the list is equal to the amount of digits in the binary number. The example number, 10011011, has eight digits, so the list, to eight elements, would look like this: 128, 64, 32, 16, 8, 4, 2, 121
- Write first the binary number below the list.
- Draw lines, starting from the right, connecting each consecutive digit of the binary number to the power of two that is next in the list above it. Begin by drawing a line from the first digit of the binary number to the first power of two in the list above it. Then, draw a line from the second digit of the binary number to the second power of two in the list. Continue connecting each digit with its corresponding power of two.3
- Move through each digit of the binary number. If the digit is a 1, write its corresponding power of two below the line, under the digit. If the digit is a 0, write a 0 below the line, under the digit.4
- Add the numbers written below the line. The sum should be 155. This is the decimal equivalent of the binary number 10011011. Or, written with base subscripts: 100110112 = 155105
The decimal equivalent of the binary number (1001.0101)2 is determined as follows:
- The integer part = 1001
- The decimal equivalent = 1 × 20 + 0 × 21 + 0 × 22 + 1 × 23 = 1 + 0 + 0 + 8 = 9
- The fractional part = .0101
- Therefore, the decimal equivalent = 0 × 2−1 + 1 × 2−2 + 0 × 2−3 + 1 × 2−4 = 0 + 0.25 + 0 + 0.0625 = 0.3125
- Therefore, the decimal equivalent of (1001.0101)2 = 9.3125
- Number System Conversion Calculator
NUMBER SYSTEMS
The study of number systems is important from the viewpoint of understanding how data are represented before they can be processed by any digital system including a digital computer. It is one of the most basic topics in digital electronics. In this chapter we will discuss different number systems commonly used to represent data. We will begin the discussion with the decimal number system. Although it is not important from the viewpoint of digital electronics, a brief outline of this will be given to explain some of the underlying concepts used in other number systems. This will then be followed by the more commonly used number systems such as the binary, octal and hexadecimal number systems.There are several number systems which we normally use, such as decimal, binary, octal, hexadecimal, etc. Amongst them we are most familiar with the decimal number system. These systems are classified according to the values of the base of the number system. The number system having the value of the base as 10 is called a decimal number system, whereas that with a base of 2 is called a binary number system. Likewise, the number systems having base 8 and 16 are called octal and hexadecimal number systems respectively.
With a decimal system we have 10 different digits, which are 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. But a binary system has only 2 different digits—0 and 1. Hence, a binary number cannot have any digit other than 0 or 1. So to deal with a binary number system is quite easier than a decimal system. Now, in a digital world, we can think in binary nature, e.g., a light can be either off or on. There is no state in between these two. So we generally use the binary system when we deal with the digital world. Here comes the utility of a binary
system. We can express everything in the world with the help of only two digits i.e., 0 and 1. For example, if we want to express 2510 in binary we may write 110012. The right most digit in a number system is called the ‘Least Signifi cant Bit’ (LSB) or ‘Least Signifi cant Digit’ (LSD). And the left most digit in a number system is called the ‘Most Signifi cant Bit’ (MSB) or ‘Most Signifi cant Digit’ (MSD). Now normally when we deal with different number systems we specify the base as the subscript to make it clear which number system is being used. In an octal number system there are 8 digits—0, 1, 2, 3, 4, 5, 6, and 7. Hence, any octal number cannot have any digit greater than 7. Similarly, a hexadecimal number system has 16 digits—0 to 9— and the rest of the six digits are specifi ed by letter symbols as A, B, C, D, E, and F. Here A, B, C, D, E, and F represent decimal 10, 11, 12, 13, 14, and 15 respectively. Octal and hexadecimal codes are useful to write assembly level language.
Binary Number System
Bit is an abbreviation of the term ‘binary digit’ and is the smallest unit of information. It is either ‘0’ or ‘1’. A byte is a string of eight bits. The byte is the basic unit of data operated upon as a single unit in computers. A computer word is again a string of bits whose size, called the ‘word length’ or ‘word size’, is fixed for a specified computer, although it may vary from computer to computer. The word length may equal one byte, two bytes, four bytes or be even larger.
Decimal Number System
Corresponding to the 1’s and 2’s complements in the binary system, in the decimal number system we have the 9’s and 10’s complements. The 9’s complement of a given decimal number is obtained by subtracting each digit from 9. For example, the 9’s complement of (2496)10 would be (7503)10. The 10’s complement is obtained by adding ‘1’ to the 9’s complement. The 10’s complement of (2496)10 is (7504)10.
Octal Number System
In the octal number system, we have the 7’s and 8’s complements. The 7’s complement of a given octal number is obtained by subtracting each octal digit from 7. For example, the 7’s complement of (562)8 would be (215)8. The 8’s complement is obtained by adding ‘1’ to the 7’s complement. The 8’s complement of (562)8 would be (216)8.
Hexadecimal Number SystemThe 15’s and 16’s complements are defined with respect to the hexadecimal number system. The 15’s complement is obtained by subtracting each hex digit from 15. For example, the 15’s complement of (3BF)16 would be (C40)16. The 16’s complement is obtained by adding ‘1’ to the 15’s complement. The 16’s complement of (2AE)16 would be (D52)16.
Number Representation in Binary System:
Sign-Bit Magnitude
In the sign-bit magnitude representation of positive and negative decimal numbers, the MSB represents the ‘sign’, with a ‘0’ denoting a plus sign and a ‘1’ denoting a minus sign. The remaining bits represent the magnitude. In eight-bit representation, while MSB represents the sign, the remaining seven bits represent the magnitude. For example, the eight-bit representation of +9 would be 00001001, and that for −9 would be 10001001. An n−bit binary representation can be used to represent decimal numbers in the range of
−(2n−1−1) to +(2n−1−1)That is, eight-bit representation can be used to represent decimal numbers in the range from −127 to +127 using the sign-bit magnitude format.
1's Complement::
The ones' complement of a binary number is defined as the value obtained by inverting all the bits in the binary representation of the number (swapping 0's for 1's and vice-versa).A ones' complement system or ones' complement arithmetic is a system in which negative numbers are represented by the arithmetic negative of the value. In such a system, a number is negated (converted from positive to negative or vice versa) by computing its ones' complement. An N-bit ones' complement numeral system can only represent integers in the range
−(2 N−1−1) to 2 N−1−12’s Complement
The two's complement of a binary number is defined as the value obtained by subtracting the number from a large power of two (specifically, from 2N for an N-bit two's complement).A two's-complement system, or two's-complement arithmetic, is a system in which negative numbers are represented by the two's complement of the absolute value; this system is the most common method of representing signed integers on computers.In such a system, a number is negated (converted from positive to negative or vice versa) by computing its ones' complement (i.e. its bitwise negation) and adding one. two's complement can express
−2 N−1 to 2 N−1−1.
[youtube]http://www.youtube.com/watch?v=9z9j0ewek30[/youtube]
We can use MOSFETs as AC small-signal amplifiers. An example is the so-called conceptual MOSFET amplifier shown in

This is only a “conceptual” amplifier for two primary reasons:
1. The bias with VGS is impractical. (Will consider others later.)
2. In ICs, resistors take up too much room. (Would use another triode-region biased MOSFET in lieu of RD.)
To operate as a small-signal amplifier, we bias the MOSFET in the saturation region. For the analysis of the DC operating point,
we set vgs =0 so that from (4.22) with λ=0

From the circuit
VDS=VDD-IDRD
For operation in the saturation region
VGD ≤ Vt
or, VGS - VDS ≤ Vt
Or
VDS ≥ VGS - Vt
where the total drain-to-source voltage is

Similar to what we saw with BJT amplifiers, we need make sure that (3) is satisfied for the entire signal swing of Vds. With an AC signal applied at the gate
VGS=VGS+Vg Substituting (4) into (4.20)

The last term in (6) is nonlinear in vgs, which is undesirable for a linear amplifier. Consequently, for linear operation we will require that this term be small:

If this small-signal condition (7) is satisfied, then the total drain current is approximately the linear summation

where

From this expression (9) we see that the AC drain current id is related to vgs by the so-called transistor transconductance, gm:

which is sometimes expressed in terms of the overdrive voltage

Because of the VGS term in (10) and (11), this gm depends on the bias, which is just like a BJT. Physically, this transconductance gm equals the slope of the iDvGS characteristic curve at the Q point:


In the case that the MOSFET has a non-zero channel-length modulation coefficient (i.e., 0 .. ), then the drain current is given from (4.22) to be

Using (13) in (12) then

Lastly, it can be easily show that for this conceptual amplifier in

Consequently, Am gv , which is the same result we found for a similar BJT conceptual amplifier [see (5.103)].
MOSFET Small-Signal Equivalent Models
For circuit analysis, it is convenient to use equivalent smallsignal models for MOSFETs – as it was with BJTs. The MOSFET acts as a voltage controlled current source. The control voltage is vgs and the output current is iD, which gives rise to this small-signal p model:

Things to note from this small-signal model include:
1. ig =0 and vgs ≠ 0 . infinite input impedance.
2. ro models the finite output resistance. Practically speaking, it will range from 10 k Mbeta
3. From (10) we found (λ.=0 )

Alternatively, it can be shown that

which is similar to gm V = 1/Vt for BJTs. One big difference from BJTs is 25 Vt mV while V eff =0.1 V or greater. Hence, for the same bias current gm is much larger for BJTs than for MOSFETs. A small-signal T model for the MOSFET is shown in

Notice the direct connection between the gate and both the dependent current source and 1/gm. While this model is correct, we’ve added the explicit boundary condition that ig = 0 to this small-signal model. It isn’t necessary to do this because the currents in the two vertical branches are both equal to ggs vm , which means ig =0 . But adding this condition ig =0 to the small-signal model in Fig. 4.40a makes this explicit in the circuit calculations. (The T model usually shows this direct connection while the p model usually doesn’t.)
MOSFETs have many advantages over BJTs including:
1. High input resistance
2. Small physical size
3. Low power dissipation
4. Relative ease of fabrication.
One can combine advantages of both technologies (BJT and MOSFET) into what are called BiCMOS amplifiers:

Such a combination provides a very large input resistance from the MOSFET and a large output impedance from the BJT.
We can use MOSFETs as AC small-signal amplifiers. An example is the so-called conceptual MOSFET amplifier shown in
This is only a “conceptual” amplifier for two primary reasons:
1. The bias with VGS is impractical. (Will consider others later.)
2. In ICs, resistors take up too much room. (Would use another triode-region biased MOSFET in lieu of RD.)
To operate as a small-signal amplifier, we bias the MOSFET in the saturation region. For the analysis of the DC operating point,
we set vgs =0 so that from (4.22) with λ=0
From the circuit
VDS=VDD-IDRD
For operation in the saturation region
VGD ≤ Vt
or, VGS - VDS ≤ Vt
Or
VDS ≥ VGS - Vt
where the total drain-to-source voltage is
Similar to what we saw with BJT amplifiers, we need make sure that (3) is satisfied for the entire signal swing of Vds. With an AC signal applied at the gate
VGS=VGS+Vg Substituting (4) into (4.20)
The last term in (6) is nonlinear in vgs, which is undesirable for a linear amplifier. Consequently, for linear operation we will require that this term be small:
If this small-signal condition (7) is satisfied, then the total drain current is approximately the linear summation
where
From this expression (9) we see that the AC drain current id is related to vgs by the so-called transistor transconductance, gm:
which is sometimes expressed in terms of the overdrive voltage
Because of the VGS term in (10) and (11), this gm depends on the bias, which is just like a BJT. Physically, this transconductance gm equals the slope of the iDvGS characteristic curve at the Q point:
In the case that the MOSFET has a non-zero channel-length modulation coefficient (i.e., 0 .. ), then the drain current is given from (4.22) to be
Using (13) in (12) then
Lastly, it can be easily show that for this conceptual amplifier in
Consequently, Am gv , which is the same result we found for a similar BJT conceptual amplifier [see (5.103)].
MOSFET Small-Signal Equivalent Models
For circuit analysis, it is convenient to use equivalent smallsignal models for MOSFETs – as it was with BJTs. The MOSFET acts as a voltage controlled current source. The control voltage is vgs and the output current is iD, which gives rise to this small-signal p model:
Things to note from this small-signal model include:
1. ig =0 and vgs ≠ 0 . infinite input impedance.
2. ro models the finite output resistance. Practically speaking, it will range from 10 k Mbeta
3. From (10) we found (λ.=0 )
Alternatively, it can be shown that
which is similar to gm V = 1/Vt for BJTs. One big difference from BJTs is 25 Vt mV while V eff =0.1 V or greater. Hence, for the same bias current gm is much larger for BJTs than for MOSFETs. A small-signal T model for the MOSFET is shown in
Notice the direct connection between the gate and both the dependent current source and 1/gm. While this model is correct, we’ve added the explicit boundary condition that ig = 0 to this small-signal model. It isn’t necessary to do this because the currents in the two vertical branches are both equal to ggs vm , which means ig =0 . But adding this condition ig =0 to the small-signal model in Fig. 4.40a makes this explicit in the circuit calculations. (The T model usually shows this direct connection while the p model usually doesn’t.)
MOSFETs have many advantages over BJTs including:
1. High input resistance
2. Small physical size
3. Low power dissipation
4. Relative ease of fabrication.
One can combine advantages of both technologies (BJT and MOSFET) into what are called BiCMOS amplifiers:
Such a combination provides a very large input resistance from the MOSFET and a large output impedance from the BJT.
[youtube]http://www.youtube.com/watch?v=PVkZUS8RmRQ[/youtube]
DC Analysis of a Mosfet Transistor Circuit
Shown above is a typical mosfet transistor circuit.
We're going to now show how to perform DC analysis on this mosfet circuit so that we can find crucial DC values of the circuit.
When doing DC analysis, all AC voltage sources are taken out of the circuit because they're AC sources. DC analysis is concerned only with DC sources. We also take out all capacitors because in DC, capacitors function as open circuits. For this reason, everything before and after capacitors are removed, which in this circuit includes resistor, Rs.
Below is the schematic of the DC equivalent of the mosfet circuit above:

Now let's do the calculations for DC analysis. Vgs is the voltage that falls across the gate and the source of the mosfet transistor. It is crucial to calculate because in order to solve for Ids, the current from the drain to the source, Vgs must be known.
In order to solve for Vgs, Vg, the voltage at the gate, and Vs, the voltage at the source must be known:

Now that we've solved for Vgs, we now solve for Ids. The formula for Ids is:

Kn and Vtn are normally givens that you just plug into the equation.
Once you solve for Ids, you will get two currents from solving that quadratic equation. The current that produces a Vgs which is greater than Vtn is the real current of the circuit and the other should be eliminated.
Now we calculate Vds and the Q-point:

DC Analysis of a Mosfet Transistor Circuit
Shown above is a typical mosfet transistor circuit.
We're going to now show how to perform DC analysis on this mosfet circuit so that we can find crucial DC values of the circuit.
When doing DC analysis, all AC voltage sources are taken out of the circuit because they're AC sources. DC analysis is concerned only with DC sources. We also take out all capacitors because in DC, capacitors function as open circuits. For this reason, everything before and after capacitors are removed, which in this circuit includes resistor, Rs.
Below is the schematic of the DC equivalent of the mosfet circuit above:

Now let's do the calculations for DC analysis. Vgs is the voltage that falls across the gate and the source of the mosfet transistor. It is crucial to calculate because in order to solve for Ids, the current from the drain to the source, Vgs must be known.
In order to solve for Vgs, Vg, the voltage at the gate, and Vs, the voltage at the source must be known:

Now that we've solved for Vgs, we now solve for Ids. The formula for Ids is:

Kn and Vtn are normally givens that you just plug into the equation.
Once you solve for Ids, you will get two currents from solving that quadratic equation. The current that produces a Vgs which is greater than Vtn is the real current of the circuit and the other should be eliminated.
Now we calculate Vds and the Q-point:

[youtube]http://www.youtube.com/watch?v=KsG_rsGF2g8[/youtube]
Part 2:
Part 1:
In MOSFETs, a voltage on the oxide-insulated gate electrode can induce a conducting channel between the two other contacts called source and drain. The channel can be of n-type or p-type (see article on semiconductor devices), and is accordingly called an nMOSFET or a pMOSFET (also commonly nMOS, pMOS). It is by far the most common transistor in both digital and analog circuits, though the bipolar junction transistor was at one time much more common. Part 2:
[youtube]http://www.youtube.com/watch?v=g_BfQZtjJZ4[/youtube]
Part 1
All amplifier typically exhibit a band-pass frequency response. The cut off frequency in the low end is usually determined by the coupling band bypass capacitor .and the high frequency limit is typically determined by internal capacitances in the transistor itself.
Part 2:
[youtube]http://www.youtube.com/watch?v=1OKtejD225Y[/youtube]
Part 1:
BJT Amplifier
During normal operation, a potential is applied across the base/emitter junction so that the base is approximately 0.6v more positive than the emitter, this makes the base/emitter junction forward biased.
During normal operation, a potential is applied across the base/emitter junction so that the base is approximately 0.6v more positive than the emitter, this makes the base/emitter junction forward biased.
A much higher potential is applied across the base/collector junction with a relatively high positive voltage applied to the collector, so that the base/collector junction is heavily reverse biased. This makes the depletion layer between base and collector quite thick once power is applied.
As mentioned above, the collector is made up of mainly low resistivity material with a layer of high resistivity material next to the base/collector junction. This means that most of the voltage between collector and base is developed across this high resistivity layer, giving a high voltage gradient near the collector base junction.
When the base emitter junction is forward biased, a small current will flow into the base. Therefore holes are injected into the P type material. These holes attract electrons across the forward biased base/emitter junction to combine with the holes. However, because the emitter region is very heavily doped, many more electrons cross into the base region than are able to combine with holes. This means there is a large concentration of electrons in the base region and most of these electrons are swept straight through the very thin base, and into the base/collector depletion layer. Once here, they come under the influence of the strong electric field across the base/collector junction. This field is so strong due to the potential gradient in the collector material mentioned earlier, that the electrons are swept across the depletion layer and into the collector material, and so towards the collector terminal.
Varying the current flowing into the base, affects the number of electrons attracted from the emitter. In this way very small changes in base current cause very large changes in the current flowing from emitter to collector, so current amplification is taking place.
Part 2:
Part 2:
Subscribe to:
Posts (Atom)

