i have data_word = {0x63};
I want
data_word_lsb = 3; //
got incorrect value "0x30" instead of "3"
data_word_msb = 6; //
got right value "6" in following way
1 2 3 4
|
unsigned int data_word[1];
unsigned int data_word_lsb = data_word[0]<<4;
unsigned int data_word_msb = data_word[0]>>4;
|
How i would get the right value of
data_word_lsb?
Last edited on