ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
1
College of Engineering,
Electrical Engineering Department
Binary Coded
By:
Asst Lec. Besma Nazar Nadhem
Class : Second Year
Subject : Digital Techniques
Master of Science in Electrical Engineering
(Electronic and Communication)
Binary Coded Decimal
ï‚— (BCD) is a type of binary code used to represent a given
decimal number in an equivalent binary form.
ï‚— The BCD equivalent of a decimal number is written by
replacing each decimal digit in the integer and fractional
parts with its four-bit binary equivalent.
ï‚— The BCD code described above is more precisely known as
the 8421 BCD code .
ï‚— As an example, the BCD equivalent of (23.15)10 is written as
(0010 0011.0001 0101)BCD
ï‚— A given BCD number can be converted into an equivalent
binary number by first writing its decimal equivalent and
then converting it into its binary equivalent
Example: find the binary equivalent of the BCD number 0010
1001.0111 0101
Solution :
.BCD number: 0010 1001.0111 0101.
• Corresponding decimal number: 29.75.
• The binary equivalent of 29.75 can be determined to be 11101
for the integer part and .11 for the fractional part.
• Therefore, (0010 1001.0111 0101)BCD =(11101.11)2.
code is the most popular of all the BCD codes, it is simply referred
to as the BCD code.
ï‚— The process of binary-to-BCD conversion is the same as the
process of BCD-to-binary conversion executed in reverse
order. A given binary number can be converted into an
equivalent BCD number by first determining its decimal
equivalent and then writing the corresponding BCD
equivalent.
Example: find the BCD equivalent of the binary number
10101011.101:
Solution :
• The decimal equivalent of this binary number can be determined to be 171.625.
• The BCD equivalent can then be written as 0001 0111 0001.0110 0010 0101.
Other Decimal Codes
Other weighted BCD codes include the 4221 BCD and 5421
BCD codes. Again, 4, 2, 2 and 1 in the 4221 BCD code and 5, 4, 2
and 1 in the 5421 BCD code represent weights of the relevant
bits. Table 2.1 shows a comparison of 8421, 4221 and 5421 BCD
codes.
As an example, (98.16)10 will be written as 1111 1110.0001 1100 in
4221 BCD code and 1100 1011.0001 1001 in 5421 BCD code. Since
the 8421
5_2019_01_03!03_33_00_PM.pptx
Excess-3 Code
The excess-3 code is another important BCD code. The excess-
3 code for a given decimal number is determined by adding ‘3’
to each decimal digit in the given number and then replacing
each digit of the newly found decimal number by its four-bit
binary equivalent.
Example: find the excess-3 code for the decimal number 597
Solution:
The addition of ‘3’ to each digit yields the three new
digits/numbers ‘8’, ‘12’ and ‘10’.
• The corresponding four-bit binary equivalents are 1000, 1100
and 1010 respectively.
• The excess-3 code for 597 is therefore given by: 1000 1100
1010=100011001010.
5_2019_01_03!03_33_00_PM.pptx
Gray Code
• It is an unweighted binary code in which two successive values differ only by 1 bit.
Owing to this feature, the maximum error that can creep into a system using the
binary Gray code to encode data is much less than the worst-case error encountered in
the case of straight binary encoding.
• Binary–Gray Code Conversion
1. Begin with the most significant bit (MSB) of the binary number. The MSB of the Gray
code equivalent is the same as the MSB of the given binary number.
2. The second most significant bit, adjacent to the MSB, in the Gray code number is
obtained by adding the MSB and the second MSB of the binary number and ignoring the
carry, if any. That is, if the MSB and the bit adjacent to it are both ‘1’, then the
corresponding Gray code bit would be a ‘0’.
3. The third most significant bit, adjacent to the second MSB, in the Gray code number is
obtained by adding the second MSB and the third MSB in the binary number and
ignoring the carry, if any.
4. The process continues until we obtain the LSB of the Gray code number by the
addition of the LSB and the next higher adjacent bit of the binary number.
The conversion process is further illustrated with the help
of an example showing step-by-step conversion of (1011)2
into its Gray code equivalent:
Binary 1011
Gray code 1- - -
Binary 1011
Gray code 11- -
Binary 1011
Gray code 111-
Binary 1011
Gray code 1110
• Gray Code–Binary Conversion
A given Gray code number can be converted into its binary equivalent by going through
the following steps:
1. Begin with the most significant bit (MSB). The MSB of the binary number is the same
as the MSB of the Gray code number.
2. The bit next to the MSB (the second MSB) in the binary number is obtained by adding
the MSB in the binary number to the second MSB in the Gray code number and
disregarding the carry, if any.
3. The third MSB in the binary number is obtained by adding the second MSB in the
binary number to the third MSB in the Gray code number. Again, carry, if any, is to be
ignored.
4. The process continues until we obtain the LSB of the binary number.
The conversion process is further illustrated with the help
of an example showing step-by-step conversion of the
Gray code number 1110 into its binary equivalent:
Gray code 1110
Binary 1- - -
Gray code 1110
Binary 10 - -
Gray code 1110
Binary 101
Gray code 1110
Binary 1011

More Related Content

Similar to 5_2019_01_03!03_33_00_PM.pptx (20)

Number system
Number systemNumber system
Number system
kasthurimukila
Ìý
BCD to binary code converter
BCD to binary code converterBCD to binary code converter
BCD to binary code converter
kiruthikamaniG1
Ìý
CHAPTERs_1_NUMBER_SYSTEMS_AND_CODES.pptx
CHAPTERs_1_NUMBER_SYSTEMS_AND_CODES.pptxCHAPTERs_1_NUMBER_SYSTEMS_AND_CODES.pptx
CHAPTERs_1_NUMBER_SYSTEMS_AND_CODES.pptx
Harshal Vaidya
Ìý
Unit 1 data representation and computer arithmetic
Unit 1  data representation and computer arithmeticUnit 1  data representation and computer arithmetic
Unit 1 data representation and computer arithmetic
AmrutaMehata
Ìý
Code conversion r006
Code conversion r006Code conversion r006
Code conversion r006
arunachalamr16
Ìý
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number system
AswiniT3
Ìý
Digital Logic-Lecture19.pptx
Digital Logic-Lecture19.pptxDigital Logic-Lecture19.pptx
Digital Logic-Lecture19.pptx
ASVKVinayak
Ìý
DLD_PPT_0.pptx
DLD_PPT_0.pptxDLD_PPT_0.pptx
DLD_PPT_0.pptx
ECENAAC2
Ìý
Number codes students
Number codes studentsNumber codes students
Number codes students
School of Design Engineering Fashion & Technology (DEFT), University of Wales, Newport
Ìý
Unit-1 (DLD) Lecture 2.pptx
Unit-1 (DLD) Lecture 2.pptxUnit-1 (DLD) Lecture 2.pptx
Unit-1 (DLD) Lecture 2.pptx
BunnyYadav7
Ìý
micro processor and its architecture unit1.pptx
micro processor and its architecture unit1.pptxmicro processor and its architecture unit1.pptx
micro processor and its architecture unit1.pptx
AjayKumar626901
Ìý
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2
ISMT College
Ìý
Code Converters & Parity Checker
Code Converters & Parity CheckerCode Converters & Parity Checker
Code Converters & Parity Checker
.AIR UNIVERSITY ISLAMABAD
Ìý
W3 Chapter 2B Notes CCB1223 Digital Logic.pdf
W3 Chapter 2B Notes CCB1223 Digital Logic.pdfW3 Chapter 2B Notes CCB1223 Digital Logic.pdf
W3 Chapter 2B Notes CCB1223 Digital Logic.pdf
MOHDZAMRIBINIBRAHIM1
Ìý
numbering system binary and decimal hex octal
numbering system binary and decimal hex octalnumbering system binary and decimal hex octal
numbering system binary and decimal hex octal
noor300491
Ìý
Lecture 5 binary_codes
Lecture 5 binary_codesLecture 5 binary_codes
Lecture 5 binary_codes
Kamran Zafar
Ìý
Digital electronics
Digital electronicsDigital electronics
Digital electronics
Sukriti Dhang
Ìý
Number codes
Number codesNumber codes
Number codes
School of Design Engineering Fashion & Technology (DEFT), University of Wales, Newport
Ìý
Binary coded decimal r004
Binary coded decimal   r004Binary coded decimal   r004
Binary coded decimal r004
arunachalamr16
Ìý
IARE_DLD_PPT_0.pdf
IARE_DLD_PPT_0.pdfIARE_DLD_PPT_0.pdf
IARE_DLD_PPT_0.pdf
nirbhay singh
Ìý
BCD to binary code converter
BCD to binary code converterBCD to binary code converter
BCD to binary code converter
kiruthikamaniG1
Ìý
CHAPTERs_1_NUMBER_SYSTEMS_AND_CODES.pptx
CHAPTERs_1_NUMBER_SYSTEMS_AND_CODES.pptxCHAPTERs_1_NUMBER_SYSTEMS_AND_CODES.pptx
CHAPTERs_1_NUMBER_SYSTEMS_AND_CODES.pptx
Harshal Vaidya
Ìý
Unit 1 data representation and computer arithmetic
Unit 1  data representation and computer arithmeticUnit 1  data representation and computer arithmetic
Unit 1 data representation and computer arithmetic
AmrutaMehata
Ìý
Code conversion r006
Code conversion r006Code conversion r006
Code conversion r006
arunachalamr16
Ìý
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number system
AswiniT3
Ìý
Digital Logic-Lecture19.pptx
Digital Logic-Lecture19.pptxDigital Logic-Lecture19.pptx
Digital Logic-Lecture19.pptx
ASVKVinayak
Ìý
DLD_PPT_0.pptx
DLD_PPT_0.pptxDLD_PPT_0.pptx
DLD_PPT_0.pptx
ECENAAC2
Ìý
Unit-1 (DLD) Lecture 2.pptx
Unit-1 (DLD) Lecture 2.pptxUnit-1 (DLD) Lecture 2.pptx
Unit-1 (DLD) Lecture 2.pptx
BunnyYadav7
Ìý
micro processor and its architecture unit1.pptx
micro processor and its architecture unit1.pptxmicro processor and its architecture unit1.pptx
micro processor and its architecture unit1.pptx
AjayKumar626901
Ìý
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2
ISMT College
Ìý
W3 Chapter 2B Notes CCB1223 Digital Logic.pdf
W3 Chapter 2B Notes CCB1223 Digital Logic.pdfW3 Chapter 2B Notes CCB1223 Digital Logic.pdf
W3 Chapter 2B Notes CCB1223 Digital Logic.pdf
MOHDZAMRIBINIBRAHIM1
Ìý
numbering system binary and decimal hex octal
numbering system binary and decimal hex octalnumbering system binary and decimal hex octal
numbering system binary and decimal hex octal
noor300491
Ìý
Lecture 5 binary_codes
Lecture 5 binary_codesLecture 5 binary_codes
Lecture 5 binary_codes
Kamran Zafar
Ìý
Digital electronics
Digital electronicsDigital electronics
Digital electronics
Sukriti Dhang
Ìý
Binary coded decimal r004
Binary coded decimal   r004Binary coded decimal   r004
Binary coded decimal r004
arunachalamr16
Ìý
IARE_DLD_PPT_0.pdf
IARE_DLD_PPT_0.pdfIARE_DLD_PPT_0.pdf
IARE_DLD_PPT_0.pdf
nirbhay singh
Ìý

More from AbijahRoseline1 (7)

lecture13-NN-basics.pptx
lecture13-NN-basics.pptxlecture13-NN-basics.pptx
lecture13-NN-basics.pptx
AbijahRoseline1
Ìý
flowchart.pptx
flowchart.pptxflowchart.pptx
flowchart.pptx
AbijahRoseline1
Ìý
aco-3a.ppt
aco-3a.pptaco-3a.ppt
aco-3a.ppt
AbijahRoseline1
Ìý
Sample Literature survey in PPT.pptx
Sample Literature survey in PPT.pptxSample Literature survey in PPT.pptx
Sample Literature survey in PPT.pptx
AbijahRoseline1
Ìý
ssie_ibic_lecture21_slides.pdf
ssie_ibic_lecture21_slides.pdfssie_ibic_lecture21_slides.pdf
ssie_ibic_lecture21_slides.pdf
AbijahRoseline1
Ìý
IM_AssignmentReport_sample.docx
IM_AssignmentReport_sample.docxIM_AssignmentReport_sample.docx
IM_AssignmentReport_sample.docx
AbijahRoseline1
Ìý
Unit_1.ppt.pptx
Unit_1.ppt.pptxUnit_1.ppt.pptx
Unit_1.ppt.pptx
AbijahRoseline1
Ìý
lecture13-NN-basics.pptx
lecture13-NN-basics.pptxlecture13-NN-basics.pptx
lecture13-NN-basics.pptx
AbijahRoseline1
Ìý
Sample Literature survey in PPT.pptx
Sample Literature survey in PPT.pptxSample Literature survey in PPT.pptx
Sample Literature survey in PPT.pptx
AbijahRoseline1
Ìý
ssie_ibic_lecture21_slides.pdf
ssie_ibic_lecture21_slides.pdfssie_ibic_lecture21_slides.pdf
ssie_ibic_lecture21_slides.pdf
AbijahRoseline1
Ìý
IM_AssignmentReport_sample.docx
IM_AssignmentReport_sample.docxIM_AssignmentReport_sample.docx
IM_AssignmentReport_sample.docx
AbijahRoseline1
Ìý

Recently uploaded (20)

Material Handling : Scope , Importance, Objectives, Principles, Classificatio...
Material Handling : Scope , Importance, Objectives, Principles, Classificatio...Material Handling : Scope , Importance, Objectives, Principles, Classificatio...
Material Handling : Scope , Importance, Objectives, Principles, Classificatio...
VirajPasare
Ìý
Denmark's Energy Islands in the North and Baltic Seas
Denmark's Energy Islands in the North and Baltic SeasDenmark's Energy Islands in the North and Baltic Seas
Denmark's Energy Islands in the North and Baltic Seas
permagoveu
Ìý
Stack Applications : Infix to postfix conversion, Evaluation of postfix expre...
Stack Applications : Infix to postfix conversion, Evaluation of postfix expre...Stack Applications : Infix to postfix conversion, Evaluation of postfix expre...
Stack Applications : Infix to postfix conversion, Evaluation of postfix expre...
Dr. Madhuri Jawale
Ìý
Unit-I-Water Technology.ppt (Chemistry for Electronics and Compter Systems
Unit-I-Water Technology.ppt (Chemistry for Electronics and Compter SystemsUnit-I-Water Technology.ppt (Chemistry for Electronics and Compter Systems
Unit-I-Water Technology.ppt (Chemistry for Electronics and Compter Systems
KrishnaveniKrishnara1
Ìý
FIRST Tech Challenge: Scouting in Competitive Robotics
FIRST Tech Challenge: Scouting in Competitive RoboticsFIRST Tech Challenge: Scouting in Competitive Robotics
FIRST Tech Challenge: Scouting in Competitive Robotics
FTC Team 23014
Ìý
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx
Guru Nanak Technical Institutions
Ìý
Instill-AI------------------------------
Instill-AI------------------------------Instill-AI------------------------------
Instill-AI------------------------------
Jason Kuan
Ìý
Insertion Sort, Merge Sort. Time complexity of all sorting algorithms and t...
Insertion Sort,  Merge Sort.  Time complexity of all sorting algorithms and t...Insertion Sort,  Merge Sort.  Time complexity of all sorting algorithms and t...
Insertion Sort, Merge Sort. Time complexity of all sorting algorithms and t...
Dr. Madhuri Jawale
Ìý
Introduction to Python programming language
Introduction to Python programming languageIntroduction to Python programming language
Introduction to Python programming language
Dr. A. B. Shinde
Ìý
Electric Motors - DC Motors - Series, Shunt, Compound, Seprately Excited, PMD...
Electric Motors - DC Motors - Series, Shunt, Compound, Seprately Excited, PMD...Electric Motors - DC Motors - Series, Shunt, Compound, Seprately Excited, PMD...
Electric Motors - DC Motors - Series, Shunt, Compound, Seprately Excited, PMD...
VirajPasare
Ìý
Loads and Load Combinations by AASHTO.pptx
Loads and Load Combinations by AASHTO.pptxLoads and Load Combinations by AASHTO.pptx
Loads and Load Combinations by AASHTO.pptx
Hariyali Pujara
Ìý
deepseekanewfrontierinartificialintelligence-250128145016-ac08b484.pdf
deepseekanewfrontierinartificialintelligence-250128145016-ac08b484.pdfdeepseekanewfrontierinartificialintelligence-250128145016-ac08b484.pdf
deepseekanewfrontierinartificialintelligence-250128145016-ac08b484.pdf
21eg106a45
Ìý
PETROLEUM EXPLORATION AND EXPLORATION TECHNIQUES Types of drilling fluids.pptx
PETROLEUM EXPLORATION AND EXPLORATION TECHNIQUES Types of drilling fluids.pptxPETROLEUM EXPLORATION AND EXPLORATION TECHNIQUES Types of drilling fluids.pptx
PETROLEUM EXPLORATION AND EXPLORATION TECHNIQUES Types of drilling fluids.pptx
VijayakumarBooramurt
Ìý
Chemical Engineering Thermodynamics - IDEAL GAS - EOS.pptx
Chemical Engineering Thermodynamics - IDEAL GAS - EOS.pptxChemical Engineering Thermodynamics - IDEAL GAS - EOS.pptx
Chemical Engineering Thermodynamics - IDEAL GAS - EOS.pptx
VijayakumarBooramurt
Ìý
Binomial Heaps and its operations.pdf
Binomial    Heaps and its operations.pdfBinomial    Heaps and its operations.pdf
Binomial Heaps and its operations.pdf
SujataSonawane11
Ìý
artificial intelligence and machine learning
artificial intelligence and machine learningartificial intelligence and machine learning
artificial intelligence and machine learning
sakshigupta44811
Ìý
Computer Aided Software Engineering.ppt SE
Computer Aided Software Engineering.ppt SEComputer Aided Software Engineering.ppt SE
Computer Aided Software Engineering.ppt SE
uthayashangar1
Ìý
Any Video Converter Pro 7.1.7 Crack + Registration Key
Any Video Converter Pro 7.1.7 Crack + Registration KeyAny Video Converter Pro 7.1.7 Crack + Registration Key
Any Video Converter Pro 7.1.7 Crack + Registration Key
ghrom2211g
Ìý
Introduction to Stack, â–ª Stack ADT, â–ª Implementation of Stack using array, ...
Introduction to Stack,  â–ª Stack ADT,  â–ª Implementation of Stack using array, ...Introduction to Stack,  â–ª Stack ADT,  â–ª Implementation of Stack using array, ...
Introduction to Stack, â–ª Stack ADT, â–ª Implementation of Stack using array, ...
Dr. Madhuri Jawale
Ìý
Analysis-And-Design-For-Axial-Compression.pdf
Analysis-And-Design-For-Axial-Compression.pdfAnalysis-And-Design-For-Axial-Compression.pdf
Analysis-And-Design-For-Axial-Compression.pdf
AndreaShannielle
Ìý
Material Handling : Scope , Importance, Objectives, Principles, Classificatio...
Material Handling : Scope , Importance, Objectives, Principles, Classificatio...Material Handling : Scope , Importance, Objectives, Principles, Classificatio...
Material Handling : Scope , Importance, Objectives, Principles, Classificatio...
VirajPasare
Ìý
Denmark's Energy Islands in the North and Baltic Seas
Denmark's Energy Islands in the North and Baltic SeasDenmark's Energy Islands in the North and Baltic Seas
Denmark's Energy Islands in the North and Baltic Seas
permagoveu
Ìý
Stack Applications : Infix to postfix conversion, Evaluation of postfix expre...
Stack Applications : Infix to postfix conversion, Evaluation of postfix expre...Stack Applications : Infix to postfix conversion, Evaluation of postfix expre...
Stack Applications : Infix to postfix conversion, Evaluation of postfix expre...
Dr. Madhuri Jawale
Ìý
Unit-I-Water Technology.ppt (Chemistry for Electronics and Compter Systems
Unit-I-Water Technology.ppt (Chemistry for Electronics and Compter SystemsUnit-I-Water Technology.ppt (Chemistry for Electronics and Compter Systems
Unit-I-Water Technology.ppt (Chemistry for Electronics and Compter Systems
KrishnaveniKrishnara1
Ìý
FIRST Tech Challenge: Scouting in Competitive Robotics
FIRST Tech Challenge: Scouting in Competitive RoboticsFIRST Tech Challenge: Scouting in Competitive Robotics
FIRST Tech Challenge: Scouting in Competitive Robotics
FTC Team 23014
Ìý
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx
Guru Nanak Technical Institutions
Ìý
Instill-AI------------------------------
Instill-AI------------------------------Instill-AI------------------------------
Instill-AI------------------------------
Jason Kuan
Ìý
Insertion Sort, Merge Sort. Time complexity of all sorting algorithms and t...
Insertion Sort,  Merge Sort.  Time complexity of all sorting algorithms and t...Insertion Sort,  Merge Sort.  Time complexity of all sorting algorithms and t...
Insertion Sort, Merge Sort. Time complexity of all sorting algorithms and t...
Dr. Madhuri Jawale
Ìý
Introduction to Python programming language
Introduction to Python programming languageIntroduction to Python programming language
Introduction to Python programming language
Dr. A. B. Shinde
Ìý
Electric Motors - DC Motors - Series, Shunt, Compound, Seprately Excited, PMD...
Electric Motors - DC Motors - Series, Shunt, Compound, Seprately Excited, PMD...Electric Motors - DC Motors - Series, Shunt, Compound, Seprately Excited, PMD...
Electric Motors - DC Motors - Series, Shunt, Compound, Seprately Excited, PMD...
VirajPasare
Ìý
Loads and Load Combinations by AASHTO.pptx
Loads and Load Combinations by AASHTO.pptxLoads and Load Combinations by AASHTO.pptx
Loads and Load Combinations by AASHTO.pptx
Hariyali Pujara
Ìý
deepseekanewfrontierinartificialintelligence-250128145016-ac08b484.pdf
deepseekanewfrontierinartificialintelligence-250128145016-ac08b484.pdfdeepseekanewfrontierinartificialintelligence-250128145016-ac08b484.pdf
deepseekanewfrontierinartificialintelligence-250128145016-ac08b484.pdf
21eg106a45
Ìý
PETROLEUM EXPLORATION AND EXPLORATION TECHNIQUES Types of drilling fluids.pptx
PETROLEUM EXPLORATION AND EXPLORATION TECHNIQUES Types of drilling fluids.pptxPETROLEUM EXPLORATION AND EXPLORATION TECHNIQUES Types of drilling fluids.pptx
PETROLEUM EXPLORATION AND EXPLORATION TECHNIQUES Types of drilling fluids.pptx
VijayakumarBooramurt
Ìý
Chemical Engineering Thermodynamics - IDEAL GAS - EOS.pptx
Chemical Engineering Thermodynamics - IDEAL GAS - EOS.pptxChemical Engineering Thermodynamics - IDEAL GAS - EOS.pptx
Chemical Engineering Thermodynamics - IDEAL GAS - EOS.pptx
VijayakumarBooramurt
Ìý
Binomial Heaps and its operations.pdf
Binomial    Heaps and its operations.pdfBinomial    Heaps and its operations.pdf
Binomial Heaps and its operations.pdf
SujataSonawane11
Ìý
artificial intelligence and machine learning
artificial intelligence and machine learningartificial intelligence and machine learning
artificial intelligence and machine learning
sakshigupta44811
Ìý
Computer Aided Software Engineering.ppt SE
Computer Aided Software Engineering.ppt SEComputer Aided Software Engineering.ppt SE
Computer Aided Software Engineering.ppt SE
uthayashangar1
Ìý
Any Video Converter Pro 7.1.7 Crack + Registration Key
Any Video Converter Pro 7.1.7 Crack + Registration KeyAny Video Converter Pro 7.1.7 Crack + Registration Key
Any Video Converter Pro 7.1.7 Crack + Registration Key
ghrom2211g
Ìý
Introduction to Stack, â–ª Stack ADT, â–ª Implementation of Stack using array, ...
Introduction to Stack,  â–ª Stack ADT,  â–ª Implementation of Stack using array, ...Introduction to Stack,  â–ª Stack ADT,  â–ª Implementation of Stack using array, ...
Introduction to Stack, â–ª Stack ADT, â–ª Implementation of Stack using array, ...
Dr. Madhuri Jawale
Ìý
Analysis-And-Design-For-Axial-Compression.pdf
Analysis-And-Design-For-Axial-Compression.pdfAnalysis-And-Design-For-Axial-Compression.pdf
Analysis-And-Design-For-Axial-Compression.pdf
AndreaShannielle
Ìý

5_2019_01_03!03_33_00_PM.pptx

  • 1. 1 College of Engineering, Electrical Engineering Department Binary Coded By: Asst Lec. Besma Nazar Nadhem Class : Second Year Subject : Digital Techniques Master of Science in Electrical Engineering (Electronic and Communication)
  • 2. Binary Coded Decimal ï‚— (BCD) is a type of binary code used to represent a given decimal number in an equivalent binary form. ï‚— The BCD equivalent of a decimal number is written by replacing each decimal digit in the integer and fractional parts with its four-bit binary equivalent. ï‚— The BCD code described above is more precisely known as the 8421 BCD code . ï‚— As an example, the BCD equivalent of (23.15)10 is written as (0010 0011.0001 0101)BCD ï‚— A given BCD number can be converted into an equivalent binary number by first writing its decimal equivalent and then converting it into its binary equivalent
  • 3. Example: find the binary equivalent of the BCD number 0010 1001.0111 0101 Solution : .BCD number: 0010 1001.0111 0101. • Corresponding decimal number: 29.75. • The binary equivalent of 29.75 can be determined to be 11101 for the integer part and .11 for the fractional part. • Therefore, (0010 1001.0111 0101)BCD =(11101.11)2. code is the most popular of all the BCD codes, it is simply referred to as the BCD code. ï‚— The process of binary-to-BCD conversion is the same as the process of BCD-to-binary conversion executed in reverse order. A given binary number can be converted into an equivalent BCD number by first determining its decimal equivalent and then writing the corresponding BCD equivalent.
  • 4. Example: find the BCD equivalent of the binary number 10101011.101: Solution : • The decimal equivalent of this binary number can be determined to be 171.625. • The BCD equivalent can then be written as 0001 0111 0001.0110 0010 0101. Other Decimal Codes Other weighted BCD codes include the 4221 BCD and 5421 BCD codes. Again, 4, 2, 2 and 1 in the 4221 BCD code and 5, 4, 2 and 1 in the 5421 BCD code represent weights of the relevant bits. Table 2.1 shows a comparison of 8421, 4221 and 5421 BCD codes. As an example, (98.16)10 will be written as 1111 1110.0001 1100 in 4221 BCD code and 1100 1011.0001 1001 in 5421 BCD code. Since the 8421
  • 6. Excess-3 Code The excess-3 code is another important BCD code. The excess- 3 code for a given decimal number is determined by adding ‘3’ to each decimal digit in the given number and then replacing each digit of the newly found decimal number by its four-bit binary equivalent. Example: find the excess-3 code for the decimal number 597 Solution: The addition of ‘3’ to each digit yields the three new digits/numbers ‘8’, ‘12’ and ‘10’. • The corresponding four-bit binary equivalents are 1000, 1100 and 1010 respectively. • The excess-3 code for 597 is therefore given by: 1000 1100 1010=100011001010.
  • 8. Gray Code • It is an unweighted binary code in which two successive values differ only by 1 bit. Owing to this feature, the maximum error that can creep into a system using the binary Gray code to encode data is much less than the worst-case error encountered in the case of straight binary encoding. • Binary–Gray Code Conversion 1. Begin with the most significant bit (MSB) of the binary number. The MSB of the Gray code equivalent is the same as the MSB of the given binary number. 2. The second most significant bit, adjacent to the MSB, in the Gray code number is obtained by adding the MSB and the second MSB of the binary number and ignoring the carry, if any. That is, if the MSB and the bit adjacent to it are both ‘1’, then the corresponding Gray code bit would be a ‘0’. 3. The third most significant bit, adjacent to the second MSB, in the Gray code number is obtained by adding the second MSB and the third MSB in the binary number and ignoring the carry, if any. 4. The process continues until we obtain the LSB of the Gray code number by the addition of the LSB and the next higher adjacent bit of the binary number.
  • 9. The conversion process is further illustrated with the help of an example showing step-by-step conversion of (1011)2 into its Gray code equivalent: Binary 1011 Gray code 1- - - Binary 1011 Gray code 11- - Binary 1011 Gray code 111- Binary 1011 Gray code 1110
  • 10. • Gray Code–Binary Conversion A given Gray code number can be converted into its binary equivalent by going through the following steps: 1. Begin with the most significant bit (MSB). The MSB of the binary number is the same as the MSB of the Gray code number. 2. The bit next to the MSB (the second MSB) in the binary number is obtained by adding the MSB in the binary number to the second MSB in the Gray code number and disregarding the carry, if any. 3. The third MSB in the binary number is obtained by adding the second MSB in the binary number to the third MSB in the Gray code number. Again, carry, if any, is to be ignored. 4. The process continues until we obtain the LSB of the binary number.
  • 11. The conversion process is further illustrated with the help of an example showing step-by-step conversion of the Gray code number 1110 into its binary equivalent: Gray code 1110 Binary 1- - - Gray code 1110 Binary 10 - - Gray code 1110 Binary 101 Gray code 1110 Binary 1011