






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































Lecture 1 Introduction to Number Systems What is digital logic: Digital logic is the underlying logic system that drives electronic circuit board design. Digital logic is the manipulation of binary values through printed circuit board technology that uses circuits and logic gates to construct the implementation of computer operations. Digital logic is a common part of electrical engineering and design courses. Why number systems are important for digital electronics: digital electronic devices use digital devices meaning they are digital in their design. They understand two states ON and OFF. These two states are represented using two digits 1 for ON and 0 for OFF. This is the reason they are called digital devices. The digits 1 and 0 are in a number system called Binary number system. { 0 , 1 } What is a Number System: it is a system of representing numbers using a set of digits and alphabets. Example 1 : Decimal Number System For example, the decimal number systems is the commonly used number system and it represents numbers using a set of ten digits { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } 10 , 11 , 12 ,13… 19 , 20 … 29 , 30 … 39 , 9 0.. 99 , 100 , 10 1… 999 , 1000 …9999… 1 , 000 , 000 The total number of digits and alphabets used to represent all the numbers in a number systems is called a base or a radix a number system Therefore, decimal number system has 10 digits used to represent all the numbers i.e. {0, 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ,9} hence its base is 10
On the other hand the Binary number system has 2 digits used to represent all the numbers i.e { 0 ,1} hence the base or radix of binary number system is 2 The number 210 in binary = (^102) problem How many two digit numbers can be formed using base 10 Solution Since decimal number system has symbols 0 to 9 any number after 9 is a combination of the ten digits in the set { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } The total number of two digits numbers that cab be formed are 102 = 100 i.e { 00 , 01 … 10 … 19 …20..29…90.. 99 } 103 = 1000 { 000 , 001… 999 } The total number of the digits and symbols in the set used to represents numbers in the number system is called the base or the radix Hence base or Radix (r) of the decimal number systems is 10 To show the base or radix of a number in a number system we use a subscript at the end of the number. E.g. to show that 386 is a base 10 number we write it as 38610 = 3 hundreds, 8 tens and 6 ones = 3.1 02 +8.10^1 +6.10^0 = 300+80+6= (^38610) consider the number 438610 = 4. 103 + 3.1 02 +8.1 01 +6.10^0 the expansion is as follows 4 3 8 6 Power of base 103 102 101 100 4.1 03 3.1 02 8.10^1 6.1 00 Example 2 : Binary Number system This number systems uses two digits {1, 0 } decimal 0 1 2 3 4 5 6 7 8 9 10 binary 0 1 10 11 100 101 110 111 1000 1001 1010
3
2
1
0
1 0 1 0 1 1 1 26 25 24 23 22 21 20
6
5
4
3
2
1
0
1. CONVERTING ALL OTHER NUMBER SYSTEMS TO BASE 10 IS DONE THROUGH EXPANSION This is done by expanding the given number in any radix according to the weights and getting the total
6
5
4
3
2
1
0
6
5
4
3
2
1
0
Hexadecimal number system …. radix (base) 16 {0, 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ,A,B,C,D,E,F} Where 16 = 24 (means 4 binary digit – bits make a hexadecimal number ) Why octal and hexadecimal are important: the main reason is that binary numbers can be too long and consume a lot of memory hence we can use octal or hexadecimal to group them and reduce the memory space occupied. In other words Octal and hexadecimal have a high information storage capacity.
3
2
1
0
4
6
5
4
3
2
1
0
2
1
0
3
3
0
101011101 101 011 101 5 3 5 11110100
1
0
Convert the number 2 to octal Group the bits into 3 ’s from the least significant i.e. from right to left and convert each group to a base 1 0 number Therefore 101011101 2 = (^5358) 3648 = (^2)
4
- -- this means
4
2
1
0
1000101 0 (^10112)
1 mega byte = 2 20 bits
1 gigabyte = 2 30 bits 1 byte in base 16 is represented using 2 hexadecimal digits while in base 2 it is 8 binary digits 110. (^1012) https://learnabout-electronics.org/Digital/dig1 1 .php 111010112 = (^3538) AB6 16 = (^1010101101102) A=10 B= 11 6 1010 1011 0110
1= 001 3 = 011 the whole number part is 001011 = 1011 The decimal number .6 = 110 2= 010 and 5 = 101 the answer is .1 10010101
INTRODUCTION TO BOOLEAN ALGERA To design digital circuits we also need to understand Boolean algebra which is the foundation of Boolean logic gates (a gate has two options which are Open or Closed – this two states can be represented using digits 1 for closed and 0 for open) What is Boolean algebra: logic algebra that deals with truth values of statements ---- for digital logic design we use the two values True i.e T = 1 which means a close switch with high voltage and False i.e F =0 which means open switch or low voltage Example consider this switch in series This an example of an AND gate (for current to flow switches A AND
dec A B output Boolean output current 0 0 0 0 (no current) A’.B’ off 1 0 1 0 (no current) A’.B off 2 1 0 0 (no current) A.B’ off 3 1 1 1 (current) A.B on
2
0
1
2