SlideShare a Scribd company logo
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

Ch6 bandwidth utilisation multiplexing and spreading
Ch6 bandwidth utilisation multiplexing and spreadingCh6 bandwidth utilisation multiplexing and spreading
Ch6 bandwidth utilisation multiplexing and spreading
Alban Landry MOUNGALA
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
Nallapati Anindra
 
Co notes3 sem
Co notes3 semCo notes3 sem
Co notes3 sem
dilshad begum
 
Bcd
BcdBcd
Binary Arithmetic Operations
Binary Arithmetic OperationsBinary Arithmetic Operations
Binary Arithmetic Operations
Digital System Design
 
Number system
Number systemNumber system
Number system
Chauhan Dharmendra
 
Lecture 5
Lecture 5Lecture 5
Binary, Decimal and Hexadecimal
Binary, Decimal and HexadecimalBinary, Decimal and Hexadecimal
Binary, Decimal and Hexadecimal
UthraSowrirajan1
 
10 hexadecimal number system
10   hexadecimal number system10   hexadecimal number system
10 hexadecimal number system
Lee Chadwick
 
Module 4 registers and counters
Module 4 registers and counters Module 4 registers and counters
Module 4 registers and counters
Deepak John
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
Meenakshi Paul
 
Fundamentals of Data and Signals
Fundamentals of Data and SignalsFundamentals of Data and Signals
Fundamentals of Data and Signals
Angel G Diaz
 
The Evolution Of Digital Computers
The Evolution Of Digital ComputersThe Evolution Of Digital Computers
The Evolution Of Digital Computers
leehampson
 
Error detection correction (CRC)
Error detection correction  (CRC)Error detection correction  (CRC)
Error detection correction (CRC)
Karam Munir Butt
 
History of computer technology
History of computer technology History of computer technology
History of computer technology
shiva prasad
 
Digital Logic & Design
Digital Logic & DesignDigital Logic & Design
Digital Logic & Design
Rokonuzzaman Rony
 
1’s and 2’s complements
1’s and 2’s complements1’s and 2’s complements
1’s and 2’s complements
arunachalamr16
 
data representation
 data representation data representation
data representation
Haroon_007
 
Parity check, redundancy, and errors
Parity check, redundancy, and errorsParity check, redundancy, and errors
Parity check, redundancy, and errors
KARIMU KHATWABI
 
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organization
Muhammad Ishaq
 

What's hot (20)

Ch6 bandwidth utilisation multiplexing and spreading
Ch6 bandwidth utilisation multiplexing and spreadingCh6 bandwidth utilisation multiplexing and spreading
Ch6 bandwidth utilisation multiplexing and spreading
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
Co notes3 sem
Co notes3 semCo notes3 sem
Co notes3 sem
 
Bcd
BcdBcd
Bcd
 
Binary Arithmetic Operations
Binary Arithmetic OperationsBinary Arithmetic Operations
Binary Arithmetic Operations
 
Number system
Number systemNumber system
Number system
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Binary, Decimal and Hexadecimal
Binary, Decimal and HexadecimalBinary, Decimal and Hexadecimal
Binary, Decimal and Hexadecimal
 
10 hexadecimal number system
10   hexadecimal number system10   hexadecimal number system
10 hexadecimal number system
 
Module 4 registers and counters
Module 4 registers and counters Module 4 registers and counters
Module 4 registers and counters
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Fundamentals of Data and Signals
Fundamentals of Data and SignalsFundamentals of Data and Signals
Fundamentals of Data and Signals
 
The Evolution Of Digital Computers
The Evolution Of Digital ComputersThe Evolution Of Digital Computers
The Evolution Of Digital Computers
 
Error detection correction (CRC)
Error detection correction  (CRC)Error detection correction  (CRC)
Error detection correction (CRC)
 
History of computer technology
History of computer technology History of computer technology
History of computer technology
 
Digital Logic & Design
Digital Logic & DesignDigital Logic & Design
Digital Logic & Design
 
1’s and 2’s complements
1’s and 2’s complements1’s and 2’s complements
1’s and 2’s complements
 
data representation
 data representation data representation
data representation
 
Parity check, redundancy, and errors
Parity check, redundancy, and errorsParity check, redundancy, and errors
Parity check, redundancy, and errors
 
Introduction to computer architecture and organization
Introduction to computer architecture and organizationIntroduction to computer architecture and organization
Introduction to computer architecture and organization
 

Viewers also liked

Hexadecimal
HexadecimalHexadecimal
Hexadecimal
wardjo
 
hexadecimal notes By ZAK
hexadecimal notes By ZAKhexadecimal notes By ZAK
hexadecimal notes By ZAK
Tabsheer Hasan
 
Numebr system
Numebr systemNumebr system
Numebr system
nidhiyagnik123
 
Ch2 properties of the task environment
Ch2 properties of the task environmentCh2 properties of the task environment
Ch2 properties of the task environment
Julyn Mae Pagmanoja
 
Number system
Number systemNumber system
Number system
Prajjwal Kushwaha
 
Dewey Decimal Classification System
Dewey Decimal Classification SystemDewey Decimal Classification System
Dewey Decimal Classification System
Carolyn Argo
 
Number system
Number system Number system
Number system
Khinda Saab
 
number system school ppt ninth class
number system school ppt ninth classnumber system school ppt ninth class
number system school ppt ninth class
Manan Jain
 
Computer number systems
Computer number systemsComputer number systems
Computer number systems
Revi Shahini
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
Zaheer Abbasi
 
Number System
Number SystemNumber System
Number System
itutor
 
Number system
Number systemNumber system
Number system
Palash Sachan
 
number system
number systemnumber system
number system
virly dwe
 
Number System
Number SystemNumber System
Number System
samarthagrawal
 
Internal and external business environment
Internal and external business environmentInternal and external business environment
Internal and external business environment
Aashish Sahi
 

Viewers also liked (15)

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
 
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

Hexadecimal Conversion
Hexadecimal ConversionHexadecimal Conversion
Hexadecimal Conversion
Mac Mac
 
number system
number systemnumber system
number system
Pawan Mishra
 
Number system
Number systemNumber system
Number system
SAEED ULLAH JAN
 
Number Systems
Number SystemsNumber Systems
Number Systems
Infinity Tech Solutions
 
Conversion methods
Conversion methodsConversion methods
Conversion methods
Harold O'MALLEY
 
chapter2.pptx electrical engineering for student
chapter2.pptx electrical engineering for studentchapter2.pptx electrical engineering for student
chapter2.pptx electrical engineering for student
MidhaksaBelay
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
MariaJoseph591921
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
Janki Shah
 
Chapter 6 base_number
Chapter 6 base_numberChapter 6 base_number
Chapter 6 base_number
Nazrul Shah
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
Shehrevar Davierwala
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
MamataAnilgod
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
4NM21IS132SAISHARATH
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptx
khalidkk6
 
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
shubhangisonawane6
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
Emmanuel Eniola Falade
 
Number system
Number systemNumber system
Number system
Iqra Yasin
 
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
Akanchha Agrawal
 
Number system arithmetic
Number system arithmetic Number system arithmetic
Number system arithmetic
renatus katundu
 
Chapter 1 standard form
Chapter 1 standard formChapter 1 standard form
Chapter 1 standard form
larasati06
 
Number Systems - AK.pptx
Number Systems - AK.pptxNumber Systems - AK.pptx
Number Systems - AK.pptx
AmitSharma798754
 

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
 
chapter2.pptx electrical engineering for student
chapter2.pptx electrical engineering for studentchapter2.pptx electrical engineering for student
chapter2.pptx electrical engineering for student
 
uyuyuy.pdf
uyuyuy.pdfuyuyuy.pdf
uyuyuy.pdf
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
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
 
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
 

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