converting data
Posted: 01 Sep 2010 12:29
Hello again my friends!
I´m working with 16f877A and i have a basic question for you!
I have 2 memories (Eeprom) with adress 0x32(1byte) and 0x33(1byte) with data on it.
I have a variable V (unsigned (int), 2 bytes).
Eeprom 0x32 is MSB and Eeprom 0x33 is LSB.
How can i send 2 eeprom data into V variable
EX:
Eeprom_(0x32);---0x3;(MSB)----3 Decimal
Eeprom_(0x33);--- FF;(LSB)----255 Decimal
Variable V=03FF------1023 Decimal
thank you all, my friends.
I´m working with 16f877A and i have a basic question for you!
I have 2 memories (Eeprom) with adress 0x32(1byte) and 0x33(1byte) with data on it.
I have a variable V (unsigned (int), 2 bytes).
Eeprom 0x32 is MSB and Eeprom 0x33 is LSB.
How can i send 2 eeprom data into V variable
EX:
Eeprom_(0x32);---0x3;(MSB)----3 Decimal
Eeprom_(0x33);--- FF;(LSB)----255 Decimal
Variable V=03FF------1023 Decimal
thank you all, my friends.