Extract a specific bit from hex value
- COFHAL
- Offline
- Platinum Member
-
Less
More
- Posts: 425
- Thank you received: 57
04 Mar 2026 01:17 #343820
by COFHAL
Extract a specific bit from hex value was created by COFHAL
Is there a way to extract a specific bit from a hexadecimal value? The VFD I'm using indicates the state with a 16-bit hexadecimal value, and therefore I need to extract that bit to use it within my configuration.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17801
- Thank you received: 5206
04 Mar 2026 03:35 #343821
by PCW
Replied by PCW on topic Extract a specific bit from hex value
The" bitslice" hal component is one way.
The following user(s) said Thank You: COFHAL
Please Log in or Create an account to join the conversation.
- COFHAL
- Offline
- Platinum Member
-
Less
More
- Posts: 425
- Thank you received: 57
05 Mar 2026 00:24 #343875
by COFHAL
Replied by COFHAL on topic Extract a specific bit from hex value
Thanks, with this component I was able to extract the bits I needed.
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds