This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with shorts in packed structures

Hi

I am using an analog ADuc7022 with the Keil CARM compiler. With a packed structure containing bytes and shorts, I cant access the short data values correctly. For example if I have a short in the structure containing 0x55DD, I would just get 0x00DD when trying to assign the value to another variable.

Thanks for any help
Mike

0