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:
| Terminal | Symbol | Its job | Impurity concentration |
|---|---|---|---|
| the emitter | E | supplies carriers to the base | the highest |
| the base | B | controls the current | the lowest, and it is very thin |
| the collector | C | collects the carriers | less 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.
Show the solution
The base is very thin and its impurity concentration is low. Answer: (d) thin, with a low impurity concentration.
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.
Show the solution
Common emitter, the base is positive, and the large battery makes the collector positive. Answer: (d).
The transistor as a switch
- The base positive and large: the transistor reaches saturation and works as a closed switch.
- The base negative: it works as an open switch.
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
- always and always.
- In the collector circuit: , so the voltage across the resistor is .
- In the base circuit: , where is the voltage across the resistor .
- Watch the units: do not mix and ; change everything to or everything to before dividing.
How to solve problems: write the two given quantities, find any third current from or from or , then calculate what is asked.
Show the solution
Answer: (c) 0.99.
Show the solution
Answer: (d) : 0.96, : A.
In questions with a battery and a resistor, start with the voltage across the resistor:
Show the solution
Answer: (d) base current : A, output voltage : 0.75 V.
If you are asked what happens when changes: increasing lowers , so decreases, so the voltage across () decreases and increases, because 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 , the powers of 2. Multiply each digit by its weight and add:
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:
| Division | Result | Remainder |
|---|---|---|
| 10 | 0 | |
| 5 | 0 | |
| 2 | 1 | |
| 1 | 0 | |
| 0 | 1 |
From the bottom: . The faster way for a small number: break it into weights, , so put 1 under 16 and under 4 and zero in the rest.
Show the solution
Split the number into powers of 2: Answer: (b) .
If the question is an addition, add in decimal first, then convert: . 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 . For example:
It shortens long binary numbers: split the places into groups of 4 from the right, each group one digit, so . 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:
| Gate | Rule | Gives 1 when |
|---|---|---|
| NOT | inverts one input | the input is 0 |
| AND | "and" | all the inputs are 1 |
| OR | "or" | any input is 1, at least one |
The two tables for inputs and :
| A | B | AND | OR |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 |
The trick in ratio questions: with inputs there are 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 .
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 becomes .
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.
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:
- An output of 1 in one row only (all inputs 1) means AND.
- An output of 0 in one row only (all inputs 0) means OR.
- An output that is exactly the opposite of AND or OR means a NOT gate after it.
- If the output is 1 when , the circuit must contain a NOT gate, because AND and OR alone give 0 when all the inputs are 0.
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:
| Gate | The circuit | The lamp lights when |
|---|---|---|
| AND | switches in series | all the switches are closed |
| OR | switches in parallel | any switch is closed |
| NOT | the switch in parallel with the lamp | the 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.
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
- The emitter has the highest concentration, and the base is thin with the lowest. and always.
- , , , and the voltage across the resistor is .
- A large positive base = a closed switch; a negative base = an open switch.
- Decimal to binary: divide by 2 and read the remainders from the bottom. Binary to decimal: multiply each digit by its weight 1, 2, 4, 8 and add.
- AND gives 1 when all are 1, OR gives 1 when any one is 1, NOT inverts.
- Series AND and parallel OR, and a switch that short-circuits the lamp is NOT.
- Table to circuit: test the choices with a row of the table and cross out the one that disagrees.
To practise the whole lesson, open the transistor questions and start in the normal mode.