Pages

Thursday 10 April 2014

Hexadecimal Number System

Hexadecimal system, i.e number system having 16 base is used as a convenient representation of binary numbers.This system contains only this 16 digits that are represented as follows :


Conversion of Binary Number into Hexadecimal Number :

Start from the right and group 4 bits at a time, replacing each 4-bit binary number with its hex equivalent.
Example 1 :
                     represent 111001000110 in hex.
                                 1110   0100 0110
                           =        E         4       6       
Example 2 :
                     represent  10101001101  in hex.
                                   101   0100  1101
                           =        5        4        D      (here in last part 101=0101)

Conversion of Hexadecimal Number into Binary Number :

 Replace each hex digit with its 4-bit binary equivalent.
Example :
                  convert 38C into binary.
                                      3        8        C
                            =   0011    1000   1100

Conversion of Decimal Number into Hexadecimal Number :

  • Convert to binary first and then convert to hex
  • Convert directly from decimal to hex by repeated division, keeping track of the remainders

Conversion of Hexadecimal Number into Binary Number :

  • Convert from hex to binary and then to decimal
  • Convert directly from hex to decimal by summing the weight of all digits


                                                           reference :The 8051 microcontroller and embeded systems by mazidi

No comments:

Post a Comment