Download presentation
Presentation is loading. Please wait.
Published byAndra Miller Modified over 8 years ago
1
Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, 2012. All rights reserved.
2
Transistor Basics A semiconductor device A semiconductor device Conductivity is controlled by current Conductivity is controlled by current Made from a silicon crystal Made from a silicon crystal Copyright © Texas Education Agency, 2012. All rights reserved.
3
I B << I C I B << I C Here is the same circuit, shown using schematic symbols: Here is the same circuit, shown using schematic symbols: ICIC IBIB RBRB RCRC V BB V CC Copyright © Texas Education Agency, 2012. All rights reserved.
4
Here is the same circuit, shown slightly different: Here is the same circuit, shown slightly different: This is a standard transistor switch This is a standard transistor switch Used in computers and other electronic devices Used in computers and other electronic devices Signal In Power Supply (V CC ) Output RCRC Copyright © Texas Education Agency, 2012. All rights reserved.
5
Signal In = 0 Transistor Off V CC = 1 V O = V CC = 1 Signal In = 1 Transistor On V O = 0 V CC The two states of a switch – on and off This circuit is called an inverter: When the input is one the output is zero, when the input is zero the output is one Copyright © Texas Education Agency, 2012. All rights reserved.
6
We Use Transistors All logic uses transistors All logic uses transistors We use voltage to represent binary We use voltage to represent binary TTL (transistor – transistor logic) is common: TTL (transistor – transistor logic) is common: + 5 V = binary 1 + 5 V = binary 1 0 V = binary 0 0 V = binary 0 These voltages will turn on or off transistors These voltages will turn on or off transistors Copyright © Texas Education Agency, 2012. All rights reserved.
7
The Truth Table A tool used to understand binary logic A tool used to understand binary logic Shows every possible input Shows every possible input Shows the output for each input Shows the output for each input InputAOutputX 0110 What circuit does this represent? An Inverter! Copyright © Texas Education Agency, 2012. All rights reserved.
8
Binary Logic A set of rules that applies to a digital circuit A set of rules that applies to a digital circuit Logic defines the way the circuit will act Logic defines the way the circuit will act Given a set of inputs, the output will produce a specific outcome Given a set of inputs, the output will produce a specific outcome Always acts exactly the same way Always acts exactly the same way We use a truth table to help us define how we want the logic circuit to act We use a truth table to help us define how we want the logic circuit to act Copyright © Texas Education Agency, 2012. All rights reserved.
9
Two Bit Binary Adder Adds two binary bits Adds two binary bits Binary can only have two values, 0 and 1 Binary can only have two values, 0 and 1 1 + 1 = 2, which is not valid binary 1 + 1 = 2, which is not valid binary 0 + 0 00 + 1 11 + 0 1 1 + 1 0 Carry 1 Copyright © Texas Education Agency, 2012. All rights reserved.
10
Truth Table for Binary Addition We have two inputs We have two inputs We generate two outputs We generate two outputs InputAInputBOutput Σ (sum) Carry C o 0011010101100001 How do we do this? First, we have to understand binary! Copyright © Texas Education Agency, 2012. All rights reserved.
11
Binary Numbers Binary only has two values, 0 and 1 Binary only has two values, 0 and 1 The decimal number system has ten values, 0 through 9 The decimal number system has ten values, 0 through 9 How do we count higher than 9 in decimal? How do we count higher than 9 in decimal? -We add decimal places -We add decimal places How do we count higher than one in binary? How do we count higher than one in binary? -We add binary bits -We add binary bits Copyright © Texas Education Agency, 2012. All rights reserved.
12
Decimal places are each multiples of ten Decimal places are each multiples of ten Binary bits are each multiples of two Binary bits are each multiples of two 10 0 = 1 (ones) 10 1 = 10 (tens) 10 2 = 100 (hundreds) 10 3 = 1000 (thousands) 2 0 = 1 (ones) 2 1 = 2 (twos) 2 2 = 4 (fours) 2 3 = 8 (eights) Copyright © Texas Education Agency, 2012. All rights reserved.
13
Reading Binary Numbers A decimal number like 9437 reads: A decimal number like 9437 reads: Nine thousand, four hundred, thirty, seven. Nine thousand, four hundred, thirty, seven. The binary number 1011 has values: The binary number 1011 has values: One eight, no fours, one two, one one. One eight, no fours, one two, one one. 1011 has a decimal value of 11 (eleven) 1011 has a decimal value of 11 (eleven) How do read the binary 1111? How do read the binary 1111? Decimal Fifteen Decimal Fifteen How do you count higher than fifteen? How do you count higher than fifteen? Add more binary bits (decimal places) Add more binary bits (decimal places) Copyright © Texas Education Agency, 2012. All rights reserved.
14
Binary Bit Values To count up to 1000 (decimal) you need ten binary bits To count up to 1000 (decimal) you need ten binary bits To count higher, you need more binary bits To count higher, you need more binary bits Bit number Decimal value 0124365879 1616 13232 8 42128128 6464 256256 512512 Copyright © Texas Education Agency, 2012. All rights reserved.
15
Binary to Decimal The binary number: The binary number: Has a decimal value: Has a decimal value: This process involves addition This process involves addition 1001011001 512 + 64 + 16 + 8 + 1 = 601 1 0124365879 1616 13232 842128128 6464 256256 512512 0 00001111 Copyright © Texas Education Agency, 2012. All rights reserved.
16
Decimal to Binary Decimal to binary is a little harder Decimal to binary is a little harder The process involves subtraction The process involves subtraction For example, consider the decimal number: For example, consider the decimal number: Go back to the binary count: Go back to the binary count: 361 0 1 24365879 1616 13232 8 42128128 6464 256256 512512 Copyright © Texas Education Agency, 2012. All rights reserved.
17
361 10 equals 0101101001 2 361 10 equals 0101101001 2 1 0 1 24365879 1616 13232 8 42128128 6464 256256 512512 1 00010101 Copyright © Texas Education Agency, 2012. All rights reserved.
18
82 10 equals = ? 82 10 equals = ? 0 1 24365879 1616 13232 8 42128128 6464 256256 512512 Copyright © Texas Education Agency, 2012. All rights reserved.
19
82 10 equals = 0001010010 2 82 10 equals = 0001010010 2 0 0 1 24365879 1616 13232 8 42128128 6464 256256 512512 0 01000110 Copyright © Texas Education Agency, 2012. All rights reserved.
20
1023 10 equals = ? 1023 10 equals = ? 0 1 24365879 1616 13232 8 42128128 6464 256256 512512 Copyright © Texas Education Agency, 2012. All rights reserved.
21
1023 10 equals 1111111111 2 1023 10 equals 1111111111 2 1 0 1 24365879 1616 13232 8 42128128 6464 256256 512512 1 11111111 Copyright © Texas Education Agency, 2012. All rights reserved.
22
Binary Count The easiest way to show all possible input values is a binary count The easiest way to show all possible input values is a binary count Keep adding one to the previous value Keep adding one to the previous value Everyone should be able to count in binary Everyone should be able to count in binary D = 1, C = 2, B = 4, A = 8 D = 1, C = 2, B = 4, A = 8 ABCDDeciHex 000000001111111100001111000011110011001100110011010101010101010101234567891011121314150123456789ABCDEF Copyright © Texas Education Agency, 2012. All rights reserved.
23
ABCDDeciHex 000000001111111100001111000011110011001100110011010101010101010101234567891011121314150123456789ABCDEF What happens if you have to keep counting?0001000100011111001100110011011116173125510111FFF Copyright © Texas Education Agency, 2012. All rights reserved.
24
Hexadecimal Computers and electronic devices communicate in binary Computers and electronic devices communicate in binary All those 1’s and 0’s are confusing All those 1’s and 0’s are confusing Is there an easy way to tell what the binary values are? Is there an easy way to tell what the binary values are? YES – it’s called Hexadecimal YES – it’s called Hexadecimal Hexadecimal is a base 16 number system Hexadecimal is a base 16 number system Hexadecimal exactly represents 4 binary bits Hexadecimal exactly represents 4 binary bits Copyright © Texas Education Agency, 2012. All rights reserved.
25
Using Hex To create hex, start with bit 0 and group the binary number into groups of 4 To create hex, start with bit 0 and group the binary number into groups of 4 For example, our decimal 601 would be: For example, our decimal 601 would be: 1001011001 2 or 259 16 Copyright © Texas Education Agency, 2012. All rights reserved.
26
Using Hex To create hex, start with bit 0 and group the binary number into groups of 4 To create hex, start with bit 0 and group the binary number into groups of 4 For example, our decimal 601 would be: For example, our decimal 601 would be: 10 0101 1001 2 or 259 16 Copyright © Texas Education Agency, 2012. All rights reserved.
27
Using Hex To create hex, start with bit 0 and group the binary number into groups of 4 To create hex, start with bit 0 and group the binary number into groups of 4 For example, our decimal 601 would be: For example, our decimal 601 would be: 701 10 = 10 1011 1101 2 = ? Copyright © Texas Education Agency, 2012. All rights reserved.
28
Using Hex To create hex, start with bit 0 and group the binary number into groups of 4 To create hex, start with bit 0 and group the binary number into groups of 4 For example, our decimal 601 would be: For example, our decimal 601 would be: 701 10 = 10 1011 1101 2 = 2BD 16 Copyright © Texas Education Agency, 2012. All rights reserved.
29
There are several ways to indicate the hex number system: Use the subscript 16 Use a lower case h right after the number Use a dollar sign, e.g. $2BD Hex is a shorthand way of representing binary The hex number always exactly represents 4 binary bits Copyright © Texas Education Agency, 2012. All rights reserved.
30
Back to Addition Add 2 4-bit binary numbers: Add 2 4-bit binary numbers: 1 + 1 = 2, which is written 10 in binary 1 + 1 = 2, which is written 10 in binary 0101 + 0011 5 + 3 10008 This 1 is a carry into the next bit 111 1 Copyright © Texas Education Agency, 2012. All rights reserved.
31
2 Bit Binary Adder Lets go back to the truth table for a binary adder: Lets go back to the truth table for a binary adder: InputAInputBOutput Σ (sum) Carry C o 0011010101100001 Now that we understand binary, we can figure out how to do this! Copyright © Texas Education Agency, 2012. All rights reserved.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.