SlideShare a Scribd company logo
   During that lecture we learnt about the various types of
    computers with respect to their size, capability,
    applications (FIVE TYPES)

   And its five essential components and various
    subsystem
     Bus interface unit
     Port
     Modem
1.   To become familiar with number system used by the
     microprocessors - binary numbers

2.   To become able to perform decimal-to-binary
     conversions

3.   To understand the NOT, AND, OR and XOR logic
     operations – the fundamental operations that are
     available in all microprocessors
BINARY
(BASE 2)
numbers
DECIMAL
(BASE 10)
 numbers
0 1 2 3 4
5 6 7 8 9
   Octal
     base = 8
     8 symbols (0,1,2,3,4,5,6,7)


   Hexadecimal
     base = 16
     16 symbols (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)
The right-most is the least significant digit


4202 = 2x100 + 0x101 + 2x102 + 4x103

 The left-most is the most significant digit
1
4202 = 2x100 + 0x101 + 2x102 + 4x103

 1’s multiplier
10
4202 = 2x100 + 0x101 + 2x102 + 4x103

    10’s multiplier
100
4202 = 2x100 + 0x101 + 2x102 + 4x103

       100’s multiplier
1000
4202 = 2x100 + 0x101 + 2x102 + 4x103

           1000’s multiplier
The right-most is the least significant digit


10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24

 The left-most is the most significant digit
1
10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24

 1’s multiplier
2
10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24

    2’s multiplier
4
10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24

        4’s multiplier
8
10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24

           8’s multiplier
16
10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24

              16’s multiplier
Counting
                           in Binary
0   10   20   30      0    1010   10100    11110
1   11   21   31      1    1011   10101     11111
2   12   22   32     10    1100   10110   100000
3   13   23   33     11    1101   10111   100001
4   14   24   34    100    1110   11000   100010
5   15   25   35    101    1111   11001   100011
6   16   26   36    110   10000   11010   100100
7
    17   27    .    111   10001   11011      .
8
9   18   28    .   1000   10010   11100      .
    19   29    .   1001   10011   11101      .
?
Because this system is natural for digital computers

The fundamental building block of a digital computer –
the switch – possesses two natural states, ON & OFF.

It is natural to represent those states in a number
system that has only two symbols, 1 and 0, i.e. the
binary number system

In some ways, the decimal number system is natural
to us humans. Why?
binary digit
   1 Kilobyte = 1,024 bytes
   1 Megabyte = 1, 024 KB = 1, 048, 576 bytes
   1 Gigabyte = 1,024 MB = 1, 048, 576 KB
                = 1, 073, 741, 824 bytes.
Decimal   Binary
   conversion
2   75   remainder
2   37      1
2   18      1
2    9      0
2    4      1
2    2      0
2    1      0
     0      1


1001011
1001011 = 1x20 + 1x21 + 0x22 + 1x23 +
        0x24 + 0x25 + 1x26
         = 1 + 2 + 0 + 8 + 0 + 0 + 64
         = 75
2   100   remainder
2   50       0
2   25       0
2   12       1
2    6       0
2    3       0
2    1       1
     0       1


1100100
Binary   Decimal
   conversion
10002 = 0x20 + 0x21 + 0x22 + 1x23
       =0 + 0 + 0 + 8
       =810
1110012
          1x20 = 1
          0x21 = 0
          0x22 = 0
          1x23 = 8
          1x24 = 16
          1x25 = 32
                 5710
Hexadecimal
 Decimal
conversion
100AH
        10x160   = 10
        0x161    =0
        0x162    =0
        1x163    = 4096
                   4106
Binary
Hexadecimal
 conversion
1001 10102
             10 = A



                 9
                 9AH
Hexadecimal
  Binary
conversion
1 0 0 AH
           1010
           0000
           0000   = 0001000000001010
           0001           or
                     1000000001010
Decimal
  Octal
conversion
1    1st quotient
8   15
     8
     7    1st remainder
     0    2nd quotient
8    1
     0
     1    2nd remainder



         178
33 1st quotient
    8       264
            264
             0 1st remainder
              4 2nd quotient
    8        33
             32
              1  2nd remainder
Check if the last quotient
(MSD) is still divisible by 8.
If not consider the MSD as
the leftmost value then
append the remainder(start
with the last remainder).
                                 4108
Octal
 Decimal
conversion
1248
       4x80 = 4
       2x81 = 16
       1x82 = 64
              84
That finishes our first topic - introduction to
 binary numbers and their conversion to and
 from decimal, hexadecimal and octal
 numbers.

Our next topic is …
0       1

 Off    On

Low     High

False   True
Name   Example    Symbolically
NOT y = NOT(x)        x´
AND z = x AND y      x·y
OR z = x OR y        x+y
XOR z = x XOR y      xy
?
x   y = x´
0
1
x   y = x´
0     1
1     0
x   y   z=x·y
0   0
0   1
1   0
1   1
x   y   z=x·y
0   0     0
0   1     0
1   0     0
1   1     1
x   y   z=x+y
0   0
0   1
1   0
1   1
x   y   z=x+y
0   0     0
0   1     1
1   0     1
1   1     1
x   y   z=xy
0   0
0   1
1   0
1   1
x   y   z=xy
0   0     0
0   1     1
1   0     1
1   1     0
z = (x + y)´
       z = y · (x + y)
       z = (y · x)  w

STRATEGY: Divide & Conquer
x   y   x + y z = (x + y)´
0   0    0         1
0   1    1         0
1   0    1         0
1   1    1         0
x   y   x + y z = y · (x + y)
0   0    0           0
0   1    1           1
1   0    1           0
1   1    1           1
x   y   w   y · x z = (y · x)  w
0   0   0    0          0
0   0   1    0          1
0   1   0    0          0
0   1   1    0          1
1   0   0    0          0
1   0   1    0          1
1   1   0    1          1
1   1   1    1          0
n
          2
n = number of input variables
A.   Convert the following into base 2, 8 and H:
     i. The last five digits of your cellphone number
     ii. 256
B.   x, y & z are Boolean variables. Determine the truth
     tables for the following combinations:
     i. (x · y) + y
     ii. (x  y)´ + w

Whole sheet of yellow paper. Deadline: July 12 (Monday 12nn).
Show your solution.
1.   About the binary number system, and how it differs
     from the decimal system
2.   Positional notation for representing binary and decimal
     numbers
3.   A process (or algorithm) which can be used to convert
     decimal numbers to binary numbers
4.   Basic logic operations for Boolean variables, i.e. NOT,
     OR, AND, XOR, NOR, NAND, XNOR
5.   Construction of truth tables (How many rows?)
Next lecture will be the ?

The focus of the one after that, the 10th lecture,
however, will be on software. During that lecture
we will try:
   To understand the role of software in computing
   To become able to differentiate between system and
    application software

More Related Content

What's hot

Binary number system
Binary number systemBinary number system
Binary number system
Nadeem Uddin
 
Number system (Binary Number)
Number system (Binary Number)Number system (Binary Number)
Number system (Binary Number)
Mithlesh Khanna
 
Differential equation study guide for exam (formula sheet)
Differential equation study guide for exam (formula sheet)Differential equation study guide for exam (formula sheet)
Differential equation study guide for exam (formula sheet)
Dan Al
 
Chapter 6 base_number
Chapter 6 base_numberChapter 6 base_number
Chapter 6 base_number
Nazrul Shah
 
Engr 213 midterm 2b sol 2009
Engr 213 midterm 2b sol 2009Engr 213 midterm 2b sol 2009
Engr 213 midterm 2b sol 2009
akabaka12
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
Shweta Patil
 
Number system and its conversions
Number system and its conversionsNumber system and its conversions
Number system and its conversions
ShilpaKrishna6
 
EASA Part 66 Module 5.2 : Numbering System
EASA Part 66 Module 5.2 : Numbering SystemEASA Part 66 Module 5.2 : Numbering System
EASA Part 66 Module 5.2 : Numbering System
soulstalker
 
Acc 1025pptx
Acc 1025pptxAcc 1025pptx
Acc 1025pptx
育誠 張
 
Tut 1
Tut 1Tut 1
Tut 1
Arun Sethi
 
Laboratorio parte i ecuaciones diferenciales 2014 ii (1)
Laboratorio parte i ecuaciones diferenciales 2014 ii (1)Laboratorio parte i ecuaciones diferenciales 2014 ii (1)
Laboratorio parte i ecuaciones diferenciales 2014 ii (1)
Archi Maco
 
Emat 213 midterm 1 winter 2006
Emat 213 midterm 1 winter 2006Emat 213 midterm 1 winter 2006
Emat 213 midterm 1 winter 2006
akabaka12
 
Sect2 4
Sect2 4Sect2 4
Sect2 4
inKFUPM
 
ความหมายเลขระบบฐาน
ความหมายเลขระบบฐานความหมายเลขระบบฐาน
ความหมายเลขระบบฐาน
jibjoy_butsaya
 
Number System
Number SystemNumber System
Number System
Rishabh Arya
 
Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009
akabaka12
 
Engr 213 midterm 2a sol 2009
Engr 213 midterm 2a sol 2009Engr 213 midterm 2a sol 2009
Engr 213 midterm 2a sol 2009
akabaka12
 
Chapter 15
Chapter 15Chapter 15
Chapter 15
ramiz100111
 
Ch1.number systems
Ch1.number systemsCh1.number systems
Ch1.number systems
teba
 
Boolean algebra laws
Boolean algebra lawsBoolean algebra laws
Boolean algebra laws
Swarup Kumar Boro
 

What's hot (20)

Binary number system
Binary number systemBinary number system
Binary number system
 
Number system (Binary Number)
Number system (Binary Number)Number system (Binary Number)
Number system (Binary Number)
 
Differential equation study guide for exam (formula sheet)
Differential equation study guide for exam (formula sheet)Differential equation study guide for exam (formula sheet)
Differential equation study guide for exam (formula sheet)
 
Chapter 6 base_number
Chapter 6 base_numberChapter 6 base_number
Chapter 6 base_number
 
Engr 213 midterm 2b sol 2009
Engr 213 midterm 2b sol 2009Engr 213 midterm 2b sol 2009
Engr 213 midterm 2b sol 2009
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Number system and its conversions
Number system and its conversionsNumber system and its conversions
Number system and its conversions
 
EASA Part 66 Module 5.2 : Numbering System
EASA Part 66 Module 5.2 : Numbering SystemEASA Part 66 Module 5.2 : Numbering System
EASA Part 66 Module 5.2 : Numbering System
 
Acc 1025pptx
Acc 1025pptxAcc 1025pptx
Acc 1025pptx
 
Tut 1
Tut 1Tut 1
Tut 1
 
Laboratorio parte i ecuaciones diferenciales 2014 ii (1)
Laboratorio parte i ecuaciones diferenciales 2014 ii (1)Laboratorio parte i ecuaciones diferenciales 2014 ii (1)
Laboratorio parte i ecuaciones diferenciales 2014 ii (1)
 
Emat 213 midterm 1 winter 2006
Emat 213 midterm 1 winter 2006Emat 213 midterm 1 winter 2006
Emat 213 midterm 1 winter 2006
 
Sect2 4
Sect2 4Sect2 4
Sect2 4
 
ความหมายเลขระบบฐาน
ความหมายเลขระบบฐานความหมายเลขระบบฐาน
ความหมายเลขระบบฐาน
 
Number System
Number SystemNumber System
Number System
 
Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009Engr 213 midterm 2a 2009
Engr 213 midterm 2a 2009
 
Engr 213 midterm 2a sol 2009
Engr 213 midterm 2a sol 2009Engr 213 midterm 2a sol 2009
Engr 213 midterm 2a sol 2009
 
Chapter 15
Chapter 15Chapter 15
Chapter 15
 
Ch1.number systems
Ch1.number systemsCh1.number systems
Ch1.number systems
 
Boolean algebra laws
Boolean algebra lawsBoolean algebra laws
Boolean algebra laws
 

Viewers also liked

200801229 final presentation
200801229 final presentation200801229 final presentation
200801229 final presentation
samuelhard
 
Trend
TrendTrend
Trend
Xris
 
Marketing smart
Marketing smartMarketing smart
Marketing smart
mukeamarketing
 
บทที่51
 บทที่51 บทที่51
บทที่51kik.nantanit
 
บทที่51
 บทที่51 บทที่51
บทที่51kik.nantanit
 
Document
DocumentDocument
Document
Otong Putra
 
Gsm presentation
Gsm presentationGsm presentation
Gsm presentation
samuelhard
 
Design Project
Design ProjectDesign Project
Design Project
james_l_wilson
 
President's speech
President's speechPresident's speech
President's speech
ketangosain
 
ALS Presentation
ALS PresentationALS Presentation
ALS Presentation
Mark Anthony Peralta
 
ไอทีกับแนวโน้มโลก จิงๆ
ไอทีกับแนวโน้มโลก จิงๆไอทีกับแนวโน้มโลก จิงๆ
ไอทีกับแนวโน้มโลก จิงๆPangpond
 
Field Assignment
Field AssignmentField Assignment
Field Assignment
sumipf
 
Strategy social media and journalism
Strategy social media and journalismStrategy social media and journalism
Strategy social media and journalism
Davy Sims
 
Social Media by Konceptika
Social Media by KonceptikaSocial Media by Konceptika
Social Media by Konceptika
Konceptika
 
Where are all the catholics
Where are all the catholicsWhere are all the catholics
Where are all the catholics
mediaman64
 
Sat vocabulary drills set one
Sat vocabulary drills set oneSat vocabulary drills set one
Sat vocabulary drills set one
Cecily Anderson
 
Chapter 3 1
Chapter 3 1Chapter 3 1
Chapter 3 1
Christina
 
บทที่51
 บทที่51 บทที่51
บทที่51kik.nantanit
 
Control del filtro por aire comprimido
Control del filtro por aire comprimidoControl del filtro por aire comprimido
Control del filtro por aire comprimido
Vibracol Ltda
 
Bridge Outdoors Fall and Winter 2011 Catalog
Bridge Outdoors Fall and Winter 2011 CatalogBridge Outdoors Fall and Winter 2011 Catalog
Bridge Outdoors Fall and Winter 2011 Catalog
Bridge Outdoors
 

Viewers also liked (20)

200801229 final presentation
200801229 final presentation200801229 final presentation
200801229 final presentation
 
Trend
TrendTrend
Trend
 
Marketing smart
Marketing smartMarketing smart
Marketing smart
 
บทที่51
 บทที่51 บทที่51
บทที่51
 
บทที่51
 บทที่51 บทที่51
บทที่51
 
Document
DocumentDocument
Document
 
Gsm presentation
Gsm presentationGsm presentation
Gsm presentation
 
Design Project
Design ProjectDesign Project
Design Project
 
President's speech
President's speechPresident's speech
President's speech
 
ALS Presentation
ALS PresentationALS Presentation
ALS Presentation
 
ไอทีกับแนวโน้มโลก จิงๆ
ไอทีกับแนวโน้มโลก จิงๆไอทีกับแนวโน้มโลก จิงๆ
ไอทีกับแนวโน้มโลก จิงๆ
 
Field Assignment
Field AssignmentField Assignment
Field Assignment
 
Strategy social media and journalism
Strategy social media and journalismStrategy social media and journalism
Strategy social media and journalism
 
Social Media by Konceptika
Social Media by KonceptikaSocial Media by Konceptika
Social Media by Konceptika
 
Where are all the catholics
Where are all the catholicsWhere are all the catholics
Where are all the catholics
 
Sat vocabulary drills set one
Sat vocabulary drills set oneSat vocabulary drills set one
Sat vocabulary drills set one
 
Chapter 3 1
Chapter 3 1Chapter 3 1
Chapter 3 1
 
บทที่51
 บทที่51 บทที่51
บทที่51
 
Control del filtro por aire comprimido
Control del filtro por aire comprimidoControl del filtro por aire comprimido
Control del filtro por aire comprimido
 
Bridge Outdoors Fall and Winter 2011 Catalog
Bridge Outdoors Fall and Winter 2011 CatalogBridge Outdoors Fall and Winter 2011 Catalog
Bridge Outdoors Fall and Winter 2011 Catalog
 

Similar to Lecture4 binary-numbers-logic-operations

2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
Wan Afirah
 
Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptx
AminaZahid16
 
01.number systems
01.number systems01.number systems
01.number systems
rasha3
 
Logic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and CodesLogic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and Codes
Gouda Mando
 
Binary Mathematics Classwork and Hw
Binary Mathematics Classwork and HwBinary Mathematics Classwork and Hw
Binary Mathematics Classwork and Hw
Joji Thompson
 
Video lectures
Video lecturesVideo lectures
Video lectures
Edhole.com
 
Mba ebooks
Mba ebooksMba ebooks
Mba ebooks
Edhole.com
 
Binary octal
Binary octalBinary octal
Binary octal
drdipo4
 
Number system
Number systemNumber system
Number system
Mantra VLSI
 
Number system
Number systemNumber system
Number system
mabroukamohammed
 
Data representation
Data representationData representation
Data representation
Chew Hoong
 
Number systems presentation
Number systems presentationNumber systems presentation
Number systems presentation
Jiian Francisco
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
RaviGhael
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
MUNAZARAZZAQELEA
 
Number system
Number systemNumber system
Number system
kashee99
 
Oth1
Oth1Oth1
Oth1
b137
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
GobinathAECEJRF1101
 
lec2_BinaryArithmetic.ppt
lec2_BinaryArithmetic.pptlec2_BinaryArithmetic.ppt
lec2_BinaryArithmetic.ppt
AvijitChaudhuri3
 
NUMBER BASE SYSTEM.pptx
NUMBER BASE SYSTEM.pptxNUMBER BASE SYSTEM.pptx
NUMBER BASE SYSTEM.pptx
OsenagaAirewele
 
L2 number
L2 numberL2 number
L2 number
mondalakash2012
 

Similar to Lecture4 binary-numbers-logic-operations (20)

2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
 
Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptx
 
01.number systems
01.number systems01.number systems
01.number systems
 
Logic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and CodesLogic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and Codes
 
Binary Mathematics Classwork and Hw
Binary Mathematics Classwork and HwBinary Mathematics Classwork and Hw
Binary Mathematics Classwork and Hw
 
Video lectures
Video lecturesVideo lectures
Video lectures
 
Mba ebooks
Mba ebooksMba ebooks
Mba ebooks
 
Binary octal
Binary octalBinary octal
Binary octal
 
Number system
Number systemNumber system
Number system
 
Number system
Number systemNumber system
Number system
 
Data representation
Data representationData representation
Data representation
 
Number systems presentation
Number systems presentationNumber systems presentation
Number systems presentation
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
ch3a-binary-numbers.ppt
ch3a-binary-numbers.pptch3a-binary-numbers.ppt
ch3a-binary-numbers.ppt
 
Number system
Number systemNumber system
Number system
 
Oth1
Oth1Oth1
Oth1
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 
lec2_BinaryArithmetic.ppt
lec2_BinaryArithmetic.pptlec2_BinaryArithmetic.ppt
lec2_BinaryArithmetic.ppt
 
NUMBER BASE SYSTEM.pptx
NUMBER BASE SYSTEM.pptxNUMBER BASE SYSTEM.pptx
NUMBER BASE SYSTEM.pptx
 
L2 number
L2 numberL2 number
L2 number
 

Lecture4 binary-numbers-logic-operations

  • 1.
  • 2. During that lecture we learnt about the various types of computers with respect to their size, capability, applications (FIVE TYPES)  And its five essential components and various subsystem  Bus interface unit  Port  Modem
  • 3. 1. To become familiar with number system used by the microprocessors - binary numbers 2. To become able to perform decimal-to-binary conversions 3. To understand the NOT, AND, OR and XOR logic operations – the fundamental operations that are available in all microprocessors
  • 6. 0 1 2 3 4 5 6 7 8 9
  • 7.
  • 8. Octal  base = 8  8 symbols (0,1,2,3,4,5,6,7)  Hexadecimal  base = 16  16 symbols (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)
  • 9. The right-most is the least significant digit 4202 = 2x100 + 0x101 + 2x102 + 4x103 The left-most is the most significant digit
  • 10. 1 4202 = 2x100 + 0x101 + 2x102 + 4x103 1’s multiplier
  • 11. 10 4202 = 2x100 + 0x101 + 2x102 + 4x103 10’s multiplier
  • 12. 100 4202 = 2x100 + 0x101 + 2x102 + 4x103 100’s multiplier
  • 13. 1000 4202 = 2x100 + 0x101 + 2x102 + 4x103 1000’s multiplier
  • 14. The right-most is the least significant digit 10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24 The left-most is the most significant digit
  • 15. 1 10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24 1’s multiplier
  • 16. 2 10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24 2’s multiplier
  • 17. 4 10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24 4’s multiplier
  • 18. 8 10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24 8’s multiplier
  • 19. 16 10011= 1x20 + 1x21 + 0x22 + 0x23 + 1x24 16’s multiplier
  • 20. Counting in Binary 0 10 20 30 0 1010 10100 11110 1 11 21 31 1 1011 10101 11111 2 12 22 32 10 1100 10110 100000 3 13 23 33 11 1101 10111 100001 4 14 24 34 100 1110 11000 100010 5 15 25 35 101 1111 11001 100011 6 16 26 36 110 10000 11010 100100 7 17 27 . 111 10001 11011 . 8 9 18 28 . 1000 10010 11100 . 19 29 . 1001 10011 11101 .
  • 21. ? Because this system is natural for digital computers The fundamental building block of a digital computer – the switch – possesses two natural states, ON & OFF. It is natural to represent those states in a number system that has only two symbols, 1 and 0, i.e. the binary number system In some ways, the decimal number system is natural to us humans. Why?
  • 23.
  • 24. 1 Kilobyte = 1,024 bytes  1 Megabyte = 1, 024 KB = 1, 048, 576 bytes  1 Gigabyte = 1,024 MB = 1, 048, 576 KB = 1, 073, 741, 824 bytes.
  • 25. Decimal Binary conversion
  • 26. 2 75 remainder 2 37 1 2 18 1 2 9 0 2 4 1 2 2 0 2 1 0 0 1 1001011
  • 27. 1001011 = 1x20 + 1x21 + 0x22 + 1x23 + 0x24 + 0x25 + 1x26 = 1 + 2 + 0 + 8 + 0 + 0 + 64 = 75
  • 28. 2 100 remainder 2 50 0 2 25 0 2 12 1 2 6 0 2 3 0 2 1 1 0 1 1100100
  • 29. Binary Decimal conversion
  • 30. 10002 = 0x20 + 0x21 + 0x22 + 1x23 =0 + 0 + 0 + 8 =810
  • 31. 1110012 1x20 = 1 0x21 = 0 0x22 = 0 1x23 = 8 1x24 = 16 1x25 = 32 5710
  • 33. 100AH 10x160 = 10 0x161 =0 0x162 =0 1x163 = 4096 4106
  • 35. 1001 10102 10 = A 9 9AH
  • 37. 1 0 0 AH 1010 0000 0000 = 0001000000001010 0001 or 1000000001010
  • 39. 1 1st quotient 8 15 8 7 1st remainder 0 2nd quotient 8 1 0 1 2nd remainder 178
  • 40. 33 1st quotient 8 264 264 0 1st remainder 4 2nd quotient 8 33 32 1 2nd remainder Check if the last quotient (MSD) is still divisible by 8. If not consider the MSD as the leftmost value then append the remainder(start with the last remainder). 4108
  • 42. 1248 4x80 = 4 2x81 = 16 1x82 = 64 84
  • 43. That finishes our first topic - introduction to binary numbers and their conversion to and from decimal, hexadecimal and octal numbers. Our next topic is …
  • 44.
  • 45.
  • 46. 0 1 Off On Low High False True
  • 47. Name Example Symbolically NOT y = NOT(x) x´ AND z = x AND y x·y OR z = x OR y x+y XOR z = x XOR y xy
  • 48. ?
  • 49. x y = x´ 0 1
  • 50. x y = x´ 0 1 1 0
  • 51. x y z=x·y 0 0 0 1 1 0 1 1
  • 52. x y z=x·y 0 0 0 0 1 0 1 0 0 1 1 1
  • 53. x y z=x+y 0 0 0 1 1 0 1 1
  • 54. x y z=x+y 0 0 0 0 1 1 1 0 1 1 1 1
  • 55. x y z=xy 0 0 0 1 1 0 1 1
  • 56. x y z=xy 0 0 0 0 1 1 1 0 1 1 1 0
  • 57. z = (x + y)´ z = y · (x + y) z = (y · x)  w STRATEGY: Divide & Conquer
  • 58. x y x + y z = (x + y)´ 0 0 0 1 0 1 1 0 1 0 1 0 1 1 1 0
  • 59. x y x + y z = y · (x + y) 0 0 0 0 0 1 1 1 1 0 1 0 1 1 1 1
  • 60. x y w y · x z = (y · x)  w 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 1 1 0 1 1 0 0 0 0 1 0 1 0 1 1 1 0 1 1 1 1 1 1 0
  • 61. n 2 n = number of input variables
  • 62. A. Convert the following into base 2, 8 and H: i. The last five digits of your cellphone number ii. 256 B. x, y & z are Boolean variables. Determine the truth tables for the following combinations: i. (x · y) + y ii. (x  y)´ + w Whole sheet of yellow paper. Deadline: July 12 (Monday 12nn). Show your solution.
  • 63. 1. About the binary number system, and how it differs from the decimal system 2. Positional notation for representing binary and decimal numbers 3. A process (or algorithm) which can be used to convert decimal numbers to binary numbers 4. Basic logic operations for Boolean variables, i.e. NOT, OR, AND, XOR, NOR, NAND, XNOR 5. Construction of truth tables (How many rows?)
  • 64. Next lecture will be the ? The focus of the one after that, the 10th lecture, however, will be on software. During that lecture we will try:  To understand the role of software in computing  To become able to differentiate between system and application software