This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Convert HEX value to binary values
#1
Hi

I need to get a hex value presented as individual bits. I have a 2-byte value where each bit indicates a certain status
Bit0 - Alarm class danger (A)
Bit1 - Alarm class critical (A)
Bit2 - Alarm class low (B)
Bit3 - Alarm class warning ©
Bit4 -
Bit5 - Manual control active
Bit6 - Summer mode
Bit7 -
Bit8 - Preheating, heating reg
Bit9 - Preheating, extra heating reg
Bit10 -
Bit11 - Act ctrl mode temp, room
Bit12 - Act ctrl mode temp, exhaust
Bit13 - Act ctrl mode temp, supply
Bit14 - Act ctrl mode hum, room
Bit15 - Act ctrl mode hum, supply

I therefore need to get the hex value and check each bits value. Anyone know a good way to do this?
There are 10 kinds of people in the world; those who can read binary and those who don't  Cool
Reply


Messages In This Thread
Convert HEX value to binary values - by Trond Hoyem - 13.12.2017, 19:13

Forum Jump: