[?] Subscribe To This Site

XML RSS
Add to Google
Add to My Yahoo!
Add to My MSN
Subscribe with Bloglines


Home
Forum
Project Ideas
C Course
Projects Showcase
LCD-KEYS OnePort
PIC Introduction
PIC Programmer
Schematic Tool
PIC Projects
Tips & Techniques
PIC Tutorials
Digital Downloads
Store
My SECRET
Oscilloscopes
About Me
Contact
Terms of Use
Search This Site
Freebies
Articles
Books
Resource Links
Site Map
Video du Jour
Rant/Rave
Privacy Policy
Problem?-Solution
Programmer Types

Hex code table for numbers 0 - 15

You can use the following hex code table to convert hexadecimal to binary and back and you can convert numbers of any length.

For each nibble of binary data just replace it with the corresponding hex digit.

For example:

Binary number :1010011011101111 011101101101
Hexadecimal number : A 6 E F 7 6 D

You can convert any hex number of any length to binary (just remember to start from the right - or LSB) using the hex code table.

And you can convert any binary number of any length to hexadecimal (just remember to start from the right - or LSB) using the table. If it does not fit into the last nibble (set of 4 bits) set the left most bits to zero.

Hexadecimal table

DecimalHex digit Binary code DecimalHex digit Binary code
0 0 0000 8 8 1000
1 1 0001 9 9 1001
2 2 0010 10 A 1010
3 3 0011 11 B 1011
4 4 0100 12 C 1100
5 5 0101 13 D 1101
6 6 0110 14 E 1110
7 7 0111 15 F 1111


Best-microcontroller-projects home page