Hi @MykolaLevun ,
The Numbers need to be read as:
0 --> 0x0000 --> 0
350mg --> 0x15e0 --> 5600
1g --> 0x4000 --> 16384
-350mg --> 0xea20 --> 59936 = 2^16 - 5600
-1g --> 0xc000 --> 49152 = 2^16 - 16384
Two complement means that to find the magnitude of a negative number, you need to do two's complement once more, or do 2^16 - number as shown above.
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.