Hi

If I have a hex value "AC23", whose 16-bit binary is "1010110000100011" and decimal is "44067". How can I break it into following groups of bits (bit-fields):

(5-bits)--(1-bit)--(5-bits)--(5-bits)
10101 -- 1 -- 00001-- 00011
21 -- 1 -- 1 -- 3

Is there any formula by which I can break a HEX value into its bits as above and then I can get those values in columns as shown in attached image?

bitf.jpg