Tuesday, February 25, 2014
Hex to Binary JTAG Register Decoder tool
While programming JTAG registers I frequently have to fill out binary bit maps to select settings, and then convert the pattern into a hex number to enter in the JTAG programming tool, or decode a register I read into the component bit pattern to see what mode is set. There are certainly a lot of ways to get this job done, including the windows calculator and excel. However most of them clip leading zeros and require counting and grouping the bits..
I wrote a quickie Java program to do the conversions in a clear way that I can just click the 16 bits, all numbered, and view the hex code and vice versa. I threw in the decimal value readout because that often comes up too. For example, read a register value and flip bit 10 from 0 to 1 and write the result back in. This is the tool for that job!
I'm posting the tool on google drive, now that code.google.com is dead. This is trial mostly to see if it will work:
Just download and click on it and it should run without any setup, assuming you have basic java JRE installed on your computer, which I think everybody does.
Posted by siliconfish at 8:37 PM