SlideShare a Scribd company logo
1 of 25
G.Vinothini M.sc.,M.phil.,
Department of Information Techonology,
Bon Secours College for Women,
Thanjavur.
 The binary number system is a
numbering system that represents
numeric values using two unique digits
(0 and 1).
 The binary number system is also
called base-2 number system.
Ex: (1011001)2
The decimal or “denary” counting system
uses the Base-of-10 numbering system
where each digit in a number takes on one
of ten possible values, called “digits”,
from 0 to 9
Ex: 21310
 Binary to Decimal Conversion of
numbers uses weighted columns to
identify the order of the digits to
determine the final value of the number
 Conversion of binary to decimal
(base-2 to base-10) numbers
binary
number
:
1 1 1 0 0 1
power
of 2:
25 24 23 22 21 20
Example :
Find the decimal value of 1110012:
1110012 = 1(2)5+1(2)4+1(2)3+0(2)2+0(2)1+1(2)0
= 5710
Conversion steps:
 Divide the number by 2.
 Get the integer quotient for the next
iteration.
 Get the remainder for the binary digit.
 Repeat the steps until the quotient is
equal to 0.
 Convert (43)10 Binary
2 43
2 21 - 1
2 10 - 1
2 5 - 0
2 2 - 1
1 - 0
=(101011)2
 Convert (21.6)10 Binary
2 21 0.6*2=1.2(1)
2 10 - 1 0.2*2=0.4(0)
2 5 - 0 0.4*2=0.8(0)
2 2 - 1 0.8*2=1.6(1)
1 - 0
=(10101 . 1001)2
Binary addition is much like your
normal everyday addition (decimal
addition), except that it carries on a
value of 2 instead of a value of 10.
Therefore in binary:
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 10 (which is 0 carry 1)
1. 100101 + 10101 = ?.
Answer: 100101
10101 +
= 111010.
2. 1010 + 11 = ?
Answer: 1010
11 +
= 1101.
Binary subtraction is also similar to that of decimal
subtraction with the difference that when 1 is
subtracted from 0, it is necessary to borrow 1 from
the next higher order bit and that bit is reduced by
1 (or 1 is added to the next bit of subtrahend) and
the remainder is 1.
Rules:
0 - 0 = 0
1 - 0 = 1
1 - 1 = 0
0 - 1 = 1 with a borrow of 1
I) 101 from 1001
Solution:
101 from 1001
1 Borrow
1 0 0 1
1 0 1
1 0 0
ii) 1010101.10
from 1111011.11
Solution:
1010101.10 from
1111011.11
1 Borrow
1 1 1 1 0 1 1 . 1 1
1 0 1 0 1 0 1 . 1 0
1 0 0 1 1 0 . 0 1
The 1’s complement of a binary number is
the number that results when we change
each 0 to 1 and each 1 to o in other words
1’s complement of 100 is 011.
Ex:
The 1’s complement of 1001 is 0110
The 1’s complement of 1010 is 0101
The 1’s complement of the subtrahend is added the
minuend .The last carry (called the end around carry) if any ,
is then added to the partial result to get the final answer.
1.Sub 1101 from 1010
1010
0010 +
--------
1100
Ans : -0011
2. Sub 0110 from 1001
1001
1001 +
--------
10010
1 +
---------
Ans: 0011
The 2’s complement of a binary number
is obtained by adding 1 to its 1’s complement .
i.e.,
2’s complement = 1’s complement + 1
Ex:
Number 2’s complement
1110 0001+1 =0010
0001 1110+1 = 1111
10110 01001+1 =01010
1.Sub 101 from 111
111
010 +
--------
1010
Ans : 010
2.Sub 0111 from 0110
0110
1001 +
--------
1111
--------
0000
1 +
--------
Ans: -0001
The octal numeral system, or oct for short, is
the base-8 number system, and uses the digits
0 to 7.
5017 in Octal is equivalent to 101 000 001 111 in
binary.
24.3 in Octal is 010 100. 011 in binary.
The hexadecimal numeral system, often shortened
to "hex", is a numeral system made up of 16 symbols
symbols (base 16). The standard numeral system is
called decimal (base 10) and uses ten symbols:
0,1,2,3,4,5,6,7,8,9.
The English alphabet are used, specifically A, B, C, D, E
and F. Hexadecimal A = decimal 10, and hexadecimal F =
decimal 15.
Ex:
Convert (0111 1101)2 to hexadecimal
0111 1101 = (7D)16
7 D
They are several methods that are used to
express both numbers & letters as binary codes.
It can be classified into following
categories:
 8421 code
 BCD code
 Express – 3
It is the non-weighted code and it is not
arithmetic codes. That means there are no
specific weights assigned to the bit position.
Gray code cannot be used for arithmetic
operation.
0+0=0
1+0=1
0+1=1
1+1=0
 Another weighted code is 5043210.
This biquinary code is an example of a 7 bit
code with error detection properties. Each
biquinary code consists of 5 zeros and 2 ones
placed in the corresponding weighted column
.
 One or more bits may change value.
 Error-detecting codes are a sequence of numbers
generated by specific procedures for detecting errors in data that
has been transmitted over computer networks.
 When bits are transmitted over the computer network,
they are subject to get corrupted due to interference and network
problems. The corrupted bits leads to spurious data being
received by the receiver and are called errors.
 Error – detecting codes ensures messages to be
encoded before they are sent over noisy channels. The encoding
is done in a manner so that the decoder at the receiving end can
detect whether there are errors in the incoming signal with high
probability of success.
It is used to detect to errors within the same word. For
example , if 10101010 where transmitted using even
parity and a 10011010 where received , it would
appear as though no error had occurred.
EXAMPLE :
Word A 10110111
Word B 00100010
Sum 11011001
ECC (either "error correction [or correcting]
code" or "error checking and correcting") allows
data that is being read or transmitted to be
checked for errors and, when necessary,
corrected on the fly. It differs from parity-
checking in that errors are not only detected but
also corrected. ECC is increasingly being
designed into data storage and transmission
hardware as data rates (and therefore error
rates) increase.
THANK
YOU
THANK
YOU
THANK
YOU
THANK
YOU
THANK
YOU

More Related Content

What's hot

What's hot (20)

Number system
Number system Number system
Number system
 
Binary operations
 Binary operations Binary operations
Binary operations
 
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)
 
Floating point presentation
Floating point presentationFloating point presentation
Floating point presentation
 
PPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMPPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEM
 
Number systems
Number systemsNumber systems
Number systems
 
Ncp computer appls num sys3 pramod
Ncp computer appls  num sys3 pramodNcp computer appls  num sys3 pramod
Ncp computer appls num sys3 pramod
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbers
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
 
Number System
Number SystemNumber System
Number System
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
 
Chapter 02 Data Types
Chapter 02   Data TypesChapter 02   Data Types
Chapter 02 Data Types
 
Binary addition
Binary additionBinary addition
Binary addition
 
Representation of Real Numbers
Representation of Real NumbersRepresentation of Real Numbers
Representation of Real Numbers
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
06 floating point
06 floating point06 floating point
06 floating point
 
Binary number systems multiplication
Binary number systems multiplicationBinary number systems multiplication
Binary number systems multiplication
 
Digital logic mohammed salim ch2
Digital logic mohammed salim ch2Digital logic mohammed salim ch2
Digital logic mohammed salim ch2
 

Similar to Digital computer fundamentals

1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in PharmacyVedika Narvekar
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Frankie Jones
 
B sc3 unit 2 number system
B sc3  unit 2 number systemB sc3  unit 2 number system
B sc3 unit 2 number systemMahiboobAliMulla
 
Data representation
Data representationData representation
Data representationChew Hoong
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptxamudhak10
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptxamudhak10
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptxkhalidkk6
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009lionking
 
Chapter 6 base_number
Chapter 6 base_numberChapter 6 base_number
Chapter 6 base_numberNazrul Shah
 
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.pptxGobinathAECEJRF1101
 
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 CodesGouda Mando
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionJeoffnaRuth
 

Similar to Digital computer fundamentals (20)

lec2_BinaryArithmetic.ppt
lec2_BinaryArithmetic.pptlec2_BinaryArithmetic.ppt
lec2_BinaryArithmetic.ppt
 
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
 
B sc ii sem unit 2(a) ns
B sc ii sem  unit 2(a) nsB sc ii sem  unit 2(a) ns
B sc ii sem unit 2(a) ns
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)
 
B sc3 unit 2 number system
B sc3  unit 2 number systemB sc3  unit 2 number system
B sc3 unit 2 number system
 
Data representation
Data representationData representation
Data representation
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
DLD-Introduction.pptx
DLD-Introduction.pptxDLD-Introduction.pptx
DLD-Introduction.pptx
 
ch2.pdf
ch2.pdfch2.pdf
ch2.pdf
 
digitalelectronics.ppt
digitalelectronics.pptdigitalelectronics.ppt
digitalelectronics.ppt
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptx
 
NUMBER BASE SYSTEM.pptx
NUMBER BASE SYSTEM.pptxNUMBER BASE SYSTEM.pptx
NUMBER BASE SYSTEM.pptx
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 
Chapter 6 base_number
Chapter 6 base_numberChapter 6 base_number
Chapter 6 base_number
 
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
 
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
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and Detection
 
NumberSystems.ppt
NumberSystems.pptNumberSystems.ppt
NumberSystems.ppt
 
Lec2_NumberSystems.ppt
Lec2_NumberSystems.pptLec2_NumberSystems.ppt
Lec2_NumberSystems.ppt
 

More from vinothinisureshbabu (11)

SYNCHRONIZATION
SYNCHRONIZATIONSYNCHRONIZATION
SYNCHRONIZATION
 
Adobe page maker
Adobe page makerAdobe page maker
Adobe page maker
 
Operating systems
Operating systems Operating systems
Operating systems
 
Sequenential circuit-dcf
Sequenential circuit-dcfSequenential circuit-dcf
Sequenential circuit-dcf
 
DCF-Combinational circuit
DCF-Combinational circuitDCF-Combinational circuit
DCF-Combinational circuit
 
DCF - K map
DCF - K mapDCF - K map
DCF - K map
 
DCF- Logic gates and circuit
DCF- Logic gates and circuitDCF- Logic gates and circuit
DCF- Logic gates and circuit
 
Os - device management
Os - device managementOs - device management
Os - device management
 
Introduction to ms access
Introduction to ms accessIntroduction to ms access
Introduction to ms access
 
computer organization and architecture
computer organization and architecturecomputer organization and architecture
computer organization and architecture
 
Programming in c
Programming in cProgramming in c
Programming in c
 

Recently uploaded

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 

Recently uploaded (20)

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 

Digital computer fundamentals

  • 1. G.Vinothini M.sc.,M.phil., Department of Information Techonology, Bon Secours College for Women, Thanjavur.
  • 2.
  • 3.  The binary number system is a numbering system that represents numeric values using two unique digits (0 and 1).  The binary number system is also called base-2 number system. Ex: (1011001)2
  • 4. The decimal or “denary” counting system uses the Base-of-10 numbering system where each digit in a number takes on one of ten possible values, called “digits”, from 0 to 9 Ex: 21310
  • 5.  Binary to Decimal Conversion of numbers uses weighted columns to identify the order of the digits to determine the final value of the number  Conversion of binary to decimal (base-2 to base-10) numbers
  • 6. binary number : 1 1 1 0 0 1 power of 2: 25 24 23 22 21 20 Example : Find the decimal value of 1110012: 1110012 = 1(2)5+1(2)4+1(2)3+0(2)2+0(2)1+1(2)0 = 5710
  • 7. Conversion steps:  Divide the number by 2.  Get the integer quotient for the next iteration.  Get the remainder for the binary digit.  Repeat the steps until the quotient is equal to 0.
  • 8.  Convert (43)10 Binary 2 43 2 21 - 1 2 10 - 1 2 5 - 0 2 2 - 1 1 - 0 =(101011)2  Convert (21.6)10 Binary 2 21 0.6*2=1.2(1) 2 10 - 1 0.2*2=0.4(0) 2 5 - 0 0.4*2=0.8(0) 2 2 - 1 0.8*2=1.6(1) 1 - 0 =(10101 . 1001)2
  • 9. Binary addition is much like your normal everyday addition (decimal addition), except that it carries on a value of 2 instead of a value of 10. Therefore in binary: 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 10 (which is 0 carry 1)
  • 10. 1. 100101 + 10101 = ?. Answer: 100101 10101 + = 111010. 2. 1010 + 11 = ? Answer: 1010 11 + = 1101.
  • 11. Binary subtraction is also similar to that of decimal subtraction with the difference that when 1 is subtracted from 0, it is necessary to borrow 1 from the next higher order bit and that bit is reduced by 1 (or 1 is added to the next bit of subtrahend) and the remainder is 1. Rules: 0 - 0 = 0 1 - 0 = 1 1 - 1 = 0 0 - 1 = 1 with a borrow of 1
  • 12. I) 101 from 1001 Solution: 101 from 1001 1 Borrow 1 0 0 1 1 0 1 1 0 0 ii) 1010101.10 from 1111011.11 Solution: 1010101.10 from 1111011.11 1 Borrow 1 1 1 1 0 1 1 . 1 1 1 0 1 0 1 0 1 . 1 0 1 0 0 1 1 0 . 0 1
  • 13. The 1’s complement of a binary number is the number that results when we change each 0 to 1 and each 1 to o in other words 1’s complement of 100 is 011. Ex: The 1’s complement of 1001 is 0110 The 1’s complement of 1010 is 0101
  • 14. The 1’s complement of the subtrahend is added the minuend .The last carry (called the end around carry) if any , is then added to the partial result to get the final answer. 1.Sub 1101 from 1010 1010 0010 + -------- 1100 Ans : -0011 2. Sub 0110 from 1001 1001 1001 + -------- 10010 1 + --------- Ans: 0011
  • 15. The 2’s complement of a binary number is obtained by adding 1 to its 1’s complement . i.e., 2’s complement = 1’s complement + 1 Ex: Number 2’s complement 1110 0001+1 =0010 0001 1110+1 = 1111 10110 01001+1 =01010
  • 16. 1.Sub 101 from 111 111 010 + -------- 1010 Ans : 010 2.Sub 0111 from 0110 0110 1001 + -------- 1111 -------- 0000 1 + -------- Ans: -0001
  • 17. The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. 5017 in Octal is equivalent to 101 000 001 111 in binary. 24.3 in Octal is 010 100. 011 in binary.
  • 18. The hexadecimal numeral system, often shortened to "hex", is a numeral system made up of 16 symbols symbols (base 16). The standard numeral system is called decimal (base 10) and uses ten symbols: 0,1,2,3,4,5,6,7,8,9. The English alphabet are used, specifically A, B, C, D, E and F. Hexadecimal A = decimal 10, and hexadecimal F = decimal 15. Ex: Convert (0111 1101)2 to hexadecimal 0111 1101 = (7D)16 7 D
  • 19. They are several methods that are used to express both numbers & letters as binary codes. It can be classified into following categories:  8421 code  BCD code  Express – 3
  • 20. It is the non-weighted code and it is not arithmetic codes. That means there are no specific weights assigned to the bit position. Gray code cannot be used for arithmetic operation. 0+0=0 1+0=1 0+1=1 1+1=0
  • 21.  Another weighted code is 5043210. This biquinary code is an example of a 7 bit code with error detection properties. Each biquinary code consists of 5 zeros and 2 ones placed in the corresponding weighted column .  One or more bits may change value.
  • 22.  Error-detecting codes are a sequence of numbers generated by specific procedures for detecting errors in data that has been transmitted over computer networks.  When bits are transmitted over the computer network, they are subject to get corrupted due to interference and network problems. The corrupted bits leads to spurious data being received by the receiver and are called errors.  Error – detecting codes ensures messages to be encoded before they are sent over noisy channels. The encoding is done in a manner so that the decoder at the receiving end can detect whether there are errors in the incoming signal with high probability of success.
  • 23. It is used to detect to errors within the same word. For example , if 10101010 where transmitted using even parity and a 10011010 where received , it would appear as though no error had occurred. EXAMPLE : Word A 10110111 Word B 00100010 Sum 11011001
  • 24. ECC (either "error correction [or correcting] code" or "error checking and correcting") allows data that is being read or transmitted to be checked for errors and, when necessary, corrected on the fly. It differs from parity- checking in that errors are not only detected but also corrected. ECC is increasingly being designed into data storage and transmission hardware as data rates (and therefore error rates) increase.