Search This Blog

Saturday, March 15, 2014

Hex to Decimal to Binary to Gray Code Converter Tool

I expanded the little windows/linux PC Java widget I made to decode bits while programming JTAG registers.  It was proving very useful.  Now it also includes Gray code.   This is a live tool that as soon as you enter a number in one format, it instantly updates the value in the others.   This saves a ton of time when you read a register and the individual bits are used set switches or report values and it is all glommed together into a big word.  A minimal amount of button clicking and typing decodes a hex value into it's bits, allows you to click one on or off, and tells you the new hex value.

I also added a big display of the hex and binary at the top.  Now this wastes a bit of screen space so it might get canned.  The tool is getting a bit big.

I used the rules here:

I checked it against this gray code converter (which only goes one way)

I've tested it pretty thoroughly and it seems to be totally solid.

Download the executable java here:

All you have to do is doubleclick on the .jar file and it will run on your computer if you have java jre installed!  Most everybody does, but in case you don't you have to download from here:

Complete source files in netbeans are also here:


  1. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work... Binary options recovery

  2. The issue you've featured above is most likely valueable for anybody to exercise.
    City Index share review

  3. With global interest in cryptocurrency trading at an all-time high, a number of investors are looking to cash in on the ongoing crypto boom that is sweeping the world right now. And even though the market seems to have stabilized over the course of the past few days, many pundits are of the opinion that currencies like Ethereum, XRP, Bitcoin Cash, Litecoin will scale past their ATH values with ease by the end of 2020. Auto crypto bot.

  4. Merely wanna comment on few general things, The website layout is perfect, the content material is real superb .

  5. They were very responsive, often responding within an hour. Their high-quality work has led to millions of dollars in revenue.
    UX designer San Francisco

  6. The team uses several project management tools that have aided the documentation process.
    branding San Francisco