ثانوية أرشيف Blog

The Transistor and Digital Electronics: Emitter, Base, Collector and Logic Gates

The lesson has two halves: the transistor (its parts, its currents and a few laws) and digital electronics (the binary system, the gates and the equivalent circuits). Start with the transistor because its questions are direct, then the digital half, which is easy once you understand what each gate does. The post has real examples from the lesson's questions: try them before you read the solution.

The transistor: parts and currents

The transistor has three terminals, each with a different job and impurity concentration:

TerminalSymbolIts jobImpurity concentration
the emitterEsupplies carriers to the basethe highest
the baseBcontrols the currentthe lowest, and it is very thin
the collectorCcollects the carriersless than the emitter

The two types: npn (the majority carriers in the emitter and collector are electrons) and pnp (the carriers are holes). Each has two junctions: emitter-base and base-collector.

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

The base is very thin and its impurity concentration is low. Answer: (d) thin, with a low impurity concentration.

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

The emitter is heavily doped and the collector less, so the ratio is greater than one. Answer: (b) greater than one.

The common-emitter connection

The emitter is the terminal shared by the base battery and the collector battery, that is, one end of each battery is connected to it. Follow the two batteries in the figure: if both are connected to the emitter, it is common emitter. The base is positive, and the larger battery makes the collector positive.

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

Common emitter, the base is positive, and the large battery makes the collector positive. Answer: (d).

The transistor as a switch

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

The base is large and positive: the transistor reaches saturation and works as a closed switch. Answer: (b) as a closed switch.

The laws

IE=IC+IBβe=ICIBαe=ICIE=βe1+βeβe=αe1−αeI_E = I_C + I_B \qquad \beta_e = \frac{I_C}{I_B} \qquad \alpha_e = \frac{I_C}{I_E} = \frac{\beta_e}{1+\beta_e} \qquad \beta_e = \frac{\alpha_e}{1-\alpha_e}

How to solve problems: write the two given quantities, find any third current from IE=IC+IBI_E = I_C + I_B or from βe\beta_e or αe\alpha_e, then calculate what is asked.

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

βe=ICIB=450.45=100\beta_e=\frac{I_C}{I_B}=\frac{45}{0.45}=100 αe=βe1+βe=100101=0.99\alpha_e=\frac{\beta_e}{1+\beta_e}=\frac{100}{101}=0.99 Answer: (c) 0.99.

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

IC=βeIB=24×24 μA=576×10−6 AI_C=\beta_e I_B=24\times24\ \mu A=576\times10^{-6}\ A αe=2425=0.96\alpha_e=\frac{24}{25}=0.96 Answer: (d) αe\alpha_e: 0.96, ICI_C: 576×10−6576 \times 10^{-6} A.

In questions with a battery and a resistor, start with the voltage across the resistor:

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

IB=0.011500=6.67×10−6 AI_B=\frac{0.01}{1500}=6.67\times10^{-6}\ A IC=75×6.67×10−6=0.5 mAI_C=75\times6.67\times10^{-6}=0.5\ mA VCE=3−0.5×10−3×4500V_{CE}=3-0.5\times10^{-3}\times4500 VCE=0.75 VV_{CE}=0.75\ V Answer: (d) base current (IB)(I_B): 6.67×10−66.67 \times 10^{-6} A, output voltage (VCE)(V_{CE}): 0.75 V.

If you are asked what happens when RBR_B changes: increasing RBR_B lowers IBI_B, so ICI_C decreases, so the voltage across RCR_C (ICRCI_C R_C) decreases and VCEV_{CE} increases, because VCCV_{CC} is constant.

Converting between binary and decimal

The calculator does this in seconds, but know the method by hand, because essay questions ask for the steps.

On the calculator (Casio fx-991): press MODE and choose Base-N. The calculator starts in decimal. Type the number, then =, then press the key of the system you want: BIN for binary or DEC for decimal, and the converted number appears. To type a binary number press BIN first, then type it. Go back to MODE 1 afterwards for normal calculations.

By hand, from binary to decimal: each place has a weight, from the right 1,2,4,8,16,…1, 2, 4, 8, 16, \dots, the powers of 2. Multiply each digit by its weight and add:

(1010)2=1×8+0×4+1×2+0×1=10(1010)_2 = 1\times 8 + 0\times 4 + 1\times 2 + 0\times 1 = 10

By hand, from decimal to binary: divide by 2 again and again and write the remainder (0 or 1) each time, then read the remainders from the bottom up:

DivisionResultRemainder
20÷220 \div 2100
10÷210 \div 250
5÷25 \div 221
2÷22 \div 210
1÷21 \div 201

From the bottom: 20=(10100)220 = (10100)_2. The faster way for a small number: break it into weights, 20=16+420 = 16 + 4, so put 1 under 16 and under 4 and zero in the rest.

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

Split the number into powers of 2: 20=16+4=24+2220=16+4=2^4+2^2 (10100)2(10100)_2 Answer: (b) (10100)2(10100)_2.

If the question is an addition, add in decimal first, then convert: 1+1+1+1=4=(100)21+1+1+1 = 4 = (100)_2. Do not add in binary in your head; that leads to mistakes.

Did you know? The hexadecimal system is the same idea with weight 16 instead of 2, and the digits after 9 are A=10, B=11, C=12, D=13, E=14, F=15A=10,\ B=11,\ C=12,\ D=13,\ E=14,\ F=15. For example:

(2F)16=2×16+15=47(2F)_{16} = 2\times 16 + 15 = 47

It shortens long binary numbers: split the places into groups of 4 from the right, each group one digit, so (1011 0011)2=(B3)16(1011\ 0011)_2 = (B3)_{16}. You see it in website colours and device addresses, and on the calculator with the HEX key.

The three gates

Each gate takes inputs of value 0 or 1 and gives one output:

GateRuleGives 1 when
NOTinverts one inputthe input is 0
AND"and"all the inputs are 1
OR"or"any input is 1, at least one

The two tables for inputs AA and BB:

ABANDOR
0000
0101
1001
1111

The trick in ratio questions: with nn inputs there are 2n2^n input cases. AND gives 1 in one case only (all 1), and OR gives 0 in one case only (all 0). So for three inputs (8 cases) OR gives one in 7 cases, that is 78=87.5%\frac{7}{8} = 87.5\%.

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

An AND gate gives 1 in only one case, which is 111. Answer: (b) 1.

A NOT gate on a binary number inverts every digit in it, so 1100111001 becomes 0011000110.

From the circuit to the table

The only safe method: write the output after each gate in order, from the inputs to the output, for each row of the table separately.

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

The AND branch gives 1 only if A = 1 and B = 1, and the NOT branch gives 1 if C = 0. When A = 1, B = 0 and C = 0, the NOT branch gives 1, so the output is 1. Answer: (c) A: 1, B: 0, C: 0.

If the question asks for the inputs that give a certain output, work backwards: start from the output. A final AND gate needs all its inputs to be 1, and if one of its inputs is the output of an OR, it is enough for any input of that OR to be 1.

From the table to the circuit

Now the reverse. Do not try to guess the circuit; test the choices with the rows: take a row of the table and apply it to each choice, and any choice that gives a different output is crossed out. These quick signs shorten the way:

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

The table gives 0 only when A = 1 and B = 0. This is the output of NOT A followed by OR with B. Answer: (a).

If the gate itself is unknown, decide it with a row that separates the possibilities: try each possibility on one row and see whether it gives the output wanted.

The electric circuit against the gate

This is the most important point of the lesson. Every gate has a circuit of switches and a lamp; a closed switch = 1, and a lit lamp = output 1:

GateThe circuitThe lamp lights when
ANDswitches in seriesall the switches are closed
ORswitches in parallelany switch is closed
NOTthe switch in parallel with the lampthe switch is open
AND            ──[A]──[B]──(L)──

OR           ┌──[A]──┐
          ───┤       ├──(L)──
             └──[B]──┘

NOT          ┌──(L)──┐
          ───┤       ├───
             └──[A]──┘

The idea of NOT: a closed switch short-circuits the lamp, so it goes out; the lamp lights when the switch is open, the opposite of the switch.

For combined circuits follow two rules: series = AND and parallel = OR, then add NOT for any switch that short-circuits the lamp.

A question from the lesson “Transistors, Digital and Analog Electronics”
Show the solution

The two switches are in parallel: the lamp lights if at least one of them is closed. This is an OR gate, and the rows (1, 0, 1) and (0, 1, 1) satisfy it. Answer: (c).

Before the exam

To practise the whole lesson, open the transistor questions and start in the normal mode.

Found a mistake in this post or have a suggestion? 📧 Contact us

← All posts