So 0.00 to 3.99 to 8bit and then via simple 8bit RS232. The data is well behaved , just going up or down slowly. As limited to hardware conversion/encoding at the sensor end (pc at the other so no decoding limitation there), thinking Send as packed BCD of the tenths and hundredths and then hardware encode onto MSB only when it is 1001 "9", the units 0to 3 reading as 2bit binary on the D6 and D7 bits. Then on the pc "stick or twist" the units logged according to whether the next tenth sent reading is 8 or 0. I suppose in the general case 9.99 could be encoded like this for 0 to
9.99 using D1 and D2 on the LSB but would not be reliable for general data or jittering around the .9. Any other harware conversion/encoding idea I might consider?- posted
9 years ago