Specifications
mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers
In order to make conversion of a hexadecimal number to decimal, each hexadecimal digit should be multiplied with the number 16 raised by its
position value. For example:
Fig. 0-5 Hexadecimal to decimal number conversion
Hexadecimal to Binary Number Conversion
It is not necessary to perform any calculation in order to convert hexadecimal numbers to binary numbers. Hexadecimal digits are simply
replaced by the appropriate four binary digits. Since the maximum hexadecimal digit is equivalent to decimal number 15, we need to use four
binary digits to represent one hexadecimal digit. For example:
Fig. 0-6 Hexadecimal to binary number conversion
http://www.mikroe.com/en/books/picmcubook/ch0/ (7 of 30)5/3/2009 11:28:39 AM