Electronic Design and Family Site

Programmer's Number Format Converter

The Programmer's Number Format Converter

When working with PIC microcontrollers, I find myself needing numbers formatted in Hex and binary interchangeably: hex for instructions an internal math, binary for port manipulation.  Sometimes, if I'm deep in thought about a particular piece of code, I can't shift gears quickly to simple math manipulation. Luckily, I learned some VB6 in college and applied some of that knowledge to this problem.

   The result...a simple number converter. Enter your number in any of the 4 ways: Binary, Hexadecimal, Decimal, or ASCII; press "Compute", and it will fill in the other 3 blocks with that value formatted appropriately.

-Bill Lazure