Problems with a i2c accelerometer...

Nope, it doesn' t work :frowning: :frowning:
The code is the simplest ever wrote, it' s divided just in few phases:
-Read data from register MSB X
-Store in xhigh

-Read data from register LSB X
-Store in xlow

-X= (Bitshift xhigh of 8 and merge with OR to xlow)
I really can' t understand why it gives values over the maximum int value D: