Hello!
I am trying to get hold of the bits in a word, i have read that union is the way to go.
My problem is that i cant figure out how union works. I have made a union between a word (16bit) and an array(0...15). The way I understood this was that the word now automaticly updates the array so that when the least significant bit in the word should update array[00] and so on.
This is not happening. When I monitor the variables I can see the word change, but nothing happens with the array.
Have I misunderstood the consept and what should I do to get hold of the bits?