SlideShare uma empresa Scribd logo
1 de 15
BCD to EXCESS 3 Code Converter 
By 
Ushaswini chowdary.M
Introduction 
• The availability of large variety of codes for the same discrete 
elements of information results in the use of different codes by 
the different systems. 
• A conversion circuit must be inserted between the two systems 
if each use different codes for the same information. 
• Thus a code converter is a circuit that makes the two systems 
compatible even though both uses different binary 
information.
• Code converters, more specifically encoders and decoders, 
have been used to protect private information. 
• Indeed, code converters have proven to be so effective that the 
National Security Agency (NSA) has made a career out of 
creating and breaking codes. 
• To convert from binary to excess 3 code the input lines must 
supply the bit combination of elements as specified by the 
code.
Binary Coded Decimal 
• The term BCD refers to representing the ten decimal digits in 
binary forms; which simply means to count in binary. 
• In computing and electronic systems, binary coded decimal is 
a class of binary encodings of decimal numbers where each 
decimal digit is represented by a fixed number of bits , usually 
four or eight, although other sizes (such as six bits) have been 
used historically. Special bit patterns are sometimes used for 
a sign or for other indications (e.g., error or overflow).
• BCD takes advantage of the fact that any one decimal numeral 
can be represented by a four bit pattern. This is also called 
"8421" encoding. 
Decimal 
Digit 
BCD 
8 4 2 1 
0 0 0 0 0 
1 0 0 0 1 
2 0 0 1 0 
3 0 0 1 1 
4 0 1 0 0 
5 0 1 0 1 
6 0 1 1 0 
7 0 1 1 1 
8 1 0 0 0 
9 1 0 0 1
Excess 3 
• It is a non weighted code. 
• In XS-3, numbers are represented as decimal digits, and each 
digit is represented by four bits as the digit value plus 3 (the 
"excess" amount). 
• The primary advantage of XS-3 coding over non-biased 
coding is that a decimal number can be nines' complemented 
as easily as a binary number can be ones' complemented . In 
addition, when the sum of two XS-3 digits is greater than 9, 
the carry bit of a four bit adder will be set high.
• The Excess-3 BCD system is formed by adding 0011 to each 
BCD value as in Table 2. For example, the decimal number 7, 
which is coded as 0111 in BCD, is coded as 0111+0011=1010 
in Excess-3 BCD. 
Decimal Numerals Excess-3 
0 0011 
1 0100 
2 0101 
3 0110 
4 0111 
5 1000 
6 1001 
7 1010 
8 1011 
9 1100
THE BCD TO EXCESS 3 CODE CONVERTER 
• BCD Excess-3 circuit will convert numbers from their binary 
representation to their excess-3 representation. Hence our truth 
table is as below: 
B3 B2 B1 B0 E3 E2 E1 E0 
0 0 0 0 0 0 1 1 
0 0 0 1 0 1 0 0 
0 0 1 0 0 1 0 1 
0 0 1 1 0 1 1 0 
0 1 0 0 0 1 1 1 
0 1 0 1 1 0 0 0 
0 1 1 0 1 0 0 1 
0 1 1 1 1 0 1 0 
1 0 0 0 1 0 1 1 
1 0 0 1 1 1 0 0
K maps 
• Our task now is to use the truth table to find four switching 
expressions: one for E3, one for E2, one for E1, and one for E0. 
We have two choices: we can use Boolean algebraic 
manipulations, or we can use Karnaugh maps. 
• We use k maps for simplicity. Here don’t cares are available 
because in the truth table in Table 3, no BCD valuations exist 
for E3E2E1E0 = 1010,1011,1100,1101,1110,1111. As such, we 
evaluate B3B2B1B0= xxxx (either 0 or 1).
E3=B3+B2(B1+B0)
E2=B2^(B1+B0)
E1=(B1^B0)’
E0=B0’
Block diagram
Applications 
• Excess-3 was used on some older computers 
• Cash registers 
• Hand held portable electronic calculators

Mais conteúdo relacionado

Mais procurados

Decoders
DecodersDecoders
DecodersRe Man
 
BCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesBCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesstudent
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitRamasubbu .P
 
Weighted and Non Weighted Codes
Weighted and Non Weighted CodesWeighted and Non Weighted Codes
Weighted and Non Weighted CodesSubhamSatpathy2
 
3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )MdFazleRabbi18
 
Multiplexers and Demultiplexers
Multiplexers and DemultiplexersMultiplexers and Demultiplexers
Multiplexers and DemultiplexersGargiKhanna1
 
Full custom digital ic design of priority encoder
Full custom digital ic design of priority encoderFull custom digital ic design of priority encoder
Full custom digital ic design of priority encoderVishesh Thakur
 
Difference between combinational and
Difference between combinational andDifference between combinational and
Difference between combinational andDamodar Panigrahy
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsVinoth Loganathan
 
module1:Introduction to digital electronics
module1:Introduction to digital electronicsmodule1:Introduction to digital electronics
module1:Introduction to digital electronicschandrakant shinde
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decodersGaditek
 
The BCD to excess-3 converter
The BCD to excess-3 converterThe BCD to excess-3 converter
The BCD to excess-3 converterMahady Hasan
 

Mais procurados (20)

Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
Encoder
EncoderEncoder
Encoder
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Decoders
DecodersDecoders
Decoders
 
BCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesBCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codes
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Multiplexers
MultiplexersMultiplexers
Multiplexers
 
K - Map
  K - Map    K - Map
K - Map
 
Weighted and Non Weighted Codes
Weighted and Non Weighted CodesWeighted and Non Weighted Codes
Weighted and Non Weighted Codes
 
3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
Multiplexers and Demultiplexers
Multiplexers and DemultiplexersMultiplexers and Demultiplexers
Multiplexers and Demultiplexers
 
Full custom digital ic design of priority encoder
Full custom digital ic design of priority encoderFull custom digital ic design of priority encoder
Full custom digital ic design of priority encoder
 
Logic families
Logic familiesLogic families
Logic families
 
Difference between combinational and
Difference between combinational andDifference between combinational and
Difference between combinational and
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital Electronics
 
08 decoder
08 decoder08 decoder
08 decoder
 
module1:Introduction to digital electronics
module1:Introduction to digital electronicsmodule1:Introduction to digital electronics
module1:Introduction to digital electronics
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
The BCD to excess-3 converter
The BCD to excess-3 converterThe BCD to excess-3 converter
The BCD to excess-3 converter
 

Semelhante a Bcd to excess 3 code converter

Lecture_Computer_Codes.ppt
Lecture_Computer_Codes.pptLecture_Computer_Codes.ppt
Lecture_Computer_Codes.pptMarlonMagtibay2
 
review of number systems and codes
review of number systems and codesreview of number systems and codes
review of number systems and codessrinu247
 
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.2ISMT College
 
9pL7F2E8XI0alXYT280.pptx
9pL7F2E8XI0alXYT280.pptx9pL7F2E8XI0alXYT280.pptx
9pL7F2E8XI0alXYT280.pptxAnSHiKa187943
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptxLibanMohamed26
 
Dr.naveen electronics binary codes
Dr.naveen electronics binary codesDr.naveen electronics binary codes
Dr.naveen electronics binary codesNAVEEN KUMAR
 
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic CircuitsFYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic CircuitsArti Parab Academics
 
Lecture 5 binary_codes
Lecture 5 binary_codesLecture 5 binary_codes
Lecture 5 binary_codesKamran Zafar
 

Semelhante a Bcd to excess 3 code converter (20)

Bcd with access 3
Bcd with access 3Bcd with access 3
Bcd with access 3
 
Lecture_Computer_Codes.ppt
Lecture_Computer_Codes.pptLecture_Computer_Codes.ppt
Lecture_Computer_Codes.ppt
 
Codes r005
Codes  r005Codes  r005
Codes r005
 
review of number systems and codes
review of number systems and codesreview of number systems and codes
review of number systems and codes
 
Code Converters & Parity Checker
Code Converters & Parity CheckerCode Converters & Parity Checker
Code Converters & Parity Checker
 
BCDCONVERTER.pptx
BCDCONVERTER.pptxBCDCONVERTER.pptx
BCDCONVERTER.pptx
 
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
 
1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM1.1.1 BINARY SYSTEM
1.1.1 BINARY SYSTEM
 
Bcd
BcdBcd
Bcd
 
Code conversion r006
Code conversion r006Code conversion r006
Code conversion r006
 
9pL7F2E8XI0alXYT280.pptx
9pL7F2E8XI0alXYT280.pptx9pL7F2E8XI0alXYT280.pptx
9pL7F2E8XI0alXYT280.pptx
 
Number system
Number systemNumber system
Number system
 
Binary and EC codes
Binary and EC codesBinary and EC codes
Binary and EC codes
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx
 
Dr.naveen electronics binary codes
Dr.naveen electronics binary codesDr.naveen electronics binary codes
Dr.naveen electronics binary codes
 
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic CircuitsFYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
FYBSC IT Digital Electronics Unit III Chapter I Combinational Logic Circuits
 
6.number system
6.number system6.number system
6.number system
 
Lecture 5 binary_codes
Lecture 5 binary_codesLecture 5 binary_codes
Lecture 5 binary_codes
 
Computer-codes.pptx
Computer-codes.pptxComputer-codes.pptx
Computer-codes.pptx
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 

Mais de Ushaswini Chowdary

Nano tube based sensors for Capnography
Nano tube based sensors for CapnographyNano tube based sensors for Capnography
Nano tube based sensors for CapnographyUshaswini Chowdary
 
Design of cmos based ring oscillator
Design of cmos based ring oscillatorDesign of cmos based ring oscillator
Design of cmos based ring oscillatorUshaswini Chowdary
 
Analysis and design of a low voltage and low power double tail comparator
Analysis and design of a low voltage and low power double tail comparatorAnalysis and design of a low voltage and low power double tail comparator
Analysis and design of a low voltage and low power double tail comparatorUshaswini Chowdary
 
Design of optimum self cascode low voltage current mirror
Design of optimum self cascode low voltage current mirrorDesign of optimum self cascode low voltage current mirror
Design of optimum self cascode low voltage current mirrorUshaswini Chowdary
 
Pir sensor based security alarm system using um 3561 (2)
Pir sensor based security alarm system using um 3561 (2)Pir sensor based security alarm system using um 3561 (2)
Pir sensor based security alarm system using um 3561 (2)Ushaswini Chowdary
 

Mais de Ushaswini Chowdary (6)

Nano tube based sensors for Capnography
Nano tube based sensors for CapnographyNano tube based sensors for Capnography
Nano tube based sensors for Capnography
 
Applications of ATPG
Applications of ATPGApplications of ATPG
Applications of ATPG
 
Design of cmos based ring oscillator
Design of cmos based ring oscillatorDesign of cmos based ring oscillator
Design of cmos based ring oscillator
 
Analysis and design of a low voltage and low power double tail comparator
Analysis and design of a low voltage and low power double tail comparatorAnalysis and design of a low voltage and low power double tail comparator
Analysis and design of a low voltage and low power double tail comparator
 
Design of optimum self cascode low voltage current mirror
Design of optimum self cascode low voltage current mirrorDesign of optimum self cascode low voltage current mirror
Design of optimum self cascode low voltage current mirror
 
Pir sensor based security alarm system using um 3561 (2)
Pir sensor based security alarm system using um 3561 (2)Pir sensor based security alarm system using um 3561 (2)
Pir sensor based security alarm system using um 3561 (2)
 

Último

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Último (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Bcd to excess 3 code converter

  • 1. BCD to EXCESS 3 Code Converter By Ushaswini chowdary.M
  • 2. Introduction • The availability of large variety of codes for the same discrete elements of information results in the use of different codes by the different systems. • A conversion circuit must be inserted between the two systems if each use different codes for the same information. • Thus a code converter is a circuit that makes the two systems compatible even though both uses different binary information.
  • 3. • Code converters, more specifically encoders and decoders, have been used to protect private information. • Indeed, code converters have proven to be so effective that the National Security Agency (NSA) has made a career out of creating and breaking codes. • To convert from binary to excess 3 code the input lines must supply the bit combination of elements as specified by the code.
  • 4. Binary Coded Decimal • The term BCD refers to representing the ten decimal digits in binary forms; which simply means to count in binary. • In computing and electronic systems, binary coded decimal is a class of binary encodings of decimal numbers where each decimal digit is represented by a fixed number of bits , usually four or eight, although other sizes (such as six bits) have been used historically. Special bit patterns are sometimes used for a sign or for other indications (e.g., error or overflow).
  • 5. • BCD takes advantage of the fact that any one decimal numeral can be represented by a four bit pattern. This is also called "8421" encoding. Decimal Digit BCD 8 4 2 1 0 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1
  • 6. Excess 3 • It is a non weighted code. • In XS-3, numbers are represented as decimal digits, and each digit is represented by four bits as the digit value plus 3 (the "excess" amount). • The primary advantage of XS-3 coding over non-biased coding is that a decimal number can be nines' complemented as easily as a binary number can be ones' complemented . In addition, when the sum of two XS-3 digits is greater than 9, the carry bit of a four bit adder will be set high.
  • 7. • The Excess-3 BCD system is formed by adding 0011 to each BCD value as in Table 2. For example, the decimal number 7, which is coded as 0111 in BCD, is coded as 0111+0011=1010 in Excess-3 BCD. Decimal Numerals Excess-3 0 0011 1 0100 2 0101 3 0110 4 0111 5 1000 6 1001 7 1010 8 1011 9 1100
  • 8. THE BCD TO EXCESS 3 CODE CONVERTER • BCD Excess-3 circuit will convert numbers from their binary representation to their excess-3 representation. Hence our truth table is as below: B3 B2 B1 B0 E3 E2 E1 E0 0 0 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 0 0 1 1 1 0 1 0 1 1 0 0 0 0 1 1 0 1 0 0 1 0 1 1 1 1 0 1 0 1 0 0 0 1 0 1 1 1 0 0 1 1 1 0 0
  • 9. K maps • Our task now is to use the truth table to find four switching expressions: one for E3, one for E2, one for E1, and one for E0. We have two choices: we can use Boolean algebraic manipulations, or we can use Karnaugh maps. • We use k maps for simplicity. Here don’t cares are available because in the truth table in Table 3, no BCD valuations exist for E3E2E1E0 = 1010,1011,1100,1101,1110,1111. As such, we evaluate B3B2B1B0= xxxx (either 0 or 1).
  • 15. Applications • Excess-3 was used on some older computers • Cash registers • Hand held portable electronic calculators