I am using the IAR C Compiler
I am trying to read 2 bytes (unsign chars) stored in EEPROM, then to convert them to an integer (because they are the high an low byte of an integer), then make some processes, to convert the integer result in two unsigned chars (bytes) and finally to write the two bytes back in EEPROM.
I am very new in C and my problems are:
1. how to convert an integer in 2 unsigned chars?
2. how to convert 2 unsigned chars to an integer?
Thank you very much.