SlideShare a Scribd company logo
1 of 9
MICROPROCESSOR AND
INTERFACING
SUBJECT CODE: 2150707
Presented By:
Prof. Kumar Anand Singh
Deptt. Of ECE
MEFGI
Hexadecimal Addition
Decimal basic concepts:
• Decimal is base 10.
• There are 10 digits in counting (0, 1, 2, 3, 4, 5, 6, 7,
8, 9)
• When you reach 10, you carry a “1” over to the next
column
• The number after 9 is 10
Hexadecimal basic concepts:
• Hexadecimal is base 16.
• There are 16 digits in counting (0, 1, 2, 3, 4, 5, 6,
7, 8, 9, A, B, C, D, E, F)
• When you reach 16, you carry a “1” over to the
next column
• The number after F (decimal 15) is 10 in hex (or
16 in decimal)
Use the following steps to perform hexadecimal
addition:
1. Add one column at a time.
2. Convert to decimal and add the numbers.
3. If the result of step two is 16 or larger subtract the result
from 16 and carry 1 to the next column.
4. If the result of step two is less than 16, convert the
number to hexadecimal.
Example: (Use the color code in each step to see
what’s happening)
The problem:
You are to add these numbers:
A C 5 A 9
E D 6 9 4
Carry Over:
1. Add one column at a time
2. Convert to decimal & add (9 + 4 = 13)
3. Follow less than 16 rule
Decimal 13 is hexadecimal D
A C 5 A 9
E D 6 9 4
D
Carry Over: 1
1. Add next column
2. Convert to decimal & add (10 + 9 = 19)
3. Follow 16 or larger than 16 rule
(19 – 16 = 3 carry a 1)
A C 5 A 9
E D 6 9 4
3 D
Carry Over: 1
1. Add next column
2. Convert to decimal & add (1 + 5 + 6 = 12)
3. Follow less than 16 rule, convert to hex
Decimal 12 is hexadecimal C
A C 5 A 9
E D 6 9 4
C 3 D
Carry Over: 1
1. Add next column
2. Convert to decimal & add (12 + 13 = 25)
3. Follow 16 or larger than 16 rule
(25 – 16 = 9 carry a 1)
A C 5 A 9
E D 6 9 4
9 C 3 D
Carry Over: 1
1. Add next column
2. Convert and add (1 + 10 + 11 = 22)
3. Follow 16 or larger than 16 rule
(22 – 16 = 6 carry a 1)
A C 5 A 9
B D 6 9 4
6 9 C 3 D
Carry Over: 1
1. Add next column
2. Convert and add (1 + 0 + 0 = 1)
3. Follow less than 16 rule
0 A C 5 A 9
0 B D 6 9 4
1 6 9 C 3 D
F C B D 9
B A 5 0 4
Practice 1 C 3 A F
3 B 6 D F
1 A 0 8 A
D B C F 4
C C 9 A 9
F D 6 9 9
Thank You

More Related Content

What's hot

Hexadecimal (Calculations and Explanations)
Hexadecimal (Calculations and Explanations)Hexadecimal (Calculations and Explanations)
Hexadecimal (Calculations and Explanations)Project Student
 
Binary Arithmetic Presentation about Binary Numbers 2015
Binary Arithmetic Presentation about Binary Numbers 2015Binary Arithmetic Presentation about Binary Numbers 2015
Binary Arithmetic Presentation about Binary Numbers 2015An Ariyan
 
Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptxAminaZahid16
 
358 33 powerpoint-slides_10-trees_chapter-10
358 33 powerpoint-slides_10-trees_chapter-10358 33 powerpoint-slides_10-trees_chapter-10
358 33 powerpoint-slides_10-trees_chapter-10sumitbardhan
 
358 33 powerpoint-slides_13-graphs_chapter-13
358 33 powerpoint-slides_13-graphs_chapter-13358 33 powerpoint-slides_13-graphs_chapter-13
358 33 powerpoint-slides_13-graphs_chapter-13sumitbardhan
 
Stacks Implementation and Examples
Stacks Implementation and ExamplesStacks Implementation and Examples
Stacks Implementation and Examplesgreatqadirgee4u
 
Binary number system
Binary number systemBinary number system
Binary number systemNadeem Uddin
 
09 binary number systems
09   binary number systems09   binary number systems
09 binary number systemsLee Chadwick
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
Infix prefix postfix expression -conversion
Infix  prefix postfix expression -conversionInfix  prefix postfix expression -conversion
Infix prefix postfix expression -conversionSyed Mustafa
 
11 octal number system
11   octal number system11   octal number system
11 octal number systemLee Chadwick
 
What is bcd number system
What is bcd number systemWhat is bcd number system
What is bcd number systemMuhammad Shahid
 
Binary Conversion
Binary ConversionBinary Conversion
Binary ConversionRey Belen
 
01 c++ Intro.ppt
01 c++ Intro.ppt01 c++ Intro.ppt
01 c++ Intro.pptTareq Hasan
 
DBMS Assignments Questions
DBMS Assignments QuestionsDBMS Assignments Questions
DBMS Assignments QuestionsSara Sahu
 
Prefix, Infix and Post-fix Notations
Prefix, Infix and Post-fix NotationsPrefix, Infix and Post-fix Notations
Prefix, Infix and Post-fix NotationsAfaq Mansoor Khan
 
1.1 binary tree
1.1 binary tree1.1 binary tree
1.1 binary treeKrish_ver2
 

What's hot (20)

Hexadecimal (Calculations and Explanations)
Hexadecimal (Calculations and Explanations)Hexadecimal (Calculations and Explanations)
Hexadecimal (Calculations and Explanations)
 
Binary Arithmetic Presentation about Binary Numbers 2015
Binary Arithmetic Presentation about Binary Numbers 2015Binary Arithmetic Presentation about Binary Numbers 2015
Binary Arithmetic Presentation about Binary Numbers 2015
 
Digital Logic Design.pptx
Digital Logic Design.pptxDigital Logic Design.pptx
Digital Logic Design.pptx
 
358 33 powerpoint-slides_10-trees_chapter-10
358 33 powerpoint-slides_10-trees_chapter-10358 33 powerpoint-slides_10-trees_chapter-10
358 33 powerpoint-slides_10-trees_chapter-10
 
358 33 powerpoint-slides_13-graphs_chapter-13
358 33 powerpoint-slides_13-graphs_chapter-13358 33 powerpoint-slides_13-graphs_chapter-13
358 33 powerpoint-slides_13-graphs_chapter-13
 
Stacks Implementation and Examples
Stacks Implementation and ExamplesStacks Implementation and Examples
Stacks Implementation and Examples
 
Binary number system
Binary number systemBinary number system
Binary number system
 
Bcd
BcdBcd
Bcd
 
09 binary number systems
09   binary number systems09   binary number systems
09 binary number systems
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Infix prefix postfix expression -conversion
Infix  prefix postfix expression -conversionInfix  prefix postfix expression -conversion
Infix prefix postfix expression -conversion
 
11 octal number system
11   octal number system11   octal number system
11 octal number system
 
What is bcd number system
What is bcd number systemWhat is bcd number system
What is bcd number system
 
Binary Conversion
Binary ConversionBinary Conversion
Binary Conversion
 
01 c++ Intro.ppt
01 c++ Intro.ppt01 c++ Intro.ppt
01 c++ Intro.ppt
 
DBMS Assignments Questions
DBMS Assignments QuestionsDBMS Assignments Questions
DBMS Assignments Questions
 
Arithmetic Expression
Arithmetic ExpressionArithmetic Expression
Arithmetic Expression
 
Prefix, Infix and Post-fix Notations
Prefix, Infix and Post-fix NotationsPrefix, Infix and Post-fix Notations
Prefix, Infix and Post-fix Notations
 
Representation of Negative Numbers
Representation of Negative NumbersRepresentation of Negative Numbers
Representation of Negative Numbers
 
1.1 binary tree
1.1 binary tree1.1 binary tree
1.1 binary tree
 

Viewers also liked

10 hexadecimal number system
10   hexadecimal number system10   hexadecimal number system
10 hexadecimal number systemLee Chadwick
 
Hexadecimal
HexadecimalHexadecimal
Hexadecimalwardjo
 
hexadecimal notes By ZAK
hexadecimal notes By ZAKhexadecimal notes By ZAK
hexadecimal notes By ZAKTabsheer Hasan
 
Ch2 properties of the task environment
Ch2 properties of the task environmentCh2 properties of the task environment
Ch2 properties of the task environmentJulyn Mae Pagmanoja
 
Dewey Decimal Classification System
Dewey Decimal Classification SystemDewey Decimal Classification System
Dewey Decimal Classification SystemCarolyn Argo
 
number system school ppt ninth class
number system school ppt ninth classnumber system school ppt ninth class
number system school ppt ninth classManan Jain
 
Computer number systems
Computer number systemsComputer number systems
Computer number systemsRevi Shahini
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMZaheer Abbasi
 
Number System
Number SystemNumber System
Number Systemitutor
 
Introduction to the Binary Number System
Introduction to the Binary Number SystemIntroduction to the Binary Number System
Introduction to the Binary Number SystemJames Hamilton
 
number system
number systemnumber system
number systemvirly dwe
 
Internal and external business environment
Internal and external business environmentInternal and external business environment
Internal and external business environmentAashish Sahi
 

Viewers also liked (17)

10 hexadecimal number system
10   hexadecimal number system10   hexadecimal number system
10 hexadecimal number system
 
Hexadecimal
HexadecimalHexadecimal
Hexadecimal
 
hexadecimal notes By ZAK
hexadecimal notes By ZAKhexadecimal notes By ZAK
hexadecimal notes By ZAK
 
Numebr system
Numebr systemNumebr system
Numebr system
 
Ch2 properties of the task environment
Ch2 properties of the task environmentCh2 properties of the task environment
Ch2 properties of the task environment
 
Number system
Number systemNumber system
Number system
 
Dewey Decimal Classification System
Dewey Decimal Classification SystemDewey Decimal Classification System
Dewey Decimal Classification System
 
Number system
Number system Number system
Number system
 
number system school ppt ninth class
number system school ppt ninth classnumber system school ppt ninth class
number system school ppt ninth class
 
Computer number systems
Computer number systemsComputer number systems
Computer number systems
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
 
Number System
Number SystemNumber System
Number System
 
Introduction to the Binary Number System
Introduction to the Binary Number SystemIntroduction to the Binary Number System
Introduction to the Binary Number System
 
Number system
Number systemNumber system
Number system
 
number system
number systemnumber system
number system
 
Number System
Number SystemNumber System
Number System
 
Internal and external business environment
Internal and external business environmentInternal and external business environment
Internal and external business environment
 

Similar to Hexadecimal addition

Similar to Hexadecimal addition (20)

Hexadecimal Conversion
Hexadecimal ConversionHexadecimal Conversion
Hexadecimal Conversion
 
number system
number systemnumber system
number system
 
Number system
Number systemNumber system
Number system
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
Conversion methods
Conversion methodsConversion methods
Conversion methods
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
Chapter 6 base_number
Chapter 6 base_numberChapter 6 base_number
Chapter 6 base_number
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
Number system
Number systemNumber system
Number system
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptx
 
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdfCDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
CDS Fundamentals of digital communication system UNIT 1 AND 2.pdf
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
Number system
Number systemNumber system
Number system
 
Number system with conversions www.eakanchha.com
Number system with conversions www.eakanchha.comNumber system with conversions www.eakanchha.com
Number system with conversions www.eakanchha.com
 
Number system arithmetic
Number system arithmetic Number system arithmetic
Number system arithmetic
 
Chapter 1 standard form
Chapter 1 standard formChapter 1 standard form
Chapter 1 standard form
 
Number Systems - AK.pptx
Number Systems - AK.pptxNumber Systems - AK.pptx
Number Systems - AK.pptx
 
Binary coded decimal r004
Binary coded decimal   r004Binary coded decimal   r004
Binary coded decimal r004
 

Hexadecimal addition

  • 1. MICROPROCESSOR AND INTERFACING SUBJECT CODE: 2150707 Presented By: Prof. Kumar Anand Singh Deptt. Of ECE MEFGI Hexadecimal Addition
  • 2. Decimal basic concepts: • Decimal is base 10. • There are 10 digits in counting (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) • When you reach 10, you carry a “1” over to the next column • The number after 9 is 10
  • 3. Hexadecimal basic concepts: • Hexadecimal is base 16. • There are 16 digits in counting (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F) • When you reach 16, you carry a “1” over to the next column • The number after F (decimal 15) is 10 in hex (or 16 in decimal)
  • 4. Use the following steps to perform hexadecimal addition: 1. Add one column at a time. 2. Convert to decimal and add the numbers. 3. If the result of step two is 16 or larger subtract the result from 16 and carry 1 to the next column. 4. If the result of step two is less than 16, convert the number to hexadecimal.
  • 5. Example: (Use the color code in each step to see what’s happening) The problem: You are to add these numbers: A C 5 A 9 E D 6 9 4 Carry Over: 1. Add one column at a time 2. Convert to decimal & add (9 + 4 = 13) 3. Follow less than 16 rule Decimal 13 is hexadecimal D A C 5 A 9 E D 6 9 4 D
  • 6. Carry Over: 1 1. Add next column 2. Convert to decimal & add (10 + 9 = 19) 3. Follow 16 or larger than 16 rule (19 – 16 = 3 carry a 1) A C 5 A 9 E D 6 9 4 3 D Carry Over: 1 1. Add next column 2. Convert to decimal & add (1 + 5 + 6 = 12) 3. Follow less than 16 rule, convert to hex Decimal 12 is hexadecimal C A C 5 A 9 E D 6 9 4 C 3 D
  • 7. Carry Over: 1 1. Add next column 2. Convert to decimal & add (12 + 13 = 25) 3. Follow 16 or larger than 16 rule (25 – 16 = 9 carry a 1) A C 5 A 9 E D 6 9 4 9 C 3 D Carry Over: 1 1. Add next column 2. Convert and add (1 + 10 + 11 = 22) 3. Follow 16 or larger than 16 rule (22 – 16 = 6 carry a 1) A C 5 A 9 B D 6 9 4 6 9 C 3 D
  • 8. Carry Over: 1 1. Add next column 2. Convert and add (1 + 0 + 0 = 1) 3. Follow less than 16 rule 0 A C 5 A 9 0 B D 6 9 4 1 6 9 C 3 D F C B D 9 B A 5 0 4 Practice 1 C 3 A F 3 B 6 D F 1 A 0 8 A D B C F 4 C C 9 A 9 F D 6 9 9