Convert small 64bit signed integer into a high and low byte ?


Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 3273
Posted: 07:52am 17 Apr 2026      

This line, instead of a Pause...
Do :I2C2 read I2C.addr,0,1,Re$:Loop Until MM.I2C<>1
will let the chip take as much time as it needs but no more.

Footnote added 2026-04-17 18:44 by phil99
In view of Peters comment below perhaps this could be used instead.
t=timer :Do :I2C2 read I2C.addr,0,1,Re$:Loop Until MM.I2C<>1 Or timer-t >6